/* Explicit site theme, dark by default, light remains the original design. */
:root:not([data-theme="light"]){
 color-scheme:dark;
 --bg:#0c111b;--surface:#151d2b;--surface-2:#202b3b;--ink:#eef3fb;--muted:#aab8ca;
 --line:#354255;--blue:#8ab4ff;--blue-soft:#253b59;--teal:#62d7bf;
 --shadow:0 2px 5px #0004,0 12px 30px #0003;
}
:root:not([data-theme="light"]) body::before{background:radial-gradient(circle at 85% 10%,#203858 0 90px,transparent 91px),linear-gradient(180deg,#151f30,var(--bg))}
:root:not([data-theme="light"]) .site-header{background:#111a28ed;box-shadow:0 1px 8px #0004}
:root:not([data-theme="light"]) .main-nav a{color:var(--ink)}
:root:not([data-theme="light"]) .language-switch,
:root:not([data-theme="light"]) .collection-entrance,
:root:not([data-theme="light"]) .hero-intro-aside,
:root:not([data-theme="light"]) .hero-tile,
:root:not([data-theme="light"]) .hero-tile-main,
:root:not([data-theme="light"]) .hero-caption,
:root:not([data-theme="light"]) .clock-card,
:root:not([data-theme="light"]) .filter-button,
:root:not([data-theme="light"]) .search-field,
:root:not([data-theme="light"]) .edit-toggle,
:root:not([data-theme="light"]) .button-secondary,
:root:not([data-theme="light"]) .dialog-shell{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
:root:not([data-theme="light"]) .hero-description,
:root:not([data-theme="light"]) .filter-button,
:root:not([data-theme="light"]) .button-secondary{color:var(--muted)!important}
:root:not([data-theme="light"]) .hero-image,
:root:not([data-theme="light"]) .card-preview,
:root:not([data-theme="light"]) .preview-stage{background:var(--surface-2)!important}
:root:not([data-theme="light"]) .hero-preview-badge{background:#1d2b40;color:var(--blue)}
:root:not([data-theme="light"]) .filter-button.is-active{background:var(--blue-soft)!important;color:var(--blue)!important}
:root:not([data-theme="light"]) .collection-editor{background:#17253a;color:var(--ink);border-color:var(--line)}
:root:not([data-theme="light"]) .clock-card h3,
:root:not([data-theme="light"]) .hero-caption strong{color:var(--ink)}
:root:not([data-theme="light"]) .card-description{color:var(--muted)!important}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:35px;padding:5px 11px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);font:600 12px var(--sans);cursor:pointer;white-space:nowrap}
.theme-toggle:hover{background:var(--surface-2)}
.theme-toggle:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.theme-icon{font-size:16px}
@media(max-width:600px){.theme-toggle{min-width:34px;padding:5px 8px}.theme-label{display:none}}
