/* Shared appearance and restrained navigation. */
:root{--surface:#101d2c;--surface-soft:#132233;--text:#f0ece3;--secondary:#b0bdca;--accent:#d6a87a;--border:#e9e7e026;--page:#080f1a;--shadow:0 16px 45px #0002}
:root[data-theme=light]{color-scheme:light;--page:#f6f3ed;--surface:#fffdf8;--surface-soft:#ede8df;--text:#172d3e;--secondary:#526271;--accent:#87562d;--border:#233c552b;--shadow:0 16px 45px #263f5510;--night:var(--page);--ivory:var(--text);--muted:var(--secondary);--copper:var(--accent);--line:var(--border);background:var(--page);color:var(--text)}
body{background:var(--page)}
.masthead .version-switch,.profile-page-header .version-switch{display:inline-flex;flex-direction:row;align-items:center;gap:0;border:0;border-radius:0;background:none;padding:0;min-height:44px;color:var(--muted);font-size:11px;white-space:nowrap}
.version-switch>span{display:none}.version-switch>strong{font-size:11px;font-weight:400}.version-switch:hover{color:var(--copper);background:none;text-decoration:underline;text-underline-offset:5px}
.appearance-control{display:flex;align-items:center;position:relative;min-height:44px;flex-shrink:0}.appearance-control select{max-width:78px;min-height:44px;border:0;background:transparent;color:var(--muted);font:inherit;font-size:11px;cursor:pointer;padding:0 2px}.appearance-control select:focus-visible{outline:2px solid var(--copper);outline-offset:2px}.appearance-control option{color:var(--text);background:var(--surface)}
.masthead .header-actions{gap:22px}.profile-page-header nav{align-items:center;gap:24px}
[data-theme=light] .masthead{background:linear-gradient(var(--page),#f6f3edc9,transparent)}
[data-theme=light] .world-viewport{background:var(--page)}
[data-theme=light] .world-vignette{background:linear-gradient(90deg,#f6f3edeb,#f6f3ed55 60%,transparent),linear-gradient(0deg,#f6f3ed88,transparent 30%)}
[data-theme=light] .scene-company,[data-theme=light] .scene-proof,[data-theme=light] .intro-role,[data-theme=light] .intro-role>span,[data-theme=light] .journey-phase,[data-theme=light] .chapter-now,[data-theme=light] .look-hint,[data-theme=light] .contact-links,[data-theme=light] .collective-link,[data-theme=light] .exhibit-description{color:var(--secondary)}
[data-theme=light] .exhibit-kicker,[data-theme=light] .eyebrow{color:var(--accent)}
[data-theme=light] .exhibit-visual{background:var(--surface);border-radius:12px;box-shadow:var(--shadow)}
[data-theme=light] .exhibit-choices button{color:var(--secondary);border-color:var(--border)}
[data-theme=light] .exhibit-choices button[aria-pressed=true]{color:var(--text);border-color:var(--accent)}
[data-theme=light] .exhibit-choices .choice-number{color:var(--accent)}
[data-theme=light] .performance-panel{background:var(--surface);box-shadow:var(--shadow)}
[data-theme=light] .performance-panel .record-picker button,[data-theme=light] .performance-panel #record-event,[data-theme=light] .performance-panel .record-pace span,[data-theme=light] .performance-panel .record-pace small{color:var(--secondary)}
[data-theme=light] .performance-panel .record-picker button[aria-pressed=true]{color:var(--text)}
[data-theme=light] dialog,[data-theme=light] .dialog-toolbar{background:var(--surface);color:var(--text)}
[data-theme=light] .profile-content,[data-theme=light] #dossier-body{color:var(--secondary)}
[data-theme=light] .profile-content .profile-section-subtitle{color:var(--text)}
[data-theme=light] .journey-rail button,[data-theme=light] .beta-label,[data-theme=light] .experience-controls,[data-theme=light] .map-stops small{color:var(--secondary)}
[data-theme=light] .journey-rail button[aria-current=step] small{color:var(--accent)}
@media(max-width:760px){.masthead .header-actions{gap:12px}.appearance-control select{max-width:66px;font-size:10px}.profile-page-header nav{gap:18px}.masthead .brand{font-size:34px}.masthead .brand>span{font-size:22px}.masthead{gap:10px}.masthead #map-toggle{width:34px;min-width:34px;padding:0}.masthead .map-label{display:none}.masthead .header-actions>a{font-size:11px}.masthead .version-switch>strong{font-size:10px}}
@media(max-width:360px){.masthead .header-actions{gap:9px}.profile-page-header nav{gap:13px}}
[data-theme=light] .scene h1 em,[data-theme=light] .scene h2 em{color:var(--accent)}
[data-theme=light] .portrait-plane figcaption,[data-theme=light] .opening-note{color:var(--secondary)}
[data-theme=light] .rail-line{background:var(--border)}
[data-theme=light] .journey-rail button:before{border-color:var(--secondary)}
[data-theme=light] .detail-link,[data-theme=light] .travel-buttons button,[data-theme=light] .action-circle{border-color:var(--border)}
.masthead .header-actions>a{white-space:nowrap;flex-shrink:0}
/* Daylight photography: natural tones, paper frame, no night vignette. */
[data-theme=light] .running .scene-copy>.running-portrait{transform:none!important;background:var(--surface);border:1px solid var(--border);border-radius:9px;box-shadow:0 8px 24px #20334412}
[data-theme=light] .running .running-portrait img{inset:8px;width:calc(100% - 16px);height:calc(100% - 16px);object-fit:contain;object-position:center;filter:none;border:0;border-radius:3px;box-shadow:none}
[data-theme=light] .running .running-portrait:after{display:none}
[data-theme=light] .al-brand{background:#fffdf8;border:1px solid #20334433;border-radius:6px;box-shadow:none;transform:none}
/* Light immersive contrast pass: readable labels and identifiable controls. */
[data-theme=light] body:not(.profile-page){--control-edge:#7a858c;--quiet-ink:#405362}
[data-theme=light] .journey-rail button b,[data-theme=light] .journey-rail button small{color:var(--quiet-ink)}
[data-theme=light] .journey-rail button[aria-current=step] b,[data-theme=light] .journey-rail button[aria-current=step] small{color:var(--accent);font-weight:700}
[data-theme=light] .exhibit-choices button[aria-pressed=true] .choice-number{color:var(--accent)}
[data-theme=light] .exhibit-choices button[aria-pressed=true]{box-shadow:inset 0 -1px var(--accent);font-weight:700}
[data-theme=light] .exhibit-choices button:not([aria-pressed=true]):hover{color:var(--text);border-color:var(--quiet-ink)}
[data-theme=light] .travel-buttons button:not(:disabled),[data-theme=light] #map-toggle,[data-theme=light] .action-circle{color:var(--text);border-color:var(--control-edge);background:#fffdf8ed}
[data-theme=light] .travel-buttons button:hover:not(:disabled),[data-theme=light] #map-toggle:hover{background:var(--surface-soft)}
[data-theme=light] .detail-link{border-color:var(--control-edge)}
[data-theme=light] .exhibit-choices button{border-bottom-color:var(--control-edge)}
[data-theme=light] .rail-line{background:var(--control-edge)}
[data-theme=light] .journey-phase>i,[data-theme=light] .chapter-now i{background:var(--accent)}
[data-theme=light] .exhibit-description{color:#263f50;background:#f6f3edf5;box-shadow:0 0 10px 5px #f6f3edee;border-radius:3px}
[data-theme=light] .experience-hud:before{content:'';position:absolute;inset:-7px -10px;background:#f6f3edf5;box-shadow:0 0 14px 7px #f6f3edb3;border-radius:9px;z-index:-1;pointer-events:none}
[data-theme=light] .experience-hud{isolation:isolate}
[data-theme=light] .passage-caption{color:var(--text);text-shadow:0 1px 14px #fffdf8}
[data-theme=light] .passage-caption small{color:var(--accent)}
[data-theme=light] .performance-panel .record-picker,[data-theme=light] .performance-panel .record-pace{border-color:var(--control-edge)}
[data-theme=light] .performance-panel .record-picker button[aria-pressed=true]{font-weight:700;border-bottom-color:var(--accent)}
[data-theme=light] .scene .world-label>small,[data-theme=light] .team-workflow{color:var(--secondary)}
[data-theme=light] .exhibit-visual{--ivory:var(--text);--muted:var(--secondary);--copper:var(--accent);--line:var(--border);color:var(--text)}
[data-theme=light] .lr-pillar-management .lr-degree-index>span,[data-theme=light] .lr-pillar-management .lr-distinction>i{color:#71451e}
[data-theme=light] .lr-pillar-face>p{opacity:1}
[data-theme=light] .lr-finance-model>header>b,[data-theme=light] .lr-finance-rows b{color:#71451e}
[data-theme=light] .lr-finance-model>footer{color:#4a4338}
[data-theme=light] .fn-ticket{color:#102638}
[data-theme=light] .fn-foundation>span{color:#fffaf0}
[data-theme=light] .fn-output>span,[data-theme=light] .au-evidence .au-proof-top>span{color:#71451e}
[data-theme=light] .fn-output small,[data-theme=light] .au-source-front>small{color:#405361}
[data-theme=light] .al-plan>p,[data-theme=light] .al-feedback>p,[data-theme=light] .al-plan>footer,[data-theme=light] .al-feedback>footer{color:#42534e}
[data-theme=light] .al-session-labels>div:nth-child(2) strong,[data-theme=light] .al-feedback i{color:#76451f}
[data-theme=light] dialog{border-color:var(--control-edge);box-shadow:0 18px 70px #142d3e40}
[data-theme=light] .dialog-toolbar{border-color:var(--control-edge)}
[data-theme=light] .map-stops button{border-color:var(--border)}
[data-theme=light] .map-stops button[aria-current=step]{color:var(--accent);font-weight:700}
[data-theme=light] .close-dialog:hover{color:var(--text);background:var(--surface-soft)}
[data-theme=light] a:focus-visible,[data-theme=light] button:focus-visible,[data-theme=light] summary:focus-visible{outline:2px solid #70431c;outline-offset:4px}
[data-theme=light] .reading-layout .masthead,[data-theme=light].reading-layout .masthead{background:var(--page)}
[data-theme=light] .lr-book-one{color:#050b10}
