/* Header bars consume measured rows, rather than covering the canvas on laptops. */
body.workspace-open .ws-top{position:absolute;inset:0 0 auto;min-height:65px;box-sizing:border-box;flex-wrap:wrap}
body.workspace-open .ws-rail{grid-row:2;grid-column:1;min-height:0}
body.workspace-open .ws-canvas{grid-row:2;grid-column:2;min-width:0;min-height:0}
body.workspace-open .ws-inspector{grid-row:2;grid-column:3;min-width:0;min-height:0;overscroll-behavior:contain}
body.workspace-open .ws-canvas .ss-art{min-height:0}
body.workspace-open .ws-canvas .ss-viewer{overflow:hidden}
body.workspace-open .ws-canvas .ss-pane{min-height:0;min-width:0}
body.workspace-open .ws-create-dock{flex-shrink:0;max-height:32dvh;scrollbar-gutter:stable}
body.workspace-open .ws-create-dock .ss-notes textarea{min-height:60px;max-height:90px;resize:vertical}
body.workspace-open .ws-create-dock .ss-notes{max-height:135px;overflow:auto}
body.workspace-open .ws-top .studio-theme-toggle{margin-left:0}
@media(min-width:1181px){
 body.workspace-open .ws-shell{grid-template-columns:72px minmax(0,1fr) 300px}
 body.workspace-open .ws-top{padding-right:115px;gap:8px}
 body.workspace-open .ws-top .ws-project{flex:1;min-width:130px}
 body.workspace-open .ws-top .ws-project input{max-width:140px;width:100%}
 body.workspace-open .ws-inspector{padding:14px}
 body.workspace-open .ws-canvas .ss-toolbar{flex-shrink:0}
 body.workspace-open .account-bar,body.workspace-open .generation-mode-bar{min-height:38px;flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;padding:4px 10px}
 body.workspace-open .account-bar>*,body.workspace-open .generation-mode-bar>*{flex-shrink:0}
 body.workspace-open .account-bar .cloud-status{width:auto;white-space:nowrap;margin-left:auto}
 body.workspace-open .account-bar button,body.workspace-open .account-bar a{min-height:30px;padding:5px 8px}
}
@media(min-width:601px) and (max-height:800px){
 .ws-top .ws-brand small,.ws-project #saved{display:none}
 .ws-top .ws-brand strong{font-size:14px}
 .ws-canvas .ss-toolbar{padding:5px;gap:5px}
 .ws-canvas .ss-toolbar button{padding:6px 8px}
 .ws-create-dock{padding:10px!important}
 .ws-create-dock .ss-go{gap:6px}
 .ws-create-dock #generate{min-height:40px;padding:9px}
 .ws-inspector-title{margin-bottom:12px}
 .ws-inspector .ss-drop{padding:16px 10px;min-height:0}
 .ws-inspector .ss-drop-icon{font-size:24px}
 .ws-inspector .ss-drop strong{font-size:16px}
 .ws-inspector .ss-drop small{font-size:11px}
 .ws-rail button{flex-shrink:0;min-height:48px;padding:7px 3px}
 .ws-rail button span{font-size:20px}
 .ws-rail button small{margin-top:3px}
 .ws-canvas .ss-empty strong{font-size:18px}
 .ws-canvas .ss-empty span{font-size:12px}
}
@media(max-width:1180px){body.workspace-open .ws-inspector{grid-column:auto}}
@media(max-width:600px){body.workspace-open .ws-rail{grid-row:3}body.workspace-open .ws-canvas{grid-column:1}body.workspace-open .ws-create-dock{max-height:34dvh}}
/* Keep Generate reachable while the optional description scrolls separately. */
body.workspace-open .ws-create-dock{display:flex!important;flex-direction:column;gap:5px}
body.workspace-open .ws-create-dock>.ws-notes-toggle{flex-shrink:0;align-self:flex-start;margin:0;min-height:28px}
body.workspace-open .ws-create-dock.notes-open .ss-notes{flex:1 1 auto;min-height:0;overflow:auto;margin:0;max-height:135px}
body.workspace-open .ws-create-dock .ss-go{flex-shrink:0}
@media(min-width:601px) and (max-height:800px){body.workspace-open .ws-create-dock.notes-open .ss-notes{max-height:76px}body.workspace-open .ws-create-dock .ss-notes textarea{min-height:55px}}
html[data-studio-theme=light] body.workspace-open .ws-inspector #drop-zone{background:#f3f5fb!important;border-color:#aebbd0!important}
html[data-studio-theme=light] body.workspace-open .ws-inspector #drop-zone :is(strong,span,small){color:#34425c!important}
@media(min-width:601px) and (max-height:800px){
 body.workspace-open .ws-canvas .ss-viewer{min-height:90px}
 .ws-canvas .ss-empty{display:flex;flex-wrap:wrap;align-content:center;align-items:center;justify-content:center;gap:5px;padding:28px 8px 8px}
 .ws-canvas .ss-empty strong{width:100%;font-size:14px;line-height:1.3}
 .ws-canvas .ss-empty>span{display:none}
 .ws-canvas .ss-empty>.ss-btn{font-size:12px;min-height:32px;padding:5px 10px;margin:0}
}
html[data-studio-theme=light] body.workspace-open .ws-inspector .ws-style-item .ss-style{background:#f3f5fb!important;color:#34425c!important}
html[data-studio-theme=light] body.workspace-open .ws-inspector .ws-style-item .ss-style :is(strong,span,small){color:#34425c!important}
/* Chromebook comfort: a reversible spacious canvas and discoverable keyboard help. */
.laptop-focus,.laptop-help{min-height:40px;padding:7px 10px;font:600 11px/1.3 system-ui;color:#e6ddff;background:#252337;border:1px solid #76638f;border-radius:9px;cursor:pointer;white-space:nowrap;flex-shrink:0}
.laptop-help-dialog{width:min(540px,92vw);box-sizing:border-box;max-height:85dvh;overflow:auto;padding:24px;background:#171b29;color:#edf0ff;border:1px solid #8870aa;border-radius:14px;font:14px/1.7 system-ui}
.laptop-help-dialog::backdrop{background:#050716aa}.laptop-help-dialog li{margin:12px 0}.laptop-help-dialog button{min-height:44px;padding:8px 14px;background:#7044c3;color:#fff;border:0;border-radius:8px;cursor:pointer}
body.workspace-open .canvas-focus .ws-inspector{display:none!important}
@media(min-width:1181px){body.workspace-open .ws-shell.canvas-focus{grid-template-columns:72px minmax(0,1fr)}}
body.workspace-open :is(.ws-inspector,.ws-rail,.account-bar,.generation-mode-bar){scrollbar-width:thin;scrollbar-color:#8c7db1 #171b29;scroll-padding:10px}
body.workspace-open :is(button,input,select,textarea,a,summary):focus-visible{outline:3px solid #b696ff;outline-offset:2px}
html[data-studio-theme=light] :is(.laptop-focus,.laptop-help){background:#eee8fb;color:#422777;border-color:#a899c1}
html[data-studio-theme=light] .laptop-help-dialog{background:#fff;color:#26344d}
@media(max-width:1180px){.laptop-focus{display:none}.laptop-help{font-size:10px}}
@media(max-width:600px){.laptop-help{display:none}}
