/* Two arena views. The illuminated home-ice illustration and readable ice
   surfaces remain recognizable in either mode. */
:root { color-scheme: light; }
.theme-switch { display:flex; align-items:center; flex-shrink:0; gap:2px; padding:3px; border:1px solid #415a49; border-radius:6px; background:#14251a; }
.theme-switch button { display:flex; align-items:center; justify-content:center; gap:5px; min-height:34px; min-width:54px; padding:6px 8px; border:1px solid transparent; border-radius:3px; color:#b6ccbe; background:transparent; font-size:10px; font-weight:600; line-height:1; }
.theme-switch button svg { width:13px; height:13px; flex-shrink:0; }
.theme-switch button:hover { color:#fff; background:#244b32; border-color:#4c805b; }
.theme-switch button[aria-pressed="true"] { color:#092615; background:#9becb6; border-color:#b6f8cb; box-shadow:0 1px 4px #0002; }
.theme-switch button:focus-visible { outline:3px solid #42cb80; outline-offset:4px; }
.global-search { min-width:95px; }
html[data-theme="light"] { --paper:#f1f6f2; }
html[data-theme="light"] body { background:#f1f6f2; background-image:radial-gradient(ellipse at 100% 0,#d7eddfaa,transparent 55%),linear-gradient(105deg,transparent 55%,#167f3a05 55.05%,#167f3a05 67%,transparent 67.05%); background-attachment:fixed; }
html[data-theme="light"] body:before { opacity:.035; }
html[data-theme="light"] .sidebar { color:#163e25; background:linear-gradient(180deg,#fff 0%,#edf5ef 85%,#e3eee6); border-right-color:#d0dfd4; box-shadow:4px 0 24px #14321c08; }
html[data-theme="light"] .sidebar>.brand { border-bottom-color:#d8e4db; }
html[data-theme="light"] .brand h2 { color:#163e25; }
html[data-theme="light"] .brand small { color:#496e56; opacity:1; }
html[data-theme="light"] .sport-mark { color:#41634c; }
html[data-theme="light"] .sport-mark .live-dot { background:#008c3f; box-shadow:0 0 8px #008c3f33; }
html[data-theme="light"] .navgroup { color:#54745d; }
html[data-theme="light"] .navitem { color:#45664e; }
html[data-theme="light"] .navitem:hover { color:#143e24; background:#dcefe1; }
html[data-theme="light"] .navitem.active { background:linear-gradient(90deg,#00863d,#006d35); color:#fff; box-shadow:0 4px 13px #006d3522; }
html[data-theme="light"] .home-state img { opacity:.4; }
html[data-theme="light"] .home-state b { color:#285435; }
html[data-theme="light"] .home-state span { color:#54745d; }
html[data-theme="light"] .readme-banner { color:#5c7464; border-color:#cadbce; }
html[data-theme="light"] .readme-banner b { color:#365b42; }
html[data-theme="light"] .sidebottom { background:#e4efe7; border-top-color:#ccdcd0; }
html[data-theme="light"] .powered { color:#526d5b; }
html[data-theme="light"] .tracker { color:#123d22; }
html[data-theme="light"] .tracker span { color:#007539; }
html[data-theme="light"] .topbar { background:#fbfdfbf2; border-bottom-color:#d1e1d5; }
html[data-theme="light"] .breadcrumb { color:#597361; }
html[data-theme="light"] .breadcrumb b { color:#2b5037; }
html[data-theme="light"] .global-search input { color:#234c31; background:#f0f6f1; border-color:#c6daca; }
html[data-theme="light"] .global-search input::placeholder { color:#567260; }
html[data-theme="light"] .key { color:#45664e; background:#e4efe7; border-color:#bbd2c2; }
html[data-theme="light"] .role-switch span { color:#536e5d; }
html[data-theme="light"] .role-switch select { color:#224b31; background:#f0f6f1; border-color:#c2d8c8; }
html[data-theme="light"] .demo-pill { color:#476950; background:#e8f2ea; border-color:#c2d7c8; }
html[data-theme="light"] .avatar { background:#e4efe8; }
html[data-theme="light"] .menu { color:#234f31; background:#edf6ef; border-color:#c1d9c8; }
html[data-theme="light"] .theme-switch { background:#e6f0e9; border-color:#bdd4c4; }
html[data-theme="light"] .theme-switch button { color:#466a51; }
html[data-theme="light"] .theme-switch button:hover { color:#163e24; background:#d4e7da; border-color:#a7c7b1; }
html[data-theme="light"] .theme-switch button[aria-pressed="true"] { color:#fff; background:#126c39; border-color:#126c39; }
html[data-theme="light"] .pagehead .eyebrow { color:#437654; }
html[data-theme="light"] .pagehead h1 { color:#183e25; }
html[data-theme="light"] .pagehead .subtitle { color:#577061; }
html[data-theme="light"] .pagehead button { color:#2b5738; background:#fff; border-color:#bfd5c6; }
html[data-theme="light"] .pagehead button:hover { background:#e1f0e6; }
html[data-theme="light"] .pagehead button.primary { color:#fff; background:#00823b; border-color:#00823b; }
html[data-theme="light"] .pagehead button.primary:hover { background:#006d31; }
html[data-theme="light"] .hero.home-ice { border-color:#307647; box-shadow:0 12px 35px #183e251c; }
html[data-theme="light"] .strip-label { color:#536f5e; }
html[data-theme="light"] .view-tabs { background:#e4efe7; border-color:#bfd6c7; }
html[data-theme="light"] .view-tabs button { color:#4b6c57; }
html[data-theme="light"] .view-tabs button:hover { color:#163f26; background:#d2e7d9; }
html[data-theme="light"] .view-tabs button.active { color:#fff; background:#23633b; }
html[data-theme="light"] .ice-tools a { color:#315f40; }
html[data-theme="light"] .ice-tools a:hover { color:#00672f; }
html[data-theme="light"] .ice-tools a span { color:#16773c; }
html[data-theme="light"] .demo-note { color:#506b59; background:#eaf3ec; border-color:#c4dacb; }
html[data-theme="light"] .demo-note b { color:#2a5e3d; }
html[data-theme="light"] .source-note { color:#3f667b; background:#edf5f9; border-color:#bed4e1; }
html[data-theme="light"] .source-note b { color:#305f78; }
html[data-theme="light"] .column { background:#e4eee7; border-color:#c7dacc; }
html[data-theme="light"] .column>h3 { color:#3c664b; }
html[data-theme="light"] .column>h3 span { color:#275237; }
html[data-theme="light"] .chat-intro h2 { color:#204e30; }
html[data-theme="light"] .chat-intro .subtle,html[data-theme="light"] .chat>.smallprint { color:#526f5d; }
html[data-theme="light"] .ask-symbol { color:#176b39; background:#dff0e4; border-color:#a7cbb3; box-shadow:0 0 35px #1980410d; }
html[data-theme="light"] .chat>.promptgrid button { color:#315f40; background:#fff; border-color:#bdd6c5; }
html[data-theme="light"] .chat>.promptgrid button:hover { background:#e1f1e6; color:#164e29; }
html[data-theme="light"] .about-foot { color:#566f5f; }
/* Light forms are intentional on both arena themes, keeping dense rink data legible. */
@media(max-width:1250px) { .topbar .breadcrumb { display:none; } .topbar { gap:12px; } }
@media(max-width:1050px) { .topbar .demo-pill { display:none; } }
@media(max-width:620px) { .topbar { gap:7px; } .theme-switch { padding:2px; gap:1px; } .theme-switch button { min-width:38px; min-height:34px; font-size:9px; padding:5px; } .theme-switch button svg { display:none; } .global-search { min-width:65px; } .topbar .role-switch select { min-width:61px; } .topbar .menu { width:28px; flex-shrink:0; } }
@media print { .theme-switch { display:none!important; } }
/* Native hockey tools retain their white ice-card surfaces in Stadium mode. */
html[data-theme="dark"] #main :is(.boardcard select,.budget-input,.field input,.field textarea,.field select,.line-slot select,.filters input,.filters select,.compare-card select,.shot-filter select,.smallinput,.task-form input){color:#142d20;background:#fff;border-color:#a9c4b3;color-scheme:light}
html[data-theme="dark"] #main :is(.boardcard select,.field select,.line-slot select,.filters select,.compare-card select,.shot-filter select) option{color:#142d20;background:#fff}
html[data-theme="dark"] :is(#main,#overlay) :is(select[data-stage],#budget,.input-unit input,.profile-note textarea){color:#142d20;background:#fff;border-color:#a9c4b3;color-scheme:light}
html[data-theme="dark"] :is(#main,#overlay) select[data-stage] option{color:#142d20;background:#fff}
/* The Daylight top bar is pale; retain explicit dark school and control labels. */
html[data-theme="light"] .topbar .csu-top-brand,html[data-theme="light"] .topbar .csu-top-brand strong{color:#163e25}
html[data-theme="light"] .topbar .csu-top-brand small,html[data-theme="light"] .topbar .csu-role-box small{color:#496e56}
html[data-theme="light"] .topbar .role-select,html[data-theme="light"] .topbar .role-switch select{color:#224b31;background:#f0f6f1;border-color:#a8c6b1;color-scheme:light}
html[data-theme="light"] .topbar .global-search input{color:#234c31;background:#f0f6f1}
html[data-theme="light"] .topbar .global-search input::placeholder{color:#567260}
html[data-theme="light"] .topbar .key,html[data-theme="light"] .topbar .search-icon{color:#45664e}
html[data-theme="light"] .topbar .theme-switch button,html[data-theme="light"] .topbar .theme-control button{color:#234c31;background:#e6f0e9}
html[data-theme="light"] .topbar [data-theme-choice][aria-pressed="true"]{color:#fff!important;background:#126c39!important;border-color:#126c39}
html[data-theme="dark"] .tracker-integration-guide{--tig-text:#eaf7ef;--tig-muted:#bdd0c4;--tig-surface:#101f1a;--tig-soft:#152c22;--tig-line:#657f70}
