/* dronebuckler web app. Mobile first: bottom sheet below 760px, floating side panel above. */

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #2563eb;
  --danger: #dc2626;
  --ok: #16a34a;
  --warn: #d97706;
  --shadow: 0 6px 24px rgba(15, 23, 42, .18);
  --st-0: #d97706; /* undeclared */
  --st-1: #64748b; /* ground */
  --st-2: #2563eb; /* airborne */
  --st-3: #dc2626; /* emergency */
  --st-4: #7c3aed; /* RID failure */
  --st-x: #64748b;
  --topbar-h: 52px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --surface: #111c33;
    --surface-2: #1e293b;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --border: #334155;
    --accent: #60a5fa;
    --st-2: #3b82f6;
    --shadow: 0 6px 24px rgba(0, 0, 0, .5);
  }
  [data-theme="standard"] .leaflet-tile-pane { filter: brightness(.78) contrast(1.08) saturate(.85); }
  .leaflet-container { background: #1f2937; }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: calc(var(--topbar-h) + var(--safe-t));
  padding: var(--safe-t) calc(8px + var(--safe-r)) 0 calc(8px + var(--safe-l));
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: .01em; }
.brand span { display: none; }
@media (min-width: 560px) { .brand span { display: inline; } }

.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; }
.seg button {
  border: 0; background: transparent; padding: 6px 12px; min-height: 36px; border-radius: 8px; font-weight: 600; color: var(--muted);
}
.seg button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.seg button[data-mode="live"][aria-checked="true"] { color: var(--danger); }

