:root {
  --ink: #0b2a3a; --ink-2: #113a4f; --sky: #8fd3ea;
  --blue: #0a7ea4; --blue-soft: #e4f2f8; --purple: #8e44ad; --purple-ink: #6c3483;
  --record: #e8552d; --text: #1b3a4b; --app-ink: #10232e; --muted: #5b6b75; --muted-2: #8a979f;
  --card: #f6f8fa; --line: #e5e5e5; --foam: #f1f6f9;
  --pw: 332px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--text); font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; font-size: 17px; line-height: 1.55; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.04; font-weight: 800; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--record); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* buttons + waitlist */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 22px; border-radius: 14px; font-weight: 700; font-size: 16px; border: 0; cursor: pointer; text-decoration: none; transition: background .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e8f4f9; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 14.5px; border-radius: 11px; }
.join { display: flex; gap: 8px; max-width: 470px; }
.join input { flex: 1; min-width: 0; height: 54px; padding: 0 18px; border-radius: 14px; border: 1.5px solid transparent; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.join input::placeholder { color: #8fa3ae; }
.join input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(143,211,234,.3); }
.join input[aria-invalid="true"] { border-color: #ffb199; }
.join .btn { height: 54px; }
.join-note { margin-top: 12px; font-size: 13.5px; color: rgba(255,255,255,.55); }
.join-note a { color: #fff; font-weight: 600; }
.join-ok { display: none; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 14px; background: rgba(143,211,234,.15); color: #fff; font-weight: 600; max-width: 470px; }
.join-ok svg { width: 22px; height: 22px; flex: none; }
.join-wrap.done .join { display: none; }
.join-wrap.done .join-ok { display: flex; }
.join-err { display: none; margin-top: 10px; font-size: 14px; color: #ffb199; }
.join-err a { color: #fff; }
.join-wrap.error .join-err { display: block; }
@media (max-width: 520px) { .join { flex-direction: column; } .join input { flex: none; width: 100%; } .join .btn { width: 100%; } }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background .25s, box-shadow .25s; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: #fff; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-right { display: flex; align-items: center; gap: 26px; }
.nav-links { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.nav-links a { color: rgba(255,255,255,.75); text-decoration: none; }
.nav-links a:hover { color: #fff; }
.nav .btn-light { display: none; }
.nav.solid { background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 rgba(11,42,58,.08); }
.nav.solid .brand { color: var(--ink); }
.nav.solid .nav-links a { color: var(--muted); }
.nav.solid .nav-links a:hover { color: var(--ink); }
.nav.solid .btn-light { background: var(--ink); color: #fff; }
@media (min-width: 760px) { .nav .btn-light { display: inline-flex; } }
@media (max-width: 759px) { .nav-links { display: none; } }

/* hero */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 96px; padding-bottom: 56px; min-height: 100vh; }
.hero h1 { color: #fff; font-size: clamp(48px, 6.6vw, 92px); max-width: 9ch; }
.eyeline { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--sky); margin-bottom: 18px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--sky); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(143,211,234,.55); } 70% { box-shadow: 0 0 0 10px rgba(143,211,234,0); } 100% { box-shadow: 0 0 0 0 rgba(143,211,234,0); } }
.lead { margin: 24px 0 30px; font-size: clamp(18px, 2vw, 21px); max-width: 500px; color: rgba(255,255,255,.82); line-height: 1.5; }
.try { margin-top: 34px; display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: rgba(255,255,255,.62); max-width: 430px; }
.try-dot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
.wind { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.wind svg { width: 100%; height: 100%; }
.wind line { stroke: var(--sky); stroke-width: 1.3; stroke-linecap: round; opacity: 0; animation: gust 8s linear infinite; }
@keyframes gust { 0% { transform: translateX(-70px); opacity: 0; } 15% { opacity: .22; } 85% { opacity: .22; } 100% { transform: translateX(70px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wind line { animation: none; opacity: .12; } .pulse { animation: none; } }
.hero-phone { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.full-btn { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 10px; cursor: pointer; }
.full-btn:hover { background: rgba(255,255,255,.14); }
.full-btn span { width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--m-expand) center / contain no-repeat; mask: var(--m-expand) center / contain no-repeat; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 100px; min-height: 0; }
  .try { margin-top: 26px; }
}

/* phone frame */
.phone { width: var(--pw); max-width: calc(100vw - 40px); padding: 10px; border-radius: 52px; background: #0a1c27; box-shadow: 0 40px 80px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08) inset; position: relative; }
.feat .phone { box-shadow: 0 40px 80px rgba(11,42,58,.22), 0 0 0 1px rgba(255,255,255,.08) inset; }
.screen { position: relative; width: 100%; aspect-ratio: 393 / 852; border-radius: 42px; overflow: hidden; background: #fff; color: var(--app-ink); font-size: 13px; line-height: 1.35; isolation: isolate; }
.screen::before { content: ""; position: absolute; z-index: 30; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 16px; background: #000; pointer-events: none; }
.sbar { position: absolute; z-index: 29; top: 0; left: 0; right: 0; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 4px 28px 0 34px; font-weight: 600; font-size: 13.5px; color: #000; pointer-events: none; }
.sbar.on-map { text-shadow: 0 0 6px rgba(255,255,255,.8); }
.sbar-r { display: flex; gap: 4px; align-items: center; }
.sbar-r i { width: 15px; height: 9px; border-radius: 2px; background: currentColor; }
.sbar-r i + i { width: 13px; }
.sbar-r b { width: 22px; height: 11px; border-radius: 3px; border: 1.5px solid currentColor; position: relative; }
.sbar-r b::after { content: ""; position: absolute; inset: 1.5px; background: #34c759; border-radius: 1px; }

/* app primitives (sizes ≈ 0.85 × iOS points) */
.ic { display: inline-block; flex: none; vertical-align: middle; }
.fab { position: absolute; z-index: 12; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.96); box-shadow: 0 2px 6px rgba(0,0,0,.15); display: grid; place-items: center; cursor: pointer; padding: 0; color: var(--text); }
.fab.on { background: var(--blue); color: #fff; }
.fab-account { top: 46px; left: 12px; }
.fab-col { position: absolute; z-index: 12; top: 46px; right: 12px; display: flex; flex-direction: column; gap: 9px; }
.fab-col .fab { position: relative; }
.fab-layers { right: 12px; bottom: 80px; }
.fab-exit { display: none; top: 46px; left: 58px; }
.tabbar { position: absolute; z-index: 14; left: 0; right: 0; bottom: 0; height: 66px; padding-bottom: 12px; background: #fff; border-top: 1px solid rgba(0,0,0,.08); display: flex; align-items: center; justify-content: space-around; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9.5px; font-weight: 600; color: #8e8e93; text-decoration: none; }
.tab.on { color: var(--blue); }
.tab .ic { width: 22px; height: 22px; }
.tab-rec { flex: 1; }
.rec { width: 46px; height: 46px; margin-top: -14px; border-radius: 50%; background: #fff; border: 3px solid var(--record); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.rec i { width: 25px; height: 25px; border-radius: 50%; background: var(--record); }
.seg { display: flex; gap: 2px; background: #eef2f5; border-radius: 9px; padding: 2px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 7px; padding: 6px 0; font-size: 11.5px; font-weight: 600; color: #5b6b75; cursor: pointer; }
.seg button.on { background: #fff; color: var(--app-ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.pbtn { border: 0; border-radius: 11px; padding: 10px 12px; font-size: 13px; font-weight: 700; cursor: pointer; }
.pbtn-blue { background: var(--blue); color: #fff; }
.pbtn-ghost { background: #eef2f5; color: var(--text); }
.x { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #eef2f5 var(--x-bg) center / 12px no-repeat; cursor: pointer; flex: none; }
.toast { position: absolute; z-index: 40; left: 50%; bottom: 84px; transform: translate(-50%, 10px); max-width: 84%; padding: 9px 13px; border-radius: 12px; background: rgba(16,35,46,.92); color: #fff; font-size: 12px; font-weight: 600; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* hero map screen */
.map { position: absolute; inset: 0 0 66px 0; background: #e9eef1; }
.maplibregl-ctrl-bottom-left, .maplibregl-ctrl-bottom-right { bottom: 0; }
.maplibregl-ctrl-attrib { font-size: 9px; }
.maplibregl-ctrl-attrib.maplibregl-compact { margin: 0 0 6px 6px; }
.map-status { position: absolute; z-index: 13; left: 50%; top: 52px; transform: translateX(-50%); padding: 6px 11px; border-radius: 99px; background: rgba(255,255,255,.95); box-shadow: 0 2px 6px rgba(0,0,0,.12); font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; opacity: 0; transition: opacity .25s; pointer-events: none; }
.map-status.show { opacity: 1; }
.geo-card { position: absolute; z-index: 15; left: 10px; right: 10px; bottom: 76px; background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.22); display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; }
.geo-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--blue-soft); display: grid; place-items: center; color: var(--blue); }
.geo-txt b { display: block; font-size: 14px; color: var(--app-ink); }
.geo-txt span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.geo-btns { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 6px; }
.geo-btns .pbtn-blue { flex: 1; }
.panel { position: absolute; z-index: 16; top: 44px; left: 10px; right: 10px; background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.2); padding: 10px; }
.search-box { display: flex; align-items: center; gap: 8px; background: #f1f4f6; border-radius: 11px; padding: 0 6px 0 10px; }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 14px; padding: 9px 0; color: var(--app-ink); outline: none; }
.search-res { max-height: 300px; overflow: auto; margin-top: 6px; }
.sr-row { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 8px 4px; border-bottom: 1px solid #eef1f3; text-align: left; cursor: pointer; }
.sr-row:hover { background: #f6f9fb; }
.sr-row b { display: block; font-size: 13px; color: var(--app-ink); }
.sr-row span { display: block; font-size: 11px; color: var(--muted-2); }
.sr-empty { padding: 10px 4px; font-size: 12px; color: var(--muted); }
.pt { font-size: 11px; font-weight: 700; color: var(--muted-2); margin: 2px 4px 6px; }
.frow { display: flex; align-items: center; gap: 10px; padding: 8px 4px; font-size: 14px; font-weight: 600; cursor: pointer; }
.frow span:nth-child(2) { flex: 1; }
.frow input { position: absolute; opacity: 0; pointer-events: none; }
.tg { width: 38px; height: 23px; border-radius: 12px; background: #d6dde2; position: relative; transition: background .2s; }
.tg::after { content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s; }
input:checked + .tg { background: #34c759; }
input:checked + .tg::after { transform: translateX(15px); }
input:focus-visible + .tg { outline: 3px solid var(--record); outline-offset: 2px; }
.fi { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); display: grid; place-items: center; }
.fi-spot { background: var(--purple); } .fi-forecast, .fi-station { background: var(--blue); }

.sheet { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; height: 74%; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.18); display: flex; flex-direction: column; animation: up .28s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(30%); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.sheet-handle { position: relative; height: 26px; flex: none; display: grid; place-items: center; }
.sheet-handle i { width: 38px; height: 5px; border-radius: 3px; background: #c9cfd4; }
.sheet-handle .x { position: absolute; right: 12px; top: 8px; }
.sheet-body { flex: 1; overflow: auto; padding: 4px 14px 20px; overscroll-behavior: contain; }
.sp-card { background: #f3e8f8; border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.sp-card h4 { margin: 0; font-size: 17px; font-weight: 700; color: var(--purple-ink); }
.sp-card span { font-size: 11px; color: #7d5a8c; }
.pt-head { display: flex; align-items: center; gap: 8px; margin: 8px 0 8px; }
.pt-head b { display: block; font-size: 15px; font-weight: 600; }
.pt-head span { display: block; font-size: 11px; color: #6b7a84; }
.sheet .seg { margin-bottom: 8px; }
.loading { display: flex; align-items: center; gap: 8px; padding: 14px 2px; font-size: 12px; color: var(--muted); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #d6dde2; border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { font-size: 12px; color: var(--muted); font-style: italic; padding: 8px 0; }
.mrow { background: var(--card); border-radius: 11px; margin: 8px 0; overflow: hidden; }
.mrow > button { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: none; padding: 10px; text-align: left; cursor: pointer; }
.mrow b { display: block; font-size: 13.5px; font-weight: 600; }
.mrow small { display: block; font-size: 11px; color: #666; }
.mrow .chev { transition: transform .2s; margin-left: auto; }
.mrow.open .chev { transform: rotate(90deg); }
.mrow .fbox { background: #fff; border-top: 1px solid #dfe4e8; padding: 6px 0; }
.wgbox { margin: 0 -14px 8px; padding: 4px 0; }

/* station live */
.live-now { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin: 4px 0 8px; }
.live-now div { background: var(--card); border-radius: 10px; padding: 9px; text-align: center; }
.live-now b { display: block; font-size: 20px; letter-spacing: -0.02em; }
.live-now span { font-size: 10px; color: var(--muted); }
.live-meta { font-size: 11px; color: var(--muted); }

/* forecast table (port of ForecastTable.tsx) */
.fwrap { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.fwrap::-webkit-scrollbar { display: none; }
.ft { position: relative; display: inline-block; min-width: 100%; }
.fr { position: relative; z-index: 2; display: flex; align-items: center; }
.fl { position: sticky; left: 0; z-index: 5; flex: none; width: 70px; padding-left: 8px; font-size: 9.5px; color: #555; background: #fff; align-self: stretch; display: flex; align-items: center; border-right: 1px solid #bbb; }
.fr-day .fl, .fr-hour .fl { border-right-color: transparent; }
.fc { flex: none; width: 21px; display: flex; justify-content: center; padding: 1.5px 0; }
.fc.ds { box-shadow: inset 1px 0 0 #bbb; }
.fc.now { background: #fff4d6; }
.hr { font-size: 9.5px; color: #666; }
.bx { width: 19px; text-align: center; font-size: 10.5px; font-weight: 600; padding: 3px 0; border-radius: 3px; color: #111; line-height: 1.25; }
.bx.sm { font-size: 9px; }
.ar { font-size: 12px; color: #333; display: inline-block; line-height: 1.2; }
.fday { flex: none; padding: 1px 4px; font-size: 9.5px; font-weight: 600; color: #333; white-space: nowrap; overflow: hidden; box-shadow: inset 1px 0 0 #bbb; }
.fband { position: absolute; z-index: 0; top: 0; bottom: 0; pointer-events: none; }
.fband.sess { background: #ead9f5; }
.fband.night { background: #e3e7ec; }
.fnow { position: absolute; z-index: 3; top: 18px; bottom: 0; width: 0; border-left: 1.5px dashed var(--record); pointer-events: none; }
.tide-svg { display: block; }
.saved { font-size: 10.5px; color: var(--muted); padding: 4px 14px 0; display: flex; gap: 6px; align-items: center; }
.saved i { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }

/* features */
.feat { padding: 110px 0; }
.feat-alt { background: var(--foam); }
.feat-dark { background: var(--ink); color: #fff; }
.feat-dark h2 { color: #fff; } .feat-dark .feat-copy > p { color: rgba(255,255,255,.75); } .feat-dark .ticks li { color: rgba(255,255,255,.9); } .feat-dark .real { color: var(--sky); }
.feat-grid { display: grid; grid-template-columns: 1fr auto; gap: 72px; align-items: center; }
.feat-grid.rev { grid-template-columns: auto 1fr; }
.feat-grid.rev .feat-phone { order: -1; }
.feat-copy { max-width: 520px; }
.feat-copy h2 { font-size: clamp(32px, 4.2vw, 50px); }
.feat-copy > p { margin-top: 18px; font-size: 18px; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 16px; font-weight: 500; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-soft) var(--check-bg) center / 11px no-repeat; }
.feat-dark .ticks li::before { background-color: rgba(143,211,234,.18); }
.real { margin-top: 26px; font-size: 14px; font-weight: 600; color: var(--blue); display: flex; gap: 9px; align-items: flex-start; }
.real::before { content: ""; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: currentColor; flex: none; }
.feat-phone { display: flex; justify-content: center; }
@media (max-width: 900px) {
  .feat { padding: 80px 0; }
  .feat-grid, .feat-grid.rev { grid-template-columns: 1fr; gap: 40px; }
  .feat-grid.rev .feat-phone { order: 0; }
}

/* session screen */
.sess-map { position: absolute; inset: 0 0 auto 0; height: 41%; background: #dfe9ee; }
.sess-back { position: absolute; z-index: 12; top: 46px; left: 12px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.96) var(--back-bg) center / 16px no-repeat; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.player { position: absolute; z-index: 12; left: 10px; right: 10px; top: calc(41% - 48px); height: 38px; background: rgba(255,255,255,.96); border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.15); display: flex; align-items: center; gap: 8px; padding: 0 10px 0 4px; }
.play { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--blue) var(--play-bg) center / 14px no-repeat; cursor: pointer; flex: none; }
.play.on { background-image: var(--pause-bg); }
.player input { flex: 1; min-width: 0; accent-color: var(--blue); }
.pl-t, .pl-v { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-v { color: var(--record); min-width: 38px; text-align: right; }
.sess-sheet { position: absolute; inset: 41% 0 0 0; background: #fff; border-radius: 18px 18px 0 0; margin-top: -8px; display: flex; flex-direction: column; z-index: 11; }
.sess-head { display: flex; justify-content: space-between; gap: 10px; padding: 14px 14px 10px; }
.sess-name { font-size: 21px; color: #111; letter-spacing: -0.02em; }
.sport-tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 8px 3px 6px; border-radius: 99px; background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 700; }
.sess-stats { display: grid; gap: 2px; justify-items: end; font-size: 11.5px; font-weight: 600; color: var(--text); }
.sess-stats div { display: flex; align-items: center; gap: 5px; }
#sessTabs { margin: 0 14px 6px; }
.sess-body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 4px 14px 16px; }
.card { background: var(--card); border-radius: 11px; padding: 11px; margin-bottom: 10px; }
.kv { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #eceff2; font-size: 12.5px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.stat-grid div { background: var(--card); border-radius: 10px; padding: 9px 10px; }
.stat-grid b { display: block; font-size: 17px; letter-spacing: -0.02em; }
.stat-grid b.hot { color: var(--record); font-size: 20px; }
.stat-grid span { font-size: 10.5px; color: var(--muted); }
.legend { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--muted); }
.legend i { flex: 1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, rgb(255,20,44), rgb(255,215,0), rgb(0,146,78)); }
.g-group { margin-bottom: 10px; }
.g-title { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--muted-2); margin-bottom: 4px; }
.g-row { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 10px; padding: 9px; }
.g-logo { width: 34px; height: 34px; border-radius: 8px; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; border: 1px solid #edf0f2; }
.g-logo img { max-width: 28px; max-height: 28px; }
.g-row b { display: block; font-size: 13.5px; }
.g-row span { font-size: 11.5px; color: var(--muted); }
.rate { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px; }
.rate span { width: 23px; height: 23px; border-radius: 7px; border: 1px solid #cfd8dc; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.rate span.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.chart-cap { font-size: 10.5px; color: var(--muted); display: flex; gap: 12px; margin: 4px 0 0; }
.chart-cap i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }

/* alerts screen */
.al-screen { background: #fff; }
.al-head { display: flex; align-items: center; justify-content: space-between; padding: 52px 14px 8px; }
.al-head h3 { font-size: 24px; color: var(--app-ink); }
.al-add { width: 31px; height: 31px; border-radius: 50%; background: var(--blue) var(--plus-bg) center / 15px no-repeat; }
.seg-pad { margin: 0 14px 4px; }
.al-list { position: absolute; top: 126px; left: 0; right: 0; bottom: 66px; overflow: auto; }
.al-sec { display: flex; align-items: center; gap: 7px; padding: 14px 14px 5px; }
.al-sec b { font-size: 11px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .04em; flex: 1; }
.al-sec span { font-size: 11px; color: #999; }
.al-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.al-dot { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--purple); transition: background .2s; }
.al-row.off .al-dot { background: #c7d0d6; }
.al-row .t { flex: 1; min-width: 0; }
.al-row .n { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-row .c { font-size: 11px; color: var(--muted); margin-top: 1px; }
.al-row .s { font-size: 11px; color: var(--muted-2); margin-top: 3px; }
.al-row .s.on { color: #1e8e3e; font-weight: 600; }
.mini { position: relative; width: 34px; height: 20px; flex: none; cursor: pointer; }
.mini input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mini i { position: absolute; inset: 0; border-radius: 10px; background: #d6dde2; transition: background .2s; pointer-events: none; }
.mini i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s; }
.mini input:checked + i { background: #34c759; }
.mini input:checked + i::after { transform: translateX(14px); }
.mini.sm { width: 28px; height: 17px; }
.mini.sm i::after { width: 13px; height: 13px; }
.mini.sm input:checked + i::after { transform: translateX(11px); }
.mini input:focus-visible + i { outline: 3px solid var(--record); outline-offset: 2px; }
.push { position: absolute; z-index: 31; top: 44px; left: 8px; right: 8px; padding: 10px 11px; border-radius: 18px; background: rgba(245,246,248,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0,0,0,.18); display: flex; gap: 9px; align-items: center; transform: translateY(-180%); opacity: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.push.show { transform: none; opacity: 1; }
.push img { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.push div { flex: 1; min-width: 0; }
.push b { display: block; font-size: 12px; }
.push span { display: block; font-size: 11px; color: #3c4a52; line-height: 1.3; }
.push small { align-self: flex-start; font-size: 10px; color: #6b7a84; }
.tabbar.static { pointer-events: none; }

/* gear screen */
.gear-app { position: absolute; inset: 44px 0 0 0; display: flex; flex-direction: column; }
.g-head { display: flex; align-items: center; gap: 9px; padding: 6px 14px 8px; }
.g-back { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #eef2f5 var(--back-bg) center / 15px no-repeat; cursor: pointer; flex: none; }
.g-back:disabled { opacity: .35; cursor: default; }
.g-head h3 { flex: 1; font-size: 17px; color: var(--app-ink); }
.prog { display: flex; gap: 5px; padding: 0 14px 4px; }
.prog div { flex: 1; min-width: 0; }
.prog i { display: block; height: 4px; border-radius: 2px; background: #e3e8ec; }
.prog span { display: block; margin-top: 3px; font-size: 9.5px; font-weight: 600; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog .on i, .prog .done i { background: var(--blue); }
.prog .on span { color: var(--blue); } .prog .done span { color: var(--text); }
.g-body { flex: 1; overflow: auto; padding: 0 14px 14px; overscroll-behavior: contain; }
.g-body h4 { margin: 10px 0 10px; font-size: 17px; font-weight: 700; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { border: 0; background: var(--card); border-radius: 11px; padding: 18px 8px; display: grid; justify-items: center; gap: 7px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--app-ink); }
.tile:hover { background: #eef3f6; }
.g-search { display: flex; align-items: center; gap: 7px; background: #f1f4f6; border-radius: 11px; padding: 0 10px; margin-bottom: 4px; }
.g-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 14px; padding: 9px 0; outline: none; color: var(--app-ink); }
.lrow { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 9px 0; text-align: left; cursor: pointer; color: var(--app-ink); }
.lrow:hover { background: #f8fafb; }
.lrow b { flex: 1; font-size: 14px; font-weight: 600; }
.lrow small { display: block; font-size: 11px; color: #666; font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #cfd8dc; background: #fff; border-radius: 9px; padding: 8px 12px; min-width: 58px; font-size: 14px; font-weight: 600; cursor: pointer; color: #222; }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.missing { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px; border-radius: 11px; border: 1.5px dashed #b9d6e2; background: #f5fafc; }
.missing b { display: block; font-size: 13px; color: var(--blue); }
.missing span { font-size: 11px; color: #6b7a84; }
.g-foot { padding: 10px 14px 22px; border-top: 1px solid var(--line); }
.g-save { width: 100%; border: 0; border-radius: 11px; padding: 12px; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.g-save:disabled { opacity: .4; cursor: default; }
.q-cat { font-size: 11px; font-weight: 700; color: var(--muted-2); margin: 14px 0 6px; display: flex; gap: 6px; align-items: center; }
.q-item { display: flex; align-items: center; gap: 10px; padding: 9px; background: var(--card); border-radius: 10px; margin-bottom: 6px; }
.q-item b { display: block; font-size: 13.5px; }
.q-item span { font-size: 11.5px; color: var(--muted); }
.q-empty { text-align: center; padding: 40px 10px 10px; color: var(--muted); font-size: 13px; }
.q-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; border: 0; border-radius: 12px; padding: 12px; background: var(--blue); color: #fff; font-weight: 700; cursor: pointer; }
.err { color: #c0392b; font-size: 12px; padding: 8px 0; }

/* live screen */
.live-map { position: absolute; inset: 0; background: #dfe9ee; }
.live-card { position: absolute; z-index: 12; left: 10px; right: 10px; top: 46px; background: #fff; border-radius: 16px; padding: 11px 12px; box-shadow: 0 6px 20px rgba(0,0,0,.18); color: var(--app-ink); }
.live-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.live-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; color: var(--record); }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--record); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.live-url { font-size: 10px; color: var(--muted-2); font-weight: 600; }
.live-name { display: block; font-size: 15px; }
.live-sub { display: block; font-size: 11.5px; color: var(--muted); }
.live-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.live-stats div { background: var(--card); border-radius: 9px; padding: 6px 8px; }
.live-stats b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.live-stats span { font-size: 9.5px; color: var(--muted); }
.sos { position: absolute; z-index: 12; left: 50%; bottom: 26px; transform: translateX(-50%); border: 3px solid var(--record); background: #fff; color: var(--record); border-radius: 99px; padding: 11px 20px; font-weight: 800; font-size: 13px; cursor: pointer; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.sos::before { content: ""; position: absolute; inset: 0; background: rgba(232,85,45,.18); transform: scaleX(0); transform-origin: left; }
.sos.hold::before { transform: scaleX(1); transition: transform 2s linear; }
.sos span { position: relative; }
.me-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--record); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(232,85,45,.25); }
.user-dot { width: 16px; height: 16px; border-radius: 50%; background: #0a84ff; border: 3px solid #fff; box-shadow: 0 0 0 7px rgba(10,132,255,.2), 0 1px 3px rgba(0,0,0,.3); }
.end-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); }

/* full-screen map */
body.map-full { overflow: hidden; }
body.map-full .nav, body.map-full .mcta { display: none; }
.hero-phone.full { position: fixed; inset: 0; z-index: 100; gap: 0; }
.hero-phone.full .phone { width: 100vw; max-width: none; height: 100vh; height: 100dvh; padding: 0; border-radius: 0; }
.hero-phone.full .screen { aspect-ratio: auto; height: 100%; border-radius: 0; }
.hero-phone.full .screen::before, .hero-phone.full .sbar { display: none; }
.hero-phone.full .fab-account, .hero-phone.full .fab-col { top: 14px; }
.hero-phone.full .fab-exit { display: grid; top: 14px; }
.hero-phone.full .panel { top: 14px; max-width: 420px; }
.hero-phone.full .geo-card, .hero-phone.full .sheet { max-width: 480px; }
.hero-phone.full .sheet { left: auto; right: 0; width: 100%; }
.hero-phone.full .full-btn { display: none; }
.hero-phone.full .map-status { top: 20px; }

/* faq + final + footer */
.faq-sec { padding: 104px 0; }
.faq-sec h2 { font-size: clamp(32px, 4.2vw, 48px); margin-bottom: 40px; }
.center { text-align: center; }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-top: 1px solid rgba(11,42,58,.1); }
.faq details:last-child { border-bottom: 1px solid rgba(11,42,58,.1); }
.faq summary { list-style: none; cursor: pointer; padding: 21px 0; font-size: 18px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 11px; height: 11px; flex: none; border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(45deg); transition: transform .25s; margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .a { padding: 0 0 22px; color: var(--muted); font-size: 16px; max-width: 640px; }
.faq .a a { color: var(--blue); }
.final { background: var(--ink); color: #fff; padding: 110px 0; text-align: center; }
.final img { width: 80px; height: 80px; border-radius: 20px; margin: 0 auto 24px; }
.final h2 { color: #fff; font-size: clamp(36px, 5vw, 60px); }
.final > .wrap > p { margin: 16px auto 30px; max-width: 520px; color: rgba(255,255,255,.75); font-size: 19px; }
.final .join, .final .join-ok { margin: 0 auto; }
footer { padding: 34px 0; font-size: 13.5px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; font-weight: 600; }
footer a { text-decoration: none; }
footer a:hover { color: var(--blue); }
.mcta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: none; transform: translateY(130%); transition: transform .3s; }
.mcta .btn { width: 100%; box-shadow: 0 16px 40px rgba(11,42,58,.3); }
.mcta.show { transform: none; }
@media (max-width: 759px) { .mcta { display: block; } }

/* Apple Maps (MapKit JS) annotations — same badges as SpotMarker.tsx */
.mk-pin { position: relative; }
.mk-dot { display: grid; place-items: center; box-sizing: border-box; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); cursor: pointer; }
.mk-lbl { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 2px; max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 600 10.5px/1.3 Inter, -apple-system, sans-serif; color: #1b3a4b; background: rgba(255,255,255,.85); padding: 1px 5px; border-radius: 4px; pointer-events: none; }
.mk-labels .mk-lbl, .mk-labels-spots .mk-spots .mk-lbl { display: block; }
.mk-spots .mk-lbl { color: #6c3483; }

/* map engines set position: relative on their container */
.screen .map, .screen .sess-map, .screen .live-map { position: absolute !important; }
