.brand-identity{position:relative;padding-bottom:25px;flex-shrink:0}
.appearance-open{position:absolute;bottom:0;left:58px;display:flex;align-items:center;gap:5px;border:1px solid #bfD5f1;border-radius:7px;padding:3px 7px;background:#f1f7ff;color:#275786;font-size:11px;white-space:nowrap;font-weight:600}
.appearance-open:hover{border-color:#669fe9;background:#e5f0ff}
.appearance-open #appearanceCurrent{font-size:10px;font-weight:400;color:#657f9b}
.appearance-dialog{width:min(660px,94vw);border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--text);padding:26px;box-shadow:0 24px 90px #0e203640}
.appearance-dialog::backdrop{background:#0a172e88;backdrop-filter:blur(4px)}
.appearance-dialog>header{display:flex;align-items:center;justify-content:space-between}
.appearance-dialog header small{font-size:10px;letter-spacing:2px;color:var(--primary)}
.appearance-dialog h2{margin:6px 0;font-size:23px}
.appearance-dialog header button{border:1px solid var(--line);background:var(--soft);color:var(--text);width:32px;height:32px;border-radius:9px;font-size:23px}
.appearance-dialog>p,.appearance-dialog>footer{color:var(--muted);font-size:13px;line-height:1.7}
.appearance-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.appearance-options>button{border:2px solid var(--line);border-radius:13px;background:var(--surface);color:var(--text);padding:9px;text-align:left}
.appearance-options>button[aria-pressed=true]{border-color:var(--primary);box-shadow:0 0 0 2px var(--soft)}
.appearance-options strong,.appearance-options small{display:block;margin:10px 3px 5px}
.appearance-options small{font-size:11px;line-height:1.7;color:var(--muted)}
.appearance-swatch{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:14px 10px;border-radius:7px;height:90px;background:#e7f3fb}
.appearance-swatch i{background:#fff;border:1px solid #dae7f2;border-radius:5px}.appearance-swatch i:first-child{grid-column:1/-1;border-top:3px solid #5e9bf2}
.swatch-b{background:#ede8dc}.swatch-b i{background:#fffdf5;border-color:#e4dbc6}.swatch-b i:first-child{border-top-color:#b18a3c}
.swatch-dark{background:#101a2b}.swatch-dark i{background:#22324a;border-color:#394c68}.swatch-dark i:first-child{border-top-color:#79a9ff}
body.theme-b .home-welcome{background:linear-gradient(115deg,#f7f2e7,#fffcf5);border-color:#e1d5ba}
body.theme-b .site-frame>.site-left{background:linear-gradient(145deg,#faf6ee,#eee6d7);border-color:#dac9aa;box-shadow:0 8px 22px #55411d10,inset 0 0 0 3px #fff9ed}
body.theme-b .site-left .left-group-title{color:#544a37}body.theme-b .site-left .left-group.open>.left-group-title{background:#e8dcc4;color:#554326}
body.theme-b .task-card{border-top:3px solid #c5a46a}body.theme-b .home-task-layout .hero h1{color:#243d59}
html[data-appearance=dark]{background:#101722;color-scheme:dark}
body.theme-dark{--bg:#101722;--surface:#182332;--text:#dfe8f5;--muted:#a4b4c8;--line:#34465d;--primary:#8db4ff;--soft:#243952;--shadow:0 10px 32px #0003;--night-surface:#1c2a3c;background:var(--bg);color:var(--text);color-scheme:dark}
.theme-dark .topbar{background:#141e2bf5;border-color:#34465d;backdrop-filter:blur(12px)}
.theme-dark .brand strong,.theme-dark .section-nav button.active{color:#c5dbff}
.theme-dark .brand small,.theme-dark .section-nav button{color:#afc1d8}
.theme-dark .brand-province,.theme-dark .appearance-open{background:#203750;border-color:#42668e;color:#c5e2ff}
.theme-dark .appearance-open #appearanceCurrent{color:#adc3df}
.theme-dark .header-user #loginOpen,.theme-dark .header-user .account-entry{background:#203752;border-color:#3d5d85;color:#c9dfff}
.theme-dark .header-user #contactOpen{background:#193c36;border-color:#376b59;color:#b2e8d4}
.theme-dark .section-nav button i.nav-icon,.theme-dark .task-icon{background:#273d5b;color:#a3c4ff}
.theme-dark .section-nav button i.icon-resources,.theme-dark .task-icon.icon-resources{background:#194438;color:#7ce1b4}
.theme-dark .section-nav button i.icon-industry,.theme-dark .task-icon.icon-industry{background:#493820;color:#f6c978}
.theme-dark .section-nav button i.icon-assessment,.theme-dark .task-icon.icon-assessment{background:#3b2c51;color:#d3a8ff}
.theme-dark .section-nav button i.icon-warning,.theme-dark .task-icon.icon-warning{background:#4b2b3b;color:#ffa4bd}
.theme-dark .section-nav button i.icon-workbench,.theme-dark .task-icon.icon-workbench{background:#17424d;color:#83dfea}
.theme-dark .site-frame>.site-left{background:linear-gradient(150deg,#1b2a3d,#162231);border-color:#425a76;box-shadow:0 8px 22px #0003,inset 0 0 0 3px #23354a}
.theme-dark .site-left .left-group-title,.theme-dark .site-left .left-sub button,.theme-dark .site-left .flat-menu button{color:#bdcfe5}
.theme-dark .site-left .left-group-title:hover,.theme-dark .site-left .left-group.open>.left-group-title{background:#293e57;color:#e0edff;box-shadow:inset 0 0 0 1px #496383}
.theme-dark .site-left .left-sub button.active,.theme-dark .site-left .flat-menu button.active{background:#304b6c;border-color:#587da6;color:#e6f2ff}
.theme-dark .site-frame .site-left .left-collapse{background:linear-gradient(#30445f,#22354d);border-color:#7099c5;color:#d0e6ff;box-shadow:0 2px 8px #0003}
.theme-dark .home-welcome{background:linear-gradient(115deg,#1c3049,#192839 65%,#22344b);border-color:#385371}
.theme-dark .home-welcome .hero{background:transparent}
.theme-dark .home-task-layout .hero h1,.theme-dark .home-welcome .home-about h2{color:#d8e9ff}
.theme-dark .home-task-layout .hero-copy>p,.theme-dark .home-welcome .home-about p{color:#b0c4dc}
.theme-dark .home-welcome .home-about>span{color:#9abce1}
.theme-dark .home-welcome .home-about:before{background:linear-gradient(transparent,#486181,transparent)}
.theme-dark .hero-search,.theme-dark .task-card{background:#1c2b3e;border-color:#3a506c;color:#dfe8f5}
.theme-dark .hero-search input{background:transparent;color:#e0edff}
.theme-dark .hero-search button,.theme-dark .primary,.theme-dark .filter-search{background:#366ba8;color:#f5f9ff}
.theme-dark .task-card p,.theme-dark .section-title p{color:#afc0d6}
.theme-dark .task-card:hover{background:#21354d;border-color:#6a95c8}
.theme-dark :is(.sc-core,.sc-card,.sc-overview article,.ma-panel,.ma-card,.table-card,.query-table,.filter-panel,.query-filter,.filters,.panel,.form-card,.explain-card,.contact-dialog,.resource-dialog,.profile-card,.account-card,.membership,.school-results,.policy-overview,.policy-case,.policy-source-card,.score-overview>section,.empty-state,.assessment-intro,.assessment-runner,.assessment-result,.home-search-results,.home-search-columns section,.resource-list article,.query-summary){background:#182638;color:#d5e2f3;border-color:#364c66}
.theme-dark :is(.sc-overall-stack>article,.sc-method,.sc-empty,.sc-match-note,.sc-overall-coverage,.ma-note,.ma-detail,.ma-empty,.ma-zoom-view,.ma-chart-viewport,.access-prompt,.school-note,.permission-note,.source-note,.contact-person,.contact-qr-empty,.table-head,.resource-toolbar,.score-empty){background:#1e3045;color:#b9cce3;border-color:#3a526e}
.theme-dark :is(.sc-card,.sc-core,.sc-overview,.ma-panel,.home-search-results,.contact-dialog) :is(h1,h2,h3,h4,b,strong,label){color:#d7e8ff}
.theme-dark :is(.sc-card,.sc-core,.sc-overview,.ma-panel,.home-search-results,.contact-dialog) :is(p,small,summary){color:#b1c6df}
.theme-dark :is(.sc-figure-change,.sc-core>strong){color:#81ddd9!important}
.theme-dark .sc-weighted-change{color:#f0c47b!important}
.theme-dark :is(input,select,textarea){background:#132133!important;color:#dce9fa!important;border-color:#465d78!important}
.theme-dark :is(input,textarea)::placeholder{color:#8fa5bf}
.theme-dark :is(.outline,.filter-reset,.ma-panel button,.sc-card button,.chip,.record-tabs button){background:#253950;color:#c4d8f2;border-color:#47617e}
.theme-dark :is(.chip.active,.ma-panel button[aria-pressed=true]){background:#315778;color:#e1f5ff}
.theme-dark :is(table,.sc-change-table){color:#d1e0f3}
.theme-dark :is(th,.sc-change-head){background:#243a53;color:#d4e7ff;border-color:#3b526d}
.theme-dark :is(td,.sc-change-row){border-color:#344a64}
.theme-dark tbody tr{background:transparent;color:#c8dbf2}
.theme-dark tbody tr:nth-child(even){background:#1d2d40}
.theme-dark tbody tr:hover{background:#293f59}
.theme-dark :is(.sc-change-row b,.sc-major-name,.sc-change-row,.ma-table){color:#c4d9f1}
.theme-dark :is(.sc-overall-violin,.sc-card svg,.ma-panel svg) text{fill:#bed1e9}
.theme-dark .ma-ridge-unified{background:linear-gradient(#182638,#1b2d42)}
.theme-dark .ma-ridge-hit{fill:#223b58}
.theme-dark :is(.sc-card,.ma-panel) svg [fill="#fff"],.theme-dark :is(.sc-card,.ma-panel) svg [fill="white"]{fill:#17283e}
.theme-dark :is(.sc-card,.ma-panel) svg [stroke="#dce6ef"],.theme-dark :is(.sc-card,.ma-panel) svg [stroke="#dce7ef"]{stroke:#405774}
.theme-dark .sc-overall-violin text[style]{filter:brightness(1.5)}
.theme-dark dialog::backdrop{background:#0009}
.theme-dark .appearance-dialog{background:#182638;border-color:#425b79;color:#e2edff}
.theme-dark .appearance-options>button{background:#1e3046;border-color:#405775;color:#dfeaff}
.theme-dark .appearance-options>button[aria-pressed=true]{border-color:#8db4ff}
.theme-dark .appearance-dialog header button{background:#283c55;border-color:#4a6380;color:#d8e8ff}
.theme-dark .appearance-dialog :is(p,small,footer){color:#aebfd6}
.theme-dark .brand-mark{filter:drop-shadow(0 0 4px #6bcaff22)}
.theme-dark :focus-visible{outline:2px solid #a6cfff;outline-offset:3px}
.theme-dark :is(.query-content,.content,.site-main,.workspace){color:var(--text)}
.theme-dark :is(.page-head,.crumb,.filter-grid label,.query-filter label,.table-head,.query-table,.resource-list,.profile-panels,.policy-analysis-results){color:#b7cce5}
.theme-dark :is(.stats-grid>div,.profile-panels>div,.profile-user,.score-field-tags,.medical-mode,.medical-form,.mode-tabs,.scheme-upload,.rank-check,.status-card,.school-detail-card,.major-detail-card,.dorm-card,.dorm-detail,.exam-card,.exam-panel,.pg-card,.pg-panel,.ad-major-panel,.data-stat-card,.filter-summary){background:#1c2c40;color:#d0e0f4;border-color:#3a506c}
.theme-dark :is(.sc-note,.sc-bar-caption,.school-note,.query-summary,.local-note,.table-more,.result-count,.file-main p,.file-main small,.resource-dialog-note){color:#a9bfd8}
.theme-dark :is(a,.query-table a,.table-card a){color:#94c6ff}
.theme-dark :is(.searchbox,.industry-search,.filter-row,.resource-dialog-actions,.self-exam-form){background:#192a3e;color:#d6e4f7;border-color:#3c526e}
.choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.choice-dark .mini-window{background:#142033;border-top:5px solid #749fe3}
.choice-dark .mini-window :is(.mini-nav,.mini-hero,.mini-cards i){background:#2b3c55}
.choice-dark .choice-copy small{color:#5879b7}
@media(max-width:1250px){.brand-identity{padding-bottom:24px}.brand-zone .brand{height:46px}.brand small{display:block}.topbar{min-height:148px;height:auto}.section-nav{margin-top:5px}.choice-grid{grid-template-columns:1fr}}
@media(max-width:600px){.appearance-open{left:47px;font-size:10px;padding:3px 5px}.appearance-open #appearanceCurrent{display:none}.appearance-options{grid-template-columns:1fr}.appearance-options>button{display:grid;grid-template-columns:85px 1fr;column-gap:10px;align-items:center}.appearance-swatch{grid-row:1/3;height:70px}.appearance-options strong,.appearance-options small{margin:4px}.appearance-dialog{padding:20px}.brand small{display:none}.topbar{min-height:182px}}
/* Full supplied brand mark with separate, spacious control columns. */
:root{--portal-header:120px}
.brand-zone{gap:22px}
.topbar{column-gap:72px}
.topbar .section-nav{justify-content:space-between;gap:clamp(8px,1vw,18px)}
.topbar .section-nav button{padding-left:4px;padding-right:4px}
@media(max-width:1250px){.topbar{column-gap:12px}.topbar .section-nav{justify-content:center;gap:10px;margin-top:14px}}
@media(max-width:600px){.topbar .section-nav{gap:3px 7px;margin-top:10px}}
.brand-zone .brand-identity{display:flex;align-items:center;gap:18px;padding:0}
.brand-zone .brand{height:auto;min-width:0;gap:0}
.brand-zone .brand .brand-mark{display:block;width:96px;height:96px;object-fit:contain;border-radius:9px;background:#fff;transform:none;filter:none}
.brand-a11y{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.brand-tools{display:grid;justify-items:stretch;align-content:center;gap:10px;width:78px}
.brand-tools .brand-province{display:flex;justify-content:center;align-items:center;min-height:31px;font-size:13px;border-radius:8px}
.brand-tools .appearance-open{position:static;display:block;width:100%;padding:7px 5px;font-size:12px;line-height:1.4;text-align:center;border-radius:8px}
.brand-zone .header-user{display:grid;grid-template-columns:1fr;width:106px;gap:10px;flex-shrink:0}
.brand-zone .header-user #loginOpen,.brand-zone .header-user .account-entry,.brand-zone .header-user #contactOpen{height:34px;font-size:13px}
@media(max-width:1250px){.topbar{min-height:166px}.brand-zone{justify-content:flex-start;gap:24px}.brand-zone .brand{height:auto}.brand-zone .brand .brand-mark{width:84px;height:84px}.brand-zone .header-user{width:106px}.section-nav{margin-top:6px}}
@media(max-width:600px){:root{--portal-header:190px}.topbar{min-height:190px}.brand-zone{gap:16px}.brand-zone .brand-identity{gap:12px}.brand-zone .brand .brand-mark{width:72px;height:72px}.brand-tools{width:72px;gap:8px}.brand-tools .brand-province{font-size:12px;min-height:29px}.brand-tools .appearance-open{font-size:11px}.brand-zone .header-user{width:98px;gap:8px}.brand-zone .header-user #loginOpen,.brand-zone .header-user .account-entry,.brand-zone .header-user #contactOpen{font-size:12px;height:31px}}
