html[data-theme=light]{color-scheme:light}
html[data-theme=dark],html[data-theme=dark] body{color-scheme:dark;--paper:#22221f;--ink:#f2eadb;--accent:#efab8b;--muted:#c2b8a5;--rule:#666459}
.theme-picker{display:inline-flex;align-items:center;gap:8px;font:12px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:44px;color:var(--ink,#191b17)}
.theme-picker[hidden]{display:none!important}
.theme-picker select{font:inherit;min-height:44px;max-width:100%;padding:6px 8px;background:var(--paper,#f7f4e9);color:var(--ink,#191b17);border:1px solid var(--muted,#56584f);border-radius:0;cursor:pointer}
.theme-picker select:focus-visible{outline:3px solid var(--accent,#b43b27);outline-offset:4px}
.v7 footer{flex-wrap:wrap;gap:8px 24px}
html[data-theme=dark] :is(.masthead,.community,footer,.research>.section-head,.bibliography>li){border-color:var(--rule)}
html[data-theme=dark] :is(.paper-index,.cover h1 span,.cover-name .edition){color:var(--accent)}
html[data-theme=dark] .paper-mention{border-color:var(--accent)}
html[data-theme=dark] .paper-mention p{color:var(--muted)}
html[data-theme=dark] .hold-art:focus-visible{outline-color:var(--accent)}
html[data-theme=dark] .cover .portrait{background:var(--paper)}
html[data-theme=dark] .campus-icon{--campus-outline:#d9ccb7;--campus-ears:#a99b86;--campus-ear-outline:#d9ccb7;--campus-fur:#c8bca8;--campus-horn:#d48c72;--campus-muzzle:#c77961}
html[data-theme=dark] .cover{background-image:url('/dark/v7-crown.svg')}
html[data-theme=dark] .cover:before,html[data-theme=dark] .cover:after{background-image:url('/dark/v7-porous.svg')}
html[data-theme=dark] .reading:before{background-image:var(--desktop-field,url('/dark/v7-rail-desktop.svg'))}
html[data-theme=dark] .document-shell:before{background-image:url('/dark/v7-rail-desktop.svg')}
html[data-theme=dark] .document-page pre,html[data-theme=dark] .essay-page :is(.card,th){background:#30302b;color:var(--ink)}
html[data-theme=dark] .essay-page :is(.views span,.cardhead,.rule,.hint,.tab-note,summary){color:var(--muted)}
html[data-theme=dark] .essay-page .rule.est{color:var(--accent)}
html[data-theme=dark] .essay-page :is(.views button,.cite button,button.dag){background:var(--paper);color:var(--ink);border-color:var(--rule)}
html[data-theme=dark] .essay-page :is(.views button[aria-pressed=true],button.dag[aria-expanded=true]){background:#3d392f;border-color:var(--accent)}
html[data-theme=dark] .essay-page :is(th,td,.card){border-color:var(--rule)}
html[data-theme=dark] .essay-page :is(.fig1 .tip,.dagp){background:#30302b;color:var(--ink);border-color:var(--rule)}
/* Scientific plots keep their original light canvas and data colors. */
html[data-theme=dark] .essay-page figure :is(svg,img){background:#fff}
@media(min-width:651px) and (max-width:1050px){
 html[data-theme=dark] .cover:before,html[data-theme=dark] .cover:after{background-image:url('/dark/v7-porous-tablet.svg')}
 html[data-theme=dark] .reading:before{background-image:var(--tablet-field,url('/dark/v7-rail-tablet.svg'))}
}
@media(max-width:650px){
 html[data-theme=dark] .cover:before,html[data-theme=dark] .cover:after{background-image:url('/dark/v7-porous-mobile.svg')}
 html[data-theme=dark] main:before{background-image:var(--mobile-field,url('/dark/v7-rail-mobile.svg'))}
}
@media(max-width:700px){html[data-theme=dark] .document-shell:before{background-image:url('/dark/v7-rail-mobile.svg')}}
@media(prefers-reduced-motion:reduce){
 html[data-theme=dark] .reading:before{background-image:url('/dark/v7-rail-desktop.svg')}
}
@media(prefers-reduced-motion:reduce) and (min-width:651px) and (max-width:1050px){html[data-theme=dark] .reading:before{background-image:url('/dark/v7-rail-tablet.svg')}}
@media(prefers-reduced-motion:reduce) and (max-width:650px){html[data-theme=dark] main:before{background-image:url('/dark/v7-rail-mobile.svg')}}
@media print{
 html[data-theme] body{--paper:#fff;--ink:#191b17;--muted:#56584f;--accent:#b43b27;--rule:#b9b9ad;background:#fff;color:#191b17;color-scheme:light}
 .theme-picker{display:none!important}
}
html[data-theme=dark] .essay-page :is(.views button,.cite button,button.dag):focus-visible{outline-color:var(--accent)}
