/* Ned Maps Hunt on the web: the native apps' look (ned-maps-hunt
   ios/Hunt/Sources/Theme.swift). Paper, ink, teal for actions, amber for
   "open now", League Gothic for display type (never below ~21px, one weight).
   Light chrome always; the Night base map darkens the map, not the app. */
@font-face { font-family: "League Gothic"; font-display: swap; src: url(/vendor/fonts/league-gothic.woff2) format("woff2"); }

:root {
  --paper: #f5f2ea; --card: #fffdf8; --ink: #12333d; --ink-soft: #3c5459; --muted: #5b6f72;
  --rule: #d9d3c4; --rule-soft: #e6e0d2; --teal: #0a7d63; --teal-deep: #0a5c49; --teal-glow: #7fe3c6;
  --amber: #f5c451; --amber-ink: #3d3103; --record: #c92a2a;
  --display: "League Gothic", "Oswald", "Arial Narrow", sans-serif;
  --shadow: 0 2px 8px rgba(18, 51, 61, 0.18);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --strip-h: calc(76px + var(--safe-t));
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--paper); color: var(--ink);
  font: 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { opacity: 0.4; cursor: default; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.icon { display: inline-flex; line-height: 0; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; line-height: 0.95; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); }
.eyebrow.light { color: #a9c2c6; }
.eyebrow.rec { color: #ff8f8f; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.teal { color: var(--teal); }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rule-ink { height: 2px; background: var(--ink); }
.rule-soft { height: 1px; background: var(--rule-soft); }
.gap { height: 6px; }
.grow { flex: 1; }

#map { position: fixed; inset: 0; }
.maplibregl-ctrl-top-left { top: calc(var(--strip-h) + 4px); }
.maplibregl-ctrl-attrib.maplibregl-compact { background: rgba(255, 253, 248, 0.85); }

/* ---------------------------------------------------------------- strip */
.strip { position: fixed; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 0;
  padding: calc(var(--safe-t) + 8px) 16px 10px; background: var(--paper); border-bottom: 1px solid var(--rule); min-height: var(--strip-h); }
.readout { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.readout-label { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.readout-value { font-size: 27px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.readout-extra { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #3fb950; }
.vrule { width: 1px; height: 38px; background: var(--rule); margin-right: 12px; flex: none; }
.brand { display: none; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); margin-right: 28px; }
.brand-ned { font-size: 13px; font-weight: 800; letter-spacing: 0.22em; }
.brand-hunt { font-size: 22px; letter-spacing: 0.08em; color: var(--teal); }

/* ---------------------------------------------------------------- rail + bottom */
.rail { position: fixed; z-index: 2; top: calc(var(--strip-h) + 10px); right: 12px; width: 46px; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.rail button { height: 46px; display: grid; place-items: center; color: var(--ink); }
.rail button + button { border-top: 1px solid var(--rule-soft); }
.rail button.teal { color: var(--teal); }
body.measuring .rail button:last-child { background: var(--ink); color: var(--paper); }

/* ---------------------------------------------------------------- panel
   The fishing site's shape (nedmaps.com FIND): on a phone a drawer at the
   bottom (search, the open tab's content, the tab bar), on a wide screen a
   panel on the left (search, tabs, content). */
.track-row { position: fixed; z-index: 2; left: 12px; right: 70px; bottom: calc(var(--panel-h, 150px) + 10px); display: flex; align-items: center; gap: 8px; pointer-events: none; }
.track-row > * { pointer-events: auto; }
.track-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; font-size: 15px; font-weight: 600;
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px; box-shadow: var(--shadow); }
.track-btn .rec { width: 12px; height: 12px; border-radius: 50%; background: var(--record); }
.find-pill { display: inline-flex; align-items: center; height: 42px; background: var(--teal); color: #fff; border-radius: 21px; box-shadow: var(--shadow); font-size: 14px; font-weight: 700; }
.find-pill button { color: #fff; height: 100%; padding: 0 6px 0 14px; }
.find-pill .x { padding: 0 12px 0 6px; display: grid; place-items: center; }

.panel { position: fixed; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; background: var(--paper);
  border-radius: 16px 16px 0 0; box-shadow: 0 -3px 12px rgba(18, 51, 61, 0.18); padding-bottom: var(--safe-b); }
.panel-top { padding: 12px 16px 10px; order: 1; }
.panel-body { order: 2; height: min(62dvh, calc(100dvh - var(--strip-h) - 200px)); overflow: hidden; border-top: 1px solid var(--rule-soft); }
.tabs { order: 3; display: flex; padding: 2px 8px 0; border-top: 1px solid var(--rule-soft); }
.brand { display: none; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); margin-bottom: 12px; }
.brand-ned { font-size: 12px; font-weight: 800; letter-spacing: 0.22em; }
.brand-hunt { font-size: 21px; letter-spacing: 0.08em; color: var(--teal); }
.search-field { display: flex; align-items: center; gap: 10px; height: 46px; width: 100%; padding: 0 14px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px; font-size: 16px; color: var(--ink); }
.search-field span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs button { flex: 1; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); position: relative; }
.tabs button.on { color: var(--teal); }
.tabs button.on::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 0; height: 3px; border-radius: 2px; background: var(--teal); }
@media (hover: hover) { .tabs button:hover { color: var(--ink); } .tabs button.on:hover { color: var(--teal); } }

.screen-inner { height: 100%; display: flex; flex-direction: column; padding: 12px 16px 0; }
.screen-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.screen-head .segmented { flex: 1; margin-top: 0; }
.screen-list { flex: 1; overflow-y: auto; margin: 0 -16px; padding: 0 16px 24px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.chip-btn { height: 42px; padding: 0 14px; font-size: 14px; font-weight: 600; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; }
.segmented { display: flex; border: 1px solid var(--ink); border-radius: 10px; overflow: hidden; margin-top: 8px; }
.seg { flex: 1; min-height: 42px; font-size: 15px; font-weight: 600; background: var(--card); color: var(--ink); }
.seg + .seg { border-left: 1px solid var(--ink); }
.seg.on { background: var(--ink); color: #fff; }

/* find */
.find-label { padding: 14px 0 8px; }
.find-label:first-child { padding-top: 4px; }
.hunting-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; }
.hunting-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hunting-name { font-size: 27px; }
.hunting-text small { color: var(--muted); font-size: 13px; }
.outline-btn { height: 40px; padding: 0 16px; border: 1.5px solid var(--teal); color: var(--teal); border-radius: 20px; font-size: 14px; font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; }
.field select { height: 44px; padding: 0 30px 0 12px; border: 1px solid var(--rule); border-radius: 10px; background-color: var(--card); color: var(--ink); font: inherit; font-size: 16px;
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6f72' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toggle-tile { min-height: 58px; padding: 8px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center;
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px; }
.toggle-tile b { font-size: 14.5px; font-weight: 600; }
.toggle-tile small { font-size: 11.5px; color: var(--muted); }
.toggle-tile.on { border: 2px solid var(--teal); background: #e7f4ef; padding: 7px 9px; }
.toggle-tile.on b { color: var(--teal-deep); }
.link-btn { font-size: 13px; font-weight: 700; color: var(--teal); }
.find-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 6px 0; text-align: left; border-bottom: 1px solid var(--rule-soft); }
.find-row .swatch { width: 12px; height: 12px; }
@media (hover: hover) { .find-row:hover, .list-row:hover, .result:hover { background: rgba(10, 125, 99, 0.05); } }
.empty-note { color: var(--muted); font-size: 14px; padding: 14px 0; margin: 0; }
.more-btn { width: 100%; min-height: 44px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--teal); border: 1px solid var(--rule); border-radius: 10px; background: var(--card); }

.ledger-head { padding-top: 18px; }
.ledger-head .row { padding-bottom: 6px; }
.list-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; text-align: left; border-bottom: 1px solid var(--rule-soft); background: var(--paper); }
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-text b { font-size: 17px; font-weight: 600; }
.row-text small { font-size: 14px; color: var(--muted); }
.row-num { font-size: 25px; }
.track-row { min-height: 66px; }
.track-icon { color: var(--record); }
.chev { color: var(--muted); opacity: 0.6; }
.badge { display: inline-grid; place-items: center; font-weight: 800; flex: none; }
.empty { font-size: 29px; color: var(--muted); margin: 28px 0 0; }
.swipe { position: relative; overflow: hidden; }
.swipe > .list-row { position: relative; z-index: 1; touch-action: pan-y; }
.swipe-del { position: absolute; right: 0; top: 0; bottom: 0; width: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--record); color: #fff; font-size: 13px; font-weight: 600; }
@media (hover: hover) {
  .swipe:hover .swipe-del { width: 72px; }
  .swipe:hover > .list-row { transform: translateX(-72px); transition: transform 150ms ease; }
}
.county { min-height: 56px; }
.county-name { font-size: 25px; }
.county progress { width: 70px; accent-color: var(--teal); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); flex: none; }
.icon-btn.teal { color: var(--teal); }
.spinner { width: 28px; height: 28px; margin: 40px auto; border-radius: 50%; border: 3px solid var(--rule); border-top-color: var(--teal); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* sits */
.picker { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; margin-top: 8px; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; text-align: left; }
.picker-text { flex: 1; min-width: 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero { background: var(--ink); color: var(--paper); border-radius: 12px; padding: 16px; margin-top: 14px; }
.hero-main { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 6px; }
.hero-rating { font-size: 54px; display: block; }
.hero-best { margin: 6px 0 0; font-size: 15px; }
.hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 14px; color: #d6e2e3; text-align: right; }
.hero-next { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(245, 242, 234, 0.2); margin-top: 12px; padding-top: 10px; font-size: 14px; color: #d6e2e3; }
.week { margin-top: 18px; }
.week-head { display: flex; align-items: center; padding-bottom: 6px; }
.week-head > .eyebrow { flex: 1; }
.col { width: 86px; display: flex; justify-content: center; flex: none; }
.week-row { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--rule-soft); }
.week-day { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.week-day small { font-size: 13px; }
.rating { width: 74px; height: 28px; display: grid; place-items: center; border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; border: 1px solid transparent; }
.rating.prime { background: var(--teal-deep); color: #fff; }
.rating.strong { background: var(--teal); color: #fff; }
.rating.fair { background: var(--amber); color: var(--amber-ink); }
.rating.slow { background: var(--rule-soft); color: var(--ink); }
.rating.quiet, .rating.none { color: var(--muted); border-color: var(--rule); }

/* ---------------------------------------------------------------- sheet */
.scrim { position: fixed; inset: 0; z-index: 9; background: rgba(18, 51, 61, 0.28); }
.sheet { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; height: calc(100dvh - var(--safe-t) - 10px);
  display: flex; flex-direction: column; background: var(--card); border-radius: 16px 16px 0 0; box-shadow: 0 -4px 18px rgba(18, 51, 61, 0.22); will-change: transform; }
.sheet[data-kind="layers"], .sheet[data-kind="search"], .sheet[data-kind="actions"] { background: var(--paper); }
.grabber { width: 36px; height: 5px; border-radius: 3px; background: #c7c0b0; margin: 6px auto 0; flex: none; touch-action: none; }
.sheet-head { padding: 12px 18px 0; flex: none; touch-action: none; }
.sheet-body { flex: 1; overflow-y: auto; padding: 0 18px calc(var(--safe-b) + 30px); overscroll-behavior: contain; }
.sheet:not([data-detent="full"]) .sheet-body { overflow: hidden; touch-action: none; }
.sheet[data-detent="fit"] .sheet-body { overflow: visible; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.head-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.head-left .eyebrow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.swatch.outline { background: none; border: 2px solid; width: 11px; height: 11px; border-radius: 2px; }
.title-row { display: flex; align-items: flex-end; gap: 14px; padding: 12px 0; }
.title-text { flex: 1; min-width: 0; }
.title-text h2 { font-size: 35px; margin: 0; overflow-wrap: anywhere; }
.title-text .sub { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }
.title-num { display: flex; flex-direction: column; align-items: flex-end; border-left: 1px solid var(--rule); padding-left: 14px; }
.title-num .display { font-size: 41px; }
.ledger-row { display: flex; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); font-size: 15px; }
.ledger-row .l { width: 112px; flex: none; color: var(--muted); }
.ledger-row .v { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.warn { margin: 10px 0 0; padding: 10px; border-radius: 8px; background: rgba(245, 196, 81, 0.18); font-size: 14px; }
.primary { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; margin-top: 14px;
  background: var(--teal); color: #fff; border-radius: 10px; font-size: 17px; font-weight: 700; }
.action-strip { display: flex; margin-top: 10px; border: 1px solid var(--rule); border-radius: 10px; }
.action-strip button { flex: 1; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--teal); }
.action-strip button + button { border-left: 1px solid var(--rule-soft); }
.season-ledger { margin-top: 10px; }
.season-title { padding: 8px 0; }
.season { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule-soft); font-size: 15px; }
.amber-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: var(--amber); color: var(--amber-ink); white-space: nowrap; }
.status { font-size: 14px; color: var(--muted); white-space: nowrap; }
.status.closed { opacity: 0.7; }
.zone-title { padding: 18px 0 6px; }
.sheet-title { font-size: 33px; margin: 0; letter-spacing: 0.04em; }
.head-row:has(.sheet-title), .search-head { border-bottom: 0; }
.text-btn { font-size: 16px; font-weight: 700; color: var(--teal); padding: 8px 0 8px 8px; }

/* layers */
.bases { display: flex; gap: 10px; margin-top: 4px; }
.base { flex: 1; display: flex; flex-direction: column; gap: 6px; text-align: left; font-size: 14px; font-weight: 500; }
.base img { width: 100%; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid var(--rule); }
.base.on img { border: 3px solid var(--teal); }
.base.on span { color: var(--teal); font-weight: 700; }
.switch-row { display: flex; align-items: center; gap: 12px; min-height: 46px; border-bottom: 1px solid var(--rule-soft); font-size: 16px; cursor: pointer; }
.switch-row > span:nth-child(2) { flex: 1; }
.sw-fill { width: 18px; height: 18px; border-radius: 4px; flex: none; }
.sw-line { width: 18px; height: 3px; background: currentColor; flex: none; }
.sw-dash { width: 18px; height: 3px; flex: none; background: repeating-linear-gradient(90deg, currentColor 0 4.5px, transparent 4.5px 6.5px); }
input[role="switch"] { appearance: none; width: 51px; height: 31px; border-radius: 16px; background: #d8d3c6; position: relative; cursor: pointer; transition: background 150ms; flex: none; margin: 0; }
input[role="switch"]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: transform 150ms; }
input[role="switch"]:checked { background: var(--teal); }
input[role="switch"]:checked::after { transform: translateX(20px); }
.nav-row { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 46px; margin-top: 18px; border-top: 2px solid var(--ink); font-size: 16px; }
.nav-row .icon { color: var(--muted); }

/* search */
.search-head { display: flex; align-items: center; gap: 10px; padding-bottom: 0; }
.search-box { flex: 1; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px; background: var(--card); border: 2px solid var(--teal); border-radius: 10px; }
.search-input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.filters { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; margin: 0 -18px; padding-inline: 18px; scrollbar-width: none; }
.filter { height: 32px; padding: 0 12px; white-space: nowrap; font-size: 14px; font-weight: 600; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; }
.filter.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.result { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; text-align: left; border-bottom: 1px solid var(--rule-soft); }
.result .swatch { width: 14px; height: 14px; }
.result-name { font-size: 25px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-d { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.pad { padding-top: 20px; }

/* action sheet */
.actions-title { text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); padding: 4px 0 10px; }
.action-list { display: flex; flex-direction: column; }
.action { min-height: 52px; font-size: 17px; color: var(--teal); border-top: 1px solid var(--rule-soft); }
.action.danger { color: var(--record); }
.action.cancel { font-weight: 700; color: var(--ink); margin-top: 8px; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); }

/* ---------------------------------------------------------------- measure */
.measure-panel { position: fixed; z-index: 4; left: 12px; right: 12px; bottom: calc(var(--safe-b) + 12px); max-width: 480px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px 14px; }
.measure-read { display: flex; align-items: baseline; gap: 8px 12px; flex-wrap: wrap; }
body.measuring .panel, body.measuring .track-row { display: none; }

/* ---------------------------------------------------------------- tracking */
body.tracking .strip, body.tracking .rail, body.tracking .panel, body.tracking .track-row, body.tracking .maplibregl-ctrl-top-left { display: none; }
.tracking { position: fixed; inset: 0; z-index: 5; pointer-events: none; display: flex; flex-direction: column; }
.tracking > * { pointer-events: auto; }
.track-strip { display: flex; gap: 8px; padding: calc(var(--safe-t) + 8px) 16px 12px; background: var(--ink); }
.readout.dark .readout-value { color: var(--paper); }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5c5c; }
.track-cards { display: flex; gap: 8px; padding: 12px 12px 0; align-items: flex-start; pointer-events: none; }
.float-card { pointer-events: auto; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; box-shadow: var(--shadow); padding: 8px 12px; }
.float-card.truck { flex: 1; display: flex; align-items: center; gap: 10px; }
.float-card.scent { width: 132px; }
.truck-arrow { display: inline-flex; transition: transform 300ms ease; }
.card-value { display: block; font-size: 25px; margin-top: 2px; }
.track-panel { margin-top: auto; background: var(--card); border-radius: 16px 16px 0 0; box-shadow: 0 -3px 12px rgba(18, 51, 61, 0.2); padding: 14px 16px calc(var(--safe-b) + 10px); }
.mark-btns { display: flex; gap: 6px; }
.mark-btn { flex: 1; min-width: 0; min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; font-size: 12px; font-weight: 600; }
.mark-btn span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.track-actions { display: flex; gap: 8px; margin-top: 12px; }
.pause { width: 112px; height: 50px; border: 1px solid var(--ink); border-radius: 10px; font-size: 16px; font-weight: 600; }
.stop { flex: 1; height: 50px; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 10px; font-size: 16px; font-weight: 700; }
.stop-sq { width: 12px; height: 12px; border-radius: 2px; background: #ff5c5c; }

/* ---------------------------------------------------------------- species sheet */
.species { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; border-bottom: 1px solid var(--rule); text-align: left; }
.species .display { font-size: 27px; }
.check { width: 26px; height: 26px; border-radius: 6px; border: 2px solid #9aa6a3; background: var(--card); display: grid; place-items: center; color: #fff; flex: none; }
.check.on { background: var(--teal); border-color: var(--teal); }
.onboard-sub { padding: 22px 0 8px; }

/* ---------------------------------------------------------------- toast */
.toast { position: fixed; z-index: 30; left: 50%; top: calc(var(--strip-h) + 12px); transform: translate(-50%, -8px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 10px; transition: opacity 160ms, transform 160ms; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- wide screens
   The phone layout's pieces as a left column: dock, tab screens and sheets in
   a 400px panel, the strip across the top with the brand, the map to the right. */
@media (min-width: 900px) {
  :root { --strip-h: 0px; }
  .strip { top: 16px; left: 432px; right: auto; width: min(620px, calc(100vw - 520px)); min-height: 0; padding: 10px 18px; border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); }
  .rail { top: 16px; right: 16px; }
  .brand { display: inline-flex; }
  .panel { left: 16px; right: auto; top: 16px; bottom: 16px; width: 400px; border-radius: 16px; border: 1px solid var(--rule); box-shadow: var(--shadow); padding-bottom: 0; overflow: hidden; }
  .panel-top { padding: 16px 16px 4px; }
  .tabs { order: 2; border-top: 0; border-bottom: 1px solid var(--rule-soft); padding: 0 8px; }
  .panel-body { order: 3; flex: 1; height: auto; border-top: 0; }
  .track-row { left: 432px; bottom: 16px; }
  .sheet { left: 16px; right: auto; width: 400px; top: 16px; bottom: 16px; height: auto; border-radius: 16px; transform: none !important; border: 1px solid var(--rule); z-index: 10; }
  .sheet .grabber { visibility: hidden; height: 0; margin: 0; }
  .sheet .sheet-body { overflow-y: auto !important; touch-action: auto !important; }
  .scrim { background: transparent; }
  .sheet[data-kind="actions"] { top: auto; bottom: 16px; }
  .maplibregl-ctrl-top-left { top: 90px; left: 416px; }
  .toast { top: 90px; }
  .tracking .track-strip { padding-left: 20px; }
  .track-panel { width: 440px; margin: auto 16px 16px; border-radius: 16px; }
  .measure-panel { left: 432px; right: auto; width: 400px; bottom: 16px; margin: 0; }
}
@media (max-width: 899px) {
  body:not([data-tab=""]) .track-row { display: none; }
}
