/* ==========================================================================
   The video editor (2026-10-04) — editor.js. His one page, and ELYOX's side of it in Brands.
   Built on voice.css (va-card, va-take, va-job…): same system, yellow = waiting for someone, black = done.
   ========================================================================== */

/* ── his page: what he edits from ────────────────────────────────────── */
.ed-script > summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 2px 0 8px; }
.ed-script .va-lines { font-size: 15px; }

.ed-kit { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.ed-kit-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; font-size: 13px; }
.ed-kit-row > b { font-size: 12px; font-weight: 700; }
.ed-kit-row audio { height: 32px; flex: 1 1 200px; min-width: 0; max-width: 100%; }
.ed-kit-row .hint { overflow-wrap: anywhere; }
.ed-files { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.ed-files .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* an edit: its picture, the length, where it stands */
.ed-edit { align-items: center; }
.ed-thumb {
  position: relative; flex-shrink: 0; width: 44px; height: 78px; border-radius: 10px; overflow: hidden;
  border: 0; padding: 0; background: var(--surface-2); color: var(--ink-3); display: grid; place-items: center; cursor: pointer;
}
.ed-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-thumb .br-play { position: absolute; inset: auto 4px 4px auto; width: 20px; height: 20px; }
.ed-player { display: block; width: 100%; max-height: 58vh; border-radius: 14px; background: #000; margin: 4px 0 8px; }
.ed-probe { min-height: 1em; }

/* the product's footage */
.ed-foot { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; max-height: 60vh; overflow: auto; }
.ed-foot-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.ed-foot-img { flex-shrink: 0; width: 40px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--surface); display: grid; place-items: center; color: var(--ink-3); }
.ed-foot-img img { width: 100%; height: 100%; object-fit: cover; }
.ed-foot-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ed-foot-txt b { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* his pay (Team, 049) */
.ed-pay-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 4px 0 12px; }
.ed-pay-big b { font-size: 32px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ed-pay-big span { font-size: 13px; color: var(--ink-2); }
.ed-pay-big.is-owed b { color: var(--ink); background: var(--act); padding: 0 8px; border-radius: 10px; }
.ed-lines { display: flex; flex-direction: column; }
.ed-lrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13px; min-width: 0; }
.ed-lwhen { flex-shrink: 0; width: 96px; color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.ed-lwhat { flex: 1; min-width: 0; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.ed-lamt { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.ed-lrow .badge { flex-shrink: 0; }

/* ── ELYOX's side: giving a script ───────────────────────────────────── */
.ed-send-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.ed-send-row .field { flex: 0 1 220px; }
.ed-check { padding-bottom: 10px; }
.ed-files-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ed-file { display: inline-flex; align-items: center; gap: 4px; padding: 2px 2px 2px 10px; border-radius: 999px; background: var(--surface-2); font-size: 12px; max-width: 100%; }
.ed-file.is-new { background: var(--act); color: var(--act-ink); }
.ed-vbox .pv-row { margin-top: 8px; }

/* ── 053: his page by product ────────────────────────────────────────── */
.ed-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ed-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ed-chip.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.ed-chip-n { min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--act); color: var(--act-ink); font-size: 11px; text-align: center; }
.ed-prod { display: flex; flex-direction: column; gap: 14px; }
.ed-prod-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.ed-prod-head .st-prod-txt { flex: 1 1 180px; min-width: 0; }
.ed-prod-head .st-prod-txt b { font-size: 17px; }
.ed-prod-links { display: flex; gap: 8px; flex-wrap: wrap; }
.ed-kit2 { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface-2); min-width: 0; }
.ed-about > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.ed-about p { margin: 8px 0 0; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.ed-facts { display: grid; grid-template-columns: minmax(90px, max-content) 1fr; gap: 6px 14px; margin: 10px 0 0; font-size: 13px; }
.ed-facts dt { color: var(--ink-3); font-weight: 600; }
.ed-facts dd { margin: 0; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.ed-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ed-sub h4 { margin: 0; font-size: 13px; font-weight: 700; }
.ed-sub .btn { margin-left: auto; }
.ed-foot-inline { max-height: none; }
.ed-foot-inline .ed-foot-item { background: var(--surface); }
button.ed-foot-img { position: relative; border: 0; padding: 0; cursor: pointer; }
button.ed-foot-img .br-play { position: absolute; inset: auto 3px 3px auto; width: 18px; height: 18px; }
.ed-noscript { margin: 0; }

/* ── 053: ELYOX's side, the product shared with the editor ────────────── */
.ed-share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); margin-bottom: 10px; }
.ed-share.is-on { box-shadow: inset 0 0 0 1px var(--border-strong); }
.ed-share-txt { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.ed-links { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ed-links .field { flex: 1 1 240px; min-width: 0; }
.ed-links .field > span { display: inline-flex; align-items: center; gap: 5px; }

/* his account: the top bar keeps only what he uses */
body.is-editor .topnav .sections .sec { pointer-events: none; }

@media (max-width: 720px) {
  .ed-lwhen { width: 64px; }
  .ed-send-row .field { flex: 1 1 100%; }
  .ed-pay-big b { font-size: 26px; }
}

/* ── the account window: «Products he works on» ──────────────────────── */
.ed-pick { display: flex; flex-direction: column; gap: 12px; max-height: 46vh; overflow: auto; margin-bottom: 12px; padding-right: 4px; }
.ed-pick-g { display: flex; flex-direction: column; gap: 6px; }
.ed-pick-brand { font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.ed-pick-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); cursor: pointer; min-width: 0; }
.ed-pick-row.is-on { box-shadow: inset 0 0 0 1px var(--ink); }
.ed-pick-row input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--ink); }
.ed-pick-img { flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--surface); display: grid; place-items: center; color: var(--ink-3); }
.ed-pick-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.ed-pick-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the creative strategist's remarks on his job (065) */
.ed-strem { box-shadow: inset 3px 0 0 var(--act); }
.ed-strem-r { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; border-top: 1px solid var(--border); }
.ed-strem-r:first-of-type { border-top: 0; }
.ed-strem-on { font-size: 12px; font-weight: 700; color: var(--ink-2); unicode-bidi: plaintext; }
.ed-strem p b { text-transform: none; font-size: 12.5px; letter-spacing: 0; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 6px; }
.ed-sub-act { display: inline-flex; gap: 6px; flex-wrap: wrap; } .ed-new { font-size: 10.5px; padding: 1px 6px; vertical-align: 1px; }
