/* The studio theme never recolors Android frames or the contrast preview. */
:root{color-scheme:light}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:transparent;font-size:11px;font-weight:600;color:#5d6881;white-space:nowrap}
.theme-toggle:hover{background:#f0effc;color:#5453dd}
:root[data-theme=dark]{color-scheme:dark;color:#ecf0fb;background:#0b1120;--accent:#625ade;--muted:#a2b0c8;--line:#2b3a53;--lab-panel:#121c2e;--lab-inset:#0e1727;--lab-control:#18243a;--lab-hover:#202e47;--lab-text:#ecf0fb;--lab-secondary:#c0cbe0;--lab-subtle:#a2b0c8;--lab-violet:#b7adff;--lab-tint:#24243f;--lab-tint-line:#3b3a64}
[data-theme=dark] .lab-top,[data-theme=dark] .device-workspace,[data-theme=dark] .inspector-panel,[data-theme=dark] .recent-panel,[data-theme=dark] .white-panel,[data-theme=dark] .app-card,[data-theme=dark] .step-cards>div,[data-theme=dark] .capture-card>div:last-child,[data-theme=dark] .modal{background:var(--lab-panel);border-color:var(--line)}
[data-theme=dark] .lab-side{background:#0d1526;border-right:1px solid #202e46}
[data-theme=dark] .lab-brand small,[data-theme=dark] .workspace-label small,[data-theme=dark] .nav-caption,[data-theme=dark] .version{color:#97a6c0}
[data-theme=dark] .lab-side nav button,[data-theme=dark] .help-link,[data-theme=dark] .back-link{color:#acbad1}
[data-theme=dark] .lab-side nav button.active{color:#e0dbff;background:#292844}
[data-theme=dark] .own-cloud p{color:#acb8cd}
[data-theme=dark] .breadcrumb,[data-theme=dark] .connection,[data-theme=dark] .page-heading p,[data-theme=dark] .eyebrow,[data-theme=dark] .session-actions>div,[data-theme=dark] .panel-tabs button,[data-theme=dark] .info-pair,[data-theme=dark] .section-title,[data-theme=dark] .action-row,[data-theme=dark] .action-row small,[data-theme=dark] .record-switch,[data-theme=dark] .record-switch small,[data-theme=dark] .panel-title button,[data-theme=dark] .empty-line,[data-theme=dark] .empty-line strong,[data-theme=dark] .empty-line p,[data-theme=dark] .lab-footer,[data-theme=dark] .lab-footer b,[data-theme=dark] .lab-footer button,[data-theme=dark] .code-text,[data-theme=dark] .app-detail,[data-theme=dark] .step-cards p,[data-theme=dark] .empty-state,[data-theme=dark] .empty-state p,[data-theme=dark] .note-line,[data-theme=dark] .node-row small,[data-theme=dark] .step-inputs label,[data-theme=dark] .saved-scenario p,[data-theme=dark] .capture-card small,[data-theme=dark] th,[data-theme=dark] td small,[data-theme=dark] .log-row small,[data-theme=dark] .color-inputs label,[data-theme=dark] .contrast-result small,[data-theme=dark] .quality-check,[data-theme=dark] .help-grid li,[data-theme=dark] .help-feature,[data-theme=dark] .file-drop span,[data-theme=dark] .download-runner small,[data-theme=dark] .node-item small,[data-theme=dark] .empty-mini{color:var(--lab-subtle)}
[data-theme=dark] .breadcrumb strong,[data-theme=dark] .field,[data-theme=dark] .field small,[data-theme=dark] .info-pair strong,[data-theme=dark] .action-row>span,[data-theme=dark] .empty-state h3,[data-theme=dark] .add-app-card h2,[data-theme=dark] td strong,[data-theme=dark] .log-row strong,[data-theme=dark] .file-drop strong{color:var(--lab-secondary)}
[data-theme=dark] .btn:not(.primary):not(.phone-connect),[data-theme=dark] .theme-toggle{background:var(--lab-control);border-color:var(--line);color:var(--lab-secondary)}
[data-theme=dark] .btn:not(.primary):not(.phone-connect):hover,[data-theme=dark] .theme-toggle:hover,[data-theme=dark] .icon-btn:hover{background:var(--lab-hover);color:var(--lab-text)}
[data-theme=dark] .btn.primary:hover{background:#736ae9}
[data-theme=dark] .icon-btn{color:var(--lab-subtle)}
[data-theme=dark] .auth-banner{background:var(--lab-tint);border-color:var(--lab-tint-line);color:#c7bee7}
[data-theme=dark] .auth-banner strong{color:#e4ddff}
[data-theme=dark] .auth-banner a,[data-theme=dark] .panel-tabs button.selected,[data-theme=dark] .update-apk,[data-theme=dark] .saved-scenario>svg,[data-theme=dark] .help-feature svg{color:var(--lab-violet)}
[data-theme=dark] .panel-tabs button.selected:after{background:var(--lab-violet)}
[data-theme=dark] .avatar,[data-theme=dark] .app-symbol,[data-theme=dark] .app-icon,[data-theme=dark] .step-cards>div>span,[data-theme=dark] .device-icon,[data-theme=dark] .step-num,[data-theme=dark] .status-icon{background:var(--lab-tint);color:var(--lab-violet);border-color:var(--lab-tint-line)}
[data-theme=dark] .android-tag,[data-theme=dark] .setting-note{background:var(--lab-inset);color:var(--lab-subtle);border-color:var(--line)}
[data-theme=dark] .project-picker select{color:var(--lab-secondary)}
[data-theme=dark] .project-picker select option{background:var(--lab-panel);color:var(--lab-text)}
[data-theme=dark] .field input,[data-theme=dark] .field select,[data-theme=dark] .step-inputs select,[data-theme=dark] .step-inputs input,[data-theme=dark] .search,[data-theme=dark] .color-inputs input{background:var(--lab-inset);color:var(--lab-text);border-color:var(--line)}
[data-theme=dark] .search input{color:var(--lab-text)}
[data-theme=dark] input::placeholder{color:#8999b3;opacity:1}
[data-theme=dark] .workflow-card,[data-theme=dark] .connect-hero{background:linear-gradient(115deg,#27223f,#17223a);border-color:var(--lab-tint-line)}
[data-theme=dark] .workflow-card:after{border-color:#494065}
[data-theme=dark] .workflow-card h2,[data-theme=dark] .connect-hero h2{color:#e2daff}
[data-theme=dark] .workflow-card .section-title,[data-theme=dark] .workflow-card>div:last-child,[data-theme=dark] .connect-hero p,[data-theme=dark] .connect-visual,[data-theme=dark] .connect-visual span{color:#b9afd3}
[data-theme=dark] .add-app-card,[data-theme=dark] .scenario-step,[data-theme=dark] .capture-card,[data-theme=dark] .report-modal pre{background:var(--lab-inset);border-color:var(--line);color:var(--lab-subtle)}
[data-theme=dark] .add-app-card>span{background:var(--lab-control);border-color:#4c5c79;color:var(--lab-violet)}
[data-theme=dark] .add-app-card:hover{border-color:var(--lab-violet)}
[data-theme=dark] .badge{background:#243047;color:#bdc9dd}
[data-theme=dark] .badge.passed,[data-theme=dark] .status-icon.passed{background:#183b33;color:#8cdec0}
[data-theme=dark] .badge.error,[data-theme=dark] .badge.cancelled,[data-theme=dark] .badge.recording,[data-theme=dark] .status-icon.error{background:#442a31;color:#ffb8b0}
[data-theme=dark] .badge.running,[data-theme=dark] .badge.queued{background:#302a4d;color:#c4b5ff}
[data-theme=dark] .connection.connected{color:#8cdec0}
[data-theme=dark] td{border-color:var(--line)}
[data-theme=dark] .video-placeholder{color:var(--lab-violet)}
[data-theme=dark] .modal-backdrop{background:#030816b8}
[data-theme=dark] .file-drop,[data-theme=dark] .download-runner{background:var(--lab-tint);border-color:#58507c;color:var(--lab-violet)}
[data-theme=dark] .file-drop:hover,[data-theme=dark] .download-runner:hover{border-color:var(--lab-violet)}
[data-theme=dark] .record-switch input,[data-theme=dark] .quality-check input{accent-color:#a79cff}
[data-theme=dark] .stage-top,[data-theme=dark] .stage-bottom{color:#a5b4ce}
@media(max-width:1240px){.theme-toggle>span{display:none}.theme-toggle{width:40px;padding:9px}.top-actions{gap:12px}}
@media(max-width:760px){.top-actions{gap:8px}.theme-toggle{width:38px;min-height:38px}}
