/* ContentAI Web editor: top bar, media bin, player, timeline, inspector, auto edit drawer */
.editor { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--bg); --tl-h: 296px; }
.ed-top { flex: none; height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.ed-top > * { flex: none; }
.ed-name { background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 6px 10px; font-weight: 650; font-size: 15px; width: clamp(130px, 22vw, 280px); color: var(--text); }
.ed-name:hover { border-color: var(--line-2); } .ed-name:focus { border-color: var(--accent); outline: none; background: var(--bg); }
.save-state { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; color: var(--muted); font-size: 12.5px; cursor: pointer; padding: 4px 8px; border-radius: 8px; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.save-state:hover { background: var(--panel); } .save-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.save-state.saving i { background: var(--accent); animation: pulse 1s infinite; } .save-state.dirty i { background: var(--warn); } .save-state.error { color: #ff9a9a; } .save-state.error i { background: var(--danger); } .save-state.empty i { background: var(--faint); }
@keyframes pulse { 50% { opacity: .3; } }
.btn.warn { border-color: var(--warn); color: #f7d58b; } .btn.busy { filter: saturate(.7); } .btn.big { padding: 11px 22px; font-size: 15px; }
.bin-toggle { display: none; }

.ed-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 236px minmax(0, 1fr) 356px; }
.ed-center { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.ed-split { flex: none; height: 9px; cursor: row-resize; background: var(--bg-2); border-top: 1px solid var(--line); position: relative; }
.ed-split::after { content: ''; position: absolute; left: 50%; top: 3px; width: 44px; height: 3px; margin-left: -22px; background: var(--line-2); border-radius: 3px; } .ed-split:hover::after, .ed-split:focus-visible::after { background: var(--accent); }

/* ---------- media bin ---------- */
.bin { display: flex; flex-direction: column; min-height: 0; background: var(--bg-2); transition: box-shadow .12s; }
.bin.over { box-shadow: inset 0 0 0 2px var(--accent); }
.bin-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px 10px 6px; } .bin > .seg { margin: 0 10px 4px; align-self: flex-start; }
.seg.small button { padding: 3px 9px; font-size: 12px; }
.bin-list { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px 10px; align-content: start; }
.bin-item { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; cursor: grab; outline: none; }
.bin-item:hover, .bin-item:focus-visible { border-color: var(--accent); } .bin-item.used { border-color: var(--line-2); }
.bi-thumb { position: relative; aspect-ratio: 16 / 10; background: var(--bg); } .bi-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bi-thumb .badge { position: absolute; left: 5px; bottom: 5px; font-size: 9.5px; background: rgba(8, 11, 18, .8); color: #dfe6f7; } .bi-thumb .badge.dur { left: auto; right: 5px; }
.bi-thumb .badge.video { background: rgba(124, 92, 255, .88); color: #fff; } .bi-thumb .badge.image { background: rgba(47, 182, 162, .88); color: #04201c; } .bi-thumb .badge.audio { background: rgba(240, 138, 75, .92); color: #2b1203; }
.bi-used { position: absolute; top: 5px; left: 5px; background: var(--accent-d); color: #fff; border-radius: 999px; font-size: 10.5px; min-width: 18px; height: 18px; display: grid; place-items: center; font-weight: 700; }
.bi-name { padding: 5px 7px 6px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bi-actions { position: absolute; top: 4px; right: 4px; display: none; gap: 2px; } .bin-item:hover .bi-actions, .bin-item:focus-within .bi-actions { display: flex; }
.bi-actions .icon-btn { width: 26px; height: 26px; background: rgba(8, 11, 18, .85); color: #fff; } .bi-actions .ic { width: 15px; height: 15px; }
.bin-hint { padding: 8px 12px 12px; font-size: 11.5px; border-top: 1px solid var(--line); }
.bin-list .empty { grid-column: 1 / -1; }

/* ---------- player ---------- */
.player { flex: 1 1 0; min-height: 190px; display: flex; flex-direction: column; background: #07090e; min-width: 0; }
.pl-bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 6px 12px; border-bottom: 1px solid #141a27; min-height: 42px; }
.pl-status { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 12.5px; }
.pl-pill { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--panel-3); color: var(--muted); } .pl-pill.warn { background: rgba(245, 185, 66, .15); color: #f7d58b; } .pl-pill.ok { background: rgba(62, 207, 142, .13); color: #7be0b3; } .pl-pill.bad { background: var(--danger-bg); color: #ff9a9a; } .pl-pill.busy { background: var(--accent-bg); color: var(--accent-2); }
.pl-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 35%, #111827, #07090e 75%); }
.pl-frame { position: relative; background: #000; overflow: hidden; box-shadow: 0 10px 36px rgba(0, 0, 0, .55); outline: 1px solid #222a3c; cursor: pointer; }
.pl-stage:fullscreen { background: #000; } .pl-stage:fullscreen .pl-frame { outline: none; box-shadow: none; }
.pl-live { position: absolute; inset: 0; overflow: hidden; } .pl-crop-box { position: absolute; overflow: hidden; } .pl-rot { position: absolute; }
.pl-srcmedia { position: absolute; max-width: none !important; max-height: none !important; user-select: none; pointer-events: none; }
.pl-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.pl-fx { position: absolute; inset: 0; pointer-events: none; } .fx-vig { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .75) 100%); } .fx-bar { position: absolute; left: 0; right: 0; background: #000; } .fx-bar.top { top: 0; } .fx-bar.bot { bottom: 0; }
.fx-mirror { position: absolute; top: 0; bottom: 0; right: 0; width: 50%; background: rgba(255, 255, 255, .04); border-left: 1px dashed rgba(255, 255, 255, .3); }
.pl-overlay { position: absolute; inset: 0; pointer-events: none; }
.pl-text, .pl-wm { position: absolute; transform: translate(-50%, -50%); cursor: move; pointer-events: auto; white-space: pre-wrap; text-align: center; max-width: 96%; line-height: 1.15; user-select: none; }
.pl-text { text-shadow: 0 2px 6px rgba(0, 0, 0, .65); } .pl-text.boxed { background: rgba(0, 0, 0, .45); padding: .22em .55em; border-radius: 4px; text-shadow: none; } .pl-text.ghost { opacity: .4; outline: 1px dashed rgba(255, 255, 255, .6); } .pl-text:hover, .pl-wm:hover { outline: 1px dashed rgba(138, 164, 255, .9); } .pl-text.sel { outline: 1px solid var(--accent-2); }
.pl-wm.text { text-shadow: 1px 2px 2px rgba(0, 0, 0, .5); white-space: nowrap; } .pl-wm { height: auto; }
.pl-empty { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; max-width: 340px; color: var(--muted); pointer-events: none; } .pl-empty b { color: var(--text); font-size: 16px; }
.pl-busy { position: absolute; inset: 0; background: rgba(5, 8, 14, .78); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; cursor: default; font-weight: 600; }
.pl-controls { flex: none; padding: 4px 12px 8px; background: #0a0d14; border-top: 1px solid #141a27; }
.pl-cropper { position: absolute; inset: 12px; } .pl-cropper .pl-crop-box { box-shadow: 0 0 0 1px #2a3347; }
.crop-shade { position: absolute; background: rgba(0, 0, 0, .62); pointer-events: none; }
.crop-rect { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); cursor: move; touch-action: none; }
.crop-rect .grid3 { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, transparent 33.2%, rgba(255, 255, 255, .5) 33.4%, transparent 33.6%, transparent 66.4%, rgba(255, 255, 255, .5) 66.6%, transparent 66.8%), linear-gradient(to bottom, transparent 33.2%, rgba(255, 255, 255, .5) 33.4%, transparent 33.6%, transparent 66.4%, rgba(255, 255, 255, .5) 66.6%, transparent 66.8%); }
.crop-rect .grid3::after { content: attr(data-size); position: absolute; left: 6px; top: 4px; font: 11px var(--mono); color: #fff; background: rgba(0, 0, 0, .6); padding: 1px 6px; border-radius: 4px; }
.crop-rect .hd { position: absolute; width: 14px; height: 14px; background: #fff; border: 2px solid var(--accent-d); border-radius: 3px; margin: -7px 0 0 -7px; }
.hd.nw { left: 0; top: 0; cursor: nwse-resize; } .hd.n { left: 50%; top: 0; cursor: ns-resize; } .hd.ne { left: 100%; top: 0; cursor: nesw-resize; } .hd.e { left: 100%; top: 50%; cursor: ew-resize; } .hd.se { left: 100%; top: 100%; cursor: nwse-resize; } .hd.s { left: 50%; top: 100%; cursor: ns-resize; } .hd.sw { left: 0; top: 100%; cursor: nesw-resize; } .hd.w { left: 0; top: 50%; cursor: ew-resize; }

/* ---------- timeline ---------- */
.timeline { flex: none; height: var(--tl-h); display: flex; flex-direction: column; background: var(--bg-2); min-height: 0; }
.tl-toolbar { flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; } .tl-toolbar > * { flex: none; } .tl-total { font-size: 12.5px; padding: 0 6px; }
.tl-body { flex: 1; min-height: 0; display: flex; }
.tl-labels { flex: none; width: 84px; background: var(--bg-2); border-right: 1px solid var(--line); overflow: hidden; }
.tl-lab { display: flex; align-items: center; gap: 6px; padding: 0 10px; color: var(--muted); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); } .tl-lab .ic { width: 15px; height: 15px; }
.tl-scroll { flex: 1; min-width: 0; overflow: auto; position: relative; }
.tl-canvas { position: relative; min-height: 100%; }
.tl-ruler { position: relative; border-bottom: 1px solid var(--line); background: var(--bg-2); cursor: pointer; }
.tick { position: absolute; bottom: 0; width: 1px; height: 7px; background: var(--line-2); } .tick.major { height: 15px; background: var(--faint); } .tick span { position: absolute; left: 4px; bottom: 6px; font: 10.5px var(--mono); color: var(--muted); white-space: nowrap; }
.tl-beatcanvas { display: block; height: 10px; border-bottom: 1px solid var(--line); }
.tl-lane { position: relative; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 100%); }
.tl-lane.video { background: rgba(255, 255, 255, .012); } .tl-lane.music.over { background: rgba(240, 138, 75, .1); outline: 1px dashed var(--audio); }
.lane-hint { position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 12.5px; white-space: nowrap; pointer-events: none; } .music-empty { pointer-events: auto; cursor: pointer; } .music-empty:hover { color: var(--muted); }
.tl-playhead { position: absolute; top: 0; left: 0; width: 0; pointer-events: none; z-index: 40; will-change: transform; } .tl-playhead::before { content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: #ff4d6d; box-shadow: 0 0 6px rgba(255, 77, 109, .7); }
.ph-head { position: absolute; left: -7px; top: 0; width: 14px; height: 15px; background: #ff4d6d; clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); pointer-events: auto; cursor: ew-resize; }
.tl-dropline { position: absolute; width: 3px; background: var(--accent-2); box-shadow: 0 0 8px var(--accent); z-index: 45; pointer-events: none; margin-left: -1px; border-radius: 2px; }
.clip-block { position: absolute; top: 5px; bottom: 5px; border-radius: 7px; background-color: #1b2338; background-size: auto 100%; background-repeat: repeat-x; background-position: left center; border: 1px solid #3a4666; overflow: hidden; cursor: grab; touch-action: none; outline: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.clip-block.is-video { border-color: #5a4aa8; } .clip-block.missing { background: repeating-linear-gradient(45deg, #3a1f27, #3a1f27 8px, #2a161c 8px, #2a161c 16px); border-color: var(--danger); }
.clip-block:hover { border-color: var(--accent-2); } .clip-block.selected { border-color: #fff; box-shadow: 0 0 0 2px var(--accent), 0 4px 14px rgba(0, 0, 0, .5); } .clip-block.dragging { opacity: .85; cursor: grabbing; z-index: 80 !important; box-shadow: 0 10px 28px rgba(0, 0, 0, .6); }
.cb-top { position: absolute; left: 0; right: 0; top: 0; padding: 3px 9px 12px; display: flex; align-items: center; gap: 6px; font-size: 11px; background: linear-gradient(rgba(6, 9, 15, .85), transparent); color: #fff; pointer-events: none; }
.cb-n { background: var(--accent-d); border-radius: 4px; padding: 0 5px; font-weight: 700; font-size: 10.5px; } .cb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cb-dur { font: 10.5px var(--mono); opacity: .9; }
.cb-fx { position: absolute; left: 6px; right: 6px; bottom: 4px; display: flex; gap: 3px; overflow: hidden; pointer-events: none; } .cb-fx span { background: rgba(8, 11, 18, .82); color: #cfd8f2; font-size: 9.5px; padding: 0 5px; border-radius: 4px; white-space: nowrap; }
.cb-text-ind { position: absolute; right: 8px; bottom: 5px; background: rgba(8, 11, 18, .82); border-radius: 4px; padding: 1px 3px; pointer-events: none; } .cb-text-ind .ic { width: 12px; height: 12px; }
.trim { position: absolute; top: 0; bottom: 0; width: 9px; cursor: ew-resize; z-index: 3; background: transparent; } .trim.l { left: 0; } .trim.r { right: 0; } .trim:hover, .clip-block.selected .trim { background: linear-gradient(to right, rgba(138, 164, 255, .85), transparent); } .trim.r:hover, .clip-block.selected .trim.r { background: linear-gradient(to left, rgba(138, 164, 255, .85), transparent); }
.join { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; border: 2px solid #5f6d95; background: #202945; color: #dce4ff; font-size: 10px; font-weight: 700; cursor: pointer; display: grid; place-items: center; padding: 0; }
.join:hover { border-color: var(--accent-2); } .join.selected { background: var(--accent-d); border-color: #fff; } .join.cut { width: 14px; height: 30px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, .0); } .join.cut::before { content: ''; width: 3px; height: 24px; border-radius: 2px; background: rgba(255, 255, 255, .45); } .join.cut:hover::before, .join.cut.selected::before { background: var(--accent-2); }
.music-block { position: absolute; top: 5px; bottom: 5px; border-radius: 7px; background: linear-gradient(#2a1c12, #1d130c); border: 1px solid #7a4a28; overflow: hidden; cursor: grab; touch-action: none; } .music-block.selected { border-color: #fff; box-shadow: 0 0 0 2px var(--audio); } .music-block:hover { border-color: var(--audio); }
.mu-wave { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; } .mu-name { position: absolute; left: 8px; top: 3px; display: flex; align-items: center; gap: 5px; font-size: 11px; color: #ffd9b8; background: rgba(20, 12, 6, .6); padding: 0 6px; border-radius: 4px; pointer-events: none; max-width: calc(100% - 20px); overflow: hidden; white-space: nowrap; } .mu-name .ic { width: 12px; height: 12px; } .mu-name em { font-style: normal; opacity: .7; }
.mu-fade { position: absolute; top: 0; bottom: 0; pointer-events: none; } .mu-fade.in { left: 0; background: linear-gradient(to right, rgba(0, 0, 0, .55), transparent); } .mu-fade.out { right: 0; background: linear-gradient(to left, rgba(0, 0, 0, .55), transparent); }
.mu-sec { position: absolute; top: 0; height: 12px; font-size: 9.5px; line-height: 12px; padding: 0 4px; color: #fff; background: rgba(124, 92, 255, .5); border-left: 1px solid rgba(255, 255, 255, .6); overflow: hidden; white-space: nowrap; pointer-events: none; z-index: 3; text-transform: uppercase; letter-spacing: .04em; } .mu-sec.drop { background: rgba(255, 77, 109, .6); } .mu-sec.build { background: rgba(245, 185, 66, .55); } .mu-sec.break { background: rgba(47, 182, 162, .5); }
.sfx-mark { position: absolute; top: 3px; height: 22px; transform: translateX(-8px); display: flex; align-items: center; gap: 4px; cursor: grab; outline: none; touch-action: none; } .sfx-mark i { width: 14px; height: 14px; background: #f5b942; transform: rotate(45deg) scale(.8); border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); } .sfx-mark span { font-size: 10.5px; color: #f7d58b; background: rgba(8, 11, 18, .75); padding: 0 5px; border-radius: 4px; white-space: nowrap; }
.sfx-mark:hover i, .sfx-mark.selected i { background: #fff; } .sfx-mark.selected span { color: #fff; }
.txt-bar { position: absolute; top: 3px; height: 20px; border-radius: 5px; background: rgba(47, 182, 162, .3); border: 1px solid rgba(47, 182, 162, .8); font-size: 11px; padding: 0 6px; color: #b9f0e6; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; line-height: 18px; outline: none; } .txt-bar:hover, .txt-bar.selected { background: rgba(47, 182, 162, .55); color: #fff; }

/* ---------- inspector ---------- */
.inspector { display: flex; flex-direction: column; min-height: 0; background: var(--bg-2); }
.insp-tabs { flex: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); }
.insp-tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px 5px; border-radius: 8px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 10.5px; font-weight: 600; } .insp-tabs button .ic { width: 18px; height: 18px; }
.insp-tabs button:hover { background: var(--panel); color: var(--text); } .insp-tabs button[aria-selected='true'] { background: var(--accent-bg); color: var(--accent-2); box-shadow: inset 0 -2px 0 var(--accent); }
.insp-body { flex: 1; min-height: 0; overflow: auto; padding: 12px 14px 40px; }
.insp-tab { display: flex; flex-direction: column; gap: 4px; }
.insp-clipname { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; } .insp-clipname b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .insp-clipname .muted { margin-left: auto; font-size: 12px; white-space: nowrap; }
.insp-sec { padding: 8px 0 6px; border-bottom: 1px solid var(--line); } .insp-sec:last-child { border-bottom: 0; } .insp-sec h4 { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.insp-hint { font-size: 12.5px; margin: 0 0 8px; line-height: 1.4; } .sub-label { font-size: 12px; margin: 10px 0 4px; } .small { font-size: 12px; }
.insp-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; color: var(--muted); padding: 40px 14px; }
.insp-btnrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.sl-row { margin: 8px 0; } .sl-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12.5px; color: #c8d0e6; font-weight: 550; cursor: default; } .sl-label em { font-style: normal; color: var(--faint); font-size: 11px; font-weight: 400; }
.sl-ctl { display: flex; align-items: center; gap: 8px; } .sl-ctl input[type='range'] { flex: 1; min-width: 0; }
.num { width: 64px; flex: none; background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 6px; font: 12.5px var(--mono); color: var(--text); text-align: right; } .num:focus { outline: none; border-color: var(--accent); } input.num[type='number']::-webkit-inner-spin-button { display: none; }
.unit { font-size: 11px; color: var(--muted); min-width: 0; margin-left: -4px; } .reset { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px; border-radius: 5px; display: grid; place-items: center; } .reset:hover { color: var(--text); background: var(--panel-3); } .reset .ic { width: 14px; height: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; } .chips .chip-btn.on { background: var(--accent-bg); border-color: var(--accent); color: var(--accent-2); } .chip-btn.has-reco { position: relative; } .reco-dot { width: 6px; height: 6px; border-radius: 50%; background: #c14bff; }
.tg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; cursor: pointer; } .tg-label { display: flex; flex-direction: column; font-size: 13px; } .tg-label em { font-style: normal; font-size: 11.5px; color: var(--muted); font-weight: 400; max-width: 300px; }
.swatch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.sw-btn { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 4px; cursor: pointer; color: var(--text); } .sw-btn:hover { border-color: var(--accent-2); } .sw-btn.on { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.swatch .sw-img { aspect-ratio: 16 / 10; background-size: cover; background-position: center; border-radius: 6px; background-color: #222; } .swatch span { display: block; font-size: 11px; margin-top: 4px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reco.corner { position: absolute; top: 6px; left: 6px; padding: 0 5px; font-size: 11px; } .film-look { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 6px; font-size: 12.5px; }
.focus-pick { position: relative; width: 100%; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; cursor: crosshair; touch-action: none; max-height: 190px; margin: 0 auto; } .focus-dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--accent), 0 0 8px rgba(0, 0, 0, .6); background: rgba(108, 140, 255, .4); pointer-events: none; }
.filmstrip { position: relative; height: 40px; border-radius: 6px; margin: 6px 0; background-color: var(--bg); background-size: 100% 100%; border: 1px solid var(--line-2); cursor: pointer; overflow: hidden; touch-action: none; } .fs-range { position: absolute; top: 0; bottom: 0; background: rgba(108, 140, 255, .28); border: 2px solid var(--accent-2); border-radius: 4px; pointer-events: none; } .fs-load { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; }
.size-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; } .crop-info { font-size: 12.5px; margin: 6px 0; }
.fx-list { display: flex; flex-direction: column; gap: 8px; } .fx-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; } .fx-card.on { border-color: var(--accent); background: rgba(108, 140, 255, .07); }
.fx-head { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; text-align: left; cursor: pointer; padding: 2px 0; } .fx-check { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--faint); display: grid; place-items: center; flex: none; } .fx-card.on .fx-check { background: var(--accent-d); border-color: var(--accent); } .fx-check .ic { width: 13px; height: 13px; }
.fx-card p { margin: 3px 0 0 26px; font-size: 12px; } .live-tag { margin-left: auto; font-size: 10px; color: var(--ok); font-style: normal; text-transform: uppercase; letter-spacing: .05em; } .fx-actions { margin: 2px 0 0 0; } .link-btn { background: none; border: 0; color: var(--accent-2); cursor: pointer; font-size: 12px; padding: 2px 0; } .link-btn:hover { text-decoration: underline; }
.trans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; } .trans-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 5px 5px 4px; cursor: pointer; color: var(--text); display: flex; flex-direction: column; gap: 4px; } .trans-card:hover { border-color: var(--accent-2); } .trans-card.on { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); } .trans-card span { font-size: 11px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pair-box .pair { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 12.5px; }
.txt-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; } .txt-item { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; cursor: pointer; text-align: left; color: var(--text); } .txt-item.on { border-color: var(--accent); background: var(--accent-bg); } .txt-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-wrap { position: relative; height: 96px; background: #120d09; border: 1px solid #4a2e1a; border-radius: 9px; overflow: hidden; margin: 6px 0; cursor: pointer; touch-action: none; user-select: none; } .rg-wave, .rg-beats { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rg-sel { position: absolute; top: 0; bottom: 0; border-left: 2px solid #ffb877; border-right: 2px solid #ffb877; background: rgba(240, 138, 75, .12); cursor: grab; } .rg-h { position: absolute; top: 0; bottom: 0; width: 14px; cursor: ew-resize; } .rg-h.l { left: -8px; } .rg-h.r { right: -8px; } .rg-h::after { content: ''; position: absolute; top: 50%; left: 4px; width: 6px; height: 28px; margin-top: -14px; background: #ffb877; border-radius: 3px; }
.rg-play { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; display: none; pointer-events: none; box-shadow: 0 0 6px #fff; } .rg-controls { display: flex; align-items: center; gap: 10px; margin: 6px 0; flex-wrap: wrap; }
.track-card { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; color: var(--audio); } .tc-body { display: flex; flex-direction: column; min-width: 0; } .tc-name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mu-info { margin: 4px 0; }
.cv-row { display: grid; grid-template-columns: 1fr; gap: 0; padding: 6px 0; border-bottom: 1px solid var(--line); } .cv-name { display: flex; align-items: center; gap: 6px; font-size: 12.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sfx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .sfx-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; } .sfx-card p { margin: 2px 0 4px; font-size: 11.5px; min-height: 32px; } .sfx-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sfx-row { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px 2px; margin-bottom: 8px; cursor: pointer; } .sfx-row.on { border-color: var(--accent); } .sfx-row-head { display: flex; align-items: center; gap: 4px; }
.wm-pic { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; margin: 8px 0; }
.cat-cards { display: flex; flex-direction: column; gap: 6px; } .cat-card { display: flex; flex-direction: column; gap: 1px; align-items: flex-start; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; color: var(--text); } .cat-card:hover { border-color: var(--faint); } .cat-card.on { border-color: var(--accent); background: var(--accent-bg); } .cat-card span { font-size: 12px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; } .facts div { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.render-box { display: flex; flex-direction: column; gap: 8px; } .render-line { display: flex; align-items: center; justify-content: space-between; } .ok-box { display: flex; gap: 10px; align-items: center; background: rgba(62, 207, 142, .1); border: 1px solid rgba(62, 207, 142, .4); color: #8ae6bc; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.render-history { margin-top: 10px; } .rh-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 12.5px; }

/* ---------- little animated previews of every transition ---------- */
@property --sweep { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.tp { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 5px; background: #111; }
.tp i { position: absolute; inset: 0; animation-duration: 2.2s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
.tp .a { background: linear-gradient(135deg, #ff7a59, #ffc371); } .tp .b { background: linear-gradient(135deg, #3b82f6, #8b5cf6); }
.tp-cut .b { animation-name: tp-cut; animation-timing-function: steps(1); } @keyframes tp-cut { 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }
.tp-fade .b { animation-name: tp-fade; } @keyframes tp-fade { 0%, 12% { opacity: 0; } 50%, 85% { opacity: 1; } 100% { opacity: 0; } }
.tp-fadeblack::after, .tp-fadewhite::after { content: ''; position: absolute; inset: 0; z-index: 3; animation: tp-dip 2.2s infinite ease-in-out; } .tp-fadeblack::after { background: #000; } .tp-fadewhite::after { background: #fff; }
.tp-fadeblack .b, .tp-fadewhite .b { animation-name: tp-cut; animation-timing-function: steps(1); } @keyframes tp-dip { 0%, 15% { opacity: 0; } 40%, 55% { opacity: 1; } 80%, 100% { opacity: 0; } }
.tp-wipeleft .b { animation-name: tp-wl; } @keyframes tp-wl { 0%, 12% { clip-path: inset(0 0 0 100%); } 50%, 85% { clip-path: inset(0); } 100% { clip-path: inset(0 0 0 100%); } }
.tp-wiperight .b { animation-name: tp-wr; } @keyframes tp-wr { 0%, 12% { clip-path: inset(0 100% 0 0); } 50%, 85% { clip-path: inset(0); } 100% { clip-path: inset(0 100% 0 0); } }
.tp-wipeup .b { animation-name: tp-wu; } @keyframes tp-wu { 0%, 12% { clip-path: inset(100% 0 0 0); } 50%, 85% { clip-path: inset(0); } 100% { clip-path: inset(100% 0 0 0); } }
.tp-wipedown .b { animation-name: tp-wd; } @keyframes tp-wd { 0%, 12% { clip-path: inset(0 0 100% 0); } 50%, 85% { clip-path: inset(0); } 100% { clip-path: inset(0 0 100% 0); } }
.tp-slideleft .a, .tp-smoothleft .a { animation-name: tp-sl-a; } .tp-slideleft .b, .tp-smoothleft .b { animation-name: tp-sl-b; } @keyframes tp-sl-a { 0%, 12% { transform: none; } 50%, 85% { transform: translateX(-100%); } 100% { transform: none; } } @keyframes tp-sl-b { 0%, 12% { transform: translateX(100%); } 50%, 85% { transform: none; } 100% { transform: translateX(100%); } }
.tp-slideright .a, .tp-smoothright .a { animation-name: tp-sr-a; } .tp-slideright .b, .tp-smoothright .b { animation-name: tp-sr-b; } @keyframes tp-sr-a { 0%, 12% { transform: none; } 50%, 85% { transform: translateX(100%); } 100% { transform: none; } } @keyframes tp-sr-b { 0%, 12% { transform: translateX(-100%); } 50%, 85% { transform: none; } 100% { transform: translateX(-100%); } }
.tp-slideup .a { animation-name: tp-su-a; } .tp-slideup .b { animation-name: tp-su-b; } @keyframes tp-su-a { 0%, 12% { transform: none; } 50%, 85% { transform: translateY(-100%); } 100% { transform: none; } } @keyframes tp-su-b { 0%, 12% { transform: translateY(100%); } 50%, 85% { transform: none; } 100% { transform: translateY(100%); } }
.tp-slidedown .a { animation-name: tp-sd-a; } .tp-slidedown .b { animation-name: tp-sd-b; } @keyframes tp-sd-a { 0%, 12% { transform: none; } 50%, 85% { transform: translateY(100%); } 100% { transform: none; } } @keyframes tp-sd-b { 0%, 12% { transform: translateY(-100%); } 50%, 85% { transform: none; } 100% { transform: translateY(-100%); } }
.tp-circleopen .b { animation-name: tp-co; } @keyframes tp-co { 0%, 12% { clip-path: circle(0% at 50% 50%); } 50%, 85% { clip-path: circle(75% at 50% 50%); } 100% { clip-path: circle(0% at 50% 50%); } }
.tp-circleclose .a { z-index: 2; animation-name: tp-cc; } .tp-circleclose .b { animation: none; } @keyframes tp-cc { 0%, 12% { clip-path: circle(75% at 50% 50%); } 50%, 85% { clip-path: circle(0% at 50% 50%); } 100% { clip-path: circle(75% at 50% 50%); } }
.tp-radial .b { animation-name: tp-rad; -webkit-mask-image: conic-gradient(#000 var(--sweep), transparent var(--sweep)); mask-image: conic-gradient(#000 var(--sweep), transparent var(--sweep)); } @keyframes tp-rad { 0%, 12% { --sweep: 0deg; } 50%, 85% { --sweep: 361deg; } 100% { --sweep: 0deg; } }
.tp-zoomin .a { animation-name: tp-zi; z-index: 2; } @keyframes tp-zi { 0%, 12% { transform: none; opacity: 1; } 50%, 85% { transform: scale(3); opacity: 0; } 100% { transform: none; opacity: 1; } }
.tp-pixelize .b { animation-name: tp-px; } @keyframes tp-px { 0%, 12% { opacity: 0; filter: blur(0); } 30% { filter: blur(4px) contrast(2); } 50%, 85% { opacity: 1; filter: none; } 100% { opacity: 0; } }
.tp-hblur .a { animation-name: tp-hb-a; } .tp-hblur .b { animation-name: tp-hb-b; } @keyframes tp-hb-a { 0%, 12% { filter: none; transform: none; } 45% { filter: blur(6px); transform: translateX(-30%); } 50%, 85% { opacity: 0; } 100% { filter: none; transform: none; opacity: 1; } } @keyframes tp-hb-b { 0%, 40% { opacity: 0; transform: translateX(30%); filter: blur(6px); } 55%, 85% { opacity: 1; transform: none; filter: none; } 100% { opacity: 0; } }
.tp-diagtl .b { animation-name: tp-dtl; } @keyframes tp-dtl { 0%, 12% { clip-path: polygon(0 0, 0 0, 0 0); } 50%, 85% { clip-path: polygon(0 0, 260% 0, 0 260%); } 100% { clip-path: polygon(0 0, 0 0, 0 0); } }
.tp-diagbr .b { animation-name: tp-dbr; } @keyframes tp-dbr { 0%, 12% { clip-path: polygon(100% 100%, 100% 100%, 100% 100%); } 50%, 85% { clip-path: polygon(100% 100%, -160% 100%, 100% -160%); } 100% { clip-path: polygon(100% 100%, 100% 100%, 100% 100%); } }
.tp-horzopen .b { animation-name: tp-ho; } @keyframes tp-ho { 0%, 12% { clip-path: inset(0 50% 0 50%); } 50%, 85% { clip-path: inset(0); } 100% { clip-path: inset(0 50% 0 50%); } }
.tp-vertopen .b { animation-name: tp-vo; } @keyframes tp-vo { 0%, 12% { clip-path: inset(50% 0 50% 0); } 50%, 85% { clip-path: inset(0); } 100% { clip-path: inset(50% 0 50% 0); } }

/* ---------- auto edit drawer ---------- */
.drawer-back { display: flex; justify-content: flex-end; padding: 0; align-items: stretch; }
.modal-card.drawer { width: min(600px, 100%); height: 100%; max-height: none; border-radius: 0; border-width: 0 0 0 1px; animation: slidein .2s ease-out; } @keyframes slidein { from { transform: translateX(40px); opacity: .4; } }
.ae-intro { margin-bottom: 14px; } .ae-block { padding: 14px 0; border-top: 1px solid var(--line); } .ae-block h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.ae-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0; } .ae-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ae-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; max-height: 190px; overflow: auto; } .ae-m { position: relative; padding: 0; border: 2px solid var(--line-2); border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--bg); aspect-ratio: 1; opacity: .45; } .ae-m img { width: 100%; height: 100%; object-fit: cover; display: block; } .ae-m.on { opacity: 1; border-color: var(--accent); } .ae-m i { position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-d); display: none; place-items: center; } .ae-m.on i { display: grid; } .ae-m i .ic { width: 12px; height: 12px; }
.ae-foot { display: flex; gap: 8px; justify-content: flex-end; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 8px; position: sticky; bottom: -16px; background: var(--panel); padding-bottom: 6px; } .ae-foot.wrap { flex-wrap: wrap; justify-content: flex-start; position: static; }
.learn-row { display: flex; gap: 8px; margin: 8px 0; } .learn-row .input { flex: 1; } .learn-state { display: flex; align-items: center; gap: 8px; font-size: 13px; min-height: 22px; margin-bottom: 6px; } .ok-text { color: var(--ok); display: inline-flex; align-items: center; gap: 6px; } .err-text { color: #ff9a9a; }
.spinner.small { width: 16px; height: 16px; border-width: 2px; }
.ae-run { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 0; } .ae-log { width: 100%; max-height: 340px; overflow: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13px; } .ae-step { display: flex; gap: 10px; align-items: baseline; padding: 3px 0; color: var(--muted); } .ae-step.now { color: var(--text); } .ae-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; } .ae-step.now .ae-dot { background: var(--accent); animation: pulse 1s infinite; }
.ae-result { display: flex; flex-direction: column; gap: 12px; } .ae-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .ae-stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; } .ae-stat b { display: block; font-size: 19px; color: var(--accent-2); } .ae-stat span { font-size: 11.5px; }
.chips.static .chip-btn { cursor: default; } .ae-notes { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; } .ae-notes li.warn { color: #f7d58b; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .ed-body { grid-template-columns: 208px minmax(0, 1fr) 318px; } .insp-tabs button span { font-size: 9.5px; } }
@media (max-width: 980px) {
  .ed-body { grid-template-columns: minmax(0, 1fr) 300px; } .bin { position: absolute; z-index: 30; left: 0; top: 52px; bottom: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); } .ed-body.bin-open .bin { transform: none; } .bin-toggle { display: inline-grid; }
  .ed-center { border-left: 0; } .ed-top .lbl-always { display: none; }
}
@media (max-width: 760px) {
  main#app.editor-main { overflow: auto; } .editor { height: auto; min-height: 100%; } .ed-top { height: auto; flex-wrap: wrap; padding: 6px 10px; overflow: visible; } .ed-name { width: 100%; order: 5; flex: 1 1 100%; } .ed-body { display: flex; flex-direction: column; } .ed-center { min-height: 78vh; } .inspector { max-height: none; } .insp-body { overflow: visible; }
  .insp-tabs { grid-template-columns: repeat(4, 1fr); } .tl-labels { width: 54px; } .tl-lab { font-size: 0; padding: 0 0 0 18px; } .tl-lab .ic { width: 18px; height: 18px; }
  .modal-card.drawer { width: 100%; } .ae-2 { grid-template-columns: 1fr; } .ae-stats { grid-template-columns: repeat(2, 1fr); }
}

.ae-block > .input, .ae-block > textarea.input { display: block; width: 100%; margin: 6px 0; } .ae-block > .tg-row { margin-top: 4px; }
.recall-form select.input { min-width: 0; width: 100%; }

.lbl-short { display: none; } @media (max-width: 1280px) { .lbl-long { display: none; } .lbl-short { display: inline; } }
.bin > .seg { max-width: calc(100% - 20px); } .bin .seg button { padding: 3px 7px; }

.cb-mute-ind { position: absolute; right: 8px; bottom: 22px; background: rgba(8, 11, 18, .82); border-radius: 4px; padding: 1px 3px; pointer-events: none; color: #ff9a9a; } .cb-mute-ind .ic { width: 12px; height: 12px; }
