/* Light mode keeps the original Netwatch appearance. */
.theme-toggle{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;border:1px solid #5b6f7f;border-radius:20px;padding:7px 12px;background:transparent;color:#edf5fa;font:inherit;font-size:12px;line-height:1.4;cursor:pointer;white-space:nowrap}
.theme-toggle::before{content:'';display:block;width:24px;height:14px;border-radius:9px;background:radial-gradient(circle at 7px 7px,#fff 0 4px,transparent 4.5px),#526472}
.theme-toggle[aria-pressed=true]::before{background:radial-gradient(circle at 17px 7px,#101f2c 0 4px,transparent 4.5px),#73e4af}
.theme-toggle:hover{border-color:#a0d9c5}.theme-toggle:focus-visible{outline:3px solid #73e4af;outline-offset:3px}
html[data-theme=dark]{color-scheme:dark;--ink:#e4edf3;--muted:#afbec9;--green:#80dbb2;--border:#3a4d5c}
html[data-theme=dark] body{background:#101820;color:var(--ink)}
html[data-theme=dark] header{background:#0c151e}
html[data-theme=dark] .card,html[data-theme=dark] .panel,html[data-theme=dark] .search,html[data-theme=dark] select,html[data-theme=dark] .filters button,html[data-theme=dark] .small-button,html[data-theme=dark] .stack input:not([type=checkbox]),html[data-theme=dark] .stack textarea{background:#1a2834;color:var(--ink);border-color:var(--border)}
html[data-theme=dark] .filters button[aria-pressed=true]{background:#80dbb2;border-color:#80dbb2;color:#10251c}
html[data-theme=dark] .count{background:#2c4050;color:#cbd9e3}
html[data-theme=dark] .badge{background:#203f37;color:#a0ebc8}
html[data-theme=dark] .dot{background:#73e4af;box-shadow:0 0 0 4px #203f37}
html[data-theme=dark] .access-method{background:#162d2b;color:var(--ink);border-color:#39564f}
html[data-theme=dark] .access-method:hover{background:#214039;border-color:#80dbb2}
html[data-theme=dark] #notice:not(:empty){background:#233442;border-color:#4b687f;color:#d8e6f0}
html[data-theme=dark] .empty{background:#15232e;border-color:#536979}
html[data-theme=dark] .history-summary,html[data-theme=dark] pre{background:#223441;color:var(--ink)}
html[data-theme=dark] .message{background:#1e3d32;color:#d3f3e2}
html[data-theme=dark] .message.error{background:#462b2c;color:#ffc8c6}
html[data-theme=dark] .primary{background:#1b7057;color:#fff}
html[data-theme=dark] .small-button:hover{border-color:#80dbb2;background:#223b36}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#a5b5c0;opacity:1}
html[data-theme=dark] #copy-status:not(:empty){background:#dcebe4;color:#13241c}
@media(max-width:700px){.theme-toggle{padding:6px 10px;font-size:12px}}
