/* Canvas-safe layout on short laptops as well as tablets. */
body.workspace-open .ws-shell{grid-template-rows:var(--studio-header-height,65px) minmax(0,1fr);height:100dvh;min-height:0}
body.workspace-open .ws-canvas{display:flex;flex-direction:column;padding:10px!important;gap:8px;min-height:0}
body.workspace-open .ws-canvas .ss-art{flex:1;min-height:0;height:auto;overflow:auto}
body.workspace-open .ws-create-dock{position:static!important;inset:auto!important;flex-shrink:0;max-height:40dvh;overflow:auto;width:auto;box-sizing:border-box;margin:0!important}
body.workspace-open .ws-create-dock.notes-open .ss-notes{max-height:150px;overflow:auto}
body.workspace-open .ws-canvas .ss-viewer{min-height:140px;flex:1;margin:6px 0}
body.workspace-open .ws-canvas .ss-variations{max-height:112px;overflow:auto;flex-shrink:0}
body.workspace-open .ws-canvas .ss-quality{max-height:65px;overflow:auto;flex-shrink:0}
.ws-rail>[data-group]{display:none}.kid-mode .ws-rail>[data-panel]{display:none!important}.kid-mode .ws-rail>[data-group]{display:block;min-height:64px;font-size:13px}.kid-mode .ws-rail small{font-size:12px;line-height:1.3}.kid-mode .ws-rail{gap:6px;padding:9px 5px}.kid-mode .ws-rail [aria-pressed=true]{background:#7044c3;color:#fff}.kid-mode .ws-canvas:not(.unused){padding-bottom:10px!important}.kid-mode:not([data-step=ai]) .ws-create-dock{display:none!important}.kid-mode .ss-toolbar{display:none!important}.kid-guide{display:flex;align-items:center;gap:10px;flex-shrink:0;padding:10px 12px;background:#192237;border:1px solid #5c4a85;border-radius:12px}.kid-guide p{margin:0;color:#e9e5ff;font:13px/1.5 system-ui;flex:1}.kid-guide button,.kid-tools button,.kid-mode-toggle,.preflight-open{min-height:44px;border:1px solid #68558e;border-radius:9px;color:#fff;background:#5d3c9e;padding:8px 12px;font:12px system-ui;cursor:pointer}.kid-tools{display:flex;flex-wrap:wrap;gap:6px;position:sticky;top:0;background:#11141c;padding:8px 0;z-index:3}.kid-tools button{flex:1;min-width:90px}.kid-guide[hidden],.kid-tools[hidden]{display:none!important}.kid-mode-toggle{margin-left:auto;flex-shrink:0;white-space:nowrap}.kid-mode .ws-inspector .ss-help{font-size:12px;line-height:1.6}.kid-mode .ws-inspector button{min-height:44px}.el-pair-preview{display:flex;flex-direction:column;align-items:center;gap:9px}.el-pair-preview strong{white-space:normal!important;font-size:19px!important}.el-pair-preview small{font-size:16px;color:#fbbf24}.ws-top{gap:12px}.ws-top .ws-project{gap:8px}.ws-top .ws-project input{max-width:150px}.ws-top .ws-header-actions{gap:4px}.kid-mode .ws-top .ws-project{display:none}.kid-mode .ws-header-actions{margin-left:auto}.kid-mode .ws-header-actions button{min-height:40px}.kid-mode .ws-brand small{font-size:10px}.kid-mode .ws-inspector details summary{min-height:44px;cursor:pointer}
@media(max-width:1180px){body.workspace-open .ws-inspector{top:var(--studio-header-height,65px)}.ws-top{gap:6px}.kid-mode-toggle{margin-left:0}.kid-guide p{font-size:12px}.kid-guide{padding:7px}.ws-top .ws-brand small{display:none}.ws-top .ws-project-menu summary{min-height:40px}}
@media(max-width:600px){body.workspace-open .ws-shell{grid-template-rows:var(--studio-header-height,65px) minmax(0,1fr) calc(70px + env(safe-area-inset-bottom))}.kid-mode .ws-rail{justify-content:space-between;gap:0}.kid-mode .ws-rail>[data-group]{min-width:0;flex:1;min-height:62px;padding:4px 2px}.kid-mode .ws-rail small{font-size:10px}.kid-guide{flex-direction:column;align-items:stretch;gap:4px}.kid-guide button{min-height:36px}.kid-mode-toggle{font-size:10px;padding:7px;min-height:40px}.preflight-open{font-size:10px;padding:7px;min-height:40px}.ws-top .ws-brand strong{font-size:11px}.kid-mode .ws-top .ws-inspector-toggle{font-size:10px;padding:7px;min-height:40px}.kid-mode .ws-top{padding-right:82px}.kid-mode .ws-top .ws-project-menu{display:none!important}body.workspace-open .ws-create-dock{max-height:34dvh}.kid-mode .ws-inspector{bottom:calc(70px + env(safe-area-inset-bottom))}}
@media(max-height:720px) and (min-width:601px){.kid-guide{padding:6px 9px}.kid-guide p{font-size:12px}.ws-top .ws-brand small{display:none}.ws-top{padding-top:6px;padding-bottom:6px}.ws-canvas .ds-caption{margin:2px 0 5px}.kid-mode .ws-rail>[data-group]{min-height:54px}.ws-canvas .ss-empty strong{font-size:18px}.ws-canvas .ss-empty span{font-size:12px}.ws-canvas .ss-quality{display:none}.ws-canvas .ss-variations{max-height:85px!important}}
@media(prefers-reduced-motion:reduce){.kid-mode *{scroll-behavior:auto!important}}
.preflight-dialog{box-sizing:border-box;width:min(740px,94vw);max-height:88dvh;overflow:auto;background:#142035;color:#edf3ff;border:1px solid #a288d4;border-radius:18px;padding:24px;font:14px/1.6 system-ui}.preflight-dialog::backdrop{background:#020510cc}.preflight-dialog button,.preflight-dialog select{min-height:44px;padding:10px 14px;border:1px solid #77619e;border-radius:8px;background:#303459;color:#fff;font-size:14px;cursor:pointer;margin:6px 6px 6px 0}.preflight-dialog label{display:block}.preflight-close{float:right}.preflight-dialog li{margin:12px 0;padding:10px;border:1px solid #53617d;border-radius:8px;list-style:none}.preflight-dialog ul{padding:0}.preflight-dialog li[data-state=warning]{border-color:#e8b46f;background:#493927}.preflight-dialog #pf-summary{font-size:18px;font-weight:700}.preflight-dialog #pf-fix-help,.preflight-dialog #pf-composition{color:#c1cce4;font-size:12px}.preflight-dialog button:focus-visible,.kid-mode button:focus-visible{outline:3px solid #d0baff;outline-offset:3px}
body.workspace-open .ws-canvas .ss-canvas.fit{overflow:hidden;min-height:0}body.workspace-open .ws-canvas .ss-canvas.fit img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;min-width:0;min-height:0;align-self:stretch}.kid-mode .ws-rail button:focus-visible{outline:3px solid #d0baff;outline-offset:-3px}.kid-mode .ws-top .ws-header-actions{position:static}
body.workspace-open .ws-shell{grid-template-rows:var(--studio-header-height,65px) minmax(0,1fr)!important}
@media(max-width:600px){body.workspace-open .ws-shell{grid-template-rows:var(--studio-header-height,65px) minmax(0,1fr) calc(70px + env(safe-area-inset-bottom))!important}}
.ds-panel select[hidden]{display:none!important}

/* Upload, drawing and illustration upgrades share one Create step. */
.kid-mode[data-step=create][data-create-stage=upgrade] .ws-create-dock{display:flex!important}
