/* =====================================================================
   KONVOOITRACKER · huisstijl
   Navy + zonnegeel, hoog contrast (ook leesbaar in de zon)
   ===================================================================== */
:root {
  --navy-900: #0A1E35;
  --navy-800: #0E2A47;
  --navy-700: #18426E;
  --navy-100: #E6EEF8;
  --yellow: #FFC21C;
  --yellow-soft: #FFF4CC;
  --blue: #2F6BFF;
  --ink: #0F1B2D;
  --ink-2: #44546A;
  --ink-3: #7A889C;
  --line: #E3E8EF;
  --bg: #F4F6FA;
  --card: #FFFFFF;
  --ok: #16A34A;
  --ok-soft: #DCFCE7;
  --warn: #EA8A00;
  --warn-soft: #FFF1D6;
  --bad: #DC2626;
  --bad-soft: #FEE2E2;
  --off: #94A3B8;
  --off-soft: #EEF2F6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 4px 16px rgba(15, 27, 45, .06);
  --shadow-lg: 0 10px 40px rgba(10, 30, 53, .25);
  --tabbar-h: 64px;
  --topbar-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body, #app { margin: 0; height: 100%; background: var(--bg); }
body { overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
.hidden { display: none !important; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.center { text-align: center; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 12px; border: 0;
  font-weight: 650; font-size: 15px; cursor: pointer; text-decoration: none;
  background: var(--navy-800); color: #fff; transition: transform .08s, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.yellow { background: var(--yellow); color: var(--navy-900); }
.btn.ghost { background: var(--navy-100); color: var(--navy-800); }
.btn.line { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn.danger { background: var(--bad); }
.btn.ok { background: var(--ok); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: inherit; position: relative;
}
.icon-btn:active { background: rgba(255,255,255,.1); }
svg.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Forms ---------- */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
input.in, select.in, textarea.in {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; font-size: 16px; font-weight: 500; color: var(--ink);
}
textarea.in { min-height: 90px; resize: vertical; }
input.in:focus, select.in:focus, textarea.in:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,107,255,.12); }
.seg { display: flex; background: var(--navy-100); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; min-height: 40px; white-space: nowrap; font-size: 15px; padding: 0 6px; border: 0; border-radius: 9px; background: transparent; font-weight: 650; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: #fff; color: var(--navy-800); box-shadow: var(--shadow); }
.form-error { background: var(--bad-soft); color: #8F1414; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.form-info { background: var(--navy-100); color: var(--navy-800); padding: 10px 12px; border-radius: 10px; font-size: 14px; }

/* ---------- Auth / onboarding screens ---------- */
.auth {
  min-height: 100%; display: flex; flex-direction: column;
  background: radial-gradient(120% 80% at 80% -10%, #2A5C93 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: #fff; padding: calc(28px + var(--safe-t)) 20px calc(24px + var(--safe-b));
}
.auth-hero { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0 26px; text-align: center; }
.auth-hero img { width: 88px; height: 88px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); }
.wordmark { font-weight: 850; letter-spacing: .14em; font-size: 22px; }
.wordmark b { color: var(--yellow); }
.auth-hero p { margin: 0; color: #B9CBE2; font-size: 15px; max-width: 320px; }
.route-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #D5E2F2; font-weight: 600; }
.route-line i { width: 70px; height: 2px; background: repeating-linear-gradient(90deg, var(--yellow) 0 5px, transparent 5px 10px); }
.auth-card { background: var(--card); color: var(--ink); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-lg); width: 100%; max-width: 440px; margin: 0 auto; }
.auth-foot { margin-top: auto; padding-top: 22px; text-align: center; color: #8FA6C2; font-size: 12px; }
.auth-foot a { color: #CFE0F5; }

/* ---------- App shell ---------- */
.shell { height: 100%; display: flex; flex-direction: column; }
.topbar {
  flex: none; height: calc(var(--topbar-h) + var(--safe-t)); padding: var(--safe-t) 8px 0 12px;
  display: flex; align-items: center; gap: 10px; background: var(--navy-800); color: #fff; z-index: 500;
}
.topbar .brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.topbar .brand img { width: 34px; height: 34px; border-radius: 9px; }
.topbar .brand .t1 { font-weight: 850; font-size: 14px; letter-spacing: .04em; line-height: 1.1; white-space: nowrap; }
.topbar .brand .t1 b { color: var(--yellow); }
.topbar .brand .t2 { font-size: 12px; color: #A9BED8; line-height: 1.2; }
.conn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.1); white-space: nowrap; }
.conn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.conn.online { color: #6EE7A0; }
@media (max-width: 420px) { .conn { font-size: 0; padding: 7px; gap: 0; } .conn::before { width: 10px; height: 10px; } .topbar { gap: 4px; } .topbar .icon-btn { width: 38px; } }
.conn.offline { color: #FF9C9C; }
.conn.connecting { color: var(--yellow); }
.conn.connecting::before { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.badge-dot { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--yellow); color: var(--navy-900); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

.main { flex: 1; position: relative; overflow: hidden; }
.view { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 16px calc(24px + var(--tabbar-h) + var(--safe-b)); }
.view.full { padding: 0; overflow: hidden; }
.view-inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.tabbar button {
  flex: 1; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 11px; font-weight: 650; color: var(--ink-3); cursor: pointer; position: relative;
}
.tabbar button.on { color: var(--navy-800); }
.tabbar button.on::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--yellow); }
.tabbar .badge-dot { top: 6px; right: calc(50% - 22px); }

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card h2 { font-size: 17px; }
.card h3 { font-size: 15px; }
.section-title { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 6px 2px -4px; }
.empty { text-align: center; color: var(--ink-3); padding: 28px 12px; font-size: 14px; }
.list { display: flex; flex-direction: column; }
.list > * + * { border-top: 1px solid var(--line); }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 0; }

/* ---------- Status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: #11743A; }
.pill.warn { background: var(--warn-soft); color: #9A5A00; }
.pill.bad { background: var(--bad-soft); color: #A21B1B; }
.pill.off { background: var(--off-soft); color: #546377; }
.pill.info { background: var(--navy-100); color: var(--navy-800); }
.pill.yellow { background: var(--yellow-soft); color: #7A5A00; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); } .dot.off { background: var(--off); }

/* ---------- Avatar / bus chip ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 14px; flex: none; position: relative; }
.avatar .st { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid #fff; }
.bus-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 24px; padding: 0 7px; border-radius: 7px; color: #fff; font-weight: 800; font-size: 12px; }

/* ---------- Map ---------- */
#map { position: absolute; top: 0; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-b)); background: #DDE6EE; }
.map-overlay-top { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 450; display: flex; gap: 8px; pointer-events: none; }
.map-overlay-top > * { pointer-events: auto; }
.legend { background: rgba(255,255,255,.95); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.legend::-webkit-scrollbar { display: none; }
.legend button { border: 0; background: transparent; border-radius: 9px; padding: 6px 8px; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.legend button.on { background: var(--navy-100); }
.legend .sw { width: 12px; height: 12px; border-radius: 4px; }
.map-fabs { position: absolute; right: 12px; z-index: 450; display: flex; flex-direction: column; gap: 10px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 150px); }
.fab { width: 48px; height: 48px; border-radius: 14px; border: 0; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--navy-800); }
.share-dock { position: absolute; left: 12px; right: 12px; z-index: 450; bottom: calc(var(--tabbar-h) + var(--safe-b) + 22px); }
.share-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 12px 12px 12px 14px; display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 0 auto; }
.share-card .grow b { display: block; font-size: 15px; }
.sos-btn {
  width: 58px; height: 58px; border-radius: 50%; border: 0; flex: none; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #FF5A5A, #C81616); color: #fff; font-weight: 900; font-size: 14px; letter-spacing: .04em;
  box-shadow: 0 6px 18px rgba(200,22,22,.45), inset 0 -3px 0 rgba(0,0,0,.15);
}
.switch { width: 56px; height: 32px; border-radius: 16px; background: #CBD5E1; position: relative; border: 0; cursor: pointer; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch.on { background: var(--ok); }
.switch.on::after { transform: translateX(24px); }

.pmarker { position: relative; }
.pmarker .pm-body {
  width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 12px; box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
.pmarker .pm-bus { position: absolute; top: -7px; right: -9px; background: var(--navy-900); color: #fff; font-size: 10px; font-weight: 800; border-radius: 6px; padding: 1px 4px; border: 1.5px solid #fff; }
.pmarker .pm-st { position: absolute; bottom: -2px; right: -2px; width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid #fff; }
.pmarker.stale .pm-body { opacity: .6; filter: grayscale(.5); }
.pmarker.ok .pm-body::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; animation: ring 2s infinite; border: 3px solid currentColor; }
.pmarker.ok .pm-body { position: relative; }
@keyframes ring { from { transform: scale(1); opacity: .6; } to { transform: scale(1.9); opacity: 0; } }
.stop-marker { width: 38px; height: 38px; border-radius: 12px; background: var(--yellow); color: var(--navy-900); display: flex; align-items: center; justify-content: center; border: 3px solid var(--navy-800); box-shadow: 0 3px 10px rgba(0,0,0,.3); transform: rotate(45deg); }
.stop-marker svg { transform: rotate(-45deg); width: 18px; height: 18px; }
.dest-marker { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-800); display: flex; align-items: center; justify-content: center; border: 3px solid var(--yellow); box-shadow: 0 3px 10px rgba(0,0,0,.3); color: var(--yellow); }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content { margin: 12px 14px; font-size: 14px; line-height: 1.4; }
.leaflet-control-attribution { font-size: 10px; }
.leaflet-top.leaflet-left { top: 64px; }

/* ---------- Bus overview ---------- */
.bus-card { border-left: 6px solid var(--c, var(--navy-800)); }
.bus-head { display: flex; align-items: center; gap: 12px; }
.bus-num { width: 46px; height: 46px; border-radius: 14px; background: var(--c); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; font-size: 20px; line-height: 1; flex: none; }
.bus-num small { font-size: 9px; font-weight: 700; letter-spacing: .06em; opacity: .85; }
.bus-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.bus-meta div { background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.bus-meta span { display: block; font-size: 11px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.bus-meta b { font-size: 14px; }
.warn-line { display: flex; gap: 8px; align-items: flex-start; background: var(--warn-soft); color: #7C4A00; padding: 8px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; margin-top: 10px; }
.warn-line.bad { background: var(--bad-soft); color: #8F1414; }
.warn-line svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* ---------- Stops ---------- */
.stop-card.cancelled { opacity: .6; }
.stop-card.cancelled h2 { text-decoration: line-through; }
.nav-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.checkin-grid button { min-height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 13px; cursor: pointer; padding: 4px; }
.checkin-grid button.on { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.arrivals { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.arrivals > div { display: flex; align-items: center; gap: 8px; background: var(--bg); padding: 8px; border-radius: 10px; font-size: 13px; font-weight: 600; }

/* ---------- Chat ---------- */
.chat { position: absolute; inset: 0; display: flex; flex-direction: column; padding-bottom: calc(var(--tabbar-h) + var(--safe-b)); }
.chat-tabs { flex: none; display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.chat-tabs button { border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; background: var(--bg); color: var(--ink-2); cursor: pointer; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.chat-tabs button.on { background: var(--navy-800); color: #fff; }
.chat-tabs .count { background: var(--yellow); color: var(--navy-900); border-radius: 9px; font-size: 11px; padding: 0 6px; }
.pinned { flex: none; background: var(--yellow-soft); border-bottom: 1px solid #F6DE8D; padding: 8px 14px; font-size: 13px; display: flex; gap: 8px; align-items: flex-start; }
.pinned svg { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.msgs { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 82%; align-self: flex-start; display: flex; flex-direction: column; gap: 2px; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg .who { font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 0 4px; display: flex; gap: 6px; align-items: center; }
.msg .bubble { background: #fff; border-radius: 16px 16px 16px 6px; padding: 9px 12px; box-shadow: var(--shadow); font-size: 15px; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word; }
.msg.me .bubble { background: var(--navy-800); color: #fff; border-radius: 16px 16px 6px 16px; }
.msg.important .bubble { background: var(--yellow-soft); color: var(--ink); border: 1.5px solid var(--yellow); }
.msg .meta { font-size: 11px; color: var(--ink-3); padding: 0 4px; display: flex; gap: 6px; align-items: center; }
.msg .meta .q { color: var(--warn); font-weight: 700; }
.msg .meta .fail { color: var(--bad); font-weight: 700; }
.day-sep { align-self: center; font-size: 12px; font-weight: 700; color: var(--ink-3); background: var(--off-soft); padding: 3px 10px; border-radius: 999px; margin: 8px 0; }
.composer { flex: none; display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--line); align-items: flex-end; }
.composer textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; border-radius: 22px; border: 1.5px solid var(--line); padding: 11px 16px; font-size: 16px; }
.composer textarea:focus { outline: none; border-color: var(--blue); }
.composer .send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--navy-900); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.composer-opts { display: flex; gap: 8px; padding: 0 12px 8px; background: #fff; font-size: 13px; }

/* ---------- Sheets / modals ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(10, 30, 53, .45); z-index: 2000; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: #fff; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 8px 18px calc(20px + var(--safe-b)); animation: up .2s ease-out; }
@media (min-width: 700px) { .backdrop { align-items: center; } .sheet { border-radius: 22px; } }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
.sheet .grab { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 12px; }
.sheet h2 { font-size: 20px; margin-bottom: 4px; }

.toasts { position: fixed; left: 12px; right: 12px; top: calc(var(--topbar-h) + var(--safe-t) + 8px); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; z-index: 2100; }
.toast { pointer-events: auto; background: var(--navy-900); color: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-lg); max-width: 520px; width: 100%; display: flex; gap: 10px; align-items: flex-start; animation: up .2s; font-size: 14px; }
.toast b { display: block; }
.toast.sos { background: var(--bad); }
.toast.stop { background: var(--navy-800); border-left: 5px solid var(--yellow); }

.sos-banner { position: fixed; left: 0; right: 0; top: calc(var(--topbar-h) + var(--safe-t)); z-index: 1500; background: var(--bad); color: #fff; padding: 10px 14px; display: flex; gap: 10px; align-items: center; font-weight: 700; box-shadow: var(--shadow-lg); animation: sosflash 1.2s infinite alternate; }
@keyframes sosflash { to { background: #A31212; } }

.safety { display: flex; gap: 10px; align-items: flex-start; background: var(--navy-100); color: var(--navy-800); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.safety svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

.sos-choices { display: grid; gap: 10px; }
.sos-choice { display: flex; gap: 14px; align-items: center; text-align: left; padding: 14px; border-radius: 16px; border: 2px solid var(--line); background: #fff; cursor: pointer; }
.sos-choice .ic { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.sos-choice.sos { border-color: #F7B4B4; background: #FFF6F6; }
.sos-choice.sos .ic { background: var(--bad); color: #fff; }
.sos-choice.help .ic { background: var(--warn); color: #fff; }
.sos-choice.tech .ic { background: var(--navy-700); color: #fff; }
.sos-choice b { display: block; font-size: 16px; }

/* ---------- Admin ---------- */
.admin-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.admin-nav button { border: 0; background: #fff; box-shadow: var(--shadow); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 14px; white-space: nowrap; cursor: pointer; display: flex; gap: 6px; align-items: center; color: var(--ink-2); }
.admin-nav button.on { background: var(--navy-800); color: #fff; }
.admin-nav .count { background: var(--yellow); color: var(--navy-900); border-radius: 9px; font-size: 11px; padding: 1px 6px; }
.admin-nav .count.red { background: var(--bad); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stat { background: #fff; border-radius: 14px; padding: 12px; box-shadow: var(--shadow); }
.stat span { display: block; font-size: 12px; color: var(--ink-3); font-weight: 700; }
.stat b { font-size: 24px; }
.code-box { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 26px; font-weight: 800; letter-spacing: .18em; background: var(--navy-100); color: var(--navy-800); padding: 12px; border-radius: 12px; text-align: center; }
.pick-map { height: 260px; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--line); }
.log-item { font-size: 13px; padding: 10px 0; }
.log-item b { font-weight: 700; }
table.simple { width: 100%; border-collapse: collapse; font-size: 14px; }
table.simple td, table.simple th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }

.demo-tag { background: var(--yellow); color: var(--navy-900); font-weight: 800; font-size: 10px; padding: 1px 6px; border-radius: 999px; letter-spacing: .05em; margin-left: 4px; }

@media (min-width: 900px) {
  .share-dock { left: auto; right: 76px; width: 440px; }
}

details > summary::-webkit-details-marker { display: none; }
