/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --bg:          #0a1628;
  --bg2:         #0f1f3d;
  --bg3:         #162444;
  --bg4:         #1e3158;
  --border:      rgba(255,255,255,0.1);
  --text:        #e8edf5;
  --text-muted:  #8899bb;
  --accent:      #3b82f6;
  --accent-dark: #2563eb;
  --danger:      #ef4444;
  --success:     #22c55e;
  --sidebar-w:   320px;
  --banner-h:    44px;
  --radius:      8px;
  --transition:  0.2s ease;
}

/* ─── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 14px; background: var(--bg); color: var(--text); }

/* ─── Banner ─────────────────────────────────────────────────────────────────── */
.banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  z-index: 1000;
  transition: background var(--transition), color var(--transition);
}

.banner-clear  { background: #064e3b; color: #6ee7b7; }
.banner-active { background: var(--danger); color: #fff; animation: pulse-banner 1.2s infinite; }

@keyframes pulse-banner {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.82; }
}

/* ─── Layout ─────────────────────────────────────────────────────────────────── */
#layout {
  position: fixed;
  top: var(--banner-h);
  left: 0; right: 0;
  bottom: 0;
  display: flex;
}

/* ─── Sidebar ────────────────────────────────────────────────────────────────── */
#sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 50;
  transition: transform var(--transition);
}

.sidebar-inner {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--bg4) transparent;
  padding-bottom: 16px;
}

.sidebar-inner::-webkit-scrollbar { width: 6px; }
.sidebar-inner::-webkit-scrollbar-track { background: transparent; }
.sidebar-inner::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.brand-logo { font-size: 1.8rem; }
.brand-name { font-size: 1.1rem; font-weight: 800; color: #fff; line-height: 1.2; }
.brand-sub  { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* Panel sections */
.panel-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.panel-section h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.section-header h3 { margin-bottom: 0; }

/* Storm list */
#storm-list { display: flex; flex-direction: column; gap: 6px; }

.storm-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  border-left: 4px solid;
}
.storm-item:hover { background: var(--bg4); }
.storm-item.selected { background: var(--bg4); border-color: var(--accent); }

.storm-event {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.storm-event-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.storm-area { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.storm-meta { display: flex; justify-content: space-between; align-items: center; }
.storm-hail { font-size: 0.72rem; font-weight: 600; }
.storm-time { font-size: 0.68rem; color: var(--text-muted); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 20px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.empty-icon { font-size: 1.8rem; margin-bottom: 6px; }

/* Date form */
.date-form { display: flex; flex-direction: column; gap: 8px; }
.date-label { display: flex; flex-direction: column; gap: 4px; font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }
.date-input {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 7px 10px;
  font-size: 0.82rem;
  width: 100%;
  outline: none;
  transition: border-color var(--transition);
}
.date-input:focus { border-color: var(--accent); }
.date-input::-webkit-calendar-picker-indicator { filter: invert(0.7); }
.date-actions { display: flex; gap: 6px; }

/* Legend */
.legend { display: flex; flex-direction: column; gap: 6px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text-muted); }
.legend-swatch { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; opacity: 0.85; }
.legend-dash {
  width: 24px; height: 3px; flex-shrink: 0;
  background: repeating-linear-gradient(90deg, #4499ff 0, #4499ff 6px, transparent 6px, transparent 10px);
}

/* Poll controls */
.poll-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 0.78rem; color: var(--text-muted); }
.poll-countdown { font-weight: 700; font-size: 1rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.poll-status { margin-top: 6px; font-size: 0.72rem; color: var(--text-muted); min-height: 16px; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
}
.badge-red  { background: var(--danger); color: #fff; }
.badge-blue { background: var(--accent); color: #fff; }

/* ─── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition), transform 0.1s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; }

.btn-primary  { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-dark); }

.btn-secondary { background: var(--bg4); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover:not(:disabled) { background: #253d6b; }

.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover:not(:disabled) { background: var(--bg3); color: var(--text); }

.full-width { width: 100%; }

/* ─── Mobile sidebar toggle ─────────────────────────────────────────────────── */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: calc(var(--banner-h) + 10px);
  left: 10px;
  z-index: 200;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 600;
}

/* ─── Map ─────────────────────────────────────────────────────────────────────── */
#map-wrapper { flex: 1; position: relative; overflow: hidden; }
#map { width: 100%; height: 100%; }

.map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,22,40,0.85);
  z-index: 10;
}
.overlay-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 40px;
  text-align: center;
  max-width: 380px;
}
.overlay-box h3 { margin-bottom: 8px; font-size: 1.1rem; }
.overlay-box p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; }
.overlay-box code { background: var(--bg4); padding: 1px 4px; border-radius: 3px; font-size: 0.82rem; }

/* ─── Drawers ─────────────────────────────────────────────────────────────────── */
.drawer {
  position: fixed;
  right: 0;
  bottom: 0;
  top: var(--banner-h);
  width: 380px;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 300;
  transform: translateX(100%);
  transition: transform var(--transition);
  box-shadow: -4px 0 24px rgba(0,0,0,0.4);
}
.drawer.open { transform: translateX(0); }

.canvass-drawer { width: 440px; }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
  flex-shrink: 0;
}
.drawer-header h3 { font-size: 1rem; font-weight: 700; color: #fff; }

.drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
  transition: color var(--transition);
}
.drawer-close:hover { color: #fff; }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg4) transparent;
}
.drawer-body::-webkit-scrollbar { width: 6px; }
.drawer-body::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }

