/* TeamAnim Feedback - the EOV dark look, compact: rows of 24 px, small controls,
   so long tables show as many rows as possible (docs/mockup). */

:root {
  --bg: #2b2b2b; --bg-dark: #232323; --bg-panel: #262626; --bg-alt: #353535; --field: #3c3c3c;
  --head: #404040; --line: #555555; --line-soft: #353535; --text: #e0e0e0; --text-2: #c8c8c8;
  --text-3: #9a9a9a; --accent: #4a9eff; --accent-ink: #0e1620; --sel: #3d5675; --sel-row: #33404f;
  --green: #4CAF50; --amber: #e0a030; --red: #ff8a80; --row: 24px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 12px "Segoe UI", system-ui, sans-serif; }
#app { height: 100%; display: flex; flex-direction: column; }
a { color: var(--accent); } a:hover { color: #7db8ff; }
button, input, select, textarea { font: inherit; color: var(--text); }
button { height: 22px; padding: 0 8px; background: var(--field); border: 1px solid var(--line); border-radius: 3px;
  cursor: pointer; white-space: nowrap; }
button:hover { border-color: #777; }
button:disabled { opacity: .5; cursor: default; }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
button.on { background: var(--sel); border-color: var(--accent); color: #fff; }
button.flat { background: transparent; border-color: transparent; color: var(--text-3); }
button.flat:hover { color: var(--text); }
button.danger { color: var(--red); }
input, select, textarea { background: var(--field); border: 1px solid var(--line); border-radius: 3px; }
input, select { height: 22px; padding: 0 6px; }
input[type=checkbox] { height: auto; }
textarea { padding: 4px 6px; resize: vertical; width: 100%; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 1px solid var(--accent); outline-offset: 0; }
.muted { color: var(--text-3); }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 6px; }
.sep { width: 1px; height: 18px; background: var(--line); flex: none; }
.ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sr { position: absolute; left: -9999px; }

/* chips */
.chip { display: inline-flex; align-items: center; height: 16px; padding: 0 5px; border-radius: 2px; font-size: 11px;
  font-weight: 600; white-space: nowrap; }
.chip.empty { color: #6f6f6f; font-weight: 400; }
.dot-new { width: 6px; height: 6px; border-radius: 3px; background: var(--accent); flex: none; }
.avatar { width: 18px; height: 18px; border-radius: 9px; background: var(--line); display: inline-flex;
  align-items: center; justify-content: center; font-size: 9px; font-weight: 700; flex: none; }

/* top bar */
.topbar { height: 36px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 10px;
  background: var(--bg-dark); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--text);
  text-decoration: none; }
.topbar nav { display: flex; gap: 2px; }
.topbar nav a { height: 24px; padding: 0 10px; display: flex; align-items: center; border-radius: 3px;
  color: var(--text-2); text-decoration: none; }
.topbar nav a.on { background: var(--head); color: #fff; }
.queue { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: 3px; color: var(--text-2); }
.queue .lamp { width: 8px; height: 8px; border-radius: 4px; background: var(--green); }
.queue.busy .lamp { background: var(--amber); }
.queue.off .lamp { background: #c9302c; }
button.queue.cloud { cursor: pointer; font: inherit; }
button.queue.cloud:hover { border-color: var(--text-2); }
.queue.cloud.none .lamp { background: #6a6a6a; }
.cloud-box { display: flex; flex-direction: column; gap: 8px; line-height: 1.4; }
.cloud-box .row { display: flex; gap: 6px; }
.cloud-box .row input { flex: 1; }
.cloud-box .mono { font-family: Consolas, monospace; word-break: break-all; }

/* filter bar */
.filters { height: 32px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 10px;
  background: #2f2f2f; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pill { height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11px; background: var(--bg-alt); color: var(--text-2); }

/* body: table + panel */
.body { flex: 1; min-height: 0; display: flex; }
.table-wrap { flex: 1; min-width: 0; overflow: auto; }
.grid { display: grid; align-items: center; }
.thead { position: sticky; top: 0; z-index: 2; height: 26px; background: var(--head); border-bottom: 1px solid var(--line);
  color: var(--text-2); font-weight: 600; }
.thead > div { padding: 0 6px; display: flex; align-items: center; gap: 5px; min-width: 0; }
.col-dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.group-head { width: 100%; height: 26px; display: flex; align-items: center; gap: 8px; padding: 0 8px;
  background: var(--head); border: none; border-bottom: 1px solid var(--line); border-radius: 0; text-align: left; }
.trow { height: var(--row); border-bottom: 1px solid var(--line-soft); }
.trow:nth-child(even) { background: var(--bg-alt); }
.trow.sel { background: var(--sel-row); outline: 1px solid rgba(74, 158, 255, .6); outline-offset: -1px; }
.trow > .name { padding: 0 8px; cursor: pointer; }
.cell { height: calc(var(--row) - 2px); margin: 0 2px; display: flex; align-items: center; gap: 4px; padding: 0 4px;
  background: transparent; border: 1px solid transparent; border-radius: 2px; text-align: left; min-width: 0; }
.cell:hover { border-color: var(--line); }
.check-cell { display: flex; align-items: center; justify-content: center; height: 100%; cursor: pointer; }
.check-cell.ro { cursor: default; }
.check-cell input { width: 15px; height: 15px; margin: 0; cursor: inherit; accent-color: var(--accent); }
.check-head { justify-content: center; text-align: center; }
.kind-mark { font-size: 11px; margin-right: 8px; }
.cell.sel { background: var(--sel); border-color: var(--accent); }
.cell img.thumb { height: calc(var(--row) - 6px); aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line);
  background: #1d2126; }
.add-row { width: 100%; height: 22px; padding: 0 8px 0 26px; background: transparent; border: none;
  border-bottom: 1px solid var(--line-soft); border-radius: 0; color: var(--text-3); text-align: left; }
.thumbs { --row: 38px; }

/* review panel */
.panel { width: 640px; flex: none; display: flex; flex-direction: column; background: var(--bg-panel);
  border-left: 1px solid var(--line); min-height: 0; }
.panel-head { flex: none; padding: 6px 10px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.panel-title { font-weight: 600; font-size: 13px; }
.menu { position: absolute; z-index: 20; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5); padding: 3px 0; min-width: 220px; max-height: 360px; overflow: auto; }
.menu > button { width: 100%; height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border: none;
  border-radius: 0; background: transparent; text-align: left; }
.menu > button:hover, .menu > button.on { background: var(--sel); }
.menu img { width: 48px; height: 27px; object-fit: cover; background: #1a1a1a; border: 1px solid var(--line); }
.relative { position: relative; }

/* player */
.player { flex: none; padding: 8px 16px 0; }
.stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #161616; border: 1px solid var(--line);
  overflow: hidden; }
.stage video, .stage img.still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .badge { position: absolute; padding: 2px 6px; background: rgba(0, 0, 0, .65); pointer-events: none; }
.stage .meta { right: 6px; top: 6px; color: var(--text-2); }
.stage .old { left: 6px; bottom: 6px; background: var(--amber); color: #1d1606; font-weight: 600; }
.stage .wait { inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .55);
  color: var(--text-2); font-size: 13px; }
/* the timeline: a track 4 px high in the middle of an 18 px high strip (easy to hit), a round handle */
.strip { position: relative; height: 18px; margin: 0 7px; cursor: pointer; touch-action: none; }
.strip::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 2px;
  background: #3a3a3a; }
.strip .fill { position: absolute; left: 0; top: 7px; height: 4px; border-radius: 2px; background: var(--accent);
  pointer-events: none; }
.strip:hover::before, .strip:hover .fill { top: 6px; height: 6px; border-radius: 3px; }
.strip .head { position: absolute; top: 3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 6px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); pointer-events: none; }
.strip .mark { position: absolute; width: 6px; height: 6px; border: none; padding: 0; margin-left: -3px; }
.strip .mark.drawing { top: 0; border-radius: 3px; background: var(--amber); }
.strip .mark.comment { bottom: 0; border-radius: 1px; background: var(--accent); }
.strip .range { position: absolute; top: 4px; bottom: 4px; background: rgba(74, 158, 255, .15);
  border-left: 2px solid var(--accent); border-right: 2px solid var(--accent); pointer-events: none; }
.strip .range-x { position: absolute; right: -2px; top: -1px; height: 14px; width: 14px; padding: 0; line-height: 12px;
  font-size: 11px; background: var(--accent); color: var(--accent-ink); border: none; border-radius: 0 0 0 3px;
  pointer-events: auto; }
.swatch { width: 18px; height: 18px; padding: 0; border-radius: 9px; border: 2px solid var(--line); }
.swatch.on { border-color: #fff; }

/* tabs, compose, feed */
.tabs { flex: none; display: flex; padding: 0 16px; border-bottom: 1px solid var(--line); margin-top: 4px; }
.tabs button { height: 28px; background: transparent; border: none; border-bottom: 2px solid transparent;
  border-radius: 0; color: var(--text-3); }
.tabs button.on { border-bottom-color: var(--accent); color: #fff; }
.compose { flex: none; padding: 6px 16px; display: flex; flex-direction: column; gap: 5px; }
.drop { min-height: 40px; border: 1px dashed #777; border-radius: 3px; display: flex; align-items: center;
  justify-content: center; gap: 8px; color: var(--text-2); padding: 6px; }
.drop.over { border-color: var(--accent); background: rgba(74, 158, 255, .08); }
.pending { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.feed { flex: 1; min-height: 0; overflow: auto; padding: 0 16px 10px; border-top: 1px solid var(--line); }
.divider { display: flex; align-items: center; gap: 8px; margin: 8px 0 2px; color: var(--text-3); font-size: 11px;
  font-weight: 600; letter-spacing: .5px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.entry { padding: 6px 0; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 3px; }
.entry.reply { margin-left: 24px; }
.entry.pinned { border-left: 2px solid var(--amber); padding-left: 6px; }
.entry .text { line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.frame-link { height: 20px; padding: 0 6px; background: #2f3a48; color: #9cc8ff; border: 1px solid #3d5675;
  border-radius: 3px; }
.entry .actions { display: flex; gap: 10px; }
.entry .actions button { height: auto; padding: 0; background: none; border: none; color: var(--text-3); }
.entry .actions button:hover { color: var(--text); }
.files { color: var(--text-3); }

/* settings and simple pages */
.page { flex: 1; min-height: 0; overflow: auto; padding: 16px; }
.card { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 4px; margin-bottom: 16px; }
.card-head { height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--head);
  border-bottom: 1px solid var(--line); font-weight: 600; }
.list-row { display: grid; align-items: center; gap: 6px; min-height: 28px; padding: 2px 8px;
  border-bottom: 1px solid var(--line-soft); }
.list-row:nth-child(even) { background: var(--bg-alt); }
.list-head { color: var(--text-3); min-height: 24px; }
.center { display: flex; align-items: center; justify-content: center; }
.login { margin: auto; width: 320px; display: flex; flex-direction: column; gap: 8px; padding: 20px;
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: 4px; }
.login h1 { margin: 0 0 6px; font-size: 16px; }
.login input { height: 28px; }
.login button { height: 28px; }
.error { color: var(--red); min-height: 16px; }

/* modal and toast */
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); display: flex; align-items: center;
  justify-content: center; z-index: 50; }
.modal { width: 420px; max-width: 95vw; background: var(--bg-panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.modal-title { font-weight: 600; font-size: 13px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 6px; }
.modal input, .modal select { width: 100%; height: 26px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 8px 14px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 4px; opacity: 0; pointer-events: none;
  transition: opacity .2s; z-index: 60; }
#toast.show { opacity: 1; }
#toast.error { border-color: #c9302c; color: var(--red); }

@media (max-width: 1100px) {
  .body { flex-direction: column; }
  .panel { width: 100%; border-left: none; border-top: 1px solid var(--line); }
}

/* project settings (docs/mockup_settings, A2): tabs on top, everything a plain sheet */
.settings { display: flex; flex-direction: column; }
.settings-tabs { padding: 0; margin: 6px 0 12px; }
.settings-tabs button { height: 32px; padding: 0 14px; font-size: 13px; }
.settings-body { max-width: 980px; display: flex; flex-direction: column; gap: 10px; }
.settings-bar { min-height: 26px; flex-wrap: wrap; }
.settings-note { line-height: 1.6; }
.sheet { width: 100%; border-collapse: collapse; }
.sheet.narrow { max-width: 640px; }
.sheet td, .sheet th { border: 1px solid #3e3e3e; padding: 0; height: 28px; }
.sheet th { background: var(--head); font-weight: 600; text-align: left; padding: 0 8px; }
.sheet td.num { width: 40px; text-align: center; color: var(--text-3); background: var(--bg-alt); font-size: 11px; }
.sheet td.chk { width: 32px; text-align: center; }
.sheet td.act { width: 36px; text-align: center; }
.sheet td.pad { padding: 0 8px; }
.sheet td.tools { width: 1%; white-space: nowrap; text-align: right; padding: 0 4px; }
.sheet tr.grp td { background: #353d47; }
.sheet tr.sel td { background: var(--sel-row); }
.sheet tr.blank td { background: #2a3542; }
.sheet tr.hidden-col input { color: var(--text-3); }
.cell-input { width: 100%; height: 28px; border: none; border-radius: 0; background: transparent; padding: 0 8px; }
.cell-input:focus { outline: 2px solid var(--accent); outline-offset: -2px; background: #2a3542; }
.cell-input.group-name { font-weight: 700; flex: 1; }
.add-line { width: 100%; text-align: left; }
.badge-cell { width: 140px; text-align: center; }
.badge { display: inline-block; padding: 1px 9px; border-radius: 9px; font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; }
.swatches { width: 1%; white-space: nowrap; padding: 0 8px !important; }
.swatches .swatch { margin-right: 4px; vertical-align: middle; }
.seg { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.seg button { border: none; border-radius: 0; background: #333; }
.seg button.on { background: var(--sel); color: #fff; }
.other-role { padding: 0 8px; color: var(--amber); }
.header-preview { gap: 0; flex-wrap: wrap; }
.header-preview .muted { margin-right: 8px; }
.hcell { background: var(--head); border: 1px solid var(--line); padding: 4px 10px; font-weight: 600; margin-left: -1px; }
.invite-box { background: var(--bg-panel); border: 1px solid var(--accent); border-radius: 4px; padding: 10px;
  display: flex; flex-direction: column; gap: 8px; }
.sheet td.num button { font-size: 13px; padding: 0 6px; }

/* the row-name column and the review panel change width by dragging (docs/scr 16, 2026-12-03) */
.table-wrap { --namew: 300px; }
.thead > .name-head { position: relative; align-self: stretch; }
.col-grip, .panel-grip { position: absolute; z-index: 3; cursor: col-resize; touch-action: none; }
.col-grip { right: -4px; top: 0; bottom: 0; width: 8px; }
.col-grip::after { content: ""; position: absolute; left: 3px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.col-grip:hover::after, .panel-grip:hover { background: var(--accent); }
.panel { position: relative; }
.panel-grip { left: -3px; top: 0; bottom: 0; width: 6px; }
body.resizing, body.resizing * { cursor: col-resize !important; user-select: none; }
body.resizing video { pointer-events: none; }
.panel-rest { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* the player's bar - one row as in Kitsu's player; the same in full screen */
.player .strip { margin-top: 4px; margin-bottom: 2px; }
.pbar { display: flex; align-items: center; flex-wrap: wrap; gap: 1px; min-height: 34px; padding: 2px; background: #1f1f1f;
  border: 1px solid var(--line); border-top: none; }
.pbar .sep { margin: 0 3px; height: 16px; }
.ib { height: 28px; min-width: 26px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; border-radius: 4px; color: var(--text-2); }
.ib:hover { background: #333; border-color: transparent; color: #fff; }
.ib.on { background: #34355a; border-color: transparent; color: #a9a6ff; }
.ib:disabled { opacity: .35; }
.ib.txt { font-size: 12px; min-width: 34px; }
.ib.has-menu { position: relative; }
.ib.has-menu::after { content: ""; position: absolute; right: 3px; bottom: 3px; border: 3px solid transparent;
  border-right-color: currentColor; border-bottom-color: currentColor; opacity: .6; }
.ico { width: 17px; height: 17px; display: inline-flex; }
.ico svg { width: 100%; height: 100%; }
.pbar .tc { font: 12px Consolas, monospace; color: var(--text-2); padding: 0 6px; white-space: nowrap; }
.pbar .fileno { min-width: 18px; text-align: center; color: var(--text-2); font-variant-numeric: tabular-nums; }
.wdot { display: inline-block; border-radius: 50%; background: #d8d8d8; }
.cdot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; border: 1px solid rgba(255, 255, 255, .35); padding: 0; }
button.cdot { width: 22px; height: 22px; }
button.cdot.on { outline: 2px solid #fff; outline-offset: 1px; }

/* small menus that open from a button: above it in the player, below it elsewhere */
.pop { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); z-index: 30;
  background: #2a2a33; border: 1px solid #44444f; border-radius: 6px; padding: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .55); display: flex; flex-direction: column; gap: 2px; min-width: 40px; }
.pop.right { left: auto; right: 0; transform: none; max-height: 320px; overflow: auto; }
.pop > button, .pop > a > button { width: 100%; justify-content: flex-start; text-align: left; background: transparent;
  border-color: transparent; height: 26px; display: flex; align-items: center; gap: 6px; }
.pop > button:hover, .pop > a > button:hover, .pop > button.on { background: #3a3a48; }
.pop > a { text-decoration: none; }
.pop-col { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.pop-col .ib { width: 30px; }
.palette { display: grid; grid-template-columns: repeat(4, 22px); gap: 6px; padding: 4px; }
.pbar .pop:has(.palette), .pbar .pop:has(.pop-col) { min-width: 0; }
.pbar .pop { white-space: nowrap; }

/* the files of one revision under the player (Kitsu: one revision may hold several videos) */
.files-strip { display: flex; gap: 6px; padding: 6px; overflow-x: auto; background: #1f1f1f; border: 1px solid var(--line);
  border-top: none; }
.file-tile { flex: none; width: 112px; height: auto; padding: 0; display: flex; flex-direction: column; gap: 2px;
  background: #2c2c2c; border: 2px solid transparent; border-radius: 4px; overflow: hidden; color: var(--text-3);
  font-size: 11px; }
.file-tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #151515; display: block; }
.file-tile span { padding: 0 4px 2px; text-align: left; }
.file-tile.on { border-color: #23d160; color: var(--text); }
.file-tile:hover { border-color: #777; }
.file-tile.on:hover { border-color: #23d160; }

/* full screen: the whole player box - the picture grows, the bar and the files stay under it */
.fs-tip { position: fixed; z-index: 50; max-width: 360px; padding: 3px 7px; background: #1b1b1b; color: var(--text);
  border: 1px solid #4a4a4a; border-radius: 3px; font-size: 12px; pointer-events: none; white-space: normal; }
.player:fullscreen { padding: 0; background: #111; display: flex; flex-direction: column; }
.player:fullscreen .stages { flex: 1; min-height: 0; }
.player:fullscreen .stage { height: 100%; aspect-ratio: auto; border: none; }
.player:fullscreen .strip { margin-top: 0; }

/* the status of a comment: the same badges as in the table */
.status-pick { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 6px; }
.pop.right .chip { height: 18px; }
.stage.empty video, .stage.empty img.still, .stage.empty canvas { visibility: hidden; }
.stage.empty .wait { background: transparent; }
/* a video that plays while still being processed: the note is a small badge, not a curtain */
.stage:not(.empty) .wait { inset: auto; left: 6px; top: 6px; display: block; background: rgba(0, 0, 0, .65); font-size: 11px; }
.stage.empty { background: #2e2e2e; }

/* chevrons: one visible size everywhere (groups, revision menu, status menu, drop-down lists) - 2026-12-03 */
.chev { width: 16px; height: 16px; flex: none; display: inline-flex; color: var(--text-2); transition: transform .12s; }
.chev svg { width: 100%; height: 100%; }
.chev.closed { transform: rotate(-90deg); }
.group-head:hover .chev, button:hover > .chev { color: #fff; }
.with-chev { display: inline-flex; align-items: center; gap: 3px; padding-right: 4px; }
.status-pick .chev { width: 14px; height: 14px; }
.sheet td.num button .chev { vertical-align: middle; }
select { appearance: none; -webkit-appearance: none; padding-right: 24px; background-repeat: no-repeat;
  background-position: right 5px center; background-size: 14px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8c8c8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
select option { background: var(--field); }
.ib.has-menu::after { right: 2px; bottom: 2px; border-width: 4px; opacity: .85; }

/* compare: B beside A (side by side) or over A, cut by a line to drag (wipe); one bar drives both */
.stages { position: relative; display: flex; gap: 4px; }
.stages > .stage { flex: 1 1 0; min-width: 0; }
.stages.wipe > .stage.b { position: absolute; inset: 0; border-color: transparent; background: transparent; pointer-events: none; }
.stages.wipe > .stage.b video, .stages.wipe > .stage.b img.still { background: #161616; }
.wipe-line { display: none; position: absolute; top: 0; bottom: 0; width: 13px; margin-left: -6px; cursor: ew-resize;
  z-index: 3; touch-action: none; }
.wipe-line::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; background: #fff;
  box-shadow: 0 0 3px rgba(0, 0, 0, .8); }
.wipe-line::after { content: "‹›"; position: absolute; left: -3px; top: 50%; width: 19px; height: 19px; margin-top: -10px;
  border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; line-height: 18px;
  text-align: center; box-shadow: 0 0 3px rgba(0, 0, 0, .8); }
.stages.cmp .meta { max-width: calc(100% - 12px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stages.wipe .wipe-line { display: block; }
.stage .cmp-label { display: none; bottom: 6px; color: #fff; font-weight: 600; text-transform: none; }
.stages.cmp .cmp-label { display: block; }
.stage .cmp-label.a { left: 6px; }
.stage .cmp-label.b { right: 6px; }
.stages.cmp .old { display: none; }
.cmp-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; min-width: 0; }
.cmp-bar select { min-width: 0; max-width: 50%; }
.player:fullscreen .cmp-bar { margin: 6px 8px; }
