/* Shared Studio surfaces: neutral canvas, restrained borders, one warm brand accent. */
:root{--studio-canvas:#f8f9fb;--studio-surface:#fff;--studio-raised:#f1f3f6;--studio-text:#20242c;--studio-muted:#737b88;--studio-line:#e0e4eb;--studio-accent:#d9693b;--studio-tint:#fcf0e9}
:root[data-theme=dark]{--studio-canvas:#111316;--studio-surface:#191c20;--studio-raised:#23272d;--studio-text:#f1f3f6;--studio-muted:#a0a7b3;--studio-line:#30353e;--studio-accent:#f39061;--studio-tint:#33261f}
body.studio-refresh{background:var(--studio-canvas);color:var(--studio-text)}:root body.studio-refresh .ambient{display:none}
:root body.studio-refresh .sidebar{background:var(--studio-surface)!important;border-color:var(--studio-line)!important;padding-top:22px}
:root body.studio-refresh .sidebar .nav,:root body.studio-refresh .sidebar-project{color:var(--studio-muted);font-size:12px;min-height:36px;border-radius:8px}
:root body.studio-refresh .sidebar .nav.active,:root body.studio-refresh .sidebar .nav:hover{background:var(--studio-raised);color:var(--studio-text);box-shadow:none}
:root body.studio-refresh .sidebar-new-chat{border-color:var(--studio-line);background:var(--studio-tint);color:var(--studio-accent);font-size:12px;min-height:39px}
:root body.studio-refresh .sidebar-label{font-size:9px;letter-spacing:.12em;color:var(--studio-muted)}:root body.studio-refresh .pilot-pill,:root body.studio-refresh .sidebar-bottom p{display:none}:root body.studio-refresh .sidebar-bottom{padding-top:14px}
:root body.studio-refresh .main{background:var(--studio-canvas);padding:12px 20px 12px}:root body.studio-refresh .topbar{border-bottom:1px solid var(--studio-line);padding:0 0 12px;min-height:52px}
:root body.studio-refresh .workspace-title strong{font-size:13px;color:var(--studio-text)}:root body.studio-refresh .workspace-title span{color:var(--studio-muted);font-size:10px}
:root body.studio-refresh .creator-workbench{height:calc(100dvh - 94px);min-height:480px;grid-template-columns:minmax(0,1fr) 12px var(--creator-results-width,340px)}
:root body.studio-refresh .creator-center{padding:0 16px 0 0}:root body.studio-refresh .chat-studio{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;min-height:100%;max-width:840px;margin:0 auto}
:root body.studio-refresh .chat-head{background:transparent!important;border:0!important;padding:18px 4px 10px!important;gap:8px}:root body.studio-refresh .chat-head>div{width:100%}:root body.studio-refresh .chat-head h2{color:var(--studio-text)!important;font-size:clamp(25px,2.5vw,35px);letter-spacing:-.04em;line-height:1.2}:root body.studio-refresh .chat-head p{color:var(--studio-muted)!important;font-size:12px;line-height:1.6;margin:9px 0 0}
:root body.studio-refresh .chat-head .chat-mode{background:transparent!important;border:0!important;padding:0!important;font-size:10px;color:var(--studio-muted)!important}:root body.studio-refresh .chat-save-status{margin-left:auto;font-size:10px}:root body.studio-refresh .chat-head .eyebrow{display:none}
:root body.studio-refresh .chat-main{padding:12px 4px 16px!important;display:flex;flex-direction:column;gap:10px;background:transparent!important}:root body.studio-refresh .chat-layout{background:transparent!important}
:root body.studio-refresh .marketing-task-bar{order:4;display:grid;grid-template-columns:1fr auto;gap:8px;margin:0!important;padding:9px 12px!important;background:var(--studio-surface)!important;border:1px solid var(--studio-line)!important;border-radius:12px 12px 0 0;color:var(--studio-text)!important}
:root body.studio-refresh .task-picker-heading{grid-column:1;grid-row:1;gap:6px}:root body.studio-refresh .task-step{display:none}:root body.studio-refresh .task-picker-heading>label{font-size:11px;font-weight:600;color:var(--studio-muted)}:root body.studio-refresh #studio-guide-open{grid-column:2;grid-row:1;padding:0;border:0;background:transparent;font-size:10px;min-height:24px;color:var(--studio-muted);margin-left:auto}
:root body.studio-refresh #chat-marketing-task{grid-column:1/-1;background:transparent!important;color:var(--studio-text)!important;border:0!important;font:700 13px 'DM Sans',sans-serif;padding:2px 0!important;min-height:28px!important;max-width:none;width:100%}
:root body.studio-refresh #marketing-task-hint,:root body.studio-refresh #task-context{display:none}
:root body.studio-refresh .chat-form{order:5;border:1px solid var(--studio-line)!important;border-top:0!important;border-radius:0 0 12px 12px!important;margin:-10px 0 0!important;background:var(--studio-surface)!important;padding:10px 12px 12px!important;box-shadow:0 8px 30px #11182706}
:root body.studio-refresh .chat-form textarea{background:transparent!important;color:var(--studio-text)!important;border:0!important;min-height:96px;padding:8px 2px 12px;font-size:14px;line-height:1.6}:root body.studio-refresh .chat-form textarea::placeholder{color:var(--studio-muted)!important;opacity:1}
:root body.studio-refresh .composer-toolbar{border-color:var(--studio-line);gap:9px}:root body.studio-refresh :is(.composer-model,.composer-duration,.composer-type-tabs,.composer-more>summary,#chat-add-reference,#chat-voice){border-color:var(--studio-line)!important;background:var(--studio-raised)!important;color:var(--studio-muted)!important;border-radius:8px}
:root body.studio-refresh .composer-model select,:root body.studio-refresh .composer-duration select{color:var(--studio-text)!important;font-size:11px}:root body.studio-refresh .composer-type-tab{color:var(--studio-muted)!important;font-size:11px}:root body.studio-refresh .composer-type-tab[aria-selected=true]{background:var(--studio-surface)!important;color:var(--studio-accent)!important;box-shadow:none}
:root body.studio-refresh #chat-voice{font-size:0}:root body.studio-refresh #chat-voice svg{display:block}:root body.studio-refresh #chat-voice[aria-pressed=true]{color:var(--studio-accent)!important;background:var(--studio-tint)!important}
:root body.studio-refresh .composer-more-content{background:var(--studio-surface)!important;border-color:var(--studio-line)!important;color:var(--studio-text)!important}:root body.studio-refresh .composer-more-content select{background:var(--studio-raised)!important;color:var(--studio-text)!important;border-color:var(--studio-line)!important}
:root body.studio-refresh .main #chat-send{background:var(--studio-accent)!important;color:#171717!important;border:0!important;font-size:11px!important;border-radius:8px!important;min-height:35px!important;padding:7px 12px!important}
.studio-composer-note{order:6;margin:0;color:var(--studio-muted);font-size:10px;text-align:center;line-height:1.5}:root body.studio-refresh .studio-inspiration{order:7;margin-top:18px}.studio-inspiration[hidden]{display:none}
.studio-inspiration-heading{display:flex;justify-content:space-between;gap:8px;margin-bottom:10px;font-size:11px;color:var(--studio-muted)}.studio-inspiration-heading strong{font-weight:600}.studio-inspiration-heading a{color:var(--studio-accent);text-decoration:none;font-size:10px}
:root body.studio-refresh .task-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}:root body.studio-refresh .task-shortcuts button{display:grid;grid-template-columns:92px minmax(0,1fr);padding:0;overflow:hidden;text-align:left;border:1px solid var(--studio-line);background:var(--studio-surface);color:var(--studio-text);border-radius:10px;min-height:102px;position:relative}
:root body.studio-refresh .task-shortcuts button img{width:92px;height:100%;max-height:112px;object-fit:cover}:root body.studio-refresh .task-shortcuts button>span{padding:12px 10px;display:grid;align-content:center;gap:5px;min-width:0}:root body.studio-refresh .task-shortcuts strong{font-size:11px;font-weight:700;line-height:1.4}:root body.studio-refresh .task-shortcuts small{font-size:10px;font-weight:400;color:var(--studio-muted);line-height:1.45}:root body.studio-refresh .task-shortcuts button[aria-pressed=true]{border-color:var(--studio-accent);background:var(--studio-tint)}:root body.studio-refresh .task-shortcuts button:hover{border-color:var(--studio-accent)}
:root body.studio-refresh .studio-get-started{order:9;margin:8px 0 0;padding:0;background:transparent;color:var(--studio-muted);font-size:10px}:root body.studio-refresh .studio-get-started button{font-size:10px}:root body.studio-refresh #video-analysis-panel{order:8;margin:8px 0 0}:root body.studio-refresh .creator-extras{border-color:var(--studio-line);background:var(--studio-surface)}
:root body.studio-refresh .chat-studio[data-conversation=new] .chat-thread{display:none}:root body.studio-refresh .chat-studio[data-conversation=active] .chat-head{padding:12px 4px!important}:root body.studio-refresh .chat-studio[data-conversation=active] .chat-head h2{font-size:20px}:root body.studio-refresh .chat-studio[data-conversation=active] .chat-head p{display:none}:root body.studio-refresh .chat-studio[data-conversation=active] .chat-thread{flex:1;overflow:auto;min-height:160px;max-height:none}
:root body.studio-refresh .chat-message{border:0!important;font-size:13px;line-height:1.7}:root body.studio-refresh .chat-message.assistant{background:var(--studio-surface)!important;color:var(--studio-text)!important}:root body.studio-refresh .chat-message.user{background:var(--studio-tint)!important;color:var(--studio-text)!important}
:root body.studio-refresh .creator-results{background:var(--studio-surface)!important;border-color:var(--studio-line)!important;border-radius:12px}:root body.studio-refresh .results-head{background:var(--studio-surface)!important;border-color:var(--studio-line)!important;padding:15px 16px 10px;position:static}:root body.studio-refresh .results-head h2{font-size:14px;color:var(--studio-text)!important}:root body.studio-refresh .results-head .eyebrow{display:none}
.studio-result-tabs{display:flex;flex:none;gap:4px;padding:0 12px 10px;border-bottom:1px solid var(--studio-line)}.studio-result-tabs button{flex:1;padding:8px 4px;min-height:33px;border:0;border-radius:7px;background:transparent;color:var(--studio-muted);font-size:11px;font-weight:600;cursor:pointer}.studio-result-tabs button[aria-selected=true]{background:var(--studio-raised);color:var(--studio-text)}
:root body.studio-refresh .creator-results [role=tabpanel][hidden]{display:none!important}:root body.studio-refresh .result-focus{border:0;padding:16px}:root body.studio-refresh .result-focus h3{color:var(--studio-text)!important;font-size:14px}:root body.studio-refresh .result-focus p{color:var(--studio-muted)!important;font-size:11px;line-height:1.6}:root body.studio-refresh .result-focus>img,:root body.studio-refresh .result-focus>video{max-height:420px;margin:10px 0;border-radius:8px}
:root body.studio-refresh .chat-review,:root body.studio-refresh .chat-brief{background:var(--studio-surface)!important;border-color:var(--studio-line)!important}:root body.studio-refresh .creator-results .chat-brief-content{max-height:unset;overflow:visible}:root body.studio-refresh .music-library,:root body.studio-refresh .creator-assets{background:transparent!important;border:0!important;padding:14px}:root body.studio-refresh .creator-results .asset-card{background:var(--studio-raised);border-color:var(--studio-line)}
:root body.studio-refresh .studio-language{background:var(--studio-surface);border-color:var(--studio-line);color:var(--studio-text);font-size:11px}:root body.studio-refresh .workspace-divider::after{height:30px;border:0;background:transparent;color:var(--studio-muted)}
/* Apply the same palette to the existing account, voice and admin surfaces. */
:root body .workspace-shell{background:var(--studio-canvas);color:var(--studio-text);--workspace-sidebar:var(--studio-surface);--workspace-line:var(--studio-line);--workspace-text:var(--studio-text);--workspace-muted:var(--studio-muted);--workspace-active:var(--studio-raised)}
:root body .workspace-shell .workspace-sidebar{background:var(--studio-surface);border-color:var(--studio-line)}:root body .workspace-shell .workspace-content{background:var(--studio-canvas);color:var(--studio-text)}:root body .workspace-shell .panel{background:var(--studio-surface)!important;border-color:var(--studio-line)!important;border-radius:12px!important}
:root body .workspace-shell .workspace-pilot,.workspace-shell .workspace-sidebar-bottom p{display:none}:root body .workspace-shell :is(h1,h2,h3,label){color:var(--studio-text)}:root body .workspace-shell .workspace-nav a{font-size:12px;min-height:36px}:root body .workspace-shell :is(input,select,textarea){background:var(--studio-raised);color:var(--studio-text);border-color:var(--studio-line)}
@media(max-width:1150px){:root body.studio-refresh .creator-center{padding-right:8px}:root body.studio-refresh .task-shortcuts button{grid-template-columns:68px minmax(0,1fr)}:root body.studio-refresh .task-shortcuts button img{width:68px}:root body.studio-refresh .task-shortcuts small{display:none}}
@media(max-width:900px){:root body.studio-refresh .creator-workbench{grid-template-columns:minmax(0,1fr);height:calc(100dvh - 96px)}:root body.studio-refresh .creator-center{padding:0}:root body.studio-refresh .chat-studio{max-width:760px}:root body.studio-refresh .creator-results{border-radius:0}:root body.studio-refresh .task-shortcuts small{display:block}}
@media(max-width:600px){:root body.studio-refresh .main{padding:10px 12px}:root body.studio-refresh .creator-workbench{height:auto;min-height:calc(100dvh - 134px)}:root body.studio-refresh .chat-head{padding:16px 4px 6px!important}:root body.studio-refresh .chat-head h2{font-size:27px}:root body.studio-refresh .chat-main{padding:10px 2px 12px!important}:root body.studio-refresh .task-shortcuts button{grid-template-columns:1fr;min-height:0}:root body.studio-refresh .task-shortcuts button img{width:100%;height:92px}:root body.studio-refresh .task-shortcuts button>span{padding:9px}:root body.studio-refresh .task-shortcuts small{display:none}:root body.studio-refresh .composer-model select{width:105px}:root body.studio-refresh .studio-composer-note{font-size:9px}:root body.studio-refresh .chat-studio[data-conversation=active] .chat-thread{max-height:52dvh}:root body.studio-refresh .task-picker-heading>label{font-size:10px}}

:root body.studio-refresh .creator-results[data-result-tab=preview] :is(#chat-review,#music-library,#creator-assets),:root body.studio-refresh .creator-results[data-result-tab=brief] :is(#result-focus,#music-library,#creator-assets),:root body.studio-refresh .creator-results[data-result-tab=library] :is(#result-focus,#chat-review){display:none!important}
:root body.studio-refresh .chat-studio[data-conversation=active]{height:auto!important;min-height:0!important;flex:none}
:root body.studio-refresh .chat-studio[data-conversation=active] .chat-layout,:root body.studio-refresh .chat-studio[data-conversation=active] .chat-main{min-height:0;flex:1}
:root body.studio-refresh .chat-studio,:root body.studio-refresh .chat-main,:root body.studio-refresh .chat-layout{border:0!important;outline:0!important;background:transparent!important}
:root body.studio-refresh .chat-thread{background:transparent!important;border:0!important}
:root body.studio-refresh #chat-ready-action{display:none!important}
.studio-review-brief{order:6;align-self:flex-end;border:1px solid var(--studio-line);border-radius:8px;background:var(--studio-raised);color:var(--studio-text);padding:8px 11px;font:600 11px 'DM Sans',sans-serif;cursor:pointer}.studio-review-brief[hidden]{display:none}
@media(max-width:600px){:root body.studio-refresh .main #chat-send{width:auto!important;margin-left:auto!important;min-height:36px!important}}

.dashboard-theme{display:flex;align-items:center;gap:6px;min-height:35px;padding:5px 8px;border:1px solid var(--studio-line);border-radius:8px;background:var(--studio-surface);color:var(--studio-text)}.dashboard-theme select{border:0;background:transparent;color:inherit;font:600 11px 'DM Sans',sans-serif;max-width:75px;min-height:23px;color-scheme:light}:root[data-theme=dark] .dashboard-theme select{color-scheme:dark}.dashboard-theme:focus-within{outline:2px solid var(--studio-accent);outline-offset:2px}@media(max-width:600px){.dashboard-theme{padding:4px 6px;gap:4px}.dashboard-theme select{max-width:64px}.studio-refresh .top-actions{flex-wrap:wrap}}

:root body.studio-refresh #creator-templates{background:var(--studio-surface)!important;border-color:var(--studio-line)!important;color:var(--studio-text)!important;padding:18px!important}:root body.studio-refresh #creator-templates .creator-template-head{display:block}:root body.studio-refresh #creator-templates .creator-template-head h2{font-size:24px!important;line-height:1.25!important;margin:10px 0;letter-spacing:-.03em;color:var(--studio-text)!important}:root body.studio-refresh #creator-templates .creator-template-head p{font-size:12px;color:var(--studio-muted)!important}:root body.studio-refresh #creator-templates .creator-template-filters{margin:12px 0}:root body.studio-refresh #creator-templates h3#template-group-heading{font-size:18px!important;color:var(--studio-text)!important}:root body.studio-refresh #creator-templates .creator-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}:root body.studio-refresh #creator-templates .creator-template-note{font-size:10px;color:var(--studio-muted)!important}@media(max-width:600px){:root body.studio-refresh #creator-templates .creator-template-grid{grid-template-columns:1fr}}
/* A visible native task control: full-row hit area, icon, chevron and keyboard focus. */
:root body.studio-refresh .task-picker-heading{grid-column:1/-1;display:flex;align-items:center;width:100%}
:root body.studio-refresh .task-picker-heading>label{font-size:12px!important;font-weight:700;color:var(--studio-text)}
:root body.studio-refresh #studio-guide-open{border:1px solid var(--studio-line);border-radius:6px;padding:3px 8px;min-height:28px;font-size:11px;color:var(--studio-muted)}
:root body.studio-refresh .task-select-control{grid-column:1/-1;position:relative;min-width:0;border-radius:10px}
:root body.studio-refresh #chat-marketing-task{appearance:none;background:var(--studio-raised)!important;border:1px solid var(--studio-line)!important;border-radius:10px;font-size:14px;padding:13px 44px 13px 44px!important;min-height:50px!important;cursor:pointer;transition:border-color .15s,box-shadow .15s}
:root body.studio-refresh #chat-marketing-task:hover{border-color:var(--studio-accent)!important}
:root body.studio-refresh #chat-marketing-task:focus-visible{outline:2px solid var(--studio-accent);outline-offset:3px;box-shadow:0 0 0 4px var(--studio-tint)}
:root body.studio-refresh #chat-marketing-task option{background:var(--studio-surface);color:var(--studio-text)}
.task-select-icon,.task-select-chevron{position:absolute;top:50%;transform:translateY(-50%);width:20px;height:20px;pointer-events:none}
.task-select-icon{left:14px;color:var(--studio-accent)}.task-select-chevron{right:14px;color:var(--studio-text)}
:root body.studio-refresh #marketing-task-hint{display:block;grid-column:1/-1;margin:0;padding:0 2px;font-size:11px;line-height:1.5;color:var(--studio-muted)}
:root body.studio-refresh .composer-toolbar :is(button,select,summary):focus-visible{outline:2px solid var(--studio-accent);outline-offset:3px}
@media(max-width:600px){:root body.studio-refresh #chat-marketing-task{font-size:13px}:root body.studio-refresh .marketing-task-bar{padding:12px!important}}

/* Compact voice input; status appears only while listening or after capture. */
:root body.studio-refresh .composer-toolbar #chat-voice{display:inline-flex;align-items:center;justify-content:center;width:35px!important;height:35px;min-height:35px;flex:0 0 35px!important;padding:0;gap:0;font-size:0!important;border:1px solid var(--studio-line)!important;border-radius:10px;background:var(--studio-raised)!important;color:var(--studio-muted)!important;box-shadow:none}
:root body.studio-refresh #chat-voice[aria-pressed=true]{background:var(--studio-tint)!important;color:var(--studio-accent)!important;border-color:var(--studio-accent)!important;animation:studio-mic-glow 1.8s ease-in-out infinite}
:root body.studio-refresh #chat-voice:disabled{opacity:.5;cursor:not-allowed}.studio-voice-status{margin:0 0 9px;font-size:11px;line-height:1.5;color:var(--studio-muted)}.studio-voice-status[hidden]{display:none}
@keyframes studio-mic-glow{50%{box-shadow:0 0 0 3px var(--studio-tint)}}
@media(prefers-reduced-motion:reduce){:root body.studio-refresh #chat-voice[aria-pressed=true]{animation:none}}

.generation-progress{text-align:center;padding:28px 12px 22px;background:var(--studio-raised);border:1px solid var(--studio-line);border-radius:12px;color:var(--studio-text)}
.generation-progress h3{font-size:17px;margin:20px 0 8px}.generation-progress-message{font-size:12px!important;color:var(--studio-muted)!important;line-height:1.5}
.generation-orb{position:relative;width:70px;height:70px;margin:0 auto;display:grid;place-items:center}.generation-orb span{width:34px;height:34px;border-radius:11px;background:var(--studio-tint);border:1px solid var(--studio-accent);transform:rotate(45deg)}.generation-orb i{position:absolute;inset:0;border:2px solid var(--studio-line);border-top-color:var(--studio-accent);border-radius:50%}
.generation-progress[data-active=true] .generation-orb i{animation:generation-spin 2s linear infinite}.generation-progress[data-active=true] .generation-orb span{animation:generation-breathe 2s ease-in-out infinite}
.generation-stages{display:flex;list-style:none;gap:8px;padding:0;margin:20px 0 14px;justify-content:center}.generation-stages li{font-size:10px;color:var(--studio-muted);border-bottom:2px solid var(--studio-line);padding:6px 3px}.generation-stages li[data-state=current]{color:var(--studio-accent);border-color:var(--studio-accent);font-weight:700}.generation-stages li[data-state=done]{color:var(--studio-text)}
.generation-activity{height:3px;background:var(--studio-line);border-radius:3px;overflow:hidden;margin:0 10px 12px}.generation-activity span{display:block;width:35%;height:100%;background:var(--studio-accent);animation:generation-travel 2s ease-in-out infinite}
.generation-elapsed{font-size:11px;color:var(--studio-muted);font-variant-numeric:tabular-nums}.generation-progress-note{font-size:11px!important;line-height:1.6;color:var(--studio-muted)!important;margin:12px 0 0}
@keyframes generation-spin{to{transform:rotate(360deg)}}@keyframes generation-breathe{50%{transform:rotate(45deg) scale(.85);opacity:.6}}@keyframes generation-travel{from{transform:translateX(-100%)}to{transform:translateX(390%)}}
@media(prefers-reduced-motion:reduce){.generation-progress[data-active=true] .generation-orb :is(i,span),.generation-activity span{animation:none}}

/* Sidebar hierarchy: primary navigation, a contained history, quiet account tools. */
@media(min-width:901px){
:root body.studio-refresh .sidebar{display:flex;flex-direction:column;gap:3px;padding:20px 12px 12px;overflow:hidden}
:root body.studio-refresh .sidebar .logo{margin:0 8px 10px;flex-shrink:0;gap:10px}:root body.studio-refresh .sidebar .brandmark{width:35px;height:35px}:root body.studio-refresh .sidebar .logo>div:last-child{font-size:11px;line-height:1.6;letter-spacing:.05em}
:root body.studio-refresh .sidebar-new-chat{margin:9px 0 6px;min-height:38px;box-shadow:none;border-radius:8px;padding:9px 12px;flex-shrink:0}
:root body.studio-refresh #sidebar-search-slot{margin:0 0 6px;flex-shrink:0}:root body.studio-refresh #sidebar-search-slot .search-box{background:var(--studio-raised);border:1px solid var(--studio-line);height:33px;border-radius:7px}:root body.studio-refresh #sidebar-search-slot input{font-size:11px;background:transparent;color:var(--studio-text)}
:root body.studio-refresh .sidebar>.sidebar-label{margin:12px 10px 5px;font-size:9px;letter-spacing:.1em;flex-shrink:0}
:root body.studio-refresh .sidebar .nav{display:flex;align-items:center;gap:10px;min-height:34px;padding:8px 10px;margin:0;font-size:12px;font-weight:500;border:0;border-radius:7px;background:transparent;color:var(--studio-muted)!important;flex-shrink:0;text-decoration:none}
:root body.studio-refresh .sidebar .nav.active{background:var(--studio-raised)!important;color:var(--studio-text)!important;font-weight:650;box-shadow:inset 2px 0 var(--studio-accent)}
:root body.studio-refresh .sidebar .nav:hover{background:var(--studio-raised)!important;color:var(--studio-text)!important}
:root body.studio-refresh .sidebar .nav svg{width:17px;height:17px;flex-shrink:0;opacity:.85}
:root body.studio-refresh .sidebar-recents{display:flex;flex-direction:column;flex:1 1 160px;min-height:55px;overflow:hidden;margin:13px 0 2px;border-top:1px solid var(--studio-line);padding-top:8px}
:root body.studio-refresh .sidebar-recents.is-collapsed{flex:0 0 auto;min-height:0}
:root body.studio-refresh .sidebar-project-list{overflow:auto;min-height:0;gap:2px;scrollbar-width:thin;padding-right:2px;scrollbar-color:var(--studio-line) transparent}
:root body.studio-refresh .sidebar-project{display:flex;align-items:center;gap:8px;min-height:32px;padding:7px 10px;font-size:11px;font-weight:400;color:var(--studio-muted)!important;line-height:1.4;border-radius:6px}
:root body.studio-refresh .sidebar-project:hover{background:var(--studio-raised)!important;color:var(--studio-text)!important}
.sidebar-project svg{width:14px;height:14px;flex-shrink:0;opacity:.65}.sidebar-project-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:root body.studio-refresh .sidebar-bottom{margin-top:10px;padding-top:8px;border-top:1px solid var(--studio-line);flex-shrink:0}:root body.studio-refresh .sidebar-bottom #logout{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border-radius:7px;min-height:34px;font-size:11px;font-weight:500;color:var(--studio-muted)!important;text-decoration:none}
:root body.studio-refresh .sidebar-bottom #logout:hover{background:var(--studio-raised);color:var(--studio-text)!important}
}
.sidebar-recents-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;background:transparent;border:0;padding:7px 10px;margin:0 0 5px;font:600 10px 'DM Sans',sans-serif;color:var(--studio-muted);text-align:left;cursor:pointer}.sidebar-recents-toggle svg{width:14px;height:14px;transition:transform .15s}.sidebar-recents-toggle[aria-expanded=false] svg{transform:rotate(-90deg)}
:root body.studio-refresh .sidebar :is(button,a,input):focus-visible{outline:2px solid var(--studio-accent);outline-offset:2px}
:root body.studio-refresh .sidebar :is(.nav,.sidebar-project,.sidebar-project-list)[hidden]{display:none!important}
@media(min-width:901px){:root body.studio-refresh .sidebar .logo{height:38px;min-height:0;padding:0;margin-bottom:8px}:root body.studio-refresh .sidebar .nav{min-height:32px;padding:7px 10px;line-height:16px}:root body.studio-refresh .sidebar>.sidebar-label{margin-top:8px}:root body.studio-refresh .sidebar-new-chat{margin-top:5px}:root body.studio-refresh .sidebar-bottom{padding-bottom:0}}

/* One approval: settings in view, then Generate. No confirmation dialog. */
:root body.studio-refresh #chat-ready-action{display:block!important;order:6;align-self:flex-end;border:0;border-radius:12px;padding:11px 16px;min-height:40px;background:var(--studio-accent);color:#171717;font:700 12px 'DM Sans',sans-serif;cursor:pointer;margin:4px 0 0}
:root body.studio-refresh #chat-ready-action[hidden]{display:none!important}:root body.studio-refresh #chat-ready-action:disabled{opacity:.5;cursor:not-allowed}
.chat-generate-settings{order:6;text-align:right;margin:0;font-size:11px;color:var(--studio-muted);line-height:1.5}.chat-generate-settings[hidden]{display:none}
/* Keep task, conversation and input in one continuous chat surface. */
:root body.studio-refresh .creative-business-context{order:1;margin-bottom:12px}
:root body.studio-refresh .marketing-task-bar{order:2;border-radius:16px 16px 0 0;padding-bottom:12px!important}
:root body.studio-refresh .chat-main{gap:0}
:root body.studio-refresh .chat-thread{order:3;flex:none;max-height:none!important;overflow:visible!important;margin:0!important;padding:16px 12px!important;background:var(--studio-surface)!important;border:1px solid var(--studio-line);border-top:0;border-bottom:0;border-radius:0}
:root body.studio-refresh .chat-form{order:4;margin:0!important;border-radius:0 0 16px 16px!important}
:root body.studio-refresh .studio-composer-note{margin-top:10px}
:root body.studio-refresh .studio-review-brief{margin-top:8px}
:root body.studio-refresh .chat-thread{height:auto!important;min-height:0!important}
:root body.studio-refresh .chat-thread{flex:0 0 auto!important}:root body.studio-refresh .chat-main{height:auto!important;flex:0 0 auto!important}

.studio-inline-guide{padding:16px;color:var(--studio-text)}.studio-inline-guide[hidden]{display:none}.studio-inline-guide h3{font-size:19px;letter-spacing:-.03em;margin:8px 0}.studio-inline-guide p,.studio-inline-guide li{font-size:12px;line-height:1.7;color:var(--studio-muted)}.studio-inline-guide strong{color:var(--studio-text)}.studio-inline-guide details{border:1px solid var(--studio-line);border-radius:12px;margin-top:10px;padding:0 12px;background:var(--studio-surface)}.studio-inline-guide summary{padding:13px 0;font-size:12px;font-weight:650;cursor:pointer}.studio-inline-guide ol{padding-left:18px}.studio-inline-guide li{margin:10px 0}.studio-guide-template-link{display:inline-block;padding:9px 12px;margin:4px 0 12px;border-radius:10px;background:var(--studio-tint);color:var(--studio-accent);font-size:12px;text-decoration:none}
