* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--font-ui); color: var(--text); background: var(--bg); overflow: hidden; }
:focus-visible { outline: 2px solid var(--focus-ring-color); outline-offset: 2px; }
:root { --chrome-h: 101px; }

#map { position: fixed; inset: 0; }
.hh-map-unavailable { display: flex; align-items: center; justify-content: center; background: var(--bg); }
.hh-map-msg { text-align: center; color: var(--text-muted); padding: 1rem 1.5rem; }

/* Cold-load veil: shown while Mapbox initializes, removed on map `load`. */
.hh-map-loading {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: var(--bg); color: var(--text-muted); transition: opacity .3s ease;
}
.hh-map-loading.is-hidden { opacity: 0; }
.hh-map-loading p { font-size: 14px; }
.hh-map-spinner {
  width: 28px; height: 28px; border-radius: 50%; opacity: .6;
  border: 3px solid var(--text-muted); border-top-color: var(--c-blue);
  animation: hh-spin .8s linear infinite;
}
[data-theme="dark"] .hh-map-spinner { border-top-color: var(--c-gold); }
@keyframes hh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hh-map-spinner { animation: none; } }

.hh-icon { display: inline-block; vertical-align: middle; color: inherit; flex: none; }
.hh-icon use { pointer-events: none; }

/* Themed icons — precolored light/dark variant art (two-tone / brand marks
   that can't use currentColor), swapped purely via [data-theme] + state class. */
.hh-timg { display: inline-block; flex: none;
  background-repeat: no-repeat; background-position: center; background-size: contain; }

/* header brand mark (hurricane-pulse): the header is navy in BOTH themes, so
   always use the ivory (dark) variant — the navy variant blends into the bar. */
.logo-mark { background-image: url("/static/img/themed/hurricane-pulse-dark.svg"); }

/* audio button (heartbeat-audio on/off × theme) */
.audio-ic { width: 30px; height: 30px;
  background-image: url("/static/img/themed/heartbeat-audio-on-light.svg"); }
[data-theme="dark"] .audio-ic { background-image: url("/static/img/themed/heartbeat-audio-on-dark.svg"); }
.audio-btn.is-off .audio-ic { background-image: url("/static/img/themed/heartbeat-audio-off-light.svg"); }
[data-theme="dark"] .audio-btn.is-off .audio-ic { background-image: url("/static/img/themed/heartbeat-audio-off-dark.svg"); }

/* theme button: light shows moon (switch-to-dark), dark shows sun */
.theme-ic { width: 28px; height: 28px;
  background-image: url("/static/img/themed/moon-light.svg"); }
[data-theme="dark"] .theme-ic { background-image: url("/static/img/themed/sun-dark.svg"); }

/* recenter (cupola) */
.recenter-ic { width: 30px; height: 30px;
  background-image: url("/static/img/themed/cupola-light.svg"); }
[data-theme="dark"] .recenter-ic { background-image: url("/static/img/themed/cupola-dark.svg"); }

/* pulse tab glyph (hurricane-pulse); active tab pill is navy, so use the
   ivory (dark) variant when active for contrast regardless of page theme */
.pulse-ic { width: 32px; height: 32px;
  background-image: url("/static/img/themed/hurricane-pulse-light.svg"); }
[data-theme="dark"] .pulse-ic { background-image: url("/static/img/themed/hurricane-pulse-dark.svg"); }
.nav-item.is-active .pulse-ic { background-image: url("/static/img/themed/hurricane-pulse-dark.svg"); }

/* Pins */
.hh-pin {
  width: 16px; height: 16px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35); cursor: pointer;
}

