.composer {width:min(78rem,94%);margin:clamp(20px,4vw,48px) auto}
.back {font-size:.92rem}.composer-title {display:flex;align-items:end;justify-content:space-between;gap:12px;margin:1.4rem 0 1.5rem}
.composer-title p {margin:0 0 .4rem;color:var(--purple);font-weight:700}
.composer-title h1 {margin:0;font-size:clamp(2rem,4.7vw,3.8rem)}.composer-title>strong {white-space:nowrap;font-size:1.25rem}
.workbench {display:grid;grid-template-columns:minmax(0,1.3fr) minmax(295px,.85fr);gap:clamp(16px,3vw,40px);align-items:start}
.canvas-card,.controls {border-radius:18px;border:1px solid var(--rule);background:#fff;overflow:hidden}
.canvas-card {position:sticky;top:.7rem}.stage-head,.stage-actions {display:flex;justify-content:space-between;align-items:center;gap:8px 14px;flex-wrap:wrap;padding:12px 18px}
.stage-head>span {font-weight:750}.stage-head label {display:flex;align-items:center;gap:7px;font-size:.88rem;color:var(--muted)}
.stage-head input {width:17px;height:17px;accent-color:var(--purple)}.stage {display:grid;place-items:center;background:#f1edef}
#surface {width:100%;max-height:min(65vh,690px);aspect-ratio:1;object-fit:contain;display:block;touch-action:none;cursor:grab}
#surface:active {cursor:grabbing}.gesture,.hint {font-size:.88rem;color:var(--muted)}
.gesture {margin:12px 18px 0}.stage-actions {justify-content:start;padding-top:8px}.stage-actions a {margin-left:auto;font-size:.9rem}
.controls {padding:clamp(16px,2.4vw,30px)}.controls h2 {margin:0 0 1rem}
.add-tools,.layer-actions {display:flex;gap:.45rem;flex-wrap:wrap}.add-tools>* {flex:1}
.file-button {display:flex;align-items:center;justify-content:center;text-align:center;padding:.65rem .9rem;border:1px solid #aa96be;border-radius:8px;cursor:pointer;background:#f6eeff}
.file-button input {position:absolute;width:1px;height:1px;opacity:0}.file-button:focus-within {outline:3px solid var(--purple)}
.controls label {margin:.65rem 0}.controls #properties {margin-top:12px;border-top:1px solid var(--rule)}
.controls textarea {min-height:4rem}.controls input[type=color] {height:47px;padding:.3rem}
.controls input[type=range] {width:100%;padding:0;accent-color:var(--purple)}
.controls output {color:var(--muted);font-size:.9rem;grid-column:2}.controls label:has(output) {grid-template-columns:auto 1fr}.controls label:has(output) input {grid-column:1/-1}
.controls button,.stage-actions button {line-height:1.2}.layer-actions button,.stage-actions button {font-size:.9rem;padding:.45rem .7rem}
button:disabled {opacity:.46;cursor:default}.checkout-tools {margin-top:1.1rem;border-top:1px solid var(--rule)}
.save-design {width:100%;text-align:center}.hint {margin:.35rem 0 .9rem}#studio-status:empty {display:none}#studio-status {color:#582959}
@media(max-width:730px){.workbench{grid-template-columns:1fr}.canvas-card{position:static}#surface{max-height:54svh}.stage-head,.stage-actions{padding:10px 12px}.gesture{margin:8px 12px 0}.composer-title{align-items:center}.controls{margin-bottom:20px}}
.add-tools {align-items:stretch}.controls .file-button {margin:0}
@media(max-width:730px) and (min-height:560px){
  .workbench {display:block}
  .canvas-card {position:sticky;top:0;z-index:2;box-shadow:0 6px 16px #39284712}
  #surface {max-height:34svh}
  .gesture {display:none}
  .controls {margin-top:16px}
  .controls :is(input,textarea,select,button) {scroll-margin-top:calc(34svh + 8rem)}
}