.drawer-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg3);
  flex-shrink: 0;
}
.canvass-footer { display: flex; gap: 8px; }

/* ─── Detail content ─────────────────────────────────────────────────────────── */
.detail-event-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
  border: 2px solid;
}

.detail-hail-block {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.detail-hail-swatch {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.85;
  border: 3px solid rgba(255,255,255,0.15);
}
.detail-hail-size  { font-size: 1.3rem; font-weight: 800; color: #fff; }
.detail-hail-label { font-size: 0.75rem; color: var(--text-muted); }

.detail-field { margin-bottom: 10px; }
.detail-field-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 3px; }
.detail-field-value { font-size: 0.82rem; color: var(--text); line-height: 1.5; }

.detail-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-height: 160px;
  overflow-y: auto;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 12px;
}

/* ─── Canvass content ────────────────────────────────────────────────────────── */
.canvass-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.canvass-stat {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
}
.canvass-stat-value { font-size: 1.5rem; font-weight: 800; color: #fff; }
.canvass-stat-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.priority-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.priority-HIGH   { background: rgba(239,68,68,0.2); color: #fca5a5; border: 1px solid rgba(239,68,68,0.4); }
.priority-MEDIUM { background: rgba(245,158,11,0.2); color: #fcd34d; border: 1px solid rgba(245,158,11,0.4); }
.priority-LOW    { background: rgba(34,197,94,0.2);  color: #86efac; border: 1px solid rgba(34,197,94,0.4); }

.canvass-zip-list { display: flex; flex-direction: column; gap: 8px; }
.zip-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.zip-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.zip-code { font-size: 1rem; font-weight: 700; color: #fff; }
.zip-city { font-size: 0.72rem; color: var(--text-muted); }
.zip-homes { font-size: 0.78rem; font-weight: 700; color: var(--accent); }
.zip-hoods { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; }

.neighborhoods-list { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.hood-chip {
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px 9px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ─── Toast ──────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg4);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
}
.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ─── Backdrop ───────────────────────────────────────────────────────────────── */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 250;
}

/* ─── Loading spinner ────────────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Responsive ─────────────────────────────────────────────────────────────── */

/* ─── Tablet (768px–1023px) ──────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  :root { --sidebar-w: 280px; }

  .sidebar-toggle { display: none; }
}

/* ─── Mobile (≤767px) ────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  :root { --sidebar-w: 92vw; }

  /* Sidebar becomes a full-screen slide-in drawer */
  #sidebar {
    position: fixed;
    top: var(--banner-h);
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    max-width: 360px;
    z-index: 260;           /* above backdrop (250) */
    transform: translateX(-100%);
    border-right: 1px solid var(--border);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,0.5);
  }
  #sidebar.mobile-open { transform: translateX(0); }

  /* Show the mobile toggle button */
  .sidebar-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    min-width: 44px;
    padding: 10px 14px;
    font-size: 0.9rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
  }

  /* Map fills entire screen on mobile */
  #map-wrapper { flex: 1; width: 100%; }

  /* Drawers slide up from bottom on mobile */
  .drawer {
    width: 100%;
    left: 0;
    top: var(--banner-h);
    transform: translateY(100%);
    transition: transform 0.25s ease;
  }
  .drawer.open  { transform: translateY(0); }
  .canvass-drawer { width: 100%; }
  .canvass-footer { flex-direction: column; gap: 8px; }

  /* Touch-friendly tap targets (min 44px per Apple HIG / WCAG 2.5.5) */
  .btn          { min-height: 44px; padding: 10px 16px; font-size: 0.88rem; }
  .date-input   { min-height: 44px; padding: 10px 12px; font-size: 0.9rem; }
  .drawer-close { min-width: 44px; min-height: 44px; font-size: 1.3rem; }
  .storm-item   { padding: 12px 14px; }
  .watch-item   { padding: 12px 14px; }

  /* Larger checkbox hit areas */
  .hist-check { width: 18px; height: 18px; margin-top: 2px; }
  .ss-check   { width: 18px; height: 18px; }

  /* Storm selector panel: full-width, capped height on mobile */
  .storm-selector {
    left: 8px; right: 8px;
    width: auto;
    top: 8px;
    max-height: 42vh;
  }

  /* Prevent long banner text from wrapping awkwardly */
  .banner { font-size: 0.78rem; padding: 0 52px; }

  /* More breathing room in sidebar sections */
  .panel-section { padding: 12px 14px; }

  /* Extra bottom padding so content clears the thumb zone */
  .sidebar-inner { padding-bottom: 56px; }

  /* Make toggle switches easier to tap */
  .spc-toggle { width: 44px; height: 26px; }
  .spc-slider::before { width: 18px; height: 18px; }
  .spc-toggle input:checked + .spc-slider::before { transform: translateX(18px); }
}

