:root {
  --green-900: #12301B;
  --green-700: #1E4D2B;
  --green-500: #2C6A3D;
  --gold: #D4A72C;
  --gold-soft: #FFF7DE;
  --gold-line: #E9D48E;
  --ground: #F3F4EF;
  --card: #FFFFFF;
  --ink: #17201A;
  --muted: #4F5B52;
  --line: #D9DDD4;
  --line-soft: #ECEEE8;
  --field: #C9CEC4;
  --danger: #A3261B;
  --danger-soft: #FCE9E6;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--green-900); }
body {
  font-family: 'Barlow', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
}
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; background: var(--ground); display: flex; flex-direction: column; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--green-700); }

.top { background: var(--green-900); color: #fff; padding: calc(env(safe-area-inset-top) + 18px) 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.top-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.eyebrow { font-size: 14px; color: var(--gold); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.title { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-size: 32px; font-weight: 700; line-height: 1.05; }
.sub { color: #C8D6CB; font-size: 15px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); background: none; border: none; font-weight: 700; font-size: 15px; min-height: 44px; padding: 0; }
.lang-mini { background: var(--green-700); color: #fff; border: 1px solid var(--green-500); border-radius: 8px; height: 40px; padding: 0 12px; font-weight: 700; }

.body { padding: 16px 20px 28px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.section { display: flex; flex-direction: column; gap: 8px; }
.h2 { margin: 0; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.pad { padding: 14px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.muted { color: var(--muted); font-size: 14px; }
.note { background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.45; white-space: pre-line; }
.err { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 10px 12px; font-size: 15px; }

label.lbl { font-size: 15px; font-weight: 600; }
.input, select.input { height: 52px; border: 1.5px solid var(--field); border-radius: 10px; padding: 0 14px; font-size: 18px; background: #fff; width: 100%; color: var(--ink); }
.input:focus, select.input:focus { outline: 3px solid rgba(212,167,44,.5); border-color: var(--green-700); }

.btn { height: 56px; border: none; border-radius: 12px; font-size: 18px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; width: 100%; text-decoration: none; }
.btn-green { background: var(--green-700); color: #fff; }
.btn-gold { background: var(--gold); color: var(--green-900); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid #5E8A69; }
.btn-line { background: #fff; color: var(--green-700); border: 1.5px solid var(--field); }
.btn-gray { background: var(--field); color: #2E3A31; }
.btn-sm { height: 46px; font-size: 16px; border-radius: 10px; }
.btn:disabled { opacity: .6; }

.seg { height: 48px; border-radius: 10px; border: 1.5px solid var(--field); background: #fff; color: var(--ink); font-size: 17px; font-weight: 700; }
.seg[aria-pressed="true"] { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.login-top { padding: calc(env(safe-area-inset-top) + 36px) 24px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; background: var(--green-900); }
.login-logo { width: 210px; height: 210px; border-radius: 20px; object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.login-tag { font-size: 16px; font-weight: 700; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; }
.login-body { flex: 1; background: var(--ground); border-radius: 24px 24px 0 0; padding: 26px 24px 32px; display: flex; flex-direction: column; gap: 16px; }
.langbar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #E4E8E0; border-radius: 10px; padding: 4px; }
.langbar button { height: 44px; border: none; border-radius: 8px; background: transparent; color: #2E3A31; font-size: 16px; font-weight: 600; }
.langbar button[aria-pressed="true"] { background: #fff; color: var(--green-900); font-weight: 700; }

.clock { background: var(--green-700); border-radius: 12px; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.clock .big { font-size: 20px; font-weight: 700; }
.clock .small { font-size: 13px; color: #C8D6CB; }
.clock .btn { width: auto; height: 46px; font-size: 16px; }

.stop { display: flex; gap: 12px; padding: 14px; text-align: left; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.stop.next { border: 2px solid var(--green-700); }
.dot { width: 36px; height: 36px; flex-shrink: 0; border-radius: 18px; background: #E4E8E0; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.stop.next .dot { background: var(--green-700); color: #fff; }
.stop.done .dot { background: var(--green-500); color: #fff; }
.stop-name { font-size: 17px; font-weight: 700; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #E4E8E0; color: #2E3A31; white-space: nowrap; }
.tag.gold { background: #F6E7B8; color: #5C4505; }
.tag.green { background: #D9EBDD; color: #1E4D2B; }

.list .item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.list .item:last-child { border-bottom: none; }
.check { width: 30px; height: 30px; flex-shrink: 0; border-radius: 7px; border: 2px solid #9AA697; background: #fff; display: flex; align-items: center; justify-content: center; padding: 0; }
.check[aria-checked="true"] { background: var(--green-700); border-color: var(--green-700); }
.item-title { font-size: 16px; font-weight: 600; }
.flag-btn { margin-left: auto; background: none; border: none; color: var(--muted); font-weight: 700; font-size: 14px; min-height: 44px; padding: 0 4px; }
.flagged { color: #8A5A00; font-size: 14px; font-weight: 600; }

.timer { font-family: 'Barlow Condensed', sans-serif; font-size: 44px; font-weight: 700; line-height: 1; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #C9D3C4; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph .kind { position: absolute; left: 4px; bottom: 4px; background: rgba(18,48,27,.85); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 5px; text-transform: uppercase; }
.ph .x { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border-radius: 16px; border: none; background: rgba(0,0,0,.6); color: #fff; font-size: 18px; line-height: 1; }
.ref img { width: 100%; border-radius: 12px; display: block; }
.mat-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); gap: 10px; }
.mat-row button { background: none; border: none; color: var(--muted); font-weight: 700; min-height: 44px; }
.progress { height: 8px; border-radius: 4px; background: var(--green-500); }
.progress > div { height: 8px; border-radius: 4px; background: var(--gold); }
.center { text-align: center; }
.spacer { flex: 1; }
.footer-sticky { position: sticky; bottom: 0; padding: 12px 20px calc(env(safe-area-inset-bottom) + 12px); background: linear-gradient(to top, var(--ground) 75%, rgba(243,244,239,0)); }

#toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 24px); transform: translateX(-50%); background: var(--green-900); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; max-width: 90vw; box-shadow: 0 6px 20px rgba(0,0,0,.3); z-index: 10; }
.loading { padding: 60px 20px; text-align: center; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
.clock .seg[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--green-900); }