/* Top chrome */
#top-chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: var(--header-bg); color: var(--header-text);
  padding: 10px 12px; box-shadow: var(--shadow-2);
}
.chrome-row { display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 44px; height: 44px; flex: 0 0 auto; }
.search-field {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--sp-2);
  height: 40px; padding: 0 var(--sp-2) 0 var(--sp-4);
  background: var(--search-bg); color: var(--search-text);
  border: 1px solid var(--control-border); border-radius: var(--radius-pill);
  box-shadow: var(--raised-shadow-sm);
}
.search-field input {
  flex: 1; min-width: 0; border: none; font-size: var(--fs-lg);
  color: var(--search-text); background: transparent;
}
.search-field input::placeholder { color: var(--search-placeholder); }
#reset-btn { border: none; background: none; color: var(--c-crimson); font-weight: 700; cursor: pointer; }
.account {
  flex: 0 1 auto; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border: none; border-radius: var(--radius-lg); padding: 7px 13px;
  background: var(--c-gold); color: var(--on-gold); font-weight: var(--fw-bold); cursor: pointer;
}
.subtitle { text-align: center; font-family: var(--font-display); font-style: italic;
  color: var(--c-gold-text); font-size: var(--fs-body); margin-top: var(--sp-2); min-height: 16px; }
.chips { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

/* Recenter */
#recenter {
  position: fixed; right: 12px; top: calc(var(--chrome-h, 101px) + 12px); z-index: 15;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--raised-border);
  background: var(--raised-bg); color: var(--c-blue); box-shadow: var(--raised-shadow-sm); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
[data-theme="dark"] #recenter { color: var(--c-gold); }

/* Mapbox zoom controls: top-right of the map, just left of the recenter button */
.mapboxgl-ctrl-top-right { top: calc(var(--chrome-h, 101px) + 12px); right: 68px; }
.mapboxgl-ctrl-top-right .mapboxgl-ctrl { margin: 0; }

/* Bottom sheet (detents wired in 4b; CSS positions per data-detent) */
#sheet {
  position: fixed; left: 0; right: 0; bottom: 56px; z-index: 25;
  background: var(--surface-translucent);
  -webkit-backdrop-filter: var(--sheet-blur); backdrop-filter: var(--sheet-blur);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-top: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  transition: top .25s ease, height .25s ease;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #sheet { background: var(--surface); }
}
#sheet[data-detent="peeking"] { top: auto; height: 28px; overflow: hidden; }
#sheet[data-detent="half"] { top: auto; bottom: 56px; height: 180px; }
#sheet[data-detent="expanded"] { top: 96px; bottom: 56px; height: auto; }
#sheet[data-detent="hidden"] { top: auto; height: 0; overflow: hidden; }
/* Detail open (mobile): rise just enough to show the detail summary with the
   list peeking below; overrides the detent height while a detail is docked. */
#sheet[data-detail-open="true"] { top: auto; bottom: 56px; height: 60vh; }
.grab { display: block; width: 100%; height: 20px; border: none; background: none; cursor: grab; position: relative; }
.grab::before { content: ""; position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  width: 40px; height: 4px; background: var(--border); border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.4); }
.grab:active { cursor: grabbing; }
#sheet-body { overflow-y: auto; height: calc(100% - 20px); }

/* Bottom nav */
#bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: 56px;
  display: flex; background: var(--surface); border-top: 1px solid var(--border);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 2px var(--sp-1); border-radius: var(--radius-md);
  color: var(--c-blue); font-size: var(--fs-meta); font-weight: var(--fw-semibold);
  position: relative; background: none; border: none; cursor: pointer; overflow: hidden;
}
.nav-item .hh-icon { color: var(--c-blue); }
.nav-item.is-active {
  background: var(--btn-primary-bg); box-shadow: var(--raised-shadow-sm);
}
.nav-item.is-active, .nav-item.is-active .hh-icon { color: var(--c-gold-text); }
.nav-item.is-active::before {
  content: ""; position: absolute; top: -6px; left: 22%; right: 22%;
  height: 3px; border-radius: 3px; background: var(--c-gold);
}
[data-theme="dark"] .nav-item { color: var(--text); }
[data-theme="dark"] .nav-item .hh-icon { color: var(--text); }

