:root{--bg: #0a0e14;--panel: #0d1117;--panel-2: #161b22;--border: #2b3240;--border-soft: #1d232e;--fg: #eef2f6;--muted: #8b949e;--amber: #f0b429;--green: #3fb950;--red: #f85149;--blue: #58a6ff}html.light{--bg: #e7e4dc;--panel: #f3f1ea;--panel-2: #e0ddd2;--border: #c2bdb0;--border-soft: #d4d0c4;--fg: #1b1e24;--muted: #5b6470}*{box-sizing:border-box}html,body{margin:0;padding:0;height:100%;background:var(--bg)}body{font-family:Geist,system-ui,sans-serif;color:var(--fg);-webkit-font-smoothing:antialiased;overflow:hidden}#root{height:100vh}.mono{font-family:Geist Mono,ui-monospace,monospace}.btn-ghost{font-family:Geist Mono,monospace;font-size:11px;letter-spacing:.12em;color:var(--muted);background:transparent;border:1px solid var(--border);padding:0 12px;cursor:pointer;transition:all .15s;display:inline-flex;align-items:center}.btn-ghost:hover{color:var(--fg);border-color:var(--muted)}.btn-primary{font-family:Geist Mono,monospace;font-size:12px;letter-spacing:.1em;font-weight:600;color:#0a0e14;background:var(--amber);border:1px solid var(--amber);padding:0 16px;cursor:pointer;transition:all .15s;display:inline-flex;align-items:center}.btn-primary:hover{filter:brightness(1.08)}.feed-grain,.grain{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");background-size:160px 160px}@keyframes recPulse{0%,to{opacity:1}50%{opacity:.25}}.rec-dot{animation:recPulse 1.4s ease-in-out infinite}@keyframes ping{0%{transform:translate(-50%,-50%) scale(.4);opacity:.9}to{transform:translate(-50%,-50%) scale(1.8);opacity:0}}.pin-ping{animation:ping 1.6s ease-out infinite}@keyframes sweep{0%{transform:translate(-50%,-50%) scale(.7);opacity:.6}to{transform:translate(-50%,-50%) scale(1.4);opacity:0}}.drone-sweep{animation:sweep 2.6s ease-out infinite}@keyframes overlayIn{0%{opacity:0}to{opacity:1}}.review-overlay{animation:overlayIn .18s ease-out}@keyframes gearSpin{to{transform:rotate(90deg)}}.gear-spin{animation:gearSpin .4s ease forwards}.pg-header{min-height:56px}.hdr-stats{display:flex;align-items:center;gap:18px}.hdr-home{width:38px;height:38px;min-height:38px;padding:0;justify-content:center;font-size:16px;text-decoration:none;flex-shrink:0}@media(max-width:640px){.pg-header{flex-wrap:wrap;height:auto;padding:8px 12px;gap:10px;row-gap:8px}.hdr-stats{display:none}}

/* ---- light mode (warm light gray, not white) ---- */
html.light{--amber:#b8821a;--green:#1f8a3c;--red:#c93b33;--blue:#1f6fc5}
html.light .btn-primary,html.light .home-btn.primary,html.light .status-step.now,html.light .status-chip,html.light .user-role.on,html.light .chip-btn.on,html.light .lib-chip.sel,html.light .admin-class.sel,html.light .hazard-chip,html.light .msg-tag,html.light .filter-row .chip-btn.on,html.light .eta-row .chip-btn.on{color:#f3f1ea!important}
html.light .btn-primary,html.light .home-btn.primary{background:#c98f1c;border-color:#c98f1c}
html.light .ops-legend,html.light .ops-count,html.light .map-status,html.light .ops-label{background:rgba(243,241,234,.92)!important;color:#1b1e24!important;border-color:#c2bdb0!important}
html.light .leaflet-container{background:#dedbd2}
html.light .user-modal{background:rgba(231,228,220,.9)}
html.light .lightbox{background:rgba(27,30,36,.92)}
.theme-toggle{min-height:32px;padding:0 10px;color:var(--muted);background:transparent;border:1px solid var(--border);font-size:9px;letter-spacing:.12em;cursor:pointer;white-space:nowrap}
.theme-toggle:hover{color:var(--fg);border-color:var(--muted)}
