/* Theme changes affect interface surfaces only. Media pixels are never inverted. */
.theme-toggle{width:44px;height:44px;min-width:44px;display:inline-grid;place-items:center;vertical-align:middle;color:var(--ink);border:0!important;border-radius:50%;padding:0!important;flex-shrink:0;position:relative;background:transparent}
.theme-toggle::after{display:none!important}
.theme-toggle>span{display:block;width:18px;height:18px;border-radius:50%;background:currentColor;border:1px solid currentColor;transition:transform .25s}
.theme-toggle:hover>span{transform:scale(.8)}
.theme-toggle:focus-visible{outline:2px solid currentColor;outline-offset:-3px}
.toplinks>.theme-toggle{margin-top:-17px;margin-right:-10px}
.panel-head{grid-template-columns:1fr 44px auto}
.panel-head>.theme-toggle{height:44px}
.ed-header-actions .theme-toggle{color:var(--ed-ink);margin-left:-12px;margin-right:-12px}
:root[data-theme=dark]{color-scheme:dark;--paper:#000000;--paper2:#000000;--ink:#f3f2ed;--silver:#878787;--silver2:#393939;--line:rgba(243,242,237,.24);--muted:#aaa9a4}
html[data-theme=dark] body{--paper:#000000!important;--ink:#f3f2ed!important;background:var(--paper)!important;color:var(--ink)!important}
html[data-theme=dark] :is(.app,.project-panel,.about-panel,.loader){background:var(--paper)!important;color:var(--ink)!important}
html[data-theme=dark] :is(.project-info,[data-design-section],.about-grid>section){background:transparent!important;color:var(--ink)!important}
html[data-theme=dark] :is(.project-info h1,.project-desc,.section-text,.about-grid p,.next-project){color:var(--ink)!important}
html[data-theme=dark] #bgVeil{background:#000000}
html[data-theme=dark] .app.has-preview #bgVeil{background:#000000}
html[data-theme=dark] .stage{background:#000000}
html[data-theme=dark] .wordmark{background:#000000}
html[data-theme=dark] :is(.image-meta,.list-view,.panel-head,.external-caption){background:#000000;color:var(--ink)}
html[data-theme=dark] .media-placeholder{background:var(--paper2);color:var(--muted)}
html[data-theme=dark] .tag-filter select{color:var(--ink);background:var(--paper)}
html[data-theme=dark] .editorial-panel{--ed-paper:#000000;--ed-ink:#f3f2ed}
html[data-theme=dark] .ed-header{background:#000000;border-color:var(--line)}
html[data-theme=dark] :is(.ed-section-label>span,.ed-row-meta,.ed-intro .ed-based,.ed-experience article>span,.ed-experience p){color:var(--muted)}
html[data-theme=dark] .ed-row:hover .ed-title{color:var(--ed-ink)}
html[data-theme=dark] .ed-statement span{color:#74746f}
html[data-theme=dark] .ed-statement .ed-read,html[data-theme=dark] .ed-still .ed-statement span{color:var(--ed-ink)}
html[data-theme=dark] :is(.ed-experience article,.ed-figure figcaption){border-color:var(--line)}
html[data-theme=dark] :is(.compare-labels span,.compare-control,.hotspot-note,.embed-box button>span){background:#000000;color:var(--ink)}
@media(prefers-reduced-motion:reduce){.theme-toggle>span{transition:none}html[data-theme=dark] .ed-statement span{color:var(--ed-ink)}}

/* Pure-black dark surfaces; keep artwork, QR pixels and the silver portrait finish unchanged. */
html[data-theme=dark] :is(.card,.project-hero-media,.gallery img,.gallery video,.project-hero-media video,.external-video,.embed-box,.compare-box,.ed-visual,.ed-embed-start,.ed-embed-start span,.ed-media-error,.photo-viewer){background:#000000}
html[data-theme=dark] .list-row:hover{background:#000000}
html[data-theme=dark] .photo-viewer::backdrop,html[data-theme=dark] .intro-qr-dialog::backdrop{background:#000000}
