/* Spectrum v1.0.1: visual skin only. No geometry/spacing overrides. */
:root{--spectrum-accent:#df817b;--spectrum-bg:#171b23;--spectrum-panel:#262d38;--spectrum-muted:#b9c7d5;--spectrum-edge:#465565;--spectrum-ink:#f5f3ef}
html[data-spectrum]{color-scheme:dark}
html[data-spectrum="daylight"]{color-scheme:light}
html[data-spectrum]:not([data-spectrum="midnight"]) body:not(#phpbb){background:var(--spectrum-bg);color:var(--spectrum-ink)}
html[data-spectrum]:not([data-spectrum="midnight"]) body:not(#phpbb) .site-header{background-color:var(--spectrum-bg)}
html[data-spectrum]:not([data-spectrum="midnight"]) body:not(#phpbb) .panel,
html[data-spectrum]:not([data-spectrum="midnight"]) body:not(#phpbb) .tile,
html[data-spectrum]:not([data-spectrum="midnight"]) body:not(#phpbb) .record,
html[data-spectrum]:not([data-spectrum="midnight"]) body:not(#phpbb) .record-row,
html[data-spectrum]:not([data-spectrum="midnight"]) body:not(#phpbb) .empty-state,
html[data-spectrum]:not([data-spectrum="midnight"]) body:not(#phpbb) .stat,
html[data-spectrum]:not([data-spectrum="midnight"]) body:not(#phpbb) .data-cell,
html[data-spectrum]:not([data-spectrum="midnight"]) body:not(#phpbb) .section-heading{background-color:var(--spectrum-panel);border-color:var(--spectrum-edge)}
html[data-spectrum]:not([data-spectrum="midnight"]) body:not(#phpbb) .nav a[aria-current],
html[data-spectrum]:not([data-spectrum="midnight"]) body:not(#phpbb) .eyebrow,
html[data-spectrum]:not([data-spectrum="midnight"]) body:not(#phpbb) .tld{color:var(--spectrum-accent)}
html[data-spectrum]:not([data-spectrum="midnight"]) body:not(#phpbb) .nav a[aria-current]{border-color:var(--spectrum-accent)}
html[data-spectrum]:not([data-spectrum="midnight"]) body:not(#phpbb) .btn,
html[data-spectrum]:not([data-spectrum="midnight"]) body:not(#phpbb) .button.gold{background:var(--spectrum-accent);border-color:var(--spectrum-accent)}
html[data-spectrum]:not([data-spectrum="midnight"]) body:not(#phpbb){--gold:var(--spectrum-accent);--bg:var(--spectrum-bg);--panel:var(--spectrum-panel);--panel2:var(--spectrum-panel);--line:var(--spectrum-edge);--text:var(--spectrum-ink);--dim:var(--spectrum-muted)}
/* phpBB palette adaptation, leaving panel widths and forum structure untouched */
html[data-spectrum]:not([data-spectrum="midnight"]) body#phpbb{background:var(--spectrum-bg);color:var(--spectrum-ink)}
html[data-spectrum]:not([data-spectrum="midnight"]) body#phpbb .forabg,
html[data-spectrum]:not([data-spectrum="midnight"]) body#phpbb .forumbg,
html[data-spectrum]:not([data-spectrum="midnight"]) body#phpbb .panel,
html[data-spectrum]:not([data-spectrum="midnight"]) body#phpbb .navbar,
html[data-spectrum]:not([data-spectrum="midnight"]) body#phpbb .post{background:var(--spectrum-panel);border-color:var(--spectrum-edge)}
html[data-spectrum]:not([data-spectrum="midnight"]) body#phpbb a:not(.fwm-global-brand):hover{color:var(--spectrum-accent)}
html[data-spectrum]:not([data-spectrum="midnight"]) body#phpbb .fwm-global-header{background-color:var(--spectrum-bg)}
html[data-spectrum]:not([data-spectrum="midnight"]) body#phpbb .fwm-global-nav [aria-current="page"]{color:var(--spectrum-accent);border-color:var(--spectrum-accent)}
/* Spectrum control is fixed and never consumes layout width */
#fwm-spectrum-toggle{position:fixed;right:17px;bottom:17px;z-index:20000;min-height:42px;padding:8px 13px;border-radius:999px;border:1px solid #718097;background:#1e2a3b;color:white;font:700 12px system-ui;box-shadow:0 5px 20px #0007;cursor:pointer}
#fwm-spectrum-panel{box-sizing:border-box;position:fixed;right:16px;bottom:69px;z-index:20001;width:min(350px,calc(100vw - 32px));max-height:min(540px,calc(100dvh - 95px));overflow:auto;border:1px solid #647188;border-radius:12px;background:#192230;color:#f4f5f7;box-shadow:0 15px 50px #0009;padding:18px;font:14px/1.45 system-ui}
#fwm-spectrum-panel[hidden]{display:none!important}
#fwm-spectrum-panel h2{color:white;margin:0 0 6px;font-size:19px}#fwm-spectrum-panel p{color:#ced9e4;margin:0 0 13px;font-size:12px}
#fwm-spectrum-panel .spectrum-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:10px 0 15px}
#fwm-spectrum-panel .spectrum-preset{color:white;background:#293445;border:1px solid #5c6c80;border-radius:7px;padding:11px 5px;cursor:pointer;font:600 12px system-ui}
#fwm-spectrum-panel .spectrum-preset[aria-pressed="true"]{outline:2px solid #f3b36c;outline-offset:1px}
#fwm-spectrum-panel .spectrum-swatch{display:block;height:9px;border-radius:5px;margin:0 auto 8px;width:70%}
#fwm-spectrum-panel label{display:flex;align-items:center;gap:12px;color:white;font-weight:650;margin:10px 0}
#fwm-spectrum-panel input[type=color]{width:55px;height:38px;background:transparent;border:0;padding:0}
#fwm-spectrum-panel input:disabled{opacity:.4;cursor:not-allowed}
#fwm-spectrum-panel .spectrum-actions{display:flex;gap:8px;justify-content:space-between;margin-top:14px}
#fwm-spectrum-panel .spectrum-actions button{border:1px solid #63738a;border-radius:6px;background:#263548;color:white;padding:8px 12px;cursor:pointer}
#fwm-spectrum-panel a{color:#ffb2a7;text-decoration:underline}
@media(max-width:700px){#fwm-spectrum-toggle{right:12px;bottom:12px}#fwm-spectrum-panel{right:10px;bottom:63px;width:min(350px,calc(100vw - 20px))}}
