.workspace-shell .toon-reels { margin:20px 0; border:1px solid var(--workspace-line); border-radius:12px; background:var(--workspace-bg); overflow:hidden; }
.workspace-shell .toon-reels > summary { padding:16px; display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; list-style:none; }
.workspace-shell .toon-reels > summary::after { content:'＋'; color:var(--workspace-lime); }
.workspace-shell .toon-reels[open] > summary::after { content:'−'; }
.workspace-shell .toon-reels > summary strong { font-size:14px; }
.workspace-shell .toon-reels > summary small { margin-left:auto; font-size:11px; color:var(--workspace-muted); }
.workspace-shell .toon-reels > summary:focus-visible { outline:2px solid var(--workspace-lime); outline-offset:-3px; }
.workspace-shell #reel-body { padding:0 16px 16px; border-top:1px solid var(--workspace-line); }
.workspace-shell .reel-intro,.workspace-shell .reel-preview-note,.workspace-shell .reel-availability { font-size:12px; color:var(--workspace-muted); line-height:1.75; margin:14px 0; }
.workspace-shell .reel-toolbar { display:flex; gap:10px; align-items:center; justify-content:space-between; margin:16px 0; }
.workspace-shell .reel-toolbar > div { display:flex; flex-direction:column; gap:4px; }
.workspace-shell #reel-total { font-size:14px; color:var(--workspace-lime); }
.workspace-shell .reel-settings-state { color:var(--workspace-muted); font-size:11px; }
.workspace-shell .reel-toolbar .button { font-size:12px; padding:8px 10px; min-height:40px; }
.workspace-shell .reel-rows { display:grid; gap:8px; }
.workspace-shell .reel-panel-row { display:grid; grid-template-columns:48px minmax(64px,.65fr) minmax(100px,1.4fr) minmax(90px,1fr); align-items:end; gap:8px; padding:10px; border:1px solid var(--workspace-line); border-radius:9px; min-width:0; }
.workspace-shell .reel-panel-number { align-self:center; font-size:12px; }
.workspace-shell .reel-panel-row label { display:flex; flex-direction:column; gap:5px; min-width:0; }
.workspace-shell .reel-panel-row label > span { color:var(--workspace-muted); font-size:10px; }
.workspace-shell .reel-panel-row select.text-input { font-size:12px; width:100%; min-width:0; padding:8px 6px; min-height:38px; margin:0; }
.workspace-shell .reel-preview-area { display:grid; grid-template-columns:minmax(100px,165px) minmax(0,1fr); gap:16px; align-items:center; margin:20px 0; }
.workspace-shell .reel-preview { aspect-ratio:9/16; position:relative; background:#08090c; border:1px solid var(--workspace-line); border-radius:8px; overflow:hidden; display:grid; place-items:center; }
.workspace-shell #reel-image { display:block; width:100%; height:100%; object-fit:contain; }
.workspace-shell #reel-image:not([src]) { visibility:hidden; }
.workspace-shell .reel-frame-counter { position:absolute; z-index:1; top:6px; right:6px; padding:3px 7px; border-radius:20px; font-size:10px; color:#fff; background:#000a; }
.workspace-shell .reel-preview-controls { min-width:0; }
.workspace-shell .reel-preview-controls .button { width:100%; font-size:12px; min-height:42px; padding:9px; }
.workspace-shell .reel-volume { display:grid; grid-template-columns:1fr auto; align-items:center; gap:8px; font-size:12px; color:var(--workspace-muted); margin-top:18px; }
.workspace-shell .reel-volume input { grid-row:2; width:100%; min-width:0; accent-color:var(--workspace-lime); }
.workspace-shell .reel-volume output { grid-column:2; grid-row:2; font-size:11px; }
.workspace-shell .reel-preview-note { font-size:11px; }
.workspace-shell .reel-actions { display:flex; flex-wrap:wrap; gap:8px; }
.workspace-shell .reel-actions .button { font-size:12px; padding:10px 14px; min-height:44px; white-space:normal; }
.workspace-shell .toon-reels .error,.workspace-shell #reel-total.error { color:#ffb4a8; }
.workspace-shell .toon-reels .inline-message { margin:12px 0 0; }
.workspace-shell .reel-preview[data-playing=true] #reel-image { animation-duration:var(--reel-duration,4s); animation-fill-mode:both; animation-timing-function:linear; }
.workspace-shell .reel-preview[data-playing=true][data-effect=zoom-in] #reel-image { animation-name:reel-zoom-in; }
.workspace-shell .reel-preview[data-playing=true][data-effect=zoom-out] #reel-image { animation-name:reel-zoom-out; }
.workspace-shell .reel-preview[data-playing=true][data-effect=pan-left] #reel-image { animation-name:reel-pan-left; }
.workspace-shell .reel-preview[data-playing=true][data-effect=shake] #reel-image { animation-name:reel-shake; }
@keyframes reel-zoom-in { from{transform:scale(1)}to{transform:scale(1.08)} }
@keyframes reel-zoom-out { from{transform:scale(1.08)}to{transform:scale(1)} }
@keyframes reel-pan-left { from{transform:translateX(2%) scale(1.04)}to{transform:translateX(-2%) scale(1.04)} }
@keyframes reel-shake { 0%,100%{transform:translateX(0)}10%,30%,50%,70%,90%{transform:translateX(-.7%)}20%,40%,60%,80%{transform:translateX(.7%)} }
@media(max-width:580px){
 .workspace-shell #reel-body { padding:0 12px 12px; }
 .workspace-shell .reel-toolbar { flex-wrap:wrap; }
 .workspace-shell .reel-panel-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .workspace-shell .reel-panel-number { grid-column:1/-1; }
 .workspace-shell .reel-panel-row label:last-child { grid-column:1/-1; }
 .workspace-shell .reel-panel-row select.text-input { font-size:16px; min-height:44px; }
 .workspace-shell .reel-preview-area { grid-template-columns:minmax(80px,110px) minmax(0,1fr); gap:10px; }
 .workspace-shell .reel-actions .button { width:100%; }
}
@media(prefers-reduced-motion:reduce){.workspace-shell .reel-preview[data-playing=true] #reel-image{animation:none;}}
