/* Live map page */
.map-page { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: #0b1114; color: #e4eaec; }
.map-page .site-header { flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.statusbar { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 6px 12px; overflow: hidden; background: #0f171b; border-bottom: 1px solid #1f2c33; font-size: .86rem; }
.statusbar::-webkit-scrollbar { display: none; }
.stat { white-space: nowrap; color: #a9b7bd; padding: 3px 9px; border-radius: 99px; background: #152026; border: 1px solid #1f2c33; }
.stat b { color: #fff; font-variant-numeric: tabular-nums; }
.src-btn { font: inherit; cursor: pointer; color: #cfe; display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #3c9a7c; }
.dot.bad { background: #e8833a; }
.src-panel { position: absolute; right: 12px; top: 104px; z-index: 30; background: #121b20; border: 1px solid #263840; border-radius: 12px; padding: 12px 14px; max-width: min(420px, calc(100vw - 24px)); font-size: .86rem; max-height: 60vh; overflow: auto; }
.src-panel table { border-collapse: collapse; width: 100%; }
.src-panel td { padding: 4px 6px; border-bottom: 1px solid #1f2c33; vertical-align: top; }
.src-panel a { color: #ffb38a; }
.map-wrap { position: relative; flex: 1 1 auto; min-height: 0; }
#map { position: absolute; inset: 0; }
#windCanvas { position: absolute; inset: 0; pointer-events: none; }

.layer-ctl { position: absolute; top: 10px; right: 10px; z-index: 10; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.layer-list { background: rgba(14, 21, 25, .96); border: 1px solid #263840; border-radius: 12px; padding: 8px 12px 10px; width: 250px; max-height: calc(100dvh - 200px); overflow: auto; font-size: .92rem; }
.layer-list fieldset { border: 0; padding: 0; margin: 4px 0 8px; }
.layer-list legend { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #8fa0a7; padding: 6px 0 2px; }
.layer-list label { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; padding: 5px 0; cursor: pointer; }
.layer-list input { width: 18px; height: 18px; accent-color: #FF7A3D; }
.layer-list .hint { font-size: .78rem; color: #8fa0a7; margin: 4px 0 0; }

.radar-bar { position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 10; background: rgba(14, 21, 25, .95); border: 1px solid #263840; border-radius: 99px; padding: 6px 12px; display: flex; align-items: center; gap: 10px; }
.radar-bar input { width: min(220px, 40vw); accent-color: #FF7A3D; }
.radar-time { font-variant-numeric: tabular-nums; font-size: .85rem; color: #cfe; min-width: 64px; }

.panel { position: absolute; z-index: 20; left: 10px; top: 10px; bottom: 10px; width: 380px; background: rgba(13, 20, 24, .97); border: 1px solid #22323a; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.sheet-handle { display: none; }
.loc { padding: 12px 14px 8px; border-bottom: 1px solid #1f2c33; }
.loc-status { font-weight: 600; margin-bottom: 8px; line-height: 1.35; }
.loc-status.has-warn { color: #ffb37a; }
.loc-status.all-clear { color: #8fdcc0; }
.loc-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.zip-form { display: flex; gap: 6px; }
.zip-form input { width: 86px; min-height: 36px; padding: 6px 10px; background: #152026; color: #fff; border: 1px solid #2a3a42; border-radius: 9px; font: inherit; }
.fine { font-size: .76rem; color: #8fa0a7; margin: 6px 0 0; }
.tabs { display: flex; border-bottom: 1px solid #1f2c33; }
.tabs button { flex: 1; background: none; border: 0; color: #9fb0b6; font: inherit; font-weight: 600; padding: 10px; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button[aria-selected="true"] { color: #fff; border-bottom-color: #FF7A3D; }
#feed, #prepare { overflow-y: auto; flex: 1; min-height: 0; }
#prepare { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
#prepare[hidden] { display: none; }
#prepare .card { background: #131d22; border-color: #22323a; color: #e4eaec; box-shadow: none; }
#prepare .card h3 { color: #8fdcc0; }
#prepare .card p { color: #a9b7bd; }
#prepare .pill { background: #1c2a30; color: #a9c7c3; }
#prepare input[type=email] { background: #152026; color: #fff; border-color: #2a3a42; }
.feed-tools { display: flex; gap: 14px; padding: 8px 14px; font-size: .82rem; color: #9fb0b6; border-bottom: 1px solid #1a262c; }
.feed-tools .inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; }
.feed-list { list-style: none; margin: 0; padding: 0; }
.feed-list li { border-bottom: 1px solid #1a262c; }
.feed-list .muted { padding: 16px; color: #8fa0a7; }
.item { display: grid; grid-template-columns: 10px 1fr; gap: 10px; padding: 11px 14px; cursor: pointer; }
.item:hover, .item:focus-within { background: #131e23; }
.item .sev { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; }
.item .t { font-weight: 600; line-height: 1.3; background: none; border: 0; color: #f0f4f5; font: inherit; font-weight: 600; text-align: left; padding: 0; cursor: pointer; }
.item .meta { font-size: .8rem; color: #8fa0a7; margin: 2px 0 6px; }
.item .acts { display: flex; gap: 12px; font-size: .82rem; flex-wrap: wrap; }
.item .acts a { color: #ffb38a; }
.sev4 { background: var(--sev4); } .sev3 { background: var(--sev3); } .sev2 { background: var(--sev2); } .sev1 { background: var(--sev1); }

.detail-card { position: absolute; z-index: 40; right: 12px; bottom: 12px; width: min(380px, calc(100vw - 24px)); max-height: 60vh; overflow: auto; background: #111a1f; border: 1px solid #2a3a42; border-radius: 14px; padding: 16px 16px 14px; color: #e4eaec; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.detail-card h2 { font-size: 1.1rem; margin: 0 40px 4px 0; }
.detail-card .meta { font-size: .82rem; color: #8fa0a7; margin-bottom: 8px; }
.detail-card p { font-size: .92rem; margin: 6px 0; }
.detail-card .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.detail-card a { color: #ffb38a; }
.detail-card .close { position: absolute; right: 8px; top: 6px; background: none; border: 0; color: #aab; font-size: 1.6rem; cursor: pointer; width: 40px; height: 40px; }
.maplibregl-ctrl-attrib { font-size: 11px; }
.maplibregl-ctrl-attrib a { color: #333; }

@media (max-width: 760px) {
  .panel { left: 0; right: 0; bottom: 0; top: auto; width: auto; height: 42%; border-radius: 16px 16px 0 0; transition: height .25s ease; }
  .panel.expanded { height: 86%; }
  .panel.collapsed { height: 112px; }
  .sheet-handle { display: block; background: none; border: 0; padding: 8px 0 2px; cursor: pointer; width: 100%; }
  .sheet-handle span { display: block; width: 44px; height: 5px; border-radius: 3px; background: #3a4b53; margin: 0 auto; }
  .detail-card { bottom: auto; top: 10px; left: 10px; right: 10px; width: auto; max-height: 50%; }
  .radar-bar { bottom: calc(42% + 10px); }
  .layer-list { width: min(260px, calc(100vw - 20px)); max-height: 50dvh; }
  .src-panel { top: 96px; }
}
@media (prefers-reduced-motion: reduce) { .panel { transition: none; } }
/* keep the zoom buttons (bottom right) clear of the details card on desktop */
@media (min-width: 761px) { .detail-card { right: 56px; } }
.radar-bar[hidden], .layer-list[hidden], .src-panel[hidden], .detail-card[hidden] { display: none !important; }

/* ── 2026-11-05: threat score card, alert cards, dock (time slider + legend), chips ── */
/* Higher-contrast secondary text on the dark theme */
.map-page .fine, .item .meta, .acard .meta, .layer-list .hint, .feed-list .muted { color: #b3c1c6; }
.stat { color: #c3d0d4; font: inherit; cursor: pointer; }
.stat b { color: var(--c, #fff); }
.stat[aria-pressed="false"] { opacity: .62; }
.stat[aria-pressed="false"] b { color: #c3d0d4; }
.stat:focus-visible { outline: 2px solid #FF7A3D; outline-offset: 1px; }
.linkbtn { background: none; border: 0; color: #ffb38a; font: inherit; font-size: .9rem; cursor: pointer; padding: 6px 2px; text-decoration: underline; text-underline-offset: 2px; }

.threat-wrap { padding: 10px 12px 8px; border-bottom: 1px solid #1f2c33; }
.threat { --band: #3a4b53; border: 2px solid var(--band); border-radius: 14px; padding: 10px 12px 12px; background: #0f181c; }
.ts-top { display: flex; align-items: center; gap: 12px; }
.ts-num { font-size: 2.9rem; font-weight: 800; line-height: 1; color: var(--band); font-variant-numeric: tabular-nums; min-width: 2.2ch; text-align: center; }
.threat.loading .ts-num { opacity: .45; }
.ts-meta { flex: 1; min-width: 0; }
.ts-band { font-weight: 700; color: var(--band); filter: brightness(1.15); }
.ts-loc { font-weight: 600; color: #eef3f4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-upd { font-size: .78rem; color: #b3c1c6; }
.ts-change { align-self: flex-start; font-size: .82rem; }
.threat .loc-status { font-size: .88rem; margin: 8px 0 0; }
.ts-pills { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.ts-pill { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; padding: 3px 8px; border-radius: 99px; background: #16222a; border: 1px solid #263840; color: #d6e0e3; }
.ts-pill .d { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.ts-pill b { color: var(--c); filter: brightness(1.2); }
.ts-pill.top { border-color: var(--c); }
.ts-acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ts-empty { padding: 2px 0 4px; }
.threat + .ts-empty { margin-top: 10px; }
.ts-cta { font-size: 1.08rem; margin: 2px 0 8px; color: #eef3f4; }
.ts-empty .zip-form input { width: 120px; }
.alert-signup { margin-top: 10px; padding: 10px 12px; border: 1px dashed #2a3a42; border-radius: 12px; }
.alert-signup label { font-weight: 600; font-size: .92rem; margin: 0 0 6px; display: block; }
.alert-row { display: flex; gap: 6px; }
.alert-row input { flex: 1; min-width: 0; min-height: 36px; padding: 6px 10px; background: #152026; color: #fff; border: 1px solid #2a3a42; border-radius: 9px; font: inherit; }
.feed-note { margin: 0; padding: 8px 14px; font-size: .84rem; color: #cfe; background: #0f1a1f; border-bottom: 1px solid #1a262c; }
.feed-tools { flex-wrap: wrap; row-gap: 4px; }

/* Alert cards with a severity stripe */
.feed-list li.acard { border-bottom: 0; padding: 6px 10px; }
.acard-b { border: 1px solid #22323a; border-left: 5px solid var(--k); border-radius: 10px; padding: 9px 11px; background: #111b20; }
.acard .t { font-weight: 650; line-height: 1.3; background: none; border: 0; color: #f0f4f5; font: inherit; font-weight: 650; text-align: left; padding: 0; cursor: pointer; }
.acard .meta { font-size: .8rem; margin: 3px 0 6px; }
.acard .meta b { color: #eef3f4; }
.acard .acts { display: flex; gap: 12px; font-size: .82rem; flex-wrap: wrap; }
.acard .acts a { color: #ffb38a; }
.gstrip { margin-top: 8px; border-top: 1px solid #1f2c33; padding-top: 7px; }
.gstrip-h { display: flex; justify-content: space-between; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: #b3c1c6; margin-bottom: 5px; }
.gstrip-h a { color: #ffb38a; text-transform: none; letter-spacing: 0; }
.gstrip-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mcard { display: flex; flex-direction: column; justify-content: space-between; gap: 5px; padding: 7px; border-radius: 8px; background: #16222a; border: 1px solid #22323a; min-width: 0; }
.mcard-name { font-size: .76rem; line-height: 1.25; color: #e4eaec; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mcard-buy { font-size: .72rem; font-weight: 600; color: #06201c; background: #FF7A3D; border-radius: 6px; padding: 5px 4px; text-align: center; text-decoration: none; }
.gstrip-legal { margin: 5px 0 0; font-size: .7rem; color: #9fb0b6; }
.sponsor-li { padding: 0 10px; border-bottom: 0 !important; }

/* Bottom dock: radar row, Last-24h slider, legend bar, full legend */
.dock { position: absolute; z-index: 12; left: 400px; bottom: 14px; width: min(470px, calc(100% - 470px)); background: rgba(13, 20, 24, .95); border: 1px solid #263840; border-radius: 12px; padding: 7px 10px 6px; font-size: .8rem; color: #d6e0e3; }
.dock .radar-bar, .dock .time-bar { position: static; transform: none; background: none; border: 0; padding: 0 0 5px; display: flex; align-items: center; gap: 8px; }
.dock .radar-bar input, .dock .time-bar input { flex: 1; width: auto; accent-color: #FF7A3D; }
.dock .btn.small { min-height: 30px; padding: 3px 9px; }
.dock-label { font-weight: 600; color: #b3c1c6; white-space: nowrap; min-width: 58px; }
.time-bar.past .radar-time { color: #ffd27a; font-weight: 600; }
.radar-time { min-width: 96px; text-align: right; }
.legend-bar { border-top: 1px solid #1f2c33; padding-top: 5px; }
.lg-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.lg-tabs button { font: inherit; font-size: .72rem; padding: 2px 7px; border-radius: 99px; border: 1px solid #263840; background: #152026; color: #b3c1c6; cursor: pointer; }
.lg-tabs button[aria-selected="true"] { border-color: #FF7A3D; color: #fff; }
.lg-name { font-weight: 600; margin-bottom: 4px; color: #eef3f4; }
.lg-seg { display: flex; height: 18px; border-radius: 5px; overflow: hidden; }
.lg-seg span { flex: 1; font-size: .68rem; line-height: 18px; text-align: center; color: #10181c; font-weight: 600; white-space: nowrap; overflow: hidden; }
.lg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.lg-i { display: inline-flex; align-items: center; gap: 5px; }
.lg-sw { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-sw.faint { opacity: .45; }
.lg-sw.dash { background: none !important; border: 2px dashed #e14ad1; height: 6px; }
.lg-dot { border-radius: 50%; display: inline-block; opacity: .9; }
.legend-toggle { background: none; border: 0; color: #ffb38a; font: inherit; font-size: .78rem; cursor: pointer; padding: 5px 0 0; }
.legend-all { border-top: 1px solid #1f2c33; margin-top: 5px; padding-top: 6px; display: grid; gap: 6px; max-height: 30vh; overflow: auto; }
.legend-all[hidden], .dock[hidden] { display: none !important; }
.hover-pop .maplibregl-popup-content { background: #111a1f; color: #e4eaec; border: 1px solid #2a3a42; font-size: .82rem; line-height: 1.35; padding: 7px 10px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.45); pointer-events: none; }
.hover-pop { pointer-events: none; }
.hp-k { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: #9fb3ba; margin-bottom: 1px; }
.hp-more { display: block; margin-top: 3px; font-size: .72rem; color: #ffb38a; }
.map-hint { position: absolute; z-index: 11; left: 50%; transform: translateX(-50%); top: 112px; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 7px 8px 7px 14px; background: rgba(13,20,24,.95); color: #e4eaec; border: 1px solid #2f4a52; border-radius: 99px; font-size: .84rem; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.map-hint[hidden] { display: none; }
.map-hint button { background: #3a2212; color: #ffd2b8; border: 0; border-radius: 99px; padding: 5px 11px; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
@media (min-width: 761px) { .map-hint { left: calc(400px + (100% - 400px) / 2); } }
@media (max-width: 760px) { .map-hint { top: 12px; left: 12px; right: 70px; transform: none; max-width: none; border-radius: 14px; font-size: .82rem; line-height: 1.3; } }
.hover-pop .maplibregl-popup-tip { display: none; }
@media (max-width: 1100px) and (min-width: 761px) { .dock { width: calc(100% - 470px); min-width: 300px; } }
@media (max-width: 760px) {
  .dock { left: 8px; right: 8px; width: auto; bottom: calc(42% + 8px); padding: 6px 8px 4px; font-size: .76rem; }
  .map-wrap[data-sheet="collapsed"] .dock { bottom: 120px; }
  .map-wrap[data-sheet="expanded"] .dock { display: none; }
  .ts-num { font-size: 2.4rem; }
  .threat-wrap { padding: 4px 10px 8px; }
  .dock-label { min-width: 0; }
  .radar-time { min-width: 0; }
}
.map-page .btn.secondary { color: #9be3d8; border-color: #3a5a60; background: transparent; }
@media (min-width: 761px) { .dock { bottom: 36px; } }
.map-page .site-nav a.nav-gear { border: 1.5px solid #FF7A3D; border-radius: 99px; color: #ffb38a; font-weight: 700; }

/* All-threats additions (2026-11-05) */
.view-btns { display: flex; gap: 4px; justify-content: flex-end; }
.view-btns .btn { background: rgba(14, 21, 25, .92); color: #e4eaec; border: 1px solid #2c404a; }
.ts-why { margin-top: 8px; font-size: 13px; }
.ts-why summary { cursor: pointer; color: #b3c1c6; }
.ts-why ul { list-style: none; margin: 6px 0 0; padding: 0; max-height: 210px; overflow: auto; }
.ts-why li { padding: 4px 0; border-top: 1px solid #1f2c33; }
.ts-why li b { display: block; color: #e4eaec; font-weight: 600; }
.ts-why li span { color: #b3c1c6; }
.legend-bar:empty { display: none; }
.detail-card.cam { width: min(320px, calc(100vw - 24px)); padding: 12px 12px 10px; }
.detail-card.cam h2 { font-size: 1rem; }
.detail-card.cam .meta { margin-bottom: 6px; }
.cam-media img, .cam-media video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #0b1114; }
.cam-tag { font-size: .78rem; color: #8fa0a7; margin-top: 4px; }
.cam-live { color: #ff5a5f; }

/* ── 2026-11-15: phone layout. Map first; filters, layers, timeline and score sit behind taps. Desktop (761px+) unchanged. ── */
.m-filter, .dock-pill, .ts-line, .m-sheet-head, .nav-menu, .dock-close, .m-legend, .vb-ic { display: none; }
@media (max-width: 760px) {
  /* Slim header with a menu button */
  .map-page .site-header .inner { min-height: 48px; gap: 8px; position: relative; }
  .map-page .brand { font-size: 1.2rem; gap: 7px; }
  .map-page .brand-mark { width: 22px; height: 22px; border-radius: 6px; }
  .map-page .nav-menu { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; width: auto; padding: 0 12px; min-height: 40px; height: 40px; background: none; border: 1px solid #2c404a; border-radius: 10px; color: #e4eaec; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; }
  .map-page .site-nav { display: none; }
  .map-page .site-header.menu-open .site-nav { display: flex; flex-direction: column; position: absolute; z-index: 60; top: 48px; right: 8px; left: auto; margin: 0; min-width: 200px; padding: 6px; background: #111a1f; border: 1px solid #2a3a42; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
  .map-page .site-header.menu-open .site-nav a { padding: 10px 12px; min-height: 40px; font-size: .95rem; }

  /* Category chips become a Filters sheet */
  .statusbar { display: none; }
  body.filters-open .statusbar { display: flex; flex-wrap: wrap; position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-height: 72dvh; overflow-y: auto; padding: 0 12px 16px; gap: 8px; background: #0f171b; border: 1px solid #263840; border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.5); }
  body.filters-open .statusbar .stat { min-height: 40px; padding: 6px 12px; }
  body.filters-open .src-btn { margin-left: 0; }
  .m-sheet-head { display: flex; align-items: center; gap: 8px; flex: 1 0 100%; position: sticky; top: 0; z-index: 1; padding: 10px 0 8px; background: inherit; }
  .m-sheet-head b { font-size: 1rem; color: #fff; }
  .m-sheet-head span { font-size: .8rem; color: #b3c1c6; flex: 1; }
  .m-close { width: 40px; height: 40px; flex: 0 0 40px; background: #152026; border: 1px solid #2a3a42; border-radius: 10px; color: #e4eaec; font-size: 1.4rem; line-height: 1; cursor: pointer; }
  .src-panel { position: fixed; z-index: 55; top: auto; bottom: 12px; left: 12px; right: 12px; max-width: none; }
  .m-filter { display: inline-flex; align-items: center; gap: 6px; position: absolute; z-index: 10; top: 10px; left: 10px; min-height: 40px; padding: 0 14px; background: rgba(14, 21, 25, .92); color: #e4eaec; border: 1px solid #2c404a; border-radius: 99px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
  .m-filter b { color: #ffb38a; }

  /* World / US / Layers: small icon stack, top right */
  .view-btns { flex-direction: column; gap: 6px; }
  .view-btns .btn { width: 40px; height: 40px; min-height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 1.05rem; }
  .view-btns .vb-t { display: none; }
  .view-btns .vb-ic { display: inline-flex; }
  #viewUS .vb-ic { font-size: .85rem; font-weight: 800; letter-spacing: .02em; }
  .layer-list { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; width: auto; background: #0e1519; max-height: 75dvh; padding: 0 14px 16px; border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.5); }
  .layer-list label { min-height: 40px; padding: 4px 0; }
  body.layers-open .layer-ctl { z-index: 50; }
  .m-legend { display: block; border-top: 1px solid #1f2c33; margin-top: 10px; padding-top: 4px; font-size: .82rem; }
  .m-legend .legend-all { max-height: none; }
  .m-legend .legend-toggle { min-height: 40px; }

  /* Timeline: a small pill; tap opens the full slider */
  .dock { display: none; }
  .map-wrap.dock-open .dock { display: block; left: 8px; right: 58px; bottom: 12px; padding: 8px 52px 8px 10px; }
  .dock-close { display: inline-block; position: absolute; top: 6px; right: 6px; }
  .dock .time-bar, .dock .radar-bar { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "lab time" "play slide"; gap: 6px 10px; align-items: center; padding-bottom: 6px; }
  .dock .radar-bar[hidden] { display: none; }
  .dock .dock-label { grid-area: lab; }
  .dock .radar-time { grid-area: time; text-align: right; }
  .dock .time-bar .btn, .dock .radar-bar .btn { grid-area: play; width: 40px; height: 40px; min-height: 40px; padding: 0; }
  .dock .time-bar input, .dock .radar-bar input { grid-area: slide; min-width: 0; height: 40px; }
  .dock .legend-toggle, .dock .legend-bar, .dock .legend-all { display: none !important; }
  .dock-pill { display: inline-flex; align-items: center; gap: 6px; position: absolute; z-index: 12; left: 10px; bottom: 12px; min-height: 40px; padding: 0 14px; background: rgba(13, 20, 24, .95); color: #e4eaec; border: 1px solid #263840; border-radius: 99px; font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; }
  .dock-pill.past { color: #ffd27a; border-color: #6b5a2a; }
  .map-wrap.dock-open .dock-pill { display: none; }
  .map-wrap[data-sheet] .dock { bottom: 12px; }

  /* Phones scroll like a page: the map fills the first screen, the EPI strip sits just below it (a one-finger
     swipe there scrolls the page), then the score card, alert signup and the Live alerts / Prepare tabs. */
  .map-page { height: auto; min-height: 100dvh; overflow: visible; display: block; }
  .map-wrap { height: calc(100vh - 48px - 64px); height: calc(100svh - 48px - 64px); min-height: 320px; }
  .panel, .panel.expanded, .panel.collapsed { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; height: auto; overflow: visible; border-radius: 0; border-left: 0; border-right: 0; transition: none; }
  #feed, #prepare { overflow: visible; flex: none; }
  .sheet-handle { display: none; }
  .panel.collapsed .threat-wrap { display: none; }
  .ts-line { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; padding: 8px 14px; background: #0f171b; border: 0; border-bottom: 1px solid #1f2c33; color: #eef3f4; font: inherit; text-align: left; cursor: pointer; position: sticky; top: 0; z-index: 2; }
  .tl-num { font-size: 1.35rem; font-weight: 800; color: var(--band, #8fa0a7); font-variant-numeric: tabular-nums; min-width: 2ch; }
  .tl-txt { flex: 1; min-width: 0; font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tl-txt .tl-band { color: var(--band, #b3c1c6); filter: brightness(1.15); }
  .tl-car { color: #ffb38a; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #2c404a; border-radius: 10px; }
  .maplibregl-ctrl-bottom-right { bottom: 0; }
  .detail-card { position: fixed; top: 56px; }

  /* Smaller, steadier detail card position stays at the top */
}

/* 2026-11-15: EPI card parts */
.ts-about { font-size: .76rem; color: #b3c1c6; margin: 6px 0 0; }
.ts-about a { color: #ffb38a; }
.ts-scope { font-style: normal; font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: #b3c1c6; border: 1px solid #33464f; border-radius: 4px; padding: 0 4px; margin-left: 4px; }
.ts-why-sum { margin: 6px 0 2px; font-weight: 600; color: #eef3f4; font-size: .86rem; }
.ts-what-note { margin: 8px 0 0; }
.ts-what-note:empty { display: none; }
.time-note { margin: 0 0 4px; font-size: .78rem; color: #ffd27a; line-height: 1.35; }
.time-note[hidden] { display: none; }

/* ── 2026-11-16: indicator strip, "+ Indicators" panel, outage badges, stale score ── */
.chips { display: flex; gap: 6px; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.chips .stat { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; min-height: 32px; }
.chips .stat[hidden] { display: none; }
.stat small { font-size: .72rem; color: #9fb0b6; font-variant-numeric: tabular-nums; }
.stat small.bad, .ind-panel .bad { color: #ffb37a; }
.more-btn, .ind-btn { flex: 0 0 auto; min-height: 32px; font-weight: 600; color: #e4eaec; }
.more-btn[hidden] { display: none; }
.ind-btn { border-color: #3a5a60; color: #9be3d8; }
.ind-panel { position: absolute; z-index: 35; right: 12px; top: 104px; width: min(400px, calc(100vw - 24px)); max-height: calc(100dvh - 120px); overflow: auto; background: #0f171b; border: 1px solid #263840; border-radius: 14px; padding: 0 14px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.45); font-size: .9rem; }
.ind-panel[hidden] { display: none !important; }
.ind-head { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 1; background: inherit; padding: 12px 0 8px; }
.ind-head h2 { font-size: 1.05rem; margin: 0; color: #fff; }
.ind-head span { flex: 1; font-size: .8rem; color: #b3c1c6; }
.ind-panel .m-close { display: inline-block; width: 40px; height: 40px; flex: 0 0 40px; background: #152026; border: 1px solid #2a3a42; border-radius: 10px; color: #e4eaec; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.ind-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.preset { font: inherit; font-size: .84rem; min-height: 36px; padding: 4px 12px; border-radius: 99px; border: 1px solid #2a3a42; background: #152026; color: #d6e0e3; cursor: pointer; }
.preset[aria-pressed="true"] { border-color: #FF7A3D; color: #fff; background: #17312f; }
.ind-list { list-style: none; margin: 0; padding: 0; }
.ind-list li { border-top: 1px solid #1f2c33; }
.ind-row { display: grid; grid-template-columns: 20px 28px 1fr; gap: 8px; align-items: start; padding: 9px 0; margin: 0; font-weight: 400; cursor: pointer; }
.ind-row input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: #FF7A3D; }
.ind-ic { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--c); display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; background: #101a1f; }
.ind-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; min-width: 0; }
.ind-t b { color: #eef3f4; }
.ind-n { font-size: .8rem; color: #cfe; font-variant-numeric: tabular-nums; }
.ind-d { flex: 1 0 100%; font-size: .82rem; color: #c3d0d4; }
.ind-s { flex: 1 0 100%; font-size: .76rem; color: #9fb0b6; }
.ind-quake { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid #1f2c33; padding: 10px 0 4px; }
.ind-quake label { margin: 0; font-weight: 600; font-size: .86rem; }
.ind-quake select { font: inherit; min-height: 36px; padding: 4px 8px; background: #152026; color: #fff; border: 1px solid #2a3a42; border-radius: 8px; }
.ind-panel .hint { font-size: .78rem; color: #b3c1c6; margin: 8px 0 0; }
.ind-src { display: block; margin-top: 4px; min-height: 40px; }
.conf { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; border: 1px solid; white-space: nowrap; }
.conf-provider { color: #8fdcc0; border-color: #2f6b5c; background: #10261f; }
.conf-multiple { color: #ffd27a; border-color: #6b5a2a; background: #241f10; }
.conf-reported { color: #c3d0d4; border-color: #4a5a62; background: #141c20; }
.conf-normal { color: #b9d7e6; border-color: #3d5a6b; background: #111d24; }
.acard .chk { color: #9fb0b6; }
.threat.stale .ts-num { opacity: .5; }
.threat.stale .ts-upd { color: #ffd27a; }
@media (max-width: 760px) {
  /* One row under the header: 3 chips (icon and count) + "More". Names and ages are in the panel and read aloud. */
  .statusbar, body.filters-open .statusbar { display: flex; position: static; flex-wrap: nowrap; max-height: none; padding: 4px 8px; gap: 6px; border-radius: 0; box-shadow: none; border: 0; border-bottom: 1px solid #1f2c33; }
  .chips .stat, .more-btn { min-height: 40px; padding: 4px 10px; }
  .chips .stat .nm, .chips .stat small { display: none; }
  /* 2026-11-23: on phones "delayed" is a small orange dot (the word is in the button's spoken label and the panel), so 3 chips fit at 360px */
  .chips .stat small.bad { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ffb37a; font-size: 0; overflow: hidden; vertical-align: middle; }
  .ind-btn, .statusbar .src-btn { display: none; }
  .more-btn { margin-left: auto; }
  .ind-panel { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 82dvh; border-radius: 16px 16px 0 0; padding: 0 14px calc(14px + env(safe-area-inset-bottom)); }
  .map-wrap { height: calc(100vh - 48px - 49px - 64px); height: calc(100svh - 48px - 49px - 64px); }
  .src-panel { z-index: 60; }
  .detail-card { top: 104px; max-height: calc(100svh - 190px); } /* below the header and chip row */
}
@media (min-width: 761px) { #map { left: 400px; } .map-wrap { background: #0b1114; } }
.detail-card a.btn { color: #06201c; } .detail-card a.btn.secondary { color: #9be3d8; } /* the card link color made button text unreadable */

/* Activity log (collapsible, above the alert list) */
.activity { margin: 0 12px 8px; border: 1px solid #22323a; border-radius: 10px; background: #0f181c; }
.activity summary { cursor: pointer; padding: 9px 12px; font-weight: 600; font-size: .9rem; color: #dfe7ea; min-height: 24px; }
.activity summary span { font-weight: 400; color: #9fb3ba; font-size: .82rem; }
.activity ol { list-style: none; margin: 0; padding: 0 12px; display: grid; gap: 8px; }
.activity li { font-size: .84rem; line-height: 1.35; color: #e4eaec; border-top: 1px solid #1c2a31; padding-top: 7px; overflow-wrap: anywhere; }
.activity li small { display: block; color: #9fb3ba; margin-top: 2px; }
.activity li small a { color: #ffb38a; }
.act-k { font-weight: 700; color: #ffd27a; margin-right: 2px; }
.activity .fine { margin: 8px 12px 10px; }
/* Tap / keyboard pop-up (2026-11-21): same look as the hover pop-up, but its buttons can be pressed. */
.tap-pop, .tap-pop .maplibregl-popup-content { pointer-events: auto; }
.tap-pop .maplibregl-popup-content { padding: 9px 30px 9px 11px; }
.tap-pop .maplibregl-popup-close-button { color: #9fb3ba; font-size: 20px; width: 30px; height: 30px; }
.hp-n { display: block; font-size: .7rem; color: #ffb38a; margin-bottom: 2px; }
.hp-list { list-style: none; margin: 4px 0 2px; padding: 0; }
.hp-list li { padding: 3px 0; border-top: 1px solid #22323a; }
.hp-list li:first-child { border-top: 0; }
.hp-rk { display: block; font-size: .68rem; color: #9fb3ba; }
.hp-row { all: unset; box-sizing: border-box; display: block; width: 100%; min-height: 36px; padding: 3px 0; cursor: pointer; }
.hp-btn { background: #3a2212; color: #ffd2b8; border: 0; border-radius: 99px; padding: 7px 13px; min-height: 34px; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.hp-row:focus-visible, .hp-btn:focus-visible, .tap-pop .maplibregl-popup-close-button:focus-visible { outline: 2px solid #ffb38a; outline-offset: 2px; }
.maplibregl-canvas:focus-visible { outline: 3px solid #ffb38a; outline-offset: -3px; }

/* 2026-11-22: shown while the power outage feed is delayed */
.stale-note { position: absolute; z-index: 11; left: 50%; transform: translateX(-50%); top: 12px; max-width: min(560px, calc(100% - 32px)); padding: 7px 14px; background: rgba(13,20,24,.95); color: #ffd2a8; border: 1px solid #8a5a2b; border-radius: 12px; font-size: .82rem; line-height: 1.35; box-shadow: 0 4px 14px rgba(0,0,0,.4); pointer-events: none; }
.stale-note[hidden] { display: none; }
@media (min-width: 761px) { .stale-note { left: calc(400px + (100% - 400px) / 2); max-width: min(520px, calc(100% - 700px)); } }
@media (max-width: 760px) { .stale-note { left: 12px; right: 70px; transform: none; max-width: none; top: 84px; } }
