/* Arnold Review, design v5 "Film Stock": graphite tool, film-box yellow for everything you act on,
   time printed like film edge code. Quick exponential motion that always carries state. */
:root {
  --bg: #111214;
  --s1: #17181b;
  --s2: #1e1f22;
  --s3: #26272b;
  --s4: #303136;
  --hair: rgba(236, 235, 231, .07);
  --hair2: rgba(236, 235, 231, .12);
  --line: #34353b;
  --text: #ecebe7;
  --text2: #c9c8c2;
  --muted: #8f9096;
  --faint: #63646b;
  --accent: #ffc21a;
  --accent2: #ffd257;
  --on-accent: #141414;
  --accent-soft: rgba(255, 194, 26, .12);
  --accent-line: rgba(255, 194, 26, .62);
  --ok: #46c28e;
  --warn: #f29b38;
  --bad: #ff5a4f;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --fast: .16s;
  --mid: .26s;
  --shadow: 0 22px 54px rgba(0, 0, 0, .55), 0 0 0 1px rgba(236, 235, 231, .06);
  --lift: 0 10px 26px rgba(0, 0, 0, .45);
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "Cascadia Mono", "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 13.5px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(255, 194, 26, .32); color: #fff; }
input, textarea { caret-color: var(--accent); }
* { scrollbar-width: thin; scrollbar-color: #3a3b41 transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: #34353b; border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background-color: #4a4b52; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.time, .tc, .v-badge, kbd, .rec-time, .mk-n, .fchip-n, .seg-n, .tl-hover-time, .dur, .ec { font-variant-numeric: tabular-nums; }

/* ---------- controls ---------- */
button { cursor: pointer; border: 1px solid var(--hair2); background: var(--s3); border-radius: 8px; padding: 6px 12px; display: inline-flex; align-items: center; gap: 7px;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--mid) var(--ease), opacity var(--fast); }
button:hover { background: var(--s4); }
button:active { transform: scale(.96); }
button:disabled { opacity: .38; cursor: default; transform: none; }
button.small { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.primary-btn, button.primary { background: var(--accent); color: var(--on-accent); border: 0; font-weight: 650; border-radius: 8px; padding: 7px 15px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 6px 16px rgba(0, 0, 0, .35);
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--mid) var(--ease); }
.primary-btn:hover, button.primary:hover { background: var(--accent2); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 24px rgba(0, 0, 0, .35); transform: translateY(-1px); }
.primary-btn:active, button.primary:active { transform: translateY(0) scale(.97); }
.primary-btn.small { padding: 5px 11px; font-size: 12.5px; }
.primary-btn.wide, button.wide { width: 100%; justify-content: center; padding: 10px; }
.ghost-btn { background: transparent; border: 1px solid var(--hair2); color: var(--text2); font-size: 12.5px; padding: 5px 11px; }
.ghost-btn:hover { background: var(--s3); color: var(--text); border-color: var(--line); }
.pill-btn { border-radius: 8px; background: var(--s2); border: 1px solid var(--hair2); padding: 6px 12px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: var(--text2); }
.pill-btn:hover { background: var(--s3); color: var(--text); }
.pill-btn.small { padding: 4px 9px; font-family: var(--mono); font-size: 11.5px; }
.icon-btn { border: 0; background: transparent; padding: 7px; border-radius: 8px; color: var(--muted); display: inline-grid; place-items: center; position: relative; }
.icon-btn:hover { background: var(--s3); color: var(--text); }
.icon-btn.tiny { padding: 4px; }
.icon-btn.on { color: var(--accent); }
.link-btn { border: 0; background: none; padding: 0; color: var(--muted); font-size: 12px; }
.link-btn:hover { background: none; color: var(--text); }
.link-btn.accent { color: var(--accent); }
input, select, textarea { background: var(--bg); border: 1px solid var(--hair2); border-radius: 8px; padding: 8px 11px; width: 100%; transition: border-color var(--fast) var(--ease), box-shadow var(--mid) var(--ease), background var(--fast); }
input::placeholder, textarea::placeholder { color: #7d7e84; }
input:hover, select:hover, textarea:hover { border-color: var(--line); }
select { width: auto; padding: 6px 9px; cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
input[type=range] { accent-color: var(--accent); padding: 0; border: 0; background: none; box-shadow: none; }
input[type=color] { width: 44px; padding: 2px; height: 34px; }
label { display: block; margin: 12px 0 5px; color: var(--muted); font-size: 12px; font-weight: 600; }
.ic { display: inline-grid; place-items: center; line-height: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.pad { padding: 8px 10px; }
.hidden { display: none !important; }
.invisible { visibility: hidden; }
.spacer { flex: 1; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; gap: 8px; align-items: center; }
.row.end { justify-content: flex-end; margin-top: 8px; }
.center { display: grid; place-items: center; }
.center.full { min-height: 100vh; padding: 16px; }
.clamp { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
kbd { background: var(--s3); border: 1px solid var(--hair2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 7px; font: 500 11.5px var(--mono); }
.avatar { border-radius: 50%; display: inline-grid; place-items: center; color: #111; font-weight: 700; flex: none; letter-spacing: -.02em; box-shadow: 0 0 0 1.5px var(--bg); }
/* logo: the Arnold mark on a timeline (favicon.svg) */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.015em; }
.logo i { width: 30px; height: 30px; border-radius: 7px; background: url(/favicon.svg) center / contain no-repeat; flex: none; box-shadow: 0 0 0 1px rgba(236, 235, 231, .1); transition: transform var(--mid) var(--ease); }
.logo.big i { width: 40px; height: 40px; border-radius: 9px; }
a.logo:hover i { transform: scale(1.06); }
.logo.big { font-size: 17px; margin-bottom: 18px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; translate: 0 10px; } }
@keyframes drop { from { opacity: 0; translate: 0 -6px; scale: .6; } }

/* ---------- auth ---------- */
.card { background: var(--s1); border: 1px solid var(--hair); border-radius: 14px; padding: 22px; margin-bottom: 22px; animation: rise .4s var(--ease) both; }
.auth { width: min(400px, 100%); padding: 32px 30px 28px; box-shadow: var(--shadow); background: var(--s1); position: relative; overflow: hidden; }
.auth::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px; border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(236, 235, 231, .13) 10px 16px) 0 4px / 100% 6px no-repeat, var(--s2); }
.auth h1 { margin: 6px 0 4px; font-size: 22px; letter-spacing: -.02em; }
.auth button { margin-top: 20px; }
.err { color: var(--bad); min-height: 20px; margin-top: 8px; }

/* ---------- top bar ---------- */
header.top { height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(23, 24, 27, .9); backdrop-filter: saturate(140%) blur(14px); position: sticky; top: 0; z-index: 10; }
.crumbs { display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; white-space: nowrap; }
.crumb { color: var(--muted); overflow: hidden; text-overflow: ellipsis; max-width: 260px; transition: color var(--fast); }
.crumb:hover { color: var(--text); }
.crumb.cur { color: var(--text); font-weight: 650; }
.crumbs .sep { color: var(--faint); }
.search { width: 240px; padding: 7px 12px; border-radius: 8px; background: var(--bg); transition: width var(--mid) var(--ease), border-color var(--fast), box-shadow var(--mid); }
.search:focus { width: 300px; }
.avatar-btn { border: 0; background: none; padding: 2px; border-radius: 50%; }
.avatar-btn:hover { background: none; transform: scale(1.06); }
.bell .badge-dot { position: absolute; top: 2px; right: 1px; background: var(--accent); color: var(--on-accent); font: 700 9px var(--mono); border-radius: 99px; min-width: 15px; height: 15px; display: grid; place-items: center; padding: 0 3px; box-shadow: 0 0 0 2px var(--bg); animation: drop .35s var(--ease); }
.status-sel { border-radius: 99px; font-size: 12px; font-weight: 650; padding: 4px 10px; background: var(--s2); }
.status-sel.in_review { color: var(--warn); border-color: rgba(242, 155, 56, .35); }
.status-sel.needs_changes { color: var(--bad); border-color: rgba(255, 90, 79, .38); background: rgba(255, 90, 79, .08); }
.status-sel.approved { color: var(--ok); border-color: rgba(70, 194, 142, .38); background: rgba(70, 194, 142, .08); }

/* ---------- browser + sidebar ---------- */
.browse { display: grid; grid-template-columns: 236px 1fr; min-height: calc(100vh - 54px); }
.browse > main { min-width: 0; }
.sidebar { border-right: 1px solid var(--line); padding: 14px 10px; position: sticky; top: 54px; height: calc(100vh - 54px); overflow-y: auto; background: var(--s1); }
.sb-item { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 7px; color: var(--muted); font-size: 13px; position: relative; transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.sb-item:hover { background: var(--s2); color: var(--text); }
.sb-item.on { background: var(--s3); color: var(--text); font-weight: 600; }
.sb-item.on .ic { color: var(--accent); }
.sb-item.drop-on { box-shadow: 0 0 0 1px var(--accent-line) inset; background: var(--accent-soft); }
.sb-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-caret { border: 0; background: none; padding: 0; width: 14px; color: var(--faint); font-size: 13px; transition: transform var(--mid) var(--ease); flex: none; justify-content: center; }
.sb-caret:hover { background: none; color: var(--text); }
.sb-caret.open { transform: rotate(90deg); }
.sb-caret.invisible { visibility: hidden; }
.sb-head { color: var(--faint); font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; padding: 18px 9px 6px; }
main.browser, main.page { padding: 26px 30px; position: relative; min-height: calc(100vh - 54px); animation: rise .32s var(--ease) both; }
main.page > * { max-width: 1000px; }
main h1 { font-size: 24px; margin: 0 0 14px; letter-spacing: -.025em; font-weight: 700; }
h2.sec { font: 600 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin: 26px 0 12px; }
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar h1 { margin: 0; }
.status-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0 0 20px; }
.fchip { border-radius: 99px; padding: 5px 12px; font-size: 12.5px; background: transparent; border: 1px solid var(--hair2); color: var(--muted); }
.fchip:hover { color: var(--text); background: var(--s2); }
.fchip.on { color: var(--on-accent); background: var(--accent); border-color: var(--accent); font-weight: 650; }
.fchip-n { font: 600 11px var(--mono); background: var(--s4); border-radius: 99px; padding: 0 7px; color: var(--text2); }
.fchip.on .fchip-n { background: rgba(0, 0, 0, .16); color: var(--on-accent); }
.fchip.needs_changes .fchip-n { color: var(--bad); }
.fchip.approved .fchip-n { color: var(--ok); }
.fchip.open .fchip-n { color: var(--accent); }
.fchip.on.needs_changes .fchip-n, .fchip.on.approved .fchip-n, .fchip.on.open .fchip-n { color: var(--on-accent); }
.seg-toggle { display: flex; background: var(--bg); border: 1px solid var(--hair2); border-radius: 9px; padding: 2px; }
.seg-toggle button { border: 0; background: none; padding: 4px 10px; border-radius: 7px; color: var(--muted); }
.seg-toggle button.on { background: var(--s3); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset; }

/* tiles: cards rise in one after another, the thumbnail pushes in on hover */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.tile { background: var(--s1); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; display: block; position: relative; animation: rise .42s var(--ease) both;
  transition: transform var(--mid) var(--ease), border-color var(--mid) var(--ease), box-shadow var(--mid) var(--ease); }
.grid > :nth-child(2) { animation-delay: .03s; } .grid > :nth-child(3) { animation-delay: .06s; } .grid > :nth-child(4) { animation-delay: .09s; }
.grid > :nth-child(5) { animation-delay: .12s; } .grid > :nth-child(6) { animation-delay: .15s; } .grid > :nth-child(7) { animation-delay: .18s; }
.grid > :nth-child(8) { animation-delay: .21s; } .grid > :nth-child(n+9) { animation-delay: .24s; }
.tile:hover { transform: translateY(-4px); border-color: rgba(255, 194, 26, .45); box-shadow: 0 20px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 194, 26, .18); }
.tile.drop-on { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.tile .thumb { aspect-ratio: 16/10; background: #08080a center/contain no-repeat; display: grid; place-items: center; position: relative; transition: background-size .5s var(--ease); }
.tile .thumb::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; z-index: 1; opacity: 0; transition: opacity var(--mid) var(--ease);
  background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(255, 194, 26, .85) 8px 13px) 0 2px / 100% 3px no-repeat; }
.tile:hover .thumb::before { opacity: 1; }
.tile .thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .5)); pointer-events: none; }
.tile .meta { padding: 11px 13px 12px; }
.tile .name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.tile .sub { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.tile .sub .cm { margin-left: auto; color: var(--accent); font-family: var(--mono); font-size: 11.5px; }
.tile .card-more { opacity: 0; transition: opacity var(--fast); }
.tile:hover .card-more { opacity: 1; }
.tile .dur { position: absolute; bottom: 9px; right: 8px; background: rgba(0, 0, 0, .72); padding: 1px 7px; border-radius: 4px; font: 500 11px var(--mono); z-index: 2; }
.tile .badge { position: absolute; bottom: 8px; left: 8px; z-index: 2; }
.folder-tile { display: flex; align-items: center; gap: 6px; padding: 8px; }
.folder-ic { width: 58px; height: 58px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: 10px; transition: transform var(--mid) var(--ease), background var(--mid); }
.folder-tile:hover .folder-ic { transform: scale(1.06) rotate(-3deg); background: rgba(255, 194, 26, .2); }
.folder-ic svg { width: 26px; height: 26px; }
.v-badge { font: 600 11px var(--mono); padding: 2px 7px; border-radius: 5px; background: var(--s3); border: 1px solid var(--hair2); color: var(--text); }
.v-badge.static { pointer-events: none; }
.v-badge.tl { position: absolute; top: 8px; left: 8px; background: var(--accent); color: var(--on-accent); border-color: transparent; z-index: 2; }
.badge { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 11px; font-weight: 650; background: var(--s3); border: 1px solid var(--hair2); }
.badge.in_review { color: var(--warn); background: rgba(242, 155, 56, .12); border-color: rgba(242, 155, 56, .3); }
.badge.needs_changes { color: var(--bad); background: rgba(255, 90, 79, .13); border-color: rgba(255, 90, 79, .3); }
.badge.approved { color: var(--ok); background: rgba(70, 194, 142, .13); border-color: rgba(70, 194, 142, .3); }
.empty { color: var(--muted); text-align: center; padding: 36px 12px; }
.empty.big { grid-column: 1 / -1; padding: 80px 12px; }
.drop-overlay { position: absolute; inset: 12px; border: 1.5px dashed var(--accent-line); border-radius: 16px; background: rgba(17, 18, 20, .9); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 5; font-size: 16px; pointer-events: none; animation: fade .2s; }
.drop-overlay div { display: flex; gap: 10px; align-items: center; color: var(--accent); }

/* list view */
.list-view { display: flex; flex-direction: column; background: var(--s1); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; animation: rise .35s var(--ease) both; }
.lv-row { display: grid; grid-template-columns: minmax(160px, 3fr) 80px 115px 95px 80px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--hair); transition: background var(--fast) var(--ease); }
.lv-row:hover { background: var(--s2); }
.lv-head { border-top: 0; color: var(--faint); font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.lv-head:hover { background: none; }
.lv-name { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lv-thumb { width: 56px; height: 34px; border-radius: 5px; background: #000 center/cover no-repeat; flex: none; }
.lv-ic.folder { width: 56px; height: 34px; border-radius: 5px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); flex: none; }
.open-n { color: var(--accent); font: 600 12px var(--mono); }

/* lists, tables, forms */
.list { padding: 6px; }
.act-row { display: flex; align-items: center; gap: 12px; padding: 11px; border-radius: 10px; transition: background var(--fast); }
.act-row:hover { background: var(--s2); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--hair); }
th { color: var(--faint); font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
tbody tr { transition: background var(--fast); }
tbody tr:hover { background: var(--s2); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.keybox { font: 12px var(--mono); background: var(--bg); border: 1px solid var(--accent-line); padding: 11px; border-radius: 8px; word-break: break-all; margin-top: 10px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; padding: 2px 9px; border-radius: 99px; color: var(--c, var(--text)); background: color-mix(in srgb, var(--c, #8f9096) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c, #8f9096) 30%, transparent); }
.chip.big { font-size: 13px; padding: 4px 12px; }
.chip.soft { color: var(--text2); background: rgba(23, 24, 27, .9); border-color: var(--hair2); font-weight: 500; backdrop-filter: blur(10px); }
button.chip.soft { cursor: pointer; }
.chip.soft.on { color: var(--text); border-color: var(--accent-line); }
.chip-x { border: 0; background: none; padding: 0 0 0 2px; color: inherit; opacity: .7; font-size: 14px; line-height: 1; }
.chip-x:hover { background: none; opacity: 1; }

/* ---------- popovers, menus, modals ---------- */
.pop { position: fixed; z-index: 50; background: rgba(30, 31, 34, .97); backdrop-filter: blur(16px) saturate(130%); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); padding: 5px; max-height: 80vh; overflow: auto; animation: pop .18s var(--ease); transform-origin: top; }
.menu { display: flex; flex-direction: column; min-width: 220px; }
.menu-item { border: 0; background: none; width: 100%; justify-content: flex-start; gap: 10px; padding: 7px 9px; border-radius: 7px; text-align: left; color: var(--text); font-size: 13px; }
.menu-item:hover { background: var(--s4); }
.menu-item:active { transform: none; }
.menu-item.danger { color: var(--bad); }
.menu-item.danger:hover { background: rgba(255, 90, 79, .12); }
.menu-item .ic { color: var(--muted); transition: color var(--fast); }
.menu-item:hover .ic { color: var(--accent); }
.menu-label { flex: 1; }
.menu-hint { color: var(--muted); font-size: 12px; text-transform: capitalize; }
.menu-head { color: var(--faint); font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: 9px 9px 4px; }
.menu-sep { height: 1px; background: var(--hair2); margin: 5px 2px; }
.submenu { margin: 2px 0 4px 18px; border-left: 1px solid var(--line); padding-left: 4px; animation: fade .15s; }
.check-slot { width: 16px; color: var(--accent); font-weight: 700; }
.check-row { display: flex; align-items: center; gap: 9px; margin: 0; padding: 6px 9px; color: var(--text); font-size: 13px; font-weight: 400; cursor: pointer; border-radius: 7px; }
.check-row:hover { background: var(--s4); }
.check-row .dot { width: 9px; height: 9px; border-radius: 50%; }
.filter-pop { display: flex; flex-direction: column; gap: 2px; }
.filter-pop > input { margin-bottom: 4px; }
.filter-pop .row { padding: 4px 9px; }
.notif-item { display: flex; gap: 10px; padding: 10px; border-radius: 8px; transition: background var(--fast); }
.notif-item:hover { background: var(--s4); }
.notif-item.unread { background: var(--accent-soft); }
.share-pop { display: flex; flex-direction: column; gap: 8px; padding: 6px; }
.share-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; background: var(--bg); border: 1px solid var(--hair); border-radius: 9px; }
.share-row select { max-width: 175px; }
.modal-bg { position: fixed; inset: 0; background: rgba(5, 5, 6, .66); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 40; padding: 16px; animation: fade .2s; }
.modal { width: min(560px, 100%); max-height: 92vh; display: flex; flex-direction: column; background: var(--s1); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); animation: rise .3s var(--ease); }
.modal.wide { width: min(1200px, 100%); }
.modal-head { display: flex; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--s2); }
.modal-head h2 { margin: 0; font-size: 15px; flex: 1; letter-spacing: -.01em; }
.modal-body { padding: 16px; overflow: auto; }
.img-full { max-width: 100%; max-height: 80vh; display: block; margin: auto; border-radius: 8px; }
pre.code { margin: 0; font: 12.5px/1.55 var(--mono); white-space: pre-wrap; word-break: break-word; max-height: 75vh; overflow: auto; }
table.keys td { border: 0; padding: 5px 8px; }
.perm-table td { padding: 8px 4px; }
.tree { display: flex; flex-direction: column; }
.tree-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; border: 0; background: none; width: 100%; justify-content: flex-start; font-size: 12.5px; }
.tree-row:hover { background: var(--s3); }
.tree-row:active { transform: none; }
.tree-row.dir { color: var(--text); font-weight: 600; }
.tree-row .ic { color: var(--muted); }
.move-tree { gap: 2px; }

/* uploads + toast */
#uploads { position: fixed; right: 18px; bottom: 18px; width: 330px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.up { background: rgba(30, 31, 34, .97); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; font-size: 12px; box-shadow: var(--shadow); animation: rise .3s var(--ease); }
.up.failed { border-color: rgba(255, 90, 79, .5); }
.up-name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up .bar { height: 4px; background: var(--s4); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.up .bar i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--accent) 0 9px, var(--accent2) 9px 12px); width: 0; transition: width .3s var(--ease); }
#toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.toast { background: rgba(38, 39, 43, .97); backdrop-filter: blur(14px); border: 1px solid var(--line); padding: 9px 16px; border-radius: 9px; box-shadow: var(--shadow); animation: rise .28s var(--ease); }
.toast.bad { border-color: rgba(255, 90, 79, .55); color: #ffd9d6; }

/* ================= review screen ================= */
.rv { height: 100vh; display: grid; grid-template-rows: 54px 1fr auto; position: relative; overflow: hidden; }
.rv-main { display: grid; grid-template-columns: 1fr 392px; min-height: 0; transition: grid-template-columns .32s var(--ease); }
.rv.theater .rv-main { grid-template-columns: 1fr 0; }
.rv.theater .side { display: none; }
.stage { position: relative; min-width: 0; min-height: 0; background: radial-gradient(110% 85% at 50% 42%, #191a1d 0%, var(--bg) 72%); display: flex; }
.player { position: relative; flex: 1; margin: 18px 24px 100px; min-height: 0; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.player video.cur-crosshair { cursor: crosshair; }
.player video.cur-none { cursor: none; }
.player canvas.draw { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.player canvas.draw.active { pointer-events: auto; cursor: crosshair; }
.stage-msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; pointer-events: none; }
.stage-msg:empty { display: none; }
.cam-bubble { position: absolute; left: 16px; bottom: 16px; width: 150px; height: 150px; border-radius: 50%; overflow: hidden; border: 2px solid var(--accent); box-shadow: 0 12px 34px rgba(0, 0, 0, .55); background: #000; z-index: 3; animation: pop .25s var(--ease); }
.cam-bubble video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.screen-box { position: absolute; inset: 6%; background: #000; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; z-index: 4; box-shadow: var(--shadow); animation: pop .25s var(--ease); }
.screen-box video { width: 100%; height: 100%; object-fit: contain; }
.close-screen { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, .6) !important; }

/* drawing tools */
.draw-tools { position: absolute; left: 16px; top: 50%; transform: translateY(-60%); display: flex; flex-direction: column; gap: 3px; padding: 6px; background: rgba(23, 24, 27, .9); border: 1px solid var(--line); border-radius: 12px; z-index: 2; backdrop-filter: blur(14px); box-shadow: var(--lift); animation: rise .4s var(--ease) both; }
.tool { border: 0; background: none; padding: 7px; border-radius: 8px; color: var(--muted); }
.tool:hover { background: var(--s4); color: var(--text); }
.tool.on { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.tool-sep { height: 1px; background: var(--line); margin: 3px 2px; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 2px solid transparent; padding: 0; margin: 2px auto; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4) inset; transition: transform var(--fast) var(--ease); }
.swatch:hover { transform: scale(1.18); }
.swatch.on { border-color: var(--text); transform: scale(1.1); }

/* composer */
.composer { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(600px, calc(100% - 130px)); z-index: 5; display: flex; flex-direction: column; gap: 7px; animation: rise .45s var(--ease) both .05s; }
.pill { display: flex; align-items: center; gap: 4px; background: rgba(38, 39, 43, .94); border: 1px solid #44454c; border-radius: 14px; padding: 6px; box-shadow: 0 18px 44px rgba(0, 0, 0, .55); backdrop-filter: blur(18px) saturate(130%); transition: border-color var(--mid) var(--ease), box-shadow var(--mid) var(--ease); }
.pill:focus-within { border-color: var(--accent-line); box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 0 4px var(--accent-soft); }
.composer.is-recording .pill { border-color: rgba(255, 90, 79, .65); }
.pill textarea { border: 0; background: transparent; resize: none; padding: 8px 6px; min-height: 36px; max-height: 160px; line-height: 1.4; align-self: stretch; overflow-y: auto; scrollbar-width: none; }
.pill textarea::-webkit-scrollbar { display: none; }
.pill textarea:focus { box-shadow: none; }
.give { display: flex; align-items: center; background: var(--accent); color: var(--on-accent); border-radius: 10px; flex: none; transition: background var(--fast), box-shadow var(--mid) var(--ease); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.give:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.give-btn { border: 0; background: none; padding: 7px 11px; font-weight: 700; gap: 8px; border-radius: 10px 0 0 10px; color: inherit; }
.give-btn:hover { background: rgba(0, 0, 0, .07); }
.give-btn .bars-ic { display: inline-flex; align-items: center; }
.give-btn .bars-ic svg { width: 16px; height: 16px; }
.give-opts { border: 0; background: none; padding: 7px 9px; color: inherit; opacity: .75; border-radius: 0 10px 10px 0; border-left: 1px solid rgba(0, 0, 0, .18); }
.give-opts:hover { background: rgba(0, 0, 0, .07); opacity: 1; }
.give:has(.give-btn.recording) { background: var(--bad); color: #fff; box-shadow: 0 0 0 0 rgba(255, 90, 79, .5); animation: recpulse 1.6s ease-out infinite; }
@keyframes recpulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 79, .45); } 100% { box-shadow: 0 0 0 12px rgba(255, 90, 79, 0); } }
.give-btn.recording .bars-ic { animation: blink 1s infinite; }
.send-btn { border: 0; background: var(--s4); color: var(--text); border-radius: 10px; padding: 8px; flex: none; }
.send-btn:hover { background: var(--accent); color: var(--on-accent); }
.pill .icon-btn { padding: 8px; }
.pill-tools { display: flex; align-items: center; gap: 2px; padding-right: 2px; }
.pill-tools .icon-btn { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 9px; color: var(--muted); }
.pill-tools .icon-btn:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.pen-btn { position: relative; }
.pen-btn .pen-dot { position: absolute; right: 6px; bottom: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--pen, #ff3b30); box-shadow: 0 0 0 2px rgba(38, 39, 43, .95); transition: transform var(--fast) var(--ease); }
.pen-btn.on { background: var(--accent-soft) !important; color: var(--accent) !important; box-shadow: inset 0 0 0 1px var(--accent-line); }
.pen-btn.on .pen-dot { transform: scale(1.25); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chips:empty { display: none; }
.chips > * { animation: drop .25s var(--ease); }
.chip-time { cursor: pointer; }
.img-chip img { width: 28px; height: 20px; object-fit: cover; border-radius: 3px; }
.guest-name { background: rgba(38, 39, 43, .94); backdrop-filter: blur(14px); border-radius: 10px; }
.rec-bar { display: flex; align-items: center; gap: 8px; background: rgba(30, 31, 34, .96); backdrop-filter: blur(14px); border: 1px solid rgba(255, 90, 79, .5); border-radius: 11px; padding: 6px 8px; box-shadow: 0 10px 30px rgba(255, 90, 79, .12); animation: rise .25s var(--ease); }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 4px rgba(255, 90, 79, .2); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.rec-time { font: 600 12.5px var(--mono); }
.rec-live { color: var(--muted); font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 220px; min-width: 0; }
.mention-box { background: rgba(30, 31, 34, .97); border: 1px solid var(--line); border-radius: 10px; padding: 4px; align-self: flex-start; min-width: 210px; box-shadow: var(--shadow); animation: pop .16s var(--ease); }
.rec-opts { display: flex; flex-direction: column; gap: 6px; padding: 6px; }
.rec-opts label { margin: 6px 0 0; display: flex; align-items: center; gap: 6px; }
.rec-opts select { width: 100%; }
.cam-preview { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; background: #000; transform: scaleX(-1); }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mode { flex-direction: column; font-size: 11.5px; padding: 9px 4px; justify-content: center; background: var(--bg); border-color: var(--hair); border-radius: 10px; }
.mode.on { border-color: var(--accent-line); color: var(--text); background: var(--accent-soft); }
.mic-meter { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.mic-meter i { display: block; height: 100%; width: calc(var(--lvl, 0) * 100%); background: linear-gradient(90deg, var(--ok), #c8f57a); border-radius: inherit; transition: width .06s linear; }
.mic-meter.loud i { background: linear-gradient(90deg, var(--ok), var(--warn), var(--bad)); }
.rec-meter { width: 70px; flex: none; }

/* side panel */
.side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); background: var(--s1); animation: fade .3s var(--ease); }
.side-head { display: flex; align-items: center; gap: 4px; padding: 0 12px; height: 50px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.tabs { display: flex; gap: 18px; height: 100%; }
.tab { border: 0; background: none; border-radius: 0; padding: 0 2px; color: var(--muted); font-size: 13px; font-weight: 650; height: 100%; position: relative; }
.tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform var(--mid) var(--ease); }
.tab:hover { background: none; color: var(--text); }
.tab:active { transform: none; }
.tab.on { color: var(--text); }
.tab.on::after { transform: scaleX(1); }
.fb-list { flex: 1; overflow-y: auto; padding: 0 12px 20px; display: flex; flex-direction: column; gap: 8px; }
.fb { background: var(--s2); border: 1px solid var(--hair); border-radius: 10px; padding: 11px 13px; cursor: pointer; position: relative;
  transition: border-color var(--mid) var(--ease), box-shadow var(--mid) var(--ease), background var(--mid) var(--ease), transform var(--mid) var(--ease), opacity var(--mid); }
.fb:hover { border-color: var(--line); background: #222326; }
.fb.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #222326; }
.fb.now { border-color: rgba(255, 194, 26, .5); background: linear-gradient(90deg, rgba(255, 194, 26, .1), transparent 60%), var(--s2); }
.fb.now .fb-head .tc { background: var(--accent); color: var(--on-accent); }
.fb.done { opacity: .55; }
.fb.done:hover { opacity: .85; }
.fb-head { display: flex; align-items: center; gap: 7px; }
.fb-author { font-weight: 650; font-size: 13px; letter-spacing: -.01em; }
.tc { border: 0; background: rgba(255, 194, 26, .14); color: var(--accent); font: 600 11px var(--mono); padding: 2px 7px; border-radius: 4px; gap: 4px; transition: background var(--fast), color var(--fast); }
.tc:hover { background: var(--accent); color: var(--on-accent); }
.tc svg { width: 12px; height: 12px; }
.fb-body { margin-top: 6px; word-break: break-word; line-height: 1.55; color: var(--text2); }
.fb-body p { margin: 0 0 3px; }
.fb-body ul { margin: 2px 0 4px; padding-left: 18px; }
.fb-body li { margin: 1px 0; }
.fb-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 194, 26, .45); }
.mention { color: var(--accent); font-weight: 650; }
.fb-imgs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.fb-imgs img { width: 92px; height: 58px; object-fit: cover; border-radius: 6px; border: 1px solid var(--hair2); transition: transform var(--mid) var(--ease), border-color var(--fast); }
.fb-imgs img:hover { transform: scale(1.05); border-color: var(--accent-line); }
.fb-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.fb-foot { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.done-btn { border: 1px solid var(--hair2) !important; border-radius: 50% !important; padding: 3px !important; }
.done-btn:hover { border-color: var(--ok) !important; color: var(--ok); }
.done-btn.on { background: var(--ok); color: #06150f; border-color: var(--ok) !important; animation: drop .3s var(--ease); }
.replies { margin: 9px 0 0; border-left: 1px solid var(--line); padding-left: 10px; display: flex; flex-direction: column; gap: 7px; }
.reply .fb-body { margin-top: 2px; }
.reply-box { margin-top: 9px; }
.rec-row { display: flex; align-items: center; gap: 9px; margin-top: 9px; background: var(--bg); border: 1px solid var(--hair); border-radius: 99px; padding: 4px 11px 4px 4px; }
.rec-play { border: 0; background: var(--accent); color: var(--on-accent); border-radius: 50%; padding: 7px; }
.rec-play:hover { background: var(--accent2); transform: scale(1.06); }
.rec-kind { color: var(--muted); }
.wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 22px; }
.wave i { flex: 1; background: var(--s4); border-radius: 2px; min-height: 3px; transition: background-color .12s linear; }
.wave i.on { background: var(--accent); }
.transcript { margin-top: 8px; font-size: 12.5px; color: var(--text2); line-height: 1.6; }
.transcript.collapsed { max-height: 4.8em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.seg { cursor: pointer; border-radius: 3px; transition: background var(--fast); }
.seg:hover { background: var(--accent-soft); }
.point { color: var(--accent); }
.rec-notes { list-style: none; margin: 10px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rec-notes li { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 8px; cursor: pointer; transition: background var(--fast) var(--ease); }
.rec-notes li:hover { background: rgba(255, 194, 26, .07); }
.note-thumb { flex: none; border-radius: 5px; background-color: #000; background-repeat: no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.note-thumb.empty { width: 26px; height: 46px; background: var(--s4); }
.note-text { font-size: 13px; line-height: 1.45; color: var(--text); }
.notes-wait { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--s4); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.v-notes { margin: 0 0 2px; padding: 9px 11px; background: var(--bg); border: 1px dashed var(--line); border-radius: 9px; font-size: 12.5px; color: var(--muted); cursor: pointer; transition: border-color var(--fast); }
.v-notes:hover { border-color: var(--accent-line); }

/* context tab */
.ctx-pane { flex: 1; overflow-y: auto; padding: 0 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.ctx-head { padding: 8px 2px; }
.ctx-section { background: var(--s2); border: 1px solid var(--hair); border-radius: 10px; padding: 11px 13px; display: flex; flex-direction: column; gap: 8px; }
.notes-box p { margin: 0 0 4px; }

/* ---------- bottom bar: grid [left | timeline | right], versions open as stacked layers ---------- */
.rv-bottom { border-top: 1px solid var(--line); background: var(--s1); padding: 6px 18px 12px; position: relative; z-index: 6; }
.vb-grid, .vl-row { display: grid; grid-template-columns: 262px minmax(0, 1fr) auto; column-gap: 16px; align-items: center; }
.vb-grid { grid-template-rows: 40px auto; }
.vb-left { display: flex; align-items: center; gap: 8px; min-width: 0; position: relative; z-index: 3; }
.vb-right { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.vb-a { grid-row: 1; align-self: end; }
.vb-b { grid-row: 2; }
.vb-left.vb-a, .vb-left.vb-b { grid-column: 1; }
.vb-right.vb-a, .vb-right.vb-b { grid-column: 3; }
.vb-mid { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
.seg-btn { border-radius: 7px; background: transparent; border: 1px solid var(--hair2); color: var(--text2); font-size: 12.5px; padding: 4px 9px; }
.seg-btn:hover { background: var(--s3); color: var(--text); }
.seg-btn.on { background: var(--accent); color: var(--on-accent); border-color: transparent; font-weight: 650; }
.seg-btn.on .seg-n { background: rgba(0, 0, 0, .15); color: var(--on-accent); }
.seg-n { font: 600 10.5px var(--mono); background: var(--s4); border-radius: 99px; padding: 0 6px; color: var(--accent); }
.rv-bottom .icon-btn.play { color: var(--on-accent); background: var(--accent); border-radius: 50%; padding: 9px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.rv-bottom .icon-btn.play:hover { background: var(--accent2); transform: scale(1.06); }
.rv-bottom .icon-btn.play:active { transform: scale(.94); }
.rv-bottom .v-badge { background: var(--s3); }
.time { font: 500 12px var(--mono); color: var(--muted); padding: 0 4px; white-space: nowrap; }
.vol { width: 84px; }
.vb-hint { margin: 8px 0 0 278px; font-size: 12px; color: var(--accent); animation: fade .2s; }

/* timeline with an edge-code row: time labels and perforation ticks, feedback tabs stand on it */
.tl-wrap { overflow-x: auto; overflow-y: hidden; padding: 0 14px; margin: 0 -14px; scrollbar-width: none; }
.tl-wrap::-webkit-scrollbar { display: none; }
.tl-inner { position: relative; width: 100%; padding-top: 44px; }
.tl-edge { position: absolute; left: 0; right: 0; top: 0; height: 40px; pointer-events: none; border-bottom: 1px solid #3c3d44;
  background: repeating-linear-gradient(90deg, #4b4c53 0 1px, transparent 1px var(--tick, 12px)) 0 100% / 100% 5px no-repeat; }
.tl-edge .ec { position: absolute; top: 3px; transform: translateX(3px); font: 500 9.5px var(--mono); color: #74757c; letter-spacing: .04em; white-space: nowrap; }
.tl-edge .ec::before { content: ''; position: absolute; left: -3px; top: 13px; width: 1px; height: 24px; background: #5a5b62; }
.tl-edge .ec:last-child { transform: translateX(calc(-100% - 3px)); }
.tl-edge .ec:last-child::before { left: auto; right: -3px; }
.tl-marks { position: absolute; left: 0; right: 0; top: 10px; height: 30px; }
.mk { position: absolute; bottom: 0; transform: translateX(-50%); border: 0; background: var(--accent); color: var(--on-accent); border-radius: 6px 6px 2px 2px; padding: 2px 3px 2px 2px; display: inline-flex; align-items: center; gap: 2px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35); animation: drop .3s var(--ease) both;
  transition: transform var(--fast) var(--ease), box-shadow var(--mid) var(--ease), opacity var(--mid) var(--ease), background var(--fast); }
.mk::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -4px; border-top: 5px solid var(--accent); border-left: 4px solid transparent; border-right: 4px solid transparent; transition: border-color var(--fast); }
.mk:hover { transform: translateX(-50%) translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, .45), 0 0 0 2px rgba(255, 194, 26, .35); z-index: 2; background: var(--accent2); }
.mk:hover::after { border-top-color: var(--accent2); }
.mk.sel, .mk.playing { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); z-index: 2; transform: translateX(-50%) translateY(-2px); }
.mk.done { background: var(--ok); opacity: .7; }
.mk.done::after { border-top-color: var(--ok); }
.mk.mini { bottom: auto; top: 0; }
.tl-marks.solo .mk:not(.playing) { opacity: 0; pointer-events: none; }
.mk .avatar { box-shadow: none; }
.mk-rec { color: var(--on-accent); display: inline-flex; padding-left: 2px; }
.mk-rec svg { width: 10px; height: 10px; }
.mk-n { font: 700 10.5px var(--mono); padding: 0 5px 0 2px; }
.mk.edge-l { transform: translateX(-6px); }
.mk.edge-l:hover { transform: translateX(-6px) translateY(-3px); }
.mk.edge-l::after { left: 6px; }
.mk.edge-r { transform: translateX(calc(-100% + 6px)); }
.mk.edge-r:hover { transform: translateX(calc(-100% + 6px)) translateY(-3px); }
.mk.edge-r::after { left: auto; right: 2px; }
.tl-track { position: relative; height: 22px; cursor: pointer; margin-top: 4px; }
.tl-track::before { content: ''; position: absolute; left: 0; right: 0; top: 8px; height: 6px; background: var(--s4); border-radius: 3px; transition: height var(--fast) var(--ease), top var(--fast) var(--ease); }
.tl-fill { position: absolute; left: 0; top: 8px; height: 6px; background: var(--accent); border-radius: 3px; transition: height var(--fast) var(--ease), top var(--fast) var(--ease); }
.tl-track:hover::before, .tl-track:hover .tl-fill { height: 8px; top: 7px; }
.tl-head { position: absolute; top: -46px; width: 2px; height: 64px; background: var(--accent); transform: translateX(-1px); pointer-events: none;  }
.tl-head::before { content: ''; position: absolute; left: -5px; top: 0; width: 12px; height: 7px; background: var(--accent); border-radius: 2px; }
.tl-head::after { content: ''; position: absolute; left: -6px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 194, 26, .18), 0 2px 6px rgba(0, 0, 0, .5); transition: transform var(--fast) var(--ease); }
.tl-track:hover ~ .tl-head::after, .tl-track:active .tl-head::after { transform: scale(1.15); }
.tl-range { position: absolute; top: 5px; height: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 4px; }
.tl-ranges { position: relative; height: 5px; margin-top: 1px; }
.rg { position: absolute; height: 3px; border-radius: 2px; opacity: .8; }
.tl-hover { position: fixed; z-index: 45; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 6px; animation: pop .14s var(--ease); }
.tl-frame { border-radius: 8px; border: 2px solid var(--accent); background-color: #000; background-repeat: no-repeat; box-shadow: 0 14px 34px rgba(0, 0, 0, .6); }
.tl-hover-time { font: 600 11px var(--mono); background: var(--accent); color: var(--on-accent); padding: 2px 8px; border-radius: 5px; }
.mk-card { position: fixed; z-index: 46; width: 300px; background: rgba(30, 31, 34, .98); backdrop-filter: blur(16px); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); pointer-events: none; display: flex; flex-direction: column; gap: 9px; animation: pop .16s var(--ease); }
.mkc-body { margin-top: 4px; font-size: 12.5px; color: var(--text2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* version layers (stacked rows, one per version) */
.vb-layers { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.rv-bottom.layers-open .vb-layers { max-height: 42vh; overflow-y: auto; margin-top: 6px; }
.vl-row { padding: 6px 0; border-top: 1px solid var(--hair); animation: rise .3s var(--ease) both; }
.vl-row:nth-child(2) { animation-delay: .04s; } .vl-row:nth-child(3) { animation-delay: .08s; } .vl-row:nth-child(n+4) { animation-delay: .12s; }
.vl-row .vb-left { gap: 9px; }
.vl-radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--faint); background: transparent; padding: 0; flex: none; }
.vl-radio:hover { border-color: var(--accent); background: transparent; }
.vl-radio.cmp { border-radius: 5px; border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.vl-row.picking:hover { background: var(--accent-soft); border-radius: 8px; }
.cur-tag { font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--on-accent); background: var(--accent); border-radius: 4px; padding: 1px 6px; }
.vl-mid { position: relative; padding-top: 24px; }
.vl-marks { position: absolute; left: 0; right: 0; top: 0; height: 22px; }
.vl-marks .mk { padding: 1px 2px; }
.vl-track { height: 14px; position: relative; cursor: pointer; }
.vl-track::before { content: ''; position: absolute; left: 0; right: 0; top: 5px; height: 4px; background: var(--s4); border-radius: 3px; transition: background var(--fast); }
.vl-track:hover::before { background: #44454c; }
.vl-meta { white-space: nowrap; max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.vl-foot { display: flex; align-items: center; gap: 8px; padding: 10px 0 2px; border-top: 1px solid var(--hair); }
.vl-empty { padding: 10px 0 4px 278px; }

/* recording replay: pointer + speaking bubble */
.ghost { position: absolute; z-index: 3; pointer-events: none; will-change: left, top; }
.ghost-cursor { position: absolute; left: -4px; top: -3px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.ghost-pill { position: absolute; left: 14px; top: 16px; display: flex; align-items: center; gap: 6px; background: rgba(30, 31, 34, .94); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px 3px 3px; white-space: nowrap; box-shadow: 0 8px 22px rgba(0, 0, 0, .5); }
.ghost.parked .ghost-cursor { display: none; }
.ghost.parked .ghost-pill { left: 0; top: 0; transform: translateX(-50%); }
.talk { display: flex; align-items: center; gap: 2px; height: 14px; }
.talk i { width: 3px; background: var(--accent); border-radius: 2px; animation: talk .9s ease-in-out infinite; }
.talk i:nth-child(2) { animation-delay: .15s; } .talk i:nth-child(3) { animation-delay: .3s; } .talk i:nth-child(4) { animation-delay: .45s; } .talk i:nth-child(5) { animation-delay: .6s; }
@keyframes talk { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* compare */
.cmp-wrap { display: flex; flex-direction: column; gap: 10px; }
.cmp { position: relative; height: calc(92vh - 170px); min-height: 220px; background: #000; border-radius: 10px; overflow: hidden; }
.cmp.cmp-side { display: grid; grid-template: minmax(0, 1fr) / 1fr 1fr; gap: 2px; cursor: pointer; }
.cmp.cmp-wipe { cursor: ew-resize; touch-action: none; user-select: none; }
.cmp.cmp-wipe .cmp-pane { position: absolute; inset: 0; }
.cmp-pane { position: relative; min-width: 0; min-height: 0; background: #000; }
.cmp-pane video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cmp-pane.buffering::after { content: ''; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: var(--accent); animation: spin .8s linear infinite; pointer-events: none; }
.cmp-msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; z-index: 2; color: var(--text2); }
.cmp-msg:empty { display: none; }
.cmp-lbl { position: absolute; top: 10px; z-index: 4; display: flex; align-items: center; gap: 8px; }
.cmp-lbl.l { left: 10px; }
.cmp-lbl.r { right: 10px; flex-direction: row-reverse; }
.cmp-ver { font: 600 12px var(--mono); padding: 4px 8px; background: rgba(23, 24, 27, .92); }
.cmp-end { font-size: 11.5px; font-weight: 600; background: rgba(23, 24, 27, .92); border-radius: 6px; padding: 4px 8px; color: var(--text2); }
.cmp-line { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); z-index: 3; pointer-events: none; }
.cmp-line span { position: absolute; left: -11px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.icon-btn.flip svg { transform: scaleX(-1); }
.cmp-ctl .play { color: var(--on-accent); background: var(--accent); border-radius: 50%; }
.cmp-ctl .play:hover { background: var(--accent2); color: var(--on-accent); }
.cmp-ctl input[type=range] { min-width: 120px; }
@media (max-width: 700px) { .cmp-ctl { flex-wrap: wrap; } .cmp-ctl input[type=range] { order: -1; flex: 1 0 100%; } .cmp { height: calc(92vh - 230px); } }
.ctl-row { display: flex; align-items: center; gap: 6px; }

button, .primary-btn, .pill-btn, .ghost-btn, .seg-btn { white-space: nowrap; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .rv { height: auto; min-height: 100vh; overflow: visible; }
  .rv-main { grid-template-columns: 1fr; }
  .stage { height: 62vh; }
  .side { border-left: 0; border-top: 1px solid var(--line); min-height: 50vh; }
  .composer { width: calc(100% - 24px); }
  .draw-tools { flex-direction: row; top: 10px; left: 50%; transform: translateX(-50%); }
  .tool-sep { width: 1px; height: auto; }
  .player { margin: 62px 8px 104px; }
  .search, .vol, .vl-meta { display: none; }
  .vb-grid, .vl-row { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; }
  .vb-hint, .vl-empty { margin-left: 0; padding-left: 0; }
  main.browser, main.page { padding: 16px; }
  .crumb { max-width: 120px; }
  .browse { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 2px; }
  .sidebar .sb-head, .sidebar .sb-tree { display: none; }
  .lv-row { grid-template-columns: 1fr 70px 110px; }
  .lv-row > :nth-child(n+4) { display: none; }
}

/* motion only where people want it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ---------- in-app dialogs (replace browser prompt/confirm) ---------- */
.modal.small-modal { width: min(440px, 100%); }
.dlg { display: flex; flex-direction: column; gap: 10px; }
.dlg label { margin: 0; }
.dlg-msg { margin: 0; color: var(--text2); line-height: 1.55; }
.dlg-actions { margin-top: 6px; gap: 8px; }
.danger-btn { background: var(--bad); color: #fff; border: 0; font-weight: 650; border-radius: 8px; padding: 7px 15px; }
.danger-btn:hover { background: #ff7067; }
.search-row { align-items: flex-start; }
.search-row .ic { margin-top: 2px; }
.search-row .menu-label { display: flex; flex-direction: column; min-width: 0; }
.sr-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-sub { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- list view "…" menu, list drag targets, locked guest tiles ---------- */
.list-view .lv-row { grid-template-columns: minmax(160px, 3fr) 80px 115px 95px 80px minmax(0, 1fr) 30px; }
.lv-more { display: flex; justify-content: flex-end; }
.lv-row .lv-more .icon-btn { opacity: .55; transition: opacity var(--fast); }
.lv-row:hover .lv-more .icon-btn { opacity: 1; }
.lv-row.drop-on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.tile .thumb-lock { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); z-index: 2; }
@media (max-width: 900px) {
  .list-view .lv-row { grid-template-columns: 1fr 70px 110px 30px; }
  .list-view .lv-row > .lv-more { display: flex; }
}

/* ---------- review screen: touch drawing/scrubbing, narrow screens ---------- */
.player canvas.draw.active { touch-action: none; }
.tl-track { touch-action: none; }
@media (max-width: 900px) {
  .rv { overflow-x: clip; }
  /* the player controls stay on screen instead of ending up under the whole feedback list */
  .rv-bottom { position: sticky; bottom: 0; padding: 4px 10px calc(8px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 24px rgba(0, 0, 0, .35); }
  /* rows: [versions | zoom, speed, sound, view] / [timeline, full width] / [play, version, time] */
  .rv-bottom .vb-grid { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; row-gap: 2px; column-gap: 8px; }
  .rv-bottom .vb-left.vb-a { grid-column: 1; grid-row: 1; align-self: center; flex-wrap: wrap; }
  .rv-bottom .vb-right.vb-a { display: none; }
  .rv-bottom .vb-right.vb-b { grid-column: 2; grid-row: 1; align-self: center; }
  .rv-bottom .vb-mid { grid-column: 1 / -1; grid-row: 2; }
  .rv-bottom .vb-left.vb-b { grid-column: 1 / -1; grid-row: 3; }
  .rv-bottom.layers-open .vb-layers { max-height: 34vh; }
  .draw-tools { max-width: calc(100% - 16px); overflow-x: auto; scrollbar-width: none; }
  .draw-tools::-webkit-scrollbar { display: none; }
  .draw-tools .swatch { margin: auto 3px; flex: none; }
  .draw-tools .tool { flex: none; }
}
@media (max-width: 600px) {
  /* top bar on a phone: only the video name, a smaller status and no extra link button */
  .rv header.top { gap: 4px; padding: 0 8px; }
  .rv header.top > .row { min-width: 0; flex: 0 1 auto; gap: 2px; }
  .rv header.top .crumbs .crumb:not(.cur), .rv header.top .crumbs .sep { display: none; }
  .rv header.top .crumb.cur { max-width: 34vw; }
  .rv header.top .logo { flex: none; }
  .rv header.top .status-sel { max-width: 104px; padding: 3px 6px; font-size: 11px; }
  .rv header.top > .icon-btn[title="Copy link"] { display: none; }
  .rv header.top .primary-btn { padding: 5px 10px; }
  .draw-tools { gap: 1px; padding: 4px; }
  .draw-tools .tool { padding: 5px; }
  .draw-tools .swatch { width: 16px; height: 16px; margin: auto 2px; }
}
@media (max-width: 600px) {
  /* guest share page header (back link, status badge, download) and a last guard against sideways scrolling */
  .rv header.top { overflow: hidden; }
  .rv header.top .pill-btn { padding: 4px 8px; font-size: 12px; }
  .rv header.top .badge { flex: none; font-size: 11px; }
}
@media (max-width: 600px) { .vl-foot { flex-wrap: wrap; } .vl-foot .small.muted { flex: 1 0 100%; } .vl-foot .spacer { display: none; } .vl-row .seg-btn { font-size: 0; gap: 0; padding: 6px; } }

/* compare: sound icon on each picture, and a slider that looks the same in every browser */
.cmp-snd { position: absolute; z-index: 5; width: 36px; height: 36px; padding: 0; justify-content: center; border: 0; border-radius: 50%; background: rgba(17, 18, 20, .72); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.cmp-snd:hover { background: rgba(17, 18, 20, .92); }
.cmp-snd.on { background: var(--accent); color: var(--on-accent); }
.cmp-snd.on:hover { background: var(--accent2); }
.cmp-snd svg { width: 18px; height: 18px; }
.cmp-ctl input[type=range] { -webkit-appearance: none; appearance: none; height: 16px; background: transparent; cursor: pointer; }
.cmp-ctl input[type=range]:focus { box-shadow: none; }
.cmp-ctl input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--p, 0%), var(--s4) var(--p, 0%)); }
.cmp-ctl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -4px; border-radius: 50%; background: var(--accent); border: 0; }
.cmp-ctl input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--p, 0%), var(--s4) var(--p, 0%)); }
.cmp-ctl input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 0; }

/* playhead: the cap and the whole line can be dragged; feedback markers stay clickable on top of the line */
.tl-edge { pointer-events: auto; cursor: pointer; touch-action: none; }
.tl-marks { z-index: 2; pointer-events: none; }
.tl-marks .mk { pointer-events: auto; }
.tl-marks.solo .mk:not(.playing) { pointer-events: none; }
.tl-head::before { left: -6px; width: 14px; height: 10px; border-radius: 3px 3px 5px 5px; transition: transform var(--fast) var(--ease); }
.tl-grip { position: absolute; left: -9px; top: 0; width: 20px; height: 100%; pointer-events: auto; cursor: ew-resize; touch-action: none; }
.tl-head:hover::before, .scrubbing .tl-head::before { transform: scale(1.2); background: var(--accent2); }
.scrubbing, .scrubbing * { cursor: ew-resize !important; }

.cursor-btn.on { background: var(--accent-soft) !important; color: var(--accent) !important; box-shadow: inset 0 0 0 1px var(--accent-line); }

.fb.fresh { animation: fresh 1.6s var(--ease); }
@keyframes fresh { 0%, 40% { border-color: var(--accent); background: rgba(255, 194, 26, .12); } }

/* play / pause beside the picture */
.side-play { position: absolute; z-index: 3; width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(30, 31, 34, .92); color: var(--text); box-shadow: var(--lift); }
.side-play:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: scale(1.06); }
.side-play.inside { background: rgba(17, 18, 20, .72); border-color: transparent; color: #fff; }
.side-play svg { width: 20px; height: 20px; }
/* shapes and colours over the pen */
.pen-wrap { position: relative; display: flex; }
.pen-fly { position: absolute; left: 50%; bottom: 100%; padding-bottom: 12px; transform: translate(-50%, 6px); opacity: 0; visibility: hidden; transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility 0s .22s; z-index: 8; }
.pen-wrap:hover .pen-fly, .pen-wrap:focus-within .pen-fly { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: .06s, .06s, 0s; }
.pen-fly-box { display: flex; align-items: center; gap: 4px; padding: 6px; background: rgba(30, 31, 34, .98); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.pen-fly .fly-sep { width: 1px; align-self: stretch; background: var(--line); margin: 3px 4px; }
.pen-fly .swatch { margin: 0 3px; flex: none; }
/* compare: a colour and a timeline for each version */
.cmp-left { --side: #5ab0ff; --on-side: #08131f; }
.cmp-right { --side: var(--accent); --on-side: var(--on-accent); }
.cmp-ver { border: 1.5px solid var(--side); color: var(--side); }
.cmp-ver option { color: var(--text); }
.cmp-snd.on { background: var(--side); color: var(--on-side); }
.cmp-snd.on:hover { background: var(--side); filter: brightness(1.1); }
.cmp-rows { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; margin: 0 8px; }
.cmp-row { display: flex; align-items: center; gap: 10px; }
.cmp-row b { flex: none; min-width: 34px; text-align: center; font: 700 11.5px var(--mono); padding: 2px 6px; border-radius: 5px; background: var(--side); color: var(--on-side); }
.cmp-row .time { flex: none; min-width: 104px; text-align: right; }
.cmp-track { flex: 1; min-width: 0; display: flex; }
.cmp-ctl .cmp-track input[type=range] { min-width: 0; flex: none; order: 0; }
.cmp-ctl .cmp-track input[type=range]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--side) var(--p, 0%), var(--s4) var(--p, 0%)); }
.cmp-ctl .cmp-track input[type=range]::-webkit-slider-thumb { background: var(--side); }
.cmp-ctl .cmp-track input[type=range]::-moz-range-track { background: linear-gradient(90deg, var(--side) var(--p, 0%), var(--s4) var(--p, 0%)); }
.cmp-ctl .cmp-track input[type=range]::-moz-range-thumb { background: var(--side); }
.cmp { height: calc(92vh - 186px); }
@media (max-width: 700px) { .cmp-rows { order: -1; flex: 1 0 100%; margin: 0; } .cmp { height: calc(92vh - 256px); } .cmp-row .time { min-width: 88px; } }

/* recording bar: click or drag to any moment */
.rec-row .wave { position: relative; height: 34px; padding: 6px 0; cursor: pointer; touch-action: none; border-radius: 6px; }
.rec-row .wave:hover i:not(.on) { background: #4a4b52; }
.rec-row .wave.at::after { content: ''; position: absolute; top: 3px; bottom: 3px; left: var(--p, 0%); width: 2px; margin-left: -1px; border-radius: 2px; background: #fff; pointer-events: none; }
.rec-clock { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* only the visible parts of the feedback bar take clicks; the play button stays on top */
.composer, .composer .chips { pointer-events: none; }
.composer > :not(.chips), .composer .chips > * { pointer-events: auto; }
.side-play { z-index: 6; touch-action: manipulation; }
.composer:has(.pen-wrap:hover) { z-index: 7; }

/* selecting on the folder page */
.pick { position: absolute; top: 9px; right: 9px; z-index: 3; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(255, 255, 255, .75); background: rgba(10, 10, 11, .55); color: transparent; opacity: 0; cursor: pointer; transition: opacity var(--fast), background var(--fast), border-color var(--fast); }
.pick svg { width: 13px; height: 13px; stroke-width: 3.2; }
.tile:hover .pick, .lv-row:hover .pick, .selecting .pick { opacity: 1; }
.picked .pick { opacity: 1; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tile.picked { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.lv-row.picked, .lv-row.picked:hover { background: var(--accent-soft); }
.lv-name .pick { position: static; flex: none; width: 20px; height: 20px; border-width: 1.5px; border-color: var(--faint); background: transparent; }
.lv-name .pick svg { width: 11px; height: 11px; }
.lv-row.picked .lv-name .pick { background: var(--accent); border-color: var(--accent); }
.selecting .tile, .selecting .lv-row { cursor: pointer; user-select: none; }
.folder-tile { align-self: start; }
.folder-tile .card-more { margin: 24px 4px 0 0; align-self: flex-end; }
.sel-btn.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 650; }
.marquee { position: absolute; z-index: 30; border: 1.5px solid var(--accent); background: rgba(255, 194, 26, .12); border-radius: 4px; pointer-events: none; }
body.marqueeing, body.marqueeing * { user-select: none !important; cursor: crosshair !important; }
.sel-bar { position: fixed; left: 50%; bottom: 22px; translate: -50% 0; z-index: 35; display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 18px; background: rgba(38, 39, 43, .98); border: 1px solid #44454c; border-radius: 14px; box-shadow: var(--shadow); white-space: nowrap; max-width: calc(100vw - 24px); overflow-x: auto; }
.sel-sep { width: 1px; align-self: stretch; background: var(--line); margin: 2px 2px; }
.ghost-btn.danger:not(:disabled) { color: var(--bad); border-color: rgba(255, 90, 79, .4); }
.ghost-btn.danger:not(:disabled):hover { background: rgba(255, 90, 79, .12); }
.drag-ghost { position: fixed; left: -300px; top: 0; padding: 8px 14px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-weight: 700; }
main.browser { padding-bottom: 100px; }

/* English captions on the video */
.cc-box { position: absolute; z-index: 2; display: flex; justify-content: center; text-align: center; pointer-events: none; font-weight: 650; line-height: 1.35; }
.cc-box.hidden { display: none; }
.cc-box > span { padding: .12em .5em; border-radius: .25em; background: rgba(0, 0, 0, .72); color: #fff; box-decoration-break: clone; -webkit-box-decoration-break: clone; word-break: break-word; }
.cc-btn { font-family: var(--mono); font-weight: 700; letter-spacing: .04em; }
.cc-btn.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cc-btn.busy { animation: blink 1.4s infinite; }
.cmp-pane .cc-box { z-index: 3; }
/* English lines under German feedback */
.fb-en { margin-top: 6px; padding: 6px 9px; border-radius: 8px; background: rgba(90, 176, 255, .08); border: 1px solid rgba(90, 176, 255, .22); color: var(--text); font-size: 13px; line-height: 1.5; }
.fb-en.muted { color: var(--muted); }
.en-tag { display: inline-block; margin-right: 7px; padding: 0 5px; border-radius: 4px; background: #5ab0ff; color: #08131f; font: 700 10px/16px var(--mono); vertical-align: 1px; }
.note-en { display: block; margin-top: 2px; color: #8fc8ff; font-size: 12.5px; }

/* captions: CC switches on/off, the arrow holds Always on + language */
.cc-group { display: inline-flex; }
.cc-group .cc-btn { border-radius: 8px 0 0 8px; }
.cc-group .cc-more { border-radius: 0 8px 8px 0; border-left: 0; padding: 4px 6px; }
.cc-btn.on + .cc-more { border-color: var(--accent); }
.cc-btn.dim { opacity: .6; }
