/* Shared action affordances. Keep geometry handles, the 3D eye and content cards intact. */
:root{--control-fill:#edf0e8;--control-hover:#e1e6da;--control-border:#aeb7a4;--control-ink:#252724;--control-focus:#43553b;--control-shadow:0 1px 2px #1820100d}
:is(.yw-workspace,.studio-app) :is(button,summary,.file-button,.upload){cursor:pointer;touch-action:manipulation}
:is(.yw-workspace,.studio-app) :is(button,summary,a,input,select,textarea):focus-visible{outline:2px solid var(--control-focus);outline-offset:3px}
:is(.yw-workspace,.studio-app) button:disabled{cursor:not-allowed}
:is(.yw-workspace,.studio-app) button:active:not(:disabled):not(.key-marker):not(.memory-port):not(.yw-nav-scrim){box-shadow:inset 0 2px 5px #17220f30}
:is(.yw-workspace,.studio-app) :is(.upload,.file-button):focus-within{outline:2px solid var(--control-focus);outline-offset:3px}
/* Expandable controls have their own surface and a directional indicator. */
:is(.yw-workspace,.studio-app) details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:10px 12px;border:1px solid var(--control-border);border-radius:9px;background:var(--control-fill);color:var(--control-ink);font-size:12px;line-height:1.5;letter-spacing:0;list-style:none;box-shadow:var(--control-shadow)}
:is(.yw-workspace,.studio-app) details>summary::-webkit-details-marker{display:none}
:is(.yw-workspace,.studio-app) details>summary::after{content:'';display:block;flex:none;width:7px;height:7px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:0 2px 3px 0;transition:transform .15s}
:is(.yw-workspace,.studio-app) details[open]>summary::after{transform:rotate(225deg);margin-top:5px}
:is(.yw-workspace,.studio-app) details>summary:hover{background:var(--control-hover);border-color:#78866d}
:is(.yw-workspace,.studio-app) details[open]>summary{background:#e2e8da;border-color:#8d9b80}
.studio-app .asset-presets summary>span{display:none}
/* Action links get the same outline and spacing as buttons, including dynamic results. */
.yw-workspace :is(.yw-header-actions>a,.add-row>a,.flow-links>a,.result-title>a,.result-actions>a,.works .empty a,.yw-director details a,:where(#help)>a,:where(#manage),.inspiration-actions>a:first-child,.project-actions>a,.actions>a,.yw-row>a,.discovery-heading>a),.studio-app #exportResult>a{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 13px;border:1px solid var(--control-border);border-radius:9px;background:var(--control-fill);color:var(--control-ink);box-shadow:var(--control-shadow);font-size:12px;line-height:1.5;text-decoration:none;cursor:pointer;touch-action:manipulation;
}
.yw-workspace :is(.yw-header-actions>a,.add-row>a,.flow-links>a,.result-title>a,.result-actions>a,.works .empty a,.yw-director details a,:where(#help)>a,:where(#manage),.inspiration-actions>a:first-child,.project-actions>a,.actions>a,.yw-row>a,.discovery-heading>a):hover,.studio-app #exportResult>a:hover{background:var(--control-hover);border-color:#78866d}
.yw-workspace .inspiration-actions{flex-wrap:wrap;align-items:center;gap:10px}
.yw-workspace .inspiration-actions>a:not(:first-child){text-decoration:underline;text-underline-offset:4px;min-height:36px;display:inline-flex;align-items:center}
.yw-workspace .flow-links{flex-wrap:wrap;gap:10px}
.yw-workspace .yw-header-actions{gap:8px}
.yw-workspace .yw-header-actions .icon-button{border:1px solid var(--control-border)!important;background:var(--control-fill)!important;border-radius:9px;min-width:42px;width:auto;min-height:42px;color:var(--control-ink);padding:8px 12px!important}
.yw-workspace .yw-header-actions #chatMore{font-size:12px!important;letter-spacing:0}
/* Account rows are large selection surfaces; retain their existing icons and chevrons. */
.yw-workspace .settings-list{padding:5px 10px}
.yw-workspace .settings-list>button{padding:12px 10px;border-radius:8px}
.yw-workspace .settings-list>button:hover{background:var(--control-hover)!important}
.yw-workspace .settings-list>button:active{background:#d3ddc9!important}
/* Canvas zoom controls previously had no visible boundary inside their container. */
.yw-workspace .canvas-studio .memory-zoom{gap:5px;padding:4px;border-color:var(--control-border)}
.yw-workspace .canvas-studio .memory-zoom button{border:1px solid var(--control-border);background:var(--control-fill);color:var(--control-ink);min-width:38px;min-height:38px;border-radius:7px;padding:4px;font-size:18px}
.yw-workspace .canvas-studio .canvas-tools button{border:1px solid #bbc2b3;box-shadow:var(--control-shadow)}
.yw-workspace .canvas-studio .canvas-tools button[aria-pressed=true]{border-color:#252724}
.yw-workspace .canvas-studio .canvas-tools button:disabled{border-color:#d4d9ce;box-shadow:none}
.yw-workspace .canvas-studio .memory-manage>summary{min-height:42px}
/* Studio tool buttons stay visible in their resting state. */
.studio-app .studio-toolbar{gap:10px;height:50px}
.studio-app .studio-toolbar .tool-group{gap:5px}
.studio-app .studio-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;border:1px solid var(--control-border);background:var(--control-fill);color:var(--control-ink);border-radius:8px;box-shadow:var(--control-shadow);font-size:12px}
.studio-app .studio-toolbar button[aria-pressed=true]{background:#252724;border-color:#252724;color:#fffefa}
.studio-app .studio-toolbar #aiOpen{background:#252724;border-color:#252724;color:#fffefa!important;font-weight:600;padding-inline:14px}
.control-icon{width:18px;height:18px;flex:none}
.studio-app .studio-toolbar button:hover:not([aria-pressed=true]):not(#aiOpen){background:var(--control-hover);border-color:#78866d}
.studio-app .studio-toolbar #aiOpen:hover{background:#414a3b}
.studio-app .workflow>button{border-color:#bac2b2;background:#fffefa;box-shadow:var(--control-shadow)}
.studio-app .workflow>button[aria-pressed=true]{background:#252724;border-color:#252724;color:#fffefa}
.studio-app .workflow .workflow-help{border-color:var(--control-border);background:var(--control-fill);min-height:40px}
.studio-app .object-row:not(.active){border-color:#c5ccbc;background:#fffefa}
.studio-app .object-row:hover:not(.active){border-color:#849374;background:#e4eadd}
.studio-app .object-row.active{border-color:#252724;background:#252724}
.studio-app :is(.header-actions,.inspector-panel,.assets-panel,dialog) button:not(.key-marker){min-height:38px}
.studio-app .dialog-title>button{min-width:40px;border:1px solid var(--control-border);background:var(--control-fill);border-radius:8px}
.studio-app .panel-bottom>button{min-height:32px;min-width:32px;width:32px;height:32px}
.studio-app .studio-layout{height:calc(100dvh - 180px)}
.studio-app .monitor-wrap select{border:1px solid #808779;border-radius:5px;padding:2px;min-height:25px}
/* Home controls only. Login keeps the previous optical-room appearance. */
.wing-portal-ui:where([data-state=home]){--entry-control-bg:#17211ee6;--entry-control-ink:#eff5e9;--entry-control-line:#6e827a}
.wing-portal-ui[data-state=home]{--entry-control-bg:#fffefae6;--entry-control-ink:#252724;--entry-control-line:#aeb7a4}
.wing-portal-ui:where([data-state=home]) .header-actions{gap:8px}
.wing-portal-ui:where([data-state=home]) .header-actions .quiet{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 11px;border:1px solid var(--entry-control-line);border-radius:9px;background:var(--entry-control-bg);color:var(--entry-control-ink);font-size:11px;letter-spacing:0;text-decoration:none;box-shadow:0 2px 6px #0001;touch-action:manipulation}
.wing-portal-ui:where([data-state=home]) .header-actions .quiet:hover{border-color:currentColor;box-shadow:0 2px 8px #0003}
.wing-portal-ui:where([data-state=home]) .login #show-password{top:50%;right:0;transform:translateY(-50%);min-height:34px;min-width:46px;padding:5px 8px;border:1px solid #768a7e;border-radius:6px;background:#172c27dd;color:#eef8f2;font-size:11px;touch-action:manipulation}
.wing-portal-ui:where([data-state=home]) .password-wrap input{padding-right:60px}
.wing-portal-ui:where([data-state=home]) #switch-auth{min-height:40px;width:100%;margin-top:12px;padding:9px 10px;border:1px solid #82988a;border-radius:7px;background:#183029b3;color:#edf7ef;line-height:1.5}
.wing-portal-ui:where([data-state=home]) .ring-control #enable-motion{min-height:40px;padding:8px 12px;border:1px solid #8c9882;border-radius:8px;background:#fffefa;color:#252724;text-decoration:none}
.wing-portal-ui:where([data-state=home]) #workspace-links>a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 10px;border:1px solid #aeb7a4;border-radius:8px;background:#fffefa;color:#252724;font-size:11px}
.wing-portal-ui:where([data-state=home]) .footer-right,.wing-portal-ui:where([data-state=home]) #music-credit{text-decoration:underline;text-underline-offset:4px}
.auth-page :is(.auth-switch button,.back-step){min-height:40px;border:1px solid #afb7a6;border-radius:8px;padding:8px 12px;background:#edf0e8;color:#252724}
/* Touch layouts: bigger targets, wrap before shrinking labels, and visible selected states. */
@media(max-width:820px){
 .yw-workspace .yw-header .yw-header-actions>a{display:none}
 .yw-workspace :is(.yw-return-home,.yw-header-actions .icon-button){min-height:44px}
 .yw-workspace .yw-header .yw-menu-toggle{min-height:44px}
 .yw-workspace :is(.result-actions,.flow-links,.add-row){gap:8px;flex-wrap:wrap}
 .yw-workspace :is(.result-actions>a,.flow-links>a,.add-row>a){min-height:44px}
 .yw-workspace .add-row>a{margin-left:0}
 .yw-workspace details>summary{min-height:44px}
 .yw-workspace .canvas-studio .memory-zoom button{min-height:44px;min-width:40px}
 .yw-workspace .canvas-studio .memory-toolbar :is(button,.file-button){min-height:44px}
 .yw-workspace .canvas-studio .workflow-actions button{min-height:44px}
 .yw-workspace .canvas-studio .canvas-tools button{min-width:42px;width:42px;min-height:44px}
 .yw-workspace .canvas-studio .canvas-tools small{font-size:10px}
 .yw-workspace .reference-card .remove,.yw-workspace .reference button{min-height:40px;min-width:40px}
 .yw-workspace :is(dialog .dialog-title,dialog .dialog-heading,dialog .detail-head)>button{min-width:44px;min-height:44px}
 .yw-workspace #send{min-width:44px;min-height:44px}
}
@media(max-width:760px){
 .studio-app .studio-header{height:calc(104px + env(safe-area-inset-top))}
 .studio-app .studio-header .header-actions button{min-height:40px}
 .studio-app .studio-toolbar{height:50px;gap:5px;padding:3px 6px}
 .studio-app .studio-toolbar button{min-height:44px;font-size:11px;padding:7px 8px;white-space:nowrap}
 .studio-app .studio-toolbar .tool-group:first-child{display:none}
 .studio-app .studio-toolbar #aiOpen{margin-left:auto;padding-inline:10px}
 .studio-app .studio-layout{height:calc(100dvh - 263px - env(safe-area-inset-top) - env(safe-area-inset-bottom));grid-template-rows:minmax(130px,1fr) 164px}
 .studio-app .transport :is(#play,#restart,#sequenceMode){min-height:44px;height:44px}
 .studio-app .transport #restart{min-width:36px}
 .studio-app #shotStrip button{min-height:40px;font-size:10px}
 .studio-app :is(.inspector-panel,.assets-panel,dialog) button:not(.key-marker){min-height:44px}
 .studio-app .mobile-tabs{gap:6px;padding-inline:8px;height:calc(52px + env(safe-area-inset-bottom))}
 .studio-app .mobile-tabs button{flex:1;min-height:44px;border:1px solid var(--control-border);border-radius:8px;background:#fffefa;color:#353c30;font-size:12px}
 .studio-app .mobile-tabs button[aria-pressed=true]{background:#252724;color:#fffefa;border-color:#252724}
 .studio-app .assets-panel,.studio-app .inspector-panel{bottom:calc(52px + env(safe-area-inset-bottom))}
 .studio-app .monitor-wrap{width:145px}
 .studio-app .monitor-heading,.studio-app .monitor-caption{min-height:34px;height:34px}
 .studio-app .monitor-wrap select{min-height:30px;font-size:10px}
 .studio-app .monitor-heading select{width:78px}
 .studio-app .monitor-caption select{width:56px}
 .studio-app .selection-dock button{min-height:44px}
 .wing-portal-ui:where([data-state=home]) .header-actions .quiet{min-height:44px;padding:7px 8px;font-size:10px}
 .wing-portal-ui:where([data-state=home]) #workspace-links{gap:5px;bottom:17px}
 .wing-portal-ui:where([data-state=home]) #workspace-links>a{min-height:44px;padding:7px 8px;font-size:10px}
 .wing-portal-ui:where([data-state=home]) .ring-control>button{min-height:44px;min-width:44px}
 .wing-portal-ui:where([data-state=home]) .login #show-password{min-height:42px;min-width:48px}
}
@media(prefers-reduced-motion:reduce){:is(.yw-workspace,.studio-app) details>summary::after{transition:none}}
@media(max-width:760px){
 .yw-workspace .canvas-studio .memory-manage{margin-left:auto}
 .yw-workspace .canvas-studio [data-status]{top:65px}
}
@media(max-width:380px){
 .yw-workspace .canvas-studio [data-status]{top:112px}
}
.wing-portal-ui:where([data-state=home]) :is(.cube-back,#orbit-reset,.prism-tabs button,.account-enter,.face-help a){min-height:40px;padding:8px 12px;border:1px solid #768b80;border-radius:8px;background:#172822e6;color:#e9f3eb;font-size:11px;line-height:1.5;letter-spacing:0;text-decoration:none;touch-action:manipulation}
.wing-portal-ui:where([data-state=home]) .cube-back{top:-48px}
.wing-portal-ui:where([data-state=home]):has(#origin.projection-open) #orbit-reset{margin-top:-12px}
.wing-portal-ui:where([data-state=home]) .prism-tabs{gap:8px}
.wing-portal-ui:where([data-state=home]) .prism-tabs button[aria-pressed=true]{background:#e4eddf;color:#253022;border-color:#e4eddf}
.wing-portal-ui:where([data-state=home]) .face-help a{display:inline-flex;align-items:center}
.wing-portal-ui:where([data-state=home]) .prism-face details>summary{min-height:44px;padding:10px 12px;border:1px solid #768b80;border-radius:8px;background:#172822e6;color:#e9f3eb}
@media(max-width:760px){.wing-portal-ui:where([data-state=home]) :is(.cube-back,#orbit-reset,.prism-tabs button,.account-enter){min-height:44px}}

@media(max-width:760px){.wing-portal-ui:where([data-state=home]) .header-actions .quiet{white-space:nowrap;flex-shrink:0}}
@media(max-width:380px){
 .wing-portal-ui:where([data-state=home]) header{padding-inline:14px;gap:8px}
 .wing-portal-ui:where([data-state=home]) .brand{gap:4px;font-size:15px;white-space:nowrap}
 .wing-portal-ui:where([data-state=home]) .brand img{width:30px}
 .wing-portal-ui:where([data-state=home]) .brand small{display:block;font-size:9px}
 .wing-portal-ui:where([data-state=home]) .header-actions{gap:5px}
 .wing-portal-ui:where([data-state=home]) .header-actions .quiet{padding-inline:7px}
}

/* Final control palette: deliberately scoped away from login and the optical model. */
:is(.yw-workspace,.studio-app){--control-fill:#f4f4f4;--control-hover:#e9e9e9;--control-border:#cdcdcd;--control-ink:#292929;--control-focus:#5c5c5c;--control-shadow:0 1px 2px #22222208}
.yw-workspace :is(button,.file-button,.upload){background:var(--control-fill);color:var(--control-ink);border-color:var(--control-border);font-weight:500;line-height:1.5}
.yw-workspace :is(button,.file-button,.upload):hover:not(:disabled){background:var(--control-hover);border-color:#a7a7a7;box-shadow:0 2px 6px #00000006}
.yw-workspace :is(button.primary,button[type=submit]){background:#2b2b2b;color:#ffffff;border-color:#2b2b2b}
.yw-workspace :is(button.primary,button[type=submit]):hover:not(:disabled){background:#444444;border-color:#444444;color:#ffffff}
.yw-workspace button:disabled{background:#e9e9e9;color:#7b7b7b;border-color:#dadada;box-shadow:none;opacity:1}
:is(.yw-workspace,.studio-app) button[aria-busy=true]{cursor:wait;display:inline-flex;align-items:center;justify-content:center;gap:8px}
:is(.yw-workspace,.studio-app) button[aria-busy=true]::before{content:'';width:12px;height:12px;flex:none;border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;animation:yw-control-spin .8s linear infinite}
@keyframes yw-control-spin{to{transform:rotate(360deg)}}
.yw-workspace :is(input:not([type=range]):not([type=checkbox]):not([type=radio]),textarea,select){color:#2b2b2b;background:#ffffff;border-color:#d4d4d4;box-sizing:border-box}
.yw-workspace :is(input,textarea)::placeholder{color:#828282;opacity:1}
.yw-workspace :is(button,.file-button,.upload):focus-visible,.yw-workspace :is(a,input,select,textarea):focus-visible{outline-color:var(--control-focus)}
:is(.yw-workspace,.studio-app) details>summary:hover{background:var(--control-hover);border-color:#aaaaaa}
:is(.yw-workspace,.studio-app) details[open]>summary{background:#e8e8e8;border-color:#b4b4b4}
.yw-workspace .yw-navigation>details>summary{padding:10px 14px;color:#c5c5c5;background:#303030;border-color:#4d4d4d;border-radius:8px;font-size:12px;min-height:40px;box-shadow:none}
.yw-workspace .yw-navigation>details>summary:hover{background:#3c3c3c}.yw-workspace .yw-navigation>details[open]>summary{background:#353535;border-color:#555555}
.yw-workspace .yw-header-actions>button,.yw-workspace .yw-header-actions>a{min-height:38px;background:#ffffff;border-color:#dedede;box-shadow:0 1px 2px #00000004;padding:8px 11px}
.yw-workspace .yw-header-actions>button:hover,.yw-workspace .yw-header-actions>a:hover,.yw-workspace .yw-return-home:hover{background:#ececec;border-color:#c3c3c3}
.yw-workspace .yw-header-actions .yw-search-toggle{background:#eeeeee;color:#6c6c6c}
.yw-workspace .yw-task-filters button{background:transparent;border-color:transparent;box-shadow:none}
.yw-workspace .yw-task-filters button[aria-pressed=true]{background:#ffffff;color:#252525;border-color:#d6d6d6;box-shadow:0 1px 4px #0000000b}
.yw-workspace .yw-task-toolbar>.yw-row button{font-size:12px;padding:8px 14px}.yw-workspace .yw-task-toolbar .yw-subtle{background:transparent}
.yw-workspace :is(.image-layout,.composer) .yw-field-label{display:flex;gap:9px;align-items:center;color:#363636;font-weight:550;font-size:13px;margin:23px 0 10px}
.yw-field-label>span{display:grid;place-items:center;border:1px solid #d4d4d4;border-radius:5px;width:21px;height:21px;font-size:10px;font-weight:500;color:#747474;flex:none}
.yw-field-label small{font-size:10px;color:#818181;font-weight:400;margin-left:3px}
.yw-workspace .composer-heading{padding-bottom:19px;margin-bottom:20px;border-bottom:1px solid #e4e4e4;align-items:center}
.yw-workspace .composer-heading h2{font-size:15px;font-weight:600}.yw-workspace .composer-heading select{max-width:58%;font-size:12px;min-height:40px}
.yw-workspace .reference-strip:empty{display:none}.yw-reference-help{margin:0 0 13px;font-size:12px;color:#727272;line-height:1.8}
.yw-workspace .reference-strip:not(:empty)+.yw-reference-help{display:none}
.yw-workspace .composer-heading+.yw-field-label{margin-top:0}
.yw-workspace .composer textarea{background:#f8f8f8;min-height:175px;padding:16px;margin-top:0;border:1px solid #d5d5d5;border-radius:10px;font-size:14px;line-height:1.9}
.yw-workspace .composer textarea:focus{border-color:#939393;box-shadow:0 0 0 3px #89898915;outline:0}
.yw-workspace .composer-footer{align-items:flex-end;padding-top:20px;gap:18px}
.yw-workspace .parameters{gap:12px}.yw-workspace .parameters label{display:flex;flex-direction:column;gap:7px;font-size:10px;line-height:1.5;color:#737373;min-width:0}.yw-workspace .parameters select{font-size:12px;max-width:none;min-width:82px}
.yw-workspace .parameters .mode-label{display:none}
.yw-workspace #generate{min-height:44px;padding:11px 23px;font-size:13px}
.yw-workspace .yw-submit-area{flex:none;text-align:right}.yw-submit-note{font-size:10px;color:#7d7d7d;line-height:1.6;margin:8px 0 0}
.yw-workspace .under-composer{margin-top:18px;margin-bottom:18px;align-items:center;gap:16px}.yw-workspace .under-composer span{font-size:11px;color:#767676}.yw-workspace .under-composer button{font-size:12px;background:#ffffff;border-color:#cacaca}
.yw-workspace :is(#status,#hub-status):not(:empty){font-size:13px;line-height:1.8;padding:14px 16px;border:1px solid #d6d6d6;border-radius:10px;background:#ededed;white-space:pre-wrap;overflow-wrap:anywhere}
.yw-workspace #hub-status[data-tone=error]{color:#8e432f;border-color:#c8c8c8;background:#efefef}
.yw-workspace .image-layout .panel{padding:24px;border-color:#dcdcdc}
.yw-workspace .mode-tabs{display:flex;padding:4px;gap:5px;background:#ebebeb;border:1px solid #dddddd;border-radius:11px}
.yw-workspace .mode-tabs button{flex:1;min-height:38px;border-color:transparent;background:transparent;font-size:12px}
.yw-workspace .mode-tabs button[aria-pressed=true]{background:#2b2b2b;color:#ffffff;border-color:#2b2b2b;box-shadow:0 1px 3px #00000008}
.yw-workspace .image-layout label{font-size:12px;color:#656565}.yw-workspace .image-layout textarea{background:#f8f8f8;min-height:155px;font-size:14px;line-height:1.9;padding:14px}
.yw-workspace .image-layout #connection{font-size:11px;line-height:1.8;color:#737373;background:transparent;padding:0}
.yw-workspace .image-layout .result-heading{padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid #e5e5e5}.yw-workspace .result-heading h2{font-size:15px;font-weight:550}.yw-workspace #resultLabel{font-size:10px;color:#828282}
.yw-workspace .result-panel .empty{min-height:370px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:radial-gradient(ellipse at 50% 35%,#fafafa,#efefef);border:1px dashed #d0d0d0;color:#737373}
.yw-preview-mark{width:70px;height:50px;border:1px solid #b1b1b1;border-radius:8px;position:relative;margin:0 0 16px;transform:rotate(-5deg)}
.yw-preview-mark::before{content:'';position:absolute;inset:6px -8px -7px 7px;border:1px solid #cccccc;border-radius:8px;transform:rotate(10deg)}
.yw-preview-mark::after{content:'';position:absolute;width:25px;height:25px;border:solid #bbbbbb;border-width:1px 0 0 1px;transform:rotate(45deg);left:22px;top:22px;background:transparent}
.yw-workspace .result-panel .empty h3{font-size:14px;font-weight:500;margin:8px 0 0}.yw-workspace .result-panel .empty p{font-size:11px;color:#838383;line-height:1.9;max-width:230px;margin:0;text-align:center}
.yw-workspace .privacy{color:#7f7f7f;line-height:1.8;font-size:10px}.yw-workspace .usage-note{margin-top:16px}
.yw-workspace .reference-card :is(.ref-label,.name){background:#ededed;color:#616161}.yw-workspace .reference-card{border-color:#d3d3d3}
:is(.yw-workspace,.studio-app) .yw-confirm-actions button{padding:10px 15px;min-height:42px;border-radius:8px;border:1px solid var(--control-border);background:var(--control-fill);color:var(--control-ink)}
:is(.yw-workspace,.studio-app) .yw-confirm-actions .yw-danger{background:#8a493c;border-color:#8a493c;color:#ffffff}
:is(.yw-workspace,.studio-app) .yw-command-bar button{background:#f4f4f4;color:#626262;border-color:#dbdbdb;box-shadow:none}
@media(max-width:820px){.yw-workspace .yw-header-actions>button{min-height:40px}.yw-workspace .yw-header-actions>a{display:none}.yw-workspace .yw-header .yw-menu-toggle{min-height:40px}.yw-workspace .image-layout .panel{padding:18px}.yw-workspace .image-layout textarea,.yw-workspace .composer textarea{font-size:16px}.yw-workspace .composer{padding:20px}.yw-workspace .composer-heading{gap:10px}.yw-workspace .composer-heading select{font-size:11px;max-width:58%;padding:8px;min-height:44px}.yw-workspace .composer-heading h2{font-size:14px}.yw-workspace .yw-command-bar input{font-size:16px}.yw-workspace .yw-command-help{font-size:10px}.yw-workspace .yw-task-search{font-size:16px}}
@media(max-width:600px){.yw-workspace .composer-footer{flex-direction:column;align-items:stretch}.yw-workspace .parameters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:8px}.yw-workspace .parameters select{width:100%;min-width:0;font-size:14px;min-height:44px}.yw-workspace .yw-submit-area{text-align:center}.yw-workspace #generate{width:100%;min-height:48px}.yw-workspace .yw-submit-note{margin-top:8px}.yw-workspace .under-composer{align-items:flex-start}.yw-workspace .under-composer span{max-width:130px;font-size:10px}.yw-workspace .add-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.yw-workspace .add-row :is(label,button){font-size:11px;padding:10px 8px;min-height:44px;justify-content:center}.yw-workspace .add-row>a{grid-column:1/-1;padding:10px;min-height:42px;box-sizing:border-box;margin:0;font-size:11px}.yw-workspace .yw-field-label{margin-top:22px}.yw-workspace .result-panel .empty{min-height:240px}.yw-workspace .composer{padding:18px}}
@media(prefers-reduced-motion:reduce){:is(.yw-workspace,.studio-app) button[aria-busy=true]::before{animation:none;border-style:dotted}}

.yw-workspace .yw-header .yw-return-home:hover{color:#252525}

@media(max-width:380px){.yw-workspace .canvas-studio .canvas-layer-toggle{top:120px}.yw-workspace .canvas-studio [data-status]{top:174px}}

/* Silver workspace material system. Scoped to authenticated workspaces; the
   optical login, media pixels and WebGL scene retain their own appearance. */
:is(body.yw-workspace,body.studio-app){
 --silver-ground:#e9e9e9;--silver-panel:#fcfcfc;--silver-soft:#f2f2f2;
 --silver-ink:#282828;--silver-muted:#6a6a6a;--silver-line:#d3d3d3;
 --silver-glass:linear-gradient(145deg,#fffffffa 0%,#f9f9f9f5 58%,#f2f2f2f7 100%);
 --silver-edge:inset 0 1px 0 #fff,inset 1px 0 0 #ffffffb3;
 --silver-shadow:0 18px 46px -28px #39393952,0 2px 6px #39393906;
 --bg:var(--silver-ground);--panel:var(--silver-panel);--text:var(--silver-ink);--muted:var(--silver-muted);--line:var(--silver-line);--accent:var(--silver-ink);
 --surface:var(--silver-panel);--paper:var(--silver-ground);--ink:var(--silver-ink);--quiet:var(--silver-muted);--rule:var(--silver-line);
 --yw-paper:var(--silver-ground);--yw-card:var(--silver-panel);--yw-ink:var(--silver-ink);--yw-muted:var(--silver-muted);--yw-line:var(--silver-line);
 --control-fill:var(--silver-soft);--control-hover:#e9e9e9;--control-border:var(--silver-line);--control-ink:var(--silver-ink);--control-focus:#646464;
 --control-shadow:inset 0 1px 0 #fff,0 2px 4px #3d3d3d0a;
 color-scheme:light;color:var(--silver-ink);
 background:radial-gradient(ellipse at 12% 8%,#e9e9e9 0,transparent 47%),linear-gradient(135deg,#ececec,#e7e7e7 62%,#ececec);
}
/* Stationary chrome uses a satin surface, with no full-screen blur layer. */
.yw-workspace>.yw-header,.studio-app .studio-header{
 background:linear-gradient(110deg,#f9f9f9f5,#f2f2f2f5);border-color:#ffffffd9;
 box-shadow:inset 0 -1px 0 #d3d3d370,0 2px 12px #3e3e3e06;
 backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}
.yw-workspace>.yw-navigation{
 background:radial-gradient(ellipse at 12% 0%,#e5e5e5b3,transparent 58%),linear-gradient(165deg,#f5f5f5,#ececec 52%,#f3f3f3);
 border-right:1px solid #ffffffe6;box-shadow:inset -1px 0 0 #d0d0d04d;
 color:var(--silver-ink);
}
.yw-workspace .yw-navigation .yw-nav-label{color:#737373}
.yw-workspace .yw-navigation a{color:#424242;border-radius:13px}
.yw-workspace .yw-navigation a:hover{background:#ffffffa6;color:#2a2a2a;border-color:#fff;box-shadow:var(--silver-edge)}
.yw-workspace .yw-navigation a[aria-current]{background:linear-gradient(145deg,#393939,#262626)!important;color:#fdfdfd!important;border-color:#414141;box-shadow:inset 0 1px 0 #ffffff24,0 5px 12px #38383822}
.yw-workspace .yw-navigation>.yw-nav-foot{border-color:#d6d6d6}
.yw-workspace .yw-navigation>details>summary{color:#4e4e4e;background:#ffffff63;border-color:#d1d1d1;box-shadow:var(--silver-edge);border-radius:11px}
.yw-workspace .yw-navigation>details>summary:hover,.yw-workspace .yw-navigation>details[open]>summary{background:#f8f8f8;border-color:#b8b8b8;color:#313131}
.yw-workspace .yw-header :is(.yw-return-home,.yw-header-actions>button,.yw-header-actions>a){background:linear-gradient(#fff,#f3f3f3);color:#434343;border-color:#d3d3d3;border-radius:12px;box-shadow:var(--control-shadow)}
.yw-workspace .yw-header :is(.yw-return-home,.yw-header-actions>button,.yw-header-actions>a):hover{background:#ececec;border-color:#b6b6b6;color:#2f2f2f}
.yw-workspace .yw-search-toggle kbd{background:#fafafa;border-color:#dddddd;color:#757575}
/* Shared containers: a bright rim, restrained depth, and neutral white body. */
.yw-workspace :is(.panel,.composer,.outline,.yw-card,.yw-list>article,.yw-task-card,.inspiration-card,.work-card,.support form,.support article,.balance-card,.settings-list,.profile-settings,.payment-box,.notice,.shot-card),
:is(.yw-workspace,.studio-app) :is(dialog,.yw-command,.yw-confirm){
 background:var(--silver-glass);color:var(--silver-ink);border-color:#fffffff2;
 box-shadow:var(--silver-edge),0 0 0 1px #c6c6c64d,var(--silver-shadow);border-radius:20px;
}
.yw-workspace .yw-card:hover,.yw-workspace .work-card:hover{border-color:#fff;box-shadow:var(--silver-edge),0 0 0 1px #b9b9b980,0 18px 38px -22px #39393959}
.yw-workspace .yw-card.primary-card{background:linear-gradient(145deg,#3f3f3f,#252525);border-color:#4f4f4f;color:#fcfcfc;box-shadow:inset 0 1px 0 #ffffff33,0 16px 34px -23px #25252599}
.yw-workspace .primary-card :is(p,.yw-card-top>span:last-child){color:#cecece}
.yw-workspace .yw-card-icon{background:linear-gradient(140deg,#fff,#efefef);border-color:#fff;box-shadow:var(--silver-edge),0 2px 6px #4848480a;color:#4e4e4e}
.yw-workspace .primary-card .yw-card-icon{background:#ffffff0b;border-color:#ffffff26;color:#f4f4f4;box-shadow:inset 0 1px 0 #ffffff12}
.yw-workspace :is(.yw-workflow-guide,.yw-brief,.video-wait,.task-recovery,.yw-empty,.result-panel .empty,.yw-task-filters,.mode-tabs){background:linear-gradient(130deg,#fbfbfb,#eeeeee);border-color:#d7d7d7;color:var(--silver-ink);box-shadow:var(--silver-edge)}
.yw-workspace :is(.yw-tool-grid>a,.yw-row input,.yw-list textarea,.yw-director textarea,.yw-director select){background:var(--silver-panel);color:var(--silver-ink);border-color:var(--silver-line)}
.yw-workspace .result-panel .empty{background:radial-gradient(ellipse at 50% 32%,#fff,#f2f2f2 70%);color:var(--silver-muted)}
.yw-workspace :is(.result-panel .empty p,.yw-task-meta,.yw-list .yw-task-prompt,.yw-empty,.yw-command-results small,.yw-command-help,.yw-page-heading>p:first-child){color:var(--silver-muted)}
/* Controls always have a visible edge. Selection stays distinct from hover. */
:is(.yw-workspace,.studio-app) :is(button,.file-button,.upload):not(.key-marker):not(.memory-port):not(.canvas-resize):not(.yw-nav-scrim){
 border-color:var(--control-border);color:var(--control-ink);background:linear-gradient(#fff,#f2f2f2);
 box-shadow:var(--control-shadow);border-radius:11px;
}
:is(.yw-workspace,.studio-app) :is(button,.file-button,.upload):hover:not(:disabled):not(.key-marker):not(.memory-port):not(.canvas-resize):not(.yw-nav-scrim){background:linear-gradient(#f9f9f9,#e9e9e9);border-color:#b8b8b8;color:#333333}
:is(.yw-workspace,.studio-app) :is(button,.file-button,.upload):active:not(:disabled):not(.key-marker):not(.memory-port):not(.canvas-resize):not(.yw-nav-scrim){background:#e9e9e9;box-shadow:inset 0 2px 4px #38383829}
:is(.yw-workspace,.studio-app) :is(button.primary,button[type=submit],button[aria-pressed=true],#aiOpen,.add-grid button[data-add=actor],.transport #play,#shotStrip button[aria-current=true]){
 background:linear-gradient(145deg,#3e3e3e,#262626)!important;color:#fcfcfc!important;border-color:#404040!important;box-shadow:inset 0 1px 0 #ffffff29,0 3px 8px #3131311a;
}
:is(.yw-workspace,.studio-app) :is(button.primary,button[type=submit],button[aria-pressed=true],#aiOpen,.add-grid button[data-add=actor],.transport #play):hover:not(:disabled){background:linear-gradient(145deg,#535353,#383838)!important}
:is(.yw-workspace,.studio-app) button:disabled:not(.key-marker):not(.memory-port):not(.canvas-resize){background:#eaeaea!important;color:#808080!important;border-color:#d4d4d4!important;box-shadow:none;opacity:1}
:is(.yw-workspace,.studio-app) :is(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea),.yw-workspace .studio-shell #prompt{
 background:#f6f6f6!important;color:var(--silver-ink)!important;border-color:#d0d0d0!important;box-shadow:inset 0 1px 3px #3b3b3b08;border-radius:11px;
}
:is(.yw-workspace,.studio-app) :is(input,textarea)::placeholder{color:#7a7a7a;opacity:1}
:is(.yw-workspace,.studio-app) :is(input,select,textarea):focus-visible{outline:2px solid #747474;outline-offset:2px}
.yw-workspace .composer textarea:focus{border-color:#969696!important;box-shadow:0 0 0 3px #8a8a8a1f}
:is(.yw-workspace,.studio-app) details>summary{background:linear-gradient(#fefefe,#f0f0f0);color:var(--silver-ink);border-color:var(--silver-line);box-shadow:var(--silver-edge)}
:is(.yw-workspace,.studio-app) details>summary:hover,:is(.yw-workspace,.studio-app) details[open]>summary{background:#ebebeb;border-color:#bababa;color:#404040}
.yw-workspace :is(.composer-heading,.result-heading,.composer-footer){border-color:#dfdfdf}
.yw-workspace :is(.yw-field-label,.image-layout label){color:#444444}
.yw-workspace :is(.yw-field-label>span,.yw-field-label small,.yw-reference-help,.parameters label,.yw-submit-note,.under-composer span,.privacy){color:#737373}
.yw-workspace .yw-field-label>span{background:#f3f3f3;border-color:#d8d8d8}
.yw-workspace .reference-card :is(.ref-label,.name){background:#f0f0f0;color:#555555}
.yw-workspace .reference-card{border-color:#dcdcdc;background:#f2f2f2}
.yw-workspace .reference-card button.remove{background:#363636;color:#fff;border-color:#fbfbfb99;box-shadow:0 2px 6px #27272740}
.yw-workspace :is(#status,#hub-status):not(:empty){background:#efefef;border-color:#d8d8d8;color:#4b4b4b}
.yw-workspace #hub-status[data-tone=error],.yw-workspace .yw-list .yw-task-error{background:#fbedea;color:#86473b;border-color:#e3bfb6}
.yw-workspace .yw-task-badge{background:#ececec;color:#606060}
.yw-workspace .yw-task-badge[data-state=succeeded]{background:#e1f0ea;color:#2f6152}
.yw-workspace .yw-task-badge[data-state=running],.yw-workspace .yw-task-badge[data-state=queued]{background:#e9e9e9;color:#555555}
.yw-workspace .yw-task-badge[data-state=failed],.yw-workspace .yw-task-badge[data-state=unknown]{background:#f7eadb;color:#77562c}
:is(.yw-workspace,.studio-app) :is(.yw-danger,.danger){color:#914d43!important}
:is(.yw-workspace,.studio-app) .yw-confirm-actions .yw-danger{background:#884b44!important;border-color:#884b44!important;color:#fff!important}
:is(.yw-workspace,.studio-app) dialog::backdrop{background:#2d2d2d52;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
:is(.yw-workspace,.studio-app) .yw-command-bar,:is(.yw-workspace,.studio-app) .yw-command-help{background:#f3f3f3;border-color:#dddddd}
:is(.yw-workspace,.studio-app) .yw-command-bar input{box-shadow:none;background:transparent!important}
:is(.yw-workspace,.studio-app) .yw-command-results a{color:#3a3a3a}
:is(.yw-workspace,.studio-app) .yw-command-results :is(a:hover,a:focus-visible,a[aria-current]){background:#ededed;border-color:#d6d6d6}
:is(.yw-workspace,.studio-app) .yw-feedback{background:linear-gradient(145deg,#434343,#2a2a2a);color:#fafafa;border-color:#777777}
:is(.yw-workspace,.studio-app) .yw-feedback button{color:#fafafa!important;background:transparent!important;border-color:#929292!important;box-shadow:none}
.yw-workspace .preference-row{color:var(--silver-ink)}
/* Canvas content remains black. Its tool surfaces share the workspace finish. */
.yw-workspace .canvas-studio :is(.canvas-tools,.canvas-inspector,.canvas-add-menu,.memory-generation,.memory-zoom,.canvas-layer-toggle,.memory-toolbar h1){background:var(--silver-glass);color:var(--silver-ink);border-color:#f5f5f5;box-shadow:var(--silver-edge),0 12px 32px #0003;backdrop-filter:none;-webkit-backdrop-filter:none}
.yw-workspace .canvas-studio .memory-toolbar :is(button,.file-button,summary){background:var(--silver-glass);color:var(--silver-ink);border-color:#dddddd;backdrop-filter:none;-webkit-backdrop-filter:none}
.yw-workspace .canvas-studio :is(.canvas-inspector label,.canvas-tools small,.canvas-shortcuts,.canvas-add-menu strong){color:var(--silver-muted)}
.yw-workspace .canvas-studio .canvas-layer.chosen{background:#e8e8e8;color:#353535;border-color:#bebebe}
.yw-workspace .canvas-studio .memory-card,.yw-workspace .canvas-studio .workflow-node{background:#f8f8f8;color:#373737;border-color:#d6d6d6}
.yw-workspace .canvas-studio :is(.node-heading,.node-title,.node-badge,.node-status,.node-row label,.node-config label){color:#666666}
.yw-workspace .canvas-studio .memory-card.selected{border-color:#b2b2b2;box-shadow:0 0 0 2px #d3d3d366,0 12px 32px #0005}
/* Studio panels change material, while the scene and camera preview stay neutral. */
.studio-app :is(.workflow,.timeline-panel,.mobile-tabs){background:linear-gradient(115deg,#f6f6f6,#ededed);border-color:#dcdcdc;box-shadow:var(--silver-edge)}
.studio-app :is(.assets-panel,.inspector-panel){background:var(--silver-glass);border-color:#fff;box-shadow:var(--silver-edge)}
.studio-app :is(.panel-heading,.assets-panel .panel-heading){background:#f3f3f3;color:#4f4f4f;border-color:#dcdcdc}
.studio-app .studio-toolbar{background:#ebebeb;border-color:#d9d9d9}
.studio-app :is(.object-guide,#emptySceneHint){background:#f3f3f3;color:#4f4f4f;border-color:#d8d8d8}
.studio-app .object-row:not(.active){background:#fdfdfd;border-color:#dbdbdb;color:#484848}
.studio-app .object-row:hover:not(.active){background:#efefef;border-color:#c2c2c2}
.studio-app .object-row.active{background:#393939;border-color:#696969;color:#fafafa}
.studio-app .object-row.active :is(small,.object-symbol){color:#dcdcdc}
.studio-app .workflow :is(b,small),.studio-app .workflow .workflow-help{color:#787878}
.studio-app .workflow button[aria-pressed=true] :is(b,small){color:#e1e1e1}
.studio-app .workflow button[aria-pressed=true] b{border-color:#a5a5a5}
.studio-app :is(.viewport-heading,#viewHint){color:#dadada}
.studio-app :is(.monitor-heading,.monitor-caption,.selection-dock){background:#313131ee;color:#f5f5f5;border-color:#757575}
.studio-app .monitor-wrap select{background:#464646!important;color:#f8f8f8!important;border-color:#818181!important}
.studio-app .selection-dock button{background:#4c4c4c;color:#f9f9f9;border-color:#8d8d8d}
.studio-app #toast{background:#3a3a3a;color:#fff;border-color:#8f8f8f}
@media(max-width:820px){
 .yw-workspace>.yw-header,.studio-app .studio-header{backdrop-filter:none;-webkit-backdrop-filter:none;background:linear-gradient(110deg,#f8f8f8,#f0f0f0)}
 .yw-workspace>.yw-navigation{box-shadow:-10px 0 36px #3a3a3a30}
 :is(.yw-workspace,.studio-app) :is(button,.file-button,.upload):not(.key-marker):not(.memory-port):not(.canvas-resize):not(.yw-nav-scrim){min-height:44px}
 :is(.yw-workspace,.studio-app) dialog::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}
 .yw-workspace .canvas-studio :is(.canvas-tools,.canvas-inspector){box-shadow:0 8px 22px #0003}
}

/* Entry controls are neutral too; the cinematic wall and eye keep their colors. */
body[data-state]:not([data-state=home]) :is(.quiet,#show-password){color:#d0d0d0;border-color:#71717166;-webkit-tap-highlight-color:transparent}
body[data-state] .footer-right{color:#929292}
body[data-state] :is(button,a,input):focus-visible{outline-color:#909090}

/* The card home uses text controls without permanent button surfaces. Keep
   hit targets and keyboard focus; the cards, login and optical scene are unchanged. */
body.wing-portal-ui[data-state=home] :is(.header-actions .quiet,#workspace-links>a,.ring-control>button,#enable-motion){
 background:none;border:0;border-radius:0;box-shadow:none;color:#262626;text-decoration:none;
 min-height:44px;transition:color 180ms,opacity 180ms,transform 180ms;
}
body.wing-portal-ui[data-state=home] :is(.header-actions .quiet,#workspace-links>a,.ring-control>button,#enable-motion):hover{
 background:none;border:0;box-shadow:none;color:#000;
}
body.wing-portal-ui[data-state=home] :is(.header-actions .quiet,#workspace-links>a,.ring-control>button,#enable-motion):active{
 background:none;box-shadow:none;opacity:.55;
}
body.wing-portal-ui[data-state=home] :is(.header-actions .quiet,#workspace-links>a,.ring-control>button,#enable-motion):focus-visible{
 outline:1px solid #737373;outline-offset:2px;
}
.generation-quote{color:var(--quote-muted,#5f5f5f);font-size:11px;line-height:1.45;font-weight:400;min-width:0;max-width:100%;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.generation-quote[data-quoted]{white-space:nowrap}
.generation-quote>strong{color:var(--quote-amount,#222);font-weight:650}
