/* October 21: convenience, readability and workspace space. Scoped to studio. */
.studio-polished{width:min(1920px,100%);}
.studio-polished .studio-layout{min-height:640px;height:calc(100dvh - 230px);max-height:1200px;}
.studio-commandbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 12px;background:#fff;border-bottom:1px solid var(--s-border);}
.studio-commandbar .studio-button{padding:7px 11px;min-height:38px;font-size:12px;}
.studio-commandbar #studio-find{margin-right:auto;min-width:155px;text-align:left;justify-content:flex-start;background:#f0f5f1;}
.studio-workspace-expanded{position:fixed!important;inset:0!important;margin:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;z-index:5000;display:flex;flex-direction:column;overflow:hidden;}
.studio-workspace-expanded .studio-layout{flex:1;min-height:0;height:auto;max-height:none;}
.studio-workspace-expanded .studio-top{padding-block:10px;}
.studio-tools-hidden .studio-sidebar{display:none!important;}
.studio-tools-hidden .studio-layout{grid-template-columns:minmax(0,1fr)!important;}
.studio-finder .studio-search{margin:0 0 10px;}
.studio-finder>select{min-height:42px;border:1px solid var(--s-border);background:white;padding:8px;border-radius:6px;}
.studio-find-results{max-height:52dvh;overflow:auto;overscroll-behavior:contain;display:grid;gap:7px;}
.studio-found-object{display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:1px solid var(--s-border);background:#f8faf7;color:var(--s-ink);padding:12px;min-height:60px;}
.studio-found-object:hover{border-color:#567a60;background:#ecf3eb;}
.studio-found-object small{color:var(--s-muted);font-size:12px;}
.studio-finder-card{display:flex;flex-direction:column;border:1px solid var(--s-border);border-radius:8px;overflow:hidden;}
.studio-finder-card .studio-tile{width:100%;border:0;border-radius:0;flex:1;}
.studio-favorite{font-size:12px!important;padding:8px;background:#f3f6f1;color:#365242;border:0;border-top:1px solid var(--s-border);min-height:40px;}
.studio-favorite[aria-pressed=true]{background:#244d3b;color:#fff;}
.studio-finder .studio-tool-row [aria-pressed=true]{background:#244d3b;color:#fff;}
.studio-quick-actions{display:flex;gap:5px;flex-wrap:wrap;margin:10px 0;}
.studio-quick-actions .studio-button{min-height:40px;font-size:12px;padding:7px 10px;flex:1;}
.studio-nudge{display:grid;grid-template-columns:repeat(2,1fr);gap:5px;margin-block:10px;}
.studio-position-details select{min-height:42px;border:1px solid var(--s-border);background:#fff;color:var(--s-ink);padding:8px;width:100%;border-radius:6px;}
.studio-ruler{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:5;}
.studio-ruler-note{position:absolute;top:55px;left:12px;display:flex;align-items:center;gap:10px;max-width:calc(100% - 68px);background:#fff;padding:5px 8px;border-radius:8px;box-shadow:0 2px 9px #183b3225;z-index:6;font-size:13px;}
.studio-ruler-note .studio-button{min-height:34px;font-size:11px;padding:5px 8px;}
.preview-quality-note{font-size:12px;color:var(--s-muted);padding:9px 12px;background:#eff5ed;border-radius:8px;margin-bottom:12px;}
.dream-preview-meta{padding:10px;background:#eff5ed;border-radius:7px;font-size:12px;}
.dream-error-details{padding:12px;border-left:3px solid #b33a2c;background:#fff4f0;color:#703126;overflow-wrap:anywhere;}
@media(min-width:761px){.studio-polished .studio-panel h2{font-size:21px;}.studio-polished .studio-panel p{font-size:13px;}.studio-polished .studio-tile strong{font-size:12px;}.studio-polished .studio-tile small{font-size:11px;}}
@media(max-width:760px){
 .studio-polished .studio-layout{height:auto;min-height:0;max-height:none;}.studio-polished .studio-viewport{height:clamp(320px,55dvh,650px);}
 .studio-commandbar{padding:7px 9px;gap:5px;}.studio-commandbar .studio-button{font-size:11px;padding:6px 8px;min-height:40px;}
 .studio-commandbar #studio-find{min-width:135px;}.studio-workspace-expanded{overflow:auto;}.studio-workspace-expanded .studio-layout{flex:none;min-height:0;overflow:visible;}
 .studio-find-results{max-height:50dvh;}.studio-finder select{font-size:16px;}.studio-quick-actions{position:sticky;top:0;background:#fff;padding:5px 0;z-index:2;}
 .studio-workspace-expanded .dream-steps{position:static;}.studio-workspace-expanded .studio-tabs{top:0;}
}

@media(min-width:761px){.studio-polished .studio-layout{grid-template-columns:clamp(280px,22vw,330px) minmax(0,1fr);}}
@media(max-width:760px){.studio-commandbar{display:grid;grid-template-columns:1.25fr 1fr 1fr 1.2fr;}.studio-commandbar #studio-find{min-width:0;width:100%;}.studio-commandbar .studio-button{white-space:normal;line-height:1.2;min-width:0;padding:5px;}}