.pill {
  border: 1px solid var(--border); background: var(--surface-2); border-radius: 999px;
  padding: 4px 10px; font-size: 13px; white-space: nowrap; min-height: 32px;
  display: inline-flex; align-items: center; gap: 6px; max-width: 34vw; overflow: hidden; text-overflow: ellipsis;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.pill[data-state="online"]::before { background: var(--ok); }
.pill[data-state="connecting"]::before, .pill[data-state="retrying"]::before { background: var(--warn); animation: blink 1s infinite; }
.pill[data-state="auth"]::before, .pill[data-state="denied"]::before { background: var(--danger); }

/* Narrow phones: the pill keeps its coloured dot, the text stays for screen readers. */
@media (max-width: 479px) {
  .pill { width: 32px; padding: 0; justify-content: center; font-size: 0; }
  .pill::before { width: 12px; height: 12px; }
  .brand { display: none; }
}
@media (max-width: 759px) {
  .leaflet-control-zoom { display: none; } /* pinch to zoom; the banner sits there */
}

.tools { margin-left: auto; display: flex; gap: 2px; }
.icon {
  width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent;
  display: grid; place-items: center;
}
.icon:hover { background: var(--surface-2); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon svg .fill { fill: currentColor; }
.icon[aria-pressed="true"] { background: rgba(220, 38, 38, .16); background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }

/* ---------- map ---------- */
#map {
  position: fixed; inset: calc(var(--topbar-h) + var(--safe-t)) 0 0 0;
}
.leaflet-container { font: inherit; }
.leaflet-bottom.leaflet-right { margin-bottom: calc(76px + var(--safe-b)); }
@media (min-width: 760px) { .leaflet-bottom.leaflet-right { margin-bottom: 0; margin-right: 380px; } }

.drone-icon { background: none; border: 0; }
.drone { position: relative; width: 36px; height: 36px; display: grid; place-items: center; --c: var(--st-x); }
.st-0 { --c: var(--st-0); } .st-1 { --c: var(--st-1); } .st-2 { --c: var(--st-2); }
.st-3 { --c: var(--st-3); } .st-4 { --c: var(--st-4); } .st-x { --c: var(--st-x); }
.drone .arrow { width: 28px; height: 28px; transition: transform .4s ease; overflow: visible; }
.drone .arrow path { fill: var(--c); stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.drone .lbl {
  position: absolute; top: 33px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; font: 600 11px/1.3 system-ui, sans-serif; color: #0f172a;
  background: rgba(255, 255, 255, .88); padding: 0 5px; border-radius: 4px; pointer-events: none;
  max-width: 200px; overflow: hidden; text-overflow: ellipsis;
}
.drone.stale { opacity: .55; }
.drone.lost { opacity: .4; filter: grayscale(1); }
.drone.st-3::before, .drone.breach::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 3px solid var(--danger); animation: ring 1.2s ease-out infinite;
}
.drone.breach .lbl { background: var(--danger); color: #fff; }
.trail, .trail-glow { stroke: var(--c); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trail { stroke-width: 3; stroke-opacity: .95; }
/* Standard map: a white casing under the coloured core, like roads on a printed map. */
.trail-glow { stroke: #fff; stroke-width: 7; stroke-opacity: .85; }
.trail.stale, .trail.lost { stroke-dasharray: 2 6; stroke-opacity: .6; }
.trail-glow.stale, .trail-glow.lost { stroke-opacity: .3; }
.fence { stroke: var(--danger); stroke-width: 2; stroke-dasharray: 8 6; fill: var(--danger); fill-opacity: .05; }
.fence.alert { fill-opacity: .16; animation: fencepulse 1.2s ease-in-out infinite; }
.me-dot { stroke: #fff; stroke-width: 3; fill: #0ea5e9; fill-opacity: 1; }
.me-acc { stroke: #0ea5e9; stroke-width: 1; fill: #0ea5e9; fill-opacity: .1; }

.leaflet-popup-content { margin: 10px 12px; }
.details-title { font-weight: 700; margin-bottom: 4px; word-break: break-all; }
.details dl { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; margin: 0; font-size: 12.5px; }
.details dt { color: #64748b; }
.details dd { margin: 0; word-break: break-all; }

/* ---------- banner + hint ---------- */
.banner, .hint {
  position: fixed; z-index: 1100; left: 50%; transform: translateX(-50%);
  top: calc(var(--topbar-h) + var(--safe-t) + 8px);
  width: min(560px, calc(100% - 16px)); border-radius: 12px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
}
.banner { background: var(--danger); color: #fff; font-weight: 600; animation: flash 1s ease-in-out 3; }
.banner svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.banner span { flex: 1; }
.banner button { border: 1px solid rgba(255,255,255,.7); background: transparent; color: #fff; border-radius: 8px; padding: 6px 12px; min-height: 36px; }
.hint { background: var(--surface); color: var(--text); border: 1px solid var(--border); font-size: 14px; }
.banner:not([hidden]) ~ .hint { top: calc(var(--topbar-h) + var(--safe-t) + 72px); }

/* ---------- panel: bottom sheet on phones ---------- */
.panel {
  position: fixed; z-index: 1050; left: 0; right: 0; bottom: 0;
  height: var(--sheet-h, calc(64px + var(--safe-b)));
  max-height: calc(100% - var(--topbar-h) - var(--safe-t) - 8px);
  background: var(--surface); border-radius: 16px 16px 0 0; box-shadow: var(--shadow);
  display: flex; flex-direction: column; padding-bottom: var(--safe-b);
  transition: height .22s ease;
  padding-left: var(--safe-l); padding-right: var(--safe-r);
}
.panel.dragging { transition: none; }
.panel[data-sheet="peek"] { --sheet-h: calc(64px + var(--safe-b)); }
.panel[data-sheet="half"] { --sheet-h: 46%; }
.panel[data-sheet="full"] { --sheet-h: 88%; }
.panel[data-sheet="peek"] .tabs, .panel[data-sheet="peek"] .tabpanel { visibility: hidden; }
.handle {
  flex: none; border: 0; background: transparent; width: 100%; padding: 6px 16px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; touch-action: none; min-height: 56px;
}
.grip { width: 40px; height: 5px; border-radius: 3px; background: var(--border); }
.summary { font-weight: 600; font-size: 14px; }
.summary .alert { color: var(--danger); }

.tabs { flex: none; display: flex; gap: 4px; padding: 0 12px 8px; border-bottom: 1px solid var(--border); }
.tabs button {
  flex: 1; border: 0; background: transparent; padding: 8px; min-height: 40px; border-radius: 8px; color: var(--muted); font-weight: 600;
}
.tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--text); }
.tabpanel { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 0 12px; }

@media (min-width: 760px) {
  .panel {
    left: auto; right: calc(12px + var(--safe-r)); bottom: 12px; top: calc(var(--topbar-h) + var(--safe-t) + 12px);
    width: 360px; height: auto; max-height: none; border-radius: 14px; padding: 0;
  }
  .panel[data-sheet="peek"] { bottom: auto; height: 60px; }
  .panel[data-sheet="peek"] .tabs, .panel[data-sheet="peek"] .tabpanel { display: none; }
  .panel .grip { display: none; }
  .banner, .hint { left: calc(50% - 186px); }
}

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-bottom: 1px solid var(--border); }
.empty, .note { color: var(--muted); padding: 12px 16px; margin: 0; font-size: 14px; }
.note:empty { display: none; }
.row {
  width: 100%; border: 0; background: transparent; text-align: left; padding: 10px 16px; min-height: 52px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: center;
}
.row:hover { background: var(--surface-2); }
.badge {
  grid-row: span 2; min-width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--st-x));
}
.row .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub { grid-column: 2 / 4; color: var(--muted); font-size: 12.5px; }
.row .right { font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; }
.row .tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 6px; margin-right: 6px; color: #fff; background: var(--c, var(--st-x)); vertical-align: 1px; }
.row.breach { background: rgba(220, 38, 38, .1); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.row.breach .right { color: var(--danger); font-weight: 700; }
.row.stale, .row.lost { opacity: .6; }

.brow { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; padding: 6px 12px 6px 4px; gap: 4px 6px; min-height: 56px; }
.brow input[type="checkbox"] { width: 22px; height: 22px; justify-self: center; accent-color: var(--accent); }
.brow .ro { width: 44px; }
.brow .name { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.brow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.brow .dot.on { background: var(--ok); }
.brow .dot.off { background: var(--danger); }
.brow .sub { grid-column: 2 / 3; color: var(--muted); font-size: 12.5px; }
.brow .warn { color: var(--warn); font-weight: 600; }
.brow .zoom { grid-row: 1 / 3; grid-column: 3; border: 1px solid var(--border); background: var(--surface-2); border-radius: 8px; padding: 6px 10px; min-height: 36px; font-size: 13px; }
.brow.off .name, .brow.off .sub { opacity: .5; }

.log li { padding: 6px 16px; font-size: 13px; display: flex; gap: 8px; }
.log time { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.log .alert { color: var(--danger); font-weight: 600; }
.log .bad { color: var(--warn); }

/* ---------- dialogs ---------- */
dialog {
  border: 0; border-radius: 16px; padding: 0; width: min(440px, calc(100% - 24px));
  max-height: calc(100% - 24px); background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(15, 23, 42, .5); }
dialog form { padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 12px; }
dialog h2 { margin: 0 0 2px; font-size: 18px; }
dialog label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
dialog label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; min-height: 32px; }
dialog select, dialog input:not([type="checkbox"]):not([type="radio"]):not([type="range"]) {
  border: 1px solid var(--border); background: var(--bg); border-radius: 10px; padding: 10px 12px; min-height: 44px; font-weight: 400; width: 100%;
}
dialog input[type="range"] { width: 100%; accent-color: var(--accent); min-height: 32px; }
dialog input[type="checkbox"], dialog input[type="radio"] { width: 20px; height: 20px; accent-color: var(--accent); }
dialog output { font-weight: 400; color: var(--muted); }
fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px 12px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
legend { font-weight: 700; padding: 0 6px; }
.radios { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.small { font-size: 12.5px; color: var(--muted); margin: 0; }
.error { color: var(--danger); font-weight: 600; margin: 0; }
.actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.actions.left { justify-content: flex-start; }
.actions button, fieldset > button {
  border: 1px solid var(--border); background: var(--surface-2); border-radius: 10px; padding: 8px 16px; min-height: 44px; font-weight: 600;
}
.actions button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.actions button.danger { color: var(--danger); }
fieldset > button { align-self: flex-start; }

@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@keyframes blink { 50% { opacity: .3; } }
@keyframes flash { 50% { filter: brightness(1.35); } }
@keyframes fencepulse { 50% { fill-opacity: .06; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Neon noir theme (default; settings "Map style"). Dark city, neon tracks:
   cyan / magenta / amber on blue-black, in the spirit of Blade Runner and
   Ghost in the Shell. The standard theme above stays for daylight use.
   ========================================================================== */
:root[data-theme="neon"] {
  --bg: #05060a;
  --surface: rgba(8, 10, 20, .94);
  --surface-2: #10142a;
  --text: #d7f9ff;
  --muted: #7282ad;
  --border: #1d2650;
  --accent: #00f0ff;
  --danger: #ff2a6d;
  --ok: #39ff88;
  --warn: #ffd60a;
  --st-0: #ffd60a; /* undeclared */
  --st-1: #8b95c9; /* ground */
  --st-2: #00f0ff; /* airborne */
  --st-3: #ff2a6d; /* emergency */
  --st-4: #b967ff; /* RID failure */
  --st-x: #8b95c9;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --shadow: 0 0 0 1px rgba(0, 240, 255, .18), 0 10px 40px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* OSM tiles turned into a dark teal city plan: invert, drop the colour, tint blue-green. */
/* Brightness before a mild contrast keeps OSM's black icons (crosses, parking) a dim grey instead of glowing white. */
.tiles-neon { filter: invert(1) grayscale(1) brightness(.5) contrast(1.15) sepia(.55) hue-rotate(158deg) saturate(2.1); }
[data-theme="neon"] .leaflet-container { background: #05060a; }
[data-theme="neon"] .topbar {
  background: rgba(5, 6, 10, .92); border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 240, 255, .25), 0 6px 24px rgba(0, 240, 255, .06);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
[data-theme="neon"] .brand span { font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); text-shadow: 0 0 8px rgba(0, 240, 255, .7); }
[data-theme="neon"] .seg { background: #0a0e1f; border: 1px solid var(--border); }
[data-theme="neon"] .seg button { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
[data-theme="neon"] .seg button[aria-checked="true"] { background: rgba(0, 240, 255, .12); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(0, 240, 255, .55), 0 0 12px rgba(0, 240, 255, .25); }
[data-theme="neon"] .seg button[data-mode="live"][aria-checked="true"] { background: rgba(255, 42, 109, .12); color: var(--danger); box-shadow: inset 0 0 0 1px rgba(255, 42, 109, .6), 0 0 12px rgba(255, 42, 109, .3); }
[data-theme="neon"] .pill { background: #0a0e1f; font-family: var(--mono); }
[data-theme="neon"] .pill[data-state="online"]::before { box-shadow: 0 0 8px var(--ok); }
[data-theme="neon"] .icon { color: #9fb3e6; }
[data-theme="neon"] .icon:hover { background: rgba(0, 240, 255, .08); color: var(--accent); }
[data-theme="neon"] .icon[aria-pressed="true"] { background: rgba(255, 42, 109, .14); color: var(--danger); filter: drop-shadow(0 0 6px rgba(255, 42, 109, .7)); }

/* Drones: glowing arrows, terminal-style tags. */
[data-theme="neon"] .drone .arrow { filter: drop-shadow(0 0 3px var(--c)) drop-shadow(0 0 9px var(--c)); }
[data-theme="neon"] .drone .arrow path { stroke: #05060a; stroke-width: 1.2; }
[data-theme="neon"] .drone .lbl {
  font: 600 10.5px/1.35 var(--mono); letter-spacing: .05em; color: var(--c);
  background: rgba(5, 6, 10, .82); border: 1px solid var(--c); border-radius: 2px;
  text-shadow: 0 0 6px var(--c); box-shadow: 0 0 8px rgba(0, 0, 0, .6);
}
[data-theme="neon"] .drone.breach .lbl { background: var(--danger); color: #05060a; border-color: var(--danger); text-shadow: none; box-shadow: 0 0 14px var(--danger); }
[data-theme="neon"] .drone.st-3::before, [data-theme="neon"] .drone.breach::before { border-color: var(--danger); box-shadow: 0 0 12px var(--danger); }

/* Trails: wide translucent glow under a thin bright core. */
[data-theme="neon"] .trail { stroke-width: 2.5; stroke-opacity: 1; }
[data-theme="neon"] .trail-glow { stroke: var(--c); stroke-width: 12; stroke-opacity: .2; }
[data-theme="neon"] .trail-glow.stale, [data-theme="neon"] .trail-glow.lost { stroke-opacity: .08; }

[data-theme="neon"] .fence { stroke: var(--danger); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; fill: var(--danger); fill-opacity: .06; }
[data-theme="neon"] .fence.alert { fill-opacity: .07; stroke-width: 3; }
[data-theme="neon"] .me-dot { fill: var(--accent); stroke: #05060a; stroke-width: 3; }
[data-theme="neon"] .me-acc { stroke: var(--accent); fill: var(--accent); fill-opacity: .07; stroke-dasharray: 3 5; }

/* Leaflet chrome. */
[data-theme="neon"] .leaflet-bar a { background: #0a0e1f; color: var(--accent); border-color: var(--border); }
[data-theme="neon"] .leaflet-bar a:hover { background: #121a38; }
[data-theme="neon"] .leaflet-bar { border: 1px solid var(--border); box-shadow: 0 0 10px rgba(0, 240, 255, .15); }
[data-theme="neon"] .leaflet-control-attribution { background: rgba(5, 6, 10, .75); color: var(--muted); }
[data-theme="neon"] .leaflet-control-attribution a { color: #7fdcff; }
[data-theme="neon"] .leaflet-popup-content-wrapper, [data-theme="neon"] .leaflet-popup-tip {
  background: rgba(8, 10, 20, .96); color: var(--text); box-shadow: 0 0 0 1px rgba(0, 240, 255, .45), 0 0 24px rgba(0, 240, 255, .2);
}
[data-theme="neon"] .leaflet-popup-close-button { color: var(--muted) !important; }
[data-theme="neon"] .details-title { font-family: var(--mono); color: var(--accent); letter-spacing: .04em; text-shadow: 0 0 6px rgba(0, 240, 255, .6); }
[data-theme="neon"] .details dt { color: var(--muted); }
[data-theme="neon"] .details dd { font-family: var(--mono); font-size: 12px; }

/* Banner, hint, panel, lists, dialogs. */
[data-theme="neon"] .banner {
  background: linear-gradient(90deg, rgba(255, 42, 109, .95), rgba(185, 103, 255, .9));
  box-shadow: 0 0 0 1px rgba(255, 42, 109, .8), 0 0 30px rgba(255, 42, 109, .45);
  font-family: var(--mono); letter-spacing: .02em; text-transform: uppercase; font-size: 13px;
}
[data-theme="neon"] .hint { background: var(--surface); border-color: var(--border); font-family: var(--mono); font-size: 13px; }
[data-theme="neon"] .panel { border: 1px solid var(--border); border-bottom: 0; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (min-width: 760px) { [data-theme="neon"] .panel { border-bottom: 1px solid var(--border); } }
[data-theme="neon"] .grip { background: var(--accent); opacity: .5; box-shadow: 0 0 8px var(--accent); }
[data-theme="neon"] .summary { font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
[data-theme="neon"] .tabs button { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; }
[data-theme="neon"] .tabs button[aria-selected="true"] { background: rgba(0, 240, 255, .1); color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
[data-theme="neon"] .badge { box-shadow: 0 0 8px var(--c); }
[data-theme="neon"] .row .name { font-family: var(--mono); letter-spacing: .03em; }
[data-theme="neon"] .row .right { font-family: var(--mono); }
[data-theme="neon"] .row.breach { background: rgba(255, 42, 109, .1); box-shadow: inset 3px 0 0 var(--danger); }
[data-theme="neon"] .brow .dot.on { box-shadow: 0 0 8px var(--ok); }
[data-theme="neon"] .brow .dot.off { box-shadow: 0 0 8px var(--danger); }
[data-theme="neon"] .log { font-family: var(--mono); font-size: 12.5px; }
[data-theme="neon"] dialog { border: 1px solid rgba(0, 240, 255, .35); background: #070914; }
[data-theme="neon"] dialog h2 { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); text-shadow: 0 0 8px rgba(0, 240, 255, .5); }
[data-theme="neon"] dialog::backdrop { background: rgba(2, 3, 8, .7); }
[data-theme="neon"] .actions button.primary { background: transparent; color: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px rgba(0, 240, 255, .35), inset 0 0 10px rgba(0, 240, 255, .15); }
