/* Night Mode: red-on-black per MIL-STD-1472G scotopic preservation */
[data-theme="night"] {
    --bg: #0a0000;
    --fg: #ff5555;          /* 6.6:1 contrast on #0a0000 — meets MIL-STD-1472G §5.2.2.7 6:1 minimum */
    --fg-secondary: #ff4444; /* 6.1:1 contrast on #0a0000 — meets 6:1 minimum */
    --accent: #990000;
    --accent-active: #cc0000;
    --border: #aa3333;      /* 3.2:1 — meets 3:1 for non-text indicators per §5.1.4.1.1.1.5 */
    --danger: #660000;
    --shadow: 0 2px 8px rgba(100,0,0,0.4);
}
[data-theme="night"] #map { background: #0a0000; }

/* Night mode scrollbar — global for all modules */
[data-theme="night"] {
    scrollbar-color: #660000 #0a0000;
    scrollbar-width: thin;
}
[data-theme="night"] ::-webkit-scrollbar {
    width: 8px;
}
[data-theme="night"] ::-webkit-scrollbar-track {
    background: #0a0000;
}
[data-theme="night"] ::-webkit-scrollbar-thumb {
    background: #660000;
    border-radius: 4px;
}