:root {
  --bg: #E7E5DF;
  --surface: #FAF9F6;
  --ink: #1A1A17;
  --accent: #E2552E;
  --blue: #2F6FB0;
  --green: #2E7D5B;
  --purple: #6B4FB0;
  --card: #ffffff;
  --line: #E9E7E0;
  --line2: #EFEDE6;
  --line3: #E4E2DA;
  --muted: #9C9A90;
  --muted2: #6B6A63;
  --muted3: #8B897F;
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: var(--bg);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
}
::-webkit-scrollbar { width: 0; height: 0; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.head { font-family: var(--head); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* ---------- Splash + Login ---------- */
.boot {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}
.boot[hidden] { display: none; }
.boot-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); animation: pulse 1s ease-in-out infinite; }

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border-radius: 24px;
  padding: 30px 24px 26px;
  box-shadow: 0 30px 80px -28px rgba(40, 38, 32, .45);
  animation: fadein .35s ease both;
}
.login-mark { font: 600 12px/1 var(--head); letter-spacing: .18em; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.login-title { font: 600 30px/1.05 var(--head); letter-spacing: -.01em; margin: 16px 0 6px; }
.login-sub { font: 500 13px/1.4 var(--body); color: var(--muted2); margin-bottom: 22px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font: 600 10px/1 var(--head); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin-bottom: 7px; }
.field input {
  width: 100%; font: 500 16px/1 var(--body); color: var(--ink);
  background: #fff; border: 1px solid var(--line3); border-radius: 12px; padding: 14px;
}
.field input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.btn-dark {
  width: 100%; margin-top: 6px; background: var(--ink); color: var(--surface);
  border: none; border-radius: 14px; padding: 15px; font: 600 14px/1 var(--head); cursor: pointer;
}
.btn-dark:active { transform: translateY(1px); }
.btn-dark:disabled { opacity: .6; }
.login-error { color: var(--accent); font: 500 13px/1.3 var(--body); margin: 0 2px 12px; }
.login-error[hidden] { display: none; }

/* ---------- App frame ---------- */
.frame {
  width: 100%;
  max-width: 412px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px -20px rgba(40, 38, 32, .45);
}
.frame[hidden] { display: none; }

.topbar {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 20px 12px;
  background: var(--surface); border-bottom: 1px solid var(--line2); z-index: 5;
}
.topbar-trip { display: flex; align-items: center; gap: 9px; }
.topbar-label { font: 600 12px/1 var(--head); letter-spacing: .16em; color: var(--ink); }
.avatars { display: flex; align-items: center; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; color: #fff;
  font: 600 11px/26px var(--head); text-align: center; border: 2px solid var(--surface);
}
.avatar + .avatar { margin-left: -8px; }

.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.tabscreen { padding: 18px 18px 28px; animation: fadein .35s ease both; }
.tabscreen[hidden] { display: none; }

.screen-h { font: 600 24px/1 var(--head); letter-spacing: -.01em; margin: 6px 2px 4px; }
.screen-sub { font: 500 13px/1.4 var(--body); color: var(--muted2); margin: 0 2px 18px; }
.eyebrow { font: 600 11px/1 var(--head); letter-spacing: .16em; color: var(--muted); margin: 4px 2px 14px; }
.section-label { font: 600 11px/1 var(--head); letter-spacing: .12em; color: var(--muted); margin: 22px 2px 10px; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 15px; }
.card.tappable { cursor: pointer; }
.card.tappable:active { transform: translateY(1px); }
.card + .card, .row + .card, .card + .row { margin-top: 14px; }

/* hero stage card (dark) */
.hero { background: var(--ink); border-radius: 22px; padding: 22px 20px 18px; color: var(--surface); position: relative; overflow: hidden; }
.hero-badges { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.badge { font: 600 10px/1 var(--head); letter-spacing: .14em; border-radius: 20px; padding: 5px 9px; }
.badge-accent { color: var(--accent); border: 1px solid rgba(226,85,46,.5); }
.badge-ghost { color: var(--muted3); border: 1px solid #34332D; }
.hero-city { font: 600 28px/1.1 var(--head); letter-spacing: -.01em; }
.hero-arrow { display: flex; align-items: center; gap: 10px; margin: 2px 0 18px; }
.hero-arrow .a { font: 600 28px/1.1 var(--head); color: var(--accent); }
.hero-stats { display: flex; border-top: 1px solid #2A2924; padding-top: 16px; }
.hstat { flex: 1; }
.hstat + .hstat { border-left: 1px solid #2A2924; padding-left: 16px; }
.hstat .v { font: 600 22px/1 var(--head); }
.hstat .v small { font-size: 13px; color: var(--muted3); }
.hstat .k { font: 500 11px/1 var(--body); color: var(--muted3); margin-top: 6px; }
.elev { display: block; margin-top: 16px; }
.elev-labels { display: flex; justify-content: space-between; font: 500 10px/1 var(--body); color: #6E6C63; margin-top: 6px; }

/* two-up row */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.mini-label { font: 600 10px/1 var(--head); letter-spacing: .12em; color: var(--muted); }
.big-num { font: 600 30px/1 var(--head); margin: 12px 0 4px; }
.chip { margin-top: 11px; font: 500 11px/1 var(--body); color: var(--accent); background: #FBE9E1; border-radius: 8px; padding: 6px 8px; display: inline-block; }

/* progress */
.progress-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.bar { height: 8px; border-radius: 8px; background: var(--line2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 8px; }
.progress-foot { display: flex; justify-content: space-between; margin-top: 10px; font: 500 12px/1 var(--body); color: var(--muted2); }
.note-line { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 0 2px; font: 500 12px/1.5 var(--body); color: var(--muted); }

/* ---------- Map ---------- */
.map { height: 300px; width: 100%; border-radius: 18px; border: 1px solid var(--line); margin: 4px 0 16px; background: #e9e7e0; z-index: 0; }
.leaflet-popup-content { font-family: var(--body); }

/* ---------- stage hero links + detail sheet ---------- */
.hero-links { display: flex; gap: 8px; margin-top: 16px; }

.sheet { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20, 18, 15, .5); animation: fadein .2s ease; }
.sheet-card {
  position: relative; width: 100%; max-width: 412px; margin: 0 auto;
  background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
  max-height: 92dvh; overflow-y: auto; animation: sheetUp .28s ease;
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet-grip { width: 38px; height: 4px; border-radius: 4px; background: #D9D6CC; margin: 4px auto 14px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }

.check-btn {
  width: 100%; margin-top: 14px; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  font: 600 15px/1 var(--head); color: var(--ink); cursor: pointer;
}
.check-btn:active { transform: translateY(1px); }
.check-btn .check-box {
  width: 26px; height: 26px; border-radius: 8px; border: 2px solid #C9C7BE;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.check-btn.on { background: #E9F3EC; border-color: #2E7D5B; color: #2E7D5B; }
.check-btn.on .check-box { background: #2E7D5B; border-color: #2E7D5B; transform: scale(1.08); }

/* ---------- Route timeline ---------- */
.timeline { display: flex; flex-direction: column; }
.tl { display: flex; gap: 14px; align-items: stretch; width: 100%; text-align: left; background: none; border: none; cursor: pointer; }
.tl-rail { display: flex; flex-direction: column; align-items: center; width: 36px; flex: none; }
.tl-day { width: 34px; height: 34px; border-radius: 50%; font: 600 12px/34px var(--head); text-align: center; flex: none; }
.tl-line { flex: 1; width: 2px; background: var(--line); margin: 2px 0; }
.tl-body { flex: 1; padding-bottom: 18px; min-width: 0; }
.tl-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tl-route { font: 600 15px/1.25 var(--head); letter-spacing: -.01em; }
.tl-cc { font: 600 9px/1 var(--head); letter-spacing: .1em; color: #A8A69D; border: 1px solid var(--line3); border-radius: 6px; padding: 4px 5px; flex: none; }
.tl-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.tl-meta .m { font: 500 12px/1 var(--body); color: var(--muted2); }
.tl-gpx {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 9px;
  font: 600 11px/1 var(--head); color: var(--ink);
  background: #fff; border: 1px solid var(--line3); border-radius: 9px; padding: 8px 10px; text-decoration: none;
}
.tl-gpx:active { transform: translateY(1px); }
.tl.active .tl-route { color: var(--accent); }
.tl-links { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.tl-links .tl-gpx { margin-top: 0; }
.tl-komoot { color: #2E7D5B; border-color: #cfe3d6; }

/* ---------- Money ---------- */
.bal { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 13px 15px; display: flex; align-items: center; gap: 12px; }
.bal + .bal { margin-top: 10px; }
.av { width: 36px; height: 36px; border-radius: 50%; color: #fff; font: 600 14px/36px var(--head); text-align: center; flex: none; }
.bal-main { flex: 1; min-width: 0; }
.bal-name { font: 600 14px/1 var(--head); }
.bal-name small { font: 500 11px/1 var(--body); color: #A8A69D; }
.bal-status { font: 500 12px/1 var(--body); color: var(--muted); margin-top: 5px; }
.bal-amt { font: 600 16px/1 var(--head); }
.tx { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.tx + .tx { margin-top: 8px; }
.tx-cat { width: 30px; height: 30px; border-radius: 9px; font: 600 9px/1 var(--head); display: flex; align-items: center; justify-content: center; flex: none; }
.tx-main { flex: 1; min-width: 0; }
.tx-title { font: 600 13px/1.2 var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-sub { font: 500 11px/1 var(--body); color: var(--muted); margin-top: 5px; }
.tx-amt { font: 600 14px/1 var(--head); }
.empty { font: 500 13px/1.5 var(--body); color: var(--muted); padding: 18px 2px; text-align: center; }

/* inline add form */
.addform { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-top: 12px; display: grid; gap: 10px; }
.addform[hidden] { display: none; }
.addform input, .addform select, .addform textarea {
  width: 100%; font: 500 15px/1.2 var(--body); color: var(--ink);
  background: #fff; border: 1px solid var(--line3); border-radius: 10px; padding: 11px;
}
.addform textarea { resize: vertical; min-height: 60px; }
.addrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-accent { background: var(--accent); color: #fff; border: none; border-radius: 12px; padding: 13px; font: 600 13px/1 var(--head); cursor: pointer; }
.btn-line { background: #fff; color: var(--ink); border: 1px solid var(--line3); border-radius: 12px; padding: 13px; font: 600 13px/1 var(--head); cursor: pointer; }
.btn-block { width: 100%; }
.topbtn { display: flex; align-items: center; justify-content: space-between; margin: 6px 2px 18px; }

/* ---------- Log ---------- */
.post + .post { margin-top: 20px; }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.post-meta .n { font: 600 13px/1 var(--head); }
.post-meta .p { font: 500 11px/1 var(--body); color: var(--muted); margin-top: 4px; }
.post-cap { font: 500 14px/1.5 var(--body); color: var(--ink); margin: 4px 2px 0; }
.post-foot { display: flex; align-items: center; gap: 6px; margin: 9px 2px 0; font: 500 12px/1 var(--body); color: var(--muted); }
.post-media { width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; display: block; background: #000; }

/* ---------- Weather ---------- */
.wx-now { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.wx-temp { font: 600 34px/1 var(--head); }
.wx-desc { font: 600 14px/1.2 var(--head); }
.wx-sub { font: 500 12px/1.3 var(--body); color: var(--muted2); margin-top: 4px; }
.wx-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.wx-slot { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; }
.wx-slot-l { font: 600 10px/1 var(--head); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.wx-slot-e { font-size: 20px; margin: 6px 0 4px; }
.wx-slot-t { font: 600 16px/1 var(--head); }
.wx-slot-r { font: 500 10px/1 var(--body); color: var(--blue); margin-top: 4px; }

/* ---------- Bets / markets ---------- */
.mkt-q { font: 600 16px/1.3 var(--head); }
.mkt-by { font: 500 11px/1 var(--body); color: var(--muted); margin-top: 6px; }
.oddsbar { height: 8px; border-radius: 8px; background: #FBE9E1; overflow: hidden; margin: 12px 0 8px; }
.oddsbar > i { display: block; height: 100%; background: #2E7D5B; border-radius: 8px; }
.odds-row { display: flex; justify-content: space-between; font: 600 11px/1 var(--head); }
.odds-row .yes { color: #2E7D5B; }
.odds-row .no { color: #E2552E; }
.mkt-exp { font: 600 11px/1 var(--head); letter-spacing: .02em; color: var(--muted); margin-top: 10px; }
.mkt-exp.closed { color: #E2552E; }
.mkt-mine { font: 500 12px/1 var(--body); color: var(--ink); margin-top: 10px; background: #F1EEF8; display: inline-block; padding: 6px 9px; border-radius: 8px; }
.mkt-actions { display: flex; gap: 8px; margin-top: 12px; }
.mkt-actions .stake { flex: 1; min-width: 0; font: 500 15px/1 var(--body); border: 1px solid var(--line3); border-radius: 10px; padding: 11px; background: #fff; color: var(--ink); }
.btn-yes, .btn-no { border: none; border-radius: 10px; padding: 11px 13px; font: 600 12px/1 var(--head); cursor: pointer; color: #fff; }
.btn-yes { background: #2E7D5B; }
.btn-no { background: #E2552E; }
.btn-yes:disabled, .btn-no:disabled { opacity: .6; }
.mkt-resolve { margin-top: 12px; font: 500 11px/1 var(--body); color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mkt-resolve .res { background: #fff; border: 1px solid var(--line3); border-radius: 8px; padding: 6px 9px; font: 600 10px/1 var(--head); cursor: pointer; color: var(--ink); }
.mkt-resolved { margin-top: 12px; font: 500 13px/1.3 var(--body); color: var(--muted2); }
.mkt-resolved b { color: var(--ink); }

/* ---------- Passport stamps ---------- */
.stamps { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.stamp { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line3); border-radius: 20px; padding: 6px 10px; font: 600 11px/1 var(--head); opacity: .35; filter: grayscale(1); }
.stamp.reached { opacity: 1; filter: none; border-color: var(--line); }
.crossing-banner { background: #E9F3EC; color: var(--green); border-radius: 14px; padding: 12px 14px; font: 600 13px/1.3 var(--head); margin-top: 14px; animation: fadein .35s ease both; }

/* ---------- Check-in ---------- */
.mood-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mood-btn { font-size: 20px; background: #fff; border: 1px solid var(--line3); border-radius: 12px; padding: 8px 12px; cursor: pointer; }
.mood-btn.active { border-color: var(--accent); background: #FBE9E1; }

/* ---------- Currency converter ---------- */
.fx-row { display: flex; align-items: center; gap: 10px; }
.fx-row input { flex: 1; }
.fx-eq { font: 600 13px/1 var(--head); color: var(--muted); }
.fx-out { font: 600 20px/1 var(--head); white-space: nowrap; }

/* ---------- Phrases ---------- */
.phrase-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line2); font: 500 13px/1.3 var(--body); }
.phrase-row:last-child { border-bottom: none; }
.phrase-row .en { color: var(--muted2); }
.phrase-row .loc { font-weight: 600; color: var(--ink); }

/* ---------- Polls ---------- */
.poll-opt { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.poll-bar-wrap { flex: 1; background: var(--line2); border-radius: 8px; overflow: hidden; height: 30px; position: relative; cursor: pointer; border: none; text-align: left; padding: 0; }
.poll-bar-wrap > i { display: block; height: 100%; background: #EAF1FB; }
.poll-bar-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; font: 600 12px/1 var(--head); color: var(--ink); }
.poll-opt .pct { font: 600 12px/1 var(--head); color: var(--muted2); width: 34px; text-align: right; flex: none; }
.poll-mine { color: var(--blue); }

/* ---------- Topbar extras ---------- */
.sos-btn { background: #fff; border: 1px solid var(--line3); border-radius: 50%; width: 30px; height: 30px; font-size: 14px; cursor: pointer; }

/* ---------- Emergency info modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(20,19,16,.55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal-overlay[hidden] { display: none; }
.modal-card { background: var(--surface); border-radius: 20px; padding: 18px; max-width: 380px; width: 100%; max-height: 80vh; overflow-y: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal-head h3 { font: 600 17px/1 var(--head); }
.modal-x { background: none; border: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted2); }
.info-field { margin-bottom: 14px; }
.info-field .lbl { font: 600 10px/1 var(--head); letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; display: block; }
.info-field textarea { width: 100%; min-height: 50px; font: 500 13px/1.4 var(--body); border: 1px solid var(--line3); border-radius: 10px; padding: 9px; resize: vertical; }
.info-static { background: #FBE9E1; color: var(--accent); border-radius: 10px; padding: 10px 12px; font: 600 13px/1.3 var(--head); margin-bottom: 14px; }

/* ---------- Clippy ---------- */
.clippy { position: absolute; right: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.clippy-btn {
  width: 64px; height: 78px; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #fff, #F3F1EA);
  border: none; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  animation: clippy-bounce 1.6s ease-in-out infinite;
}
.clippy-btn:active { transform: scale(.95); }
.clippy-btn.greet { animation: clippy-greet 1s cubic-bezier(.36,.07,.19,.97) 1; }
.clippy-svg { width: 42px; height: 63px; display: block; overflow: visible; }
.clippy-eye { transform-box: fill-box; transform-origin: center; animation: clippy-blink 3.4s ease-in-out infinite; }
.clippy-eye.right { animation-delay: .12s; }
.clippy-brow { transform-box: fill-box; transform-origin: center; }
.clippy-btn.greet .clippy-brow.left { animation: clippy-brow-up 1s ease-in-out 1; }
.clippy-btn.greet .clippy-brow.right { animation: clippy-brow-up 1s ease-in-out .1s 1; }

@keyframes clippy-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-4deg); }
}
@keyframes clippy-greet {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  14% { transform: translateY(-20px) rotate(-16deg) scale(1.12); }
  30% { transform: translateY(0) rotate(14deg) scale(1); }
  46% { transform: translateY(-14px) rotate(-12deg); }
  62% { transform: translateY(0) rotate(10deg); }
  78% { transform: translateY(-6px) rotate(-5deg); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}
@keyframes clippy-blink {
  0%, 88%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(.1); }
}
@keyframes clippy-brow-up {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
}

.clippy-bubble { max-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.25); position: relative; animation: fadein .25s ease both; }
.clippy-bubble[hidden] { display: none; }
.clippy-bubble p { font: 500 12.5px/1.45 var(--body); color: var(--ink); padding-right: 14px; }
.clippy-close { position: absolute; top: 6px; right: 8px; background: none; border: none; font-size: 14px; color: var(--muted); cursor: pointer; }

/* ---------- Bottom nav ---------- */
.bottomnav { flex: none; display: flex; background: var(--surface); border-top: 1px solid var(--line2); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
.navbtn { flex: 1; background: none; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 0; color: #A8A69D; }
.navbtn svg { width: 22px; height: 22px; }
.navbtn span { font: 600 10px/1 var(--head); letter-spacing: .02em; }
.navbtn.active { color: var(--accent); }
