/* Colors, bar, banners and posture chips follow CiteBrief's flood-v32.css. */
:root {
  color-scheme: dark;
  --bg: #071018; --panel: #0e1b2a; --line: #1e3a5f; --text: #e7eef6;
  --muted: #93a4b8; --posture: #f2c94c; --pin: #7dd3fc; --dock: #0b1520;
  --c-normal: #2f80ed; --c-action: #f2c94c; --c-minor: #f2994a;
  --c-moderate: #eb5757; --c-major: #9b1c1c; --c-none: #64748b;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 15px/1.3 "Segoe UI", system-ui, sans-serif; }
a { color: var(--pin); }
.prototype-banner { margin: 0; padding: 0.5rem 1rem; text-align: center; font-size: 1.05rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: repeating-linear-gradient(-45deg, #111 0 12px, var(--posture) 12px 24px); }
.prototype-banner span { background: var(--posture); color: #1c1917; padding: 0.12rem 0.75rem; border-radius: 4px; letter-spacing: 0.14em; }
.bar { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; padding: 0.5rem 0.8rem; background: var(--dock); border-bottom: 1px solid var(--line); }
.brand { font-size: 1.25rem; font-weight: 800; letter-spacing: 0.02em; }
.place { color: var(--muted); font-weight: 700; }
.clock { margin-left: auto; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.posture { display: inline-flex; align-items: center; padding: 0.2rem 0.7rem; border-radius: 6px; background: #334155; color: #f8fafc; font-size: 0.85rem; font-weight: 800; }
.status-legend { list-style: none; margin: 0; padding: 0; display: inline-flex; flex-wrap: wrap; gap: 0.35rem 0.65rem; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.status-legend li { display: inline-flex; align-items: center; gap: 0.28rem; }
.swatch { width: 0.7rem; height: 0.7rem; border-radius: 2px; border: 1px solid rgba(255,255,255,0.25); display: inline-block; }
.cat-normal { background: var(--c-normal); color: #fff; }
.cat-action { background: var(--c-action); color: #1c1917; }
.cat-minor { background: var(--c-minor); color: #1c1917; }
.cat-moderate { background: var(--c-moderate); color: #fff; }
.cat-major { background: var(--c-major); color: #fff; }
.cat-none { background: var(--c-none); color: #fff; }
.alerts { display: flex; flex-direction: column; }
.alert { margin: 0; padding: 0.5rem 1rem; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; justify-content: center; align-items: baseline; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; text-align: center; }
.alert small { font-weight: 700; letter-spacing: 0; text-transform: none; }
.alert.emergency { background: #ff1a1a; box-shadow: 0 0 18px #ff1a1a; font-size: 1.2rem; animation: pulse 1.6s ease-in-out infinite; }
.alert.ffw { background: #8b0000; }
.alert.flw { background: #00a050; }
.alert.fay { background: #00a0a0; }
.alert.quiet { background: var(--panel); color: var(--muted); font-size: 0.85rem; }
@keyframes pulse { 50% { box-shadow: 0 0 2px #ff1a1a; } }
@media (prefers-reduced-motion: reduce) { .alert.emergency { animation: none; } }
.work { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; gap: 0.8rem; padding: 0.8rem; }
@media (max-width: 900px) { .work { grid-template-columns: 1fr; } }
.viewer, .side { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 0.6rem; }
.map { height: 68vh; min-height: 360px; border-radius: 6px; background: #0b1520; }
.leaflet-tile-pane { filter: brightness(0.62) saturate(0.7); }
.controls { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.6rem; }
.btn { font: inherit; font-weight: 800; padding: 0.4rem 1rem; border-radius: 6px; border: 1px solid var(--line); background: #13263b; color: var(--text); cursor: pointer; }
.btn.go { background: var(--c-normal); border-color: var(--c-normal); color: #fff; }
.btn[aria-pressed="true"] { outline: 2px solid var(--posture); }
.speed { font-weight: 700; color: var(--muted); }
.speed select { font: inherit; font-weight: 800; background: #13263b; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 0.3rem; }
#slider { flex: 1 1 12rem; accent-color: var(--posture); }
.stamp { font-weight: 800; font-variant-numeric: tabular-nums; }
.legend, .small { color: var(--muted); font-size: 0.8rem; }
.side h2 { margin: 0.9rem 0 0.4rem; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.side h2:first-child { margin-top: 0; }
.side h2 small { text-transform: none; letter-spacing: 0; font-weight: 600; }
.gauges { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.gauges th, .gauges td { text-align: left; padding: 0.3rem 0.25rem; border-bottom: 1px solid var(--line); }
.gauges td:nth-child(2) { font-weight: 800; font-variant-numeric: tabular-nums; }
.chip { display: inline-block; padding: 0.05rem 0.45rem; border-radius: 4px; font-weight: 800; font-size: 0.75rem; }
.warn-list { list-style: none; margin: 0; padding: 0; max-height: 14rem; overflow-y: auto; font-size: 0.82rem; }
.warn-list li { padding: 0.3rem 0.4rem; border-left: 4px solid var(--c-none); margin-bottom: 0.25rem; background: #0b1520; }
.warn-list li.emergency { border-color: #ff1a1a; font-weight: 800; }
.warn-list li.ffw { border-color: #8b0000; }
.warn-list li.flw { border-color: #00a050; }
.warn-list li.fay { border-color: #00a0a0; }
.sources { padding-left: 1.1rem; }
.gpin { background: none; border: 0; }
.gpin div { display: inline-flex; gap: 0.3rem; align-items: center; white-space: nowrap; padding: 0.12rem 0.4rem; border-radius: 6px; border: 2px solid #041018; font: 800 11px/1.2 "Segoe UI", system-ui, sans-serif; box-shadow: 0 1px 4px rgba(0,0,0,0.6); transform: translate(-7px, -50%); }
.gpin i { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #041018; }
.gpin b { font-size: 11px; }