/* Launch screen — tap-to-enter brand splash (poster → video w/ audio → app) */
.launch {
  position: fixed; inset: 0; z-index: 50; background: #001226;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transition: opacity .5s ease, visibility .5s ease;
}
.launch-video { width: 100%; height: 100%; object-fit: cover; }
/* Desktop: don't full-bleed the splash — letterbox it smaller on the dark field */
@media (min-width: 900px) {
  .launch-video { width: auto; height: 78vh; max-width: 88vw; object-fit: contain; border-radius: var(--radius-lg); }
}
.launch-enter {
  position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 14px 30px; border-radius: var(--radius-pill);
  background: var(--btn-primary-bg); color: var(--c-gold);
  border: 2px solid var(--c-gold); box-shadow: var(--raised-shadow-sm);
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-lg);
  letter-spacing: .02em; cursor: pointer; -webkit-tap-highlight-color: transparent;
  animation: hh-enter-pulse 2s ease-in-out infinite;
}
/* honor the [hidden] attr — the display rule above would otherwise override it,
   leaving the button visible on the skip path and after it's pressed */
.launch-enter[hidden] { display: none; }
@keyframes hh-enter-pulse { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .launch-enter { animation: none; } }
.hh-launch-hide { opacity: 0; visibility: hidden; pointer-events: none; }

/* Chrome buttons */
.icon-btn {
  width: 40px; height: 40px; min-width: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  background: var(--raised-bg); color: var(--c-blue);
  border: 1px solid var(--raised-border); box-shadow: var(--raised-shadow-sm);
  cursor: pointer; transition: transform .12s ease;
}
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn:active { transform: translateY(1px); }
[data-theme="dark"] .icon-btn { color: var(--c-gold); }

/* Category chips */
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--sp-2);
  height: 34px; padding: 0 var(--sp-3);
  border-radius: var(--radius-pill); border: 1px solid var(--raised-border);
  background: var(--raised-bg); color: var(--c-blue);
  font-size: var(--fs-body); font-weight: var(--fw-semibold);
  cursor: pointer; white-space: nowrap; box-shadow: var(--raised-shadow-sm);
}
.chip .hh-icon { color: var(--c-gold); }
.chip.is-on {
  background: var(--badge-bg); color: var(--badge-text);
  border-color: var(--c-gold);
}
[data-theme="dark"] .chip { color: var(--text); }

/* Explore shelves */
.shelf { padding: 4px 0 10px; }
.shelf h5 { font-family: var(--font-ui); font-size: var(--fs-caption); text-transform: uppercase;
  letter-spacing: var(--ls-caps); color: var(--text-muted); margin: var(--sp-2) var(--gutter) 6px; }
.shelf-row { display: flex; gap: 10px; overflow-x: auto; padding: 0 var(--gutter) 4px; scrollbar-width: thin; }
.shelf-loading, .shelf-empty, .panel-stub { color: var(--text-muted); text-align: center; padding: 24px; font-size: 14px; }
.shelf-empty-row { color: var(--text-muted); font-size: 12px; padding: 8px 4px; }

/* Cards */
.hh-card { flex: 0 0 150px; text-align: left; border: 1px solid var(--card-border);
  border-radius: var(--radius-md); background: var(--card-bg); padding: 10px; cursor: pointer;
  display: flex; flex-direction: column; gap: 3px; position: relative; }
.hh-card:hover { box-shadow: var(--shadow-1); }
.card-score { position: absolute; top: 8px; right: 8px;
  display: inline-flex; align-items: center; gap: var(--sp-1);
  padding: 1px var(--sp-2); border-radius: var(--radius-pill);
  background: var(--badge-bg); color: var(--badge-text);
  font-weight: var(--fw-bold); font-size: var(--fs-caption); }
