/* Dark palette for existing studio surfaces; media pixels are untouched. */
.theme-control{display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap;color:var(--muted)}
.theme-control select{font:inherit;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:8px;min-height:38px;cursor:pointer}
.header{gap:22px}
html[data-theme=dark]{--bg:#111114;--paper:#1b1b20;--ink:#f3f3f5;--muted:#b5b5bf;--line:#393940;--dark:#19191d;--lime:#ff555d;color-scheme:dark}
@media(max-width:1000px){.header{height:auto;min-height:86px;flex-wrap:wrap;padding-top:16px;padding-bottom:10px;gap:12px}.header nav{order:3;width:100%;justify-content:center;margin:0}.header .subscribe-link{margin-left:auto}.theme-control{margin-left:4px}}
@media(max-width:440px){.header .brand{font-size:20px}.header .subscribe-link{font-size:12px;gap:4px}.theme-control>span{display:none}.theme-control select{max-width:84px}.header{gap:8px}.header nav{flex:1;width:auto;justify-content:space-between}.header nav a{padding:9px 8px;font-size:12px}.header .theme-control{order:3;margin:0}.header .subscribe-link{min-width:40%;justify-content:flex-end}}
html[data-theme=dark] .brand-ai{color:#b5b5bf}
html[data-theme=dark] nav a{color:#b5b5bf}
html[data-theme=dark] nav a.active{background:#202026}
html[data-theme=dark] .eyebrow{color:#b5b5bf}
html[data-theme=dark] h1 em{color:#b5b5bf}
html[data-theme=dark] .category:hover{border-color:#3e3e47}
html[data-theme=dark] .category.audio{background:#202026;border-color:#3e3e47}
html[data-theme=dark] .icon-box{background:#202026;border:1px solid #3e3e47}
html[data-theme=dark] .card-index{color:#b5b5bf}
html[data-theme=dark] .card-bottom{color:#b5b5bf}
html[data-theme=dark] .round-arrow{background:#202026;color:#f3f3f5}
html[data-theme=dark] .audio .round-arrow{background:#321d23}
html[data-theme=dark] .quick-panel{border:1px dashed #3e3e47;background:#202026}
html[data-theme=dark] .upload-symbol{border:1px solid #3e3e47}
html[data-theme=dark] .button:hover{background:#202026}
html[data-theme=dark] .local-note{color:#b5b5bf}
html[data-theme=dark] .tool-row svg{color:#b5b5bf}
html[data-theme=dark] .tool-row .row-arrow{color:#b5b5bf}
html[data-theme=dark] .pro-callout p{color:#b5b5bf}
html[data-theme=dark] footer{color:#b5b5bf}
html[data-theme=dark] .wordmark{color:#b5b5bf}
html[data-theme=dark] .skip{background:#202026}
html[data-theme=dark] .brand-ai{color:#b5b5bf}
html[data-theme=dark] nav a{color:#b5b5bf}
html[data-theme=dark] nav a.active{background:#202026;color:#f3f3f5}
html[data-theme=dark] .eyebrow{color:#b5b5bf}
html[data-theme=dark] h1 em{color:#ff7b83}
html[data-theme=dark] .category.audio{background:#202026;border-color:#3e3e47}
html[data-theme=dark] .category:hover{border-color:#3e3e47}
html[data-theme=dark] .icon-box{border-color:#3e3e47}
html[data-theme=dark] .card-index{color:#b5b5bf}
html[data-theme=dark] .card-bottom{color:#b5b5bf}
html[data-theme=dark] .round-arrow{background:#202026;color:#f3f3f5}
html[data-theme=dark] .audio .round-arrow{background:#202026;color:#ff7b83}
html[data-theme=dark] .quick-panel{background:#202026;border-color:#3e3e47}
html[data-theme=dark] .upload-symbol{background:#202026;border-color:#3e3e47}
html[data-theme=dark] .button:hover{background:#202026}
html[data-theme=dark] .local-note{color:#b5b5bf}
html[data-theme=dark] .tool-row svg{color:#b5b5bf}
html[data-theme=dark] .tool-row .row-arrow{color:#b5b5bf}
html[data-theme=dark] .pro-label{color:#ff7b83}
html[data-theme=dark] .pro-callout p{color:#b5b5bf}
html[data-theme=dark] .wordmark{color:#b5b5bf}
html[data-theme=dark] footer{color:#b5b5bf}
html[data-theme=dark] .back{color:#b5b5bf}
html[data-theme=dark] .red-period{color:#ff7b83}
html[data-theme=dark] .preview-badge{border:1px solid #3e3e47;color:#b5b5bf}
html[data-theme=dark] .tool-tab.selected{color:#ff7b83}
html[data-theme=dark] .tool-tab span{background:#202026}
html[data-theme=dark] .editor-main{background:#202026}
html[data-theme=dark] .segmented{background:#202026}
html[data-theme=dark] .segmented button{color:#b5b5bf}
html[data-theme=dark] .segmented button.on{background:#202026;color:#f3f3f5}
html[data-theme=dark] .drop-area{border:1px dashed #3e3e47;background:#202026}
html[data-theme=dark] .drop-icon{background:#202026;color:#ff7b83}
html[data-theme=dark] .drop-area p{color:#b5b5bf}
html[data-theme=dark] .drag-over{background:#202026!important}
html[data-theme=dark] .panel-foot{color:#b5b5bf}
html[data-theme=dark] .text-button{color:#ff7b83}
html[data-theme=dark] .section-label{color:#b5b5bf}
html[data-theme=dark] .inspector>p{color:#b5b5bf}
html[data-theme=dark] .info-item>svg{color:#ff7b83}
html[data-theme=dark] .info-item p{color:#b5b5bf}
html[data-theme=dark] .aside-note{color:#b5b5bf}
html[data-theme=dark] .file-icon{background:#202026;color:#ff7b83}
html[data-theme=dark] .file-strip>div span{color:#b5b5bf}
html[data-theme=dark] .waveform{background:linear-gradient(transparent 49.7%,#202026 50%,transparent 50.3%)}
html[data-theme=dark] .wave-labels{color:#b5b5bf}
html[data-theme=dark] .sample-label{color:#ff7b83;background:#202026}
html[data-theme=dark] .metric-grid span{color:#b5b5bf}
html[data-theme=dark] .metric-grid strong.pending-value{color:#b5b5bf}
html[data-theme=dark] .report-table>div{border-bottom:1px solid #3e3e47}
html[data-theme=dark] .report-table span{color:#b5b5bf}
html[data-theme=dark] label{color:#b5b5bf}
html[data-theme=dark] input[type=number],html[data-theme=dark] select{border:1px solid #3e3e47;background:#202026;color:#f3f3f5}
html[data-theme=dark] .preset-display>span{color:#b5b5bf}
html[data-theme=dark] .aspect{border:1.5px solid #3e3e47}
html[data-theme=dark] .preset-display small{color:#b5b5bf}
html[data-theme=dark] .image-stage{background-color:#202026}
html[data-theme=dark] .export-controls{background:#202026}
html[data-theme=dark] .dimension-cross{color:#b5b5bf}
html[data-theme=dark] output{color:#f3f3f5}
html[data-theme=dark] .saving{color:#ff7b83;background:#202026}
html[data-theme=dark] .country-label{color:#b5b5bf}
html[data-theme=dark] .pricing-notice{color:#b5b5bf}
html[data-theme=dark] .plan{background:#202026}
html[data-theme=dark] .plan>p{color:#b5b5bf}
html[data-theme=dark] .price>span{color:#b5b5bf}
html[data-theme=dark] .plan li svg{color:#b5b5bf}
html[data-theme=dark] .plan.pro li svg{color:#ff7b83}
html[data-theme=dark] .plan.pro .section-label{color:#b5b5bf}
html[data-theme=dark] .pro-pill{color:#ff7b83}
html[data-theme=dark] .plan-foot{color:#b5b5bf}
html[data-theme=dark] .pricing-notes p{color:#b5b5bf}
html[data-theme=dark] .faq p{color:#b5b5bf}
html[data-theme=dark] .subscribe-link.current{color:#ff7b83}
html[data-theme=dark] dialog{color:#f3f3f5}
html[data-theme=dark] dialog p{color:#b5b5bf}
html[data-theme=dark] .dialog-close{color:#b5b5bf}
html[data-theme=dark] .footer-right a{color:#b5b5bf}
html[data-theme=dark] .footer-right strong{color:#f3f3f5}
html[data-theme=dark] .footer-right a:hover{color:#ff7b83}
html[data-theme=dark] .key-result{border:1px solid #3e3e47;background:#202026}
html[data-theme=dark] .key-result p{color:#b5b5bf}
html[data-theme=dark] .key-confidence{color:#b5b5bf;background:#202026}
html[data-theme=dark] .key-confidence.ambiguous{background:#202026;color:#ff7b83}
html[data-theme=dark] .scale-notes span{border:1px solid #3e3e47;background:#202026}
html[data-theme=dark] .key-method{color:#b5b5bf!important}
html[data-theme=dark] .key-result.uncertain{background:#202026;border-color:#3e3e47}
html[data-theme=dark] .source-quality{border-bottom:1px solid #3e3e47}
html[data-theme=dark] .source-quality p{color:#b5b5bf}
html[data-theme=dark] .source-quality small{color:#b5b5bf}
html[data-theme=dark] .resolution-choice{border:1px solid #3e3e47}
html[data-theme=dark] .resolution-choice.selected{background:#202026}
html[data-theme=dark] .resolution-choice strong{color:#f3f3f5}
html[data-theme=dark] .resolution-choice small{color:#b5b5bf}
html[data-theme=dark] .scale-factor{color:#b5b5bf}
html[data-theme=dark] .conversion-summary p{color:#b5b5bf}
html[data-theme=dark] .conversion-warning{color:#ff7b83!important}
html[data-theme=dark] .render-progress{background:#202026}
html[data-theme=dark] .render-progress p{color:#b5b5bf}
html[data-theme=dark] .video-export-result{background:#202026}
html[data-theme=dark] .video-export-result p{color:#b5b5bf}
html[data-theme=dark] .photo-controls .control-help{color:#b5b5bf}
html[data-theme=dark] .photo-controls input[type=color]{border:1px solid #3e3e47;background:#202026}
html[data-theme=dark] .photo-export-settings{border-top:1px solid #3e3e47}
html[data-theme=dark] .output-dimensions{color:#b5b5bf}
html[data-theme=dark] .photo-workspace-footer{color:#b5b5bf}
html[data-theme=dark] .upscale-fact{background:#202026}
html[data-theme=dark] .upscale-fact p{color:#b5b5bf}
html[data-theme=dark] .audio-fields input,html[data-theme=dark] .audio-fields select,html[data-theme=dark] .format-select{border:1px solid #3e3e47;background:#202026;color:#f3f3f5}
html[data-theme=dark] .audio-output{border-top:1px solid #3e3e47}
html[data-theme=dark] .audio-tool-body .tiny{color:#b5b5bf}
html[data-theme=dark] .plus-picker button{border:1px solid #3e3e47;background:#202026;color:#f3f3f5}
html[data-theme=dark] .plus-work{border:1px solid #3e3e47;background:#202026}
html[data-theme=dark] .plus-work p{color:#b5b5bf}
html[data-theme=dark] .plus-work input:not([type=checkbox]),html[data-theme=dark] .plus-work select,html[data-theme=dark] .plus-work textarea{border:1px solid #3e3e47;background:#202026;color:#f3f3f5}
html[data-theme=dark] .plus-result a{color:#ff7b83}
html[data-theme=dark] .plus-file{background:#202026}
html[data-theme=dark] .plus-work canvas{border:1px solid #3e3e47}
html[data-theme=dark] .plus-work td,html[data-theme=dark] .plus-work th{border-bottom:1px solid #3e3e47}
html[data-theme=dark] .pack-grid details{border:1px solid #3e3e47}
html[data-theme=dark] .pack-grid a{color:#ff7b83}
html[data-theme=dark] .plus-note{background:#202026}
html[data-theme=dark] .launch-job{border:1px solid #3e3e47;background:#202026}
html[data-theme=dark] .launch-home{border-top:1px solid #3e3e47}
html[data-theme=dark] .launch-table td,html[data-theme=dark] .launch-table th{border-bottom:1px solid #3e3e47}
html[data-theme=dark] .launch-dialog{border:1px solid #3e3e47}
html[data-theme=dark] .preset-bar{border-top:1px solid #3e3e47}
html[data-theme=dark] .launch-plans .pro button:disabled{background:#202026;color:#f3f3f5}
html[data-theme=dark] .legal-links{border-block:1px solid #3e3e47}
html[data-theme=dark] .legal-date{color:#b5b5bf}
html[data-theme=dark] .legal-footer{border-top:1px solid #3e3e47}
html[data-theme=dark] .legal-copy input{border:1px solid #3e3e47}
html[data-theme=dark] .audio-summary-tables caption{color:#f3f3f5}
html[data-theme=dark] .audio-summary-tables th,html[data-theme=dark] .audio-summary-tables td{border-bottom:1px solid #3e3e47}
html[data-theme=dark] .audio-summary-tables th{color:#b5b5bf}
html[data-theme=dark] .analysis-details{color:#b5b5bf}
html[data-theme=dark] .trim-wave{background:#202026;border:1px solid #3e3e47}
html[data-theme=dark] .trim-sliders label{color:#b5b5bf}
html[data-theme=dark] .file-load-status{border:1px solid #3e3e47;background:#202026}
html[data-theme=dark] #stem-length{border:1px solid #3e3e47;background:#202026}
html[data-theme=dark] .practice-wave{background:#202026;border:1px solid #3e3e47}
html[data-theme=dark] .practice-play{border:1px solid #3e3e47;background:#202026}

html[data-theme=dark] .button.dark,html[data-theme=dark] #toast{background:#f0f0f4;color:#17171b;border-color:#f0f0f4}
html[data-theme=dark] .button.dark:hover{background:#d7d7df}
html[data-theme=dark] :is(.plus-picker button[aria-pressed=true],.launch-filters [aria-pressed=true]){background:#eeeeF3;color:#15151a;border-color:#eeeef3}
html[data-theme=dark] :is(.button.lime,.scale-notes .tonic,.practice-play[aria-pressed=true]){background:#d71929;color:#fff;border-color:#d71929}
html[data-theme=dark] .segmented button.on{background:#404048;color:#fff}
html[data-theme=dark] :is(input:not([type=range]):not([type=color]):not([type=checkbox]):not([type=radio]),select,textarea){color:#f3f3f5;background-color:#202026;border-color:#484850}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#a9a9b3}
html[data-theme=dark] :is(.practice-playhead,#trim-playhead){background:#fff}
html[data-theme=dark] :is(.workspace-guide,.workspace-guide details,.workspace-guide a){color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.workspace-guide p,.workspace-steps li){color:var(--muted)}
html[data-theme=dark] .workspace-steps li[aria-current=step]{color:#ff7b83}
html[data-theme=dark] .workspace-jobs button{background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.photo-control-reset,.photo-reset){background:#26262d;color:#f3f3f5;border-color:#484850}
html[data-theme=dark] dialog{color:var(--ink);background:var(--paper)}
html[data-theme=dark] .image-stage{background-color:#25252a;background-image:conic-gradient(#36363e 25%,#25252a 0 50%,#36363e 0 75%,#25252a 0);background-size:20px 20px}
html[data-theme=dark] a:focus-visible,html[data-theme=dark] button:focus-visible,html[data-theme=dark] select:focus-visible{outline-color:#ff7b83}

/* Free release has no plans link: keep all workspace links reachable on phones. */
@media (max-width:440px) {
  html[data-free-release="true"] .header nav { flex:0 0 100%; width:100%; order:3; }
  html[data-free-release="true"] .header .theme-control { order:2; margin-left:auto; }
}
