:root {
  --bg: #07080d;
  --card: #12151d;
  --text: #f6f7fb;
  --muted: #a9b4c4;
  --orange: #f65100;
  --side: 252px;
  --tab: 78px;
  color-scheme: dark;
}
* { box-sizing: border-box; scrollbar-width: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }
.side, .main, .tabs, .stack, .timeline, .card, .nav, .radar-ui {
  scrollbar-width: none;
}
.main, .side {
  mask-image: linear-gradient(to bottom, transparent, #000 10px, #000 calc(100% - 14px), transparent);
}
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  min-height: 100dvh;
  font: 16px/1.4 "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(ellipse 42% 28% at 100% 0%, rgba(246, 81, 0, 0.2), transparent 55%),
    var(--bg);
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { width: 100%; min-height: 46px; margin-top: 6px; border-radius: 12px; border: 1px solid rgba(246, 81, 0, 0.55); background: #0c1018; color: white; padding: 8px 12px; }
.ops { min-height: 100dvh; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
.side {
  position: sticky; top: 0; height: 100dvh; overflow: auto;
  padding: 18px 12px; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, rgba(246, 81, 0, 0.18), transparent 26%), #0c0e14;
  border-right: 1px solid rgba(246, 81, 0, 0.4);
}
.brand { display: flex; gap: 10px; align-items: center; }
.brand-mark {
  width: 54px; height: 54px; flex: none; box-sizing: border-box;
  display: grid; place-items: center; overflow: hidden;
  border-radius: 50%; background: #07080d;
  border: 2px solid rgba(246, 81, 0, 0.85); padding: 9px;
}
.brand-mark img {
  width: 100%; height: 100%; min-width: 0; min-height: 0;
  object-fit: contain; object-position: center;
  display: block; background: transparent;
}
.brand-kicker, .eyebrow {
  margin: 0; color: var(--orange); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 800;
}
.brand-name { margin: 0; font-size: 1.15rem; font-weight: 750; }
.nav { display: grid; gap: 6px; }
.nav button, .nav a.nav-tv, .tabs button {
  display: flex; align-items: center; gap: 8px; width: 100%;
  min-height: 46px; padding: 7px 10px; border-radius: 14px;
  border: 1px solid transparent; text-align: left; position: relative;
}
.nav svg, .tabs svg, .card svg, .tile svg { width: 20px; height: 20px; flex: none; }
.leaflet-container svg { width: auto; height: auto; max-width: none; }
.nav small { display: block; color: var(--muted); font-size: 0.7rem; }
.nav a.nav-tv { text-decoration: none; color: inherit; font: inherit; cursor: pointer; }
.nav button[aria-current="page"] { border-color: rgba(246, 81, 0, 0.75); background: rgba(246, 81, 0, 0.16); }
.badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: #f65100; color: white; font-size: 0.72rem; font-weight: 800;
  display: grid; place-items: center;
}
.side-note { margin-top: auto; color: var(--muted); font-size: 0.75rem; }
.main { min-width: 0; padding: 16px 16px 24px; }
.topbar {
  position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  padding-top: env(safe-area-inset-top, 0px);
}
.sys-slot {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 3;
}
.sys-strip { pointer-events: auto; }
.sys-slot:empty { display: none; }
.head-logo { display: none; }
.head-copy .eyebrow { display: none; }
.head-copy h1 { margin: 0; font-size: 1.15rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.greet { display: none; margin: 0; font-size: 1.05rem; font-weight: 750; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops[data-section="home"] .greet { display: block; }
.ops[data-section="home"] .head-copy h1 { display: none; }
.region-switch {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}
.phone-only { display: none; }
.head-pills { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.threat-pill, .warn-pill {
  border-radius: 999px; padding: 7px 12px; font-weight: 800; font-size: 0.78rem; white-space: nowrap;
  border: 1px solid rgba(246, 81, 0, 0.75); background: rgba(246, 81, 0, 0.14);
}
.warn-pill { color: #ffd0d0; border-color: #ff3b3b; background: rgba(255, 40, 40, 0.16); }
.banner {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 12px;
  background: rgba(246, 81, 0, 0.14); border: 1px solid rgba(246, 81, 0, 0.55); color: #ffd7bf;
}
.home-grid, .tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile, .card {
  background: #12151d;
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 14px 16px;
  text-align: left;
}
.tile { min-height: 112px; }
.tile.span { grid-column: 1 / -1; min-height: 88px; }
.tile strong, .card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1rem; }
.fine { color: var(--muted); margin: 4px 0 0; font-size: 0.86rem; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.85fr); gap: 12px; }
.map-wrap {
  position: relative; height: 520px; min-height: 520px; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(246, 81, 0, 0.6);
}
.map-hero { position: absolute; inset: 0; background: #0b0e14; }
.radar-chip, .map-stamp {
  position: absolute; z-index: 500; left: 10px; padding: 6px 10px; margin: 0;
  border-radius: 999px; background: rgba(7, 8, 13, 0.86); border: 1px solid rgba(246, 81, 0, 0.5);
  font-size: 0.75rem;
}
.radar-chip { bottom: 10px; }
.map-stamp { top: 10px; color: #d5dee8; }
.map-sheet {
  position: absolute; z-index: 800; top: 0; right: 0; bottom: 0; width: min(360px, 100%);
  overflow: auto; padding: 14px 14px 18px; background: #0c0e14;
  border-left: 1px solid rgba(246, 81, 0, 0.55);
}
.map-sheet[hidden] { display: none; }
.map-sheet h2 { margin: 0 0 8px; font-size: 1.15rem; }
.map-sheet .sheet-kicker { margin: 0; color: var(--orange); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; }
.sheet-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.sheet-close { width: auto; min-height: 36px; }
.sheet-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid #f65100; }
.sheet-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.sheet-tag { border-radius: 999px; padding: 4px 8px; background: rgba(246, 81, 0, 0.16); border: 1px solid rgba(246, 81, 0, 0.45); font-size: 0.75rem; }
.sheet-body { white-space: pre-wrap; }
.sheet-image { width: 100%; border-radius: 12px; margin-top: 8px; }
.map-sheet a { color: #ffb15a; }
.leaflet-radarPane-pane .leaflet-layer { transition: opacity 200ms linear; }
.leaflet-radarPane-pane img.leaflet-tile {
  image-rendering: auto;
}
.radar-shell { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 10px; align-items: stretch; }
.radar-full { grid-template-columns: minmax(0, 1fr); }
.radar-full .map-wrap { height: calc(100dvh - 210px); min-height: 420px; }
.overlay-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.overlay-bar .choice { min-height: 36px; flex: 0 0 auto; width: auto; white-space: nowrap; }
.map-region { width: auto; min-height: 36px; margin: 0; flex: 0 1 9rem; }
.overlay-bar .choice[aria-pressed="true"] { background: rgba(246, 81, 0, 0.22); border-color: #f65100; }
.radar-panel {
  display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08); background: #12151d;
}
.radar-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.radar-row select, .radar-row input:not([type="range"]) { flex: 1 1 150px; width: auto; min-height: 36px; margin: 0; }
.radar-row input[type="range"] { flex: 1 1 120px; width: auto; min-height: 22px; margin: 0; padding: 0; }
.radar-panel > .choice { width: fit-content; }
.radar-panel > label { display: grid; gap: 4px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.layers summary { cursor: pointer; font-weight: 800; color: var(--orange); }
.layer-list { display: grid; gap: 6px; margin-top: 8px; }
.check { display: flex; gap: 8px; align-items: center; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--text); font-size: 0.86rem; }
.check[hidden] { display: none; }
.check input { width: auto; min-height: 0; margin: 0; }
.loop { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }
.loop input[type="range"]:last-child { grid-column: 1 / -1; }
.choice.ww { display: block; text-align: center; text-decoration: none; }
.map-info {
  position: absolute; z-index: 500; right: 8px; bottom: 8px; width: 26px; height: 26px; min-height: 26px;
  border-radius: 50%; padding: 0; border: 1px solid rgba(255,255,255,0.28);
  background: rgba(7, 8, 13, 0.78); color: #d5dee8; font-size: 0.8rem; font-weight: 800;
}
.map-credits {
  position: absolute; z-index: 500; right: 8px; bottom: 40px; max-width: 210px; margin: 0;
  padding: 8px 10px; border-radius: 10px; background: rgba(7, 8, 13, 0.94);
  border: 1px solid rgba(255,255,255,0.12); color: #d5dee8; font-size: 0.72rem;
}
.leaflet-control-attribution { display: none !important; }
.stack { display: grid; gap: 16px; align-content: start; min-width: 0; }
.page-narrow { max-width: 760px; width: 100%; margin-left: auto; margin-right: auto; }
.ops[data-section="checkin"] #ops-alert { width: min(760px, 100%); max-width: 760px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.checkin-page .motto { margin: 4px 0 0; }
.status-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 0; overflow: visible; }
.status-tile {
  min-height: 72px; margin: 0; padding: 10px 8px; border-radius: 16px; border: 1px solid transparent;
  font-size: 1rem; font-weight: 800; text-align: center; line-height: 1.2;
}
.status-tile.chasing { background: rgba(255, 50, 40, 0.18); color: #ffb4a8; border-color: rgba(255, 80, 70, 0.55); }
.status-tile.standby { background: rgba(80, 180, 120, 0.16); color: #9dffc8; border-color: rgba(80, 180, 120, 0.45); }
.status-tile.returning { background: rgba(80, 160, 255, 0.18); color: #c5dcff; border-color: rgba(80, 160, 255, 0.45); }
.status-tile.home { background: rgba(61, 214, 140, 0.22); color: #b8ffd8; border-color: rgba(61, 214, 140, 0.5); }
.status-tile[aria-pressed="true"] { box-shadow: inset 0 0 0 2px currentColor; }
.off-duty { width: 100%; min-height: 40px; margin-top: 8px; text-align: center; color: #c5c8d0; border-color: rgba(255,255,255,0.16); background: transparent; }
.quick-status { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.quick-chip { min-height: 36px; width: auto; padding: 4px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; }
.pin-card-form.is-unlocked label, .pin-card-form.is-unlocked button, .pin-card-form.is-unlocked > .fine:not(#pin-note) { display: none; }
.pin-card-form.is-unlocked h2 { margin-bottom: 0; }
.main { overflow-x: hidden; }
.outlook-card .kicker { margin: 0 0 4px; color: var(--orange); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; }
.days { display: flex; flex-wrap: wrap; gap: 8px; }
.day {
  min-width: 72px; padding: 8px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12); background: #0d1016;
}
.day b { display: block; font-size: 0.72rem; color: var(--muted); }
.big-storm { border-width: 2px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 22px 72px minmax(0, 1fr); gap: 8px; align-items: start; }
.when { color: #ffb15a; font-size: 0.78rem; font-weight: 700; }
.row-actions, .toggles, .channels { display: flex; flex-wrap: wrap; gap: 8px; }
.row-actions a { text-decoration: none; color: inherit; border: 1px solid rgba(246, 81, 0, 0.4); border-radius: 12px; padding: 6px 10px; }
.choice, .toggle, .channel {
  border-radius: 999px; padding: 8px 12px; border: 1px solid rgba(246, 81, 0, 0.45); background: #141820;
}
.choice[aria-pressed="true"], .toggle[aria-pressed="true"], .channel[aria-pressed="true"] {
  background: rgba(246, 81, 0, 0.22); border-color: #f65100;
}
.chat { display: grid; gap: 8px; }
.bubble { padding: 8px 10px; border-radius: 12px; background: #181c26; border: 1px solid rgba(255,255,255,0.06); }
.bubble b { color: #ffb15a; }
.sos {
  width: 100%; min-height: 84px; border-radius: 18px; font-size: 1.3rem; font-weight: 850;
  letter-spacing: 0.08em; color: white; background: #8d120c; border: 2px solid #ff3b3b;
}
.ptt {
  width: min(220px, 70vw); height: min(220px, 70vw); border-radius: 50%; margin: 12px auto; display: grid; place-items: center;
  font-size: 1.4rem; font-weight: 850; color: white; background: radial-gradient(circle at 40% 35%, #ff7a33, #f65100 45%, #8a2400);
  border: 3px solid #ffb080;
}
.ptt[aria-pressed="true"] { filter: brightness(1.25); }
.stats, .home-stats { display: flex; flex-wrap: wrap; gap: 8px; overflow: visible; min-width: 0; max-width: 100%; }
.stat, .home-stat { flex: 0 1 auto; min-width: max-content; max-width: 100%; display: inline-flex; align-items: baseline; justify-content: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); background: transparent; font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.stat b, .home-stat b { color: var(--text); font-size: 0.95rem; }
.stat-icon { display: block; width: 18px; height: 18px; color: #ffb15a; }
.stat-icon svg { width: 18px; height: 18px; display: block; }
.stat.tone-hot .stat-icon { color: #ff6b6b; }
.stat.tone-warn .stat-icon { color: #ffd15a; }
.route { width: 100%; height: 72px; }
.team { display: grid; gap: 10px; }
.chaser-card {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 12px; border-radius: 16px; border: 1px solid rgba(246, 81, 0, 0.28); background: rgba(8, 10, 16, 0.7);
}
.avatar, .pin-avatar, .bubble-avatar {
  width: 52px; height: 52px; min-width: 52px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center; flex: none;
  background: #1a100c; border: 2px solid #f65100; font-weight: 800; font-size: 16px; line-height: 1;
  letter-spacing: -0.04em;
}
.avatar img, .pin-avatar img, .bubble-avatar img, .profile-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; border-radius: 50%;
}
.bubble-avatar { width: 36px; height: 36px; min-width: 36px; font-size: 12px; }
.leaflet-div-icon.pin-icon, .pin-icon { background: transparent; border: 0; overflow: visible; line-height: 0; }
.pin-avatar { position: relative; width: 32px; height: 32px; min-width: 32px; font-size: 11px; border: 2px solid #f65100; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45); }
.pin-face { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; }
.pin-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pin-status { position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #0b0e14; box-sizing: border-box; }
.pin-card {
  position: fixed; z-index: 70; width: min(360px, calc(100vw - 24px)); max-height: min(72dvh, 560px);
  overflow: auto; padding: 14px; background: #12151d; color: #f4f7fb;
  border: 1px solid rgba(246, 81, 0, 0.55); border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); display: grid; gap: 8px; align-content: start;
}
.pin-card[hidden] { display: none; }
.pin-card-head { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.pin-card-head h2 { margin: 0; font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
.pin-card-head .fine { margin: 2px 0 0; }
.pin-card-head .choice { width: auto; min-height: 36px; }
.pin-place { margin: 0; font-weight: 700; overflow-wrap: anywhere; line-height: 1.35; }
.pin-status-line { margin: 4px 0 0; font-weight: 800; color: #9dffc8; }
.pin-status-line.sos { color: #ff8d84; }
.pin-age { margin: 0; font-weight: 800; }
.pin-age.stale { color: #ffd56a; }
.pin-age.late { color: #ff8d84; }
.pin-hazard { margin: 0; font-weight: 800; }
.pin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pin-actions .choice { width: auto; min-height: 40px; text-align: center; }
.pin-facts { display: grid; gap: 6px; margin: 4px 0 2px; padding: 8px 0; border-top: 1px solid rgba(246, 81, 0, 0.22); border-bottom: 1px solid rgba(246, 81, 0, 0.22); }
.pin-fact { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 8px; align-items: center; margin: 0; font-size: 0.9rem; line-height: 1.35; }
.pin-fact strong { color: #ff9a52; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 800; }
.pin-fact-value { color: #e8ecf4; font-weight: 700; }
.pin-direction { display: flex; align-items: center; gap: 8px; }
.pin-compass { font-weight: 800; color: #fff; }
.pin-deg { font-size: 0.82em; color: #aab4c4; font-weight: 600; }
.coord-copy { width: auto; padding: 0; border: 0; background: transparent; color: #e8ecf4; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.coord-copy:hover, .coord-copy:focus-visible { color: #ffb15a; text-decoration: underline; }
.chaser-popup-wrap .leaflet-popup-content-wrapper {
  background: #12151d;
  color: #f4f7fb;
  border: 1px solid rgba(246, 81, 0, 0.55);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.chaser-popup-wrap .leaflet-popup-tip { background: #12151d; }
.chaser-popup-wrap .leaflet-popup-content { margin: 12px 14px; min-width: 168px; }
.chaser-popup { display: grid; gap: 8px; font-size: 0.95em; line-height: 1.35; }
.chaser-popup-name { margin: 0; font-weight: 800; font-size: 1.05em; color: #fff; }
.chaser-popup-row { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 8px; align-items: center; }
.chaser-popup-label { font-size: 0.72em; letter-spacing: 0.06em; text-transform: uppercase; color: #ff9a52; font-weight: 800; }
.chaser-popup-value { color: #e8ecf4; font-weight: 700; }
.chaser-popup-direction { display: flex; align-items: center; gap: 8px; }
.chaser-popup-dir { display: inline-flex; align-items: baseline; gap: 6px; }
.chaser-popup-compass { font-weight: 800; color: #fff; }
.chaser-popup-deg { font-size: 0.82em; color: #aab4c4; font-weight: 600; }
.chaser-popup-muted { color: #aab4c4; font-weight: 600; }
.chaser-popup-arrow { display: inline-block; transform: rotate(var(--hd, 0deg)); font-size: 1.15em; line-height: 1; color: #ff9a52; }
@media (max-width: 860px) {
  .pin-card {
    left: 0; right: 0; bottom: calc(74px + env(safe-area-inset-bottom, 0px)); top: auto; width: auto;
    border-radius: 18px 18px 0 0; max-height: min(68dvh, 520px);
  }
}
.pin-status.in { background: #3ddc97; }
.pin-status.out { background: #8b93a7; }
.pin-status.sos { background: #ff2a2a; box-shadow: 0 0 8px #ff2a2a; }
html[data-motion="reduce"] .pin-status.sos { box-shadow: none; }
.bubble { display: flex; gap: 8px; align-items: flex-start; }
.bubble b + .fine { white-space: nowrap; }
.region-switch { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.status-chip, .pill { display: inline-flex; margin-left: 8px; border-radius: 999px; padding: 2px 8px; font-size: 0.72rem; font-weight: 800; }
.status-chip.on-target, .status-chip.chasing, .pill.inside { background: rgba(255, 50, 40, 0.2); color: #ffb4a8; }
.status-chip.enroute, .pill.approaching { background: rgba(246, 81, 0, 0.22); color: #ffb15a; }
.status-chip.standby, .status-chip.free { background: rgba(80, 180, 120, 0.16); color: #9dffc8; }
.status-chip.returning { background: rgba(80, 160, 255, 0.18); color: #c5dcff; }
.status-chip.deactivated { background: rgba(140, 148, 160, 0.18); color: #c5c8d0; }
.status-chip.home { background: rgba(61, 214, 140, 0.24); color: #b8ffd8; }
.pin-stack { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0; line-height: 1.2; }
.pin-label { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 8px; }
.pin-stack .status-chip { position: static; margin: 0; font-size: 0.68rem; line-height: 1.2; padding: 1px 6px; white-space: nowrap; background: #12151d; border: 1px solid rgba(255,255,255,0.28); box-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.pin-stack.is-off .pin-avatar { filter: grayscale(1); opacity: 0.72; border-color: #8b93a7; }
.status-chip.off { background: #2a2e38; color: #c5c8d0; border-color: rgba(255,255,255,0.16); }
.team-strip.is-off, .chaser-card.is-off { opacity: 0.72; }
.share-toggle {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px;
  border-radius: 14px; border: 1px solid rgba(255,255,255,0.16); background: #0c1018; text-align: left; font-weight: 800;
}
.share-knob { width: 44px; height: 26px; border-radius: 999px; background: #2a2e38; position: relative; flex: none; }
.share-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: white; }
.share-toggle[aria-pressed="true"] { border-color: #f65100; color: #ffd7bf; }
.share-toggle[aria-pressed="true"] .share-knob { background: #f65100; }
.share-toggle[aria-pressed="true"] .share-knob::after { left: 21px; }
.choice.primary { background: #f65100; color: white; border-color: #f65100; text-align: center; font-weight: 800; }
.choice.secondary { background: transparent; color: #f4f7fb; border-color: rgba(255,255,255,0.2); text-align: center; }
.target-line, .note-line, .form-actions, .target-side { display: flex; gap: 8px; align-items: center; }
.target-line input, .note-line input { flex: 1; margin: 0; min-width: 0; }
.target-side .choice, .form-actions .choice { flex: 1; text-align: center; }
.team-map summary { cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; }
.chat-thread { display: flex; flex-direction: column; min-height: 420px; background: #12151d; border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 12px; }
.choice.danger { background: #5c100c; color: white; border-color: #ff3b3b; text-align: center; font-weight: 800; min-height: 56px; }
.now-status { margin: 0 0 8px; font-weight: 800; }
.checkin-sos { border-color: rgba(255, 59, 59, 0.45); }
.checkin-sos .choice.danger { width: 100%; }
.pin-stack.overdue-amber .pin-avatar { box-shadow: 0 0 0 3px #e6a23c; }
.pin-stack.overdue-red .pin-avatar { box-shadow: 0 0 0 3px #d23b3b; }
.chaser-card.overdue-amber { outline: 2px solid #e6a23c; }
.chaser-card.overdue-red { outline: 2px solid #d23b3b; }
.status-chip.overdue-amber { background: #e6a23c; color: #1a1204; }
.status-chip.overdue-red { background: #d23b3b; color: #fff; }
.status-chip.quick { background: rgba(80, 140, 220, 0.2); color: #d5e6ff; }
.motto { margin: 0; text-align: center; letter-spacing: 0.04em; color: #ffb07a; font-weight: 650; }
.quick-status { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.quick-chip { min-height: 36px; }
.quick-help { border-color: #ffb020; color: #ffe1a8; font-weight: 800; }
.quick-home { border-color: #3dd68c; color: #b8ffd8; font-weight: 800; }
.status-picks .status-tile { white-space: normal; text-align: center; line-height: 1.2; }
.check-by, .overdue-admin { display: grid; gap: 8px; margin-top: 12px; }
.ops-alert { margin: 8px 16px 0; padding: 10px 12px; border-radius: 12px; background: #3a2a12; color: #ffd56a; }
.ops-alert.red { background: #3a1216; color: #ffd0d0; }
.ops-alert[hidden] { display: none; }
.sos-takeover {
  position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center;
  padding: clamp(12px, 3vh, 32px); background: rgba(20, 0, 0, 0.72); color: white;
}
.sos-takeover[hidden] { display: none; }
.sos-takeover:not(.help) { animation: sos-pulse 0.9s ease-in-out infinite; }
.sos-takeover.help { animation: none; }
.sos-card {
  position: relative; width: min(920px, 100%); max-height: calc(100dvh - 24px); overflow: auto;
  display: grid; grid-template-rows: auto auto minmax(220px, 46vh) auto auto auto; gap: 12px;
  padding: clamp(16px, 2vw, 28px); border-radius: 20px; background: #3a0909;
  border: 1px solid rgba(255, 80, 70, 0.65); box-shadow: 0 0 40px rgba(255, 40, 40, 0.45);
}
.sos-head { display: grid; gap: 8px; min-width: 0; padding-right: 128px; }
.sos-takeover.help .sos-card { background: #3a2409; border-color: rgba(255, 176, 32, 0.7); box-shadow: 0 0 28px rgba(255, 160, 40, 0.35); }
.sos-sound {
  position: absolute; top: 14px; right: 14px; min-height: 32px; padding: 4px 10px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.35); background: transparent; color: #ffd7bf; font-size: 0.78rem;
}
.sos-ribbon { margin: 0; width: max-content; padding: 2px 8px; border-radius: 6px; background: #ffd56a; color: #1a1204; font-weight: 800; letter-spacing: 0.12em; }
.sos-ribbon[hidden] { display: none; }
.sos-label { display: flex; align-items: center; gap: 10px; margin: 0; font-size: clamp(28px, 3vw, 44px); font-weight: 850; letter-spacing: 0.08em; }
.sos-icon { width: 1.05em; height: 1.05em; display: grid; place-items: center; border-radius: 50%; background: #ff2a2a; color: white; }
.sos-icon svg { width: 0.62em; height: 0.62em; display: block; }
.sos-person { display: flex; gap: 14px; align-items: center; min-width: 0; }
.sos-photo { width: 72px; height: 72px; min-width: 72px; border-radius: 50%; border: 2px solid #f65100; display: grid; place-items: center; overflow: hidden; background: #1a100c; font-weight: 800; }
.sos-photo img { width: 100%; height: 100%; object-fit: cover; }
.sos-card h1 { margin: 0; font-size: clamp(26px, 3vw, 40px); }
.sos-place { margin: 2px 0 6px; color: #ffd7bf; }
.sos-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.sos-chip { padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,0.1); font-size: 0.85rem; }
.sos-map { min-height: 220px; height: 100%; border-radius: 14px; overflow: hidden; background: #0b0e14; }
.sos-actions, .sos-resolve { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sos-btn, .sos-primary {
  flex: 1 1 7.5rem; min-height: 48px; padding: 8px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.28);
  background: #1a0c0c; color: white; text-decoration: none; font: inherit; font-weight: 750; text-align: center;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.sos-primary { background: white; color: #1a0c0c; border-color: white; }
.sos-resolve { padding-top: 4px; border-top: 1px solid rgba(255,255,255,0.12); }
.sos-resolve input { flex: 1; min-width: 160px; margin: 0; min-height: 48px; }
.sos-pin-dot { display: block; width: 16px; height: 16px; margin: 6px; border-radius: 50%; background: #ff2a2a; box-shadow: 0 0 0 0 rgba(255, 40, 40, 0.7); animation: sos-pin 1.1s ease-out infinite; }
@keyframes sos-pulse {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(255, 40, 40, 0); }
  50% { box-shadow: inset 0 0 120px 12px rgba(255, 30, 30, 0.45); }
}
@keyframes sos-pin {
  70% { box-shadow: 0 0 0 14px rgba(255, 40, 40, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 40, 40, 0); }
}
html[data-motion="reduce"] .sos-takeover, html[data-motion="reduce"] .sos-pin-dot { animation: none; }
@media (max-width: 640px) {
  .sos-card { grid-template-rows: auto auto minmax(180px, 34vh) auto auto auto; }
  .sos-map { min-height: 180px; }
  .sos-head { padding-right: 108px; }
}
.chase-replay { min-height: 360px; }
.replay-bar { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.replay-bar input[type="range"] { flex: 1; min-height: 0; margin: 0; }
.replay-links { display: flex; flex-wrap: wrap; gap: 8px; }
.replay-links .choice { width: auto; text-decoration: none; }
.chase-picks { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.chase-picks input { width: auto; min-height: 0; margin: 0 6px 0 0; }
.sample-banner { margin: 0; padding: 8px 12px; border-radius: 12px; background: #3a2a12; color: #ffd56a; font-weight: 700; }
.sample-banner[hidden] { display: none; }
.target-icon { background: transparent; border: 0; }
.target-pin { display: block; width: 14px; height: 14px; border-radius: 50%; background: #f65100; border: 2px solid #fff; box-shadow: 0 0 0 2px #f65100; }
.target-set { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.target-set input { flex: 1 1 160px; margin: 0; }
.target-set .choice { width: auto; }
.status-chip.free, .pill.clear, .pill.account-on { background: rgba(80, 180, 120, 0.16); color: #9dffc8; }
.pill.account-off { background: rgba(255, 80, 70, 0.14); color: #c5c8d0; border: 1px solid rgba(255, 90, 80, 0.55); }
.pill.account-pending { background: rgba(245, 180, 40, 0.2); color: #ffd56a; }
.pill { margin: 6px 0 0; }
.tabs { display: none; }
.leaflet-container { background: #0b0e14; font: inherit; }

.glow-logo { animation: glow-logo 2.6s ease-in-out infinite; }
.glow-card, .glow-nav, .glow-tstm, .glow-mrgl, .glow-slgt, .glow-enh { animation: none; }
.glow-mdt, .glow-high { animation: none; }
.glow-tornado, .glow-sos { animation: glow-red 0.7s ease-in-out infinite; border-color: #ff2a2a; }
@keyframes glow-logo {
  0%, 100% { box-shadow: 0 0 8px rgba(246, 81, 0, 0.45); }
  50% { box-shadow: 0 0 22px 6px rgba(246, 81, 0, 0.95); }
}
@keyframes glow-card {
  0%, 100% { box-shadow: 0 0 0 rgba(246, 81, 0, 0); }
  50% { box-shadow: 0 0 22px rgba(246, 81, 0, 0.45); }
}
@keyframes glow-nav {
  0%, 100% { box-shadow: 0 0 0 rgba(246, 81, 0, 0); }
  50% { box-shadow: 0 0 16px rgba(246, 81, 0, 0.7); }
}
@keyframes glow-soft {
  0%, 100% { box-shadow: 0 0 0 transparent; }
  50% { box-shadow: 0 0 14px currentColor; }
}
@keyframes glow-orange {
  0%, 100% { box-shadow: 0 0 6px rgba(246, 81, 0, 0.35); }
  50% { box-shadow: 0 0 26px rgba(246, 81, 0, 0.9); }
}
@keyframes glow-red {
  0%, 100% { box-shadow: 0 0 6px rgba(255, 40, 40, 0.4); }
  50% { box-shadow: 0 0 28px rgba(255, 30, 30, 0.95); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after {
  animation: none !important;
}
.who { position: relative; z-index: 4; display: flex; align-items: center; gap: 6px; }
.profile-top-btn {
  min-height: 42px; padding: 6px 12px; border-radius: 12px; font-weight: 750; font-size: 0.82rem;
  border: 1px solid rgba(246, 81, 0, 0.55); background: rgba(246, 81, 0, 0.12); color: #ffb07a; white-space: nowrap;
}
.avatar-btn {
  width: 42px; height: 42px; min-width: 42px; padding: 0; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center; background: #1a100c;
  border: 2px solid #f65100; font-weight: 800;
}
.avatar-face {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1; letter-spacing: -0.04em; font-weight: 800;
}
.avatar-face img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.avatar-pop {
  position: absolute; right: 0; top: 48px; z-index: 6; min-width: 168px;
  background: #161a22; border: 1px solid rgba(246, 81, 0, 0.45); border-radius: 12px;
  display: grid; padding: 4px;
}
.avatar-pop[hidden] { display: none; }
.avatar-pop button { text-align: left; min-height: 42px; padding: 8px 12px; border-radius: 8px; }
.more-sheet { position: fixed; inset: 0; z-index: 900; display: grid; align-items: end; }
.more-sheet[hidden] { display: none; }
.more-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.78); border: 0; padding: 0; }
.more-card {
  position: relative; z-index: 1; width: 100%; max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px)); overflow: auto;
  background: #12151d; border-radius: 20px 20px 0 0; border-top: 1px solid rgba(246, 81, 0, 0.45);
  padding: 8px 14px calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; align-content: start;
}
.more-grab { width: 42px; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.28); margin: 4px auto 0; }
.more-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.more-head h2 { margin: 0; font-size: 1.05rem; }
.more-x { min-height: 44px; min-width: 44px; padding: 8px 12px; border-radius: 12px; color: #ffb15a; }
.more-label { margin: 8px 2px 0; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; }
.more-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.more-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 100%; min-height: 76px; padding: 8px 6px;
  border-radius: 14px; border: 1px solid rgba(255,255,255,0.08); background: #0c1018; text-align: center; color: white;
}
.more-copy { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.more-copy strong { display: block; line-height: 1.2; font-size: 0.75rem; font-weight: 750; text-align: center; }
.more-copy small { display: none; }
.more-ico { width: 24px; height: 24px; min-width: 24px; display: grid; place-items: center; overflow: hidden; flex: none; }
.more-ico svg, .more-link svg { width: 24px; height: 24px; max-width: 24px; max-height: 24px; display: block; }
.more-link[aria-current="page"] { border-color: #f65100; background: rgba(246, 81, 0, 0.16); color: #ffb07a; }
.choice { min-height: 44px; border-radius: 12px; border: 1px solid rgba(246, 81, 0, 0.4); padding: 8px 12px; text-align: left; }
.quick-chip { border-radius: 999px; width: auto; min-height: 36px; padding: 4px 12px; }
@media (min-width: 900px) {
  .checkin-page .status-picks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.profile-grid { display: grid; gap: 12px; }
.fields { display: grid; gap: 10px; }
.fields label, .secret { display: grid; gap: 4px; font-size: 0.85rem; color: var(--muted); }
.secret { position: relative; }
.eye { position: absolute; right: 8px; bottom: 8px; width: auto; min-height: 32px; color: #ffb15a; }
.check-list { margin: 0; padding-left: 18px; color: var(--muted); }
.check-list li.ok { color: #9dffc8; }
.alert-row, .session-row, .team-strip { display: grid; gap: 4px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.obs-grid, .split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chat-log { display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.chat-form, .inline { display: flex; gap: 8px; align-items: center; }
.chat-form input { margin: 0; flex: 1; min-width: 0; }
.ptt { width: 160px; height: 160px; border-radius: 50%; border: 2px solid rgba(246, 81, 0, 0.7); font-weight: 800; letter-spacing: 0.08em; }
.ptt[aria-pressed="true"] { background: #f65100; color: white; }
select, textarea { width: 100%; margin-top: 6px; border-radius: 12px; border: 1px solid rgba(246, 81, 0, 0.55); background: #0c1018; color: white; padding: 8px 12px; }
textarea { min-height: 88px; }
@media (max-width: 980px) {
  .home-grid, .tool-grid, .stats { grid-template-columns: 1fr 1fr; }
  .watch-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .ops { height: 100dvh; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .side { display: none; }
  .topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
  .head-logo { display: grid; width: 42px; height: 42px; padding: 4px; order: 1; flex: 0 0 auto; }
  .head-copy { order: 2; flex: 1 1 0%; min-width: 0; padding: 0; overflow: hidden; }
  .head-copy .eyebrow, .ops:not([data-section="home"]) .greet { display: none; }
  .head-copy h1 {
    display: block; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.02rem; line-height: 1.2;
  }
  .ops[data-section="home"] .greet {
    display: -webkit-box; margin: 0; white-space: normal; overflow: hidden;
    -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
    font-size: 0.95rem; line-height: 1.15;
  }
  .ops[data-section="home"] .head-copy h1 { display: none; }
  .head-pills { display: contents; }
  .who { order: 3; flex: 0 0 auto; margin-left: 0; align-self: center; }
  .live-pill { order: 4; }
  .warn-pill { order: 5; flex: 1 0 100%; }
  .sys-slot {
    order: 6; position: static; flex: 1 0 100%; min-width: 0; justify-content: flex-start; overflow-x: auto;
  }
  .sys-slot:empty { display: none; }
  #arm-sound { display: none; }
  .phone-only { display: block; width: 100%; text-align: left; min-height: 42px; }
  .main { min-height: 0; overflow: auto; padding: 12px 12px 14px; }
  .map-wrap { min-height: 220px; height: 220px; }
  .map-sheet {
    position: fixed; left: 0; right: 0; top: auto; bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    width: auto; max-height: 72dvh; border-left: 0; border-top: 1px solid rgba(246, 81, 0, 0.55);
    border-radius: 18px 18px 0 0;
  }
  .radar-shell { grid-template-columns: 1fr; }
  .radar-panel { order: 2; }
  .home-grid { grid-template-columns: 1fr 1fr; }
  .tabs {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; overflow: hidden; position: static;
    padding: 4px 2px calc(14px + env(safe-area-inset-bottom, 18px));
    background: #090b10; border-top: 1px solid rgba(255,255,255,0.08);
  }
  .tabs .tab-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    width: 100%; min-width: 0; min-height: 48px; padding: 2px 1px; border-radius: 10px;
    color: #d5d8e0; text-align: center;
  }
  .tab-icon { position: relative; width: 24px; height: 24px; display: grid; place-items: center; flex: none; overflow: visible; }
  .tab-icon svg { width: 24px; height: 24px; max-width: 24px; max-height: 24px; display: block; }
  .tab-label { display: block; max-width: 100%; font-size: 0.62rem; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tab-icon .badge { position: absolute; top: -6px; right: -11px; margin: 0; min-width: 16px; height: 16px; padding: 0 4px; font-size: 0.62rem; }
  .tabs .tab-btn[aria-current="page"], .tabs .tab-btn[aria-pressed="true"] {
    color: #f65100; background: rgba(246, 81, 0, 0.16); border-color: transparent;
  }
  .overlay-bar { flex-wrap: wrap; overflow: visible; gap: 8px; margin: 0 0 12px; }
  .desk-map-frame { display: grid; gap: 10px; }
  .chip-scroll { display: flex; flex-wrap: wrap; gap: 8px; overflow: visible; }
  .chip-scroll::-webkit-scrollbar { display: none; }
  .chip-scroll .choice { flex: 0 0 auto; width: auto; white-space: nowrap; }
  .watch-filters { display: grid; gap: 8px; }
  .watch-selects { display: flex; gap: 8px; }
  .watch-selects select { flex: 1; min-width: 0; width: auto; margin: 0; }
  .home-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; overflow: visible; }
  .home-stat { white-space: normal; text-align: center; justify-content: center; }
  .chip-scroll { flex-wrap: wrap; overflow: visible; }
  .chip-scroll::-webkit-scrollbar { height: 0; display: none; }
  .chip-scroll .choice { flex: 0 0 auto; width: auto; }
  .home-desk, .chat-shell, .editor-grid { grid-template-columns: 1fr; }
  .bubble.mine { margin-left: 0; }
}
.nav-label { margin: 12px 8px 0; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; }
.hero-threat {
  position: relative; overflow: visible; text-align: center;
  padding: 12px 16px 10px; border-width: 2px; border-color: var(--cat, #8b93a1);
  background: #12151d;
}
.hero-title { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-threat h2 {
  display: block; margin: 0; color: var(--cat, #c5c8d0);
  font-size: clamp(2.2rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: 0.02em;
  font-weight: 850; text-transform: uppercase; text-shadow: none;
}
.hero-threat .hero-level {
  margin: 0; color: var(--cat, #c5c8d0); font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--cat, #8b93a1); border-radius: 999px; padding: 2px 8px;
}
.hero-threat .fine { max-width: 46rem; margin: 4px auto 0; font-size: 0.82rem; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.drawer-head .drawer-x { flex: none; width: 36px; height: 36px; font-size: 1.3rem; line-height: 1; }
.home-col { display: grid; gap: 12px; align-content: start; min-width: 0; }
.outlook-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.outlook-mini { min-width: 0; display: grid; gap: 4px; }
.outlook-mini img { width: 100%; height: 92px; object-fit: cover; border-radius: 10px; background: #0c1018; }
.outlook-mini strong, .outlook-mini p { overflow-wrap: anywhere; }
.wx-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.wx-icon { width: 48px; height: 48px; grid-column: 1 / -1; }
.wx-search { display: flex; gap: 8px; align-items: center; }
.wx-search input { margin: 0; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.model-card { min-width: 0; display: grid; gap: 8px; align-content: start; }
.model-card h3 { margin: 0; font-size: 1rem; }
.model-card p, .model-card a { overflow-wrap: anywhere; }
.model-card .choice { display: inline-flex; width: auto; white-space: normal; text-decoration: none; }
.watch-page { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.72fr); gap: 16px; align-items: start; }
.focus-map { height: min(72vh, 720px); min-height: 480px; }
.watch-map { min-width: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.watch-filters { display: grid; gap: 8px; }
.chip-scroll { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-scroll .choice { width: auto; }
.watch-selects { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.watch-selects select { width: auto; min-width: 140px; margin: 0; }
@media (max-width: 860px) {
  .chip-scroll { flex-wrap: wrap; overflow: visible; }
  .chip-scroll::-webkit-scrollbar { height: 0; display: none; }
  .chip-scroll .choice { flex: 0 0 auto; width: auto; white-space: nowrap; }
}
.seg select { width: auto; min-height: 40px; margin: 0; }
.alert-row-btn { width: 100%; white-space: normal; overflow-wrap: anywhere; margin-top: 6px; }
.alert-group { margin: 8px 0 0; border-radius: 12px; overflow: hidden; background: #12151d; }
.alert-group summary { cursor: pointer; font-weight: 800; padding: 8px 10px; }
.alert-group summary::-webkit-details-marker { color: #f4f7fb; }
.alert-product {
  display: grid; gap: 2px; width: 100%; margin: 0; padding: 8px 10px; border: 0; border-radius: 0;
  text-align: left; color: #f4f7fb;
}
.alert-product .area-summary {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
details.card summary { cursor: pointer; font-weight: 800; }
[hidden] { display: none !important; }
.roster-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.btn-small { min-height: 32px; padding: 4px 10px; width: auto; text-decoration: none; }
a.choice, a.btn-small { text-decoration: none; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; max-width: 100%; }
.admin-toolbar > h2, .admin-toolbar .chase-picks { flex: 1 0 100%; min-width: 0; }
.stack, .panel, .main, .chase-picks, .replay-links { min-width: 0; max-width: 100%; }
.admin-toolbar input, .admin-toolbar select { width: auto; min-width: 0; max-width: 100%; flex: 1 1 10rem; margin: 0; }
.admin-toolbar .choice { flex: 0 0 auto; }
.stat-chips, .chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.count-chip { border-radius: 999px; padding: 4px 10px; border: 1px solid rgba(246, 81, 0, 0.45); background: #141820; font-size: 0.78rem; }
.count-block { display: grid; gap: 4px; }
.user-table, .perm-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.user-table { table-layout: fixed; }
.user-table .col-avatar { width: 56px; }
.user-table .col-name { width: 22%; }
.user-table .col-role { width: 112px; }
.user-table .col-title { width: 16%; }
.user-table .col-status { width: 132px; }
.user-table .col-seen { width: 168px; }
.user-table .col-actions { width: 132px; }
.user-table th, .user-table td, .perm-table th, .perm-table td { text-align: left; padding: 0 8px; border-bottom: 1px solid rgba(255,255,255,0.08); vertical-align: middle; }
.user-table th, .user-table td { height: 64px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.user-table th { height: 36px; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 800; }
.user-avatar, .user-name { cursor: pointer; }
.user-name span { display: grid; min-width: 0; line-height: 1.2; }
.user-name strong, .user-name .fine { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-stack { display: grid; justify-items: start; gap: 2px; line-height: 1.2; }
.user-stack .fine { margin: 0; }
.row-actions { display: flex; align-items: center; gap: 6px; }
.admin-sublist { margin-top: 18px; }
.admin-sublist h3 { margin: 0 0 8px; font-size: 1rem; }
.audit-table { display: grid; }
.audit-row { display: grid; grid-template-columns: 180px minmax(0, 1.3fr) minmax(0, 0.8fr); align-items: center; min-height: 40px; gap: 8px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.audit-head { min-height: 32px; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 800; }
.role-badge { display: inline-flex; border-radius: 999px; padding: 2px 8px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.role-admin { background: rgba(255, 0, 255, 0.18); color: #ff9af0; }
.role-lead { background: rgba(255, 80, 40, 0.2); color: #ffb15a; }
.role-chaser { background: rgba(80, 160, 255, 0.16); color: #b9d4ff; }
.role-forecaster { background: rgba(255, 224, 102, 0.16); color: #ffe066; }
.role-media { background: rgba(255,255,255,0.08); color: #d5dbe6; }
.role-mrgl, .outlook-mini.cat-mrgl { border-color: #66a366; }
.role-slgt { background: rgba(255, 224, 102, 0.2); color: #ffe066; }
.role-enh { background: rgba(255, 165, 0, 0.2); color: #ffbf70; }
.role-mdt { background: rgba(255, 0, 0, 0.18); color: #ff8d8d; }
.role-high { background: rgba(255, 0, 255, 0.2); color: #ff9af0; }
.role-tstm { background: rgba(193, 233, 193, 0.16); color: #c1e9c1; }
.role-none, .role-— { background: rgba(255,255,255,0.08); color: #c5c8d0; }
.outlook-mini { border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 8px; }
.kebab { width: 32px; height: 32px; min-height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid rgba(246, 81, 0, 0.4); cursor: pointer; padding: 0; }
.kebab-portal {
  position: fixed; z-index: 3000; display: grid; gap: 4px; margin: 0; padding: 6px;
  min-width: 220px; max-width: min(280px, calc(100vw - 16px)); max-height: min(70vh, 420px); overflow: auto;
  background: #12151d; border: 1px solid rgba(246, 81, 0, 0.55); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.kebab-portal .choice { display: block; width: 100%; text-align: left; white-space: normal; }
.kebab-portal .choice.danger, .account-actions .choice.danger { border-color: rgba(255, 80, 70, 0.7); color: #ffb4a8; }
.choice:disabled { opacity: 0.45; cursor: not-allowed; }
.account-actions { display: grid; gap: 8px; }
.account-actions .choice { width: 100%; text-align: left; }
.admin-toast {
  position: fixed; z-index: 4000; left: 50%; bottom: 24px; transform: translateX(-50%);
  margin: 0; padding: 10px 14px; max-width: min(480px, calc(100vw - 24px));
  background: #12151d; color: #f4f7fb; border: 1px solid rgba(246, 81, 0, 0.55); border-radius: 12px;
}
.confirm-dialog {
  width: min(420px, calc(100vw - 24px)); border: 1px solid rgba(246, 81, 0, 0.55);
  background: #12151d; color: #f4f7fb; border-radius: 16px; padding: 16px;
}
.confirm-dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
.confirm-dialog h2 { margin: 0 0 8px; }
.confirm-dialog .row-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.confirm-dialog .choice { width: auto; min-width: 108px; text-align: center; }
.drawer { position: fixed; z-index: 40; top: 0; right: 0; width: min(760px, 100vw); height: 100dvh; overflow: auto; background: #0c0e14; border-left: 1px solid rgba(246, 81, 0, 0.45); padding: 16px 16px 88px; display: grid; align-content: start; gap: 12px; }
.drawer.user-sheet {
  z-index: 60; width: 560px; max-width: 100vw; padding: 0; overflow: hidden; gap: 0;
  display: flex; flex-direction: column; height: 100dvh;
}
.user-sheet .drawer-head { flex: none; padding: 16px 16px 12px; align-items: flex-start; }
.user-sheet .editor-body {
  flex: 1 1 auto; min-height: 0; overflow: auto; padding: 0 16px 16px;
  display: grid; align-content: start; gap: 12px; scrollbar-width: none;
}
.user-sheet .editor-body::-webkit-scrollbar { width: 0; height: 0; display: none; }
.user-sheet .editor-card { margin: 0; }
.user-sheet .editor-card h2 { margin: 0 0 12px; }
.editor-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.user-sheet .field { display: grid; gap: 6px; margin: 0; font-size: 0.78rem; color: var(--muted); }
.user-sheet .field input:not([type="checkbox"]):not([type="file"]),
.user-sheet .field select,
.user-sheet .readout {
  width: 100%; margin: 0; height: 40px; min-height: 40px;
}
.user-sheet .readout {
  display: flex; align-items: center; padding: 0 12px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14); background: #0c1018; color: #f4f7fb;
}
.user-sheet .field-error { color: #ffb4a8; font-size: 0.75rem; }
.user-sheet .field-error:empty { display: none; }
.user-sheet .editor-identity { display: flex; gap: 12px; align-items: center; min-width: 0; flex: 1; }
.user-sheet .avatar-col { display: grid; justify-items: center; gap: 6px; flex: none; }
.user-sheet .bubble-avatar { width: 64px; height: 64px; min-width: 64px; font-size: 18px; }
.user-sheet .avatar-actions { display: flex; gap: 4px; justify-content: flex-start; }
.user-sheet .avatar-actions .choice { min-height: 28px; height: 28px; padding: 0 8px; width: auto; font-size: 0.75rem; }
.user-sheet .who { display: grid; gap: 2px; min-width: 0; }
.user-sheet .who h2 { margin: 0; overflow-wrap: anywhere; }
.user-sheet .handle { margin: 0; color: var(--muted); }
.user-sheet .editor-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.user-sheet .editor-chips .pill, .user-sheet .editor-chips .role-badge { margin: 0; }
.user-sheet .danger-zone {
  display: grid; gap: 8px; margin-top: 4px; padding-top: 12px;
  border-top: 1px solid rgba(255, 80, 70, 0.35);
}
.user-sheet .danger-zone h3 { margin: 0; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: #ffb4a8; }
.user-sheet .check-row { display: flex; align-items: center; gap: 8px; height: 40px; color: #f4f7fb; }
.user-sheet .check-row input { width: 18px; height: 18px; min-height: 18px; margin: 0; }
.sr-file { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.drawer-foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 10px; background: rgba(7, 8, 13, 0.94); border-radius: 12px; }
.user-sheet .drawer-foot {
  position: static; flex: none; border-radius: 0; margin: 0;
  border-top: 1px solid rgba(246, 81, 0, 0.35); padding: 12px 16px; background: #0c0e14;
}
.user-sheet .drawer-foot .choice { min-width: 108px; text-align: center; }
@media (max-width: 860px) {
  .admin-toolbar { flex-wrap: wrap; }
  .user-table { table-layout: auto; }
  .user-table thead { display: none; }
  .user-table, .user-table tbody, .user-table tr, .user-table td { display: block; width: auto; height: auto; overflow: visible; white-space: normal; }
  .user-table tr { border: 1px solid rgba(246, 81, 0, 0.28); border-radius: 14px; margin: 8px 0; padding: 8px; }
  .user-table td[data-label] { padding: 6px 0; }
  .user-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
  .audit-row, .audit-head { grid-template-columns: 1fr; min-height: 0; gap: 2px; padding: 6px 0; }
  .drawer.user-sheet { width: 100%; left: 0; right: 0; border-left: 0; }
  .editor-fields { grid-template-columns: 1fr; }
  .perm-table, .perm-table tbody, .perm-table tr, .perm-table th, .perm-table td { display: block; width: auto; overflow: visible; }
  .perm-table { overflow: visible; }
  .perm-table thead { display: none; }
  .perm-table tr {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 1px solid rgba(246, 81, 0, 0.28);
    border-radius: 14px; margin: 8px 0; padding: 10px;
  }
  .perm-table th { grid-column: 1 / -1; padding: 0; }
  .perm-table td { padding: 4px 0; min-height: 44px; }
  .perm-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
}
.roster-main { display: flex; gap: 10px; align-items: center; min-width: 0; text-align: left; }
.roster-main span { display: grid; min-width: 0; }
.roster-main strong, .roster-main .fine { overflow-wrap: anywhere; }
.radio-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vol-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.78rem; }
.vol-slim { width: 120px; min-height: 0; height: 22px; margin: 0; padding: 0; }
.mic-meter { flex: 1 1 140px; height: 10px; border-radius: 999px; background: #0c1018; border: 1px solid rgba(246, 81, 0, 0.45); overflow: hidden; }
.mic-meter span { display: block; height: 100%; width: 0; background: #f65100; }
.map-sheet.page-sheet { position: fixed; z-index: 30; top: 72px; right: 16px; width: min(420px, calc(100vw - 24px)); max-height: calc(100dvh - 96px); }
@media (max-width: 860px) {
  .map-sheet.page-sheet {
    z-index: 40; inset: 0; top: 0; right: 0; bottom: 0; left: 0; width: auto; max-height: none;
    height: 100dvh; border-radius: 0; border-left: 0;
  }
}
.hero-threat.cat-none { --cat: #8b93a1; box-shadow: none; }
.hero-threat.cat-tstm { --cat: #c1e9c1; box-shadow: none; }
.hero-threat.cat-mrgl { --cat: #66a366; box-shadow: 0 0 18px 1px rgba(102, 163, 102, 0.38); }
.hero-threat.cat-slgt { --cat: #ffe066; box-shadow: 0 0 28px 4px rgba(255, 224, 102, 0.5); }
.hero-threat.cat-enh { --cat: #ffa500; box-shadow: 0 0 32px 6px rgba(255, 165, 0, 0.58); }
.hero-threat.cat-mdt {
  --cat: #ff0000;
  box-shadow: 0 0 36px 8px rgba(255, 0, 0, 0.72);
  animation: hero-pulse-mdt 1.15s ease-in-out infinite;
}
.hero-threat.cat-high {
  --cat: #ff00ff;
  box-shadow: 0 0 42px 10px rgba(255, 0, 255, 0.78);
  animation: hero-pulse-high 1s ease-in-out infinite;
}
@keyframes hero-pulse-mdt {
  0%, 100% { box-shadow: 0 0 18px 2px rgba(255, 0, 0, 0.45); }
  50% { box-shadow: 0 0 48px 14px rgba(255, 0, 0, 0.95); }
}
@keyframes hero-pulse-high {
  0%, 100% { box-shadow: 0 0 20px 3px rgba(255, 0, 255, 0.5); }
  50% { box-shadow: 0 0 54px 16px rgba(255, 0, 255, 0.95); }
}
.stat.tone-hot { border-color: rgba(225, 6, 0, 0.75); }
.stat.tone-warn { border-color: rgba(255, 196, 40, 0.75); }
.stat.tone-info { border-color: rgba(90, 160, 255, 0.45); }
.stat.tone-calm { border-color: rgba(255, 255, 255, 0.08); }
.home-desk { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.72fr); gap: 16px; align-items: start; }
.sys-strip { display: flex; flex-wrap: nowrap; justify-content: center; gap: 6px; align-items: center; max-width: 100%; overflow: visible; }
.sys-icon {
  position: relative; flex: none; width: 40px; height: 40px; min-height: 40px; padding: 0;
  border-radius: 12px; border: 1px solid rgba(255,255,255,0.12); color: #e6ebf4;
  display: grid; place-items: center; background: rgba(255,255,255,0.03);
}
.sys-icon:focus-visible { outline: 2px solid #f65100; outline-offset: 2px; }
.sys-glyph, .sys-glyph svg { width: 20px; height: 20px; display: block; }
.sys-icon .sys-dot { position: absolute; right: 4px; bottom: 4px; width: 8px; height: 8px; border-radius: 50%; background: #8b93a1; }
.sys-dot.up { background: #3dd68c; box-shadow: 0 0 8px 2px rgba(61, 214, 140, 0.95); }
.sys-icon .sys-dot.up.live { box-shadow: 0 0 14px 5px rgba(61, 214, 140, 1); animation: sys-live 1.1s ease-in-out infinite; }
.sys-icon .sys-dot.up.live.yt { box-shadow: 0 0 22px 8px rgba(61, 214, 140, 1); animation: sys-live-strong 0.9s ease-in-out infinite; }
.sys-member .sys-dot.up.live { animation: none; box-shadow: 0 0 10px 3px rgba(61, 214, 140, 1); }
.sys-member .sys-dot.up.live.yt { box-shadow: 0 0 14px 4px rgba(61, 214, 140, 1); }
@keyframes sys-live {
  0%, 100% { box-shadow: 0 0 8px 2px rgba(61, 214, 140, 0.75); }
  50% { box-shadow: 0 0 18px 7px rgba(61, 214, 140, 1); }
}
@keyframes sys-live-strong {
  0%, 100% { box-shadow: 0 0 14px 4px rgba(61, 214, 140, 0.9); }
  50% { box-shadow: 0 0 32px 14px rgba(80, 255, 170, 1); }
}
.live-pill {
  display: inline-flex; align-items: center; flex: none; height: 32px; min-height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid #ff2a2a; background: #c1121f; color: white; font-weight: 800; letter-spacing: 0.08em;
  box-shadow: 0 0 16px 4px rgba(255, 40, 40, 0.75); animation: live-pill 1.1s ease-in-out infinite;
}
.live-pill[hidden] { display: none; }
.sound-short { display: none; }
@keyframes live-pill {
  0%, 100% { box-shadow: 0 0 8px 2px rgba(255, 40, 40, 0.55); }
  50% { box-shadow: 0 0 22px 8px rgba(255, 40, 40, 0.95); }
}
.live-player {
  width: min(880px, calc(100vw - 32px)); padding: 0; border: 1px solid rgba(255, 42, 42, 0.55);
  border-radius: 16px; background: #0c0e14; color: #f4f7fb;
}
.live-player::backdrop { background: rgba(0, 0, 0, 0.72); }
.live-player-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.live-player-bar strong { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.live-player-bar a { color: #ffb4a8; font-weight: 750; }
.live-player-bar .choice { width: auto; min-height: 36px; }
.live-frame { position: relative; aspect-ratio: 16 / 9; background: #07080d; }
.live-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.home-live {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  text-align: left; border-color: rgba(255, 42, 42, 0.65); box-shadow: 0 0 18px 2px rgba(255, 40, 40, 0.35);
}
.home-live strong { color: #ffb4a8; }
.profile-sheet { display: grid; gap: 12px; max-width: 880px; }
.profile-sheet .editor-fields > .choice { grid-column: 1 / -1; justify-self: start; min-width: 180px; }
.profile-sheet .check-row { display: flex; align-items: center; gap: 8px; min-height: 40px; color: #f4f7fb; }
.profile-sheet .check-row input { width: 18px; height: 18px; min-height: 18px; margin: 0; }
.profile-sheet .readout {
  display: flex; align-items: center; height: 40px; min-height: 40px; padding: 0 12px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: #0c1018; color: #f4f7fb;
}
.profile-sheet .editor-identity { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.profile-sheet .bubble-avatar { width: 64px; height: 64px; min-width: 64px; font-size: 18px; }
.profile-save {
  position: sticky; bottom: 12px; display: flex; justify-content: flex-end; gap: 8px;
  padding: 10px; border-radius: 14px; background: rgba(7, 8, 13, 0.94);
  border: 1px solid rgba(246, 81, 0, 0.4);
}
.profile-save[hidden] { display: none; }
.profile-save .choice { min-width: 108px; text-align: center; }
.ops-toast {
  position: fixed; z-index: 1200; left: 12px; right: auto; top: auto; width: max-content;
  max-width: calc(100vw - 96px);
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  transform: none; margin: 0; padding: 8px 12px; text-align: center;
  background: #12151d; color: #f4f7fb; border-radius: 12px; pointer-events: none;
}
@media (min-width: 861px) {
  .ops-toast { left: 50%; right: auto; bottom: 20px; width: max-content; max-width: min(420px, calc(100vw - 24px)); transform: translateX(-50%); }
}
.ops-toast.ok { border: 1px solid rgba(80, 180, 120, 0.7); }
.ops-toast.bad { border: 1px solid rgba(255, 80, 70, 0.85); color: #ffb4a8; }
button[data-busy="1"] { opacity: 0.7; }
.feedback-card { display: grid; gap: 10px; }
.feedback-card textarea { width: 100%; min-height: 120px; margin-top: 6px; }
.feedback-list { display: grid; gap: 8px; }
.feedback-row { display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); }
.feedback-row-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.feedback-row .pill { margin: 0; }
.feedback-shot { display: block; max-width: min(100%, 420px); max-height: 240px; border-radius: 12px; margin-top: 6px; }
.feedback-inbox { display: grid; gap: 2px; width: 100%; text-align: left; }
.feedback-inbox strong { font-weight: 750; }
@media (max-width: 860px) {
  .live-player[open] {
    position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
    margin: 0; border-radius: 0; border-left: 0; display: flex; flex-direction: column;
  }
  .live-player[open] .live-frame { flex: 1; aspect-ratio: auto; min-height: 0; }
}
.sys-dot.degraded { background: #f5c542; box-shadow: 0 0 8px 2px rgba(245, 197, 66, 0.95); }
.sys-dot.unknown { background: #8b93a1; box-shadow: none; }
.sys-dot.down { background: #ff4d4d; box-shadow: 0 0 10px 3px rgba(255, 77, 77, 0.98); animation: sys-pulse 1.6s ease-in-out infinite; }
.sys-member { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; white-space: nowrap; }
.sys-member .sys-dot { position: static; width: 8px; height: 8px; margin: 0; flex: none; animation: none; }
@keyframes sys-pulse {
  0%, 100% { box-shadow: 0 0 4px 1px rgba(255, 77, 77, 0.55); }
  50% { box-shadow: 0 0 10px 3px rgba(255, 77, 77, 0.95); }
}
.sys-pop {
  position: fixed; z-index: 2000; display: grid; gap: 2px; margin: 0; padding: 8px 10px;
  width: max-content; max-width: calc(100vw - 16px); height: auto; max-height: none; overflow: visible;
  border-radius: 12px; background: #12151d; opacity: 1; border: 1px solid rgba(255,255,255,0.16);
  text-align: left; white-space: nowrap; box-shadow: 0 12px 32px rgba(0,0,0,0.55);
}
.sys-pop[hidden] { display: none; }
.sys-pop strong { color: var(--text); font-size: 0.84rem; }
.sys-state { color: #f6f7fb; font-size: 0.78rem; font-weight: 750; }
.sys-pop .fine { font-size: 0.75rem; }
.home-page { gap: 16px; }
.home-page .card { border-color: rgba(255, 255, 255, 0.08); padding: 12px 14px; }
.home-stats { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; min-width: 0; overflow: visible; }
.home-stat { flex: 0 1 auto; display: inline-flex; align-items: baseline; justify-content: center; gap: 6px; min-height: 0; min-width: 0; padding: 6px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); background: transparent; font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.home-stat b { color: var(--text); font-size: 0.95rem; }
.desk-map, .home-map, .focus-map { height: 640px; min-height: 520px; }
.home-alert { display: flex; width: 100%; text-align: left; min-height: 36px; padding: 6px 2px; border: 0; border-bottom: 1px solid rgba(255,255,255,0.06); border-radius: 0; background: transparent; }
.outlook-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.home-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.home-links a, .home-links button { text-decoration: none; }
.chat-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 12px; min-height: 68dvh; }
.chat-rooms { display: grid; align-content: start; gap: 6px; }
.chat-rooms .choice.on { border-color: rgba(246, 81, 0, 0.85); background: rgba(246, 81, 0, 0.16); }
.chat-thread { display: flex; flex-direction: column; min-height: 68dvh; background: #0c0e14; border: 1px solid rgba(246, 81, 0, 0.28); border-radius: 16px; overflow: hidden; }
.chat-thread .chat-log { flex: 1; max-height: none; padding: 12px; }
.chat-thread .chat-form { padding: 10px; border-top: 1px solid rgba(246, 81, 0, 0.28); }
.icon-btn { width: 44px; min-width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(246, 81, 0, 0.45); }
.bubble.mine { margin-left: 12%; background: rgba(246, 81, 0, 0.14); }
.chat-photo { display: block; max-width: min(280px, 100%); margin-top: 6px; border-radius: 12px; }
.editor-page { max-width: 980px; display: grid; gap: 12px; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.editor-grid > .card { margin: 0; }
.editor-head { display: flex; gap: 14px; align-items: center; }
.editor-head h2 { margin: 0; }
.sticky-save { grid-column: 1 / -1; position: sticky; bottom: 8px; display: flex; justify-content: flex-end; gap: 8px; padding: 8px; border-radius: 14px; background: rgba(7, 8, 13, 0.94); border: 1px solid rgba(246, 81, 0, 0.4); z-index: 5; }
.sticky-save[hidden] { display: none; }
.profile-sheet .profile-form { display: grid; gap: 12px; }
.profile-sheet .editor-fields { grid-template-columns: 1fr 1fr; }
.profile-sheet .span-2, .profile-sheet .notify-row, .profile-sheet .email-row { grid-column: 1 / -1; }
.profile-sheet .field input:not([type="checkbox"]):not([type="file"]),
.profile-sheet .field select, .profile-sheet .readout { height: 46px; min-height: 46px; margin-top: 0; }
.profile-sheet .field textarea { height: auto; min-height: 88px; }
.profile-sheet .email-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.profile-sheet .email-row .choice { min-height: 46px; width: auto; }
.profile-sheet .notify-row { display: flex; align-items: center; justify-content: space-between; min-height: 46px; }
.profile-sheet .notify-row input { appearance: none; width: 44px; height: 26px; min-height: 26px; margin: 0; border-radius: 999px; background: #2a2e38; position: relative; border: 0; }
.profile-sheet .notify-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: white; }
.profile-sheet .notify-row input:checked { background: #f65100; }
.profile-sheet .notify-row input:checked::after { left: 21px; }
.profile-sheet .field .fine { margin: 4px 0 0; }
@media (max-width: 860px) {
  .home-desk, .chat-shell, .editor-grid, .watch-page, .outlook-row { grid-template-columns: 1fr; }
  .home-desk { display: flex; flex-direction: column; align-items: stretch; }
  .home-col { display: contents; }
  .slot-radar { order: 1; }
  .slot-outlook { order: 2; }
  .slot-weather { order: 3; }
  .slot-team { order: 4; }
  .slot-alerts { order: 5; }
  .home-stat { font-size: 0.72rem; padding: 4px 6px; }
  .watch-map { order: 2; }
  .chat-shell { display: flex; flex-direction: column; height: calc(100dvh - 300px); min-height: 0; }
  .chat-rooms { display: flex; gap: 8px; overflow: auto; align-items: center; padding: 8px; }
  .chat-rooms .nav-label { display: none; }
  .chat-rooms .choice { width: auto; white-space: nowrap; }
  .chat-thread { flex: 1; min-height: 0; }
  .bubble.mine { margin-left: 0; }
  .editor-page { max-width: none; }
  .hero-threat { padding: 10px 12px 8px; }
  .hero-threat h2 { font-size: 1.6rem; }
  .desk-map, .home-map, .focus-map { height: 340px; min-height: 280px; }
  .profile-sheet .editor-fields { grid-template-columns: 1fr; }
  .status-picks { grid-template-columns: 1fr 1fr; }
  .target-line, .note-line, .form-actions { display: flex; gap: 8px; align-items: center; }
  .target-line input, .note-line input { flex: 1; margin: 0; min-width: 0; }
  .target-side { display: flex; gap: 8px; }
  .target-side .choice { flex: 1; text-align: center; }
  .send-icon, .send-icon svg { width: 22px; height: 22px; }
  .send-icon {
    width: 46px; height: 46px; min-width: 46px; min-height: 46px; border-radius: 14px;
    background: #f65100; color: white; display: grid; place-items: center; padding: 0;
  }
  .team-map summary { cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; }
  .team-map .desk-map-frame { margin-top: 8px; }
  .form-actions .choice { flex: 1; text-align: center; }
  input, select, textarea { font-size: 16px; }
  .checkin-page .status-tile { min-height: 76px; }
  .confirm-dialog { width: min(420px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto; }
  .confirm-dialog .choice, .drawer-foot .choice { min-height: 44px; }
  .drawer-foot, .user-sheet .drawer-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .profile-save, .sticky-save { bottom: 8px; }
  .chat-rooms { flex-wrap: wrap; overflow: visible; }
  .desk-map, .home-map, .focus-map, .map-wrap { height: min(48dvh, 420px); min-height: 220px; }
  .sos-takeover { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .live-pill { height: 28px; min-height: 28px; padding: 0 8px; font-size: 0.72rem; }
  .sys-icon { width: 32px; height: 32px; min-height: 32px; border-radius: 10px; }
  .sys-strip { justify-content: flex-start; flex-wrap: nowrap; gap: 4px; }
  .main { padding-bottom: 16px; }
  .radar-shell, .watch-page, .home-desk, .stack, .card, .panel { max-width: 100%; }
  .home-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; overflow: visible; max-width: 100%; }
  .home-stat { min-width: 0; white-space: normal; text-align: center; justify-content: center; }
  .choice, .status-picks .toggle, .tabs .tab-btn, .share-toggle, .more-link { min-height: 48px; }
}

/* Loading skeleton shown until the first screen is ready. */
.skel { display: grid; gap: 12px; padding: 4px 0; }
.skel-bar, .skel-row i, .skel-map { background: linear-gradient(100deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 70%); background-size: 200% 100%; animation: skel-pulse 1.4s linear infinite; border-radius: 14px; }
.skel-bar { height: 76px; }
.skel-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.skel-row i { height: 32px; display: block; }
.skel-map { height: min(52vh, 460px); }
.skeleton-line { opacity: .7; }
@keyframes skel-pulse { from { background-position: 100% 0; } to { background-position: -100% 0; } }
html[data-motion="reduce"] .skel-bar, html[data-motion="reduce"] .skel-row i, html[data-motion="reduce"] .skel-map { animation: none; }

/* ---- Map layers, loop, tools, tap card (v19.12) ---- */
.map-bar-slot { display: none; }
.map-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; flex-wrap: wrap; }
.layers-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; margin: 0; width: auto;
  border-radius: 999px; border: 1.5px solid #f65100; background: rgba(246, 81, 0, 0.16); color: #fff; font-weight: 800; font-size: 0.95rem;
}
.layers-btn .ico svg, .tool-btn .ico svg, .loop-play .ico svg, .tap-x .ico svg { width: 20px; height: 20px; display: block; }
.layers-btn[aria-expanded="true"] { background: #f65100; }
.layers-presets { display: flex; gap: 6px; }
.preset-chip { min-height: 44px; width: auto; padding: 0 14px; margin: 0; border-radius: 999px; }
.layers-summary { color: var(--muted); font-size: 0.8rem; margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lay-backdrop { position: fixed; inset: 0; z-index: 1290; background: transparent; border: 0; padding: 0; margin: 0; min-height: 0; width: auto; }
.lay-backdrop[hidden], .lay-sheet[hidden], .text-sheet[hidden] { display: none; }
.lay-sheet {
  position: fixed; z-index: 1300; width: 360px; overflow: auto; padding: 0 14px 18px; background: #0c0e14; color: #fff;
  border: 1px solid rgba(246, 81, 0, 0.55); border-radius: 16px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55); scrollbar-width: none;
}
.lay-sheet::-webkit-scrollbar, .tap-card::-webkit-scrollbar, .tap-list::-webkit-scrollbar, .text-panel::-webkit-scrollbar { display: none; }
.lay-top { position: sticky; top: 0; background: #0c0e14; padding-top: 8px; z-index: 2; }
.lay-grab, .tap-grab { width: 42px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.28); margin: 0 auto 6px; display: none; }
.lay-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 0 8px; }
.lay-head h2 { margin: 0; font-size: 1.15rem; }
.lay-done { min-height: 40px; width: auto; padding: 0 16px; margin: 0; border-radius: 999px; background: #f65100; border: 0; color: #fff; font-weight: 800; }
.lay-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 6px; }
.lay-presets .choice { min-height: 44px; margin: 0; }
.lay-group { padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); display: grid; gap: 8px; }
.lay-group h3 { margin: 0; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #ff9a52; }
.lay-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.lay-label { display: grid; gap: 1px; font-weight: 700; font-size: 0.95rem; }
.lay-label small { color: var(--muted); font-weight: 500; font-size: 0.75rem; }
.lay-switch { position: relative; width: 52px; height: 30px; min-height: 30px; margin: 0; padding: 0; border-radius: 999px; border: 0; background: #3a3f4b; flex: 0 0 auto; }
.lay-switch[aria-checked="true"] { background: #f65100; }
.lay-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 140ms ease; }
.lay-switch[aria-checked="true"] .lay-knob { transform: translateX(22px); }
.lay-seg, .lay-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lay-opt { flex: 1 1 auto; min-height: 40px; width: auto; margin: 0; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.16); background: #151922; color: #e8edf3; font-weight: 700; font-size: 0.85rem; }
.lay-opt[aria-pressed="true"] { background: rgba(246, 81, 0, 0.24); border-color: #f65100; color: #fff; }
.lay-opt.kind-tornado[aria-pressed="true"] { border-color: #ff3b30; background: rgba(255, 59, 48, 0.2); }
.lay-opt.kind-hail[aria-pressed="true"] { border-color: #33d6ff; background: rgba(51, 214, 255, 0.16); }
.lay-opt.kind-wind[aria-pressed="true"] { border-color: #ffd60a; background: rgba(255, 214, 10, 0.16); }
.lay-field { display: grid; gap: 4px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.lay-field select { min-height: 40px; margin: 0; width: 100%; text-transform: none; letter-spacing: 0; font-size: 0.85rem; }
.lay-field input[type="range"] { width: 100%; margin: 0; min-height: 24px; padding: 0; }
@media (max-width: 860px) {
  .lay-backdrop { background: rgba(0, 0, 0, 0.5); }
  .lay-sheet { top: auto !important; left: 0 !important; right: 0; bottom: 0; width: auto; max-height: 82dvh !important; border-radius: 20px 20px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .lay-grab, .tap-grab { display: block; }
  .layers-summary { display: none; }
  .map-bar { flex-wrap: nowrap; }
  .layers-btn { padding: 0 14px; }
}
.loop-bar { display: grid; gap: 6px; margin: 8px 0 0; padding: 8px 10px; border-radius: 14px; background: #12151d; border: 1px solid rgba(255, 255, 255, 0.08); }
.loop-bar[hidden] { display: none; }
.loop-main { display: flex; align-items: center; gap: 10px; }
.loop-play { flex: 0 0 auto; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; border-radius: 50%; border: 0; background: #f65100; color: #fff; display: grid; place-items: center; }
.loop-play:disabled { background: #3a3f4b; color: #8a919e; }
.loop-main input[type="range"] { flex: 1 1 auto; min-width: 0; margin: 0; min-height: 32px; padding: 0; }
.loop-time { flex: 0 0 auto; min-width: 5.6em; text-align: right; font-size: 0.95rem; }
.loop-side { display: flex; align-items: center; gap: 8px; }
.loop-note { flex: 1 1 auto; color: var(--muted); font-size: 0.78rem; }
.loop-chip { width: auto; min-height: 36px; margin: 0; padding: 0 14px; border-radius: 999px; font-weight: 800; }
.map-tools { position: absolute; z-index: 600; top: 10px; right: 10px; display: grid; gap: 8px; }
.tool-btn { width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(7, 8, 13, 0.88); color: #fff; display: grid; place-items: center; }
.tool-btn[aria-pressed="true"] { background: #f65100; border-color: #f65100; }
.map-readout { position: absolute; z-index: 600; top: 10px; left: 10px; right: 64px; margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(7, 8, 13, 0.9); border: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.85rem; font-weight: 700; width: fit-content; max-width: calc(100% - 74px); }
.map-readout[hidden] { display: none; }
.is-measuring { cursor: crosshair; }
.map-legend { position: absolute; z-index: 500; left: 10px; bottom: 46px; max-width: calc(100% - 70px); padding: 8px 10px; border-radius: 12px; background: rgba(7, 8, 13, 0.9); border: 1px solid rgba(255, 255, 255, 0.14); display: grid; gap: 5px; font-size: 0.72rem; }
.map-legend[hidden] { display: none; }
.legend-rows { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.legend-row { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid rgba(255, 255, 255, 0.4); }
.swatch.hatch { background: repeating-linear-gradient(45deg, #111 0 2px, #cfd6de 2px 4px); }
.tap-card {
  position: absolute; z-index: 900; left: 8px; right: 8px; bottom: 8px; max-height: 70%; overflow: auto; padding: 10px 14px 14px;
  background: #0c0e14; border: 1px solid rgba(255, 255, 255, 0.16); border-top: 4px solid #f65100; border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55); display: grid; gap: 6px; scrollbar-width: none;
}
.tap-card[hidden] { display: none; }
.tap-card.urgent { box-shadow: 0 0 0 1px rgba(255, 59, 48, 0.7), 0 0 22px rgba(255, 59, 48, 0.45); }
.tap-head { display: flex; align-items: flex-start; gap: 10px; }
.tap-dot { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; margin-top: 5px; border: 2px solid rgba(255, 255, 255, 0.7); display: inline-block; }
.tap-title { flex: 1 1 auto; min-width: 0; }
.tap-title h2 { margin: 0; font-size: 1.15rem; line-height: 1.2; overflow-wrap: anywhere; }
.tap-kicker { margin: 0; color: var(--muted); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; }
.tap-kicker:empty { display: none; }
.tap-x { flex: 0 0 auto; width: 44px; height: 44px; min-height: 44px; margin: -6px -8px 0 0; padding: 0; border: 0; background: transparent; color: #fff; display: grid; place-items: center; }
.tap-expires { margin: 0; font-weight: 800; font-size: 1rem; color: #e8edf3; }
.tap-expires[hidden] { display: none; }
.tap-expires.soon { color: #ffd56a; }
.tap-area, .tap-fact { margin: 0; color: #cfd6de; font-size: 0.9rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tap-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tap-tag { border-radius: 999px; padding: 4px 10px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.78rem; font-weight: 800; }
.tap-tag.urgent { background: rgba(255, 59, 48, 0.22); border-color: #ff3b30; color: #ffd0cc; }
.tap-actions { display: flex; gap: 8px; margin-top: 4px; }
.tap-actions .choice { flex: 1 1 0; min-height: 44px; margin: 0; width: auto; text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.tap-actions .choice.primary { background: #f65100; border-color: #f65100; color: #fff; font-weight: 800; }
.tap-list { display: grid; gap: 6px; }
.tap-row { display: flex; align-items: center; gap: 10px; min-height: 48px; width: 100%; margin: 0; padding: 0 12px; text-align: left; border-radius: 12px; background: #151922; border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; }
.tap-row .tap-dot { margin-top: 0; }
.tap-row-name { flex: 1 1 auto; min-width: 0; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tap-row-left { flex: 0 0 auto; color: var(--muted); font-size: 0.8rem; }
@media (max-width: 860px) { .tap-card { position: fixed; left: 8px; right: 8px; bottom: calc(var(--tab, 78px) + env(safe-area-inset-bottom) + 8px); max-height: 44dvh; z-index: 1100; } .tap-row-name { white-space: normal; } }
@media (min-width: 861px) { .tap-card { width: 330px; right: auto; max-height: 360px; } .tap-grab { display: none; } }
.text-sheet { position: fixed; inset: 0; z-index: 1400; background: rgba(0, 0, 0, 0.6); display: grid; place-items: end center; }
.text-panel { width: min(680px, 100%); max-height: 88dvh; overflow: auto; background: #0c0e14; border-radius: 20px 20px 0 0; border: 1px solid rgba(255, 255, 255, 0.14); padding: 14px 18px calc(24px + env(safe-area-inset-bottom)); scrollbar-width: none; }
@media (min-width: 861px) { .text-sheet { place-items: center; } .text-panel { border-radius: 18px; } }
.text-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; position: sticky; top: -14px; background: #0c0e14; padding: 6px 0; }
.text-head h2 { margin: 0; font-size: 1.25rem; }
.text-fact { margin: 4px 0; font-size: 0.95rem; }
.text-body h3 { margin: 16px 0 4px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #ff9a52; }
.text-copy { margin: 0; white-space: pre-wrap; font-size: 1rem; line-height: 1.6; color: #e8edf3; }
.poly-label { background: rgba(7, 8, 13, 0.82); border: 0; box-shadow: none; color: #fff; font-weight: 800; font-size: 0.68rem; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.poly-label::before { display: none; }
.cell-arrow span { display: block; font-size: 13px; line-height: 14px; text-align: center; text-shadow: 0 0 3px #000; }
.warn-tornado { filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.85)); }
.pin-heading { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform: rotate(var(--hd, 0deg)); pointer-events: none; }
.pin-heading::after { content: ""; position: absolute; left: 50%; top: -7px; margin-left: -5px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid #ffd56a; filter: drop-shadow(0 0 1px #000); }
.chaser-trail { stroke-linecap: round; }

/* ---- Check in: hero, big tiles, drive mode, SOS hold, target picker ---- */
.checkin-page { --tone: #9dffc8; --tone-bg: rgba(80, 180, 120, 0.2); --tone-line: rgba(80, 180, 120, 0.7); }
.ck-hero { position: relative; display: grid; gap: 10px; padding: 14px 16px; border-radius: 20px; border: 1px solid var(--tone-line); border-left-width: 8px; background: linear-gradient(135deg, var(--tone-bg), rgba(10, 12, 18, 0.92) 70%); }
.ck-hero.tone-chasing { --tone: #ffb4a8; --tone-bg: rgba(255, 60, 48, 0.3); --tone-line: #ff5a50; }
.ck-hero.tone-standby { --tone: #9dffc8; --tone-bg: rgba(60, 200, 120, 0.26); --tone-line: #3dd68c; }
.ck-hero.tone-returning { --tone: #c5dcff; --tone-bg: rgba(70, 150, 255, 0.28); --tone-line: #5aa6ff; }
.ck-hero.tone-home { --tone: #b8ffd8; --tone-bg: rgba(61, 214, 140, 0.3); --tone-line: #3dd68c; }
.ck-hero.tone-enroute { --tone: #ffe1a8; --tone-bg: rgba(255, 176, 32, 0.26); --tone-line: #ffb020; }
.ck-hero.tone-deactivated { --tone: #d7dae2; --tone-bg: rgba(140, 146, 160, 0.22); --tone-line: #8b93a7; }
.ck-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ck-kicker { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; color: #c9d0dc; }
.ck-drive { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.35); color: #fff; font-weight: 800; font-size: 0.9rem; }
.ck-drive[aria-pressed="true"] { background: #fff; color: #0b0e14; border-color: #fff; }
.ck-hero-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ck-hero-ico { flex: none; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--tone-line); color: #0b0e14; }
.ck-hero-ico svg { width: 34px; height: 34px; }
.ck-hero-title { margin: 0; font-size: clamp(1.7rem, 7vw, 2.3rem); line-height: 1.05; font-weight: 900; color: var(--tone); overflow-wrap: anywhere; }
.ck-hero-since { margin: 4px 0 0; font-size: 1rem; font-weight: 700; color: #e6ebf3; }
.ck-hero-since.is-stale { color: #ffd56a; }
.ck-hero-share { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.95rem; color: #c9d0dc; }
.ck-hero-share.is-on { color: #b8ffd8; }
.ck-dot { width: 12px; height: 12px; border-radius: 50%; background: #8b93a7; border: 2px solid #0b0e14; box-shadow: 0 0 0 2px #8b93a7; }
.ck-hero-share.is-on .ck-dot { background: #3dd68c; box-shadow: 0 0 0 2px #3dd68c; }

.checkin-page .status-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ck-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 96px; padding: 12px 8px; border-radius: 18px; border: 2px solid var(--tone-line, transparent); font-size: 1.1rem; font-weight: 900; line-height: 1.15; color: var(--tone); background: var(--tone-bg); touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform 90ms ease; }
.ck-tile:active { transform: scale(0.97); }
.ck-tile.chasing { --tone: #ffd2cb; --tone-bg: rgba(255, 60, 48, 0.2); --tone-line: rgba(255, 90, 80, 0.7); --solid: #ff5a50; }
.ck-tile.standby { --tone: #c7ffe0; --tone-bg: rgba(60, 200, 120, 0.18); --tone-line: rgba(61, 214, 140, 0.65); --solid: #3dd68c; }
.ck-tile.returning { --tone: #d8e8ff; --tone-bg: rgba(70, 150, 255, 0.2); --tone-line: rgba(90, 166, 255, 0.7); --solid: #5aa6ff; }
.ck-tile.home { --tone: #cffff0; --tone-bg: rgba(61, 214, 140, 0.2); --tone-line: rgba(61, 214, 140, 0.65); --solid: #36d38a; }
.ck-tile-ico { width: 34px; height: 34px; display: grid; place-items: center; }
.ck-tile-ico svg { width: 32px; height: 32px; }
.ck-tile-label { text-align: center; }
.ck-tile-check { position: absolute; right: 8px; bottom: 6px; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0; transition: opacity 160ms; }
.ck-tile.just-sent .ck-tile-check { opacity: 1; }
.ck-tile[aria-pressed="true"] { background: var(--solid); color: #0b0e14; border-color: #fff; box-shadow: none; }
.ck-tile[aria-pressed="true"]::before { content: ""; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: #0b0e14 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ck-tile.is-busy { opacity: 0.7; pointer-events: none; }
.off-duty { min-height: 52px; }
.checkin-page .quick-status { gap: 8px; }
.ck-chip { min-height: 52px; padding: 8px 18px; font-size: 1rem; font-weight: 800; border-radius: 999px; }

.checkin-page .share-toggle { min-height: 72px; font-size: 1.15rem; border-radius: 18px; padding: 10px 16px; border-width: 2px; }
.checkin-page .share-knob { width: 62px; height: 36px; }
.checkin-page .share-knob::after { top: 4px; left: 4px; width: 28px; height: 28px; }
.checkin-page .share-toggle[aria-pressed="true"] .share-knob::after { left: 30px; }
.checkin-page .share-toggle[aria-pressed="true"] { background: rgba(246, 81, 0, 0.16); color: #fff; }

.ck-sos { position: relative; overflow: hidden; width: 100%; min-height: 92px; border-radius: 20px; border: 3px solid #ff5a50; background: #4a0d0a; color: #fff; font-size: 1.5rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; --hold: 0; }
.ck-sos::before { content: ""; position: absolute; inset: 0; width: calc(var(--hold) * 100%); background: #e5281f; }
.ck-sos-text { position: relative; }
.ck-sos.is-holding .ck-sos-text::after { content: " …"; }
.ck-sos.is-busy { opacity: 0.7; }
.ck-sos-note { margin: 8px 0 0; text-align: center; }
.checkin-sos .ck-sos { margin-top: 4px; }

.is-drive .ck-hide-drive { display: none !important; }
.is-drive .ck-hero { padding: 12px 14px; }
.is-drive .ck-hero-title { font-size: clamp(1.9rem, 9vw, 2.6rem); }
.is-drive .ck-tile { min-height: 140px; font-size: 1.35rem; }
.is-drive .ck-tile-ico, .is-drive .ck-tile-ico svg { width: 46px; height: 46px; }
.is-drive .checkin-page .share-toggle, .is-drive .share-toggle { min-height: 84px; }
.is-drive .ck-sos { min-height: 132px; font-size: 1.9rem; }
.is-drive .ck-share h2, .is-drive .ck-status h2 { display: none; }

/* Target picker */
.tp { display: grid; gap: 10px; }
.tp-search { position: relative; z-index: 5; }
.tp-msg:empty { display: none; }
.tp-input { width: 100%; min-height: 54px; margin: 0; font-size: 16px; border-radius: 14px; padding: 0 14px; }
.tp-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; max-height: 280px; overflow-y: auto; background: #12151d; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 14px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55); }
.tp-list[hidden] { display: none; }
.tp-item { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 54px; padding: 6px 12px; border-radius: 10px; cursor: pointer; }
.tp-item strong { font-size: 1rem; }
.tp-item span { font-size: 0.85rem; color: #aab2c0; }
.tp-item.is-active, .tp-item:hover { background: rgba(246, 81, 0, 0.22); }
.tp-msg { margin: 0; min-height: 1.3em; }
.tp-msg.is-bad { color: #ff9a92; }
.tp-msg.is-warn { color: #ffd56a; }
.tp-map-wrap { position: relative; z-index: 0; height: 300px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.16); background: #0b0e14; }
.tp-map { width: 100%; height: 100%; touch-action: pan-x pan-y; }
.tp-tools { position: absolute; z-index: 500; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.tp-tool { min-width: 48px; min-height: 48px; padding: 0 12px; margin: 0; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(10, 12, 18, 0.88); color: #fff; font-weight: 800; font-size: 0.85rem; display: grid; place-items: center; }
.tp-tool svg { width: 24px; height: 24px; }
.tp-tool[aria-pressed="true"] { background: #f65100; border-color: #f65100; }
.tp-close { position: absolute; z-index: 500; top: 8px; left: 8px; min-height: 48px; margin: 0; background: rgba(10, 12, 18, 0.9); text-align: center; font-weight: 800; }
.tp-close[hidden] { display: none; }
.tp-foot { display: grid; gap: 8px; }
.tp-label { margin: 0; font-size: 1.02rem; font-weight: 800; color: #9aa3b2; overflow-wrap: anywhere; }
.tp-label.is-set { color: #fff; }
.tp-actions { display: flex; gap: 8px; }
.tp-actions .choice { flex: 1 1 0; min-height: 56px; text-align: center; font-weight: 800; font-size: 1.02rem; margin: 0; width: auto; }
.tp-actions .choice:disabled { opacity: 0.45; }
.tp-pin-icon { background: transparent; border: 0; }
.tp-pin { display: block; width: 30px; height: 40px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7)); }
.tp-pin svg { width: 30px; height: 40px; display: block; }
.is-pending .tp-pin { animation: tp-bob 0.9s ease-in-out infinite alternate; }
@keyframes tp-bob { to { transform: translateY(-4px); } }
.tp.is-full { position: fixed; inset: 0; z-index: 2000; background: #0a0d14; padding: calc(8px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom)); grid-template-rows: auto auto 1fr auto auto; }
.tp.is-full .tp-map-wrap { height: auto; min-height: 0; border-radius: 14px; }
.tp.is-full .tp-hint { display: none; }
body.tp-locked { overflow: hidden; }
@media (min-width: 861px) {
  .tp-map-wrap { height: 340px; }
  .checkin-page .status-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .ck-tile, .is-pending .tp-pin { transition: none; animation: none; } }

body.tp-locked .nav, body.tp-locked .topbar { display: none; }

/* ---- Alerts, activation and in-app notifications (v19.13) ---- */
.notify-slot { display: grid; gap: 10px; margin: 0 16px; }
.notify-slot:empty { display: none; }
.notify-slot { margin-top: 10px; }
.activation-banner {
  position: relative; display: grid; gap: 6px; padding: 14px 16px 16px; border-radius: 16px;
  background: linear-gradient(135deg, #5a1c00, #2b0f08 70%); border: 2px solid #f65100; color: #fff;
}
.activation-banner.stand { background: #14202c; border-color: #4f93c9; }
.activation-banner .act-kicker { margin: 0; font-size: 0.74rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: #ffb27a; }
.activation-banner.stand .act-kicker { color: #9ecbff; }
.activation-banner h2 { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.activation-banner .act-target { margin: 0; display: grid; gap: 0; }
.activation-banner .act-target span { font-size: 0.74rem; color: #ffb27a; text-transform: uppercase; letter-spacing: 0.1em; }
.activation-banner .act-target strong { font-size: 1.1rem; }
.activation-banner .act-note { margin: 0; color: #f1e6df; }
.activation-banner .act-by { margin: 0; }
.activation-banner .act-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.activation-banner .act-actions .choice { min-height: 52px; flex: 1 1 150px; text-align: center; font-weight: 800; }

.notify-layer { position: fixed; z-index: 3000; left: 0; right: 0; top: 0; display: grid; gap: 8px; pointer-events: none; padding: 0 0 0 0; }
.notify-layer > * { pointer-events: auto; }
.notify-banner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; width: 100%;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 12px; color: #fff; background: #b3000c; border-bottom: 3px solid #fff;
}
.notify-banner.tornado { background: #b3000c; animation: nb-pulse 1.4s ease-in-out infinite; box-shadow: 0 0 28px rgba(255, 40, 40, 0.75); }
.notify-banner.sos { background: #8a0020; animation: nb-pulse 1.4s ease-in-out infinite; box-shadow: 0 0 28px rgba(255, 40, 80, 0.75); }
.notify-banner.severe { background: #8a4b00; border-bottom-color: #ffd56a; }
.notify-banner .nb-copy { display: grid; gap: 2px; flex: 1 1 240px; min-width: 0; }
.notify-banner .nb-copy strong { font-size: 1.15rem; letter-spacing: 0.02em; text-transform: uppercase; }
.notify-banner .nb-copy span { opacity: 0.95; overflow-wrap: anywhere; }
.notify-banner .nb-actions { display: flex; gap: 8px; }
.notify-banner button { min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 2px solid #fff; font-weight: 800; color: #fff; }
.notify-banner .nb-view { background: #fff; color: #7a0008; }
.notify-banner.severe .nb-view { color: #5a3000; }
@keyframes nb-pulse { 50% { filter: brightness(1.22); } }
html[data-motion="reduce"] .notify-banner { animation: none; }
.notify-toast {
  margin: 8px 12px 0 auto; max-width: min(430px, calc(100vw - 24px)); width: calc(100vw - 24px);
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 14px;
  background: #12151d; border: 1px solid rgba(246, 81, 0, 0.6); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}
.notify-toast .nt-copy { display: grid; flex: 1; min-width: 0; }
.notify-toast .nt-copy strong { font-size: 0.98rem; }
.notify-toast .nt-copy span { color: var(--muted); font-size: 0.88rem; overflow-wrap: anywhere; }
.notify-toast button { min-height: 40px; border-radius: 10px; padding: 6px 12px; }
.notify-toast .nt-open { border: 1px solid rgba(246, 81, 0, 0.7); font-weight: 700; }
.notify-toast .nt-close { color: var(--muted); font-size: 1.3rem; padding: 4px 8px; }

.alerts-nudge { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; border: 1px solid rgba(246, 81, 0, 0.6); }
.alerts-nudge h2 { margin: 0 0 2px; font-size: 1.05rem; }
.alerts-nudge p { margin: 0; color: var(--muted); }
.alerts-nudge .nudge-copy { flex: 1 1 260px; }
.alerts-nudge .nudge-actions { display: flex; gap: 8px; }
.alerts-nudge .choice { min-height: 46px; text-align: center; }

.al-page { max-width: 880px; }
.al-intro { margin: 0; }
.al-saved { min-height: 1.2em; margin: 0; }
.al-saved[data-tone="ok"] { color: #7fe3a5; }
.al-saved[data-tone="bad"] { color: #ffb4a8; }
.al-grid { display: grid; gap: 14px; }
.al-card h2 { margin: 0 0 8px; font-size: 1.1rem; }
.al-state { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; }
.al-dot { flex: none; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: #6b7686; }
.al-dot.on { background: #3fd47e; }
.al-dot.off { background: #f65100; }
.al-dot.warn { background: #ffd56a; }
.al-warn { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: #3a2a12; color: #ffd56a; }
.al-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.al-actions .choice { min-height: 50px; text-align: center; font-weight: 700; flex: 1 1 200px; }
.al-steps { margin: 8px 0 12px; padding-left: 22px; display: grid; gap: 8px; }
.sw-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid rgba(255, 255, 255, 0.08); cursor: pointer; }
.sw-row:first-of-type { border-top: 0; }
.sw-row.sub { padding-left: 18px; }
.sw-row .sw-copy { display: grid; flex: 1; min-width: 0; }
.sw-row .sw-copy strong { font-weight: 700; }
.sw-lock { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #ffb27a; border: 1px solid rgba(246, 81, 0, 0.6); border-radius: 999px; padding: 2px 8px; }
.sw-row input.sw-input { position: absolute; opacity: 0; width: 1px; min-height: 0; margin: 0; pointer-events: none; }
.sw-track { position: relative; flex: none; width: 52px; height: 30px; border-radius: 999px; background: #2a303c; border: 1px solid rgba(255, 255, 255, 0.18); transition: background 0.15s; }
.sw-track i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.sw-input:checked ~ .sw-track { background: #f65100; border-color: #f65100; }
.sw-input:checked ~ .sw-track i { transform: translateX(22px); }
.sw-input:focus-visible ~ .sw-track { outline: 2px solid #9ecbff; outline-offset: 2px; }
.sw-row.locked { cursor: default; }
.sw-row.locked .sw-track { opacity: 0.7; }
.al-modes { display: grid; gap: 6px; }
.al-mode { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer; }
.al-mode input { width: 22px; min-height: 22px; height: 22px; margin: 2px 0 0; accent-color: #f65100; flex: none; }
.al-mode:has(input:checked) { border-color: #f65100; background: rgba(246, 81, 0, 0.1); }
.al-mode .sw-copy { display: grid; }
.al-miles select, .al-times select, .al-times input[type="time"] { width: 100%; min-height: 46px; margin-top: 6px; border-radius: 12px; border: 1px solid rgba(246, 81, 0, 0.55); background: #0c1018; color: #fff; padding: 8px 12px; }
.al-counties textarea { width: 100%; margin-top: 6px; border-radius: 12px; border: 1px solid rgba(246, 81, 0, 0.55); background: #0c1018; color: #fff; padding: 10px 12px; font: inherit; }
.al-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.al-device { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.al-device:first-child { border-top: 0; }
.al-device .sw-copy { display: grid; flex: 1; }
.al-samples { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.al-sample { margin: 0; padding: 10px 12px; border-radius: 16px; background: #1b1f29; border: 1px solid rgba(255, 255, 255, 0.12); display: grid; gap: 3px; }
.al-sample .al-sample-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.78rem; }
.al-sample .al-sample-top img { width: 20px; height: 20px; border-radius: 5px; }
.al-sample .al-sample-when { margin-left: auto; }
.al-sample strong { font-size: 0.98rem; }
.al-sample p { margin: 0; font-size: 0.9rem; color: #dfe5ee; }
.al-sample.tor { border-left: 5px solid #ff3b3b; }
.al-sample.svr { border-left: 5px solid #ffb347; }
.al-sample.info { border-left: 5px solid #9ecbff; }
.al-sample.chat { border-left: 5px solid #7fe3a5; }
.al-sample.act { border-left: 5px solid #f65100; }
.al-sample-buttons { display: flex; gap: 8px; margin-top: 4px; }
.al-sample-buttons span { padding: 5px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.12); font-size: 0.82rem; font-weight: 700; }
.al-sample figcaption { margin-top: 4px; }

.act-form .act-who { display: flex; gap: 18px; flex-wrap: wrap; }
.act-form .act-who input, .act-form .act-check input, .act-person input { width: 22px; min-height: 22px; height: 22px; margin: 0 6px 0 0; accent-color: #f65100; vertical-align: middle; }
.act-form textarea { width: 100%; margin-top: 6px; border-radius: 12px; border: 1px solid rgba(246, 81, 0, 0.55); background: #0c1018; color: #fff; padding: 10px 12px; font: inherit; }
.act-form select { width: 100%; min-height: 46px; margin-top: 6px; border-radius: 12px; border: 1px solid rgba(246, 81, 0, 0.55); background: #0c1018; color: #fff; padding: 8px 12px; }
.act-people { display: grid; gap: 4px; max-height: 320px; overflow: auto; padding: 6px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); }
.act-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.act-quick .choice { min-height: 40px; text-align: center; }
.act-person { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; cursor: pointer; }
.act-person:hover { background: rgba(255, 255, 255, 0.05); }
.act-person .sw-copy { display: grid; flex: 1; min-width: 0; }
.act-chip { font-size: 0.74rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #2a303c; color: #cfd8e6; white-space: nowrap; }
.act-chip.s-free { background: #14391f; color: #8ff0b0; }
.act-chip.s-on-target, .act-chip.s-enroute { background: #4a2300; color: #ffb27a; }
.act-chip.s-deactivated { background: #2a303c; color: #9aa6b8; }
.act-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.act-buttons .choice { min-height: 52px; flex: 1 1 180px; text-align: center; font-weight: 800; }
#act-result[data-tone="ok"] { color: #7fe3a5; }
#act-result[data-tone="bad"] { color: #ffb4a8; }
.act-log { display: grid; gap: 12px; }
.act-item { padding: 12px; border-radius: 14px; background: #0c1018; border: 1px solid rgba(246, 81, 0, 0.4); display: grid; gap: 4px; }
.act-item.stand { border-color: rgba(79, 147, 201, 0.6); }
.act-item-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.act-count { margin: 4px 0 0; font-weight: 700; }
.act-answers { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.act-answers li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.act-answers li.ack { border-left: 4px solid #3fd47e; }
.act-answers li.decline { border-left: 4px solid #ff6b5b; }
.act-answers li.wait { border-left: 4px solid #6b7686; }
.act-item .choice { margin-top: 6px; min-height: 44px; text-align: center; }
@media (max-width: 860px) {
  .notify-slot { margin: 8px 12px 0; }
  .notify-toast { margin: 8px 12px 0; width: auto; max-width: none; }
}

.pin-stack.is-stale .pin-label,
.pin-stack.is-stale .status-chip { opacity: 0.62; }
.pin-stack.is-stale .pin-avatar { filter: grayscale(0.35); }

/* OwnTracks background tracking on Check In */
.ck-ot{margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.1)}
.ck-ot-launch{width:100%;min-height:52px;font-size:1.05rem;border-color:#f65100;background:rgba(246,81,0,.28);color:#fff}
.ck-ot-launch-note{margin:8px 0 12px;color:var(--muted)}
.ck-ot-stores{margin:0 0 12px}
.ck-ot-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border-radius:12px;border:1px solid rgba(255,176,32,.55);background:rgba(255,176,32,.14);color:#ffd27a;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}
.ck-ot-btn[hidden]{display:none}
.ck-ot-ghost{border-color:rgba(255,255,255,.2);background:transparent;color:inherit;font-weight:600}
.ck-ot-toggle{width:100%}
.ck-ot-panel{margin-top:10px}
.ck-ot-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.ck-ot-actions .ck-ot-btn{flex:1 1 auto}
.ck-ot-steps{padding-left:18px;margin:6px 0 0}
.ck-ot-steps li{margin:4px 0}

.ops[data-section="stream"] .main { background: radial-gradient(120% 80% at 50% -20%, #141822 0%, #030407 55%, #010103 100%); }
.ops[data-section="stream"] .panel { max-width: 720px; margin: 0 auto; }

.stream-home-quick {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 14px;
  text-align: center; border-radius: 14px; border: 1px solid rgba(255, 60, 60, 0.35);
  background: linear-gradient(145deg, rgba(40, 6, 6, 0.65), rgba(12, 12, 16, 0.95));
  box-shadow: 0 0 24px rgba(255, 40, 40, 0.12);
  color: #f2f4f8; font: inherit; cursor: pointer;
}
.stream-home-quick svg { width: 28px; height: 28px; flex: none; color: #ff5a4a; }
.stream-home-quick strong { display: block; font-size: 0.98rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.stream-home-quick small { display: block; margin-top: 2px; color: #9aa3b0; font-size: 0.78rem; font-weight: 600; }

.stream-bcast { gap: 8px; }
.stream-bcast-alert { margin: 0; padding: 8px 12px; border-radius: 8px; text-align: center; font-weight: 800; font-size: 0.84rem;
  background: linear-gradient(90deg, #3a1216, #2a0c10); color: #ffc9c1; border: 1px solid rgba(255, 80, 70, 0.45); }

.stream-bcast-hero {
  text-align: center; padding: 16px 12px 12px; border-radius: 12px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(8, 9, 12, 0.96) 42%, #050507 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 40px rgba(0, 0, 0, 0.45);
}
.stream-bcast-hero[data-air="live"] {
  border-color: rgba(255, 55, 55, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 120, 120, 0.15), 0 0 32px rgba(255, 35, 35, 0.22), 0 16px 48px rgba(0, 0, 0, 0.5);
  background: linear-gradient(165deg, rgba(120, 12, 12, 0.45) 0%, rgba(10, 8, 10, 0.98) 50%, #050507 100%);
}
.stream-bcast-hero[data-air="down"] { border-color: rgba(255, 120, 90, 0.4); }

.stream-bcast-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.12); min-height: 40px;
}
.stream-bcast-hero[data-air="live"] .stream-bcast-pill {
  border-color: rgba(255, 70, 70, 0.65); background: rgba(40, 8, 8, 0.75);
  box-shadow: 0 0 20px rgba(255, 50, 50, 0.35);
}
.stream-bcast-dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none; background: #ff3b3b;
  box-shadow: 0 0 0 0 rgba(255, 60, 60, 0.8); animation: stream-dot-pulse 1.4s ease-out infinite;
}
@keyframes stream-dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 60, 60, 0.65); }
  70% { box-shadow: 0 0 0 10px rgba(255, 60, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 60, 60, 0); }
}
.stream-bcast-pill-lbl { font-weight: 900; font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; color: #ff5757; }
.stream-bcast-hero[data-air="idle"] .stream-bcast-pill-lbl, .stream-bcast-hero[data-air="rec"] .stream-bcast-pill-lbl { color: #d2d6de; }
.stream-bcast-hero[data-air="down"] .stream-bcast-pill-lbl { color: #ffb09a; }
.stream-bcast-timer { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums;
  font-size: 0.95rem; font-weight: 700; color: #f5f7fa; letter-spacing: 0.06em; }
.stream-bcast-scene-now { margin: 8px 0 0; text-align: center; color: #a8b0bc; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.02em; }
.stream-bcast-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.stream-bcast-chip {
  display: inline-flex; align-items: center; justify-content: center; padding: 4px 8px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 800; font-family: ui-monospace, Menlo, monospace; letter-spacing: 0.02em;
  border: 1px solid transparent; min-height: 24px;
}
.chip-ok { color: #8cf0b0; background: rgba(36, 120, 72, 0.22); border-color: rgba(100, 220, 140, 0.35); }
.chip-warn { color: #ffd27a; background: rgba(140, 90, 10, 0.28); border-color: rgba(255, 200, 90, 0.35); }
.chip-bad { color: #ffb0a8; background: rgba(120, 24, 24, 0.35); border-color: rgba(255, 100, 90, 0.45); }
.chip-muted { color: #8a919c; background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); }
.stream-bcast-warn { margin-top: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(214, 59, 59, 0.22); color: #ffb4a8; font-size: 0.72rem; font-weight: 800; text-align: center; }

.stream-bcast-dock {
  display: grid; gap: 8px; padding: 0 0 8px;
  background: linear-gradient(180deg, #030407 75%, rgba(3, 4, 7, 0.88) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.stream-bcast-btn-inner { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.stream-bcast-btn-ico { display: grid; place-items: center; width: 22px; height: 22px; flex: none; }
.stream-bcast-btn-ico svg { width: 20px; height: 20px; display: block; }
.stream-bcast-primary, .stream-bcast-record { width: 100%; min-height: 52px; font-size: 0.98rem; font-weight: 900; text-align: center; border-radius: 12px; letter-spacing: 0.04em; text-transform: uppercase; }

.stream-bcast-scroll { display: grid; gap: 8px; }
.stream-bcast-panel {
  padding: 12px; border-radius: 12px; text-align: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035) 0%, rgba(6, 7, 10, 0.98) 38%, #040507 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.stream-bcast-hd {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 8px;
  font-size: 0.78rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: #b8bec8;
}
.stream-bcast-sum {
  display: block; margin: 0 0 8px; list-style: none; cursor: pointer;
  font-size: 0.78rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: #b8bec8;
}
.stream-bcast-sum-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.stream-bcast-hd-ico, .stream-bcast-sum-row .stream-bcast-hd-ico { display: grid; place-items: center; width: 20px; height: 20px; color: #f65100; }
.stream-bcast-hd-ico svg, .stream-bcast-sum-row .stream-bcast-hd-ico svg { width: 18px; height: 18px; display: block; }
.stream-bcast-hd-txt { text-align: center; }
.stream-bcast-hint { margin: 0 0 8px; text-align: center; color: #8b939f; font-size: 0.76rem; font-weight: 600; }

.stream-bcast-automation { display: grid; gap: 8px; margin-bottom: 10px; text-align: left; }
.stream-bcast-automation-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
}
.stream-bcast-automation-row input { width: 18px; height: 18px; accent-color: #f65100; }
.stream-bcast-roll-outro { min-height: 46px; }
.stream-bcast-automation { display: grid; gap: 8px; margin-bottom: 10px; text-align: left; }
.stream-bcast-automation-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
}
.stream-bcast-automation-row input { width: 18px; height: 18px; accent-color: #f65100; }
.stream-bcast-roll-outro { min-height: 46px; }
.stream-bcast-scenes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stream-bcast-scene {
  min-height: 64px; width: 100%; text-align: center; font-weight: 800; font-size: 0.82rem; line-height: 1.2;
  border-radius: 10px; padding: 8px; border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
}
.stream-bcast-scene.is-active {
  border-color: rgba(246, 81, 0, 0.75); color: #ffd9c4;
  background: linear-gradient(145deg, rgba(246, 81, 0, 0.28), rgba(30, 12, 4, 0.85));
  box-shadow: 0 0 22px rgba(246, 81, 0, 0.35), inset 0 0 0 1px rgba(255, 180, 120, 0.15);
}

.stream-bcast-sources, .stream-bcast-audio, .stream-bcast-danger-actions { display: grid; gap: 8px; }
.stream-bcast-src-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.32); border: 1px solid rgba(255, 255, 255, 0.08); text-align: left;
}
.stream-bcast-src-row.is-hidden { opacity: 0.48; filter: saturate(0.4); }
.stream-bcast-src-meta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; min-width: 0; margin: 0; font: inherit; }
.stream-bcast-src-ico { display: grid; place-items: center; width: 22px; height: 22px; color: #c5cad3; flex: none; }
.stream-bcast-src-ico svg { width: 18px; height: 18px; display: block; }
.stream-bcast-src-name { font-size: 0.86rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.stream-bcast-src-tag { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8f97a3; flex: none; }
.stream-bcast-src-row.is-hidden .stream-bcast-src-tag { color: #ff9f8f; }

.stream-bcast-ios {
  position: relative; width: 48px; height: 28px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.15);
  background: #2a2f3a; padding: 0; cursor: pointer; flex: none;
}
.stream-bcast-ios[aria-checked="true"] { background: #2fbf71; border-color: rgba(90, 230, 150, 0.55); box-shadow: 0 0 12px rgba(50, 200, 110, 0.35); }
.stream-bcast-ios-knob {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: transform 0.15s ease;
}
.stream-bcast-ios[aria-checked="true"] .stream-bcast-ios-knob { transform: translateX(20px); }

.stream-bcast-aud-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.32); border: 1px solid rgba(255, 255, 255, 0.08);
}
.stream-bcast-aud-meta { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; min-width: 0; }
.stream-bcast-aud-name { font-size: 0.86rem; font-weight: 800; text-align: left; grid-column: 2; }
.stream-bcast-meter {
  grid-column: 1 / -1; height: 6px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.08);
}
.stream-bcast-meter-fill {
  display: block; height: 100%; width: var(--lvl, 40%); border-radius: 999px;
  background: linear-gradient(90deg, #2fbf71, #7ee0a8);
  box-shadow: 0 0 8px rgba(80, 220, 130, 0.45);
}
.stream-bcast-meter.is-muted .stream-bcast-meter-fill { width: 0; box-shadow: none; }
.stream-bcast-mute {
  width: 48px; height: 48px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04); color: #d8dce3; display: grid; place-items: center; padding: 0; cursor: pointer;
}
.stream-bcast-mute svg { width: 22px; height: 22px; display: block; }
.stream-bcast-mute.is-muted { color: #ff6b60; border-color: rgba(255, 80, 70, 0.45); background: rgba(80, 16, 12, 0.45); }

.stream-bcast-preview {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1); background: #030405;
  box-shadow: inset 0 0 48px rgba(0, 0, 0, 0.85);
}
.stream-bcast-preview[data-signal="live"] {
  border-color: rgba(255, 70, 70, 0.22);
  box-shadow: inset 0 0 32px rgba(0, 0, 0, 0.75), 0 0 16px rgba(255, 50, 50, 0.08);
}
.stream-bcast-preview-ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(ellipse 80% 55% at 50% 45%, rgba(28, 34, 44, 0.55) 0%, transparent 68%),
    linear-gradient(180deg, #090b10 0%, #030305 100%);
}
.stream-bcast-preview-grid {
  position: absolute; inset: 0; opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 16px 16px;
}
.stream-bcast-preview-idle {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center;
}
.stream-bcast-preview-idle-ico {
  display: grid; place-items: center; width: 32px; height: 32px; color: #5c6572;
  filter: drop-shadow(0 0 10px rgba(130, 140, 160, 0.35));
}
.stream-bcast-preview-idle-ico svg { width: 28px; height: 28px; display: block; opacity: 0.85; }
.stream-bcast-preview-idle-lbl {
  font-size: 0.7rem; font-weight: 900; letter-spacing: 0.24em; text-transform: uppercase; color: #6e7784;
  text-shadow: 0 0 14px rgba(110, 120, 135, 0.35);
}
.stream-bcast-preview-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  background: #030405; color: transparent;
}
.stream-bcast-preview-img[hidden] { display: none !important; visibility: hidden; }
.stream-bcast-panel.has-frame .stream-bcast-preview-time { color: #a8b0bc; }
.stream-bcast-preview-time { margin: 8px 0 0; text-align: center; color: #6d7582; font-size: 0.74rem; font-weight: 700; font-family: ui-monospace, Menlo, monospace; }
.stream-bcast-preview-time[hidden] { display: none; }

.stream-bcast-health summary { list-style: none; cursor: pointer; }
.stream-bcast-health summary::-webkit-details-marker { display: none; }
.stream-bcast-health-grid { display: grid; gap: 8px; text-align: left; }
.stream-bcast-metric { display: flex; justify-content: space-between; gap: 8px; padding: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); font-size: 0.84rem; }

.stream-bcast-danger { border-color: rgba(255, 70, 60, 0.45); }
.stream-bcast-sum-danger .stream-bcast-hd-ico { color: #ff6b60; }
.stream-bcast-danger-body { display: grid; gap: 8px; }
.stream-bcast-danger-btn { width: 100%; min-height: 52px; }

.stream-bcast-details { text-align: center; }
.stream-bcast-details summary { list-style: none; cursor: pointer; }
.stream-bcast-details summary::-webkit-details-marker { display: none; }
.stream-bcast-details-sum {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 10px 12px;
}
.stream-bcast-details-oneline {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #a8b0bc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 0 0 2px;
}
.stream-bcast-details-body { padding: 4px 6px 12px; text-align: center; }
.stream-bcast-title-row {
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch; margin-bottom: 8px;
}
.stream-bcast-input-title { margin-bottom: 0; }
.stream-bcast-suggest-btn {
  min-height: 44px; padding: 0 14px; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em;
  white-space: nowrap; align-self: stretch;
}
.stream-bcast-input {
  width: 100%; box-sizing: border-box; margin: 0 0 8px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(0, 0, 0, 0.35); color: #eef1f6;
  font: inherit; text-align: center;
}
.stream-bcast-textarea { min-height: 88px; resize: vertical; text-align: left; line-height: 1.35; }
.stream-bcast-dests { display: grid; gap: 8px; margin: 8px 0; text-align: left; }
.stream-bcast-dest-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 10px; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.08);
}
.stream-bcast-dest-name { font-size: 0.84rem; font-weight: 800; text-align: left; }
.stream-bcast-thumb-bg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 8px; }
.stream-bcast-bg-toggle.is-active { border-color: rgba(255, 120, 60, 0.55); background: rgba(255, 90, 40, 0.12); }
.stream-bcast-thumb-library { display: grid; gap: 8px; margin-bottom: 8px; text-align: left; }
.stream-bcast-thumb-library-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 220px; overflow: auto;
}
.stream-bcast-library-pick {
  padding: 0; border: 2px solid rgba(255, 255, 255, 0.12); border-radius: 8px; overflow: hidden; background: #050608;
}
.stream-bcast-library-pick.is-picked { border-color: rgba(255, 120, 60, 0.75); }
.stream-bcast-library-pick img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.stream-bcast-library-upload { width: 100%; min-height: 44px; }
.stream-bcast-thumb-style-row {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center; margin: 6px 0 8px; text-align: left;
}
.stream-bcast-style-lbl { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #8b939f; }
.stream-bcast-select {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(0, 0, 0, 0.35); color: #eef1f6; font: inherit;
}
.stream-bcast-thumb-preview {
  margin: 8px 0; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1); background: #050608; display: grid; place-items: center;
}
.stream-bcast-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stream-bcast-thumb-empty { margin: 0; padding: 12px; text-align: center; color: #8b939f; font-size: 0.78rem; }
.stream-bcast-thumb-actions { display: grid; gap: 8px; }
.stream-bcast-thumb-btn { width: 100%; min-height: 48px; }

.stream-bcast-confirm {
  border: 1px solid rgba(255, 80, 60, 0.45); border-radius: 14px; padding: 0; max-width: min(420px, 92vw);
  background: linear-gradient(165deg, #12141a, #060708); color: #e8ebf0; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}
.stream-bcast-confirm::backdrop { background: rgba(0, 0, 0, 0.72); }
.stream-bcast-confirm-body { padding: 16px 14px 14px; display: grid; gap: 10px; text-align: center; }
.stream-bcast-confirm-hd { margin: 0; font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; }
.stream-bcast-confirm-thumb {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.stream-bcast-library-meta {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 6px 6px;
  color: #a8b0bc;
  text-align: left;
}
.stream-bcast-confirm-sum { display: grid; gap: 6px; text-align: center; }
.stream-bcast-confirm-line { margin: 0; font-size: 0.84rem; font-weight: 700; line-height: 1.35; word-break: break-word; }
.stream-bcast-confirm-desc { color: #a8b0bc; font-weight: 600; font-size: 0.78rem; max-height: 5.5em; overflow: auto; }
.stream-bcast-checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; text-align: center; }
.stream-bcast-checklist li { padding: 6px 8px; border-radius: 8px; font-size: 0.76rem; font-weight: 700; }
.stream-bcast-check-success { background: rgba(40, 120, 72, 0.22); color: #9ae8b8; }
.stream-bcast-check-info { background: rgba(255, 255, 255, 0.06); color: #c5cad3; }
.stream-bcast-check-bad, .stream-bcast-check-error { background: rgba(120, 24, 24, 0.35); color: #ffb0a8; }
.stream-bcast-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---- Hideable navigation (preview tv revamp) ---- */
.nav-hide-toggle {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid rgba(246, 81, 0, 0.55);
  background: rgba(246, 81, 0, 0.12);
  color: var(--text);
  font-weight: 750;
}
.nav-hide-toggle.tabs {
  display: none;
}
.nav-reveal {
  position: fixed;
  z-index: 1200;
  left: 0;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  min-width: 44px;
  min-height: 56px;
  padding: 8px 10px;
  border: 0;
  border-radius: 0 14px 14px 0;
  background: rgba(246, 81, 0, 0.92);
  color: white;
  font-weight: 850;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.nav-reveal[hidden] { display: none; }
.ops.ops-nav-hidden .side {
  width: 0;
  padding: 0;
  overflow: hidden;
  border-right: 0;
  opacity: 0;
  pointer-events: none;
}
@media (min-width: 861px) {
  .ops.ops-nav-hidden {
    grid-template-columns: 0 minmax(0, 1fr);
  }
}
@media (max-width: 860px) {
  .ops.ops-nav-hidden {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .ops.ops-nav-hidden .side { display: none; }
  .nav-hide-toggle.side { display: none; }
  .nav-hide-toggle.tabs {
    display: block;
    position: fixed;
    right: 10px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    width: auto;
    z-index: 1100;
    margin: 0;
    padding: 8px 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  }
  .ops.ops-nav-hidden .tabs {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }
  .ops.ops-nav-hidden .main {
    padding-bottom: 12px;
  }
  .nav-reveal {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    left: 0;
    min-height: 48px;
  }
}
@media (min-width: 861px) {
  .nav-hide-toggle.tabs { display: none; }
  .nav-reveal {
    left: 0;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    border-radius: 0 12px 12px 0;
    min-height: 96px;
  }
}

