/* ==========================================================
   SellForm × OpenCut Editor — OpenCut(opencut-classic) 레이아웃 클론
   모든 스타일은 #ocApp 안으로 스코프됨
   ========================================================== */
#ocApp {
  --oc-bg: #09090b;
  --oc-panel: #141416;
  --oc-panel-2: #1c1c1f;
  --oc-panel-3: #232327;
  --oc-border: #27272a;
  --oc-border-2: #3f3f46;
  --oc-text: #e4e4e7;
  --oc-muted: #a1a1aa;
  --oc-dim: #71717a;
  --oc-primary: #3b82f6;
  --oc-primary-2: #2563eb;
  --oc-danger: #ef4444;
  --oc-playhead: #f43f5e;
  --oc-video: #2563eb;
  --oc-image: #0891b2;
  --oc-text-el: #7c3aed;
  --oc-audio: #059669;
  --oc-sticker: #d97706;
  --oc-effect: #db2777;
  position: relative;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 96px);
  min-height: 680px;
  background: var(--oc-bg);
  color: var(--oc-text);
  border-radius: 14px;
  overflow: hidden;
  font-family: Inter, 'Pretendard', 'Noto Sans KR', system-ui, sans-serif;
  font-size: 12px;
  user-select: none;
  -webkit-user-select: none;
}
#ocApp.oc-fullscreen { position: fixed; inset: 0; z-index: 9999; height: 100vh; border-radius: 0; }
#ocApp * { box-sizing: border-box; }
#ocApp input, #ocApp textarea, #ocApp select { user-select: text; -webkit-user-select: text; font-family: inherit; }
#ocApp ::-webkit-scrollbar { width: 8px; height: 8px; }
#ocApp ::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 8px; }
#ocApp ::-webkit-scrollbar-track { background: transparent; }
#ocApp svg.lucide { width: 16px; height: 16px; stroke-width: 2; flex-shrink: 0; }

/* ---------- Header ---------- */
.oc-header { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid var(--oc-border); background: var(--oc-bg); gap: 12px; flex-shrink: 0; }
.oc-header-left, .oc-header-right { display: flex; align-items: center; gap: 6px; min-width: 0; }
.oc-logo { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #fff, #a1a1aa); color: #09090b; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; }
.oc-project-name { background: transparent; border: 1px solid transparent; color: var(--oc-text); font-weight: 600; font-size: 13px; padding: 4px 8px; border-radius: 6px; width: 220px; outline: none; }
.oc-project-name:hover { border-color: var(--oc-border); }
.oc-project-name:focus { border-color: var(--oc-primary); background: var(--oc-panel); }
.oc-save-state { color: var(--oc-dim); font-size: 11px; white-space: nowrap; }

/* ---------- Buttons ---------- */
.oc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--oc-border); background: var(--oc-panel-2); color: var(--oc-text); font-size: 12px; font-weight: 600; cursor: pointer; transition: background .12s, border-color .12s, opacity .12s; white-space: nowrap; }
.oc-btn:hover { background: var(--oc-panel-3); border-color: var(--oc-border-2); }
.oc-btn:disabled, .oc-btn.disabled { opacity: .4; cursor: not-allowed; }
.oc-btn.primary { background: var(--oc-primary); border-color: var(--oc-primary); color: #fff; }
.oc-btn.primary:hover { background: var(--oc-primary-2); }
.oc-btn.danger { color: #fca5a5; }
.oc-btn.danger:hover { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.5); }
.oc-btn.ghost { background: transparent; border-color: transparent; }
.oc-btn.ghost:hover { background: var(--oc-panel-2); }
.oc-btn.sm { height: 26px; padding: 0 8px; font-size: 11px; }
.oc-btn.full { width: 100%; }
.oc-icon-btn { width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: transparent; border: 1px solid transparent; color: var(--oc-muted); cursor: pointer; position: relative; }
.oc-icon-btn:hover { background: var(--oc-panel-2); color: var(--oc-text); }
.oc-icon-btn.active { background: var(--oc-panel-3); color: var(--oc-text); border-color: var(--oc-border-2); }
.oc-icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.oc-icon-btn.sm { width: 24px; height: 24px; }
.oc-icon-btn.sm svg.lucide { width: 14px; height: 14px; }
.oc-sep { width: 1px; height: 22px; background: var(--oc-border); margin: 0 4px; flex-shrink: 0; }

/* Tooltip */
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); background: #fafafa; color: #09090b; padding: 4px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; white-space: nowrap; z-index: 200; pointer-events: none; }
.oc-tip-up[data-tip]:hover::after { top: auto; bottom: calc(100% + 6px); }
.oc-tip-right[data-tip]:hover::after { left: calc(100% + 8px); top: 50%; transform: translateY(-50%); }

