/* ==========================================================================
   A brand's CEO (2026-10-04) — ceo.js. His one page, redesigned with ui-ux-pro-max: one action queue first, a product
   rail with the pictures, then one tab at a time. Built on the CRM's own tokens and on voice.css / editor.css
   (va-card, va-lines…): yellow = waiting for someone, black = done. Touch targets 44 px, no sideways page scroll.
   ========================================================================== */

/* the tiles are buttons: they open their tab */
.ce-metric { cursor: pointer; text-align: left; font: inherit; color: inherit; background: none; border: 0; padding: 0; border-radius: 16px; }
.ce-metric:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (hover: hover) { .ce-metric:hover .metric-v { text-decoration: underline; text-underline-offset: 4px; } }

/* Telegram, only until his own is linked */
.ce-tgline {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px;
  background: var(--surface-2); font-size: 13px; color: var(--ink-2);
}
.ce-tgline span { flex: 1 1 220px; min-width: 0; }

/* ── the product rail ─────────────────────────────────────────────────── */
.ce-rail {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 6px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.ce-prod {
  scroll-snap-align: start; flex: 0 0 auto; width: 196px; min-height: 64px; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 8px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.ce-prod:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .ce-prod:hover { border-color: var(--ink-3); } }
.ce-prod.is-on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.ce-prod-img {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-3);
}
.ce-prod.is-on .ce-prod-img { background: rgba(255, 255, 255, .12); color: inherit; }
.ce-prod-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ce-prod-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ce-prod-txt b { font-size: 13px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ce-prod-txt small { font-size: 11.5px; opacity: .72; }

/* (159) «All products ▾» opens the products menu: a search, every product newest first, 📦 Archive, the archived ones */
.ce-railwrap { position: relative; }
.ce-prod-caret { margin-left: auto; flex-shrink: 0; opacity: .7; transition: transform .15s ease; }
.ce-prod-menu[aria-expanded="true"] .ce-prod-caret { transform: rotate(180deg); }
.ce-pmenu {
  position: absolute; z-index: 20; top: calc(100% + 2px); left: 0; width: min(440px, 100%); max-height: min(70vh, 580px);
  display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow-lg);
}
.ce-pmenu[hidden] { display: none; }
.ce-pm-search { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-bottom: 1px solid var(--border); color: var(--ink-3); }
.ce-pm-search input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.ce-pm-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 6px; }
.ce-pm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ce-pm-row { display: flex; align-items: center; gap: 6px; padding-right: 6px; border-radius: 12px; }
.ce-pm-row[hidden], .ce-pm-sep[hidden] { display: none; }
.ce-pm-row.is-on { background: var(--surface-2); }
.ce-pm-pick {
  flex: 1; min-width: 0; min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 0;
  border-radius: 12px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
@media (hover: hover) { .ce-pm-pick:hover { background: var(--surface-2); } }
.ce-pm-pick:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.ce-pm-pick .ce-prod-img { width: 40px; height: 40px; border-radius: 10px; }
.ce-pm-row .btn { flex-shrink: 0; }
.ce-pm-sep {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; padding: 12px 8px 6px; border-top: 1px solid var(--border);
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
}
.ce-pm-sep small { flex-basis: 100%; font-weight: 400; color: var(--ink-3); }
.ce-pm-none { margin: 0; padding: 14px 10px; font-size: 13px; color: var(--ink-3); }
.ce-archline .btn { flex-shrink: 0; }
@media (pointer: coarse) { .ce-pm-row .btn-sm, .ce-prod-ends .btn-sm { min-height: 44px; } }
@media (max-width: 640px) { .ce-pmenu { width: 100%; max-height: 65vh; } .ce-pm-arch span { display: none; } }

/* ── the tabs ─────────────────────────────────────────────────────────── */
.ce-tabs {
  position: sticky; top: var(--topbar-h, 64px); z-index: 5; display: flex; gap: 4px; padding: 4px; border-radius: 16px;
  background: var(--surface-2); overflow-x: auto; scrollbar-width: none; scroll-margin-top: 80px;
}
.ce-tabs::-webkit-scrollbar { display: none; }
.ce-tab {
  flex: 1 0 auto; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 16px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s ease, color .15s ease;
}
.ce-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.ce-tab.is-on { background: var(--ink); color: var(--surface); }
.ce-tab.is-on .ce-tab-n:not(.is-act) { background: rgba(127, 127, 127, .28); color: inherit; }
.ce-tab-n {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--surface-3, var(--border)); color: var(--ink); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.ce-tab-n.is-act { background: var(--act); color: var(--act-ink); }
.ce-panel { display: flex; flex-direction: column; gap: 20px; }

/* ── the queue ────────────────────────────────────────────────────────── */
.ce-queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; }
/* several scripts of one product to choose from (072): by who wrote them, side by side */
.ce-choose { display: flex; flex-direction: column; gap: 14px; padding: 14px; margin-bottom: 16px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-2); }
.ce-choose-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ce-choose-t { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ce-choose-t b { font-size: 15px; unicode-bidi: plaintext; }
.ce-choose-t span { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.ce-choose-head .btn { min-height: 44px; }
.ce-choose-src h4 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.ce-card.is-wait { border-color: var(--act); box-shadow: inset 0 0 0 1px var(--act); }
.ce-kind {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 2px; padding: 2px 8px 2px 6px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.ce-card .st-prod-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ce-vid-top { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.va-card audio { width: 100%; height: 40px; }
.ce-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 12px; text-align: center; color: var(--ink-2); }
.ce-empty .i { width: 28px; height: 28px; padding: 8px; box-sizing: content-box; border-radius: 999px; background: var(--surface-2); color: var(--ink); }
.ce-empty b { font-size: 15px; color: var(--ink); }
.ce-empty span { font-size: 13px; max-width: 360px; }

/* a video: 9:16 at a size you can judge */
.ce-vid { display: flex; gap: 14px; min-width: 0; }
.ce-vid-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ce-vid-txt b { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.ce-vid-txt > span:not(.badge) { font-size: 12.5px; color: var(--ink-3); }
.ce-poster {
  position: relative; flex-shrink: 0; width: 96px; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; padding: 0; border: 0;
  background: #111; color: #fff; display: grid; place-items: center; cursor: pointer;
}
.ce-poster:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ce-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ce-play {
  position: relative; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(0, 0, 0, .55); color: #fff; transition: transform .15s ease;
}
@media (hover: hover) { .ce-poster:hover .ce-play { transform: scale(1.08); } }
.ce-dur {
  position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .65);
  color: #fff; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.ce-player { max-height: 72vh; aspect-ratio: 9 / 16; width: auto; max-width: 100%; margin-inline: auto; }

.ce-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ce-acts .btn { min-height: 44px; }

/* ── scripts ──────────────────────────────────────────────────────────── */
.ce-seg { align-self: flex-start; display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); max-width: 100%; flex-wrap: wrap; }
.ce-seg-b {
  min-height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.ce-seg-b:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.ce-seg-b.is-on { background: var(--ink); color: var(--surface); }
.ce-add-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.ce-add .field { display: flex; flex-direction: column; gap: 6px; }
.ce-add .field > span { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ce-add-text { font-size: 15px; line-height: 1.7; unicode-bidi: plaintext; resize: vertical; }
textarea.input.ce-add-text { min-height: 180px; }   /* past textarea.input's 76px (the phone keeps its 16px text) */
.ce-hook { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; font-weight: 600; line-height: 1.5; unicode-bidi: plaintext; overflow-wrap: anywhere; }
.ce-err { color: var(--danger, #c0392b); }

/* rows: the scripts sent, the Doctor's imports, the strategist's remarks, the team's pay */
.ce-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ce-rows li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); min-width: 0; flex-wrap: wrap; }
.ce-rows li:first-child { border-top: 0; }
.ce-row-t { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; overflow-wrap: anywhere; }
.ce-row-t small { color: var(--ink-3); font-size: 12px; }
.ce-row-t audio { width: 100%; max-width: 420px; height: 36px; margin-top: 4px; }   /* the Voice tab: an answered take, still playable */
.ce-moment { font-size: 12.5px; color: var(--ink-2); unicode-bidi: plaintext; }
.ce-moment b { font-variant-numeric: tabular-nums; margin-right: 4px; color: var(--ink); }
.ce-given-end { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }   /* (156) its badge + ↩ Undo */
@media (pointer: coarse) { [data-ceundo] { min-height: 44px; } }
.ce-pay { display: flex; flex-direction: column; align-items: flex-end; min-width: 92px; }
.ce-pay b { font-size: 16px; font-variant-numeric: tabular-nums; }
.ce-pay small { font-size: 11px; color: var(--ink-3); }

/* ── products ─────────────────────────────────────────────────────────── */
/* (2026-10-16) a compact card: picture, name, numbers, ONE main button top right; its other photos small */
.ce-product { display: flex; flex-direction: column; gap: 14px; }
.ce-product-head { display: flex; gap: 16px; align-items: flex-start; }
.ce-product-cover {
  flex: 0 0 auto; width: 104px; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--surface-2);
  display: grid; place-items: center; color: var(--ink-3);
}
.ce-product-cover .ce-photo-btn { width: 100%; height: 100%; border-radius: 0; }
.ce-product-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ce-product-txt h3 { margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; unicode-bidi: plaintext; }
.ce-product-note { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); unicode-bidi: plaintext;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ce-product-stats { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--ink-2); }
.ce-product-stats b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ce-product-link { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.ce-product-link:hover { color: var(--ink); }
.ce-product-go { flex-shrink: 0; min-height: 44px; }
.ce-photos { display: flex; flex-wrap: wrap; gap: 6px; }
.ce-photos .ce-photo-btn { width: 44px; height: 44px; border-radius: 10px; }
.ce-photo-btn { width: 100%; height: 100%; border-radius: 0; }
.ce-product-txt { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ce-product-txt h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.ce-product-txt p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); unicode-bidi: plaintext; }
.ce-product-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.ce-product-stats b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ce-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ce-photo-btn {
  display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 12px; overflow: hidden;
  background: var(--surface-2); cursor: zoom-in;
}
.ce-photo-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ce-photo-btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
@media (hover: hover) { .ce-photo-btn:hover img { transform: scale(1.04); } }
.ce-lightbox { display: grid; place-items: center; background: var(--surface-2); border-radius: 14px; min-height: 240px; }
.ce-lightbox img { max-width: 100%; max-height: 70vh; object-fit: contain; border-radius: 10px; }

/* ── ads ──────────────────────────────────────────────────────────────── */
.ce-ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.ce-ad { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ce-poster-lg { width: 100%; border-radius: 16px; }
.ce-ad-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-right: 44px; }
.ce-ad-txt b { font-size: 13px; }
.ce-ad-txt span { font-size: 11.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.ce-dl { position: absolute; right: 0; bottom: 0; width: 40px; height: 40px; }

.ce-link { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.ce-reasons { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

/* ── the strategist's review on a script (056) ─────────────────────────── */
.ce-stline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 12.5px; color: var(--ink-2); }
.ce-stline p { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--ink); line-height: 1.55; unicode-bidi: plaintext; white-space: pre-wrap; }
.ce-stline.is-changes { box-shadow: inset 3px 0 0 var(--act); }

/* ── ads, product by product ─────────────────────────────────────────── */
.ce-adgroup { display: flex; flex-direction: column; gap: 10px; }
.ce-adgroup + .ce-adgroup { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.ce-adgroup-head {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 12px 4px 4px;
  border: 0; border-radius: 14px; background: transparent; color: var(--ink); font: inherit; cursor: pointer;
}
.ce-adgroup-head .ce-prod-img { width: 36px; height: 36px; border-radius: 10px; }
.ce-adgroup-head b { font-size: 15px; }
@media (hover: hover) { .ce-adgroup-head:hover { background: var(--surface-2); } }
.ce-adgroup-head:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* (122) a product's ads angle by angle, with «Download all» and an angle's «Download» (a zip, a folder per angle) */
.ce-adgroup-top { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.ce-adgroup-top .ce-adgroup-head { margin-right: auto; }
.ce-adgroup-sum { font-size: 12.5px; color: var(--ink-3); }
.ce-adgroup-top > .ce-adgroup-sum:first-child { margin-right: auto; font-size: 13.5px; color: var(--ink-2); }
.ce-zip { min-height: 36px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ce-zip[aria-busy='true'] { opacity: 1; }
.ce-adangle { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.ce-adangle-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ce-adangle-head b { flex: 0 1 auto; min-width: 0; font-size: 14.5px; letter-spacing: -.01em; unicode-bidi: plaintext; overflow-wrap: anywhere; }
.ce-adangle-head .ce-zip { margin-left: auto; }
.ce-acode { flex: none; padding: 2px 7px; border-radius: 7px; background: var(--ink); color: var(--surface); font-size: 11.5px; font-weight: 700; }
.ce-adangle.is-none .ce-adangle-head b { color: var(--ink-3); }
.ce-adangle-hint { margin: -4px 0 0; font-size: 12.5px; color: var(--ink-3); }
.ce-v1 .ce-adangle { margin-top: 10px; }
.ce-ad-angle { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--ink-3); }
.ce-ad-angle select.input { min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: 12.5px; }

/* ── progress: script → ad (056) ─────────────────────────────────────── */
.ce-progs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ce-prog {
  display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--border);
  background: var(--surface); animation: ce-rise .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms);
}
.ce-prog.is-done { background: var(--surface-2); border-color: transparent; }
@keyframes ce-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* a footage search (073): the footage finder's own steps (5, or 1 for a cleaning) */
.ce-steps.ce-fsteps { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
.ce-fprog-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ce-fprog-acts .btn { min-height: 44px; }
.ce-fsaid { font-size: 12.5px; color: var(--ink-2); }
.ce-fsaid > summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; color: var(--ink); }
.ce-fsaid p { margin: 6px 0 0; white-space: pre-line; line-height: 1.6; unicode-bidi: plaintext; }
.ce-prog-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ce-prog-head .ce-prod-img { width: 44px; height: 44px; }
.ce-prog-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ce-prog-txt b { font-size: 14px; }
.ce-prog-txt span { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }
.ce-prog-now { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; text-align: right; }
.ce-prog-pct { font-size: 20px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ce-prog-now span { font-size: 11.5px; color: var(--ink-2); max-width: 150px; }
.ce-bar { position: relative; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ce-prog.is-done .ce-bar { background: var(--surface); }
.ce-bar > span {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--act);
  transition: width 1s cubic-bezier(.2, .7, .2, 1);
}
.ce-bar > span::after {   /* a light that runs along the part done, while the script is still on its way */
  content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: translateX(-100%); animation: ce-shine 2.4s ease-in-out infinite 1.1s;
}
.ce-prog.is-done .ce-bar > span { background: var(--ink); }
.ce-prog.is-done .ce-bar > span::after { display: none; }
@keyframes ce-shine { to { transform: translateX(100%); } }

.ce-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ce-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.ce-steps li::before {   /* the line between two steps */
  content: ''; position: absolute; top: 11px; right: 50%; width: 100%; height: 2px; background: var(--border); z-index: 0;
}
.ce-steps li:first-child::before { display: none; }
.ce-steps li.is-done::before, .ce-steps li.is-cur::before { background: var(--ink-3); }
.ce-dot {
  position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center;
  background: var(--surface-2); border: 2px solid var(--border); color: var(--surface);
}
.ce-dot .i { width: 13px; height: 13px; }
.ce-steps li.is-done .ce-dot { background: var(--ink); border-color: var(--ink); }
.ce-steps li.is-active .ce-dot, .ce-steps li.is-warn .ce-dot { background: var(--act); border-color: var(--act); }
.ce-steps li.is-skip .ce-dot { border-style: dashed; background: transparent; }
.ce-steps li.is-cur .ce-dot { animation: ce-pulse 1.8s ease-out infinite; }
@keyframes ce-pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 221, 30, .55); } 70% { box-shadow: 0 0 0 9px rgba(245, 221, 30, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 221, 30, 0); } }
.ce-steps b { font-size: 11.5px; font-weight: 700; color: var(--ink); }
.ce-steps small { font-size: 10.5px; line-height: 1.3; color: var(--ink-3); overflow-wrap: anywhere; }
.ce-steps li.is-skip b, .ce-steps li.is-todo b { color: var(--ink-3); }
.ce-prog-play { align-self: flex-start; }
/* (158) a 🎵 Variée / 🤳 talking video the machine could not make: why, in the serious tone, and «Try again» */
.ce-mprog.is-stopped .ce-prog-txt span { color: var(--serious-ink); white-space: normal; overflow: visible; overflow-wrap: anywhere; }
@media (pointer: coarse) { .ce-mprog .ce-prog-play { min-height: 44px; } }

/* the scripts to pick, under their angle (057) */
.ce-angle { display: flex; flex-direction: column; gap: 10px; }
.ce-angle + .ce-angle { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.ce-angle-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ce-angle-head b { font-size: 16px; letter-spacing: -.01em; unicode-bidi: plaintext; }
.ce-angle-head span { font-size: 12.5px; color: var(--ink-3); }
.ce-v1 { margin-top: 10px; }
.ce-v1 .ce-ads { margin-top: 10px; opacity: .78; }
.ce-arch-note { display: flex; align-items: center; gap: 6px; margin: 0; }
/* ✏️ Edit a script (058): the window's text area, and the small Edit of a row still a full finger on a phone */
textarea.input.ce-ed-text { min-height: 220px; }
@media (pointer: coarse) { .ce-rows .btn-sm { min-height: 44px; } }

@media (max-width: 640px) {
  .ce-prod { width: 168px; }
  .ce-tab { padding: 0 12px; font-size: 13.5px; }
  .ce-acts .btn { flex: 1 1 auto; justify-content: center; }
  .ce-poster { width: 84px; }
  .ce-product-head { flex-wrap: wrap; }
  .ce-product-cover { width: 76px; border-radius: 14px; }
  .ce-product-txt { flex-basis: calc(100% - 92px); }
  .ce-product-go { flex: 1 1 100%; justify-content: center; }
  .ce-pay { align-items: flex-start; }
  .ce-ads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .ce-prod, .ce-tab, .ce-play, .ce-photo-btn img, .ce-bar > span { transition: none; }
  .ce-prog, .ce-steps li.is-cur .ce-dot, .ce-bar > span::after { animation: none; }
}
@media (max-width: 640px) {
  .ce-steps small { display: none; }
  .ce-steps li.is-cur small { display: block; }
  .ce-prog-now span { max-width: 110px; }
}

/* the strategist's remarks on a video back from the editor or the machine (059) */
.ce-review { padding: 8px 12px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 3px 0 0 var(--act); }
.ce-review summary { min-height: 32px; display: flex; align-items: center; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ink); }
.ce-review .ce-moment { display: block; padding: 3px 0; line-height: 1.5; }

/* ── notes to the strategist about an ad (064) ───────────────────────── */
.ce-ad-row { position: relative; min-width: 0; }   /* the download arrow sits next to the ad's name */
.ce-del-btn { align-self: flex-start; color: var(--ink-3); }   /* (117) 🗑 Delete under an approved ad */
.ce-del-btn.is-confirm { color: #b42318; border-color: rgba(180, 35, 24, .45); }
:root[data-theme='dark'] .ce-del-btn.is-confirm { color: #f97066; border-color: rgba(249, 112, 102, .5); }
.ce-poster.ce-poster-lg { width: 100%; }             /* (a phone's smaller .ce-poster is for the cards, not the ad tiles) */
.ce-ad-note { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.ce-ad-note.is-done { color: var(--ink); }
.ce-note-btn { align-self: stretch; justify-content: center; min-height: 40px; }
@media (pointer: coarse) { .ce-note-btn { min-height: 44px; } }
.ce-kinds { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ce-kinds .qf { min-height: 40px; gap: 6px; }
.ce-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ce-note { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); min-width: 0; }
.ce-note:first-child { border-top: 0; padding-top: 4px; }
.ce-poster.ce-note-thumb { width: 64px; border-radius: 12px; align-self: flex-start; }
.ce-note-thumb .ce-play { width: 30px; height: 30px; }
.ce-note.is-done .ce-note-thumb { opacity: .8; }
.ce-note-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ce-note-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; }
.ce-note-top b { font-size: 14px; unicode-bidi: plaintext; }
.ce-note-top > span:not(.badge) { font-size: 12.5px; color: var(--ink-3); }
.ce-note-top .badge { margin-left: auto; }
.ce-note-kind {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 999px;
  background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--ink);
}
.ce-note-text { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink); unicode-bidi: plaintext; white-space: pre-wrap; overflow-wrap: anywhere; }
.ce-note-reply {
  display: flex; flex-direction: column; gap: 2px; width: 100%; box-sizing: border-box; padding: 8px 12px; border-radius: 12px;
  background: var(--surface-2); box-shadow: inset 3px 0 0 var(--ink); font-size: 13px;
}
.ce-note-reply span { line-height: 1.5; unicode-bidi: plaintext; white-space: pre-wrap; overflow-wrap: anywhere; }
.ce-note-file, .ce-note-scripts { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.ce-note-file span[dir] { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ce-note-meta { font-size: 11.5px; color: var(--ink-3); }
.ce-linkbtn {
  min-height: 24px; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.ce-linkbtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
/* a script written for a note, waiting for the OK */
.ce-answers {
  display: flex; align-items: flex-start; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2);
  font-size: 12.5px; line-height: 1.5; color: var(--ink-2);
}
.ce-answers .i-sm { flex-shrink: 0; margin-top: 2px; }
.ce-answers b { color: var(--ink); unicode-bidi: plaintext; }
/* ELYOX's brand page: the notes box is information, not a to-do (no yellow) */
.ce-nbox .st-news-row { border-top-color: var(--border); }
.ce-nbox .hint { display: block; }
@media (max-width: 640px) {
  .ce-poster.ce-note-thumb { width: 56px; }
  .ce-note { gap: 12px; }
}

/* who edits the approved voice-overs (065) */
.ce-edlist { display: flex; flex-direction: column; }
.ce-edrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); flex-wrap: wrap; min-width: 0; }
.ce-edrow:first-child { border-top: 0; }
.ce-edpick { display: grid; place-items: center; width: 44px; height: 44px; margin: -6px 0; cursor: pointer; flex-shrink: 0; }
.ce-edpick input { width: 20px; height: 20px; accent-color: var(--ink); }
.ce-edbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.ce-edbtns .btn { min-height: 40px; }
.ce-remgo { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: var(--settled); color: var(--settled-ink); font-size: 11.5px; font-weight: 700; }
.ce-edbar { position: sticky; top: 8px; z-index: 3; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 8px; border-radius: 14px; background: var(--act); color: var(--act-ink); }
.ce-edbar[hidden] { display: none; }
.ce-edcard .ce-edpick { margin: 0; }
.ce-edcard audio { width: 100%; }
.ce-edscript summary { cursor: pointer; font-weight: 600; font-size: 13px; padding: 6px 0; }
.ce-edbar #ce-edn { flex: 1; font-weight: 700; font-size: 13px; }

/* ── who records it: the voice artist or the AI voice (066) ───────────── */
.ce-who { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 12px; }
.ce-who-b {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.ce-who-b:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .ce-who-b:not(:disabled):hover { border-color: var(--ink-3); } }
.ce-who-b.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface-2); }
.ce-who-b:disabled { cursor: not-allowed; opacity: .55; }
.ce-who-ic { flex-shrink: 0; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); }
.ce-who-b.is-on .ce-who-ic { background: var(--ink); color: var(--surface); }
.ce-who-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ce-who-t b { font-size: 14px; }
.ce-who-t small { font-size: 12px; color: var(--ink-3); }
.ce-ai-err { color: var(--danger, #c0392b); }
/* the CEO moves a voice-over (068): who has it now; the strategist's review still open on a script at the voice-over */
.ce-who-now { margin-left: 6px; vertical-align: 1px; font-size: 10.5px; }
.ce-st-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 2px; }
.ce-st-mini .ce-moment { flex-basis: 100%; white-space: pre-wrap; line-height: 1.5; }

/* «Select» on what waits for his OK, and one remark for all (075) */
.ce-pick { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; user-select: none; }
.ce-pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.ce-pick:has(input:checked) { border-color: var(--ink); color: var(--ink); background: var(--surface-2); }
.ce-pick:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.ce-card.is-sel { box-shadow: inset 0 0 0 2px var(--ink); }
.ce-selbar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 10px 12px 10px 16px;
  border-radius: 16px; background: var(--ink); color: var(--surface); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.ce-selbar[hidden] { display: none; }
.ce-selbar #ce-selcount { flex: 1 1 auto; font-weight: 700; font-size: 14px; }
.ce-selbar .btn { min-height: 44px; }
.ce-selbar .btn-ghost { color: var(--surface); }
.ce-selist { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; }
.ce-selist li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.ce-selist li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }
.ce-note-rm { align-self: flex-start; margin-top: 4px; } .ce-note-rm.is-confirm { color: var(--crit, #d33); }

/* Scripts in two: To do now · To scale (097) */
.ce-sc-seg { margin: 0 0 14px; }
.ce-sc-seg .ce-seg-b { display: inline-flex; align-items: center; gap: 6px; }
.ce-sc-seg .ce-seg-b.is-on .ce-tab-n { background: rgba(127, 127, 127, .28); color: inherit; }

/* Team pay: Mark paid (097) */
.ce-team li.is-due .ce-pay.is-due b { background: var(--act); color: var(--act-ink); padding: 0 6px; border-radius: 6px; }
.ce-paybtn { margin-left: auto; }
.ce-paybox { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; margin: 0 0 14px; border-radius: 14px; background: var(--surface-2); text-align: center; }
.ce-paybox b { font-size: 26px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ce-paybox span { font-size: 12px; color: var(--ink-3); }

/* (099) Arabic (فصحى) scripts: the language badge, the Doctor's language choice, the native Arabic voices with their sample */
.ce-lang { background: var(--motion); color: var(--motion-ink); font-weight: 700; letter-spacing: 0; }
.ce-lang-seg { margin-top: 2px; }
.ce-ar-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 12px; margin: 2px 0 8px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; color: var(--ink-2); }
.ce-ar-note b { flex-basis: 100%; color: var(--ink); }
.ce-who-row { display: flex; gap: 8px; align-items: stretch; }
.ce-who-row .ce-who-b { flex: 1 1 auto; min-width: 0; }
.ce-who-play { flex: 0 0 48px; min-height: 48px; justify-content: center; font-size: 15px; }

/* ── «Edit the script» (2026-10-16): which script on top, the script big, hook and angle below ─────────── */
.ce-edwho { display: flex; align-items: center; gap: 12px; margin: 12px 0 10px; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.ce-edwho img, .ce-edwho-ic { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; object-fit: cover; display: grid; place-items: center; background: var(--surface); }
.ce-edwho > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ce-edwho b { font-size: 14.5px; unicode-bidi: plaintext; overflow-wrap: anywhere; }
.ce-edwho small { font-size: 12.5px; color: var(--ink-3); }
.ce-ednote { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 12.5px; color: var(--ink-2); }
.ce-ed-main textarea.input.ce-ed-text { min-height: 260px; font-size: 16px; line-height: 1.8; }
@media (max-width: 520px) { .ce-ed-main textarea.input.ce-ed-text { min-height: 220px; } }
/* 🗑 Remove (ELYOX, 2026-10-18): a wrong ad to approve, gone for good */
.ce-vdel:hover, .ce-vdel.is-confirm { color: var(--crit, #d33); }
.ce-boards .br-board-list { margin-top: 4px; }
.ce-prod-ends { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }   /* (138) 🗑 Delete product · (159) 📦 Archive product, under the product's actions */
.ce-pm-arch.is-confirm span { display: inline !important; }   /* (159) «Tap again to archive» reads on a phone too */
