/* Load last. Host owns data-theme persistence. Cinematic art remains intentionally shaded. */
html[data-theme="light"] :is(.ts-clubhouse,.ts-journey,.ts-role-space,.ts-history-hall){color-scheme:light;--club-text:#152b3a;--club-dim:#425b6b;--club-highlight:#244b60;--journey-paper:#152b3a;--journey-muted:#425b6b;color:#152b3a;background:#f5f8fb;border-color:#b1c3ce}
html[data-theme="light"] :is(.ts-clubhouse,.ts-journey,.ts-role-space,.ts-history-hall) :is(button,a,input,select,summary):focus-visible{outline-color:#005b94}
/* Coach shell and workbench. Scene captions and entrance labels keep their dark-stage colors. */
html[data-theme="light"] :is(.club-topline,.club-heading,.club-workbench,.club-footer){background:#f5f8fb;border-color:#b1c3ce}
html[data-theme="light"] :is(.club-topline,.club-heading p,.club-workbench-heading p,.club-completed,.club-controls label,.club-unconnected,.club-footer>span,.club-report-status){color:#425b6b}
html[data-theme="light"] :is(.club-toolbar,.club-zone-list button,.club-prepared-output){background:#e7eff5;border-color:#b1c3ce;color:#173448}
html[data-theme="light"] .club-zone-list button[aria-pressed=true]{background:color-mix(in srgb,var(--club-accent) 20%,#fff);color:#142e40}
html[data-theme="light"] :is(.club-zone-list small,.club-prepared-output>span,.club-prepared-output p,.club-prepared-output li,.club-location){color:#425b6b}
html[data-theme="light"] .club-prepared-output h4{color:#173448}
html[data-theme="light"] :is(.club-list-toggle,.club-replay,.club-mark,.club-report){background:#fff;color:#1b4560;border-color:#819eaf}
html[data-theme="light"] :is(.club-controls select,.club-controls input){background:#fff;color:#173448;border-color:#819eaf}
html[data-theme="light"] .ts-journey :is(.club-mark,.club-prepared-output){background:#e7eff5;color:#173448;border-color:#819eaf}
html[data-theme="light"] .ts-journey :is(.club-location,.club-report-status){color:#425b6b}
/* Briefing and feature cards. */
html[data-theme="light"] :is(.journey-header,.journey-briefing,.journey-features,.journey-footer){background:#f5f8fb;border-color:#b1c3ce}
html[data-theme="light"] :is(.journey-header>div>span,.journey-header p,.journey-powered,.journey-section-head>div>span,.journey-section-head p,.journey-sample-selects label,.journey-search,.journey-question,.journey-fixture,.journey-card-metric>span,.journey-priority>p,.journey-evidence-note,.journey-working-plan>div>span,.journey-working-plan p,.journey-plan-items small,.journey-plan-empty,.journey-feature-groups article>span,.journey-footer,.journey-no-tools){color:#425b6b}
html[data-theme="light"] :is(.journey-quick-brief button,.journey-chapters button,.journey-travel-controls,.journey-priority,.journey-working-plan,.journey-plan-items li,.journey-feature-groups article){background:#e7eff5;color:#173448;border-color:#b1c3ce}
html[data-theme="light"] :is(.journey-quick-brief button>span,.journey-quick-brief small,.journey-chapters strong,.journey-travel-status){color:#425b6b}
html[data-theme="light"] .journey-chapters button[aria-current=step]{background:color-mix(in srgb,var(--journey-accent) 22%,#fff);color:#173448}
html[data-theme="light"] .journey-chapters button[aria-current=step] strong{color:#173448}
html[data-theme="light"] :is(.journey-sample-selects select,.journey-search input,.journey-plan-items li>button,.journey-export,.journey-feature-groups a,.journey-feature-groups button){background:#fff;color:#173448;border-color:#819eaf}
html[data-theme="light"] .journey-feature-groups :is(a,button)>small{color:#425b6b}
html[data-theme="light"] :is(.journey-priority summary,.journey-evidence-scroll td,.journey-evidence-scroll th){color:#294d63;border-color:#adbfca}
html[data-theme="light"] .journey-priority>button:disabled{background:#d6e1e8;color:#425b6b}
html[data-theme="light"] .journey-plan-status{color:#244b60!important}
html[data-theme="light"] .journey-travel-actions .journey-pause{background:#fff;color:#173448;border-color:#819eaf}
/* GM box, AD office and Owner office tools. */
html[data-theme="light"] :is(.role-space-header,.role-space-tools,.role-space-agenda,.role-space-footer){background:#f5f8fb;border-color:#b1c3ce}
html[data-theme="light"] :is(.role-space-header>div>span,.role-space-header p,.role-space-header>span,.role-space-summary span,.role-space-heading>div>span,.role-space-heading p,.role-space-detail>div>span,.role-space-detail p,.role-space-detail small,.role-space-agenda>div>span,.role-space-agenda p,.role-agenda-items small,.role-agenda-empty,.role-space-footer){color:#425b6b}
html[data-theme="light"] :is(.role-space-summary>div,.role-space-chapters button,.role-space-travel,.role-space-tool-list button,.role-space-detail,.role-agenda-items li){background:#e7eff5;color:#173448;border-color:#b1c3ce}
html[data-theme="light"] :is(.role-space-chapters button[aria-current=step],.role-space-tool-list button[aria-pressed=true]){background:color-mix(in srgb,var(--role-accent) 22%,#fff);color:#173448;border-color:#6b899d}
html[data-theme="light"] :is(.role-space-travel p,.role-space-tool-list span){color:#425b6b}
html[data-theme="light"] :is(.role-space-list-toggle,.role-agenda-items button,.role-agenda-export){background:#fff;color:#173448;border-color:#819eaf}
html[data-theme="light"] .role-add-agenda{background:#fff;color:#173448!important;border-color:#819eaf}
html[data-theme="light"] .role-unconnected{color:#425b6b!important}
html[data-theme="light"] .role-agenda-status{color:#244b60!important}
/* Source-linked UND heritage hall. */
html[data-theme="light"] :is(.hall-heading,.hall-footer,.hall-content,.hall-source-drawer){background:#f5f8fb;border-color:#b1c3ce}
html[data-theme="light"] :is(.hall-heading>div>span,.hall-heading p,.hall-category-heading>span,.hall-category-heading p,.hall-source-drawer p,.hall-source-drawer li,.hall-source-drawer summary,.hall-footer span){color:#425b6b}
html[data-theme="light"] :is(.hall-category-controls button,.hall-detail,.hall-scene-note){background:#e7eff5;color:#173448;border-color:#b1c3ce}
html[data-theme="light"] .hall-category-controls button[aria-pressed=true]{background:color-mix(in srgb,var(--hall-accent) 16%,#fff);border-color:#547964;color:#173448}
html[data-theme="light"] :is(.hall-category-controls span,.hall-detail>div>span,.hall-detail p){color:#425b6b}
html[data-theme="light"] :is(.hall-item-selector button,.hall-citations a){background:#fff;color:#214936;border-color:#819eaf}
html[data-theme="light"] .hall-item-selector button[aria-pressed=true]{background:#cce5d6;color:#153b29;border-color:#547964}
html[data-theme="light"] .hall-citations a:hover{background:#dcebe3}
/* The default dark CSS is retained for html[data-theme="dark"] and unset themes. */