.card-score .hh-icon { color: var(--c-gold-bright); }
.card-title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-body); color: var(--text); padding-right: 34px; }
.card-meta { font-size: var(--fs-caption); color: var(--text-muted); }
.card-cats { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.card-cat { font-size: var(--fs-caption); background: var(--bg); color: var(--text-muted);
  border-radius: var(--radius-sm); padding: 1px 6px; }

/* Desktop Layout C (spec §2): full-width top bar holds chrome + a tab row;
   columns sit below. Base tier 900-1100px = list · map, detail overlays list. */
@media (min-width: 900px) {
  #bottom-nav { position: static; left: auto; right: auto; bottom: auto; width: auto;
    height: auto; border-top: none; gap: var(--sp-1); padding: var(--sp-2) 0 0;
    background: transparent; justify-content: flex-start; margin: var(--sp-2) 12px 8px; }
  .nav-item { flex: 0 0 auto; flex-direction: row; gap: var(--sp-2); padding: 6px 12px; border-radius: var(--radius-pill); color: var(--header-text); }
  .nav-item .hh-icon { color: inherit; }
  .nav-item.is-active { background: var(--btn-primary-bg); box-shadow: var(--raised-shadow-sm); }
  .nav-item.is-active::before { display: none; }

  #top-chrome { padding-bottom: 0; }

  #sheet { top: var(--chrome-h); bottom: 0; right: auto; width: 360px; height: auto;
    border-radius: 0; border-top: none; border-right: 1px solid var(--border);
    transition: none; }
  #sheet[data-detent="peeking"],
  #sheet[data-detent="half"],
  #sheet[data-detent="expanded"] { top: var(--chrome-h); bottom: 0; height: auto; }
  #sheet[data-detail-open="true"] { top: var(--chrome-h); bottom: 0; height: auto; }
  .grab { display: none; }            /* no drag handle on desktop */
  /* #recenter stays top-right (base rule, below --chrome-h) on every width */

  /* Detail overlays the list column (900-1100). Map stays to the right. */
  .detail-panel { position: fixed; top: var(--chrome-h); bottom: 0; left: 0; width: 360px;
    z-index: 28; background: var(--surface); border-right: 1px solid var(--border);
    overflow-y: auto; }
  .detail-panel .modal-card { height: 100%; padding: var(--sp-4); background: var(--surface); }
}

/* ── Modals (sign-in + detail) ───────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,.35); }
.modal[hidden] { display: none; }
.modal-card { background: var(--surface); color: var(--text); width: 100%; max-width: 560px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 18px 18px 28px; box-shadow: var(--shadow-2); position: relative;
  max-height: 86vh; overflow-y: auto; animation: sheet-up .22s ease; }
@keyframes sheet-up { from { transform: translateY(20px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-back { position: absolute; top: 12px; left: 10px; border: none; background: none; color: var(--text-muted); cursor: pointer; padding: 4px; }
.modal h3, .modal .detail-title { font-family: var(--font-display); }
.modal-sub, .modal-msg { color: var(--text-muted); font-size: 13px; margin-top: 8px; }
.modal-msg.is-error { color: var(--c-crimson); }
#signin-form, .contrib-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
#signin-form input, .contrib-form input, .contrib-form textarea, .contrib-form select {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 9px 11px; font: inherit; color: var(--text); background: var(--bg); }
.btn-primary {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  height: 44px; padding: 0 var(--sp-5);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 2px solid var(--btn-primary-border);
  border-radius: var(--radius-md);
  font-weight: var(--fw-bold); font-size: var(--fs-base);
  box-shadow: var(--raised-shadow-sm); cursor: pointer; line-height: 1;
}
.btn-primary .hh-icon { color: var(--btn-primary-border); }
.btn-outline {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  height: 44px; padding: 0 var(--sp-4);
  background: var(--raised-bg); color: var(--text);
  border: 2px solid var(--c-gold); border-radius: var(--radius-md);
  font-weight: var(--fw-bold); font-size: var(--fs-base);
  box-shadow: var(--raised-shadow-sm); cursor: pointer; line-height: 1;
}
.btn-danger {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  height: 44px; padding: 0 var(--sp-4);
  background: var(--raised-bg); color: var(--c-crimson);
  border: 2px solid var(--c-crimson); border-radius: var(--radius-md);
  font-weight: var(--fw-bold); font-size: var(--fs-base);
  box-shadow: var(--raised-shadow-sm); cursor: pointer; line-height: 1;
}
.btn-disabled, .btn-primary:disabled, .btn-outline:disabled {
  background: var(--raised-bg); color: var(--text-muted);
  border-color: var(--border); box-shadow: none; cursor: not-allowed;
}

/* ── Detail modal ────────────────────────────────────────────────────── */
.detail-type { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--text-muted); }
.detail-title { font-size: var(--fs-h2); margin: 2px 0 6px; padding-right: 28px; }
.detail-meta { color: var(--text-muted); font-size: 13px; }
.detail-desc { margin-top: 10px; line-height: 1.5; }
.detail-dates { margin-top: 12px; }
.detail-dates summary { cursor: pointer; color: var(--c-blue); font-weight: 600; display: flex; align-items: center; gap: 4px; list-style: none; }
.detail-dates summary::-webkit-details-marker { display: none; }
.detail-dates summary .disc-caret { transition: transform .15s ease; }
.detail-dates[open] summary .disc-caret { transform: rotate(90deg); }
.detail-dates ul { margin: 8px 0 0 16px; max-height: 180px; overflow-y: auto; font-size: 13px; color: var(--text-muted); }
.detail-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn-action { border: 1px solid var(--c-blue); color: var(--c-blue); background: none;
  border-radius: var(--radius-md); padding: 9px 16px; font-weight: var(--fw-bold); cursor: pointer; }
