.workspace{grid-template-columns:var(--left-width,320px) minmax(300px,1fr) 292px}.left-panel{position:relative;min-height:0}.panel-resize-grip{position:absolute;right:-4px;top:0;bottom:0;width:8px;cursor:col-resize;z-index:15;touch-action:none}.panel-resize-grip:hover{background:#8c75ff66}.media-item[data-media-id]{position:relative;grid-template-columns:minmax(50px,var(--thumb-size,100px)) minmax(0,1fr);gap:6px}.media-item[data-media-id] img{width:100%;height:auto;aspect-ratio:5/3}.media-item[data-media-id] button{grid-column:2}.media-badges{position:absolute;left:8px;top:7px;background:#19152ccc;border-radius:4px;color:#d8ceff;font-size:10px;padding:2px 4px}.media-badges:empty{display:none}.image-hover{position:fixed;z-index:500;width:310px;padding:12px;background:#202634;border:1px solid #8c75ff;border-radius:12px;pointer-events:none;box-shadow:0 12px 36px #0008}.image-hover img{width:100%;height:180px;object-fit:contain}.image-hover strong{display:block;overflow-wrap:anywhere;font-size:12px}.image-hover p{font-size:11px;color:#b9c4dc}.disabled-control{opacity:.45;cursor:not-allowed}.loop-boundary{position:absolute;top:0;font-size:10px;white-space:nowrap;color:#b8a5ff}.default-duration{margin-bottom:12px}.topbar{flex-wrap:wrap;gap:6px}.top-actions{flex-wrap:wrap}.app-shell{grid-template-rows:auto minmax(280px,1fr) 300px}.preview-wrap{overflow:auto}.preview-enlarged{transform:scale(1.4);transform-origin:top left}.text-box-ui .edge{position:absolute;width:8px;height:8px;background:white;border:1px solid #7c5cff;display:none}.text-box-ui.selected .edge{display:block}.edge.n{top:-4px;left:50%;cursor:ns-resize}.edge.s{bottom:-4px;left:50%;cursor:ns-resize}.edge.w{left:-4px;top:50%;cursor:ew-resize}.edge.e{right:-4px;top:50%;cursor:ew-resize}.image-box-ui{position:absolute;inset:0;border:2px solid #7c5cff;cursor:move;pointer-events:auto}.image-box-ui .image-scale{position:absolute;right:-5px;bottom:-5px;width:12px;height:12px;background:#fff;cursor:nwse-resize}.backup-dialog{color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:14px;max-width:560px;width:90%;padding:22px}.backup-dialog::backdrop{background:#0009}.backup-dialog button{margin:5px;padding:8px}.backup-dialog p{line-height:1.6}.backup-list{max-height:260px;overflow:auto}
@media(max-width:1100px){.workspace{grid-template-columns:minmax(180px,240px) minmax(280px,1fr) 240px}.brand{min-width:150px}.project-name{width:120px}}
@media(max-width:780px){.workspace{grid-template-columns:180px minmax(280px,1fr)}.right-panel{position:absolute;right:0;top:140px;bottom:300px;width:220px;z-index:20;box-shadow:-4px 0 20px #0009;max-height:50vh;overflow:auto}.app-shell{min-width:660px}.topbar:after{content:'작은 화면에서는 가로 방향 또는 데스크톱 사용을 권장합니다.';font-size:11px;color:#c3b6ff}}
:root .timeline-toolbar{height:auto;min-height:44px;flex-wrap:wrap}
.duration-controls{display:flex;align-items:center;gap:10px;flex:1;flex-wrap:wrap;padding:6px 0;font-size:12px}
.duration-controls [role=group]{display:flex;gap:3px}.duration-controls button.active{background:var(--accent,#7955ff);color:white}
.duration-controls small{color:#a9afc3}.duration-controls label{display:flex;align-items:center;gap:5px}.duration-controls input[type=number]{width:62px}
.duration-controls [hidden]{display:none!important}.duration-controls button:focus-visible{outline:2px solid #c4b4ff;outline-offset:2px}
.repeat-ghost{position:absolute;top:5px;height:34px;opacity:.6;border:1px dashed #9782ef;border-radius:4px;overflow:hidden;white-space:nowrap;background-size:auto 100%;pointer-events:none;font-size:10px}
.output-end{position:absolute;top:0;bottom:0;border-left:2px dashed #ffbb77;pointer-events:none;z-index:3}
.audio-cut-label{position:absolute;top:2px;color:#ffbb77;font-size:10px;pointer-events:none;background:#191b25;z-index:4}
:root [hidden]{display:none!important}
:root .timeline-panel{grid-template-rows:auto minmax(0,1fr)}
:root .workspace>*, :root .tool-panel{min-height:0}
:root .left-panel{grid-template-rows:minmax(0,1fr);overflow:hidden}
:root .stage-column{min-height:0;overflow:hidden}
.duration-controls{min-width:0;flex-basis:100%}
:root .tick{font-size:11.5px;color:#e5e7eb;height:18px;line-height:14px;border-color:#aeb8c9;white-space:nowrap;font-variant-numeric:tabular-nums}
:root .tick.minor{height:5px;color:transparent;border-color:#495263}
:root .playhead .playhead-hit{height:100%;width:17px;left:-8px;touch-action:none}
.playhead-time{position:absolute;pointer-events:auto;touch-action:none;cursor:ew-resize;white-space:nowrap;background:#9c1836;color:#fff;border:1px solid #ff7891;border-radius:4px;padding:3px 7px;font-size:11px;font-variant-numeric:tabular-nums;line-height:16px;z-index:2}
.playhead.dragging{width:3px;background:#e81848}.playhead.dragging .playhead-time{background:#ce1740;box-shadow:0 0 0 2px #ff8ba4}
:root .timeline-toolbar{gap:8px;flex-wrap:wrap;overflow:visible}
:root .duration-controls{flex:1 1 auto;flex-basis:auto;gap:6px;padding:0;min-width:0}
:root .duration-controls[hidden]{display:none}
.duration-controls [data-duration-help]{display:none}
.duration-controls [role=group],.duration-controls [data-duration-result],.selection-actions{flex-shrink:0;white-space:nowrap}
.zoom-controls{margin-left:auto;flex-shrink:0}
.duration-controls [data-duration-title]{font-size:11px}
@media(max-width:1250px){.duration-controls [data-duration-title]{display:none}.zoom-controls input{width:80px}.duration-controls [data-cut-fade]{font-size:10px}}
:root .app-shell{height:100%;min-height:0;grid-template-rows:auto minmax(0,1fr) var(--timeline-height,300px)}
:root .workspace{min-height:0}:root .timeline-panel{position:relative;min-height:0}
.timeline-splitter{position:absolute;top:-6px;left:0;right:0;height:11px;z-index:30;cursor:row-resize;touch-action:none;user-select:none;text-align:center;font-size:12px;line-height:10px;color:#bbaaff;outline:none}
.timeline-splitter::before{content:'';position:absolute;left:0;right:0;top:5px;height:1px;background:#525c70;z-index:-1}
.timeline-splitter:hover::before,.timeline-splitter:focus::before{background:#a58aff;height:2px}.timeline-splitter.dragging::before{height:3px;background:#beaaff}
@media(max-width:850px){:root body,:root{overflow:hidden}:root .stage-column{min-height:0}:root .timeline-toolbar{overflow:visible}}
.item-card{position:relative;cursor:pointer;grid-template-columns:30px minmax(0,1fr) 28px;outline:none}.item-card.selected{border-color:#b7a5ff;background:#2a2340;box-shadow:inset 0 0 0 1px #9a81ff}.item-card:focus-visible{outline:2px solid #b7a5ff}.item-card strong{overflow-wrap:anywhere}.item-trash{font-size:16px!important;width:26px;height:28px;padding:3px!important;grid-column:auto!important;align-self:start}.item-trash::after{content:none}.item-trash:hover{background:#8b1837!important}.media-symbol{font-size:23px}
.item-delete-dialog{color:#e5e7eb;background:#1b2030;border:1px solid #697086;border-radius:12px;max-width:520px;width:90%;padding:22px}.item-delete-dialog::backdrop{background:#0009}.item-delete-dialog p{white-space:pre-wrap;overflow-wrap:anywhere;max-height:40vh;overflow:auto}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}.dialog-actions button{border:1px solid #596278;border-radius:7px;background:#30384a;padding:8px 18px}.dialog-actions .danger-button{background:#a92340;color:white;border-color:#e55870}
:root .media-item[data-media-id]{grid-template-columns:minmax(0,1fr) 28px;gap:7px;align-items:start}:root .media-item[data-media-id] img{grid-column:1/-1;width:min(100%,var(--thumb-size,100px));height:auto}:root .media-item[data-media-id]>div{grid-column:1;min-width:0}:root .media-item[data-media-id] .item-trash{grid-column:2!important;grid-row:2}.media-item strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block}
.image-hover{pointer-events:auto;max-height:calc(100vh - 16px);max-width:calc(100vw - 16px);overflow:auto}.image-hover strong{white-space:normal;word-break:break-word}.image-hover img{max-height:180px}.media-dragging~.image-hover{display:none}
.audio-import-status{display:grid;gap:4px;max-height:110px;overflow:auto;color:#b5c6dc}.audio-import-status small{overflow-wrap:anywhere}.sidebar-note{font-size:11px;color:#a8b7cd;line-height:1.6}.media-insertion-guide{color:white;font-size:11px;background:#916bff;white-space:nowrap;z-index:600}
.audio-waveform{position:absolute;bottom:0;pointer-events:none}.audio-clip .clip-body{position:relative;z-index:1;text-shadow:0 1px 3px #000;background:linear-gradient(#101722aa,transparent);height:20px}.audio-clip .resize-handle{z-index:3}
.end-time-controls{display:flex;gap:3px;align-items:center}.end-time-controls[hidden]{display:none}.end-time-controls input{width:84px;min-width:70px;font-variant-numeric:tabular-nums;text-align:center}.end-time-controls button{white-space:nowrap;padding:4px 6px}
.text-hover{width:360px}.text-hover-content{white-space:pre-wrap;overflow-wrap:anywhere;overflow-y:auto;max-height:min(300px,50vh);font-size:13px;line-height:1.7;margin:10px 0}.text-hover button{background:#7657e8;color:#fff;border-color:#b09dff}.content-focus-pulse{animation:content-focus-pulse .4s ease-in-out 3;outline-offset:3px}@keyframes content-focus-pulse{0%,100%{outline:2px solid transparent}50%{outline:2px solid #b3a0ff;box-shadow:0 0 0 4px #9c80ff33}}@media(prefers-reduced-motion:reduce){.content-focus-pulse{animation:none;outline:2px solid #b3a0ff;box-shadow:0 0 0 4px #9c80ff33}}
/* Keep mode and time tools adjacent; only this compact group scrolls if needed. */
.duration-choice-tools{display:flex;align-items:center;gap:6px;max-width:100%;min-width:0;overflow-x:auto;padding:3px;scrollbar-width:thin}
.duration-choice-tools .end-time-controls{flex-shrink:0}
.audio-fit-arrow{margin-left:5px;font-size:10px;color:inherit}
.audio-fit-popover{position:fixed;z-index:650;box-sizing:border-box;width:360px;overflow:auto;color:#e8e7f1;background:#202432;border:1px solid #8875bf;border-radius:11px;box-shadow:0 12px 36px #0009;padding:10px;font:13px/1.5 "Malgun Gothic",sans-serif}
.audio-fit-popover h3{font-size:13px;margin:0 0 8px;padding:2px 5px 8px;border-bottom:1px solid #414657}
.audio-fit-popover button{display:flex;gap:9px;width:100%;padding:10px 8px;margin:4px 0;border:1px solid transparent;border-radius:7px;background:transparent;color:inherit;text-align:left;cursor:pointer;white-space:normal;font:inherit}
.audio-fit-popover button:hover{background:#383449;border-color:#82709f}
.audio-fit-popover button.active{background:#49356f;border-color:#a68af6}
.audio-fit-popover button:focus-visible{outline:2px solid #c7b6ff;outline-offset:-2px}
.audio-fit-check{width:14px;flex-shrink:0;visibility:hidden;color:#d6c6ff}
.audio-fit-popover [aria-checked=true] .audio-fit-check{visibility:visible}
.audio-fit-popover strong{display:block;font-size:13px}
.audio-fit-popover small{display:block;margin-top:3px;color:#c1c5d3;font-size:11px;word-break:keep-all;overflow-wrap:anywhere}
.audio-fit-popover p{font-size:10px;color:#aab0c4;margin:8px 5px 2px;line-height:1.6}
.audio-fit-popover[hidden]{display:none}
.duration-controls [data-image-fit-result]{color:#d8cffc;font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere}
.duration-controls [data-image-fit-warning],.duration-controls [data-duration-help]:not([hidden]){display:block;flex-basis:100%;white-space:normal}
.duration-controls [data-image-fit-warning]{color:#fcd34d}
.effective-image.repeat-ghost{pointer-events:auto;opacity:.85}
.effective-image.selected{opacity:1;outline:2px solid #b29aff;outline-offset:-2px}
.effective-image.partial{border-right:2px dashed #fcd34d}
.effective-image.distributed .resize-handle{display:none}
.effective-image .clip-body{pointer-events:none}
