:root {
  --bg: #0b1422;
  --card: rgba(13, 21, 34, 0.86);
  --card-solid: #0f1a2a;
  --line: rgba(255, 255, 255, 0.1);
  --text: #eef3f8;
  --dim: #9fb0c3;
  --accent: #ff6a5c;
  --accent-fill: #d63a2c; /* behind white text: 4.6:1 contrast, where --accent gives only 2.9:1 */
  --accent-2: #35d0c2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --gap: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; }
h2, h3, p, ul, dl { margin: 0; }
ul { list-style: none; padding: 0; }
svg { width: 20px; height: 20px; display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

#stage { position: fixed; inset: 0; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
#stage:active { cursor: grabbing; }
#stage.hot { cursor: pointer; }
#stage.tool { cursor: crosshair; }
#gl { width: 100%; height: 100%; display: block; }
#mline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
#mline polyline { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 8; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
#labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.ib { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--text); transition: background .15s, color .15s; }
.ib:hover { background: rgba(255, 255, 255, 0.09); }
.ib[aria-pressed="true"], .ib[aria-expanded="true"] { background: var(--accent-fill); color: #fff; }
kbd { font: 600 11px/1 var(--font); padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--dim); }

/* ---------- map labels ---------- */
.lbl { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; pointer-events: none; cursor: pointer; transition: opacity .18s; will-change: transform;
  color: #fff; font-weight: 700; font-size: 12px; line-height: 1.15;
  text-shadow: 0 0 3px rgba(6, 14, 26, .95), 0 1px 2px rgba(6, 14, 26, .95), 0 0 9px rgba(6, 14, 26, .55); }
.lbl.on { opacity: 1; pointer-events: auto; }
.lbl i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(6, 14, 26, .75); margin: 0 6px 1px 3px; vertical-align: middle; }
.lbl-city { font-size: 18px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lbl-town { font-size: 13.5px; }
.lbl-district, .lbl-area { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: #fff3cf; text-align: center; }
.lbl-island, .lbl-beach { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #ffe6a3; }
.lbl-water { font: italic 500 12.5px/1.15 Georgia, "Times New Roman", serif; color: #d3f1ff; letter-spacing: .02em; }
.lbl-water.big { font-size: 16px; opacity: .0; }
.lbl-water.big.on { opacity: .85; }
.lbl-park { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #cff7c8; }
.lbl-poi { font-size: 11px; font-weight: 600; }
.lbl-poi i { border-radius: 3px; width: 7px; height: 7px; background: var(--c, #fff); }
.lbl-county { font-size: 15px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .82); cursor: default; }
.lbl-shield { font-size: 9.5px; font-weight: 800; padding: 2px 4px; border-radius: 4px; text-shadow: none; cursor: default; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.lbl-shield.interstate { background: #2456c9; color: #fff; border-top: 3px solid #d8362f; border-radius: 4px 4px 8px 8px; }
.lbl-shield.us { background: #fff; color: #111; border: 1.5px solid #111; border-radius: 6px; }
.lbl-shield.toll { background: #ffd23d; color: #111; border: 1.5px solid #111; }
.lbl-shield.county { background: #1f4fa8; color: #ffd23d; border: 1.5px solid #ffd23d; }
.lbl.sel-on, .lbl.match { color: #fff; }
.lbl-sel { width: 46px; height: 46px; pointer-events: none !important; }
.lbl-sel::before, .lbl-sel::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid var(--accent); }
.lbl-sel::after { animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.lbl-pin { display: flex; flex-direction: column; align-items: center; font-size: 11px; font-weight: 700; }
.lbl-pin svg { width: 26px; height: 26px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.lbl-pin span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; background: rgba(8, 16, 28, .72); padding: 1px 6px; border-radius: 6px; margin-bottom: 1px; text-shadow: none; }
#labels.pin-names-off .lbl-pin:not(:hover) span { visibility: hidden; } /* many pins, zoomed out: icons only */
.lbl-mdot { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); pointer-events: none !important; }
.lbl-mtag { background: var(--accent-fill); color: #fff; padding: 3px 7px; border-radius: 8px; text-shadow: none; font-size: 11px; pointer-events: none !important; margin-top: -22px; }

/* ---------- left column ---------- */
.left { position: fixed; top: calc(var(--gap) + var(--safe-t)); left: var(--gap); bottom: 44px; width: 340px; display: flex; flex-direction: column; gap: var(--gap); pointer-events: none; z-index: 5; }
.left > * { pointer-events: auto; }
.search { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 8px; height: 50px; flex: none; }
.search .logo { width: 32px; height: 32px; flex: none; }
.search input { flex: 1; min-width: 0; height: 36px; background: none; border: 0; outline: 0; font-size: 15.5px; }
.search input::placeholder { color: var(--dim); }
#results { position: absolute; top: calc(100% + 6px); left: -1px; right: -1px; background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; max-height: min(60vh, 420px); overflow: auto; z-index: 10; }
#results li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer; }
#results li[aria-selected="true"], #results li:hover { background: rgba(255, 255, 255, 0.08); }
#results .none { color: var(--dim); cursor: default; }
#results .none:hover { background: none; }
.r-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; background: var(--c, #fff); }
.r-main { flex: 1; min-width: 0; }
.r-main b { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-main small, .plist small { color: var(--dim); font-size: 12px; }
.r-main mark { background: none; color: var(--accent-2); }
.r-grid { color: var(--dim); font: 600 11px var(--font); }

.panel { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.sheet-handle { display: none; }
.tabs { display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); flex: none; }
.tabs button { flex: 1; height: 32px; border-radius: 9px; color: var(--dim); font-weight: 650; }
.tabs button.on { background: rgba(255, 255, 255, 0.09); color: var(--text); }
.pill { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent-fill); color: #fff; font-size: 11px; line-height: 18px; }
.panel-body, #results, .modal-card { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent; }
.panel-body { overflow: auto; padding: 12px; overscroll-behavior: contain; }
.panel-body h3, .pop h3 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 700; margin: 2px 0 8px; }
.sec + .sec { margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 15px; border: 1px solid var(--line); color: var(--dim); font-weight: 600; font-size: 12.5px; transition: all .15s; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #fff); }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .25); }
.chip.on { background: rgba(255, 255, 255, 0.12); color: var(--text); border-color: rgba(255, 255, 255, .3); }
.blurb { color: var(--dim); font-size: 12.5px; margin-top: 8px; }
.plist li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 9px; cursor: pointer; }
.plist li:hover, .plist li:focus-visible { background: rgba(255, 255, 255, 0.07); }
.plist b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plist .grow { flex: 1; min-width: 0; }
.plist .dist { color: var(--dim); font-size: 12px; white-space: nowrap; }
.count { color: var(--dim); font-weight: 600; letter-spacing: 0; }
.empty { color: var(--dim); font-size: 13px; padding: 4px 0 10px; }

.back { display: inline-flex; align-items: center; gap: 2px; color: var(--dim); font-weight: 600; margin: -2px 0 8px -6px; padding: 4px 8px 4px 2px; border-radius: 8px; }
.back:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.back svg { width: 18px; height: 18px; }
.place h2 { font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--dim); flex-wrap: wrap; }
.badge { padding: 2px 8px; border-radius: 6px; background: var(--c, #fff); color: #0b1422; font-weight: 700; font-size: 11.5px; }
.note { margin-top: 10px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); font-weight: 650; font-size: 13px; transition: background .15s; }
.btn:hover { background: rgba(255, 255, 255, 0.13); }
.btn svg { width: 16px; height: 16px; fill: none; }
.btn.on svg { fill: #ffd23d; color: #ffd23d; }
.btn.primary { background: var(--accent-fill); border-color: transparent; color: #fff; }
.btn.primary:hover { background: #c23226; }
.btn.ghost { border-color: transparent; background: none; color: var(--dim); }
.btn.ghost:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.btn.danger { color: #ff9a90; }
.fine { color: var(--dim); font-size: 11.5px; margin-top: 12px; }
.field { display: block; margin-top: 10px; }
.field span { display: block; color: var(--dim); font-size: 12px; margin-bottom: 4px; }
.field input, .field textarea { width: 100%; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; outline: 0; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent-2); }
.field select, .shot select { width: 100%; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; color: var(--text); font: inherit; }
.field select option, .field select optgroup, .shot select option, .shot select optgroup { background: #0f1a2a; color: var(--text); }
.field.inline { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.field.inline span { margin: 0; }
.swatches { display: flex; gap: 8px; margin-top: 4px; }
.swatches button { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid transparent; }
.swatches button.on { border-color: #fff; box-shadow: 0 0 0 2px var(--c); }
.del { color: var(--dim); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; flex: none; }
.del:hover { color: #ff9a90; background: rgba(255, 255, 255, .07); }
.del svg { width: 16px; height: 16px; }

/* ---------- right column ---------- */
.right { position: fixed; top: calc(var(--gap) + var(--safe-t)); right: var(--gap); display: flex; flex-direction: column; align-items: flex-end; gap: var(--gap); z-index: 6; }
.seg { display: flex; padding: 4px; gap: 2px; }
.seg button { height: 34px; min-width: 52px; padding: 0 12px; border-radius: 10px; font-weight: 750; color: var(--dim); transition: all .15s; }
.seg button.on { background: var(--accent-fill); color: #fff; }
.seg.small { background: rgba(255, 255, 255, .05); border-radius: 10px; padding: 3px; }
.seg.small button { height: 28px; min-width: 0; flex: 1; border-radius: 8px; font-size: 12.5px; font-weight: 650; }
.rail { display: flex; flex-direction: column; padding: 4px; gap: 2px; }
.pop { position: absolute; top: 58px; right: 56px; width: 232px; padding: 12px; }
.pop label { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; }
.pop input { accent-color: var(--accent); width: 16px; height: 16px; }
.pop h3 + label { margin-top: -2px; }
.pop h3:not(:first-child) { margin-top: 12px; }

.nav { position: fixed; right: var(--gap); bottom: calc(44px + var(--safe-b)); display: flex; flex-direction: column; padding: 4px; gap: 2px; z-index: 5; }
#compass-needle { width: 24px; height: 24px; transition: transform .1s linear; }

.status { position: fixed; left: 364px; right: 64px; bottom: calc(10px + var(--safe-b)); display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); pointer-events: none; z-index: 4; }
.scale { display: flex; align-items: center; gap: 7px; }
.scale i { display: block; height: 6px; width: 80px; border: 2px solid #fff; border-top: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
#gridref { min-width: 96px; font-variant-numeric: tabular-nums; }
.disc { margin-left: auto; opacity: .8; font-weight: 500; }

.toolbar { position: fixed; left: 50%; transform: translateX(-50%); width: max-content; flex-wrap: wrap; justify-content: center; bottom: calc(44px + var(--safe-b)); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; z-index: 7; max-width: calc(100vw - 24px); }
.toolbar b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.toolbar span { color: var(--dim); font-size: 12.5px; }
.toolbar .btn { height: 30px; }

#toast button { margin-left: 10px; font-weight: 750; color: #c2372b; text-decoration: underline; }
#toast.act { pointer-events: auto; }
#toast { position: fixed; left: 50%; top: calc(74px + var(--safe-t)); transform: translate(-50%, -12px); background: #fff; color: #0b1422; font-weight: 650; padding: 9px 14px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: all .2s; z-index: 40; max-width: calc(100vw - 32px); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- onboarding, help ---------- */
.onboard { position: fixed; inset: 0; z-index: 30; display: grid; place-items: end center; padding: 20px 16px calc(64px + var(--safe-b)); background: radial-gradient(120% 90% at 50% 100%, rgba(5, 10, 18, .8), rgba(5, 10, 18, .35)); animation: fade .25s; }
.ob-card { width: min(430px, 100%); padding: 18px; background: var(--card-solid); }
.ob-art { height: 92px; border-radius: 10px; margin-bottom: 14px; background: linear-gradient(135deg, #0f3a5c, #1b8d9c 55%, #f1a37c); display: grid; place-items: center; overflow: hidden; }
.ob-art svg { width: 100%; height: 100%; }
.ob-card h2 { font-size: 19px; letter-spacing: -.01em; }
.ob-card p { color: #c6d2e0; margin-top: 6px; min-height: 61px; }
.ob-foot { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.ob-dots { display: flex; gap: 6px; margin-right: auto; }
.ob-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .22); transition: all .2s; }
.ob-dots i.on { background: var(--accent); width: 18px; border-radius: 4px; }
.spot { position: relative; z-index: 31 !important; box-shadow: 0 0 0 3px var(--accent), 0 0 0 9px rgba(255, 106, 92, .25), var(--shadow) !important; }
.spot, .spot * { pointer-events: none !important; } /* the tour points at a control; it does not hand it over */
.right:has(.spot), .left:has(.spot) { z-index: 31; }
.left:has(.spot) .panel, .right:has(.spot) > :not(.spot) { filter: brightness(.45); pointer-events: none; }
@keyframes fade { from { opacity: 0; } }

.modal { position: fixed; inset: 0; z-index: 35; background: rgba(5, 10, 18, .6); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.modal-card { position: relative; width: min(520px, 100%); max-height: min(86vh, 720px); overflow: auto; padding: 20px; background: var(--card-solid); }
.modal-card h2 { font-size: 20px; margin-bottom: 8px; }
.modal-card h3 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin: 16px 0 8px; }
.modal-card p { color: #c6d2e0; }
.modal-close { position: absolute; top: 10px; right: 10px; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; color: #c6d2e0; }
.keys span { color: var(--text); font-weight: 650; }
.keys li:has(span) { grid-column: 1 / -1; }

.dlg { background: var(--card-solid); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); width: min(440px, calc(100vw - 32px)); padding: 20px; }
.dlg::backdrop { background: rgba(5, 10, 18, .6); }
.dlg h2 { font-size: 19px; margin-bottom: 8px; }
.dlg p, .dlg li { color: #c6d2e0; }
.dlg ol, .dlg ul { margin: 8px 0; padding-left: 20px; list-style: revert; display: grid; gap: 6px; }
.dlg .actions { margin-bottom: 0; }
a.btn { text-decoration: none; color: var(--text); }

/* ---------- screenshot marker tool ---------- */
.shot { padding: 14px; z-index: 34; }
.shot-card { width: min(1180px, 100%); height: min(820px, 100%); display: flex; flex-direction: column; background: var(--card-solid); overflow: hidden; }
.shot-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); flex: none; }
.shot-head h2 { font-size: 17px; }
.shot-body { flex: 1; min-height: 0; display: flex; }
.shot-view { position: relative; flex: 1; min-width: 0; overflow: hidden; background: #060b14; touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.shot-drop { position: absolute; inset: 18px; border: 2px dashed rgba(255, 255, 255, .22); border-radius: 14px; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--dim); cursor: pointer; }
.shot-drop b { color: var(--text); font-size: 16px; }
.shot-drop:hover { border-color: var(--accent-2); }
.shot-inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; --inv: 1; }
.shot-inner img { display: block; width: 100%; height: 100%; pointer-events: none; }
.shot-dot { position: absolute; display: grid; place-items: center; width: 22px; height: 22px; margin: 0; border-radius: 50%; font: 800 11px/1 var(--font); font-style: normal; color: #fff; background: var(--accent-2); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .6); transform: translate(-50%, -50%) scale(var(--inv)); pointer-events: none; }
.shot-dot.cal { background: #1f6fe0; }
.shot-dot.pending { background: var(--accent); animation: pulse-dot 1s ease-in-out infinite alternate; }
.shot-dot.mark { background: var(--c, var(--accent)); font-size: 9px; }
.shot-dot.static { position: static; transform: none; flex: none; }
@keyframes pulse-dot { to { box-shadow: 0 0 0 8px rgba(255, 106, 92, .35); } }
.shot-zoom { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; padding: 3px; gap: 2px; cursor: default; }
.shot-side h3:focus { outline: none; }
.shot-side { width: 320px; flex: none; padding: 16px; overflow: auto; border-left: 1px solid var(--line); }
.shot-side h3 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.shot-steps { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: #c6d2e0; }
.shot-hint { color: #c6d2e0; margin-bottom: 10px; }
.shot-search input { width: 100%; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--accent-2); border-radius: 9px; padding: 9px 10px; outline: 0; }
.shot-search ul { margin-top: 4px; }
.shot-search li { padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.shot-search li.on, .shot-search li:hover { background: rgba(255, 255, 255, .08); }
.shot-search li b { display: block; font-weight: 600; }
.shot-search li small { color: var(--dim); font-size: 12px; }
.shot-pairs { margin: 12px 0; display: grid; gap: 6px; }
.shot-pairs li { display: flex; align-items: center; gap: 10px; }
.shot-pairs span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.shot-pairs .del { font-size: 18px; }
.shot-check { display: flex; gap: 9px; align-items: flex-start; margin: 12px 0; color: #c6d2e0; cursor: pointer; }
.shot-check input { accent-color: var(--accent); width: 16px; height: 16px; margin-top: 2px; flex: none; }
.shot-status { margin-top: 10px; padding: 9px 11px; border-radius: 10px; background: rgba(255, 255, 255, .05); color: #c6d2e0; }
.shot-status.ok { background: rgba(53, 208, 194, .12); color: #bff3ee; }
.shot-status.warn { background: rgba(255, 106, 92, .14); color: #ffd0cb; }
.btn:disabled { opacity: .45; cursor: default; }
@media (max-width: 760px) {
  .shot { padding: 0; }
  .shot-card { border-radius: 0; height: 100%; }
  .shot-body { flex-direction: column; }
  .shot-side { width: auto; max-height: 46%; border-left: 0; border-top: 1px solid var(--line); }
}

#loading { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--dim); font-weight: 600; transition: opacity .4s; }
#loading.done { opacity: 0; pointer-events: none; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .left { left: 8px; right: 8px; width: auto; top: calc(8px + var(--safe-t)); bottom: auto; z-index: 7; }
  .search { margin-right: 0; z-index: 9; }
  #q-hint { display: none; }
  .panel { position: fixed; left: 0; right: 0; bottom: 0; max-height: 54vh; border-radius: 18px 18px 0 0; border-bottom: 0; padding-bottom: var(--safe-b); transition: transform .28s cubic-bezier(.2, .8, .2, 1); z-index: 8; }
  .panel.collapsed { transform: translateY(calc(100% - 74px - var(--safe-b))); }
  .sheet-handle { display: grid; place-items: center; width: 100%; height: 22px; flex: none; }
  .sheet-handle i { width: 38px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
  .tabs { padding-top: 0; }
  .right { top: calc(68px + var(--safe-t)); right: 8px; gap: 8px; }
  .pop { top: 52px; right: 52px; }
  .nav { right: 8px; bottom: calc(86px + var(--safe-b)); }
  .nav #btn-zin, .nav #btn-zout { display: none; }
  .status { left: 10px; right: 60px; bottom: calc(82px + var(--safe-b)); }
  .disc, #gridref { display: none; }
  .toolbar { bottom: calc(112px + var(--safe-b)); }
  .onboard { padding-bottom: calc(92px + var(--safe-b)); } /* clear of the collapsed sheet */
  .lbl-city { font-size: 15px; }
  .keys { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
