/* cv-collab.css — the Together panel, live cursors, playheads, chat, claims (2026-09-02, v4).

   Reads like the rest of the app, not like a widget: the page's own face (Montserrat in
   the editor, Plate's face in Plate) at regular weight, white and black with one hairline
   at 8% and the person's colour used only as a dot, a ring or a cursor. Radii sit on the
   editor's ladder (4 · 6 · 8 · 10), every spacing is on a 2px grid, and anything that
   floats is mostly see-through — a 42% ink at 18px blur, never a solid card.
   Everything that appears, fades or lifts in; nothing pops. Reduced motion turns it off. */

:root {
  --cvc-ink: rgba(10, 10, 12, .42);
  --cvc-ink-2: rgba(10, 10, 12, .58);
  --cvc-line: rgba(255, 255, 255, .08);
  --cvc-line-2: rgba(255, 255, 255, .14);
  --cvc-fill: rgba(255, 255, 255, .06);
  --cvc-fill-2: rgba(255, 255, 255, .10);
  --cvc-text: #ededed;
  --cvc-mute: rgba(237, 237, 237, .55);
  --cvc-dim: rgba(237, 237, 237, .38);
  --cvc-blur: blur(18px) saturate(1.2);
  --cvc-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ── the top-bar button ─────────────────────────────────────────────────────────── */
.cvc-btn { display: inline-flex; align-items: center; gap: 6px; position: relative; font-weight: 400; }
.cvc-dots { display: inline-flex; align-items: center; }
.cvc-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #0b0b0d; margin-left: -3px; display: inline-block; }
.cvc-dots i:first-child { margin-left: 0; }
.cvc-dots:empty { display: none; }
.cvc-n { font-weight: 400; font-size: 11px; opacity: .7; }
.cvc-btn.unread::after { content: ""; position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.cvc-btn-plate { width: auto !important; padding: 0 10px !important; gap: 6px; font-size: 11px; letter-spacing: .3px; border-radius: 8px !important; }
.cvc-btn-plate .cvc-dots i { border-color: #101014; }

/* ── the panel ──────────────────────────────────────────────────────────────────── */
.cvc-panel { position: fixed; top: 56px; right: 12px; bottom: 12px; width: 312px; z-index: 900; display: flex; flex-direction: column;
  background: var(--cvc-ink); -webkit-backdrop-filter: var(--cvc-blur); backdrop-filter: var(--cvc-blur);
  border: 1px solid var(--cvc-line); border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  color: var(--cvc-text); font-family: inherit; font-size: 12px; font-weight: 400; line-height: 1.45; letter-spacing: .1px; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(6px) scale(.985); transform-origin: top right; pointer-events: none;
  transition: opacity .18s var(--cvc-ease), transform .22s var(--cvc-ease), visibility 0s linear .22s; }
.cvc-panel.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.cvc-panel *, .cvc-panel *::before, .cvc-panel *::after { box-sizing: border-box; font-family: inherit; }

.cvc-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 8px 12px; border-bottom: 1px solid var(--cvc-line); }
.cvc-tabs { display: inline-flex; gap: 2px; background: var(--cvc-fill); border-radius: 8px; padding: 2px; }
.cvc-tabs button { border: 0; background: none; color: var(--cvc-mute); font-size: 12px; font-weight: 400; padding: 5px 12px; border-radius: 6px; cursor: pointer; position: relative; letter-spacing: .2px; transition: color .15s, background .15s; }
.cvc-tabs button:hover { color: var(--cvc-text); }
.cvc-tabs button.on { background: var(--cvc-fill-2); color: #fff; }
.cvc-tabs button.unread::after { content: ""; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.cvc-tabs button:disabled { opacity: .35; cursor: default; }
.cvc-x { border: 0; background: none; color: var(--cvc-mute); font-size: 12px; cursor: pointer; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; transition: color .15s, background .15s; }
.cvc-x:hover { color: #fff; background: var(--cvc-fill); }
.cvc-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.cvc-tab { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; animation: cvc-in .18s var(--cvc-ease); }
.cvc-tab[hidden] { display: none; }

/* ── people ─────────────────────────────────────────────────────────────────────── */
.cvc-list { flex: 1 1 auto; overflow: auto; padding: 6px 6px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; }
.cvc-list::-webkit-scrollbar { width: 6px; } .cvc-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 99px; } .cvc-list::-webkit-scrollbar-button { display: none; }
.cvc-person { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; opacity: .5; cursor: default; transition: background .15s, opacity .2s; }
.cvc-person.on { opacity: 1; cursor: pointer; }
.cvc-person.on:hover { background: var(--cvc-fill); }
.cvc-face { display: inline-grid; place-items: center; border-radius: 50%; flex: 0 0 auto; color: #fff; font-weight: 500; font-size: 11px; overflow: hidden; background-size: cover; background-position: center; }
.cvc-ptxt { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.cvc-ptxt b { font-weight: 400; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvc-ptxt small { color: var(--cvc-mute); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvc-dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }
.cvc-empty { padding: 22px 16px; color: var(--cvc-mute); text-align: center; line-height: 1.55; }
.cvc-empty a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--cvc-line-2); }
.cvc-actions { display: flex; gap: 6px; padding: 10px 12px 2px; }
.cvc-act { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 8px; padding: 8px 10px; background: #fff; color: #000; font-size: 12px; font-weight: 500; letter-spacing: .2px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s var(--cvc-ease); }
.cvc-act:hover { background: #f4f4f4; }
.cvc-act:active { transform: translateY(1px); }
.cvc-act.ghost { background: var(--cvc-fill); color: #fff; border-color: var(--cvc-line-2); font-weight: 400; }
.cvc-act.ghost:hover { background: var(--cvc-fill-2); border-color: rgba(255, 255, 255, .3); }
.cvc-act:disabled { opacity: .5; cursor: default; transform: none; }
.cvc-act svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cvc-note { padding: 6px 12px 10px; font-size: 11px; color: var(--cvc-mute); min-height: 18px; }
.cvc-note.bad { color: #ff9b9b; }

/* ── areas: claim chips ─────────────────────────────────────────────────────────── */
.cvc-areas { padding: 2px 12px 8px; border-top: 1px solid var(--cvc-line); }
.cvc-areas[hidden] { display: none; }
.cvc-ahead { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--cvc-dim); padding: 10px 0 6px; display: flex; justify-content: space-between; align-items: baseline; font-weight: 400; }
.cvc-ahead small { text-transform: none; letter-spacing: .1px; font-size: 11px; color: var(--cvc-dim); }
.cvc-agrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cvc-area { display: flex; align-items: center; gap: 7px; border: 1px solid var(--cvc-line); border-radius: 8px; padding: 7px 8px; background: var(--cvc-fill); color: var(--cvc-text); font-size: 12px; font-weight: 400; cursor: pointer; text-align: left; min-height: 34px;
  box-shadow: inset 0 0 0 1px transparent; transition: background .15s, border-color .15s, box-shadow .2s var(--cvc-ease), transform .15s var(--cvc-ease); }
.cvc-area:hover { background: var(--cvc-fill-2); border-color: var(--cvc-line-2); }
.cvc-area:active { transform: translateY(1px); }
.cvc-area svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; opacity: .8; }
.cvc-area span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvc-area .cvc-free { font-style: normal; font-size: 10px; color: var(--cvc-dim); }
.cvc-area.mine { border-color: transparent; box-shadow: inset 0 0 0 1px var(--c); background: var(--cvc-fill-2); }
.cvc-area.held { opacity: .7; }
.cvc-area .cvc-face { font-size: 9px; }

/* ── locks: someone else's area, visible but inert, with their name on it ───────── */
.cvc-locked { pointer-events: none !important; opacity: .4 !important; position: relative; transition: opacity .2s; }
.ed-tab.cvc-locked::after { content: attr(data-cvc-who); position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); white-space: nowrap; font-size: 10px; font-weight: 500; letter-spacing: .3px; color: #000; background: #fff; padding: 2px 6px; border-radius: 4px; opacity: 1; pointer-events: none; }
[data-panel].cvc-locked::before { content: attr(data-cvc-who) " is working here"; position: sticky; top: 0; display: block; z-index: 5; margin: 0 0 8px; padding: 7px 10px; border-radius: 8px; background: var(--cvc-ink-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--cvc-line); color: #fff; font-size: 11px; font-weight: 400; opacity: 1; }
body.cvc-lock-cuts .cvtl .clip.t-video, body.cvc-lock-cuts .cvtl .clip.k-effect, body.cvc-lock-cuts .cvtl .clip.k-filter, body.cvc-lock-cuts .cvtl .clip.k-transition { pointer-events: none; opacity: .45; box-shadow: inset 0 0 0 1px var(--cvc-lock-cuts); transition: opacity .2s; }
body.cvc-lock-sound .cvtl .clip.t-audio { pointer-events: none; opacity: .45; box-shadow: inset 0 0 0 1px var(--cvc-lock-sound); transition: opacity .2s; }

/* ── chat ───────────────────────────────────────────────────────────────────────── */
.cvc-msgs { flex: 1 1 auto; overflow: auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; }
.cvc-msgs::-webkit-scrollbar { width: 6px; } .cvc-msgs::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 99px; } .cvc-msgs::-webkit-scrollbar-button { display: none; }
.cvc-msg { display: flex; align-items: flex-end; gap: 6px; max-width: 90%; animation: cvc-up .18s var(--cvc-ease); }
.cvc-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.cvc-bub { background: var(--cvc-fill); border: 1px solid var(--cvc-line); border-radius: 10px; padding: 6px 9px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cvc-msg.mine .cvc-bub { background: rgba(255, 255, 255, .14); border-color: transparent; }
.cvc-bub b { font-weight: 400; font-size: 11px; color: var(--cvc-mute); }
.cvc-msg.mine .cvc-bub b { display: none; }
.cvc-bub span { white-space: pre-wrap; word-break: break-word; color: #fff; }
.cvc-bub time { font-size: 10px; color: var(--cvc-dim); align-self: flex-end; margin-top: 1px; }
.cvc-compose { display: flex; gap: 6px; padding: 8px 12px 12px; border-top: 1px solid var(--cvc-line); }
.cvc-compose input { flex: 1; min-width: 0; border: 1px solid var(--cvc-line); border-radius: 8px; padding: 8px 10px; background: var(--cvc-fill); color: #fff; font-size: 12px; font-weight: 400; font-family: inherit; outline: none; transition: border-color .15s, background .15s; }
.cvc-compose input::placeholder { color: var(--cvc-dim); }
.cvc-compose input:focus { border-color: var(--cvc-line-2); background: var(--cvc-fill-2); }
.cvc-compose button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: #fff; color: #000; cursor: pointer; display: grid; place-items: center; flex: 0 0 auto; transition: background .15s, transform .15s var(--cvc-ease); }
.cvc-compose button:hover { background: #f4f4f4; }
.cvc-compose button:active { transform: translateY(1px); }
.cvc-compose button svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── voice ──────────────────────────────────────────────────────────────────────── */
.cvc-voice { border-top: 1px solid var(--cvc-line); padding: 10px 12px 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cvc-voice[hidden] { display: none; }
.cvc-vbtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 8px; padding: 7px 12px; background: #fff; color: #000; font-size: 12px; font-weight: 500; letter-spacing: .2px; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .2s; }
.cvc-vbtn:hover { background: #f4f4f4; }
.cvc-vbtn.ghost { background: var(--cvc-fill); color: #fff; border-color: var(--cvc-line-2); font-weight: 400; }
.cvc-vbtn.ghost:hover { background: var(--cvc-fill-2); }
.cvc-vbtn.on { background: var(--cvc-fill); color: #fff; border-color: rgba(255, 96, 96, .5); box-shadow: inset 0 0 0 1px rgba(255, 96, 96, .25); }
.cvc-vbtn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cvc-vlist { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.cvc-vp { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border-radius: 99px; background: var(--cvc-fill); border: 1px solid var(--cvc-line); font-size: 11px; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .12s, border-color .12s; }
.cvc-vp.talking { border-color: transparent; box-shadow: inset 0 0 0 1px var(--c); }
.cvc-vnone { color: var(--cvc-dim); font-size: 11px; }

/* ── live cursors: an arrow in the person's colour with a name tag, over everything ─ */
.cvc-cursors { position: fixed; inset: 0; pointer-events: none; z-index: 1200; overflow: hidden; }
.cvc-cur { position: absolute; left: 0; top: 0; transition: transform .08s linear, opacity .4s; will-change: transform; animation: cvc-in .2s var(--cvc-ease); }
.cvc-cur svg { width: 16px; height: 16px; fill: var(--c); stroke: rgba(0, 0, 0, .6); stroke-width: 1; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.cvc-cur .cvc-tag { position: absolute; left: 13px; top: 15px; white-space: nowrap; background: var(--c); color: #000; font-size: 10px; font-weight: 500; letter-spacing: .2px; font-family: inherit; padding: 2px 7px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); transition: transform .12s var(--cvc-ease); }
.cvc-cur.down svg { transform: scale(.85); }
.cvc-cur.down .cvc-tag { transform: translateY(-1px); }
.cvc-cur.idle { opacity: .3; }

/* ── everyone's playhead on the stage's scrub rail ─────────────────────────────── */
.ed-scrub2-rail { position: relative; }
.cvc-ph { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; cursor: pointer; opacity: .9; transition: left .25s linear, opacity .15s; pointer-events: auto; animation: cvc-in .2s var(--cvc-ease); }
.cvc-ph::after { content: attr(title); position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, 2px); margin-bottom: 5px; font-size: 10px; font-weight: 500; font-family: inherit; color: #000; background: #fff; padding: 2px 6px; border-radius: 4px; white-space: nowrap; opacity: 0; transition: opacity .12s, transform .15s var(--cvc-ease); pointer-events: none; }
.cvc-ph:hover::after { opacity: 1; transform: translate(-50%, 0); }

/* ── a newer save exists ────────────────────────────────────────────────────────── */
.cvc-stale { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 1250; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 10px;
  background: var(--cvc-ink-2); -webkit-backdrop-filter: var(--cvc-blur); backdrop-filter: var(--cvc-blur); border: 1px solid var(--cvc-line); color: #fff; font-size: 12px; font-weight: 400; font-family: inherit; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); animation: cvc-rise .22s var(--cvc-ease); }
.cvc-stale button { border: 0; border-radius: 6px; padding: 6px 12px; background: #fff; color: #000; font-size: 11px; font-weight: 500; font-family: inherit; cursor: pointer; }
.cvc-stale i { font-style: normal; color: var(--cvc-mute); cursor: pointer; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; transition: background .15s, color .15s; }
.cvc-stale i:hover { color: #fff; background: var(--cvc-fill); }

/* ── motion ─────────────────────────────────────────────────────────────────────── */
@keyframes cvc-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cvc-up { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes cvc-rise { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) {
  .cvc-panel, .cvc-tab, .cvc-msg, .cvc-cur, .cvc-ph, .cvc-stale, .cvc-area, .cvc-act, .cvc-vbtn { animation: none !important; transition: none !important; }
}

@media (max-width: 720px) { .cvc-panel { left: 8px; right: 8px; width: auto; top: auto; height: 60vh; transform-origin: bottom center; } }

/* ANNOTATIONS + REPLIES (2026-09-15) */
.cvc-anno { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }
.cvc-anno.drawing { pointer-events: auto; cursor: crosshair; touch-action: none; }
.cvc-act.on { background: rgba(255,255,255,.14); }
.cvc-quote { font-size: 11px; opacity: .6; border-left: 2px solid currentColor; padding-left: 6px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvc-bub { position: relative; }
.cvc-reply { position: absolute; right: 4px; top: 2px; background: none; border: none; color: inherit; opacity: 0; cursor: pointer; font-size: 12px; padding: 2px 4px; }
.cvc-msg:hover .cvc-reply { opacity: .7; }
.cvc-replying { display: flex; align-items: center; gap: 8px; padding: 4px 10px; font-size: 11px; opacity: .8; border-top: 1px solid rgba(255,255,255,.08); }
.cvc-replying span { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvc-replying button { background: none; border: none; color: inherit; cursor: pointer; }
.cvc-replying[hidden] { display: none; }
