:root{color-scheme:light}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 11px;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:6px;font-size:11px;font-weight:600;flex-shrink:0}
.theme-toggle:hover{background:#edf6fa}.theme-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.login-card>.theme-toggle{margin-bottom:24px}
html[data-theme=dark]{color-scheme:dark;--paper:#101920;--white:#101920;--ink:#e9f1f6;--muted:#a1b2be;--line:#2c3d48;--accent:#a9d9ed;--green:#8dcbe2;--dark:#152b39}
html[data-theme=dark] body{background:var(--paper)}
html[data-theme=dark] .topbar{background:#101920f2}
html[data-theme=dark] .year-rail{background:#101920f5}
html[data-theme=dark] .archive-hero h1 span{color:#819aa9}
html[data-theme=dark] .account-chip,html[data-theme=dark] .close,html[data-theme=dark] .date-tag{background:#253946}
html[data-theme=dark] .primary,html[data-theme=dark] .tabs button.selected{background:#a9d9ed;border-color:#a9d9ed;color:#122531}
html[data-theme=dark] .primary:hover{background:#d1edfa;border-color:#d1edfa}
html[data-theme=dark] .secondary{border-color:#526977}
html[data-theme=dark] .secondary:hover,html[data-theme=dark] .theme-toggle:hover{background:#243c4b}
html[data-theme=dark] :is(input,select,textarea){color:var(--ink)}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#93a7b4;opacity:1}
html[data-theme=dark] :is(form label>input:not([type=file]):not([type=range]),form label>textarea,form label>select,fieldset>input,fieldset>textarea){background:#162630;border-color:#435a69;color:var(--ink)}
html[data-theme=dark] :is(select option,.upload-row){background:#162630;color:var(--ink)}
html[data-theme=dark] :is(.batch-dates,.dropzone,.notice,.preview-banner){background:#192f3c;border-color:#456879}
html[data-theme=dark] .dropzone.dragging{background:#294c60}
html[data-theme=dark] :is(.event-story,.batch-dates>small,.year-rail a,.login-foot span){color:#a1b2be}
html[data-theme=dark] .year-rail a.active{color:var(--ink)}
html[data-theme=dark] .year-rail nav{border-color:var(--line)}
html[data-theme=dark] .event-header .eyebrow{color:#8dcbe2}
html[data-theme=dark] .image-button,html[data-theme=dark] .edit-thumbnails img{background:#1b2c37}
html[data-theme=dark] .image-label{background:#101d29ed;color:#edf6fc}
html[data-theme=dark] .reaction{background:#1a2c38;border-color:#344d5c}
html[data-theme=dark] .reaction:hover{background:#294555;border-color:#5d94ab}
html[data-theme=dark] .reaction[aria-pressed=true]{background:#294f64;border-color:#83c3df;box-shadow:inset 0 0 0 1px #46778e}
html[data-theme=dark] .reaction-count,html[data-theme=dark] .reaction[aria-pressed=true] .reaction-count{color:#c3e4f2}
html[data-theme=dark] .selection-bar{background:#234355}
html[data-theme=dark] .selection-bar .secondary{background:#162630}
html[data-theme=dark] .status-message,html[data-theme=dark] .date-detected.missing{color:#ebbe8b}
html[data-theme=dark] .danger{color:#ffac9c}
html[data-theme=dark] .empty{border-color:#526977}
html[data-theme=dark] .skip{background:#243c4b}
html[data-theme=dark] #toast{background:#d3e9f4;color:#122531}
html[data-theme=dark] :is(button,a,input,textarea,select):focus-visible{outline-color:#9cdbf5}
@media(max-width:750px){.theme-toggle{width:40px;padding:8px}.theme-toggle span{display:none}.header-actions{gap:8px}.topbar{gap:10px}}
@media(max-width:480px){.topbar nav{gap:10px}.header-actions{gap:6px}.theme-toggle{width:34px;min-height:36px;padding:7px}.topbar .primary{padding:9px 8px}.topbar{gap:8px}.login-card>.theme-toggle{width:auto;gap:7px}.login-card>.theme-toggle span{display:inline}}
@media(max-width:360px){.topbar{padding-left:3%;padding-right:3%}.topbar .brand{min-width:78px;font-size:20px}.topbar nav{gap:8px}.topbar .primary{font-size:9px;padding:9px 6px}}
@media(max-width:600px){.topbar{display:grid;grid-template-columns:1fr auto;grid-template-rows:36px 24px;height:96px;padding:12px 5%;gap:6px 12px}.topbar>.brand{grid-column:1;grid-row:1}.header-actions{grid-column:2;grid-row:1;gap:10px}.topbar nav{grid-column:1/-1;grid-row:2;justify-content:center;gap:32px}.topbar nav a{font-size:11px;white-space:nowrap}.topbar .primary{white-space:nowrap;padding:10px 14px;font-size:11px}.theme-toggle{width:36px;min-height:36px}.year-rail,.selection-bar{top:96px}.year-section{scroll-margin-top:150px}html{scroll-padding-top:135px}}

/* Language choice is available before and after sign-in. */
.language-loading body{visibility:hidden}.language-switch{width:auto;min-width:58px;flex:none;margin:0;padding:10px 8px;border:1px solid var(--line,#c9d5dc);border-radius:8px;background:transparent;color:inherit;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.language-switch option{background:#fff;color:#14232c}.login-card>.language-switch{float:right;margin:0 0 16px 8px}.header-actions{gap:8px}@media(max-width:520px){.header-actions{gap:5px}.language-switch{min-width:48px;padding:9px 4px;font-size:11px}.topbar .primary{padding:11px 8px;font-size:11px}.topbar .theme-toggle{width:35px;height:35px}.topbar .account-chip{width:32px;height:32px}}

/* Approved mascot/wordmark, framed consistently in both themes. */
.brand-logo{display:block;position:relative;overflow:hidden;isolation:isolate;background:#0b1821;border-radius:8px;flex-shrink:0}
.brand-logo img{position:absolute;display:block;width:100%;height:auto;max-width:none;left:0;top:50%;transform:translateY(-50%)}
.topbar .brand-logo{width:174px;height:56px;min-width:0}
.login-art .brand-logo{width:330px;height:110px;max-width:100%}
@media(max-width:750px){.login-art .brand-logo{width:200px;height:66px}}
@media(max-width:600px){.topbar .brand-logo{width:112px;height:36px}}
@media(max-width:360px){.topbar .brand-logo{width:94px;height:34px}}
@media(max-width:480px){.login-art{gap:16px}.login-art .brand-logo{width:clamp(140px,44vw,170px);height:auto;aspect-ratio:3/1}.login-stamp{max-width:110px;gap:0;flex-shrink:1}.login-stamp .club-stamp{display:none}}
