.studio-theme{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid var(--line,#d8e4e8);border-radius:10px;background:var(--soft,#edf5f6);flex:0 0 auto;margin-left:auto}.studio-theme button{width:auto;min-height:30px;padding:5px 10px;margin:0;border:0;border-radius:7px;font:600 12px/20px system-ui;cursor:pointer;color:var(--ink,#183b47);background:transparent}.studio-theme button[aria-pressed=true]{background:#078ba0;color:#fff}.studio-theme button:focus-visible{outline:3px solid #37b9d0;outline-offset:2px}body>main>.studio-theme{display:flex;width:max-content;margin:0 0 20px auto}
:root[data-theme=dark]{color-scheme:dark;--ink:#e5edf5;--muted:#a7b8c9;--line:#34485c;--accent:#087586;--bg:#101a27;--soft:#233347;--card:#182638;--studio-dark:#e5edf5}
:root[data-theme=dark] :is(h1,h2,h3,h4,label){color:#e5edf5!important}
:root[data-theme=dark] #cards.integration-grid{background:#101a27!important;border-color:#34485c!important}
:root[data-theme=dark] .provider-actions button{background:#263a50!important;color:#d9edf7!important;border-color:#456079!important}
:root[data-theme=dark] body{background:#101a27!important;color:#e5edf5!important}
:root[data-theme=dark] :is(body>header,body>main:not(#sv-flow),.card,.voicebar,.integration-card,.workspace-card,.panel,.production,.brand-section,dialog,.account-menu>div,header details>div){background-color:#182638!important;color:#e5edf5;border-color:#34485c!important}
:root[data-theme=dark] :is(input,textarea,select){background-color:#101e2e!important;color:#e5edf5!important;border-color:#456079!important}
:root[data-theme=dark] :is(input,textarea)::placeholder{color:#a6b6c8}
:root[data-theme=dark] :is(p,small,.muted,.provider-account,.field-label){color:#b0c0d0}
:root[data-theme=dark] :is(a,.policy-links a){color:#82dceb}
:root[data-theme=dark] :is(.secondary,.subtle,.modes,header nav a,header .modes>*,.google-button,.integration-controls button,.pending-status){background-color:#263a50!important;color:#d9edf7!important;border-color:#456079!important}
:root[data-theme=dark] :is(header nav [aria-current=page],button[aria-pressed=true],.modes button:not(.secondary)){background:#087e92!important;color:#fff!important}
:root[data-theme=dark] .google-button:hover{background:#304961!important}
:root[data-theme=dark] :is(.empty,.asset,.notice,.catalog-file-button,.file-button,#message){background-color:#23374b!important;color:#d9edf7!important}
:root[data-theme=dark] #sv-flow{--bg:#101a27;--panel:#182638;--soft:#233347;--line:#34485c;--ink:#e5edf5;--muted:#a7b8c9;--accent:#5ed1e4;color-scheme:dark}
:root[data-theme=dark] :is(.studio-brand img,body>header>img){filter:brightness(0) invert(1)}
:root[data-theme=light] #sv-flow{color-scheme:light}
:root[data-theme=dark] dialog::backdrop{background:#000a}
@media(max-width:600px){header .studio-theme{order:2}.studio-theme button{padding:4px 8px}}
/* Compact icon controls keep their names available to assistive technology. */
.studio-theme{gap:2px;padding:3px;border-radius:12px;background:var(--soft,#f0f4f7)}.studio-theme button{display:grid;place-items:center;width:34px;height:34px;min-height:34px;padding:7px;border-radius:9px}.studio-theme svg{width:20px;height:20px;display:block}.studio-theme button[aria-pressed=true]{background:#fff;color:#183b47;box-shadow:0 1px 5px #183b4717}:root[data-theme=dark] .studio-theme button[aria-pressed=true]{background:#3b556e!important;color:#fff!important}
body>header>.studio-theme{order:1;margin-left:auto}body>header>.account,body>header>.account-menu{order:2;margin-left:0}body>header>.studio-exit{order:3;flex:0 0 auto;width:auto;min-height:38px;padding:9px 13px;margin:0;border:1px solid #d6e6e9;border-radius:10px;background:#fff;color:#31525e;box-shadow:none;font:600 12px/18px system-ui,sans-serif;white-space:nowrap;cursor:pointer}body>header>.studio-exit:hover{background:#fff0ec;border-color:#ffb7a9;color:#8f3e31}body>header>.studio-exit:focus-visible{outline:3px solid #37b9d0;outline-offset:2px}body>header>.studio-exit:disabled{opacity:.5;cursor:wait}header .studio-profile-action{display:block;width:100%;margin:0;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:inherit;font:600 12px/18px system-ui;text-align:left;cursor:pointer}header .studio-profile-action:hover{background:#edf5f6}header details>div{min-width:190px}header details>div>a{display:block;padding:10px 12px;font-size:12px;text-decoration:none}
.studio-account-dialog{box-sizing:border-box;width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 48px);overflow:auto;border:1px solid #d6e6e9;border-radius:22px;padding:26px;background:white;color:#183b47;box-shadow:0 24px 80px #15203033;font:14px/1.5 system-ui,sans-serif}.studio-account-dialog::backdrop{background:#15203070;backdrop-filter:blur(4px)}.studio-account-dialog__head{display:flex;align-items:center;justify-content:space-between;gap:18px}.studio-account-dialog__head h2{font-size:20px;margin:0}.studio-account-dialog__close{width:auto;margin:0;padding:7px 10px;border:1px solid #dbe7eb;border-radius:9px;background:#f4f7f9;color:#31525e;font:600 12px/18px system-ui;cursor:pointer}.studio-account-dialog>p{color:#6b7f89;font-size:13px;margin:18px 0}.studio-account-details{display:grid;grid-template-columns:105px minmax(0,1fr);gap:0;margin:0}.studio-account-details dt,.studio-account-details dd{margin:0;padding:13px 0;border-bottom:1px solid #e6edef;overflow-wrap:anywhere}.studio-account-details dt{font-size:12px;color:#718590}.studio-account-details dd{font-weight:600}.studio-account-dialog__links{display:flex;gap:12px;margin-top:24px}.studio-account-dialog__links a{display:inline-block;border-radius:10px;padding:10px 14px;background:#087f91;color:white;text-decoration:none;font-weight:600;font-size:13px}:root[data-theme=dark] .studio-exit{background:#263a50!important;color:#d9edf7!important;border-color:#456079!important}:root[data-theme=dark] .studio-profile-action:hover{background:#263a50}:root[data-theme=dark] .studio-account-details dt,:root[data-theme=dark] .studio-account-details dd{border-color:#34485c}:root[data-theme=dark] .studio-account-dialog__close{background:#263a50;color:#d9edf7;border-color:#456079}
@media(max-width:1000px){body>header>.modes,body>header>nav{order:4}}@media(max-width:500px){body>header{gap:9px}body>header>.studio-brand,body>header>img{flex:1 0 calc(100% - 90px);width:123px}body>header>.studio-theme{margin-left:0}body>header>.account,body>header>.account-menu{margin-left:auto}body>header>.studio-exit{padding:9px 11px}.studio-account-dialog{padding:20px}.studio-account-details{grid-template-columns:90px minmax(0,1fr)}}
