@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url(../vendor/fonts/nunito-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url(../vendor/fonts/nunito-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url(../vendor/fonts/nunito-latin-900-normal.woff2) format('woff2'); }

:root {
  --blue: #2B6FD6; --blue-ink: #1F5FC4; --blue-soft: #E6EFFC; --pin: #3B86E6;
  --navy: #234A8F; --night: #142A52; --night-2: #1E3A6E;
  --ink: #1B2D52; --ink-2: #4A5A78; --ink-3: #5B6A85; --line: #E3E8F0; --bg: #F4F7FC;
  --green: #1F7A45; --green-dot: #1F9D55; --red: #C92A2A; --amber: #B35C00; --now: #D9480F;
  --purple: #7048E8;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --tabs-h: calc(64px + var(--sab));
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { font-family: Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 600; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue-ink); text-decoration: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid #FFB020; outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; font-weight: 800; min-height: 48px; padding: 0 20px; text-align: center; }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-now { background: var(--now); color: #fff; }
.btn-outline { background: #fff; color: var(--blue-ink); border: 2px solid var(--blue); }
.btn-soft { background: var(--blue-soft); color: var(--blue-ink); }
.btn-ghost { background: transparent; color: var(--blue-ink); }
.btn-lg { min-height: 56px; font-size: 18px; }
.btn-xl { min-height: 66px; font-size: 21px; font-weight: 900; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.tag { font-size: 12px; background: var(--blue-soft); color: var(--blue-ink); padding: 3px 8px; border-radius: 10px; }

/* ---------- Map view ---------- */
#map-view { position: fixed; inset: 0; }
#map { position: absolute; inset: 0; background: #EEF1EC; }
.maplibregl-ctrl-bottom-left { bottom: calc(var(--tabs-h) + var(--card-h, 0px) + 6px); transition: bottom .2s; }
.maplibregl-ctrl-attrib { font-size: 11px; }

.topbar { position: absolute; top: calc(var(--sat) + 12px); left: 12px; right: 12px; z-index: 3; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; background: #fff; border-radius: 25px; box-shadow: 0 2px 12px rgba(27,45,82,.14); }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-3); stroke-width: 2.2; stroke-linecap: round; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; min-width: 0; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.results { background: #fff; border-radius: 18px; box-shadow: 0 6px 20px rgba(27,45,82,.16); overflow: hidden; max-height: 50vh; overflow-y: auto; }
.results button { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.results button small { display: block; color: var(--ink-3); font-size: 13px; }
.results .muted { padding: 14px 16px; color: var(--ink-3); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; height: 36px; padding: 0 15px; border-radius: 18px; border: 0; background: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 1px 6px rgba(27,45,82,.12); }
.chip[aria-pressed="true"] { background: var(--blue); color: #fff; }

.map-fabs { position: absolute; right: 14px; bottom: calc(var(--tabs-h) + var(--card-h, 150px) + 14px); z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; transition: bottom .2s; }
.fab-round { width: 48px; height: 48px; border-radius: 24px; border: 0; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(27,45,82,.18); }
.fab-round svg { width: 22px; height: 22px; fill: none; stroke: var(--blue-ink); stroke-width: 2.4; stroke-linecap: round; }
.fab-now { display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 20px; border-radius: 26px; background: var(--now); color: #fff; font-weight: 900; font-size: 17px; box-shadow: 0 4px 14px rgba(217,72,15,.4); }
.fab-now svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }

.me-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(43,111,214,.45); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43,111,214,.45); } 70% { box-shadow: 0 0 0 16px rgba(43,111,214,0); } 100% { box-shadow: 0 0 0 0 rgba(43,111,214,0); } }

.nearest { position: absolute; left: 0; right: 0; bottom: var(--tabs-h); z-index: 2; background: #fff; border-radius: 22px 22px 0 0; padding: 14px 18px 16px; box-shadow: 0 -4px 18px rgba(27,45,82,.12); }
.nearest .eyebrow { font-size: 12px; font-weight: 900; letter-spacing: .4px; color: var(--green); text-transform: uppercase; }
.nearest h2 { margin: 2px 0 0; font-size: 20px; font-weight: 900; }
.nearest .meta { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.nearest .row { display: flex; gap: 10px; margin-top: 12px; }
.nearest .row .btn { flex: 1; }
.status-line { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: #9FB7DC; }
.dot.open { background: var(--green-dot); } .dot.closed { background: var(--red); } .dot.attention { background: #E8930C; }

.crosshair { position: absolute; left: 50%; top: 50%; z-index: 2; width: 46px; height: 60px; transform: translate(-50%, -100%); pointer-events: none; }
.crosshair svg, .draft-pin svg { width: 100%; height: 100%; fill: var(--now); stroke: #fff; stroke-width: 2; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }
.crosshair svg { transform: translateY(-6px); }
.crosshair-dot { position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--now); border: 2px solid #fff; box-shadow: 0 0 0 0 rgba(194,65,12,.5); animation: tip 1.6s infinite; }
@keyframes tip { 0% { box-shadow: 0 0 0 0 rgba(194,65,12,.5); } 70% { box-shadow: 0 0 0 12px rgba(194,65,12,0); } 100% { box-shadow: 0 0 0 0 rgba(194,65,12,0); } }
.draft-pin { width: 40px; height: 52px; pointer-events: none; }
.adding .chips, .adding .fab-now { display: none; }
.add-bar { z-index: 5; }
.add-bar-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.add-bar-head .close-x { width: 34px; height: 34px; }
.add-bar .meta { margin: 4px 0 0; }
.pin-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.pin-line span::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--now); margin-right: 6px; vertical-align: 1px; }
.link-btn { border: 0; background: none; padding: 4px 0; font: inherit; font-weight: 800; color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 759px) { #add-sheet { max-height: 62%; } }
@media (prefers-reduced-motion: reduce) { .crosshair-dot { animation: none; } }

.tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: var(--tabs-h); padding-bottom: var(--sab); background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 800; color: var(--ink-3); }
.tabs a svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tabs a[aria-current="page"] { color: var(--blue-ink); }

/* ---------- Sheets ---------- */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; max-height: calc(100% - var(--sat) - 70px); overflow-y: auto; background: #fff; border-radius: 24px 24px 0 0; box-shadow: 0 -6px 30px rgba(27,45,82,.22); padding: 10px 20px calc(24px + var(--sab)); animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.grab { width: 42px; height: 5px; border-radius: 3px; background: #D3D9E4; margin: 0 auto 12px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet h2 { margin: 0; font-size: 23px; font-weight: 900; line-height: 1.2; }
.close-x { width: 40px; height: 40px; border-radius: 20px; border: 0; background: var(--bg); display: grid; place-items: center; flex-shrink: 0; }
.close-x svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; fill: none; }
.pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 900; letter-spacing: .5px; color: #fff; padding: 4px 10px; border-radius: 10px; background: #6B7A96; }
.pill.open { background: var(--green); } .pill.closed { background: var(--red); }
.sub { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags span { font-size: 13px; font-weight: 800; background: var(--blue-soft); color: var(--blue-ink); padding: 5px 10px; border-radius: 12px; }
.tags span.warn { background: #FFF1E0; color: var(--amber); }
.tags span.purple { background: #EFEAFD; color: #5A35C8; }
.tags span.green { background: #E3F4EA; color: #1F7A45; }
.report-grid button:disabled { opacity: .45; }
.actions { display: flex; gap: 10px; margin-top: 16px; }
.actions .btn { flex: 1; }
.scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.scores div { background: var(--bg); border-radius: 14px; padding: 10px 6px; text-align: center; }
.scores b { display: block; font-size: 20px; font-weight: 900; }
.scores small { font-size: 12px; color: var(--ink-3); }
.card { margin-top: 16px; background: var(--bg); border-radius: 18px; padding: 16px; }
.card h3 { margin: 0; font-size: 16px; font-weight: 900; }
.card .hint { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.report-grid button { min-height: 50px; border-radius: 14px; background: #fff; font-weight: 800; font-size: 15px; border: 2px solid currentColor; }
.r-open { color: var(--green); } .r-closed { color: var(--red); } .r-clean { color: var(--blue-ink); } .r-attention { color: var(--amber); }
.feed { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.feed li { display: flex; justify-content: space-between; gap: 10px; }
.feed time { color: var(--ink-3); flex-shrink: 0; }
.fineprint { font-size: 12px; color: var(--ink-3); margin-top: 16px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--blue-ink); font-weight: 800; text-decoration: underline; }

/* ---------- Forms ---------- */
label.field { display: block; margin-top: 14px; font-size: 14px; font-weight: 800; }
.input { display: block; width: 100%; height: 50px; margin-top: 6px; padding: 0 14px; border-radius: 14px; border: 2px solid #D3D9E4; background: #fff; font-size: 16px; }
.input:focus { border-color: var(--blue); outline: none; }
.seg-label { margin-top: 14px; font-size: 14px; font-weight: 800; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.seg button { min-height: 44px; border-radius: 12px; border: 2px solid #D3D9E4; background: #fff; font-weight: 800; font-size: 14px; }
.seg button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-ink); }
.form-error { color: var(--red); font-size: 14px; margin-top: 10px; min-height: 1px; }
.stars { display: flex; gap: 4px; margin-top: 6px; }
.stars button { width: 44px; height: 44px; border: 0; background: none; font-size: 30px; line-height: 1; color: #C9D2E0; padding: 0; }
.stars button[aria-pressed="true"] { color: #F2A900; }

/* ---------- Full screens ---------- */
.screen { position: fixed; inset: 0; z-index: 10; overflow-y: auto; animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.home { background: #fff; }
.home-inner { min-height: 100%; max-width: 440px; margin: 0 auto; padding: calc(var(--sat) + 72px) 28px calc(var(--sab) + 32px); display: flex; flex-direction: column; align-items: center; }
.brand { display: flex; align-items: center; gap: 14px; margin-top: 3vh; }
.brand-pin { width: 78px; height: 101px; }
.wordmark { margin: 0; font-weight: 900; font-size: 48px; line-height: .95; color: var(--navy); letter-spacing: -1px; }
.tagline { margin: 22px 0 0; font-size: 17px; font-weight: 800; color: var(--ink-2); text-align: center; }
.home-actions { width: 100%; display: flex; flex-direction: column; gap: 14px; margin-top: auto; padding-top: 40px; }
.home-link { margin-top: 26px; font-size: 16px; font-weight: 800; }
.home-note { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }

.now { background: var(--night); color: #fff; }
.now-inner { min-height: 100%; max-width: 480px; margin: 0 auto; padding: calc(var(--sat) + 20px) 24px calc(var(--sab) + 24px); display: flex; flex-direction: column; }
.now-top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.now-badge { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 900; letter-spacing: 1px; color: #FFB48A; }
.now-badge svg { width: 18px; height: 18px; fill: none; stroke: #FFB48A; stroke-width: 2.6; stroke-linecap: round; }
.now a, .now .linkbtn { color: #C9D6EE; }
.now-label { margin-top: 28px; font-size: 16px; font-weight: 800; color: #C9D6EE; }
.now-dist { font-size: 84px; font-weight: 900; line-height: 1; margin-top: 4px; }
.now-dist span { font-size: 36px; }
.now-walk { font-size: 20px; font-weight: 800; margin-top: 6px; }
.now-card { margin-top: 24px; background: var(--night-2); border-radius: 20px; padding: 18px; }
.now-card h2 { margin: 0; font-size: 21px; font-weight: 900; }
.now-card .sub { color: #C9D6EE; }
.conf { display: flex; justify-content: space-between; margin-top: 16px; font-size: 14px; font-weight: 800; }
.bar { margin-top: 8px; height: 10px; border-radius: 5px; background: #2E4C82; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 5px; }
.now-why { font-size: 13px; color: #C9D6EE; margin-top: 10px; }
.now-go { margin-top: auto; padding-top: 24px; }
.now-go .btn { width: 100%; min-height: 72px; font-size: 22px; font-weight: 900; }
.next { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.next button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--night-2); border: 0; border-radius: 16px; padding: 12px 16px; color: #fff; }
.next small { display: block; color: #C9D6EE; font-size: 13px; }
.next b { font-size: 16px; }
.next em { font-style: normal; color: #9EC2FF; font-weight: 800; }
.now-msg { margin-top: 40px; font-size: 20px; font-weight: 800; line-height: 1.4; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 5px solid rgba(255,255,255,.2); border-top-color: #fff; animation: spin .8s linear infinite; margin-top: 50px; }
@keyframes spin { to { transform: rotate(360deg); } }

.page { background: var(--bg); }
.page-inner { max-width: 520px; margin: 0 auto; padding: calc(var(--sat) + 16px) 20px calc(var(--sab) + 40px); }
.page-top { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.page-top h1 { margin: 0; font-size: 24px; font-weight: 900; }
.back { width: 44px; height: 44px; border-radius: 22px; border: 0; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 6px rgba(27,45,82,.1); }
.back svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.hero-card { margin-top: 14px; background: var(--navy); color: #fff; border-radius: 22px; padding: 18px; }
.hero-card .who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 52px; height: 52px; border-radius: 26px; background: var(--pin); display: grid; place-items: center; font-size: 21px; font-weight: 900; flex-shrink: 0; }
.rank { font-size: 12px; font-weight: 900; letter-spacing: .5px; color: #B9CDF0; }
.who h2 { margin: 0; font-size: 21px; font-weight: 900; }
.pts { margin-left: auto; text-align: right; }
.pts b { display: block; font-size: 24px; font-weight: 900; }
.pts small { font-size: 12px; color: #B9CDF0; }
.prog { margin-top: 14px; height: 10px; border-radius: 5px; background: #33599E; overflow: hidden; }
.prog i { display: block; height: 100%; background: #FFC24B; border-radius: 5px; }
.prog-note { font-size: 13px; color: #D5E1F6; margin-top: 6px; }
.section-h { margin: 22px 0 10px; font-size: 17px; font-weight: 900; }
.badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 11px; font-weight: 800; line-height: 1.2; color: #3D4C6B; }
.badge i { width: 56px; height: 56px; border-radius: 28px; display: grid; place-items: center; background: #E3E8F0; color: #9AA6BC; }
.badge i svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.badge.on i { color: #fff; }
.white-card { background: #fff; border-radius: 18px; padding: 14px 16px; }
.seg-tabs { display: flex; gap: 6px; background: var(--bg); border-radius: 12px; padding: 4px; }
.seg-tabs button { flex: 1; border: 0; background: none; height: 36px; border-radius: 9px; font-weight: 800; font-size: 14px; color: var(--ink-3); }
.seg-tabs button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(27,45,82,.12); }
.board { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.board li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; }
.board li.me { background: var(--blue-soft); color: var(--blue-ink); font-weight: 800; }
.board .n { width: 22px; font-weight: 900; }
.board .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board b { font-weight: 900; }
.intro p { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.feature-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.feature-list li { display: flex; gap: 10px; }
.feature-list svg { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.feature-list span { color: var(--ink-2); }
.soon { margin-top: 20px; padding: 16px; border-radius: 16px; background: #fff; border: 2px dashed #C6D3EA; font-size: 15px; line-height: 1.45; }

/* ---------- Modal & toast ---------- */
.modal { position: fixed; inset: 0; z-index: 30; background: rgba(14,28,56,.5); display: flex; align-items: flex-end; justify-content: center; }
.modal-card { width: 100%; max-width: 480px; background: #fff; border-radius: 24px 24px 0 0; padding: 22px 20px calc(22px + var(--sab)); animation: up .2s ease-out; max-height: 92%; overflow-y: auto; }
@media (min-width: 600px) { .modal { align-items: center; } .modal-card { border-radius: 24px; } }
.modal-card h2 { margin: 0; font-size: 22px; font-weight: 900; }
.modal-card p { color: var(--ink-2); margin: 6px 0 0; line-height: 1.45; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 24px); transform: translateX(-50%); z-index: 40; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 800; font-size: 15px; max-width: calc(100% - 40px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }

/* ---------- Photos & Ask ---------- */
.photo-strip { display: flex; gap: 8px; overflow-x: auto; margin-top: 14px; scrollbar-width: none; }
.photo-strip::-webkit-scrollbar { display: none; }
.photo-strip button { flex-shrink: 0; width: 112px; height: 112px; border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: var(--bg); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.btn svg.cam { fill: none; stroke: currentColor; }
.photo-full { width: 100%; max-height: 60vh; object-fit: contain; border-radius: 16px; background: #0E1C38; display: block; margin-top: 12px; }
.photo-meta { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.check-preview { width: 100%; max-height: 38vh; object-fit: cover; border-radius: 16px; display: block; margin-top: 14px; }
.ai-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 800; }
.ai-row .spinner { width: 24px; height: 24px; border-width: 3px; margin: 0; border-color: #D3D9E4; border-top-color: var(--blue); }
.ask-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #F3EEFF; color: #4B2BA8; font-weight: 800; font-size: 14px; border-bottom: 1px solid var(--line); }
.ask-head svg { width: 18px; height: 18px; fill: #7048E8; flex-shrink: 0; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px 10px; border-bottom: 1px solid var(--line); }
.ask-chips span { font-size: 12px; font-weight: 800; background: var(--blue-soft); color: var(--blue-ink); padding: 3px 9px; border-radius: 10px; }

/* ---------- Hosts & Plus ---------- */
.tags span.teal { background: #E0F3F5; color: #0B6273; }
.host-card { margin-top: 14px; border: 2px solid #9ED5DD; background: #EFF9FA; border-radius: 18px; padding: 16px; }
.host-card .kicker { font-size: 12px; font-weight: 900; letter-spacing: .6px; color: #0B6273; }
.host-card h3 { margin: 4px 0 0; font-size: 19px; font-weight: 900; }
.host-card .offer { margin: 6px 0 0; font-size: 16px; font-weight: 800; color: #0B6273; }
.host-card .hint { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.host-card a { font-weight: 800; color: #0B6273; text-decoration: underline; }
.plan-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.plan { display: flex; justify-content: space-between; align-items: center; min-height: 64px; padding: 10px 16px; border-radius: 16px; border: 2px solid #D3D9E4; background: #fff; text-align: left; }
.plan[aria-checked="true"] { border-color: var(--blue); background: #EEF4FD; }
.plan b { display: block; font-size: 16px; font-weight: 900; }
.plan small { color: var(--ink-2); font-size: 13px; }
.plan strong { font-size: 18px; font-weight: 900; }
.region-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.region { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 10px 10px 14px; }
.region b { display: block; font-weight: 900; font-size: 15px; }
.region small { color: var(--ink-3); font-size: 13px; }
.region .btn { min-height: 40px; padding: 0 16px; font-size: 14px; flex-shrink: 0; }

/* ---------- Missions ---------- */
.mission-card { margin-top: 14px; background: linear-gradient(0deg, #FFF8E6, #FFF8E6); border: 2px solid #F5D27A; border-radius: 22px; padding: 18px; }
.mission-card .kicker { font-size: 12px; font-weight: 900; letter-spacing: .6px; color: #8A5A00; }
.mission-card h2 { margin: 4px 0 0; font-size: 21px; font-weight: 900; }
.mission-card p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.pips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.pips i { height: 12px; border-radius: 6px; background: #F1E3BD; }
.pips i.on { background: #F2A900; }
.mission-card .btn { margin-top: 14px; width: 100%; }
.claim { background: #F2A900; color: #3B2600; }
.pioneer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pioneer-list a { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 12px 14px; color: var(--ink); }
.pioneer-list .star { width: 40px; height: 40px; border-radius: 20px; background: #FFF1CC; display: grid; place-items: center; flex-shrink: 0; }
.pioneer-list .star svg { width: 22px; height: 22px; fill: #F2A900; stroke: none; }
.pioneer-list .nm { flex: 1; min-width: 0; }
.pioneer-list .nm b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; }
.pioneer-list .nm small { color: var(--ink-3); font-size: 13px; }
.pioneer-list .bonus { font-weight: 900; color: #8A5A00; background: #FFF1CC; padding: 4px 10px; border-radius: 10px; font-size: 13px; flex-shrink: 0; }
.pioneer-note { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; background: #FFF8E6; border: 1px solid #F5D27A; border-radius: 12px; font-size: 14px; font-weight: 800; color: #6B4600; }
.pioneer-note svg { width: 18px; height: 18px; fill: #F2A900; }
.checked-line { font-size: 13px; color: var(--ink-3); margin-top: 8px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (min-width: 760px) {
  .topbar { right: auto; width: 420px; }
  .map-fabs { bottom: calc(var(--tabs-h) + 16px); }
  .maplibregl-ctrl-bottom-left { left: 440px; bottom: calc(var(--tabs-h) + 8px); }
  .nearest, .sheet { left: 12px; right: auto; width: 420px; border-radius: 24px; bottom: calc(var(--tabs-h) + 12px); }
  .sheet { max-height: calc(100% - var(--tabs-h) - 40px); }
}

/* Google sign-in */
.btn-google { background: #fff; color: #1F1F1F; border: 1.5px solid #D3D9E4; width: 100%; }
.btn-google:active { background: #F4F6FA; }
.g-logo { width: 20px; height: 20px; flex-shrink: 0; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; font-weight: 700; margin: 4px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.modal .btn-google + .or { margin: 14px 0 2px; }
