/* ==========================================================================
   Brands (2026-10-01) — our own brands and their creative machine. brands.js.
   Same system as the rest: yellow = waiting for you, lilac = working, black = done
   or approved, white = nothing happening, red only for a real error.
   ========================================================================== */

/* the brand list reuses the client cards; a brand waiting for you is yellow */
.client-card.tone-act { background: var(--act); color: var(--act-ink); }
.client-card.tone-act .cc-meta { color: var(--act-mute); }
.client-card.tone-act .av { background: #0f0f0f; color: #ffffff; }
.client-card.tone-act .cc-chip { background: #0f0f0f; color: #ffffff; }

/* state badges (agents and ads) */
.br-st-act { background: var(--act); color: var(--act-ink); }
.br-st-motion { background: var(--motion); color: var(--motion-ink); }
.br-st-settled { background: var(--settled); color: var(--settled-ink); }
.br-st-plain { background: var(--surface-3); color: var(--ink-2); }
.br-st-closed { background: var(--surface-4); color: var(--ink-3); }
.br-st-crit { background: var(--crit-soft); color: var(--crit-ink); }

.br-howto .hint b { color: var(--ink); }

/* ── who: a letter in a circle, as on Telegram's 🔎 / 🅰️ / 🅱️ ─────────── */
.br-who {
  width: 30px; height: 30px; border-radius: 999px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--ink-2);
}
.br-who-claude, .br-who-codex, .br-who-finder, .br-who-voice, .br-who-editor { background: var(--ink); color: var(--on-ink); }
.br-who-owner { background: var(--commit); color: var(--commit-ink); }

/* ── Now ─────────────────────────────────────────────────────────────── */
.br-now { gap: 12px; }
.br-job { border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.br-job.is-over { background: var(--surface-2); border-color: transparent; }
.br-job-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.br-job-no { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--on-ink); }
.br-job-what { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.br-job-when { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.br-agent { display: flex; gap: 12px; align-items: flex-start; }
.br-agent-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.br-agent-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.br-agent-top b { font-size: 13px; }
.br-agent-when { font-size: 11px; color: var(--ink-3); margin-left: auto; }
.br-agent-last { font-size: 12px; color: var(--ink-2); line-height: 1.5; overflow-wrap: anywhere; }
.br-agent-err { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: var(--crit-ink); overflow-wrap: anywhere; }
.br-agent-err .i-sm { margin-top: 2px; }
.br-steps { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; margin: 0; padding: 0; }
.br-steps li {
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--ink-3); background: var(--surface);
}
.br-steps li.done { background: var(--settled); border-color: var(--settled); color: var(--settled-ink); }
.br-steps li.now { border-color: var(--ink); color: var(--ink); }
.br-steps li.now-motion { background: var(--motion); border-color: var(--motion); color: var(--motion-ink); }
.br-steps li.now-act { background: var(--act); border-color: var(--act); color: var(--act-ink); }
.br-steps li.now-crit { background: var(--crit-soft); border-color: var(--crit-soft); color: var(--crit-ink); }
/* progress: how far a brain is and when its part should be done — lilac while it works, yellow while it waits for ELYOX */
.br-job-sum { display: inline-flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.br-job-sum b { font-size: 15px; }
.br-job-sum span { font-size: 12px; color: var(--ink-2); }
.br-prog { display: flex; flex-direction: column; gap: 5px; }
.br-prog-top { display: flex; align-items: baseline; gap: 10px; font-size: 12.5px; }
.br-prog-top span { min-width: 0; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.br-prog-top b { margin-left: auto; font-size: 13px; font-variant-numeric: tabular-nums; }
.br-prog-bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.br-prog-bar i { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: var(--ink-3); transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.br-prog-motion .br-prog-bar i {
  background: var(--motion) repeating-linear-gradient(-45deg, transparent 0 8px, rgba(15, 15, 15, .08) 8px 16px);
  background-size: 22.6px 22.6px; animation: br-prog-move 1.2s linear infinite;
}
.br-prog-act .br-prog-bar i { background: var(--act); }
.br-prog-crit .br-prog-bar i { background: var(--crit); }
.br-prog-when { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@keyframes br-prog-move { to { background-position: 22.6px 0; } }
@media (prefers-reduced-motion: reduce) { .br-prog-motion .br-prog-bar i { animation: none; } }
.br-cleaning { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); margin-bottom: 14px; }

.br-recent summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 4px 0; }
.br-recent[open] { display: flex; flex-direction: column; gap: 10px; }

/* ── Ads and footage: tiles ──────────────────────────────────────────── */
.br-filters { margin-bottom: 14px; }
.br-filters .qf { min-height: 32px; padding: 5px 12px; font-size: 12px; }
.br-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.br-q-tiles { margin: 10px 0 12px; }   /* (2026-10-17) the ads a waiting brain sent, on its job card */
.br-tile { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.br-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden;
  background: var(--surface-3); border: 1px solid var(--border);
}
.br-thumb:disabled { cursor: default; }
.br-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.br-noposter { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.br-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 999px; background: rgba(15, 15, 15, .72); color: #ffffff;
  display: flex; align-items: center; justify-content: center; transition: transform .15s ease;
}
.br-play .i { fill: currentColor; stroke: none; margin-left: 3px; }
.br-thumb:hover .br-play { transform: translate(-50%, -50%) scale(1.08); }
.br-thumb-badge { position: absolute; left: 8px; top: 8px; }
.br-tile-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.br-tile-txt b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-tile-txt span { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.br-tile-act { display: flex; gap: 6px; flex-wrap: wrap; }
.br-tile-act .btn { gap: 5px; }

/* ── Products ────────────────────────────────────────────────────────── */
.br-prod { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.br-prod:first-of-type { border-top: none; }
.br-prod-img { position: relative; width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--surface-3); }
.br-prod-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.br-prod-txt b { font-size: 13px; }
.br-prod-txt span { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }

/* ── Activity: the Telegram conversation ─────────────────────────────── */
.br-activity .cpb-head { flex-wrap: wrap; }
.br-jobf { width: auto; min-width: 120px; border-radius: 999px; }
.br-feed { display: flex; flex-direction: column; gap: 10px; max-height: 720px; overflow-y: auto; padding-right: 4px; }
.br-day { align-self: center; font-size: 11px; font-weight: 600; color: var(--ink-3); background: var(--surface-2); padding: 3px 12px; border-radius: 999px; margin: 6px 0 2px; }
.br-ev { display: flex; gap: 10px; align-items: flex-start; max-width: 88%; }
.br-ev.mine { align-self: flex-end; flex-direction: row-reverse; }
.br-bubble { min-width: 0; background: var(--surface-2); border-radius: 16px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.br-ev.mine .br-bubble { background: var(--accent-soft); }
.br-ev-head { display: flex; gap: 8px; align-items: baseline; font-size: 11px; color: var(--ink-3); }
.br-ev-head b { font-size: 12px; color: var(--ink); }
.br-ev-body { font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.br-ev-body .i-sm { display: inline-block; vertical-align: -2px; }
.br-btnrow { display: flex; gap: 6px; flex-wrap: wrap; }
.br-btnchip { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink-2); }
.br-photo { display: block; border-radius: 12px; overflow: hidden; max-width: 260px; border: 1px solid var(--border); }
.br-photo img { display: block; width: 100%; height: auto; }
.br-bubble audio { width: 260px; max-width: 100%; height: 36px; }
.br-attach { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.br-older { align-self: center; margin-top: 12px; }

/* ── modals ──────────────────────────────────────────────────────────── */
.br-modal h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.br-player { display: flex; justify-content: center; background: #000000; border-radius: 16px; overflow: hidden; }
.br-player video { display: block; max-width: 100%; max-height: min(70vh, 720px); width: auto; height: auto; }
.br-player .log-empty { margin: 16px; color: #d4d4d0; border-color: #3a3a40; }
.br-versions { margin-top: 14px; }
.br-versions > b { font-size: 13px; }
.br-copytext {
  white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font); font-size: 14px; line-height: 1.65;
  background: var(--surface-2); border-radius: 14px; padding: 14px 16px; max-height: 50vh; overflow: auto; unicode-bidi: plaintext;
}
.br-photo-big { display: block; max-width: 100%; max-height: 75vh; margin: 0 auto; border-radius: 12px; }

@media (max-width: 900px) {
  .br-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .br-ev { max-width: 100%; }
  .br-job-when { margin-left: 0; width: 100%; }
  .br-feed { max-height: none; }
}
.br-evplay { align-self: flex-start; gap: 6px; }
.br-evplay .i { fill: currentColor; stroke: none; }

/* Six sections since Brands: the phone tab bar tightens so all six fit a 375 px screen,
   and scrolls sideways rather than cutting the last one on anything narrower. */
@media (max-width: 480px) {
  .sections { overflow-x: auto; scrollbar-width: none; }
  .sections::-webkit-scrollbar { display: none; }
  .sec, .sec.active { padding: 10px 7px; font-size: 12px; }
}

/* clip badges: «To approve» is the act yellow; the rest only inform, readable on any picture */
.br-thumb-badges { position: absolute; left: 8px; top: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.br-badge-info { background: rgba(15, 15, 15, .72); color: #ffffff; }

/* ==========================================================================
   Two-way (2026-10-02): products on top, angles → scripts → voices, the
   Telegram buttons of every item waiting for ELYOX, footage upload.
   ========================================================================== */
.br-hint-box { padding: 14px 18px; }

/* products strip */
.br-products-strip { margin: 18px 0 16px; }
.br-strip-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.br-strip-head h3 { font-size: 15px; font-weight: 600; }
.br-strip-head span { font-size: 12px; color: var(--ink-3); }
.br-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.br-pcard {
  position: relative; flex: 0 0 auto; width: 236px; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 10px 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); scroll-snap-align: start;
  transition: transform .15s ease, box-shadow .15s ease;
}
.br-pcard:hover { transform: translateY(-1px); }
.br-pcard.selected { box-shadow: 0 0 0 2px var(--ink); border-color: transparent; }
.br-pcard.is-waiting { background: var(--act); color: var(--act-ink); border-color: var(--act); }
.br-pcard.is-waiting .br-pcard-txt span { color: var(--act-mute); }
.br-pcard-img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--surface-3); position: relative; }
.br-pcard-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.br-pcard-txt b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-pcard-txt span { font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-pcard-badge { position: absolute; top: -8px; right: 10px; }
.br-pcard-add { border-style: dashed; border-width: 2px; background: transparent; color: var(--ink-2); }
.br-pcard-all { width: 170px; }

/* product head */
.br-phead { gap: 12px; }
.br-phead-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.br-phead-img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--surface-3); position: relative; flex-shrink: 0; }
.br-phead-txt { flex: 1; min-width: 160px; }
.br-phead-txt h3 { font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.br-phead-txt .cpb-sub { margin: 2px 0 0; }
.br-phead-act { display: flex; gap: 6px; flex-wrap: wrap; }
.br-phead-desc { font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; color: var(--ink-2); }

/* angles → scripts → voices (br-tone-*: the global .tone-act would paint the card yellow-ink, unreadable in dark mode) */
.br-head-act { display: inline-flex; align-items: center; gap: 10px; }
.br-angles { gap: 12px; }
.br-angle { border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.br-angle.is-owner { border-color: var(--border-strong); }
.br-angle-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.br-code { min-width: 34px; height: 30px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; background: var(--ink); color: var(--on-ink); }
.br-code-m { background: var(--surface-3); color: var(--ink-2); }
.br-angle-title { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.br-angle-title b { font-size: 14px; unicode-bidi: plaintext; }
.br-angle-title span { font-size: 11.5px; color: var(--ink-3); }
.br-angle-act { display: flex; gap: 6px; }
.br-angle-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; white-space: pre-wrap; unicode-bidi: plaintext; }
.br-hook { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-3); unicode-bidi: plaintext; }
.br-angle-empty { font-size: 12px; color: var(--ink-3); }
.br-angle-empty:empty { display: none; }
.br-scripts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.br-script { border-radius: 14px; padding: 12px 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.br-script.br-tone-act { box-shadow: inset 3px 0 0 var(--act); }
.br-script.br-tone-settled { box-shadow: inset 3px 0 0 var(--settled); }
.br-script.br-tone-motion { box-shadow: inset 3px 0 0 var(--motion); }
.br-script-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.br-script-head b { font-size: 13px; }
.br-script-head span:not(.badge) { color: var(--ink-3); flex: 1; min-width: 0; }
.br-script-body { font-size: 13px; line-height: 1.7; unicode-bidi: plaintext; overflow-wrap: anywhere; }
.br-script-body > div { unicode-bidi: plaintext; }
.br-script-body.is-clamped { max-height: calc(1.7em * 5); overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.br-more { align-self: flex-start; }
.br-voice { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--border); }
.br-voice-l { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; }
.br-voice audio { height: 32px; flex: 1; min-width: 180px; max-width: 100%; }
.br-adlink { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); align-self: flex-start; }
.br-adlink .i { fill: currentColor; stroke: none; }
.br-archived { align-self: flex-start; }

/* the Telegram buttons of an item */
.br-tgrow { display: flex; gap: 6px; flex-wrap: wrap; }
.br-vo-g { align-items: center; margin-top: 6px; }
.br-vo-gl { font-size: 12px; color: var(--muted, #6b7280); margin-right: 2px; }
.br-vo-el, .br-vo-g { align-items: center; }
.br-vo .vp { margin-left: 0; margin-right: 2px; }
.br-vo-gv { display: inline-flex; gap: 2px; }
.br-vo-play { min-width: 30px; padding-left: 8px; padding-right: 8px; }
.br-tg { gap: 4px; }
.br-tg.is-go { border-color: var(--ink); }
.br-tg.is-confirm { background: var(--act); border-color: var(--act); color: var(--act-ink); font-weight: 700; }
.br-tile .br-tgrow { margin-top: -2px; }
.br-question { margin: -2px 0 6px 42px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.br-question-body { font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; unicode-bidi: plaintext; overflow-wrap: anywhere; }

/* footage */
.br-more-footage { align-self: center; margin-top: 12px; }
.br-footnote { margin-top: 10px; }

/* forms */
.br-brains { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--surface-3); margin: 0 auto 12px 0; }
.modal-actions .br-brains { margin: 0 auto 0 0; }
.br-brain input { position: absolute; opacity: 0; pointer-events: none; }
.br-brain span { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.br-brain input:checked + span { background: var(--ink); color: var(--on-ink); }
.br-brain input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
/* 🎥 UGC: who films it (2026-10-17) */
.br-ugc-cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; margin: 4px 0 14px; }
.br-ugc-who { position: relative; }
.br-ugc-who input { position: absolute; opacity: 0; pointer-events: none; }
.br-ugc-who > span { display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; padding: 8px 4px 9px; border-radius: 12px;
  background: var(--surface-2); border: 2px solid transparent; cursor: pointer; text-align: center; }
.br-ugc-who input:checked + span { border-color: var(--ink); background: var(--surface-3); }
.br-ugc-who input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.br-ugc-face { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: var(--surface-4); }
.br-ugc-auto { display: grid; place-items: center; font-size: 22px; }
.br-ugc-who b { font-size: 12.5px; color: var(--ink); }
.br-ugc-who em { font-style: normal; font-size: 11px; line-height: 1.25; color: var(--ink-3); }
.br-uplist { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.br-upitem { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; font-size: 12.5px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.br-upitem > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-upstate { grid-column: 1 / -1; font-size: 11.5px; color: var(--ink-3); }
.br-upstate:empty { display: none; }
.br-upbar { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: var(--surface-4); overflow: hidden; }
.br-upbar i { display: block; height: 100%; background: var(--ink); transition: width .2s ease; }

@media (max-width: 900px) {
  .br-pcard { width: 200px; }
  .br-scripts { grid-template-columns: minmax(0, 1fr); }
  .br-question { margin-left: 0; }
  .br-phead-act { width: 100%; }
}

/* ==========================================================================
   Short page (2026-10-02): a few of each section on the brand's page, the
   rest on the section's own page (#/brands?all=…) — and ✏️ on every ad.
   ========================================================================== */
.br-showall { align-self: center; margin-top: 4px; gap: 4px; }
/* the scripts: the ones not used yet, then 🗄 the ones used in ads and the rejected ones, each on its own page (2026-10-03) */
.br-showall-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.br-angles .br-filters { margin-bottom: 0; }
.br-spent > summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 4px 0; }
.br-spent[open] > summary { margin-bottom: 10px; }
.br-spent > .br-angle + .br-angle { margin-top: 10px; }
.br-more-in { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.br-more-in:hover { color: var(--ink); }
.br-sub-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.br-back { gap: 4px; }
.br-sub-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.br-sub-title h2 { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.br-sub-title span { font-size: 12px; color: var(--ink-3); }
.br-feed.is-short { max-height: none; overflow: visible; }
.br-remark { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 12px; background: var(--motion); color: var(--motion-ink); font-size: 12px; line-height: 1.45; }
.br-remark b { font-size: 11px; font-weight: 700; }
.br-remark span { unicode-bidi: plaintext; overflow-wrap: anywhere; white-space: pre-wrap; }
.br-remark-prev { margin-bottom: 12px; }
@media (max-width: 900px) {
  .br-sub-head { gap: 10px; margin-bottom: 14px; }
  .br-sub-title h2 { font-size: 19px; }
}
/* a section's own page is a page: the brand list and the counters step aside until «Back» */
#view-brands.br-in-section .today-head, #view-brands.br-in-section .clients-aside { display: none; }
#view-brands.br-in-section .clients-grid { grid-template-columns: minmax(0, 1fr); }

/* ==========================================================================
   The 🩺 Copywriter Doctor (2026-10-02): his angles and scripts per product,
   ✅ ✏️ ❌ on them, a Google Doc import; products described with photos.
   ========================================================================== */
.br-doc-tag { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  vertical-align: 2px; background: var(--surface-3); color: var(--ink-2); }
.br-doc-bar { display: flex; gap: 6px; flex-wrap: wrap; }
.br-code-d { background: var(--surface-3); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.br-hooks { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.br-hooks summary { cursor: pointer; font-weight: 600; font-size: 12px; color: var(--ink-2); }
.br-hooks > div { margin-top: 6px; unicode-bidi: plaintext; overflow-wrap: anywhere; }
.br-script.is-rejected { opacity: .62; }
.br-why { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }

/* product form */
.br-form-sec { margin: 16px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.br-form-sec:first-of-type { margin-top: 4px; }
.br-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-bottom: 8px; }
.br-ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-3); border: 1px solid var(--border); }
.br-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.br-ph-main { position: absolute; left: 6px; bottom: 6px; padding: 1px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: var(--ink); color: var(--on-ink); }
.br-ph-state { position: absolute; inset: auto 6px 6px auto; padding: 1px 8px; border-radius: 999px; font-size: 10.5px; background: rgba(15, 15, 15, .72); color: #ffffff; }
.br-ph-x { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(15, 15, 15, .72); color: #ffffff; }
.br-photo-add { gap: 4px; margin-bottom: 4px; cursor: pointer; }

/* product head: what it is, the facts that sell it, its photos */
.br-facts { display: flex; gap: 6px; flex-wrap: wrap; }
.br-fact { display: inline-flex; gap: 6px; align-items: baseline; max-width: 100%; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); font-size: 12px; }
.br-fact b { font-size: 11px; color: var(--ink-3); font-weight: 700; }
.br-fact span { unicode-bidi: plaintext; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-phead-photos { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.br-phead-photos img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); }

/* the voice-over of a Doctor script, and the Google Doc link box (2026-10-02) */
.br-vo { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid var(--border); }
.br-vo-l { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; }
.br-doc-import { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 16px; border: 1px dashed var(--border-strong); }
.br-doc-import-l { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }
.br-doc-import-row { display: flex; gap: 8px; }
.br-doc-import-row .input { flex: 1; min-width: 0; }

/* 🎙 a voice note in a remark: record → listen → send (or record again) */
.br-rec { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 36px; }
.br-rec audio { height: 36px; max-width: 100%; flex: 1 1 220px; }
.br-rec .hint { font-size: 12px; }
.br-rec-on { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--crit-ink); font-variant-numeric: tabular-nums; }
.br-rec-on i { width: 9px; height: 9px; border-radius: 50%; background: var(--crit); animation: br-rec-blink 1s ease-in-out infinite; }
@keyframes br-rec-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .br-rec-on i { animation: none; } }

/* 🎤 his own voice-over: the script to read, big, then the recorder */
.br-prompter { margin: 0; padding: 14px 18px 14px 40px; border-radius: 14px; background: var(--surface-2); max-height: 42vh; overflow: auto;
  font-size: 18px; line-height: 1.75; unicode-bidi: plaintext; }
.br-prompter li { padding: 2px 0; }
.br-prompter li::marker { color: var(--ink-3); font-size: 13px; }
.br-rec-big { padding: 6px 0 2px; }
.br-rec-big .btn { padding: 10px 18px; }

/* 🩺 a voice waiting for the Doctor (after ✏️ Remarks): in «Now» and under the take; his question back stands out */
.br-docw { margin: 8px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface-3); display: flex; flex-direction: column; gap: 6px; flex-basis: 100%; }
.br-docw.is-asked { background: var(--act); color: var(--act-ink); }
.br-docw.is-asked .hint, .br-docw.is-asked .br-docw-head span { color: inherit; opacity: .75; }
.br-docw-head { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.br-docw-head span { color: var(--ink-3); }
.br-docw-title { font-size: 12.5px; font-weight: 600; }
.br-docw-q { font-size: 13px; line-height: 1.6; white-space: pre-wrap; unicode-bidi: plaintext; overflow-wrap: anywhere; }
/* 🎧 the Doctor's pronunciation samples: one row each (number, spelling, player, «This one»), his voice note first */
.br-tries { display: flex; flex-direction: column; gap: 6px; }
.br-try { display: grid; grid-template-columns: 26px minmax(70px, auto) minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.br-try.is-note { grid-template-columns: 26px minmax(70px, auto) minmax(0, 1fr); }
.br-try-n { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--surface); color: var(--ink); }
.br-try-sp { font-size: 15px; font-weight: 600; unicode-bidi: plaintext; }
.br-try audio { height: 32px; width: 100%; min-width: 0; }
@media (max-width: 640px) {
  .br-try, .br-try.is-note { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .br-try audio { grid-column: 1 / -1; }
  .br-try .btn { grid-row: 1; grid-column: 3; }
}

/* ==========================================================================
   A brand's brief and its documents (2026-10-03, adding Asli) — migration 037.
   The same pieces show on the strategist's page (strategist.js), read-only.
   ========================================================================== */
.br-brand-none { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding: 12px 16px;
  border-radius: 16px; border: 1px dashed var(--border-strong); font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.br-brand-none > .i { flex-shrink: 0; color: var(--ink-3); }
.br-brand-none > span:first-of-type { flex: 1 1 260px; min-width: 0; }
.br-brand-none b { color: var(--ink); }
.br-brand-none-act { display: flex; gap: 6px; flex-wrap: wrap; }
.br-brandrow { margin-top: 18px; align-items: start; }

/* the brief: closed, its first lines; open, every topic */
/* (plain blocks and margins: Safari does not lay a <details> or its <summary> out as flex) */
.br-brief > summary, .st-brief > summary { display: block; list-style: none; cursor: pointer; }
.br-brief > summary::-webkit-details-marker, .st-brief > summary::-webkit-details-marker { display: none; }
.br-brief-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.br-brief-head h3 { font-size: 15px; font-weight: 600; }
.br-brief-head span { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.br-brief-lead { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.br-brief[open] .br-brief-lead, .st-brief[open] .br-brief-lead { display: block; -webkit-line-clamp: unset; color: var(--ink); }
.br-brief-open { display: flex; width: fit-content; align-items: center; gap: 5px; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--ink); }
.br-brief-open .i { transition: transform .15s ease; }
.br-brief[open] .br-brief-open .i, .st-brief[open] .br-brief-open .i { transform: rotate(180deg); }
.br-brief-less, .br-brief[open] .br-brief-more, .st-brief[open] .br-brief-more { display: none; }
.br-brief[open] .br-brief-less, .st-brief[open] .br-brief-less { display: inline; }
.br-brief-list { display: flex; flex-direction: column; gap: 12px; margin: 12px 0 0; }
.br-brief-item { display: flex; flex-direction: column; gap: 3px; padding-top: 12px; border-top: 1px solid var(--border); }
.br-brief-item dt { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.br-brief-item dd { margin: 0; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.br-brief-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.br-brief-act .hint { flex: 1 1 220px; }
.br-brief-cta { align-self: flex-start; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .br-brief-open .i { transition: none; } }

/* the documents: a picture (or the file's type), its name and facts, then share · download · edit */
.br-files .cpb-head { flex-wrap: wrap; }
.br-flist { display: flex; flex-direction: column; gap: 8px; }
.br-frow { display: flex; align-items: center; gap: 12px; min-width: 0; }
.br-fthumb { position: relative; width: 56px; height: 56px; flex-shrink: 0; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface-3); }
.br-fthumb img, .br-fthumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.br-fdoc { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--ink-2); }
.br-fplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 999px;
  background: rgba(15, 15, 15, .72); color: #ffffff; display: flex; align-items: center; justify-content: center; }
.br-fplay .i { fill: currentColor; stroke: none; margin-left: 2px; }
.br-ftxt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.br-ftxt b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }
.br-ftxt > span { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.br-ftxt .br-fnote { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }
.br-fbtns { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.br-fshare { margin-right: 4px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent;
  color: var(--ink-3); font: inherit; font-size: 11.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.br-fshare.is-on { background: var(--settled); border-color: var(--settled); color: var(--settled-ink); }
.br-fmore > summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 10px 0 2px; }
.br-fmore[open] > summary { margin-bottom: 8px; }
.br-check { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 13px; line-height: 1.5; cursor: pointer; }
.br-check input { margin-top: 3px; flex-shrink: 0; }
.br-upnote { grid-column: 1 / -1; margin-top: 4px; }
@media (max-width: 640px) {
  .br-frow { flex-wrap: wrap; row-gap: 6px; }
  .br-ftxt { flex: 1 1 150px; }
  .br-fbtns { margin-left: 68px; }
  .br-fshare { min-height: 34px; }
}

/* ── a brand's logo (2026-10-03, migration 038): its mark in the round pictures, the whole logo on its page ── */
.av.br-av-logo { background: #ffffff; padding: 0; overflow: hidden; border: 1px solid var(--border); }
.av.br-av-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.br-logo-tile { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 104px; height: 56px; padding: 6px 10px;
  border-radius: 14px; background: #ffffff; border: 1px solid var(--border); }
.br-logo-tile img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.br-logo-picks { display: flex; flex-direction: column; gap: 8px; }
.br-logo-pick { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.br-logo-prev { width: 64px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
  background: #ffffff; border: 1px solid var(--border); overflow: hidden; }
.br-logo-prev img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.br-logo-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.br-logo-pick label.btn { cursor: pointer; gap: 4px; }

/* a brand with no machine yet (Asli until its own machine): said once, plainly */
.br-nomachine { border-style: dashed; border-color: var(--border-strong); padding: 16px 20px; }
.br-nomachine .cpb-head { margin-bottom: 6px; }
.br-nomachine .hint { margin: 0; }

/* ==========================================================================
   Brand page, modern pass (2026-10-04): the brief banner, the products strip, the product head.
   One moving accent per view (the open product's ring); everything else is a hover or a one-time entrance.
   ========================================================================== */
@property --br-ring { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
:root { --br-ease: cubic-bezier(.22, 1, .36, 1); --br-glow: rgba(157, 178, 255, .16); }
:root[data-theme='light'] { --br-glow: rgba(27, 63, 204, .08); }

/* ── brief and documents, none yet ── */
.br-brand-none {
  position: relative; overflow: hidden; gap: 14px; padding: 16px 18px; border-radius: 20px;
  border: 1px solid var(--border-strong); font-size: 13px;
  background: radial-gradient(120% 140% at 0% 0%, var(--br-glow), transparent 55%), var(--surface);
}
.br-brand-none::after {   /* one light sweep when the page opens */
  content: ''; position: absolute; inset: 0; pointer-events: none; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 30%, var(--wash-strong) 50%, transparent 70%);
}
.br-enter .br-brand-none::after { animation: br-sweep 1.1s var(--br-ease) .25s both; }
.br-brand-none-ic {
  display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px;
  background: var(--surface-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border-strong);
}
.br-brand-none > span.br-brand-none-ic { flex: 0 0 40px; }
.br-brand-none > .br-brand-none-ic + span { flex: 1 1 260px; min-width: 0; }
.br-brand-none-act .btn { transition: background .2s ease, transform .2s var(--br-ease), border-color .2s ease; }
.br-brand-none-act .btn:hover { border-color: var(--ink-3); }

/* ── products strip ── */
.br-products-strip { margin: 26px 0 18px; }
.br-strip-head { align-items: center; margin-bottom: 12px; }
.br-strip-head h3 { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.br-strip-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px;
  background: var(--surface-3); color: var(--ink) !important; font-size: 11.5px !important; font-weight: 700; font-variant-numeric: tabular-nums;
}
.br-strip { position: relative; gap: 12px; padding: 6px 4px 12px; scroll-behavior: smooth; scrollbar-width: none; }
.br-strip::-webkit-scrollbar { display: none; }
.br-strip.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.br-strip.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
.br-strip.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }

.br-pcard {
  width: 252px; min-height: 76px; gap: 12px; padding: 12px 14px; border-radius: 18px; cursor: pointer; color: var(--ink);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: transform .35s var(--br-ease), box-shadow .35s var(--br-ease), border-color .2s ease, background .2s ease;
}
.br-pcard:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.br-pcard:active { transform: translateY(-1px) scale(.985); }
.br-pcard:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.br-pcard-img { width: 48px; height: 48px; overflow: hidden; transition: transform .45s var(--br-ease); box-shadow: inset 0 0 0 1px var(--border-strong); }
img.br-pcard-img { background: #fff; }
.br-pcard:hover .br-pcard-img { transform: scale(1.06) rotate(-2deg); }
.br-pcard-txt b { font-size: 13.5px; font-weight: 650; }
.br-pcard-txt span {   /* the counts wrap instead of being cut ("6…") */
  white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.4; font-variant-numeric: tabular-nums;
}
/* the open product: a gradient ring that turns slowly */
.br-pcard.selected {
  border: 1.5px solid transparent; box-shadow: 0 10px 30px -14px var(--br-glow), 0 0 0 4px var(--br-glow);
  background:
    linear-gradient(180deg, var(--surface-3), var(--surface-2)) padding-box,
    conic-gradient(from var(--br-ring), var(--ink), var(--accent-ink), var(--border-strong) 45%, var(--border-strong) 55%, var(--accent-ink), var(--ink)) border-box;
  animation: br-ring 6s linear infinite;
}
.br-pcard.selected:hover { box-shadow: 0 14px 34px -14px var(--br-glow), 0 0 0 4px var(--br-glow); }
.br-pcard.selected .br-pcard-img { box-shadow: inset 0 0 0 1px var(--ink-3); }
.br-pcard.is-waiting { background: var(--act); }
.br-pcard.is-waiting.selected { background: linear-gradient(var(--act), var(--act)) padding-box, conic-gradient(from var(--br-ring), var(--ink), var(--act), var(--ink)) border-box; }
.br-pcard-badge { animation: br-pop .5s var(--br-ease) .4s both; }
.br-pcard-add { background: transparent; border: 1.5px dashed var(--border-strong); color: var(--ink-2); }
.br-pcard-add:hover { border-color: var(--ink-3); color: var(--ink); background: var(--wash); box-shadow: none; }
.br-pcard-add .br-pcard-img { background: var(--surface-2); box-shadow: none; transition: transform .45s var(--br-ease), background .2s ease; }
.br-pcard-add:hover .br-pcard-img { transform: rotate(90deg); background: var(--surface-3); }
.br-pcard-all { width: 184px; }

/* ── product head ── */
.br-phead {
  position: relative; overflow: hidden; gap: 14px; padding: 22px 24px; border-color: var(--border-strong);
  background: radial-gradient(90% 160% at 0% 0%, var(--br-glow), transparent 50%), linear-gradient(180deg, var(--surface-2), var(--surface));
}
.br-phead-top { gap: 18px; }
.br-phead-img { width: 68px; height: 68px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--border-strong), 0 10px 24px -12px rgba(0, 0, 0, .6); }
img.br-phead-img { background: #fff; }
.br-phead-txt h3 { font-size: 26px; line-height: 1.15; }
.br-phead-txt .cpb-sub { margin-top: 4px; }
.br-phead-act { gap: 8px; align-items: center; }
.br-phead-act .btn { min-height: 36px; padding: 6px 14px; font-size: 12.5px; }
.br-phead-act .btn-accent { position: relative; overflow: hidden; }
.br-phead-act .btn-accent::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-120%); pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
}
.br-phead-act .btn-accent:hover::after { transform: translateX(120%); transition: transform .7s var(--br-ease); }
.br-phead-photos img { transition: transform .35s var(--br-ease); }
.br-phead-photos img:hover { transform: translateY(-2px) scale(1.04); }
.br-phead-empty {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: var(--wash); border: 1px dashed var(--border-strong); font-size: 13px; line-height: 1.6; color: var(--ink-2);
}
.br-phead-empty b { color: var(--ink); }
.br-phead-empty-ic { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; background: var(--surface-3); color: var(--ink); }

/* ── entrance: only when the brand, product or version changes (brEnterFx) ── */
.br-enter .br-brand-none, .br-enter .br-brandrow,
.br-enter .br-strip-head, .br-enter .br-pcard,
.br-enter .br-phead, .br-enter .pv-strip, .br-enter .br-grid > .cp-box:not(.br-phead):not(.pv-strip) {
  animation: br-rise .5s var(--br-ease) both;
}
.br-enter .br-strip-head { animation-delay: .04s; }
.br-enter .br-pcard { animation-delay: calc(.06s + var(--i, 0) * .045s); }
.br-enter .br-pcard.selected { animation: br-rise .5s var(--br-ease) both, br-ring 6s linear infinite; animation-delay: calc(.06s + var(--i, 0) * .045s), 0s; }
.br-enter .br-phead { animation-delay: .14s; }
.br-enter .pv-strip { animation-delay: .2s; }
.br-enter .br-grid > .cp-box:not(.br-phead):not(.pv-strip) { animation-delay: .26s; }
.br-enter .br-phead-img { animation: br-pop .6s var(--br-ease) .22s both; }

@keyframes br-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes br-pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes br-sweep { to { transform: translateX(100%); } }
@keyframes br-ring { to { --br-ring: 360deg; } }

@media (max-width: 720px) {
  .br-pcard { width: 220px; }
  .br-phead { padding: 18px; }
  .br-phead-txt h3 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .br-pcard, .br-pcard-img, .br-phead-photos img, .br-strip { transition: none; scroll-behavior: auto; }
  .br-pcard:hover, .br-pcard:hover .br-pcard-img, .br-pcard-add:hover .br-pcard-img, .br-phead-photos img:hover { transform: none; }
  .br-pcard.selected, .br-enter .br-pcard.selected, .br-pcard-badge, .br-enter *, .br-enter .br-brand-none::after { animation: none !important; }
  .br-phead-act .btn-accent:hover::after { transition: none; transform: translateX(-120%); }
}

/* ── the pulse: what the machine does, what waits for you (brPulse) ── */
.br-pulse {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding: 10px 12px 10px 16px;
  border-radius: 18px; border: 1px solid var(--border); background: var(--surface);
}
.br-pulse-m { display: flex; align-items: center; gap: 10px; min-width: 0; padding-right: 14px; border-right: 1px solid var(--border); }
.br-pulse-m > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.br-pulse-m b { font-size: 13px; }
.br-pulse-m > span > span { font-size: 11.5px; color: var(--ink-3); }
.br-pulse-m > i { position: relative; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--ink-3); }
.br-pulse-m.is-busy > i { background: var(--motion); }
.br-pulse-m.is-live > i { background: var(--ink); }
.br-pulse-m.is-off > i { background: transparent; box-shadow: inset 0 0 0 2px var(--ink-3); }
.br-pulse-m.is-busy > i::after, .br-live-dot::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--motion); opacity: 0;
  animation: br-ping 1.8s var(--br-ease) infinite;
}
.br-pulse-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1 1 300px; min-width: 0; }
.br-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 4px 12px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 600; border: 1px solid transparent; color: var(--ink);
  transition: transform .25s var(--br-ease), filter .2s ease, background .2s ease;
}
.br-chip > i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.br-chip.is-act { background: var(--act); color: var(--act-ink); }
.br-chip.is-motion { background: var(--surface-3); border-color: var(--border-strong); }
.br-chip.is-motion > i { background: var(--motion); }
.br-chip:hover { transform: translateY(-1px); filter: brightness(1.06); }
.br-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.br-pulse-calm { font-size: 12.5px; color: var(--ink-3); display: inline-flex; align-items: center; min-height: 32px; }

/* ── the section bar ── */
.br-secnav { position: sticky; top: calc(var(--topbar-h) + 6px); z-index: 20; margin: 0 0 16px; }
.br-secnav-in {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 5px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.br-secnav-in::-webkit-scrollbar { display: none; }
.br-secnav.is-stuck .br-secnav-in { box-shadow: var(--shadow); border-color: var(--border-strong); }
.br-secnav-a {
  position: relative; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.br-secnav-a:hover { background: var(--wash); color: var(--ink); }
.br-secnav-a.on { background: var(--ink); color: var(--on-ink); }
.br-secnav-a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.br-secnav-a > i { display: none; width: 7px; height: 7px; border-radius: 50%; background: var(--act); box-shadow: 0 0 0 2px var(--surface); }
.br-secnav-a.has-act > i { display: inline-block; }
.br-grid > .cp-box { scroll-margin-top: calc(var(--topbar-h) + 72px); }
.br-flash { animation: br-flash 1.2s var(--br-ease); }

/* ── every box on the brand page: one header style ── */
.br-grid > .cp-box { background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 70%, var(--plane))); }
.br-grid > .cp-box > .cpb-head h3 { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.br-grid > .cp-box > .cpb-head > span { padding: 4px 10px; border-radius: 999px; background: var(--surface-3); font-size: 11.5px; }
.br-grid > .cp-box > .cpb-head > span.br-head-act { padding: 0; background: none; }

/* ── Now: the machine at work ── */
.br-now.is-running { border-color: color-mix(in srgb, var(--motion) 45%, var(--border)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--motion) 10%, transparent); }
.br-live-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--motion); flex-shrink: 0; }
.br-job { border-radius: 18px; padding: 16px 18px; background: var(--surface-2); border-color: var(--border-strong); }
.br-job-no { font-variant-numeric: tabular-nums; }
.br-agent { padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.br-prog-bar { height: 6px; }

/* ── a script's row: a rail in its colour, its road from the artist to the video ── */
.pv-row { position: relative; padding: 16px 18px 16px 20px; border-radius: 18px; background: var(--surface-2); border-color: var(--border); gap: 12px; overflow: hidden;
  transition: border-color .2s ease, transform .3s var(--br-ease); }
.pv-row::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ink-3); }
.pv-row.is-act::before { background: var(--act); }
.pv-row.is-motion::before { background: var(--motion); }
.pv-row.is-settled::before { background: var(--ink); }
.pv-row:hover { border-color: var(--border-strong); }
.pv-sid { font-family: var(--mono); font-size: 13px !important; padding: 3px 9px; border-radius: 8px; background: var(--surface-3); letter-spacing: .02em; }
.pv-hook { font-size: 15px; line-height: 1.7; padding: 2px 2px 0; color: var(--ink); }
.pv-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pv-track li { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 11px; color: var(--ink-3); }
.pv-track li > i { display: block; height: 4px; border-radius: 999px; background: var(--surface-4); position: relative; overflow: hidden; }
.pv-track li.done > i { background: var(--ink-3); }
.pv-track li.done { color: var(--ink-2); }
.pv-track li.now { color: var(--ink); font-weight: 600; }
.pv-track li.now.is-you > i { background: var(--act); }
.pv-track li.now.is-them > i { background: var(--surface-4); }
.pv-track li.now.is-them > i::after {   /* someone else is on it: a light that runs */
  content: ''; position: absolute; inset: 0; width: 40%; border-radius: inherit; background: var(--motion);
  animation: br-run 1.6s ease-in-out infinite;
}
.pv-track li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.va-job { padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.va-av { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--motion); color: var(--motion-ink); font-size: 11px; font-weight: 700; }

@keyframes br-ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes br-run { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@keyframes br-flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ink) 40%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }

@media (max-width: 720px) {
  .br-pulse-m { border-right: 0; padding-right: 0; flex: 1 1 100%; }
  .pv-track li:not(.now) span { visibility: hidden; }
  .pv-track li.now span { overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  .br-pulse-m.is-busy > i::after, .br-live-dot::after, .pv-track li.now.is-them > i::after, .br-flash { animation: none; }
  .pv-track li.now.is-them > i::after { width: 100%; }
  .br-chip, .pv-row { transition: none; }
  .br-chip:hover { transform: none; }
}

/* ── ours / clients: the switch under the page title (migration 045) ───────
   In the header, not in the brand list: ELYOX could not find it there (a grey bar above the cards, and gone on a
   section's own page). The side open is filled like the top nav's open tab, in both themes. */
.br-side { margin-top: 14px; }
.br-side button { padding: 8px 16px; font-size: 13.5px; }
.br-side-n { margin-left: 2px; padding: 0 6px; border-radius: 999px; background: var(--surface); color: var(--ink-3); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.br-side button.on { background: var(--accent); color: var(--on-accent); }
.br-side button.on .br-side-n { background: color-mix(in srgb, var(--on-accent) 18%, transparent); color: var(--on-accent); }
@media (max-width: 900px) {
  .br-side { display: flex; width: 100%; }
  .br-side button { flex: 1; justify-content: center; min-height: 44px; }
}

/* 055 — the CEO's OK on a script, and 🗑 delete */
.br-script-tools { margin-top: 6px; }
.br-script-tools .br-sdel { margin-left: auto; color: var(--ink-3); }
.br-script-tools .br-sdel.is-confirm { color: var(--crit); }
.br-ceo-note { margin: 6px 0; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, currentColor 6%, transparent); font-size: 13px; line-height: 1.45; }

/* 🗃 a new round is open: put V1's scripts away (057) */
.br-arch-v1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin: 4px 0 10px; border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--ink-2); }
.br-arch-v1 span { flex: 1 1 260px; min-width: 0; }

/* 🎧 Voices: the voice-overs waiting for ELYOX's ear (2026-10-05) */
.br-vreview-item { padding: 10px 0 4px; border-top: 1px solid var(--border); }
.br-vreview-item:first-of-type { border-top: 0; }
.br-vreview-item.br-flash { border-radius: 12px; }
.br-vreview-t { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.br-vreview-t span { font-size: 12px; color: var(--ink-3); }
.br-vreview-item .br-voice { border-top: 0; }
/* the footage finder's clip to pick, played in the activity feed (070) */
.br-evclip { display: block; width: 100%; max-width: 240px; aspect-ratio: 9 / 16; max-height: 420px; border-radius: 12px; background: #000; object-fit: contain; margin-top: 6px; }

/* the section bar in the order of the work (2026-10-07): Progress, then numbered steps */
.br-secnav-n {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
  font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--wash); box-shadow: inset 0 0 0 1px var(--border-strong);
}
.br-secnav-a.on .br-secnav-n { background: var(--on-ink); color: var(--ink); box-shadow: none; }
.br-secnav-a.is-prog { color: var(--ink); }

/* the footage finder's clips to pick, in the machine's box (2026-10-07) */
.br-fpick { display: flex; flex-direction: column; gap: 10px; }
.br-fpick-h { font-size: 13px; font-weight: 700; }
.br-fclips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.br-fclip { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.br-fclip video, .br-fclip img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; background: #000; }
.br-fclip-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.br-fclip-btns .btn { flex: 1 1 auto; justify-content: center; }
.br-fsaid summary { cursor: pointer; font-size: 12.5px; color: var(--ink-3); }
.br-fsaid p { margin: 6px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); unicode-bidi: plaintext; overflow-wrap: anywhere; }
.br-fask-photo img { max-height: 220px; width: auto; border-radius: 12px; }

/* 🎬 Editing: what is being edited, and the rules for the machine's editing (2026-10-07) */
.br-editing { display: flex; flex-direction: column; gap: 12px; }
.br-erows { display: flex; flex-direction: column; gap: 8px; }
.br-erow { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); min-width: 0; }
.br-erow-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.br-erow-top > b { min-width: 0; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.br-erow-pct { margin-left: auto; font-variant-numeric: tabular-nums; }
.br-erules { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.br-erules-h { display: flex; flex-direction: column; gap: 2px; }
.br-erules-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.br-erules-row textarea { flex: 1 1 280px; min-width: 0; }
.br-erules-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.br-erules-list li { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border); font-size: 13px; flex-wrap: wrap; }
.br-erules-list li:first-child { border-top: 0; }
.br-erules-list li > span:first-child { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.br-fnone { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; line-height: 1.5; }
.br-vdel { margin-left: auto; } .br-vdel:hover, .br-vdel.is-confirm { color: var(--crit, #d33); }

/* ── 🎬 Storyboard (118, ELYOX 2026-10-18): the 🎥 UGC storyboards, right after the scripts — the top of the tall
   picture as its preview, the whole of it on a tap; ✅ / ✏️ as on Telegram. Shared with the CEO page's Storyboard tab. ── */
.br-board-list { display: grid; gap: 12px; }
.br-board {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
}
.br-board.is-wait { border-color: var(--act); box-shadow: 0 0 0 1px var(--act) inset; }
.br-board-pic {
  position: relative; display: block; width: 100%; height: 300px; padding: 0; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; background: var(--surface-3); cursor: zoom-in;
}
.br-board-pic:disabled { cursor: default; }
.br-board-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .3s var(--br-ease, ease); }
.br-board-pic:hover img { transform: scale(1.02); }
.br-board-pic::after { content: ''; position: absolute; inset: auto 0 0; height: 72px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); pointer-events: none; }
.br-board-open { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; color: #fff; font-size: 12px; font-weight: 600; text-align: center; }
.br-board-pic:focus-visible { outline: 2px solid var(--act); outline-offset: 2px; }
.br-board-txt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.br-board-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.br-board-top b { font-size: 14px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.br-board-label { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.45; overflow-wrap: anywhere; margin-top: -4px; }
.br-board-meta, .br-board-by { font-size: 12px; color: var(--ink-3); }
.br-board-cap { display: grid; gap: 2px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.br-board-cap p { margin: 0; overflow-wrap: anywhere; }
.br-board-old summary { cursor: pointer; font-size: 12px; color: var(--ink-3); width: fit-content; }
.br-board-oldrow {
  display: flex; gap: 8px; align-items: baseline; width: 100%; padding: 6px 8px; border: 0; border-radius: 8px;
  background: none; font: inherit; font-size: 12.5px; color: var(--ink-2); text-align: start; cursor: zoom-in;
}
.br-board-oldrow:hover { background: var(--surface-2); }
.br-board-oldrow span { color: var(--ink-3); min-width: 0; overflow-wrap: anywhere; }
.modal.br-board-modal { width: min(900px, calc(100vw - 32px)); }
.br-board-full { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--border); }
@media (max-width: 640px) {
  .br-board { grid-template-columns: 1fr; }
  .br-board-pic { height: 220px; }
}
/* 🗑 Remove on an ad tile: a word, not only an icon */
.br-vdel { gap: 4px; }
/* 🎨 (119) the editing style of a UGC video, on its approved storyboard */
.br-board-style { margin-top: 2px; }
.br-board-style .eds-lbl b { color: var(--ink); }

/* ── 🎓 Editing references (121, ELYOX 2026-10-18): a video whose editing he likes → the machine learns it ── */
.br-refs .hint { margin: 0 0 12px; }
.br-ref-form { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.br-ref-form .field-wrap { margin: 0; }
.br-ref-go { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.br-ref-file { cursor: pointer; max-width: 100%; }
.br-ref-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-ref-list { display: grid; gap: 10px; margin-top: 12px; }
.br-ref { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.br-ref.is-wait { border-color: var(--act); box-shadow: 0 0 0 1px var(--act) inset; }
.br-ref-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.br-ref-top > b { font-size: 14px; }
.br-ref-top .badge:last-child { margin-left: auto; }
.br-ref-link { font-size: 12.5px; font-weight: 700; color: var(--link, var(--ink)); }
.br-ref-when, .br-ref-why { font-size: 12px; color: var(--ink-3); }
.br-ref-note { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; overflow-wrap: anywhere; }
.br-ref-said { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.br-ref-said p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink); white-space: pre-wrap; unicode-bidi: plaintext; overflow-wrap: anywhere; }
.br-ref-media { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.br-ref-media video { width: 150px; aspect-ratio: 9 / 16; border-radius: 10px; background: #000; object-fit: cover; }
.br-ref-media img { max-width: min(360px, 100%); max-height: 270px; border-radius: 10px; border: 1px solid var(--border); object-fit: contain; background: var(--surface-3); }
.br-ref-acts { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 640px) { .br-ref-top .badge:last-child { margin-left: 0; } }