/* ---------- Layout ---------- */
.oc-main { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 6px 8px 8px; gap: 4px; }
.oc-top { flex: 1; min-height: 160px; display: flex; gap: 4px; }
.oc-panel { background: var(--oc-panel); border: 1px solid var(--oc-border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.oc-resizer-v { width: 4px; cursor: col-resize; border-radius: 4px; flex-shrink: 0; }
.oc-resizer-v:hover, .oc-resizer-v.dragging { background: var(--oc-primary); }
.oc-resizer-h { height: 5px; cursor: row-resize; border-radius: 4px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.oc-resizer-h::before { content: ''; width: 36px; height: 3px; border-radius: 3px; background: var(--oc-border-2); }
.oc-resizer-h:hover::before, .oc-resizer-h.dragging::before { background: var(--oc-primary); width: 60px; }

/* ---------- Assets panel ---------- */
.oc-assets { display: flex; flex-direction: row; }
.oc-tabbar { width: 64px; flex-shrink: 0; border-right: 1px solid var(--oc-border); display: flex; flex-direction: column; align-items: stretch; padding: 6px 4px; gap: 2px; overflow-y: auto; }
.oc-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border-radius: 8px; color: var(--oc-dim); cursor: pointer; font-size: 10px; font-weight: 600; border: none; background: transparent; }
.oc-tab:hover { color: var(--oc-text); background: var(--oc-panel-2); }
.oc-tab.active { color: var(--oc-text); background: var(--oc-panel-3); }
.oc-tab svg.lucide { width: 18px; height: 18px; }
.oc-assets-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.oc-view-header { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid var(--oc-border); font-weight: 700; font-size: 13px; flex-shrink: 0; gap: 6px; }
.oc-view-body { flex: 1; overflow-y: auto; padding: 10px; }
.oc-section-title { font-size: 11px; font-weight: 700; color: var(--oc-muted); margin: 12px 0 6px; text-transform: none; display: flex; align-items: center; justify-content: space-between; }
.oc-section-title:first-child { margin-top: 0; }
.oc-dropzone { border: 1.5px dashed var(--oc-border-2); border-radius: 10px; padding: 18px 10px; text-align: center; color: var(--oc-muted); cursor: pointer; transition: all .15s; }
.oc-dropzone:hover, .oc-dropzone.over { border-color: var(--oc-primary); background: rgba(59,130,246,.08); color: var(--oc-text); }
.oc-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.oc-media-list { display: flex; flex-direction: column; gap: 4px; }
.oc-media-item { position: relative; border-radius: 8px; overflow: hidden; background: var(--oc-panel-2); border: 1px solid var(--oc-border); cursor: grab; }
.oc-media-item:hover { border-color: var(--oc-border-2); }
.oc-media-item.highlight { border-color: var(--oc-primary); box-shadow: 0 0 0 2px rgba(59,130,246,.4); }
.oc-media-thumb { aspect-ratio: 16/10; background: #000 center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--oc-dim); }
.oc-media-meta { padding: 4px 6px; font-size: 10.5px; color: var(--oc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-media-badge { position: absolute; right: 4px; bottom: 22px; background: rgba(0,0,0,.75); color: #fff; font-size: 9.5px; padding: 1px 4px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.oc-media-add { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border-radius: 6px; background: var(--oc-primary); color: #fff; display: flex; opacity: 0.85; align-items: center; justify-content: center; border: none; cursor: pointer; z-index: 10; transition: transform .15s, opacity .15s, box-shadow .15s; }
.oc-media-add:hover { opacity: 1; transform: scale(1.1); box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.oc-media-del { position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 6px; background: rgba(0,0,0,.75); color: #fca5a5; display: none; align-items: center; justify-content: center; border: none; cursor: pointer; z-index: 10; transition: transform .15s, opacity .15s; }
.oc-media-item:hover .oc-media-del { display: flex; }
.oc-media-item:hover .oc-media-add { opacity: 1; }
.oc-media-list .oc-media-item { display: flex; align-items: center; gap: 8px; padding: 4px; }
.oc-media-list .oc-media-thumb { width: 64px; aspect-ratio: 16/10; border-radius: 5px; flex-shrink: 0; }
.oc-media-list .oc-media-badge { position: static; }
.oc-media-list .oc-media-meta { flex: 1; padding: 0; }
.oc-media-list .oc-media-add { position: static; display: flex; }
.oc-media-list .oc-media-del { position: static; display: flex; }

.oc-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.oc-card-grid.three { grid-template-columns: repeat(3, 1fr); }
.oc-card-grid.four { grid-template-columns: repeat(4, 1fr); }
.oc-card { border-radius: 9px; background: var(--oc-panel-2); border: 1px solid var(--oc-border); padding: 10px 8px; cursor: pointer; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; transition: all .12s; color: var(--oc-text); }
.oc-card:hover { border-color: var(--oc-primary); background: var(--oc-panel-3); }
.oc-card.active { border-color: var(--oc-primary); box-shadow: inset 0 0 0 1px var(--oc-primary); }
.oc-card small { color: var(--oc-dim); font-size: 10px; }
.oc-sticker { font-size: 30px; min-height: 56px; padding: 6px; }
.oc-sound-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; border: 1px solid var(--oc-border); background: var(--oc-panel-2); margin-bottom: 6px; cursor: grab; }
.oc-sound-row:hover { border-color: var(--oc-border-2); }
.oc-sound-row .name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-sound-row .sub { color: var(--oc-dim); font-size: 10.5px; }
.oc-search { width: 100%; height: 30px; border-radius: 7px; border: 1px solid var(--oc-border); background: var(--oc-panel-2); color: var(--oc-text); padding: 0 10px; outline: none; margin-bottom: 8px; }
.oc-search:focus { border-color: var(--oc-primary); }
.oc-chip-row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.oc-chip { height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--oc-border); background: transparent; color: var(--oc-muted); font-size: 11px; font-weight: 600; cursor: pointer; }
.oc-chip.active, .oc-chip:hover { color: var(--oc-text); border-color: var(--oc-border-2); background: var(--oc-panel-3); }
.oc-note { font-size: 11px; color: var(--oc-dim); line-height: 1.55; background: var(--oc-panel-2); border: 1px solid var(--oc-border); border-radius: 8px; padding: 8px 10px; }

/* ---------- Form fields ---------- */
.oc-field { margin-bottom: 10px; }
.oc-field-label { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--oc-muted); font-weight: 600; margin-bottom: 5px; gap: 6px; }
.oc-field-label .val { color: var(--oc-text); font-variant-numeric: tabular-nums; }
.oc-row { display: flex; gap: 6px; align-items: center; }
.oc-row > * { flex: 1; min-width: 0; }
.oc-input, .oc-select, .oc-textarea { width: 100%; height: 30px; border-radius: 7px; border: 1px solid var(--oc-border); background: var(--oc-panel-2); color: var(--oc-text); padding: 0 8px; outline: none; font-size: 12px; }
.oc-textarea { height: auto; min-height: 70px; padding: 8px; resize: vertical; line-height: 1.5; }
.oc-input:focus, .oc-select:focus, .oc-textarea:focus { border-color: var(--oc-primary); }
.oc-num { display: flex; align-items: center; height: 30px; border-radius: 7px; border: 1px solid var(--oc-border); background: var(--oc-panel-2); overflow: hidden; }
.oc-num span { padding: 0 7px; color: var(--oc-dim); font-size: 10.5px; font-weight: 700; cursor: ew-resize; height: 100%; display: flex; align-items: center; border-right: 1px solid var(--oc-border); }
.oc-num input { flex: 1; min-width: 0; height: 100%; border: none; background: transparent; color: var(--oc-text); padding: 0 6px; outline: none; font-variant-numeric: tabular-nums; font-size: 12px; }
.oc-range { width: 100%; accent-color: var(--oc-primary); height: 4px; cursor: pointer; }
.oc-color { width: 34px; height: 30px; border-radius: 7px; border: 1px solid var(--oc-border); background: var(--oc-panel-2); padding: 2px; cursor: pointer; flex: 0 0 34px !important; }
.oc-swatches { display: flex; flex-wrap: wrap; gap: 5px; }
.oc-swatch { width: 22px; height: 22px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.oc-swatch.active { border-color: #fff; }
.oc-seg { display: flex; background: var(--oc-panel-2); border: 1px solid var(--oc-border); border-radius: 7px; padding: 2px; gap: 2px; }
.oc-seg button { flex: 1; height: 24px; border: none; border-radius: 5px; background: transparent; color: var(--oc-muted); font-size: 11px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; }
.oc-seg button.active { background: var(--oc-panel-3); color: var(--oc-text); box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.oc-switch { position: relative; width: 34px; height: 19px; border-radius: 999px; background: var(--oc-border-2); cursor: pointer; flex: 0 0 34px !important; border: none; transition: background .15s; }
.oc-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .15s; }
.oc-switch.on { background: var(--oc-primary); }
.oc-switch.on::after { transform: translateX(15px); }
.oc-kf { width: 20px; height: 20px; border: none; background: transparent; color: var(--oc-dim); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 4px; flex: 0 0 20px !important; }
.oc-kf:hover { color: var(--oc-text); background: var(--oc-panel-3); }
.oc-kf.has { color: #fbbf24; }
.oc-kf.on svg { fill: #fbbf24; color: #fbbf24; }
.oc-kf svg.lucide { width: 12px; height: 12px; }

/* ---------- Preview ---------- */
.oc-preview { flex: 1; }
.oc-preview-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; background: repeating-conic-gradient(#121214 0% 25%, #0e0e10 0% 50%) 50% / 20px 20px; }
.oc-canvas-wrap { position: relative; box-shadow: 0 0 0 1px var(--oc-border), 0 10px 40px rgba(0,0,0,.6); }
.oc-canvas-wrap canvas { display: block; width: 100%; height: 100%; }
.oc-media-pool { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.oc-media-pool video, .oc-media-pool audio { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0.01; }
#ocPreviewCanvas { position: relative; z-index: 1; }
.oc-overlay { position: absolute; inset: 0; z-index: 3; }
.oc-guide-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.oc-sel-box { position: absolute; border: 1.5px solid var(--oc-primary); pointer-events: none; transform-origin: center center; }
.oc-sel-box.locked { border-style: dashed; }
.oc-handle { position: absolute; width: 11px; height: 11px; background: #fff; border: 1.5px solid var(--oc-primary); border-radius: 3px; pointer-events: auto; }
.oc-handle.tl { left: -6px; top: -6px; cursor: nwse-resize; }
.oc-handle.tr { right: -6px; top: -6px; cursor: nesw-resize; }
.oc-handle.bl { left: -6px; bottom: -6px; cursor: nesw-resize; }
.oc-handle.br { right: -6px; bottom: -6px; cursor: nwse-resize; }
.oc-handle.rot { left: 50%; top: -30px; margin-left: -7px; width: 14px; height: 14px; border-radius: 50%; cursor: grab; }
.oc-handle.rot::after { content: ''; position: absolute; left: 5px; top: 13px; width: 1.5px; height: 16px; background: var(--oc-primary); }
.oc-snap-line { position: absolute; background: #f43f5e; pointer-events: none; z-index: 4; }
.oc-text-editor { position: absolute; z-index: 6; background: rgba(0,0,0,.35); border: 1.5px dashed #fbbf24; color: #fff; outline: none; resize: none; text-align: center; padding: 4px; overflow: hidden; }
.oc-preview-toolbar { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; border-top: 1px solid var(--oc-border); flex-shrink: 0; gap: 8px; }
.oc-time { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--oc-muted); font-family: ui-monospace, 'JetBrains Mono', monospace; }
.oc-time b { color: var(--oc-text); font-weight: 600; }
.oc-play-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--oc-text); color: #09090b; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.oc-play-btn:hover { background: #fff; transform: scale(1.04); }
.oc-play-btn svg.lucide { width: 15px; height: 15px; fill: currentColor; }
.oc-empty-preview { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--oc-muted); z-index: 5; pointer-events: none; text-align: center; }
.oc-empty-preview .oc-btn { pointer-events: auto; }
.oc-buffering { position: absolute; top: 10px; left: 10px; z-index: 6; background: rgba(0,0,0,.7); padding: 4px 9px; border-radius: 6px; font-size: 11px; color: #fbbf24; display: none; }

/* ---------- Properties ---------- */
.oc-props-tabs { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--oc-border); overflow-x: auto; flex-shrink: 0; }
.oc-props-tab { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border-radius: 6px; border: none; background: transparent; color: var(--oc-dim); font-size: 11.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.oc-props-tab:hover { color: var(--oc-text); background: var(--oc-panel-2); }
.oc-props-tab.active { color: var(--oc-text); background: var(--oc-panel-3); }
.oc-props-tab svg.lucide { width: 14px; height: 14px; }
.oc-props-body { flex: 1; overflow-y: auto; padding: 12px; }
.oc-group { border-bottom: 1px solid var(--oc-border); padding-bottom: 10px; margin-bottom: 12px; }
.oc-group:last-child { border-bottom: none; }
.oc-group-title { font-size: 11.5px; font-weight: 700; color: var(--oc-text); margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; }
.oc-empty-props { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; color: var(--oc-dim); padding: 20px; }
.oc-effect-item { border: 1px solid var(--oc-border); background: var(--oc-panel-2); border-radius: 8px; padding: 8px; margin-bottom: 8px; }
.oc-effect-item .head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; margin-bottom: 6px; }

/* ---------- Timeline ---------- */
.oc-timeline { flex-shrink: 0; height: 300px; min-height: 140px; }
.oc-tl-toolbar { display: flex; flex-direction: column; padding: 0; border-bottom: 1px solid var(--oc-border); flex-shrink: 0; background: var(--oc-panel); }
.oc-tl-toolbar-row { height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; gap: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); overflow-x: auto; }
.oc-tl-toolbar-row:last-child { border-bottom: none; }
.oc-tl-toolbar-row-sub { height: 34px; background: rgba(0, 0, 0, 0.18); }
.oc-tl-toolbar-row .grp { display: flex; align-items: center; gap: 3px; }
.oc-scene-btn { display: flex; align-items: center; height: 28px; border: 1px solid var(--oc-border); border-radius: 7px; overflow: hidden; }
.oc-scene-btn button { height: 100%; border: none; background: var(--oc-panel-2); color: var(--oc-text); font-size: 11.5px; font-weight: 600; padding: 0 10px; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.oc-scene-btn button:hover { background: var(--oc-panel-3); }
.oc-scene-btn button + button { border-left: 1px solid var(--oc-border); padding: 0 7px; }
.oc-tl-body { flex: 1; min-height: 0; display: flex; position: relative; }
.oc-tl-heads { width: 132px; flex-shrink: 0; border-right: 1px solid var(--oc-border); display: flex; flex-direction: column; background: var(--oc-panel); z-index: 5; }
.oc-tl-heads-ruler { height: 28px; border-bottom: 1px solid var(--oc-border); flex-shrink: 0; display: flex; align-items: center; padding: 0 8px; color: var(--oc-dim); font-size: 10.5px; font-family: ui-monospace, monospace; }
.oc-tl-heads-list { flex: 1; overflow: hidden; position: relative; }
.oc-track-head { display: flex; align-items: center; gap: 2px; padding: 0 4px 0 8px; border-bottom: 1px solid var(--oc-border); position: absolute; left: 0; right: 0; }
.oc-track-head .tname { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; color: var(--oc-muted); font-size: 11px; font-weight: 600; overflow: hidden; white-space: nowrap; }
.oc-track-head .tname svg.lucide { width: 13px; height: 13px; }
.oc-track-head .main-badge { font-size: 9px; padding: 0 4px; border-radius: 3px; background: var(--oc-panel-3); color: var(--oc-muted); }
.oc-track-head .oc-icon-btn { width: 22px; height: 22px; }
.oc-track-head .oc-icon-btn svg.lucide { width: 13px; height: 13px; }
.oc-track-head .oc-icon-btn.off { color: #f87171; }
.oc-tl-scroll { flex: 1; min-width: 0; overflow: auto; position: relative; user-select: none; -webkit-user-select: none; }
.oc-tl-content { position: relative; min-height: 100%; user-select: none; -webkit-user-select: none; }
.oc-ruler { position: sticky; top: 0; height: 28px; z-index: 4; background: var(--oc-panel); border-bottom: 1px solid var(--oc-border); cursor: pointer; }
.oc-ruler canvas { position: absolute; left: 0; top: 0; }
.oc-bookmark { position: absolute; top: 0; width: 10px; margin-left: -5px; height: 28px; cursor: pointer; z-index: 2; display: flex; justify-content: center; }
.oc-bookmark::before { content: ''; width: 9px; height: 11px; background: #fbbf24; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 70%, 0 100%); margin-top: 2px; }
.oc-bookmark::after { content: ''; position: absolute; top: 13px; width: 1px; height: 15px; background: rgba(251,191,36,.6); }
.oc-tracks { position: relative; }
.oc-track { position: absolute; left: 0; right: 0; border-bottom: 1px solid rgba(39,39,42,.7); }
.oc-track.drop-ok { background: rgba(59,130,246,.08); }
.oc-new-track-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--oc-primary); z-index: 6; pointer-events: none; box-shadow: 0 0 6px var(--oc-primary); }
.oc-marquee-box { position: absolute; border: 1.5px solid #38bdf8; background: rgba(56, 189, 248, 0.22); z-index: 50; pointer-events: none; border-radius: 2px; box-shadow: 0 0 8px rgba(56, 189, 248, 0.35); }
.oc-el { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; overflow: hidden; cursor: grab; border: 1px solid rgba(255,255,255,.08); color: #fff; font-size: 11px; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.oc-el.selected { outline: 2px solid #fff; outline-offset: -1px; z-index: 3; }
.oc-el.hidden-el { opacity: .45; }
.oc-el.dragging { opacity: .85; z-index: 10; cursor: grabbing; box-shadow: 0 6px 20px rgba(0,0,0,.6); }
.oc-el .lbl { position: absolute; left: 6px; top: 3px; right: 6px; z-index: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,.8); display: flex; align-items: center; gap: 4px; pointer-events: none; }
.oc-el .lbl svg.lucide { width: 11px; height: 11px; }
.oc-el .film { position: absolute; inset: 0; background-repeat: repeat-x; background-size: auto 100%; opacity: .55; pointer-events: none; }
.oc-el canvas.wave { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; height: 100%; pointer-events: none; opacity: .95; z-index: 1; }
.oc-el .edge { position: absolute; top: 0; bottom: 0; width: 8px; z-index: 4; cursor: ew-resize; }
.oc-el .edge.l { left: 0; }
.oc-el .edge.r { right: 0; }
.oc-el.selected .edge { background: rgba(255,255,255,.9); }
.oc-el.selected .edge.l { border-radius: 5px 0 0 5px; }
.oc-el.selected .edge.r { border-radius: 0 5px 5px 0; }
.oc-el .edge::after { content: ''; position: absolute; top: 50%; left: 3px; width: 2px; height: 12px; margin-top: -6px; border-radius: 2px; background: rgba(0,0,0,.45); }
.oc-el .kfd { position: absolute; bottom: 3px; width: 8px; height: 8px; margin-left: -4px; background: #fbbf24; transform: rotate(45deg); z-index: 3; pointer-events: none; border: 1px solid rgba(0,0,0,.5); }
.oc-el .fx-badge { position: absolute; right: 6px; bottom: 3px; font-size: 9px; background: rgba(0,0,0,.5); padding: 0 4px; border-radius: 3px; z-index: 2; }
.oc-el .tr-in, .oc-el .tr-out { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(255,255,255,.35), transparent); pointer-events: none; z-index: 1; }
.oc-el .tr-out { background: linear-gradient(270deg, rgba(255,255,255,.35), transparent); right: 0; }
.oc-el.t-video { background: var(--oc-video); }
.oc-el.t-image { background: var(--oc-image); }
.oc-el.t-text { background: var(--oc-text-el); }
.oc-el.t-audio { background: #064e3b; border: 1px solid #059669; }
.oc-el.t-sticker { background: var(--oc-sticker); }
.oc-el.t-effect { background: var(--oc-effect); }
.oc-playhead { position: absolute; top: 0; bottom: 0; width: 14px; margin-left: -7px; z-index: 100; pointer-events: auto; cursor: ew-resize; }
.oc-playhead::before { content: ''; position: absolute; top: 0; bottom: 0; left: 6px; width: 2px; background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,.8); pointer-events: none; }
.oc-playhead .knob { position: absolute; top: 0; left: -2px; width: 18px; height: 22px; background: #ef4444; clip-path: polygon(0 0, 100% 0, 100% 65%, 50% 100%, 0 65%); pointer-events: auto; cursor: ew-resize; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); transition: transform .1s; }
.oc-playhead .knob:hover, .oc-playhead:hover .knob, .oc-playhead .knob:active { transform: scale(1.25); }
.oc-snap-ind { position: absolute; top: 0; width: 1px; background: #fbbf24; z-index: 9; pointer-events: none; box-shadow: 0 0 4px #fbbf24; }
.oc-box-select { position: absolute; border: 1px solid var(--oc-primary); background: rgba(59,130,246,.15); z-index: 9; pointer-events: none; }
.oc-tl-empty { position: absolute; left: 50%; top: 55%; transform: translate(-50%,-50%); color: var(--oc-dim); text-align: center; pointer-events: none; font-size: 12px; }

/* ---------- Menus / modals ---------- */
.oc-menu { position: fixed; z-index: 10050; min-width: 200px; background: var(--oc-panel-2); border: 1px solid var(--oc-border-2); border-radius: 9px; padding: 4px; box-shadow: 0 12px 32px rgba(0,0,0,.6); color: var(--oc-text); font-size: 12px; font-family: Inter, 'Pretendard', 'Noto Sans KR', system-ui, sans-serif; }
.oc-menu button { width: 100%; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; background: transparent; border: none; border-radius: 6px; color: inherit; cursor: pointer; font-size: 12px; text-align: left; }
.oc-menu button:hover { background: var(--oc-panel-3); }
.oc-menu button:disabled { opacity: .4; cursor: not-allowed; }
.oc-menu button .kbd { margin-left: auto; color: var(--oc-dim); font-size: 10.5px; }
.oc-menu button.danger { color: #fca5a5; }
.oc-menu hr { border: none; border-top: 1px solid var(--oc-border); margin: 4px 0; }
.oc-menu svg.lucide { width: 14px; height: 14px; }
.oc-menu .oc-menu-title { padding: 6px 8px 4px; font-size: 10.5px; color: var(--oc-dim); font-weight: 700; }
.oc-modal-bg { position: fixed; inset: 0; z-index: 10040; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px); font-family: Inter, 'Pretendard', 'Noto Sans KR', system-ui, sans-serif; }
.oc-modal { width: 100%; max-width: 480px; max-height: 88vh; overflow: auto; background: #141416; border: 1px solid #3f3f46; border-radius: 14px; color: #e4e4e7; box-shadow: 0 20px 60px rgba(0,0,0,.7); font-size: 12px; }
.oc-modal.wide { max-width: 760px; }
.oc-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #27272a; font-size: 14px; font-weight: 700; }
.oc-modal-body { padding: 16px; }
.oc-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid #27272a; }
.oc-modal .oc-btn, .oc-menu .oc-btn { --oc-panel-2: #1c1c1f; --oc-panel-3: #232327; --oc-border: #27272a; --oc-border-2: #3f3f46; --oc-text: #e4e4e7; --oc-primary: #3b82f6; --oc-primary-2: #2563eb; }
.oc-modal { --oc-bg: #09090b; --oc-panel: #141416; --oc-panel-2: #1c1c1f; --oc-panel-3: #232327; --oc-border: #27272a; --oc-border-2: #3f3f46; --oc-text: #e4e4e7; --oc-muted: #a1a1aa; --oc-dim: #71717a; --oc-primary: #3b82f6; --oc-primary-2: #2563eb; }
.oc-menu { --oc-panel-2: #1c1c1f; --oc-panel-3: #232327; --oc-border: #27272a; --oc-border-2: #3f3f46; --oc-dim: #71717a; }
.oc-modal svg.lucide, .oc-menu svg.lucide { width: 16px; height: 16px; }
.oc-progress { height: 8px; background: #27272a; border-radius: 99px; overflow: hidden; }
.oc-progress > div { height: 100%; background: linear-gradient(90deg, #3b82f6, #8b5cf6); width: 0; transition: width .2s; }
.oc-kbd-table { width: 100%; border-collapse: collapse; }
.oc-kbd-table td { padding: 6px 4px; border-bottom: 1px solid #27272a; }
.oc-kbd-table td:last-child { text-align: right; }
.oc-kbd { display: inline-block; min-width: 22px; padding: 2px 6px; border-radius: 5px; background: #27272a; border: 1px solid #3f3f46; font-size: 10.5px; font-family: ui-monospace, monospace; margin-left: 3px; text-align: center; color: #e4e4e7; }
.oc-project-row { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #27272a; border-radius: 10px; margin-bottom: 8px; background: #1c1c1f; cursor: pointer; }
.oc-project-row:hover { border-color: #3b82f6; }
.oc-project-row.current { border-color: #3b82f6; background: rgba(59,130,246,.08); }
.oc-project-thumb { width: 56px; height: 40px; border-radius: 6px; background: #000 center/cover; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #71717a; }
.oc-drag-ghost { position: fixed; z-index: 10060; pointer-events: none; padding: 5px 9px; border-radius: 6px; background: #3b82f6; color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.oc-toast-local { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 999999; background: #fafafa; color: #09090b; padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.5); pointer-events: none; }
.oc-stt-banner { position: absolute; top: 48px; left: 50%; transform: translateX(-50%); z-index: 1000; background: rgba(24,24,27,0.95); border: 1px solid #ef4444; border-radius: 99px; padding: 6px 14px; display: flex; align-items: center; gap: 12px; color: #fff; font-size: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.6); backdrop-filter: blur(8px); animation: oc-fade-in .2s ease-out; }
.oc-stt-dot { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 8px #ef4444; animation: oc-pulse 1.2s infinite; }
@keyframes oc-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.8); } }
@keyframes oc-fade-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
