/* Optional color treatments only. Page structure, typography and media stay intact. */
html[data-tfair-theme="paper-blue"]{color-scheme:light;--bg:#f5f7fb;--panel:#fff;--panel2:#edf1f7;--ink:#182335;--muted:#627087;--line:#d8e0eb;--accent:#d87139;--theme-link:#3e6dcc;--theme-tint:#edf2ff;--theme-tint-line:#b9cbed;--theme-header:#ffffffed;--theme-dot:#cbd5e5;--theme-button-ink:#fff;--theme-video:#10151d}
html[data-tfair-theme="paper-violet"]{color-scheme:light;--bg:#f7f6fa;--panel:#fff;--panel2:#efedf5;--ink:#292535;--muted:#777181;--line:#dfdbe7;--accent:#8b6abf;--theme-link:#8062ad;--theme-tint:#f0eaf9;--theme-tint-line:#cdbbe6;--theme-header:#ffffffed;--theme-dot:#d8d0e4;--theme-button-ink:#fff;--theme-video:#17141d}
html[data-tfair-theme="violet-dark"]{color-scheme:dark;--bg:#101014;--panel:#18171e;--panel2:#222029;--ink:#efedf5;--muted:#aaa5b5;--line:#38333f;--accent:#b4a0e2;--theme-link:#b4a0e2;--theme-tint:#2b2439;--theme-tint-line:#6f5c92;--theme-header:#18171eed;--theme-dot:#40374f;--theme-button-ink:#17121f;--theme-video:#09090c}
html[data-tfair-theme="mono-dark"]{color-scheme:dark;--bg:#101113;--panel:#18191c;--panel2:#222428;--ink:#eeeff1;--muted:#a0a4ad;--line:#373b42;--accent:#e0e3e9;--theme-link:#c5cbd5;--theme-tint:#2a2d33;--theme-tint-line:#707985;--theme-header:#18191ced;--theme-dot:#3c414a;--theme-button-ink:#15171b;--theme-video:#090a0c}
html[data-tfair-theme="forest"]{color-scheme:dark;--bg:#101311;--panel:#171c18;--panel2:#1c231d;--ink:#f1f1e9;--muted:#a2aca3;--line:#323c33;--accent:#f09565;--theme-link:#acc3ac;--theme-tint:#30271c;--theme-tint-line:#826449;--theme-header:#171d18ed;--theme-dot:#3c503a;--theme-button-ink:#171b15;--theme-video:#0b120e}
html[data-tfair-theme] body{background:var(--bg)!important;color:var(--ink)!important}
html[data-tfair-theme] :is(h1,h2,h3,h4,strong){color:var(--ink)}
html[data-tfair-theme] :is(.site-header,.site-header nav.open){background:var(--theme-header)!important;border-color:var(--line)!important}
html[data-tfair-theme] :is(.brand>span,.site-header nav a,.footer-main>p,.footer-main>div,.footer-bottom,.footer-bottom button){color:var(--muted)!important;border-color:var(--line)!important}
html[data-tfair-theme] :is(.button.primary,.oc-run){background:var(--accent)!important;border-color:var(--accent)!important;color:var(--theme-button-ink)!important}
html[data-tfair-theme] :is(.button.primary span,.button.primary svg){color:inherit!important}
html[data-tfair-theme] :is(.button.outline,.view-toggle){border-color:var(--line)!important;color:var(--ink)!important;background:var(--panel)!important}
html[data-tfair-theme] :is(.eyebrow,.oc-eyebrow,.result-kicker,.text-link,.sidebar-caption,.scene-source,.scene-files span,.gaussian-caption a){color:var(--accent)!important}
html[data-tfair-theme] :is(em,#pipeline .heading-row .muted){color:var(--accent)!important}
html[data-tfair-theme] :is(.muted,.hero-description,.heading-row>p,.stage-detail>p,.stage-detail ul,.mini-label,.capture-copy>p,.capture-features,.capture-sdk p,.capture-tabs button>span,.engagement-grid p,.contact-bottom p,.dialog-intro,.scope-note p,.fine-print,.form-success,.scene-summary p,.quality-path p,.quality-bottom,.export-heading p){color:var(--muted)!important}
html[data-tfair-theme] :is(.pipeline-sticky,.stage-detail,.workflow-select button,.result-workbench,.workcell-visual,.manifest,.deliverables,.capture-art,.engagement-grid>article,dialog,.quality-path>div,.export-format-card,.export-input,.export-output,.scene-regions span,.scene-regions button,.dataset-schema){background:var(--panel)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-tfair-theme] :is(.pipeline-view,.pipeline-body,.stage-navigation,.source-timebar,.media-timeline,.capture-modes,.adapter-select button,.file-row,.manifest-head,.manifest-footer,.dataset-schema>div){background:var(--panel)!important;border-color:var(--line)!important;color:var(--muted)!important}
html[data-tfair-theme] :is(.workflow-select strong,.stage-detail h3,.export-format-card strong,.result-title h3,.scene-summary h3,.quality-path h4,.capture-copy h3,.file-row>div){color:var(--ink)!important}
html[data-tfair-theme] .workflow-select span{color:var(--muted)!important}
html[data-tfair-theme] :is(.workflow-select button[aria-pressed=true],.annotation-segment.active,.media-timeline button.active,.capture-modes button[aria-pressed=true],.capture-tabs button[aria-selected=true],.adapter-select button[aria-pressed=true],.export-formats button[aria-pressed=true]){background:var(--theme-tint)!important;border-color:var(--theme-tint-line)!important;color:var(--accent)!important}
html[data-tfair-theme] .workflow-select button[aria-pressed=true] strong{color:var(--theme-link)!important}
html[data-tfair-theme] :is(.stage-navigation button,.stage-navigation .module-tools,.capture-tabs button,.view-toolbar,.view-footer,.segment-time,.art-note,.capture-status,.dataset-facts,.dataset-schema span,.dataset-fileline,.export-format-card span,.export-shared-line,.gaussian-caption,.scene-preview-label,.scene-facts span,.training-checkpoints>span){color:var(--muted)!important;border-color:var(--line)!important}
html[data-tfair-theme] .stage-navigation:before{background:var(--line)!important}
html[data-tfair-theme] .stage-navigation button:before{background:var(--panel)!important;border-color:var(--theme-tint-line)!important;box-shadow:0 0 0 8px var(--panel)!important}
html[data-tfair-theme] .stage-navigation button.active{color:var(--accent)!important}
html[data-tfair-theme] .stage-navigation button.active:before{background:var(--accent)!important;border-color:var(--accent)!important;box-shadow:0 0 0 7px var(--theme-tint),0 0 0 8px var(--theme-tint-line)!important}
html[data-tfair-theme] .stage-navigation button.active .module-tools{color:var(--theme-link)!important;border-color:var(--theme-tint-line)!important}
html[data-tfair-theme] :is(.annotation-segment,.media-timeline button,.export-shared-line span,.training-checkpoints button){background:var(--panel2)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-tfair-theme] .annotation-segment.active{background:var(--theme-tint)!important;border-color:var(--theme-tint-line)!important;color:var(--ink)!important}
html[data-tfair-theme] .annotation-segment.active:before{background:var(--accent)!important}
html[data-tfair-theme] :is(#pipeline-video,.gaussian-media,.scene-photo){background:var(--theme-video)!important}
html[data-tfair-theme] .gaussian-caption{background:var(--panel)!important;border-color:var(--line)!important}
html[data-tfair-theme] .banner-arrow{background:var(--theme-header)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-tfair-theme] :is(.detail-divider,.pipeline-progress){background:var(--line)!important}
html[data-tfair-theme] :is(.product-badge,.scene-files>div,.scene-files a,.scene-regions span,.quality-status,.quality-bottom,.export-shared-line span,.capture-tabs,.capture-sdk,.capture-sdk>.button,.engagement-grid,.scope-note,.footer-bottom,details){border-color:var(--line)!important}
html[data-tfair-theme] :is(footer,.contact,.engagement,.deployment,.capture,.scope-note){background:var(--bg)!important;color:var(--ink)!important}
html[data-tfair-theme] :is(input,select,textarea){background:var(--panel2)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-tfair-theme] .language-switch button{color:var(--muted)!important}.language-switch button.active{background:var(--theme-tint)!important;color:var(--accent)!important}
html[data-tfair-theme] .source-timebar svg{color:var(--accent)!important}
html[data-tfair-theme] .source-timebar input{accent-color:var(--accent)}
/* The existing composer receives the same neutral surfaces and accent hierarchy. */
html[data-tfair-theme] :is(.oc-section,.oc-library-heading h3,.oc-node strong,.oc-inspector-info strong,.oc-count){color:var(--ink)!important}
html[data-tfair-theme] :is(.oc-shell,.oc-top,.oc-library,.oc-inspector,.oc-bottom,.oc-flow-switch,.oc-canvas-toolbar,.oc-canvas-foot,.oc-inspector-controls select){background:var(--panel)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-tfair-theme] .oc-scroll{background-color:var(--panel2)!important;background-image:radial-gradient(var(--theme-dot) 1px,transparent 1px)!important;scrollbar-color:var(--theme-tint-line) var(--panel2)!important}
html[data-tfair-theme] :is(.oc-module,.oc-node,.oc-canvas-toolbar button,.oc-bottom-actions button,.oc-port){background:var(--panel)!important;border-color:var(--line)!important;color:var(--ink)!important;box-shadow:none!important}
html[data-tfair-theme] :is(.oc-intro,.oc-demo,.oc-group-label,.oc-library-heading>span,.oc-module small,.oc-module b,.oc-module-icon,.oc-drag-help,.oc-zoom-value,.oc-node-model,.oc-node-status,.oc-node-grip,.oc-canvas-foot,.oc-inspector-info,.oc-inspector-controls label,.oc-bottom small,.oc-notice,.oc-flow-switch button){color:var(--muted)!important;border-color:var(--line)!important}
html[data-tfair-theme] :is(.oc-node-icon,.oc-inspector-icon){color:var(--theme-link)!important}
html[data-tfair-theme] .oc-node.selected{border-color:var(--theme-link)!important;box-shadow:0 0 0 2px var(--theme-tint)!important}
html[data-tfair-theme] .oc-flow-switch button[aria-pressed=true]{background:var(--theme-tint)!important;color:var(--theme-link)!important}
html[data-tfair-theme] :is(.oc-edge-line,.oc-pending){stroke:var(--theme-link)!important}.oc-edges marker path{fill:var(--theme-link)!important}
html[data-tfair-theme] :is(.oc-demo:before,.oc-node-status i){background:var(--accent)!important}
html[data-tfair-theme^="paper-"] :is(.brand img,.footer-main>a>img){filter:brightness(0)}
html[data-tfair-theme^="paper-"] .hero-shade{background:linear-gradient(90deg,#f8fafded 0%,#f8fafdd9 29%,#f8fafd30 53%,transparent 72%),linear-gradient(0deg,var(--bg),transparent 22%)!important}
html[data-tfair-theme^="paper-"] .hero-image{background-image:url('assets/hero-light-v1.webp');opacity:1}
/* A compact, independent control; it does not move the existing navigation. */
.tfair-theme-picker{position:fixed;right:calc(3.2% + 10px);top:112px;z-index:55;font-family:var(--font);font-size:12px;line-height:1.5;color:var(--ink)}
.tfair-theme-trigger{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:999px;padding:9px 14px;background:var(--theme-header);color:var(--ink);box-shadow:0 3px 14px #0000000b;backdrop-filter:blur(15px);font-size:12px}
.tfair-theme-trigger svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.tfair-theme-trigger .theme-chevron{width:12px;height:12px;color:var(--muted)}
.tfair-theme-menu{position:absolute;right:0;top:calc(100% + 9px);width:254px;padding:8px;background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px #0000001f}.tfair-theme-menu[hidden]{display:none}
.tfair-theme-choice{display:flex;align-items:center;gap:11px;width:100%;padding:12px 10px;border-radius:7px;background:none;text-align:left;color:var(--ink);font-size:13px;border:1px solid transparent}
.tfair-theme-choice:hover{background:var(--panel2)}.tfair-theme-choice[aria-pressed=true]{background:var(--theme-tint);border-color:var(--theme-tint-line)}
.theme-swatches{display:flex;gap:3px;flex:none}.theme-swatches i{display:block;width:13px;height:20px;border:1px solid #8993a22e;border-radius:3px}.theme-choice-label{flex:1}.theme-check{color:var(--theme-link);font-size:14px}.tfair-theme-choice:not([aria-pressed=true]) .theme-check{visibility:hidden}
.tfair-theme-picker button:focus-visible{outline:2px solid var(--theme-link);outline-offset:3px}
@media(max-width:760px){.tfair-theme-picker{top:92px;right:calc(3.2% + 2px)}.tfair-theme-trigger{font-size:11px;padding:8px 11px;gap:7px}.tfair-theme-menu{width:238px}.tfair-theme-choice{font-size:12px;padding:11px 9px}}
