/* Left-side creative tools; video stays central and timeline spans beneath both. */
.studio-stage-workarea{display:flex;min-width:0;min-height:0;overflow:hidden;position:relative}
.studio-stage-workarea>.studio-preview-card{flex:1;min-width:0}
.studio-tool-panel{display:flex;flex-direction:column;flex:0 0 clamp(248px,21vw,308px);width:clamp(248px,21vw,308px);min-height:0;background:#fffefa;border-right:1px solid var(--studio-line);color:var(--studio-ink)}
.studio-tool-panel[hidden],.studio-tool-panel [hidden]{display:none!important}
.studio-tool-heading{display:flex;align-items:center;justify-content:space-between;padding:17px 18px 13px;border-bottom:1px solid var(--studio-line);flex-shrink:0}
.studio-tool-heading small{font-size:8px;letter-spacing:.15em;color:#75796e;font-weight:600}.studio-tool-heading h2{font-size:17px;letter-spacing:-.5px;margin:3px 0 0;font-weight:600}
.studio-tool-scroll{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain}
.studio-tool-panel .studio-panel,.studio-tool-content{padding:16px;overflow:visible;min-height:0}
.studio-tool-content label{display:block;font-size:11px;font-weight:550;color:#4c5248;margin:14px 0 5px}.studio-tool-content input:not([type=checkbox]),.studio-tool-content select,.studio-tool-content textarea{width:100%;box-sizing:border-box;border:1px solid #dcded6;background:#fff;color:#20221f;border-radius:7px;padding:8px;font:inherit;font-size:12px}.studio-tool-content input[type=range]{padding:0;accent-color:#4967ff}.studio-tool-content textarea{resize:vertical;min-height:72px}.studio-tool-content .studio-full{margin-top:14px}
.studio-tool-footer{flex-shrink:0;border-top:1px solid var(--studio-line);padding:10px 16px;font-size:10px;line-height:1.5;color:#707469;background:#f8f8f3}
.studio-tool-note{font-size:11px;line-height:1.6;color:#666d61}.studio-tool-note[data-tone=attention]{background:#fff3dc;border:1px solid #edd7b4;padding:10px;border-radius:7px;color:#845b23}
.studio-tool-panel :focus-visible{outline:2px solid #4967ff;outline-offset:3px}.studio-tool-panel button:disabled{opacity:.45;cursor:not-allowed}
.studio-toolrail{gap:2px;padding:9px 0}.studio-rail-button{font-size:9px!important;width:56px;padding:7px 0;gap:2px}.studio-rail-button span{font-size:18px;line-height:21px}
.studio-tool-item{border:1px solid #e1e1da;border-radius:9px;padding:10px;margin:8px 0;background:#fff;display:flex;gap:8px;align-items:center}.studio-tool-item>div{min-width:0;flex:1}.studio-tool-item strong{display:block;font-size:12px}.studio-tool-item small{display:block;font-size:10px;color:#777d71;margin-top:3px}.studio-tool-item button{border:1px solid #dce0d6;background:#f8f9f4;border-radius:6px;padding:5px 8px;font-size:11px;color:#30362b}.studio-tool-item[data-selected=true]{border-color:#4967ff;background:#f2f4ff}
.studio-tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.studio-tool-choice{border:1px solid #deded7;background:#f8f8f5;border-radius:9px;padding:14px 6px;text-align:center;color:#30362b;font-size:11px}.studio-tool-choice[aria-pressed=true]{border-color:#4967ff;box-shadow:0 0 0 1px #4967ff;background:#eef1ff}.studio-tool-choice b{display:block;font-size:21px;margin-bottom:8px}.studio-tool-actions{display:flex;gap:7px;margin-top:10px}.studio-tool-actions>*{flex:1}.studio-tool-content h3{font-size:11px;margin:20px 0 7px}.studio-tool-preview{border-radius:9px;background:#20221f;color:#fff;min-height:100px;display:grid;place-items:center;white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;text-align:center;font-weight:700;position:relative}.studio-tool-preview small{position:absolute;left:8px;top:6px;font-size:8px;letter-spacing:.1em;color:#a5aba1;font-weight:400}
@media(max-height:800px){.studio-toolrail{gap:0;padding-top:4px}.studio-rail-button{padding:5px 0}.studio-tool-heading{padding:12px 16px 10px}}
@media(max-width:1100px) and (min-width:801px){.studio-tool-panel{flex-basis:228px;width:228px}.studio-tool-heading{padding:13px}.studio-tool-panel .studio-panel,.studio-tool-content{padding:12px}.studio-preview-body{padding:6px}}
@media(max-width:800px){.studio-stage-workarea{min-height:360px}.studio-tool-panel{position:absolute;z-index:14;top:0;bottom:0;left:0;width:min(300px,80vw);box-shadow:10px 0 30px #0002}.studio-toolrail{overflow:auto;max-height:100dvh}.studio-rail-button{flex-shrink:0}}
