.theme-choice{margin-left:auto;display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.theme-choice select{padding:7px 10px}header>.theme-choice+button{margin-left:0}
:root[data-theme=light]{color-scheme:light;--bg:#f7f5ee;--surface:#fffef9;--line:#c6c5ba;--text:#20221d;--muted:#626458;--gold:#805900;--accent:#ffbe00}
:root[data-theme=light] button.primary{background:var(--accent);border-color:var(--accent);color:#13140e}
:root[data-theme=light] .skip{background:var(--accent);color:#13140e}
:root[data-theme=light] .card-tile.is-missing .art{background:#e7e7df}
:root[data-theme=light] .ownership-badge.missing{color:#626458}
:root[data-theme=light] .import-row,:root[data-theme=light] .timeline-comparisons>div{border-color:var(--line)}
:root[data-theme=light] .cover-art,:root[data-theme=light] .world-art{color:#f7f2e3}
:root[data-theme=light] .binder-page{--text:#f7f2e3;--muted:#aaa99f;--gold:#ffbe00;color:var(--text)}
:root[data-theme=light] #cabinet-shelves [aria-pressed=true]{background:var(--accent);color:#111}
:root[data-theme=light] .nickname-dialog input[aria-invalid=true]{border-color:#ad2525}
@media(max-width:767px){header{gap:12px;flex-wrap:wrap;height:auto;min-height:76px;padding-block:12px}.theme-choice{gap:5px}.theme-choice select{max-width:110px}.brand{margin-right:auto}.edition{display:none}}
/* Navigation hover and keyboard focus use the full brand-yellow hit area. */
nav a:hover,nav a:focus-visible{background:#ffbe00;color:#13140e}

.header-preference{position:relative;display:flex;align-items:center;flex:none;color:var(--text)}.header-theme-control{margin-left:auto;border:1px solid var(--line);border-radius:24px;background:var(--surface);height:44px}.header-preference svg{width:22px;height:22px;display:block;flex:none}.header-preference button,.header-preference summary{min-height:44px;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer}.header-preference button:hover,.header-preference summary:hover{background:color-mix(in srgb,var(--gold) 12%,transparent);color:var(--text)}.header-preference-menu>summary{list-style:none;border-radius:22px}.header-preference-menu>summary::-webkit-details-marker{display:none}.header-preference-menu>summary>svg:last-child{width:14px;height:14px;transition:transform .2s}.header-preference-menu[open]>summary>svg:last-child{transform:rotate(180deg)}.theme-orbit{position:relative;width:42px;height:42px;min-height:42px!important;padding:0;border:0;border-radius:50%;overflow:hidden}.theme-orbit>span{position:absolute;inset:0;display:grid;place-items:center;transition:transform .5s cubic-bezier(.2,.8,.2,1),opacity .3s}.theme-sun{color:#aa6900;transform:rotate(0) scale(1);opacity:1}.theme-moon{color:var(--gold);transform:rotate(-90deg) scale(.3);opacity:0}.header-theme-control[data-effective="dark"] .theme-sun{transform:rotate(90deg) scale(.3);opacity:0}.header-theme-control[data-effective="dark"] .theme-moon{transform:rotate(0) scale(1);opacity:1}.header-theme-control>.header-preference-menu>summary{width:24px;min-height:42px}.header-theme-control[data-choice="system"]:after{content:"";position:absolute;left:31px;bottom:6px;width:4px;height:4px;background:var(--muted);border-radius:50%;pointer-events:none}.header-language-control{margin:0}.header-language-control summary{padding:0 10px;border:1px solid var(--line);gap:5px;background:var(--surface)}.header-current-flag{display:flex}.preference-flag{display:block;width:24px;height:24px;border-radius:50%;overflow:hidden;box-shadow:0 0 0 1px #8886;flex:none}.flag-pl{background:linear-gradient(#fff 0 50%,#dc2445 50%)}.preference-flag svg{width:100%;height:100%}.language-globe svg{width:14px;height:14px;color:var(--muted)}.header-preference-panel{position:absolute;right:0;top:calc(100% + 12px);z-index:110;width:210px;padding:7px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 36px #0004}.header-preference-panel button{width:100%;justify-content:flex-start;border:0;border-radius:8px;padding:10px 12px;color:var(--text);font-size:14px}.header-preference-panel button[aria-pressed="true"]{background:color-mix(in srgb,var(--gold) 12%,transparent);color:var(--gold)}.preference-check{margin-left:auto;opacity:0}.header-preference-panel button[aria-pressed="true"] .preference-check{opacity:1}.header-preference summary:focus-visible{outline:3px solid var(--gold);outline-offset:4px}header>#account{margin-left:0}.header-theme-control+.header-language-control{margin-left:0}@media(max-width:767px){header{gap:10px}.header-theme-control{margin-left:0}.brand{margin-right:auto}.header-language-control summary{padding:0 7px}.header-preference-panel{position:fixed;top:auto;right:18px;margin-top:12px}}@media(max-width:480px){header{display:grid;grid-template-columns:66px 68px 44px minmax(0,1fr);gap:10px 8px}.brand{grid-column:1/-1}.header-theme-control{grid-column:1}.header-language-control{grid-column:2}header>.account-menu{grid-column:3;margin:0}header>#account{justify-self:end;max-width:100%;font-size:12px;padding:8px}.header-preference summary{min-height:44px}.header-language-control .language-globe{display:none}}@media(prefers-reduced-motion:reduce){.theme-orbit>span,.header-preference-menu>summary>svg:last-child{transition:none}}
