#shorts-workspace { margin-top:clamp(28px,4vw,48px); min-width:0; color-scheme:dark }
#shorts-workspace [hidden] {display:none!important}
#sh-drop { display:grid; place-content:center; justify-items:center; text-align:center; gap:12px; min-height:clamp(245px,29vw,355px); border:1px dashed #55555c; border-radius:16px; background:#101011 }
#sh-drop p,#sh-status,#sh-preset-status,#sh-sub-name {color:#c3c3cd;line-height:1.5}
#shorts-workspace.sh-drag #sh-drop,#shorts-workspace.sh-drag .sh-screen {outline:2px solid var(--accent);outline-offset:-2px}
#sh-status:not(:empty),#sh-cancel,#sh-result {margin:1rem 0}
#sh-editor {display:grid; grid-template-columns:minmax(0,1.12fr) minmax(270px,.88fr);gap:clamp(18px,3vw,48px);align-items:start}
.sh-preview {position:sticky;top:80px;background:#111115;border:1px solid var(--line);border-radius:16px;padding:14px;min-width:0}
.sh-screen {background:#09090a;border-radius:9px;display:grid;place-items:center;overflow:hidden}
#sh-canvas {display:block;width:min(100%,34vh);height:auto;aspect-ratio:9/16;touch-action:none;cursor:grab;box-shadow:0 0 0 1px #53535c}
#sh-canvas:active {cursor:grabbing}
.sh-playbar,.sh-source,.sh-inline {display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.sh-playbar,.sh-source {margin-top:.75rem}
.sh-playbar input {flex:1 1 4rem;min-width:0}
.sh-playbar output {font-variant-numeric:tabular-nums;font-size:.86rem}
.sh-source {justify-content:space-between;color:#d0d0d6;overflow-wrap:anywhere}
#sh-controls {min-width:0;display:grid;gap:12px;padding:0;border:0}
.sh-section {display:grid;gap:.8rem;background:#121214;border:1px solid var(--line);border-radius:12px;padding:clamp(14px,2vw,24px)}
.sh-section h2 {font:650 1.1rem var(--heading);margin:0 0 .15rem}
.sh-section label {display:grid;position:relative;gap:.35rem;min-width:0;color:#dbdbe1;font:500 .91rem var(--body)}
.sh-section label output {position:absolute;top:0;right:0;font-variant-numeric:tabular-nums}
.sh-pair {display:grid;grid-template-columns:1fr 1fr;gap:.85rem}
.sh-section input[type=text],.sh-section select,.sh-section textarea {color:#fff;background:#1b1b20;border:1px solid #494951;padding:.55rem .65rem;border-radius:7px;width:100%;min-width:0;box-sizing:border-box;font:inherit}
.sh-section textarea {resize:vertical}
#shorts-workspace input[type=range] {width:100%;min-height:24px;accent-color:var(--accent)}
.sh-section input[type=color] {height:35px;width:100%;padding:3px;border:1px solid #55555b;border-radius:6px;background:#1b1b20}
#sh-preset-status:empty {display:none}
#sh-result video {width:auto;max-width:100%;max-height:55vh;display:block;margin:0 0 .7rem;background:#141416}
@media(max-width:740px){#sh-editor{grid-template-columns:1fr}.sh-preview{position:static}#sh-canvas{width:min(100%,30vh)}}
