.studio{padding:2rem 4%;max-width:1700px;margin:auto}.studio-heading{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1.7rem}.studio h1{font-size:clamp(2rem,4vw,3.5rem);margin:.4rem 0;line-height:1.1}.studio-heading>p{font-size:1rem}.studio-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:1.6rem}.viewer-panel{background:#e6e9e6;min-width:0;border:1px solid #cbd1cc}.viewer-label{padding:1.1rem 1.3rem;display:flex;justify-content:space-between;gap:1rem;font-size:1rem;flex-wrap:wrap}#viewport{height:clamp(360px,57vh,680px);position:relative;touch-action:none}#viewport canvas{display:block;width:100%;height:100%}#loading{position:absolute;inset:40% 0;text-align:center}#fallback{padding:1rem;height:100%}#fallback img{max-height:75%;width:100%;object-fit:contain}#fallback p{font-size:1rem}.view-controls{display:flex;gap:.4rem;flex-wrap:wrap;padding:0 1rem}.view-controls button,.stage-controls button,.color-options button{font:inherit;font-size:.9rem;border:1px solid #9daaa0;background:#fff;color:#20352b;padding:.65rem .75rem;cursor:pointer}.view-controls button:focus-visible,.studio-options button:focus-visible{outline:3px solid #087bea;outline-offset:2px}button[aria-pressed=true]{background:#20352b;color:white}.viewer-help,.viewer-note{padding:0 1.2rem;font-size:.9rem;line-height:1.5}.viewer-note{color:#4c5c53}.studio-options{background:#fff;border:1px solid #cbd1cc;padding:1.3rem;height:fit-content}.studio-options>label,.studio-options legend{font-size:1rem;font-weight:700}.studio-options select{width:100%;margin:.6rem 0;font:inherit;padding:.8rem;background:#fff;border:1px solid #a4b1a7}.studio-options fieldset{padding:0;border:0;border-top:1px solid #d9dfda;margin-top:1.5rem}.studio-options legend{padding:0 .4rem 0 0;margin-bottom:.7rem}.color-options{display:flex;flex-direction:column;gap:.5rem}.color-options button{display:flex;gap:.7rem;align-items:center}.color-options i{width:22px;height:22px;border:1px solid #89968c;border-radius:50%}.stage-controls{display:flex;flex-wrap:wrap;gap:.35rem}.studio-options .helper{font-size:.9rem;line-height:1.5}.feature{display:flex;gap:.65rem;align-items:center;margin:.8rem 0;font-size:1rem}.feature input{width:19px;height:19px;accent-color:#20352b}#unload-control{margin-top:1rem}#unload-control input{width:100%;accent-color:#20352b}#details-link{display:block;margin:1rem 0;font-size:1rem;text-decoration:underline}#quote-link{width:100%;text-align:center}#unload-status{font-size:.95rem}@media(max-width:900px){.studio-grid{grid-template-columns:1fr}.studio-heading{display:block}.studio{padding:1.5rem 4%}.studio-options{width:100%}.color-options{flex-direction:row;flex-wrap:wrap}.color-options button{flex:1;min-width:140px}#viewport{height:420px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

#reference-dialog,#layout-dialog{width:min(94%,1200px);max-height:90vh;padding:1.5rem;overflow:auto;border:0;background:#f7f8f4}#reference-dialog img,#layout-list img{width:100%;height:auto}#layout-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:1.5rem}.dialog-close{float:right;font:inherit;padding:.5rem 1rem;background:#fff;border:1px solid #a4b1a7}dialog::backdrop{background:#102319aa}#play-unload{padding:.6rem;font:inherit;background:white;border:1px solid #8e9f92}#detail-options [hidden]{display:none!important}