.btn-action:hover { background: var(--c-blue); color: var(--on-navy); }
.star-picker { display: flex; gap: 4px; margin-top: 14px; font-size: 26px; }
.star { border: none; background: none; cursor: pointer; color: var(--border); line-height: 1; }
.star.is-on { color: var(--c-gold-bright); }

/* ── Detail panel (non-modal, spec §1) ─────────────────────────────────── */
.detail-panel[hidden] { display: none; }
/* Mobile: the panel is prepended into the sheet body above the list; it is a
   flow block, not an overlay — no fixed positioning, no backdrop. */
.detail-panel { display: block; }
.detail-panel .modal-card { width: 100%; max-width: none; border-radius: 0;
  box-shadow: none; padding: 4px var(--gutter) var(--sp-4); max-height: none;
  overflow: visible; animation: none; background: transparent; }
.detail-panel .modal-back { position: static; margin-bottom: var(--sp-2); }

/* ── Contribute ──────────────────────────────────────────────────────── */
.contrib-form { padding: 4px var(--gutter) 16px; }
.contrib-form h5 { font-family: var(--font-display); font-size: 16px; }
.contrib-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-muted); }
.contrib-loc { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-muted); }
.contrib-pinned {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 11px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
}
.contrib-pin-coords { flex: 1; color: var(--text); }
.contrib-drop { display: inline-flex; align-items: center; gap: 6px; }
.hh-pin-chip { width: 13px; height: 13px; background: var(--c-crimson); flex: 0 0 auto; cursor: default; }

/* Drop-a-pin: subtle text button used by the pin controls + confirm bar */
.btn-ghost {
  background: transparent; border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 6px 10px; font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-ghost:hover { background: var(--bg); }

/* Placement confirm bar over the main map; the placing pin keeps the teardrop */
.hh-place-bar {
  /* Float above the 56px bottom-nav + the 28px peeking sheet so the confirm
     bar stays visible and tappable while placing (nav z-index is 30). */
  position: fixed; left: 12px; right: 12px; bottom: calc(56px + 40px); z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 14px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-2);
}
@media (min-width: 900px) {
  /* Desktop: the bottom-nav is not fixed at the bottom; sit near the map base. */
  .hh-place-bar { bottom: 16px; left: 50%; right: auto; transform: translateX(-50%);
    width: min(420px, 90vw); }
}
.hh-place-coords { font-size: 12px; color: var(--text-muted); }
.hh-place-actions { display: flex; gap: 8px; }
.hh-pin-placing { background: var(--c-crimson); transform: rotate(-45deg) scale(1.3); }