/* ─── Very small phones (≤374px) ─────────────────────────────────────────────── */
@media (max-width: 374px) {
  .banner    { font-size: 0.68rem; }
  .brand-name { font-size: 0.95rem; }
  .brand-sub  { display: none; }
}

/* ─── Google Maps info window overrides ──────────────────────────────────────── */
.gm-style .gm-style-iw-c {
  background: #0f1f3d !important;
  color: #e8edf5 !important;
  border-radius: 8px !important;
  padding: 4px !important;
  max-width: 260px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
}
.gm-style .gm-style-iw-d { overflow: auto !important; color: #e8edf5; }
.gm-ui-hover-effect > span { background-color: #8899bb !important; }

.iw-content { padding: 4px 2px; }
.iw-title { font-weight: 700; font-size: 0.88rem; color: #fff; margin-bottom: 5px; }
.iw-hail  { font-size: 0.82rem; font-weight: 600; margin-bottom: 3px; }
.iw-area  { font-size: 0.75rem; color: #8899bb; margin-bottom: 3px; }
.iw-time  { font-size: 0.7rem;  color: #8899bb; }

/* ─── Legend divider ─────────────────────────────────────────────────────────── */
.legend-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* ─── Watch panel ────────────────────────────────────────────────────────────── */
.watch-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 4px solid;
  border-radius: var(--radius);
  padding: 9px 12px;
  margin-bottom: 5px;
}
.watch-event   { font-size: 0.8rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.watch-area    { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-expires { font-size: 0.68rem; color: var(--text-muted); }

.spc-outlook-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.spc-outlook-label { font-size: 0.76rem; color: var(--text-muted); font-weight: 600; }

/* Toggle switch */
.spc-toggle { position: relative; display: inline-block; width: 36px; height: 20px; cursor: pointer; flex-shrink: 0; }
.spc-toggle input { opacity: 0; width: 0; height: 0; }
.spc-slider {
  position: absolute;
  inset: 0;
  background: var(--bg4);
  border-radius: 20px;
  transition: background var(--transition);
  border: 1px solid var(--border);
}
.spc-slider::before {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  left: 2px; top: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}
.spc-toggle input:checked + .spc-slider { background: var(--accent); border-color: var(--accent); }
.spc-toggle input:checked + .spc-slider::before { transform: translateX(16px); background: #fff; }

/* ─── Historical storm list ──────────────────────────────────────────────────── */
.hist-storm-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bg4) transparent;
}
.hist-storm-list::-webkit-scrollbar { width: 4px; }
.hist-storm-list::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 2px; }

.hist-storm-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 10px;
  transition: background var(--transition);
}
.hist-storm-item:hover { background: var(--bg4); }
.hist-storm-item.hist-no-geom { opacity: 0.55; }

.hist-check { margin-top: 4px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; width: 14px; height: 14px; }
.hist-check:disabled { cursor: not-allowed; }

.hist-storm-info { flex: 1; min-width: 0; cursor: pointer; }
.hist-storm-info:hover .hist-storm-type { color: var(--accent); }

.hist-storm-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; gap: 4px; }
.hist-storm-date   { font-size: 0.68rem; color: var(--text-muted); white-space: nowrap; }
.hist-storm-hail   { font-size: 0.68rem; font-weight: 700; white-space: nowrap; }
.hist-storm-type   { font-size: 0.76rem; font-weight: 600; color: var(--text); margin-bottom: 1px; transition: color var(--transition); }
.hist-storm-area   { font-size: 0.68rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hist-bulk-btns { display: flex; gap: 3px; }

/* --- Storm Selector Panel -------------------------------------------------- */
.storm-selector {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  width: 260px;
  max-height: calc(100% - 24px);
  background: rgba(13,31,61,0.96);
  border: 1px solid rgba(74,122,160,0.4);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
}
.storm-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.storm-selector-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e8edf5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.storm-selector-bulk {
  display: flex;
  gap: 4px;
}
.ss-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #8899bb;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.15s, color 0.15s;
}
.ss-btn:hover {
  background: rgba(74,158,255,0.18);
  color: #e8edf5;
  border-color: rgba(74,158,255,0.4);
}
.storm-selector-list {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  padding: 4px 0;
}
.storm-selector-list::-webkit-scrollbar { width: 4px; }
.storm-selector-list::-webkit-scrollbar-track { background: transparent; }
.storm-selector-list::-webkit-scrollbar-thumb { background: rgba(74,122,160,0.45); border-radius: 2px; }
.ss-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.13s;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ss-row:last-child { border-bottom: none; }
.ss-row:hover { background: rgba(74,122,160,0.13); }
.ss-row.ss-row-checked { background: rgba(74,122,160,0.08); }
.ss-check {
  flex-shrink: 0;
  margin-top: 2px;
  width: 14px;
  height: 14px;
  accent-color: #e63946;
  cursor: pointer;
}
.ss-info { flex: 1; min-width: 0; }
.ss-date {
  font-size: 0.77rem;
  font-weight: 700;
  color: #c8d8f0;
  margin-bottom: 2px;
}
.ss-date.ss-large { color: #e63946; }
.ss-summary {
  font-size: 0.68rem;
  color: #8899bb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ss-swath-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(74,158,255,0.18);
  color: #4a9eff;
  border: 1px solid rgba(74,158,255,0.3);
  margin-left: 4px;
  vertical-align: middle;
  text-transform: uppercase;
}
