/* SurvivalZone app — dark, high-contrast, large touch targets */
:root {
  --bg: #0B0C0A; --card: #141613; --card2: #1A1D18; --line: #2A2D28;
  --text: #EDE9E1; --muted: #A8A49B; --dim: #7E7B73;
  --green: #7DBA8E; --green-d: #5E9E70; --orange: #E8692F; --cta: #C84A1B; --red: #D9483B;
  --r: 14px; --safe-b: env(safe-area-inset-bottom, 0px);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; font-size: 16px; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
a { color: var(--green); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: 1.6rem; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .8em; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: rgba(11,12,10,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: .06em; font-size: .95rem; }
.brand b { color: var(--green); font-weight: 800; }
.brand img { border-radius: 8px; }
.net { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.net.off { color: #fff; background: #3A2A1A; border-color: #6A3F1F; }
.net.on::before, .net.off::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--green); }
.net.off::before { background: var(--orange); }

main { padding: 16px 16px calc(96px + var(--safe-b)); max-width: 720px; margin: 0 auto; outline: none; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr);
  background: rgba(15,17,14,.97); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 10px; text-decoration: none; color: var(--dim); font-size: .72rem; font-weight: 600; }
.tabs a svg { width: 24px; height: 24px; }
.tabs a[aria-current="page"] { color: var(--text); }
.tabs a[aria-current="page"] svg { color: var(--green); }
.tabs a.sos { color: #fff; }
.tabs a.sos svg { color: var(--red); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 12px; }
.card.warn { background: #1F1510; border-color: #5A2E18; }
.card.ok { background: #121A14; border-color: #2D4A35; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.label { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.label.g { color: var(--green); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 6px; min-height: 104px; padding: 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  text-decoration: none; color: var(--text); font-weight: 700; font-size: .98rem; line-height: 1.2; }
.tile .ico { font-size: 1.6rem; line-height: 1; }
.tile small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.tile:active { transform: scale(.98); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card2); color: var(--text); font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn.green { background: #1E3325; border-color: #2D4A35; color: #DDF0E2; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stack > * + * { margin-top: 10px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 10px 0 10px 44px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 9px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cta); color: #fff; font-weight: 800; font-size: .95rem; }
.steps.g li::before { background: #2D4A35; color: #DDF0E2; }
ul.dots { padding-left: 20px; margin: 0; }
ul.dots li { margin: 4px 0; }
ul.no { list-style: none; padding: 0; margin: 0; }
ul.no li { padding: 4px 0 4px 26px; position: relative; }
ul.no li::before { content: "✕"; position: absolute; left: 2px; color: var(--red); font-weight: 800; }

.check { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.check:last-child { border-bottom: 0; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green-d); flex: none; }
.check .q { margin-left: auto; color: var(--green); font-weight: 700; white-space: nowrap; padding-left: 8px; }
.check.done span:first-of-type { color: var(--dim); text-decoration: line-through; }

.field { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: 0; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card2); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; font-size: 1.1rem; }
input[type=text], input[type=tel], input[type=number], input[type=time], select, textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2); }
.toggle { display: flex; align-items: center; gap: 10px; }
.toggle input { width: 22px; height: 22px; accent-color: var(--green-d); }

.bar { height: 10px; border-radius: 999px; background: var(--card2); overflow: hidden; border: 1px solid var(--line); }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--green-d), var(--green)); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { flex: none; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .85rem; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: #1E3325; border-color: #2D4A35; color: #DDF0E2; }

.place { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.place .pi { font-size: 1.3rem; width: 28px; text-align: center; }
.place .pn { font-weight: 600; }
.place .pd { margin-left: auto; text-align: right; white-space: nowrap; font-weight: 700; color: var(--green); }
.place .pd small { display: block; font-weight: 500; color: var(--muted); }

.radar { width: 100%; max-width: 360px; aspect-ratio: 1; display: block; margin: 0 auto; }
.nav-target { text-align: center; }
.arrow { width: 180px; height: 180px; margin: 6px auto; display: block; transition: transform .25s ease-out; }
.big { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }

.sos-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 120px; border-radius: 20px; background: var(--red);
  color: #fff; text-decoration: none; font-weight: 800; font-size: 2.6rem; letter-spacing: .02em; border: 0; }
.sos-btn small { font-size: .95rem; font-weight: 600; letter-spacing: 0; opacity: .9; }
.coords { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.15rem; font-weight: 700; word-break: break-all; }

.flash { position: fixed; inset: 0; z-index: 50; background: #000; display: flex; align-items: flex-end; justify-content: center; padding-bottom: calc(40px + var(--safe-b)); }
.flash.on { background: #fff; }
.flash button { background: rgba(60,60,60,.85); color: #fff; border: 0; border-radius: 999px; padding: 14px 26px; font-weight: 700; font-size: 1rem; }

.toast { position: fixed; left: 50%; bottom: calc(86px + var(--safe-b)); transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; z-index: 60;
  background: #26302A; color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; transition: all .25s; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; margin-bottom: 10px; min-height: 40px; }
details.card summary { cursor: pointer; font-weight: 700; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after { content: "+"; float: right; color: var(--muted); font-weight: 800; }
details.card[open] summary::after { content: "–"; }
details.card[open] summary { margin-bottom: 8px; }

/* Battery saver: pure black, no decoration */
body.saver { --card: #000; --card2: #000; --line: #222; --bg: #000; }
body.saver * { animation: none !important; transition: none !important; box-shadow: none !important; }

@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Map */
.mapwrap { position: relative; height: 56vh; min-height: 320px; max-height: 620px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #0E100D; }
.mapwrap canvas { display: block; width: 100%; height: 100%; }
.mapctl { position: absolute; right: 10px; bottom: 28px; display: flex; flex-direction: column; gap: 8px; }
.mapctl button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(20,22,19,.92); color: var(--text); font-size: 1.25rem; font-weight: 700; cursor: pointer; }
.mapctl button[aria-pressed="true"] { background: #1E3325; border-color: #2D4A35; }
.mapcard { position: absolute; left: 10px; right: 64px; bottom: 28px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(20,22,19,.96); border: 1px solid var(--line); }
.mapcard[hidden] { display: none; }
.dirline { text-align: center; margin: 10px 0 4px; }
.dialwrap { display: flex; justify-content: center; margin: 6px 0; }
.dial .ring, .dial .needle { transition: transform .25s ease-out; }

.langbtn { min-width: 40px; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); color: var(--text); font-weight: 800; font-size: .78rem; letter-spacing: .06em; cursor: pointer; }
.net, .langbtn { white-space: nowrap; }
@media (max-width: 360px) {
  .top { padding-left: 12px; padding-right: 12px; }
  .brand { font-size: .8rem; gap: 6px; }
  .brand img { width: 26px; height: 26px; }
  .net { padding: 4px 8px; font-size: .7rem; }
  .langbtn { min-width: 34px; padding: 0 8px; }
}
.top .row { flex-wrap: nowrap; }

[hidden] { display: none !important; }
button.sos-btn { cursor: pointer; font-family: inherit; }

.checkrow { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.checkrow:last-child { border-bottom: 0; }
.checkrow .check { flex: 1; border-bottom: 0; }
.buy { flex: none; font-size: .8rem; font-weight: 700; color: var(--orange); text-decoration: none; padding: 6px 10px; border: 1px solid #5A2E18; border-radius: 999px; }
.q2 { display: block; color: var(--green); font-size: .88rem; margin-top: 2px; }
.check.done .q2 { color: var(--dim); }

.startcard { margin-bottom: 18px; }
.stepline { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #2D4A35; color: var(--text); text-decoration: none; font-weight: 600; }
.stepline .num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--cta); color: #fff; font-weight: 800; font-size: .9rem; }
.stepline.done .num { background: #2D4A35; color: #DDF0E2; }
.stepline.done span:nth-child(2) { color: var(--muted); text-decoration: line-through; }
.stepline small { display: block; font-weight: 500; color: var(--muted); margin-top: 3px; }
.stepline em { margin-left: auto; font-style: normal; color: var(--green); font-weight: 700; font-size: .85rem; }
.tabhelp { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: .85rem; color: var(--muted); }
.tabhelp b { color: var(--text); }

/* Guided tour */
.tour-block { position: fixed; inset: 0; z-index: 80; }
.tour-ring { position: fixed; z-index: 81; border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(4,5,4,.74), 0 0 0 3px #E8692F; animation: tourPulse 1.6s ease-out infinite; transition: top .25s, left .25s, width .25s, height .25s; }
@keyframes tourPulse { 0% { box-shadow: 0 0 0 9999px rgba(4,5,4,.74), 0 0 0 3px #E8692F, 0 0 0 3px rgba(232,105,47,.6); } 100% { box-shadow: 0 0 0 9999px rgba(4,5,4,.74), 0 0 0 3px #E8692F, 0 0 0 16px rgba(232,105,47,0); } }
.tour-tip { position: fixed; left: 16px; right: 16px; max-width: 440px; margin: 0 auto; z-index: 82; background: #161814; border: 1px solid #5A2E18; border-radius: 16px; padding: 14px 16px 12px; box-shadow: 0 18px 50px rgba(0,0,0,.6); }
.tour-tip b { display: block; font-size: 1.05rem; margin: 2px 0 4px; }
.tour-tip p { margin: 0 0 10px; color: #D6D2CA; font-size: .95rem; }
.tour-step { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.tour-dots { display: flex; gap: 5px; margin-bottom: 10px; }
.tour-dots i { width: 18px; height: 4px; border-radius: 4px; background: #34372F; }
.tour-dots i.done { background: #7A4A33; } .tour-dots i.on { background: var(--orange); width: 28px; }
.tour-btns { display: flex; gap: 8px; align-items: center; }
.tour-btns button { min-height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); color: var(--text); font-weight: 700; padding: 0 16px; cursor: pointer; }
.tour-btns .tour-skip { background: none; border: 0; color: var(--muted); padding: 0 6px; }
.tour-btns .tour-next { margin-left: auto; background: var(--cta); border-color: var(--cta); color: #fff; }
.helpbtn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--card2); color: var(--text); font-weight: 800; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .tour-ring { animation: none; } }

/* Crisis step-by-step */
.cs-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; }
.cs-head .bar { flex: 1; }
.cs-head b { white-space: nowrap; color: var(--orange); font-size: .9rem; }
.cs-step { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); margin-bottom: 8px; }
.cs-step .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #26291F; color: var(--muted); font-weight: 800; }
.cs-step.done { opacity: .6; } .cs-step.done .n { background: #2D4A35; color: #DDF0E2; }
.cs-step.todo { opacity: .55; }
.cs-step.now { border: 2px solid var(--orange); background: #1F1510; box-shadow: 0 0 0 4px rgba(232,105,47,.15); }
.cs-step.now .n { background: var(--cta); color: #fff; }
.cs-step .tag { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .14em; color: #fff; background: var(--cta); border-radius: 999px; padding: 2px 8px; margin-bottom: 6px; }
.cs-step p { margin: 0; }
.cs-step .btn { margin-top: 10px; }
.cs-sec { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin: 14px 0 8px; }

.buy.partner { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; border-color: #2D4A35; color: var(--green); max-width: 120px; text-align: right; }
.buy.partner small { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kitcard { display: block; text-decoration: none; color: inherit; border-color: #5A2E18; background: #1F1510; }
.kitcard b { display: block; margin: 2px 0; }

/* Location consent (first visit) */
.loc-ask { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(5,6,5,.72); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; padding: 16px; }
.loc-ask.on { opacity: 1; }
.loc-card { width: 100%; max-width: 440px; background: #161814; border: 1px solid #5A2E18; border-radius: 22px; padding: 22px 20px 14px; box-shadow: 0 20px 60px rgba(0,0,0,.6); transform: translateY(24px); transition: transform .25s; text-align: center; }
.loc-ask.on .loc-card { transform: none; }
@media (min-height: 640px) { .loc-ask { align-items: center; } }
.loc-ico { position: relative; width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: rgba(232,106,31,.15); display: grid; place-items: center; font-size: 30px; }
.loc-ico span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--cta); animation: locpulse 1.8s ease-out infinite; }
@keyframes locpulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.loc-card h2 { margin: 0 0 6px; font-size: 22px; }
.loc-card p { margin: 0 0 10px; color: var(--muted, #B9BDB3); }
.loc-list { list-style: none; padding: 0; margin: 0 0 12px; text-align: left; display: grid; gap: 8px; }
.loc-list li { background: #1E211C; border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.loc-priv { font-size: 13px; }
.loc-denied { background: rgba(214,54,54,.12); border: 1px solid rgba(214,54,54,.4); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; text-align: left; }
.loc-no { background: none; border: 0; color: var(--muted, #B9BDB3); font: inherit; padding: 12px; margin-top: 4px; width: 100%; cursor: pointer; text-decoration: underline; }

/* Pick a place on the map: the star stays in the middle, the map moves under it */
.pickmap .pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); font-size: 34px; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0,0,0,.7)); }
.pickmap .pin::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--cta); box-shadow: 0 0 0 3px rgba(232,106,31,.35); }

/* Medicines */
.dose { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.dose:first-of-type { border-top: 0; }
.dose .dt { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 48px; }
.dose .dn { flex: 1; min-width: 0; }
.dose .dn small { display: block; color: var(--muted, #B9BDB3); }
.dose .btn { min-height: 40px; padding: 8px 14px; white-space: nowrap; }
.dose.taken .dt, .dose.taken .dn b { opacity: .55; text-decoration: line-through; }
.dose.now { background: rgba(232,106,31,.10); margin: 0 -12px; padding: 10px 12px; border-radius: 12px; }
.tag-now, .tag-miss { display: inline-block; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; margin-top: 3px; }
.tag-now { background: var(--cta); color: #fff; animation: locpulse2 1.6s ease-in-out infinite; }
.tag-miss { background: rgba(214,54,54,.18); color: #FF8A80; }
@keyframes locpulse2 { 50% { opacity: .6; } }
.medrow { display: block; text-decoration: none; color: inherit; }
.medrow .times { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.medrow .times span { background: #1E211C; border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 700; }
.medrow .times .supply { background: none; font-weight: 600; }
.supply.okt { color: #8FD19E; } .supply.warnt { color: var(--cta); } .supply.bad { color: #FF8A80; }
.flabel { display: block; font-size: 14px; font-weight: 700; margin: 14px 0 6px; }
.timelist .trow { display: flex; gap: 8px; margin-bottom: 8px; }
.timelist .trow input { flex: 1; }
.timelist .trow .btn { min-height: 44px; padding: 8px 14px; }
.medsos { margin: 0 0 10px; padding-left: 18px; } .medsos li { margin-bottom: 6px; }
.meddue { border-color: var(--cta) !important; }

details.card summary .okc { color: var(--green, #5E9E70); font-weight: 700; margin-left: 6px; }
details.card summary .todo { color: var(--cta); font-weight: 700; margin-left: 6px; }
.toolrow { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: inherit; font-weight: 700; }
.toolrow em { font-style: normal; color: var(--muted); }

/* Home readiness list */
.readylist { padding: 4px 14px; }
.readyrow { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.readyrow:first-child { border-top: 0; }
.readyrow .ri { width: 26px; text-align: center; font-size: 18px; }
.readyrow b { flex: 1; font-weight: 700; }
.readyrow .rs { font-size: 13px; font-weight: 700; }
.readyrow .rs.okc { color: var(--green, #5E9E70); } .readyrow .rs.todo { color: var(--cta); }
.readyrow em { font-style: normal; color: var(--muted); }
.protease { display: block; text-decoration: none; color: inherit; border-color: #5A4A18 !important; background: linear-gradient(135deg, #1b1a12, #161814); }
.protease b { display: block; margin: 2px 0 4px; } .protease .label { color: #E0B84E; }
.prohint { display: block; margin-top: 12px; font-size: 13px; color: #E0B84E; text-decoration: none; }
/* Pro screen */
.prohero .label { color: #E0B84E; }
.ticks { list-style: none; padding: 0; margin: 0; } .ticks li { padding: 6px 0 6px 26px; position: relative; } .ticks li::before { content: '✓'; position: absolute; left: 2px; color: var(--green, #5E9E70); font-weight: 800; }
.procard { border-color: #5A4A18 !important; } .procard .label { color: #E0B84E; }
.soon { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(224,184,78,.15); color: #E0B84E; padding: 3px 8px; border-radius: 999px; }
.profeat > div { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); } .profeat > div:first-child { border-top: 0; }
.profeat span { font-size: 22px; width: 28px; text-align: center; } .profeat p { margin: 0; } .profeat small { display: block; color: var(--muted, #B9BDB3); }
.price { margin: 10px 0 0; font-weight: 700; color: #E0B84E; font-size: 14px; }
input[type=email] { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2); }
/* Wizard */
.wsteps { display: flex; align-items: center; gap: 6px; margin: 4px 0 14px; } .wsteps i { width: 28px; height: 6px; border-radius: 3px; background: var(--line); } .wsteps i.on { background: var(--cta); } .wsteps i.done { background: var(--green, #5E9E70); } .wsteps span { margin-left: 8px; font-size: 13px; color: var(--muted); }
input.big { font-size: 20px; padding: 16px; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slot { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--card2, #1E211C); color: inherit; font: inherit; cursor: pointer; text-align: left; }
.slot span { color: var(--muted); font-variant-numeric: tabular-nums; }
.slot[aria-pressed=true] { border-color: var(--cta); background: rgba(232,106,31,.12); }
.slot[aria-pressed=true] b::before { content: '✓ '; color: var(--cta); }
.donebox { text-align: center; margin: 10px 0 16px; } .bigok { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; background: rgba(94,158,112,.18); color: var(--green, #5E9E70); display: grid; place-items: center; font-size: 32px; font-weight: 800; }
#feats { flex-wrap: wrap; overflow: visible; }

/* Assistant */
#askfab { position: fixed; right: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: 6px; padding: 10px 16px 10px 12px; border-radius: 999px; background: #1E211C; border: 1px solid var(--cta); color: #fff; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.5); font-weight: 800; }
#askfab span { font-size: 20px; } #askfab[hidden] { display: none; }
.askhead { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; } .askhead > div:nth-child(2) { flex: 1; }
.askhead .avatar { width: 46px; height: 46px; border-radius: 50%; background: rgba(232,106,31,.15); border: 1px solid var(--cta); display: grid; place-items: center; font-size: 24px; }
.chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; line-height: 1.45; font-size: 15px; }
.msg.bot { background: #1A1D18; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--cta); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.urgent { border-color: var(--red); background: rgba(214,54,54,.12); }
.msg .src { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 4px; letter-spacing: .03em; }
.msg .acts { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.msg .acts .btn { min-height: 40px; padding: 8px 12px; justify-content: flex-start; font-size: 14px; }
.msg .acts .btn small { margin-left: auto; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.msg .acts .buyb { border-color: #5A4A18; }
.typing { display: flex; gap: 5px; } .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: tdot 1s infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 50% { opacity: .2; transform: translateY(-3px); } }
.askbar { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); display: flex; gap: 8px; background: var(--bg, #0B0C0A); padding: 8px 0; }
.askbar input { flex: 1; } .askbar .btn { min-width: 52px; }
.askfoot { margin-top: 4px; }
#sugg { flex-wrap: wrap; overflow: visible; }
main#view { padding-bottom: 140px; }

/* Onboarding */
body.onb #tabs, body.onb #askfab, body.onb #help { display: none !important; }
body.onb main#view { padding-bottom: 40px; }
.onbwelcome { text-align: center; padding-top: 18px; } .onbwelcome img { border-radius: 22px; margin-bottom: 10px; }
.onbwelcome h1 { font-size: 28px; line-height: 1.15; } .onbwelcome .ticks { text-align: left; margin: 16px 0 20px; }
.onbwelcome .btn { margin-bottom: 10px; }
.btn.big { min-height: 56px; font-size: 17px; font-weight: 800; }
.onbbar { display: flex; align-items: center; gap: 12px; margin: 6px 0 18px; } .onbbar > div { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; } .onbbar i { display: block; height: 100%; background: var(--cta); border-radius: 3px; transition: width .3s; }
.onbskip { background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
.pickgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.pick { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 14px; min-height: 92px; border-radius: 14px; border: 2px solid var(--line); background: var(--card2); color: inherit; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.pick span { font-size: 24px; } .pick[aria-pressed=true] { border-color: var(--cta); background: rgba(232,106,31,.12); } .pick[aria-pressed=true]::after { content: '✓'; color: var(--cta); font-weight: 800; margin-top: auto; }
.onbloc { text-align: center; } .onbloc .loc-list { margin: 14px 0; } .onbloc .btn { margin-top: 10px; }
.onbdone { text-align: center; margin: 10px 0 18px; } .onbdone .ring { margin-bottom: 8px; }
.nextlist { padding: 4px 14px; } .nextrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; } .nextrow:first-child { border-top: 0; }
.nextrow .num { width: 28px; height: 28px; border-radius: 50%; background: rgba(232,106,31,.15); color: var(--cta); display: grid; place-items: center; font-weight: 800; flex: none; }
.nextrow > span:nth-child(2) { flex: 1; } .nextrow small { display: block; color: var(--muted); } .nextrow em { font-style: normal; color: var(--muted); }
.choice { justify-content: center; }
/* Home: next step */
.nextcard { display: flex; gap: 14px; align-items: center; border-color: #5A2E18 !important; }
.nextcard .ring { flex: none; } .nxbody { flex: 1; min-width: 0; } .nxbody b { display: block; font-size: 16px; } .nxbody small { display: block; margin: 2px 0 8px; }
.nxgo { min-height: 40px; padding: 8px 14px; font-size: 14px; }

.mapctl button.on { border-color: var(--cta); color: var(--cta); background: rgba(232,106,31,.15); }
.mapwrap canvas { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

.iosteps { margin: 8px 0 0; padding-left: 20px; } .iosteps li { margin-bottom: 6px; line-height: 1.4; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); margin-top: 12px; }
.seg button { border: 0; border-radius: 10px; padding: 10px 6px; background: none; color: var(--muted); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.seg button[aria-pressed=true] { background: var(--cta); color: #fff; }

.scanbox .scanbtn { justify-content: flex-start; } .scanbox .scanbtn span { font-size: 20px; }
.msg .thumbs { display: flex; gap: 6px; margin-bottom: 6px; } .msg .thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,.3); }
.askbar #camb { min-width: 48px; padding: 8px; }

/* Help pill instead of a bare "?" */
.helpbtn { width: auto; height: 32px; padding: 0 12px 0 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text); border-color: #5A2E18; }
.helpbtn b { font-weight: 700; }
@media (max-width: 360px) { .helpbtn b { display: none; } .helpbtn { padding: 0 8px; } }
/* Desktop: phone-width column + side panel */
#deskside { display: none; }
@media (min-width: 980px) {
  body { background: radial-gradient(circle at 30% 20%, #15180F 0, #0B0C0A 60%); }
  .top, main, .tabs { max-width: 460px; margin-left: auto; margin-right: auto; }
  main { background: var(--bg); border-left: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 100vh; }
  .top { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .tabs { left: 50%; right: auto; width: 460px; transform: translateX(-50%); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  #askfab { right: calc(50% - 230px + 14px); }
  #deskside { position: fixed; top: 90px; left: calc(50% + 260px); width: 300px; z-index: 3; }
  .dsk { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
  .dsk img { border-radius: 14px; } .dsk h2 { margin: 10px 0 6px; font-size: 20px; }
  .dkurl { font-size: 20px; font-weight: 800; color: var(--cta); margin: 10px 0; letter-spacing: .01em; }
  .dksteps { padding-left: 18px; margin: 0 0 14px; } .dksteps li { margin-bottom: 6px; font-size: 14px; }
  .tour-tip { max-width: 420px; }
}
@media (min-width: 1180px) { #deskside { display: block; } }
body.onb #deskside { display: none; }
@media (max-width: 340px) { .nextcard { flex-direction: column; text-align: center; } .nextcard .nxgo { margin: 0 auto; } }
@media (max-width: 430px) { .net { font-size: 0; padding: 7px; line-height: 0; } .net::before { margin-right: 0 !important; vertical-align: middle !important; } .brand { font-size: .88rem; } }

.devline { font-size: 12px; color: var(--muted); margin-bottom: 6px; } .devline b { color: var(--text); }

/* Choosing a spot on the map: always-visible cancel and actions */
.pickbar { position: sticky; top: 56px; z-index: 4; display: flex; align-items: center; gap: 12px; margin: -16px -16px 10px; padding: 10px 16px; background: rgba(11,12,10,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.pickbar .btn { min-height: 40px; padding: 8px 14px; flex: none; }
.pickbar b { font-size: 16px; line-height: 1.2; }
.pickactions { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 4; display: flex; flex-direction: column; gap: 8px; padding: 10px 0 6px; background: linear-gradient(to bottom, rgba(11,12,10,0), var(--bg) 18%); }

/* ---------- Fit to the phone ---------- */
/* iPhone zooms in on fields with text smaller than 16px; this keeps the page still while typing. */
input, select, textarea { font-size: 16px; }
/* Real visible height (iOS Safari toolbars change it): maps and full screens use it. */
.mapwrap { height: calc(var(--vh, 1vh) * 56); }
.pickmap { height: calc(var(--vh, 1vh) * 40) !important; }
/* Keyboard open: hide the bottom bar and the assistant button so the field stays visible. */
body.kbd .tabs, body.kbd #askfab { display: none !important; }
body.kbd main { padding-bottom: 24px; }
body.kbd .askbar { bottom: 0; }
/* Small phones (iPhone SE, mini, small Androids): tighter spacing, everything still fits. */
body.sm main { padding-left: 12px; padding-right: 12px; }
body.sm h1 { font-size: 1.4rem; }
body.sm .card { padding: 12px 13px; }
body.sm .tile { min-height: 92px; padding: 12px; font-size: .95rem; }
body.sm .sos-btn { padding-top: 16px; padding-bottom: 16px; }
body.sm .mapwrap { height: calc(var(--vh, 1vh) * 50); min-height: 280px; }
body.xs .tabs a span { font-size: .66rem; }
body.xs .brand span { display: none; }
/* Big phones (Pro Max, Plus, big Androids): a little more air and bigger tap targets. */
body.lg h1 { font-size: 1.75rem; }
body.lg .tile { min-height: 116px; }
body.lg .btn { min-height: 52px; }
/* iPhone added to the home screen: room for the Dynamic Island and the home bar. */
body.os-ios.standalone .tabs { padding-bottom: max(var(--safe-b), 10px); }
/* Android: system navigation bar often overlaps; keep a little gap. */
body.os-android .tabs { padding-bottom: max(var(--safe-b), 4px); }
/* Landscape on a phone: shorter map, no wasted height. */
@media (orientation: landscape) and (max-height: 500px) { .mapwrap { height: calc(var(--vh, 1vh) * 78); min-height: 220px; } .top { padding-top: 6px; padding-bottom: 6px; } }
/* Read aloud button */
.voicebtn { min-height: 40px; padding: 8px 14px; margin: -2px 0 12px; font-size: 14px; }
.voicebtn[aria-pressed=true] { border-color: var(--cta); color: var(--cta); background: rgba(232,106,31,.12); }
/* Assistant button: a small round icon while scrolling and on small phones, so it never hides content */
#askfab { transition: padding .2s, gap .2s; }
#askfab.mini, body.sm #askfab { padding: 11px; gap: 0; }
#askfab.mini b, body.sm #askfab b { display: none; }
/* The page stays put: no rubber-band bouncing, no sideways drifting, no double-tap zoom (pinch still works). */
html, body { overscroll-behavior: none; }
/* 'clip' stops sideways drifting without turning the page into a separate scroll box
   (with 'hidden' iPhone loses the sticky header, the scroll bar and tap-the-clock-to-go-up). */
html { overflow-x: hidden; } body { overflow-x: clip; }
@supports not (overflow: clip) { body { overflow-x: visible; } }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { touch-action: manipulation; }
/* Stable heights: small-viewport units where supported, measured height otherwise. */
@supports (height: 1svh) {
  .mapwrap { height: 56svh; }
  .pickmap { height: 40svh !important; }
  body.sm .mapwrap { height: 50svh; }
}

/* Plan tools */
.toolgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.tool { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: inherit; text-decoration: none; font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.2; }
.tool span { font-size: 22px; }
/* Drills */
.drillrow { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.drillrow .dico { font-size: 28px; } .drillrow span:nth-child(2) { flex: 1; } .drillrow small { display: block; color: var(--muted); } .drillrow em { font-style: normal; font-weight: 800; }
.drillhead { display: flex; align-items: baseline; justify-content: space-between; position: sticky; top: 56px; background: var(--bg); padding: 8px 0; z-index: 3; }
.clock { font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; } .clock.late { color: var(--red); }
.drillitem { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; margin-bottom: 8px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.drillitem .dbox { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--muted); flex: none; display: grid; place-items: center; }
.drillitem[aria-pressed=true] { border-color: var(--green, #5E9E70); background: rgba(94,158,112,.10); }
.drillitem[aria-pressed=true] .dbox { background: var(--green, #5E9E70); border-color: var(--green, #5E9E70); } .drillitem[aria-pressed=true] .dbox::after { content: '✓'; color: #fff; font-weight: 800; }
.bigbadge { font-size: 72px; line-height: 1; margin-bottom: 8px; }
/* Supply check */
.ckrow { padding: 8px 0; border-top: 1px solid var(--line); } .ckrow:first-child { border-top: 0; }
.ckdate { display: flex; align-items: center; gap: 8px; margin: 6px 0 0 34px; } .ckdate input { width: auto; padding: 6px 10px; }
/* Warnings */
.warncard.lv2 { border-color: #B8641F !important; } .warncard.lv3 { border-color: var(--red) !important; background: rgba(214,54,54,.08); }
.warnhome { display: block; text-decoration: none; color: inherit; border-color: var(--cta) !important; }
/* Printable family card */
.printcard { background: #fff; color: #111; border-radius: 14px; padding: 18px; font-size: 13px; line-height: 1.4; }
.printcard header { display: flex; gap: 10px; align-items: center; border-bottom: 2px solid #E86A1F; padding-bottom: 10px; margin-bottom: 10px; }
.printcard header b { display: block; font-size: 18px; } .printcard header small { color: #555; }
.printcard h3 { font-size: 14px; margin: 12px 0 6px; } .printcard h4 { font-size: 13px; margin: 0 0 4px; }
.printcard table { width: 100%; border-collapse: collapse; } .printcard td { padding: 4px 0; border-bottom: 1px solid #ddd; } .printcard td + td { text-align: right; }
.pc-sos { display: flex; flex-wrap: wrap; gap: 8px; } .pc-sos div { flex: 1; min-width: 90px; border: 2px solid #D63636; border-radius: 10px; padding: 6px 8px; text-align: center; }
.pc-sos b { display: block; font-size: 22px; color: #D63636; } .pc-sos span { font-size: 11px; }
.pc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; } .pc-steps div { border: 1px solid #ccc; border-radius: 10px; padding: 8px; }
.pc-steps ol { margin: 0; padding-left: 16px; } .pc-steps li { margin-bottom: 3px; font-size: 12px; }
.pc-empty { color: #777; margin: 0; } .pc-lines i { display: block; border-bottom: 1px solid #999; height: 22px; }
.printcard footer { margin-top: 12px; padding-top: 8px; border-top: 1px solid #ddd; color: #555; font-size: 11.5px; text-align: center; }
@media print {
  @page { margin: 10mm; }
  body { background: #fff !important; }
  .top, .tabs, #askfab, #deskside, .noprint, .toast, .tour-ring, .tour-tip, .tour-block, .loc-ask { display: none !important; }
  main { padding: 0 !important; max-width: none !important; border: 0 !important; background: #fff !important; }
  .printcard { border-radius: 0; padding: 0; font-size: 12pt; }
}

/* ---------- Scrolling help ---------- */
/* Slider on the right edge: shows where you are on a long screen; drag it to move quickly. */
#sthumb { position: fixed; top: 0; right: 0; width: 26px; z-index: 30; pointer-events: none; opacity: 0; transition: opacity .3s; will-change: transform; }
#sthumb i { display: block; width: 6px; margin-left: auto; margin-right: 3px; border-radius: 6px; background: rgba(237,233,225,.45); transition: width .15s, background .15s; }
#sthumb.on { opacity: 1; pointer-events: auto; touch-action: none; }
#sthumb.drag i { width: 10px; background: var(--orange); }
#totop { position: fixed; left: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #1E211C; color: var(--text); font-size: 22px; font-weight: 800; box-shadow: 0 8px 24px rgba(0,0,0,.5); cursor: pointer; }
#totop[hidden] { display: none; }
@media (min-width: 980px) { #totop { left: calc(50% - 230px + 14px); } #sthumb { display: none; } }
/* Rows that scroll sideways: faded edge and an arrow, so it is obvious there is more. */
.hrow { position: relative; }
.hrow .hbtn { position: absolute; top: 0; bottom: 4px; width: 40px; border: 0; padding: 0; color: var(--text); font-size: 24px; font-weight: 800; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 2; }
.hrow .hbtn.prev { left: 0; background: linear-gradient(to right, var(--bg) 45%, rgba(11,12,10,0)); text-align: left; padding-left: 2px; }
.hrow .hbtn.next { right: 0; background: linear-gradient(to left, var(--bg) 45%, rgba(11,12,10,0)); text-align: right; padding-right: 2px; }
.hrow.l .hbtn.prev, .hrow.r .hbtn.next { opacity: 1; pointer-events: auto; }
.hrow.r .hbtn.next { animation: nudge 1.4s ease-in-out 2; }
@keyframes nudge { 50% { transform: translateX(4px); } }
/* ---------- Help hint and walkthrough ---------- */
.tour-offer { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 45; max-width: 440px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 18px; background: #1B1E19; border: 1px solid #5A2E18; box-shadow: 0 12px 34px rgba(0,0,0,.55); transform: translateY(20px); opacity: 0; transition: transform .25s, opacity .25s; font-size: 14px; }
.tour-offer.in { transform: none; opacity: 1; }
.tour-offer .to-x { flex: 1; line-height: 1.3; }
.tour-offer button { border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.tour-offer .to-go { background: var(--cta); color: #fff; border-radius: 999px; padding: 9px 14px; white-space: nowrap; }
.tour-offer .to-no { background: none; color: var(--muted); width: 34px; height: 34px; border-radius: 50%; }
.tour-ring { animation: none; box-shadow: 0 0 0 9999px rgba(4,5,4,.74), 0 0 0 3px #E8692F, 0 0 18px 4px rgba(232,105,47,.45); border-radius: 16px; transition: top .3s ease, left .3s ease, width .3s ease, height .3s ease, opacity .2s; }
.tour-ring.fade { opacity: .0; }
.tour-tip { transition: opacity .2s, top .3s ease; border-radius: 18px; }
.tour-tip.fade { opacity: 0; }
.tour-tip::before { content: ""; position: absolute; left: var(--ax, 30px); top: -8px; width: 14px; height: 14px; background: #161814; border-left: 1px solid #5A2E18; border-top: 1px solid #5A2E18; transform: rotate(45deg); }
.tour-tip.above::before { top: auto; bottom: -8px; transform: rotate(225deg); }
.tour-block { cursor: pointer; }
.tour-btns .tour-back { padding: 0 14px; }
/* ---------- Rounded everywhere ---------- */
.place { border: 1px solid var(--line) !important; border-radius: 16px; background: var(--card); padding: 11px 12px; margin: 0 0 8px; }
.place:active, .readyrow:active { background: var(--card2); }
.readyrow { border-radius: 12px; }
img, canvas, video, iframe, table, pre, .mapwrap, .mapcard, .seg, .chip, .dsk, .printcard, .warncard, details, summary, .sos-btn, .tile, .tool, .drillitem, .onbcard, .loc-card, .toast, select, textarea, input { border-radius: var(--rr, 14px); }
.chip, .btn, .toast, .net, .langbtn, .helpbtn { border-radius: 999px !important; }
input[type=checkbox], input[type=radio] { border-radius: 6px; }
input[type=radio] { border-radius: 50%; }
.mapwrap { overflow: hidden; }
/* Desktop: the app shows as a rounded phone-like window */
@media (min-width: 980px) {
  body { padding-top: 18px; }
  .top { border-radius: 26px 26px 0 0; border-top: 1px solid var(--line); top: 0; }
  main { border-radius: 0 0 26px 26px; border-bottom: 1px solid var(--line); min-height: calc(100vh - 140px); margin-bottom: 90px; overflow: clip; }
  .tabs { border-radius: 22px; bottom: 14px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.45); overflow: hidden; }
  #askfab { bottom: 96px; }
  #totop { bottom: 96px; }
  #deskside { top: 108px; }
}
/* Emergency numbers: each one its own rounded tile */
.numlist .field { background: var(--card2); border: 1px solid var(--line); border-radius: 16px; padding: 10px 10px 10px 14px; margin-bottom: 8px; }
.numlist .field:last-child { border-bottom: 1px solid var(--line); margin-bottom: 0; }
.numlist .field .btn { min-width: 76px; }
/* Paramedic card */
.ptabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ptabs .chip { text-decoration: none; }
.medcard .mc-who { display: grid; grid-template-columns: 1.4fr 1fr .6fr; gap: 8px; margin-bottom: 10px; }
.medcard .mc-who div { border: 1px solid #ccc; border-radius: 10px; padding: 6px 10px; }
.medcard .mc-who span { display: block; font-size: 10.5px; color: #666; text-transform: uppercase; letter-spacing: .04em; }
.medcard .mc-who b { font-size: 15px; }
.medcard .mc-blood { border-color: #D63636 !important; text-align: center; } .medcard .mc-blood b { color: #D63636; font-size: 18px; }
.medcard .mc-t { width: 100%; border-collapse: collapse; }
.medcard .mc-t th { text-align: left; vertical-align: top; width: 34%; padding: 5px 8px 5px 0; font-size: 12px; color: #444; border-bottom: 1px solid #ddd; }
.medcard .mc-t td { text-align: left !important; padding: 5px 0; border-bottom: 1px solid #ddd; font-weight: 600; }
.medcard .mc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.medcard .mc-cols > div { border: 1px solid #ccc; border-radius: 10px; padding: 8px 10px; }
.medcard .mc-cols ol, .medcard .mc-cols ul { margin: 0; padding-left: 18px; } .medcard .mc-cols li { font-size: 12px; margin-bottom: 3px; }
.medcard .mc-log { margin-top: 12px; border: 1px dashed #999; border-radius: 10px; padding: 8px 10px; }
.medcard .mc-log div { display: flex; align-items: flex-end; gap: 8px; margin-top: 8px; font-size: 12px; } .medcard .mc-log span { white-space: nowrap; color: #444; } .medcard .mc-log i { flex: 1; border-bottom: 1px solid #999; height: 16px; }
@media (max-width: 420px) { .medcard .mc-who { grid-template-columns: 1fr 1fr; } .medcard .mc-who div:first-child { grid-column: 1 / -1; } .medcard .mc-cols { grid-template-columns: 1fr; } }
@media print { .medcard .mc-who { grid-template-columns: 1.4fr 1fr .6fr; } .medcard .mc-cols { grid-template-columns: 1fr 1fr; } .medcard .mc-who div:first-child { grid-column: auto; } }
/* ---------- Accessibility mode (blind / partially sighted) ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#readbtn { white-space: nowrap; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 41; min-height: 54px; padding: 0 22px; border-radius: 999px; border: 3px solid #FFD400; background: #000; color: #FFD400; font-size: 18px; font-weight: 800; box-shadow: 0 8px 24px rgba(0,0,0,.6); cursor: pointer; }
#readbtn[hidden] { display: none; }
body.a11y { --bg: #000; --card: #0A0A0A; --card2: #141414; --line: #8A8A8A; --text: #FFFFFF; --muted: #E6E6E6; --dim: #D0D0D0; --green: #6CFF9A; --cta: #D14400; font-size: 20px; }
body.a11y main { padding-bottom: calc(150px + var(--safe-b)); }
body.a11y h1 { font-size: 2rem; } body.a11y .small, body.a11y small { font-size: .95rem; }
body.a11y .card, body.a11y .tile, body.a11y .btn, body.a11y .chip, body.a11y input, body.a11y select, body.a11y textarea { border-width: 2px; }
body.a11y .btn { min-height: 58px; font-size: 1.05rem; }
body.a11y .tabs a { font-size: .85rem; padding-top: 12px; padding-bottom: 12px; } body.a11y .tabs a svg { width: 30px; height: 30px; }
body.a11y a { text-decoration: underline; text-underline-offset: 3px; }
body.a11y .btn, body.a11y .tile, body.a11y .tabs a, body.a11y .readyrow, body.a11y .chip { text-decoration: none; }
body.a11y :focus-visible { outline: 4px solid #FFD400 !important; outline-offset: 3px; }
body.a11y * { animation: none !important; transition: none !important; }
body.a11y #askfab { display: none; } body.a11y #totop { bottom: calc(146px + env(safe-area-inset-bottom)); }
.setcard { margin-top: 14px; } .setcard .a11yrow { border: 0; padding: 0; }
.setcard .a11yrow input { width: 26px; height: 26px; }
@media (min-width: 980px) { #deskside { max-height: calc(100vh - 130px); overflow-y: auto; scrollbar-width: none; } }
@media (min-width: 980px) {
  .tour-offer { bottom: 92px; max-width: 436px; }
  #deskside { top: 70px; } .dsk { padding: 18px; } .dsk h2 { font-size: 18px; } .dsk > p.muted { font-size: 14px; } .dsk img { width: 44px; height: 44px; }
  .dskinst { margin-bottom: 12px; border-color: #5A2E18; } .dskinst b { font-size: 16px; }
  .dkurl { font-size: 18px; margin: 8px 0; }
}
/* Language picker: looks like the pill, opens the phone's own list */
.langsel { -webkit-appearance: none; appearance: none; font-size: 13px !important; height: 32px; padding: 0 24px 0 11px !important; background: var(--card2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23A8A49B' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 9px center; width: auto; }
.langsel option { color: #111; background: #fff; }
/* Read aloud: available but out of the way */
.voicelink { display: block; margin: 18px auto 4px; padding: 8px 12px; border: 0; background: none; color: var(--dim); font: inherit; font-size: 13px; cursor: pointer; }
.voicelink[aria-pressed=true] { color: var(--cta); }
#readbtn { left: 14px !important; transform: none !important; width: 50px; height: 50px; min-height: 0 !important; padding: 0 !important; border-radius: 50% !important; border-width: 2px !important; font-size: 20px !important; bottom: calc(78px + env(safe-area-inset-bottom)) !important; }
#readbtn b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.a11y #totop { bottom: calc(138px + env(safe-area-inset-bottom)) !important; }
/* One scroll bar only: the phone's own on iPhone (it can be dragged after a long press), ours elsewhere. */
body.os-ios #sthumb { display: none !important; }
body:not(.os-ios):not(.os-desktop) { scrollbar-width: none; }
body:not(.os-ios):not(.os-desktop)::-webkit-scrollbar, html:has(body.os-android)::-webkit-scrollbar { display: none; }
html:has(body.os-android) { scrollbar-width: none; }
/* Home: tools grid */
.hometools .tool { position: relative; min-height: 78px; justify-content: center; font-size: 12.5px; }
.tdot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--cta); }
.setcard summary { font-weight: 700; }
.setcard[open] summary { margin-bottom: 10px; }
/* 0.16.1: icons exactly centred in round buttons */
#totop, .mapctl button { display: grid; place-items: center; padding: 0; line-height: 1; }
#totop svg, .mapctl button svg { display: block; }
/* Queues and road speed, measured */
.qh { font-size: 1rem; margin: 6px 0 8px; }
.trbox { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #171A15; margin-bottom: 6px; }
.trbig { font: 800 1.9rem/1 "Barlow Condensed", system-ui, sans-serif; min-width: 74px; text-align: center; }
.tr-0 .trbig { color: #7DBA8E; } .tr-1 .trbig { color: #E0C04A; } .tr-2 .trbig { color: #E8862F; } .tr-3 .trbig { color: #E5544A; }
.qb { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .8rem; font-weight: 700; border: 1px solid transparent; }
.q-ok { background: #1E3325; color: #9FD6AE; border-color: #2D4A35; } .q-low { background: #2E2A14; color: #E9D47A; border-color: #4A4220; }
.q-mid { background: #33220F; color: #F0A35E; border-color: #5A3A18; } .q-high { background: #3A1612; color: #F08A80; border-color: #6A2A24; }
.q-shut { background: #222; color: #BBB; border-color: #444; }
.qbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .qbtns .qbtn:last-child { grid-column: 1 / -1; }
.qbtn { min-height: 44px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; }
.qbtn.sent { outline: 2px solid currentColor; outline-offset: 2px; } .qbtn:disabled { opacity: .55; cursor: default; } .qbtn.sent:disabled { opacity: 1; }
#trlinks { flex-wrap: wrap; gap: 8px; } #trlinks .btn { flex: 1 1 auto; }
a.place { text-decoration: none; color: inherit; } a.place .pn { color: var(--text); }
/* 0.17: desktop = the same app as on the phone. No side panel; the installed desktop window has no frame. */
#deskside { display: none !important; }
.deskcard .dskinst { padding: 0 0 12px; margin: 0 0 12px; border-bottom: 1px solid var(--line); }
.deskcard .dkurl { font-size: 18px; font-weight: 800; color: var(--cta); margin: 6px 0 10px; }
.deskcard .row .btn { flex: 1 1 auto; }
@media (min-width: 980px) {
  body.standalone { padding-top: 0; background: var(--bg); }
  body.standalone .top { border-radius: 0; border-top: 0; max-width: 560px; }
  body.standalone main { border-radius: 0; border-bottom: 0; margin-bottom: 0; min-height: 100vh; max-width: 560px; padding-bottom: 110px; }
  body.standalone .tabs { width: 560px; border-radius: 0; bottom: 0; box-shadow: none; border-bottom: 0; }
  body.standalone #askfab { right: calc(50% - 280px + 14px); }
  body.standalone #totop { left: calc(50% - 280px + 14px); }
  body.standalone .tour-offer { max-width: 536px; }
}
/* Language picker with flags */
.langpick { position: relative; display: inline-flex; }
.flagbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 8px; font-size: 13px; font-weight: 700; color: var(--text); background: var(--card2); border: 1px solid var(--line); cursor: pointer; }
.flagbtn .chev { color: #A8A49B; }
.flag { display: inline-block; width: 22px; height: 15px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.18); flex: 0 0 auto; }
.flag svg { display: block; width: 100%; height: 100%; }
.langmenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 170px; background: #171A15; border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 14px 34px rgba(0,0,0,.55); }
.langmenu[hidden] { display: none; }
.langmenu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 15px; cursor: pointer; text-align: left; }
.langmenu button:hover, .langmenu button:focus-visible, .langmenu button[aria-selected=true] { background: #22261F; }
.langmenu i { margin-left: auto; font-style: normal; color: var(--green); font-weight: 800; }
@media (max-width: 380px) { .flagbtn b { display: none; } }
/* Live layers, family, route steps */
.layers { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.layers::-webkit-scrollbar { display: none; }
.chip.lay { flex: 0 0 auto; font-size: 13px; } .chip.lay[aria-pressed=false] { opacity: .5; } .chip.lay b { margin-left: 2px; color: var(--cta); }
.rsteps { margin: 0 0 10px; } .rsteps ol { list-style: none; padding: 0; margin: 10px 0 0; max-height: 300px; overflow-y: auto; }
.rsteps li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rsteps .ra { width: 26px; flex: 0 0 26px; text-align: center; font-size: 18px; line-height: 1.2; color: var(--cta); }
.rsteps li small { display: block; color: var(--muted); font-size: 12px; }
.famdot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #13203A; color: #9EC2FF; font-weight: 800; font-size: 13px; border: 2px solid #6EA8FE; }
.famcode { font-size: 1.15rem; letter-spacing: .08em; color: var(--cta); }
.famshare { margin-top: 10px; } .famshare input { width: 26px; height: 26px; }
.warncard.air { border-color: #E5544A; box-shadow: 0 0 0 2px rgba(229,84,74,.35); }
.airinfo { margin-top: 14px; }
.pi.famdot { font-size: 13px !important; line-height: 1; }
/* Air raid */
.airbtn { margin-top: 12px; border-color: #6A2A24; background: #211211; color: #FFB4AA; font-weight: 800; }
.airpanel { border-color: #6A2A24; } .airpanel .place.first { border-color: var(--cta); background: rgba(232,106,31,.10); }
.aralert { background: #3A1612; border: 1px solid #E5544A; border-radius: 12px; padding: 10px 12px; color: #FFD7D2; }
.airhome { background: #4A1612 !important; border-color: #E5544A !important; }
.mapwarn { position: absolute; left: 10px; top: 10px; max-width: calc(100% - 90px); padding: 8px 12px; border-radius: 12px; background: rgba(58,22,18,.94); border: 1px solid #E5544A; color: #FFD7D2; font-size: 13px; font-weight: 700; text-decoration: none; line-height: 1.3; z-index: 2; }
.mapwarn[hidden] { display: none; } .mapwarn b { color: #fff; }
/* Header on phones: keep air between the logo and the buttons */
.top .brand { margin-right: 10px; min-width: 0; }
@media (max-width: 440px) {
  .helpbtn b, .flagbtn b { display: none; }
  .helpbtn { padding: 0 9px !important; width: 34px; justify-content: center; }
  .flagbtn { padding: 0 8px; gap: 4px; }
  .top .row { gap: 6px !important; }
}
.radiosug { background: #1E3325; border: 1px solid #2D4A35; border-radius: 12px; padding: 10px 12px; margin: 4px 0 6px; }
/* Offline readiness */
.offcard { border-color: #5A2E18; margin-top: 16px; }
.offlist { list-style: none; padding: 0; margin: 0 0 12px; } .offlist li { padding: 3px 0 3px 26px; position: relative; color: var(--muted); }
.offlist li::before { content: '○'; position: absolute; left: 4px; } .offlist li.ok { color: var(--text); } .offlist li.ok::before { content: '✓'; color: var(--green); font-weight: 800; }
.offprog { margin-top: 10px; } .offprog .bar { height: 8px; border-radius: 99px; background: #22261F; overflow: hidden; margin-bottom: 6px; } .offprog .bar i { display: block; height: 100%; width: 0; background: var(--green); transition: width .4s; }
.offready { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; border-color: #2D4A35; }
.linkbtn { background: none; border: 0; color: var(--green); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; padding: 8px; }
.pushcard { border-color: #5A2E18; } .pushcard.on { border-color: #2D4A35; }
.srcbox { margin-top: 16px; } .srclist { margin: 6px 0 0; padding-left: 18px; } .srclist li { margin: 4px 0; font-size: 14px; }
.srclist a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(237,233,225,.3); } .srcfix { color: var(--green); font-weight: 700; }
.radiolive { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }

/* Radio mini-player: stays on every screen while the radio plays */
#radiobar { position: fixed; left: 10px; right: 10px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 41; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 14px; background: #1E211C; border: 1px solid var(--cta); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
#radiobar[hidden] { display: none; }
#radiobar .rbname { flex: 1; min-width: 0; color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#radiobar button { min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: #fff; font-size: 18px; }
body.radio-on #askfab { bottom: calc(132px + env(safe-area-inset-bottom)); }
body.radio-on main { padding-bottom: 150px; }
body.onb #radiobar, body.kbd #radiobar { display: none !important; }
@media (min-width: 980px) { #radiobar { left: 50%; right: auto; width: 440px; transform: translateX(-50%); } }
/* Light source choice + Morse */
.seg.lseg, .lseg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); }
.lseg label { position: relative; } .lseg input { position: absolute; opacity: 0; inset: 0; }
.lseg span { display: block; text-align: center; padding: 10px 6px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; }
.lseg input:checked + span { background: var(--cta); color: #fff; } .lseg input:disabled + span { opacity: .4; cursor: not-allowed; }
.lseg input:focus-visible + span { outline: 2px solid var(--cta); outline-offset: 2px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; word-break: break-word; }
.flash { flex-direction: column; align-items: center; justify-content: flex-end; gap: 18px; }
.flash .flashinfo { color: #9a9a9a; text-align: center; font-weight: 700; padding: 0 20px; }
.flash.on .flashinfo { color: #555; }
.flash.cam.lit .flashinfo { color: #fff; }
.flash .morsecode { font-size: 22px; margin-top: 8px; } .flash .morsecode span { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 18px; letter-spacing: .12em; }
/* Radio on/off in the top bar */
.radiobtn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--card2); color: var(--text); font-size: 16px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; position: relative; }
.radiobtn.on { border-color: var(--cta); background: #2a1a10; box-shadow: 0 0 0 3px rgba(232,134,47,.25); }
.radiobtn.on::after { content: ''; position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: #E5544A; animation: rbpulse 1.4s infinite; }
.radiobtn.busy { opacity: .7; }
@keyframes rbpulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .radiobtn.on::after { animation: none; } }
.brand i { font-style: normal; color: inherit; font-weight: inherit; font-size: inherit; letter-spacing: inherit; }
.scalecard .scrow { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: start; padding: 7px 0; border-top: 1px solid var(--line); }
.scalecard .scrow:first-of-type { border-top: 0; }
.scalecard .scrow b { color: #111; border-radius: 8px; padding: 4px 6px; text-align: center; font-size: 13px; }
.scalecard .scrow span { font-size: 14px; }
.relchip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); color: var(--muted); margin-left: 4px; vertical-align: 1px; }
.relset { margin-top: 6px; max-width: 220px; }
/* Compass tool */
.cpwrap { position: relative; width: 260px; height: 260px; margin: 6px auto 4px; }
.cpwrap > div, .cpwrap .cpgoal { position: absolute; inset: 0; }
.cpwrap .cpgoal { transition: transform .15s linear; pointer-events: none; }
.cpwrap::after { content: ''; position: absolute; left: 50%; top: -6px; width: 0; height: 0; transform: translateX(-50%); border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 14px solid var(--cta); }
.cphead { text-align: center; font-size: 18px; margin: 8px 0 2px; }
.cpturn { text-align: center; font-size: 22px; font-weight: 800; margin: 0 0 12px; color: var(--cta); min-height: 1.3em; }
.cpturn.ok { color: #5BAE6A; }
.sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sigs div { display: flex; gap: 10px; align-items: center; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.sigs b { font-size: 26px; min-width: 28px; text-align: center; color: #fff; }
.sigs span { font-size: 13px; }
/* Trip planner */
.lseg.tseg { grid-template-columns: 1fr 1fr; } .lseg.tseg span { font-size: 13px; padding: 10px 4px; }
.trverdict.v0 { border-color: #2F5E3A; } .trverdict.v1 { border-color: #7A4A1C; background: #1D1710; } .trverdict.v2 { border-color: #6A2A24; background: #211211; }
.trday { border-top: 1px solid var(--line); padding: 8px 0 2px; margin-top: 8px; }
.trday ul { margin: 6px 0 0; padding-left: 18px; } .trday li { margin-bottom: 4px; } .trday li.l2 { color: #FF8A7E; } .trday li.l1 { color: #F0B070; }
/* Food picker */
.chips.fchips { flex-wrap: wrap; overflow: visible; }
.fchips .chip { position: relative; display: inline-flex; gap: 4px; align-items: center; }
.fchips .chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.fchips .chip.on { background: var(--cta); border-color: var(--cta); color: #fff; }
.fchips .chip:focus-within { outline: 2px solid var(--cta); outline-offset: 2px; }
.recipe summary { cursor: pointer; line-height: 1.4; }
@media (max-width: 400px) { .brand { font-size: .8rem !important; letter-spacing: .03em; gap: 5px; } .brand img { width: 24px; height: 24px; } .top > .row { gap: 6px !important; } .radiobtn, .top .helpbtn { width: 30px; height: 30px; padding: 0; justify-content: center; } }
@media (max-width: 340px) { .brand span { font-size: .72rem; } }
/* Header is never wider than the 460px app column (also on desktop): always the compact set, so nothing overlaps */
.top > .row { gap: 6px !important; flex-shrink: 0; }
.top .brand { overflow: hidden; }
.top .helpbtn b { display: none; }
.top .helpbtn { padding: 0 !important; width: 32px; justify-content: center; }
.top .net { font-size: 0; padding: 7px; line-height: 0; }
.top .net::before { margin-right: 0 !important; vertical-align: middle !important; }
/* Radio panel from the header button */
#radiopop { position: fixed; z-index: 60; top: calc(54px + env(safe-area-inset-top)); right: 10px; width: min(340px, calc(100vw - 20px)); padding: 12px; border-radius: 16px; background: #1E211C; border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0,0,0,.6); color: var(--text); }
#radiopop[hidden] { display: none; }
@media (min-width: 481px) { #radiopop { right: auto; left: calc(50% + 230px - 350px); } }
.rphead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rphead b { font-size: 1rem; }
.rpx { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.rpnow { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--cta); }
.rpinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rpinfo b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpst { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rpst.live { color: #E5544A; } .rpst.live::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #E5544A; margin-right: 6px; vertical-align: 1px; animation: rbpulse 1.4s infinite; }
.rpbig { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; border: 0; background: var(--cta); color: #fff; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rpstop { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card2); color: var(--text); font-size: 14px; cursor: pointer; }
.rplocal { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px; border-radius: 12px; border: 1px solid var(--cta); background: var(--card); color: var(--text); cursor: pointer; font: inherit; }
.rplocal:hover, .rprec:hover, .rpall:hover { filter: brightness(1.15); }
.rplocal small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.rpvol { display: flex; align-items: center; gap: 8px; margin: 10px 2px 0; font-size: 14px; }
.rpvol input { flex: 1; accent-color: var(--cta); }
@media (hover: none) { .rpvol { display: none; } }
.rplabel { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 2px 6px; }
.rprec { display: block; width: 100%; text-align: left; padding: 9px 12px; margin-top: 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2); color: var(--text); cursor: pointer; font: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpall { display: block; margin-top: 12px; padding: 10px 12px; border-radius: 10px; text-align: center; font-weight: 700; color: var(--text); text-decoration: none; border: 1px solid var(--line); }
.rpnote { margin: 10px 2px 0; font-size: .8rem; color: #FFD7D2; }
.radiobtn[aria-expanded="true"] { border-color: var(--cta); }
/* Trip planner: known-peak route */
.trknown { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(91,174,106,.12); border: 1px solid #3F6B47; color: var(--text); }
.trroute { border-color: #3F6B47; }
.trchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 6px; font-size: 13px; }
.trchips i { width: 26px; height: 8px; border-radius: 4px; display: inline-block; border: 1px solid rgba(255,255,255,.35); }
.trchips span { padding: 3px 9px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); }
.trwhy { margin: 6px 0; } .trwhy.l2 { color: #FFB4A8; }
.trline { list-style: none; margin: 12px 0 0; padding: 0 0 0 18px; border-left: 2px dashed var(--line); }
.trline li { position: relative; margin: 0 0 12px; display: flex; flex-direction: column; gap: 2px; }
.trline li::before { content: ''; position: absolute; left: -25px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--green); }
.trline li.trtop::before { background: var(--cta); border-color: var(--cta); } .trline li.trpark::before { border-color: #3B7DD8; }
.trline li.trtop b { color: #fff; font-size: 16px; }
.mchip { display: inline-block; margin: 0 6px 6px 0; padding: 5px 10px; border-radius: 999px; background: #2a1a10; border: 1px solid #6A3F1F; font-size: 13px; }
.trmiss { border-color: #6A3F1F; }
/* Input fields stand out from the cards, so it is clear where to type */
input[type=text], input[type=tel], input[type=number], input[type=time], input[type=date], input[type=email], input[type=search], input:not([type]), select, textarea {
  background: #23271F; border: 1.5px solid #4C5347; color: var(--text); box-shadow: inset 0 1px 2px rgba(0,0,0,.35);
}
input::placeholder, textarea::placeholder { color: #8F968A; opacity: 1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(125,186,142,.28); background: #262B22; }
input[type=checkbox], input[type=radio] { box-shadow: none; }
body.a11y input, body.a11y select, body.a11y textarea { background: #111; border: 2px solid #E6E6E6; }
/* Onboarding: "What do you want to be ready for?" */
.gohead { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 16px; }
.gohead h1 { margin: 0; }
.goalgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.goal { position: relative; min-height: 148px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; text-align: left; padding: 16px; border-radius: 18px; background: var(--card); border: 2px solid var(--line); color: var(--text); font: inherit; cursor: pointer; }
.goal .gico { position: absolute; top: 14px; left: 16px; font-size: 30px; line-height: 1; }
.goal b { font-size: 1.02rem; } .goal small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.goal .gtick { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%; display: none; align-items: center; justify-content: center; background: var(--green); color: #0B0C0A; font-style: normal; font-weight: 900; font-size: 14px; }
.goal[aria-pressed="true"] { border-color: var(--green); background: #1A2A1F; }
.goal[aria-pressed="true"] .gtick { display: inline-flex; }
.goal:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.gonote { margin: 14px 0; color: var(--muted); }
/* Home: readiness path like a checkout bar, one next step */
.jcard { display: flex; flex-direction: column; gap: 10px; }
.jtop { display: flex; justify-content: space-between; align-items: baseline; } .jtop b { color: var(--green); font-size: .9rem; }
.jbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.jbar i { height: 6px; border-radius: 3px; background: var(--line); }
.jbar i.ok { background: var(--green); } .jbar i.now { background: var(--orange); }
.jlabels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; font-size: .7rem; font-weight: 700; color: var(--dim); }
.jlabels .ok { color: var(--green); } .jlabels .now { color: var(--text); }
.jnext { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; padding: 14px; border-radius: 14px; background: #23170F; border: 2px solid var(--cta); }
.jnt { font-size: 1.12rem; line-height: 1.25; }
.jnext .btn { margin-top: 6px; }
.jlater { margin-top: 4px; } .jlater .card { margin: 0; }
.jpick { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; border-color: var(--cta); }
.alltools { margin-top: 14px; } .alltools > summary { cursor: pointer; padding: 14px 16px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); font-weight: 800; list-style: none; }
.alltools > summary::-webkit-details-marker { display: none; }
.alltools > summary::after { content: ' ›'; color: var(--muted); }
.alltools[open] > summary { margin-bottom: 10px; } .alltools[open] > summary::after { content: ' ⌄'; }
/* Save step */
.svpdf { display: flex; gap: 14px; align-items: center; } .svpdf .ticks { margin: 0; }
.svthumb { width: 60px; height: 78px; flex-shrink: 0; border-radius: 8px; background: #1A2A1F; border: 1px solid #3F6B47; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px; font-weight: 800; color: var(--green); line-height: 1.2; }
.svconsent { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; color: var(--muted); line-height: 1.4; }
.svconsent input { width: 20px; height: 20px; flex-shrink: 0; margin: 0; accent-color: var(--green); }
.svmsg { color: #FFB4A8; }
.toolgrid.mine { grid-template-columns: repeat(2, minmax(0, 1fr)); } .toolgrid.mine .tool { min-height: 76px; }
.godivider { height: 1px; background: var(--line); margin: 22px 0 18px; }
.gocrisis { background: transparent !important; border: 1.5px solid #B8433A !important; color: #FF9A8E !important; font-weight: 800; }

/* brand line: name + mission pill, always visible */
.brand .bt { display: flex; flex-direction: column; gap: 3px; min-width: 0; line-height: 1.05; }
.brand .bt > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .zone { align-self: flex-start; font-style: normal; font-size: .56rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #FFB48A; background: rgba(232,105,47,.12); border: 1px solid rgba(232,105,47,.5); border-radius: 999px; padding: 2px 7px 2px 6px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.brand .zone::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #E8692F; flex: none; }
@media (max-width: 400px) { .brand .zone { font-size: .5rem; letter-spacing: .1em; padding: 2px 6px 2px 5px; } }
/* Live tracking (0.23) */
.tlpill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #FFB48A; background: rgba(232,105,47,.12); border: 1px solid rgba(232,105,47,.5); }
.tlpill.g { color: #9FD8AE; background: rgba(125,186,142,.14); border-color: rgba(125,186,142,.5); }
.tlpill.o { color: #FFB48A; }
.trlive { display: block; text-decoration: none; color: inherit; border-color: #5A2E1C; background: linear-gradient(150deg, #2A160C 0%, var(--card) 75%); position: relative; }
.trlive.on { border-color: #2F4A36; background: linear-gradient(150deg, #13261A 0%, var(--card) 75%); }
.trlive .tlgo { display: block; margin-top: 10px; font-style: normal; font-weight: 800; color: var(--orange); }
.trlive.on .tlgo { color: var(--green); }
.tlh { font-size: 34px; line-height: 1.02; margin: 10px 0 10px; }
.tlh span { color: var(--orange); } .tlh span.g { color: var(--green); }
.lseg.tl3 { grid-template-columns: 1.4fr 1fr .8fr; }
.tlpriv { display: flex; gap: 10px; align-items: flex-start; background: rgba(125,186,142,.08); border-color: #2F4A36; color: #BFD9C6; }
.tlbig { min-height: 56px; font-size: 17px; font-weight: 800; }
.tlbtns { display: grid; grid-template-columns: 1fr 96px; gap: 10px; margin-top: 12px; }
.tlbtns .btn { min-height: 58px; font-size: 17px; font-weight: 800; }
.tlok { background: var(--green); border-color: var(--green); color: #0B160E; }
.tlsos { background: #C6373C; border-color: #C6373C; color: #fff; }
.tlstat { margin-top: -26px; position: relative; z-index: 2; box-shadow: 0 18px 36px -18px rgba(0,0,0,.9); margin-left: 8px; margin-right: 8px; }
.tlbar { height: 7px; border-radius: 9px; background: #23271F; margin: 10px 0 6px; overflow: hidden; } .tlbar i { display: block; height: 100%; background: var(--orange); border-radius: 9px; }
.tlnosig { background: rgba(240,180,70,.1); border-color: #6B5320; color: #F1D9A4; margin-bottom: 10px; } .tlnosig b { color: #FFE3A8; }
.tlsafe { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 16px; }
.tlsafe .card, .tlsafe .btn { width: 100%; box-sizing: border-box; text-align: left; }
.tlsafe .btn { text-align: center; }
.tlcheck { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; font-size: 50px; color: #9FD8AE; background: radial-gradient(circle, #2F5A3C 0%, #16231A 70%); border: 2px solid var(--green); box-shadow: 0 0 0 14px rgba(125,186,142,.08); }
.tlstats { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tlstats div { padding: 12px 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: center; } .tlstats b { display: block; font-size: 17px; } .tlstats small { color: var(--muted); font-size: 12px; }
/* Phones up to 440px: the full SURVIVALZONE.EU name must fit — compact language button (flag only), smaller tool buttons, status dot only */
@media (max-width: 440px) {
  .flagbtn b, .flagbtn .chev { display: none !important; }
  .flagbtn { padding: 0 7px !important; gap: 0 !important; height: 30px; }
  .radiobtn, .top .helpbtn { width: 30px !important; height: 30px !important; padding: 0 !important; justify-content: center; font-size: 15px; }
  .top > .row { gap: 5px !important; }
  .top .brand { margin-right: 6px; overflow: visible; }
  .brand { font-size: .8rem !important; letter-spacing: .03em !important; gap: 6px !important; }
  .brand .bt > span { white-space: nowrap; }
}
@media (max-width: 360px) { .radiobtn { display: none !important; } }
/* "I'm OK" without internet (family) */
.fscard { border-color: rgba(125,186,142,.45); background: linear-gradient(180deg, rgba(125,186,142,.10), rgba(125,186,142,.03)); }
.fscard #fsok { background: #7DBA8E; border-color: #7DBA8E; color: #0B160E; }
.fsst { margin: 8px 0 0; font-size: .86rem; font-weight: 700; } .fsst.ok { color: #9ED3AE; } .fsst.wait { color: #FFB48A; }
.fssms { flex-wrap: wrap; gap: 8px; margin-top: 10px; } .fssms .btn { flex: 1 1 30%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsok { color: #9ED3AE; }
.fslow { color: #FF8A7A; font-weight: 800; }

/* Every control answers a touch or click: hover lift, press, keyboard focus, busy state. */
.btn, .chip, .place, .tile, .goal, .seg button, .mapctl button, summary { transition: transform .15s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, filter .2s ease; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) {
  .btn:not([disabled]):hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.28); }
  .chip:hover, .place:hover, .tile:hover, .goal:hover { border-color: var(--cta); }
  .mapctl button:hover { filter: brightness(1.2); }
}
.btn:not([disabled]):active, .chip:active, .seg button:active, .mapctl button:active { transform: scale(.96); filter: brightness(.92); box-shadow: none; transition-duration: .05s; }
.place:active, .goal:active { transform: scale(.985); }
.btn:focus-visible, .chip:focus-visible, .place:focus-visible, .tile:focus-visible, .seg button:focus-visible, .mapctl button:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--cta); outline-offset: 3px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn.is-loading, button.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading::after, button.is-loading::after { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: szspin .7s linear infinite; }
@keyframes szspin { to { transform: rotate(360deg); } }
.btn .arr, .place .pd small { transition: transform .2s ease; }
@media (prefers-reduced-motion: reduce) { .btn, .chip, .place, .tile, .goal { transition: none; } .btn:not([disabled]):hover, .btn:not([disabled]):active, .chip:active, .place:active { transform: none; } }