/* Admin: inline pin map in the entity edit form */
.admin-pin { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-pin-coords { color: var(--text-muted); }
.admin-pin-map { width: 100%; height: 220px; border-radius: 10px; margin-top: 8px; }

/* ── Pulse ───────────────────────────────────────────────────────────── */
.pulse-head { padding: 8px 14px 4px; }
.ekg-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.ekg-row .ekg { flex: 1; }
.ekg { position: relative; height: 64px; background: var(--bg); border-radius: 10px; overflow: hidden; }
.ekg-bpm { position: absolute; right: 12px; top: 8px; color: var(--c-blue); font-family: var(--font-display); font-size: 22px; font-weight: 700; }
[data-theme="dark"] .ekg-bpm { color: #fff; }
.ekg-bpm small { font-size: 11px; font-weight: 400; }

/* Live EKG canvas (Phase 5) */
.ekg canvas { display: block; width: 100%; height: 100%; }

/* Buzz badge: recent check-in count on hot cards */
.card-buzz {
  background: var(--c-crimson); color: #fff; border-radius: 999px;
  font-size: 10px; font-weight: 700; padding: 1px 7px; align-self: flex-start;
}

/* Trends */
.trend-chips { display: flex; gap: 6px; padding: 0 14px 8px; }
.trend-chip {
  border: 1px solid var(--raised-border); background: var(--raised-bg); color: var(--text-muted);
  border-radius: 999px; font-size: 11px; padding: 3px 10px; cursor: pointer;
  box-shadow: var(--raised-shadow-sm);
}
.trend-chip.is-on { background: var(--badge-bg); color: var(--c-crimson); border-color: var(--c-crimson); }
#trend-chart { padding: 0 14px 12px; }
.trend-chart { width: 100%; height: 96px; }
.trend-bar { fill: var(--c-crimson); opacity: 0.85; }
.trend-label { fill: var(--text-muted); font-size: 7px; text-anchor: middle; }

/* Three columns: list · detail · map (spec §2). Min-widths keep nothing from
   collapsing; the map absorbs extra width (no shell cap — out of scope). */
@media (min-width: 1100px) {
  .detail-panel { position: fixed; top: var(--chrome-h); bottom: 0; left: 360px; right: auto;
    width: clamp(320px, 26vw, 460px); border-right: 1px solid var(--border);
    border-left: 1px solid var(--border); z-index: 26; }
  #sheet { min-width: 260px; }
}

/* Audio toggle (Phase 5): on/off state now shown by the themed heartbeat-audio
   icon variants (see .audio-ic rules above), driven by the .is-off class. */

/* Pulse map lens: pulsing pin glow, intensity from --pulse-glow (0..1). */
.pin-hot { animation: pin-pulse-hot 1.3s ease-in-out infinite; }
.pin-rated { animation: pin-pulse-rated 2.1s ease-in-out infinite; }
@keyframes pin-pulse-hot {
  0%, 100% { box-shadow: 0 0 4px 1px rgba(164, 18, 63, calc(0.30 + 0.40 * var(--pulse-glow, 0.5))); }
  50% { box-shadow: 0 0 calc(8px + 14px * var(--pulse-glow, 0.5)) calc(2px + 5px * var(--pulse-glow, 0.5)) rgba(164, 18, 63, calc(0.45 + 0.55 * var(--pulse-glow, 0.5))); }
}
@keyframes pin-pulse-rated {
  0%, 100% { box-shadow: 0 0 4px 1px rgba(224, 164, 0, calc(0.30 + 0.40 * var(--pulse-glow, 0.5))); }
  50% { box-shadow: 0 0 calc(8px + 12px * var(--pulse-glow, 0.5)) calc(2px + 4px * var(--pulse-glow, 0.5)) rgba(224, 164, 0, calc(0.45 + 0.55 * var(--pulse-glow, 0.5))); }
}
@media (prefers-reduced-motion: reduce) {
  .pin-hot { animation: none; box-shadow: 0 0 10px 3px rgba(164, 18, 63, 0.7); }
  .pin-rated { animation: none; box-shadow: 0 0 10px 3px rgba(224, 164, 0, 0.7); }
  #sheet { transition: none; }
}

/* Admin triage (Phase 6a) */
.nav-badge {
  display: inline-block; min-width: 17px; padding: 0 5px; margin-left: 4px;
  border-radius: 9px; background: var(--c-gold-bright); color: var(--c-blue);
  font-size: 0.68rem; font-weight: 700; text-align: center; vertical-align: 1px;
}
.triage-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 4px; border-bottom: 1px solid var(--border);
}
.triage-label { font-size: 0.92rem; }
.triage-meta { display: block; font-size: 0.75rem; opacity: 0.65; }
.triage-actions { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.triage-reject {
  padding: 6px 12px; border: 1px solid var(--c-crimson); border-radius: 8px;
  background: transparent; color: var(--c-crimson); font: inherit; font-size: 0.85rem;
  cursor: pointer;
}
.triage-finish { font-size: 0.85rem; }

