/* Compliance Reviewer — Enhancement Intelligence
 *
 * Four things share this page and they are NOT equal, so this is not a grid of
 * equal cards:
 *
 *   1. THE VERDICT      one word. It decides whether the deck goes to Compliance
 *                       today, and it is the only thing anyone reads under pressure.
 *   2. THE PILLAR WALL  five pillars, and every creative sitting on one of them —
 *                       or in the orphan bay. This is the check Jennifer's framework
 *                       exists for and the one the skill calls highest priority.
 *   3. THE CREATIVES    one card per creative with the SLIDE ON IT. A compliance
 *                       finding about "grupo C" that you cannot see is unactionable;
 *                       the thumbnail is what makes it a real object.
 *   4. THE REWRITE      antes → después, copiable. A review that says "huérfano"
 *                       and stops is a complaint. The rewrite is the deliverable.
 *
 * Everything else — findings, typos, per-slide comments, briefs — sits under those.
 *
 * Contrast, same rule as lpages.css and spy.css: `--bb-ink-3` is decoration only,
 * never a sentence and never a number. Severity carries in a dot, a border and a
 * label — never in colour alone, because the four severities have to stay
 * distinguishable in the greyscale print he pastes into a Monday.com ticket.
 */

.cx-page {
  --cx-gap: 18px;
  --cx-crit: var(--bb-red);
  --cx-high: var(--bb-orange);
  --cx-med:  var(--bb-gold-ink);
  --cx-low:  var(--bb-ink-3);
  --cx-ok:   var(--bb-green);
}

/* =========================================================================
   1. Intake — the drop zone
   ========================================================================= */

.cx-intake {
  background: var(--bb-surface);
  border-radius: var(--bb-r-card);
  box-shadow: var(--bb-sh-card);
  padding: 20px 22px;
  margin-bottom: var(--cx-gap);
}
.cx-intake-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cx-intake-head h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.cx-intake-head p { margin: 0; font-size: 13px; color: var(--bb-ink-2); flex: 1; min-width: 260px; }

.cx-drop {
  border: 1.5px dashed var(--bb-line-strong);
  border-radius: var(--bb-r-card);
  background: var(--bb-inset);
  padding: 30px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s var(--bb-ease-strong), background .16s, transform .16s var(--bb-ease-strong);
}
.cx-drop:hover { border-color: var(--bb-accent); background: var(--bb-accent-tint); }
.cx-drop.is-over { border-color: var(--bb-accent); background: var(--bb-accent-tint); transform: scale(1.006); }
.cx-drop-ico { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--bb-accent); opacity: .9; }
.cx-drop-ico svg { width: 100%; height: 100%; }
.cx-drop-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.cx-drop-sub { font-size: 12.5px; color: var(--bb-ink-2); }
.cx-drop-kinds { margin-top: 10px; font-size: 11px; color: var(--bb-ink-3); letter-spacing: .04em; text-transform: uppercase; }

.cx-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--bb-ink-3); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.cx-or::before, .cx-or::after { content: ''; flex: 1; height: 1px; background: var(--bb-line); }

.cx-linkrow { display: flex; gap: 10px; flex-wrap: wrap; }
.cx-linkrow input { flex: 1; min-width: 260px; }
.cx-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 16px; }
.cx-meta label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--bb-ink-2); margin-bottom: 5px; }
.cx-intake-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--bb-line); }
.cx-intake-foot .cx-spacer { flex: 1; }

/* The file, once it is open in the browser but before anything ran. */
.cx-loaded {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--bb-accent-tint);
  border-radius: var(--bb-r-control);
  padding: 12px 14px;
  margin-top: 14px;
}
.cx-loaded-name { font-weight: 600; font-size: 13.5px; }
.cx-loaded-facts { font-size: 12px; color: var(--bb-ink-2); font-variant-numeric: tabular-nums; }

/* =========================================================================
   2. The run — steps
   ========================================================================= */

.cx-run {
  background: var(--bb-surface);
  border-radius: var(--bb-r-card);
  box-shadow: var(--bb-sh-card);
  padding: 18px 20px;
  margin-bottom: var(--cx-gap);
}
.cx-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-step {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  padding: 7px 11px;
  border-radius: var(--bb-r-chip);
  border: 1px solid var(--bb-line);
  background: var(--bb-inset);
  color: var(--bb-ink-3);
}
.cx-step-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bb-line-strong); flex: none; }
/* Three states animate DIFFERENTLY on purpose. A spinner that looks the same in
   all of them is how a failed step reads as a slow one. */
.cx-step.is-run  { color: var(--bb-ink); border-color: var(--bb-accent); background: var(--bb-accent-tint); }
.cx-step.is-run  .cx-step-dot { background: var(--bb-accent); animation: cxPulse 1.1s ease-in-out infinite; }
.cx-step.is-done { color: var(--bb-ink-2); border-color: color-mix(in srgb, var(--bb-green) 40%, var(--bb-line)); background: var(--bb-green-tint); }
.cx-step.is-done .cx-step-dot { background: var(--bb-green); }
.cx-step.is-fail { color: var(--bb-red); border-color: color-mix(in srgb, var(--bb-red) 45%, var(--bb-line)); background: var(--bb-red-tint); }
.cx-step.is-fail .cx-step-dot { background: var(--bb-red); }
/* Amber, not red: a skipped read did not HAPPEN, and painting it red reports a
   broken review for a deck that parsed fine. */
.cx-step.is-skip { color: var(--bb-gold-ink); border-color: color-mix(in srgb, var(--bb-gold) 50%, var(--bb-line)); background: var(--bb-gold-tint); }
.cx-step.is-skip .cx-step-dot { background: var(--bb-gold); }
.cx-step-note { color: inherit; opacity: .8; }
@keyframes cxPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .cx-step-dot { animation: none !important; } }

.cx-run-bar { height: 3px; border-radius: 2px; background: var(--bb-line); overflow: hidden; margin-top: 14px; }
.cx-run-bar i { display: block; height: 100%; background: var(--bb-accent); transition: width .3s var(--bb-ease-strong); }

/* =========================================================================
   3. The verdict
   ========================================================================= */

.cx-verdict {
  border-radius: var(--bb-r-card);
  box-shadow: var(--bb-sh-card);
  background: var(--bb-surface);
  overflow: hidden;
  margin-bottom: var(--cx-gap);
}
.cx-verdict-top { display: flex; gap: 22px; padding: 22px 24px; align-items: flex-start; flex-wrap: wrap; }
.cx-verdict-mark { flex: none; width: 6px; align-self: stretch; border-radius: 3px; background: var(--bb-line-strong); }
.cx-verdict-body { flex: 1; min-width: 260px; }
.cx-verdict-kicker { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--bb-ink-3); margin-bottom: 6px; }
.cx-verdict-word { font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: -.02em; line-height: 1.04; }
.cx-verdict-why { margin-top: 8px; font-size: 13.5px; color: var(--bb-ink-2); max-width: 62ch; }
.cx-verdict-act { margin-top: 12px; font-size: 13px; font-weight: 600; }

.cx-verdict[data-tone="bad"]   .cx-verdict-mark { background: var(--cx-crit); }
.cx-verdict[data-tone="bad"]   .cx-verdict-word { color: var(--cx-crit); }
.cx-verdict[data-tone="weak"]  .cx-verdict-mark { background: var(--cx-high); }
.cx-verdict[data-tone="weak"]  .cx-verdict-word { color: var(--cx-high); }
.cx-verdict[data-tone="ok"]    .cx-verdict-mark { background: var(--bb-gold); }
.cx-verdict[data-tone="ok"]    .cx-verdict-word { color: var(--bb-gold-ink); }
.cx-verdict[data-tone="great"] .cx-verdict-mark { background: var(--cx-ok); }
.cx-verdict[data-tone="great"] .cx-verdict-word { color: var(--cx-ok); }

.cx-tally { display: flex; gap: 8px; flex-wrap: wrap; align-content: flex-start; }
.cx-tally-cell {
  min-width: 78px; padding: 10px 12px;
  border-radius: var(--bb-r-control);
  border: 1px solid var(--bb-line);
  background: var(--bb-inset);
  text-align: center;
}
.cx-tally-n { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cx-tally-k { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--bb-ink-2); margin-top: 3px; }
.cx-tally-cell[data-sev="critico"] { border-color: color-mix(in srgb, var(--cx-crit) 45%, var(--bb-line)); background: var(--bb-red-tint); }
.cx-tally-cell[data-sev="critico"] .cx-tally-n { color: var(--cx-crit); }
.cx-tally-cell[data-sev="alto"]    { border-color: color-mix(in srgb, var(--cx-high) 45%, var(--bb-line)); background: var(--bb-orange-tint); }
.cx-tally-cell[data-sev="alto"]    .cx-tally-n { color: var(--cx-high); }
.cx-tally-cell[data-sev="medio"]   { border-color: color-mix(in srgb, var(--bb-gold) 50%, var(--bb-line)); background: var(--bb-gold-tint); }
.cx-tally-cell[data-sev="medio"]   .cx-tally-n { color: var(--bb-gold-ink); }
.cx-tally-cell.is-zero { opacity: .55; }
.cx-tally-cell.is-zero .cx-tally-n { color: var(--bb-ink-3); }

.cx-verdict-foot {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  padding: 14px 24px;
  background: var(--bb-inset);
  border-top: 1px solid var(--bb-line);
  font-size: 12.5px;
}
.cx-verdict-foot .cx-spacer { flex: 1; }
.cx-delta { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; }

/* A chip, never a paragraph. Scope and caveats go here — the app's rule. */
.cx-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cx-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; padding: 4px 9px;
  border-radius: var(--bb-r-chip);
  border: 1px solid var(--bb-line);
  background: var(--bb-surface);
  color: var(--bb-ink-2);
  white-space: nowrap;
}
.cx-chip b { font-weight: 600; color: var(--bb-ink); font-variant-numeric: tabular-nums; }
.cx-chip.is-warn { border-color: color-mix(in srgb, var(--bb-gold) 50%, var(--bb-line)); background: var(--bb-gold-tint); color: var(--bb-gold-ink); }
.cx-chip.is-bad  { border-color: color-mix(in srgb, var(--cx-crit) 45%, var(--bb-line)); background: var(--bb-red-tint); color: var(--cx-crit); }
.cx-chip.is-good { border-color: color-mix(in srgb, var(--cx-ok) 40%, var(--bb-line)); background: var(--bb-green-tint); color: var(--cx-ok); }

/* =========================================================================
   4. Sections
   ========================================================================= */

.cx-card {
  background: var(--bb-surface);
  border-radius: var(--bb-r-card);
  box-shadow: var(--bb-sh-card);
  margin-bottom: var(--cx-gap);
  overflow: hidden;
}
.cx-card-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--bb-line);
}
.cx-card-head h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.cx-card-head .cx-sub { font-size: 12.5px; color: var(--bb-ink-2); }
.cx-card-head .cx-spacer { flex: 1; }
.cx-card-body { padding: 18px 20px; }
.cx-card-body.is-tight { padding: 12px 20px 18px; }

/* =========================================================================
   5. The pillar wall
   ========================================================================= */

.cx-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 12px; }
.cx-pillar {
  position: relative;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-r-control);
  background: var(--bb-inset);
  padding: 14px 14px 12px;
  text-align: left;
  cursor: pointer;
  transition: box-shadow .16s var(--bb-ease-strong), transform .16s var(--bb-ease-strong), border-color .16s;
  display: block; width: 100%;
}
.cx-pillar:hover { box-shadow: var(--bb-sh-raised); transform: translateY(-2px); }
/* The pillar card is a <button>, and something in the app's element-level CSS
   leaves a button INHERITING `white-space: nowrap` — this file never sets it.
   MEASURED on the live page before the fix: `.cx-pillar-name` computed `nowrap`,
   and `.cx-pillar-obj` reported clientWidth 181 against scrollWidth **653** — the
   perception objective was clipped mid-word at the card edge and "ACCESS ON YOUR
   TERMS" lost its last word. Same family as the bare `button{padding:10px 16px}`
   and the `svg{max-width:100%}` collapse: a generic element rule reaching into a
   component that never asked for it, and invisible until you measure.

   Set explicitly on the card AND its children, because inheritance is what
   carries it. After: both computed `normal`, scrollWidth == clientWidth. */
.cx-pillar, .cx-pillar * { white-space: normal; }
.cx-pillar-obj, .cx-pillar-name { overflow-wrap: anywhere; }
/* And the SAME rule sets `color: white` on a button. MEASURED: `.cx-pillar-name`
   and `.cx-pillar-count` computed `rgb(255,255,255)` — white text on a light card,
   so the pillar's own NAME was the one thing on it you could not read. The card
   below overrides `background` and forgot `color`; a component that overrides one
   half of an element rule inherits the other half, silently. Every button in this
   file now names its colour. */
.cx-pillar { color: var(--bb-ink); }
.cx-pillar-name { color: var(--bb-ink); }
.cx-pillar-count b { color: var(--bb-ink); }
.cx-pillar.is-active { border-color: var(--bb-accent); background: var(--bb-accent-tint); }
.cx-pillar.is-empty { opacity: .62; }
.cx-pillar-n {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: .08em;
  color: var(--bb-gold-ink); font-weight: 600;
}
.cx-pillar-name { font-size: 12.5px; font-weight: 600; line-height: 1.28; margin: 4px 0 8px; letter-spacing: -.005em; }
.cx-pillar-count { display: flex; align-items: baseline; gap: 6px; }
.cx-pillar-count b { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 24px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.cx-pillar-count span { font-size: 11px; color: var(--bb-ink-2); }
.cx-pillar-obj { margin-top: 8px; font-size: 11.5px; color: var(--bb-ink-2); line-height: 1.4; }
.cx-pillar-before { margin-top: 6px; font-size: 10.5px; color: var(--bb-ink-3); }
/* The orphan bay is a pillar-shaped card that is deliberately NOT a pillar. */
.cx-pillar.is-orphan { border-color: color-mix(in srgb, var(--cx-high) 50%, var(--bb-line)); background: var(--bb-orange-tint); }
.cx-pillar.is-orphan .cx-pillar-n { color: var(--cx-high); }
.cx-pillar.is-orphan .cx-pillar-count b { color: var(--cx-high); }

/* =========================================================================
   6. The creatives
   ========================================================================= */

.cx-creatives { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.cx-cre {
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-r-card);
  background: var(--bb-surface);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.cx-cre.is-orphan { border-color: color-mix(in srgb, var(--cx-high) 55%, var(--bb-line)); }
.cx-cre.is-cover  { opacity: .72; }

.cx-cre-shot {
  position: relative;
  background: var(--bb-canvas);
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--bb-line);
}
.cx-cre-shot img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.cx-cre-shot .cx-shot-wait { font-size: 11.5px; color: var(--bb-ink-3); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.cx-cre-tag {
  position: absolute; top: 8px; left: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 600;
  padding: 3px 7px; border-radius: 5px;
  background: var(--bb-tip-bg); color: var(--bb-tip-fg);
}
.cx-cre-slides {
  position: absolute; bottom: 8px; left: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  padding: 3px 7px; border-radius: 5px;
  background: rgba(18, 40, 60, .82); color: var(--bb-tip-fg);
  font-variant-numeric: tabular-nums;
}
.cx-cre-eye {
  position: absolute; top: 8px; right: 8px;
  font-size: 10.5px; padding: 3px 7px; border-radius: 5px;
  background: var(--bb-gold-tint); color: var(--bb-gold-ink);
  border: 1px solid color-mix(in srgb, var(--bb-gold) 55%, transparent);
}
.cx-cre-eye.is-read { background: var(--bb-green-tint); color: var(--cx-ok); border-color: color-mix(in srgb, var(--cx-ok) 45%, transparent); }

.cx-cre-main { padding: 13px 14px; flex: 1; }
.cx-cre-line { font-size: 13.5px; font-weight: 600; line-height: 1.32; letter-spacing: -.005em; }
.cx-cre-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.cx-badge {
  font-size: 11px; padding: 3px 8px; border-radius: var(--bb-r-chip);
  border: 1px solid var(--bb-line); background: var(--bb-inset); color: var(--bb-ink-2);
  white-space: nowrap;
}
.cx-badge.is-pillar { border-color: color-mix(in srgb, var(--bb-accent) 35%, var(--bb-line)); background: var(--bb-accent-tint); color: var(--bb-accent-ink); font-weight: 600; }
.cx-badge.is-orphan { border-color: color-mix(in srgb, var(--cx-high) 50%, var(--bb-line)); background: var(--bb-orange-tint); color: var(--cx-high); font-weight: 600; }
.cx-badge.is-conf-baja { border-style: dashed; }

.cx-cre-anchor {
  margin-top: 10px; padding: 9px 11px;
  border-left: 2px solid var(--bb-line-strong);
  background: var(--bb-inset);
  border-radius: 0 var(--bb-r-chip) var(--bb-r-chip) 0;
  font-size: 12px; color: var(--bb-ink-2); line-height: 1.45;
}
.cx-cre-anchor b { color: var(--bb-ink); font-weight: 600; }
.cx-cre-why { margin-top: 8px; font-size: 12px; color: var(--bb-ink-2); line-height: 1.45; }

/* The rewrite. antes → después, and the button that puts it on the clipboard. */
.cx-rw {
  margin: 0 14px 14px;
  border: 1px solid color-mix(in srgb, var(--bb-gold) 45%, var(--bb-line));
  border-radius: var(--bb-r-control);
  background: var(--bb-gold-tint);
  overflow: hidden;
}
.cx-rw-head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 11px;
  font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--bb-gold-ink); font-weight: 700;
  border-bottom: 1px solid color-mix(in srgb, var(--bb-gold) 35%, transparent);
}
.cx-rw-head .cx-spacer { flex: 1; }
.cx-rw-body { padding: 11px; }
.cx-rw-was { font-size: 12px; color: var(--bb-ink-2); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--cx-crit) 60%, transparent); line-height: 1.4; }
.cx-rw-arrow { font-size: 11px; color: var(--bb-gold-ink); margin: 6px 0 4px; }
.cx-rw-now { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--bb-ink); }
.cx-rw-why { margin-top: 8px; font-size: 11.5px; color: var(--bb-ink-2); line-height: 1.42; }
.cx-rw-keep { margin-top: 5px; font-size: 11.5px; color: var(--cx-ok); line-height: 1.42; }

.cx-cre-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 14px;
  border-top: 1px solid var(--bb-line);
  background: var(--bb-inset);
  font-size: 11.5px;
}
.cx-cre-foot .cx-spacer { flex: 1; }
.cx-sevdots { display: inline-flex; gap: 3px; }
.cx-sevdot { width: 8px; height: 8px; border-radius: 2px; }
.cx-sevdot[data-sev="critico"] { background: var(--cx-crit); }
.cx-sevdot[data-sev="alto"]    { background: var(--cx-high); }
.cx-sevdot[data-sev="medio"]   { background: var(--bb-gold); }
.cx-sevdot[data-sev="bajo"]    { background: var(--bb-line-strong); }

/* Read-the-slide transcription, collapsed. */
.cx-read { margin: 0 14px 12px; }
.cx-read summary { cursor: pointer; font-size: 11.5px; color: var(--bb-ink-2); }
.cx-read summary::marker { color: var(--bb-ink-3); }
.cx-read .cx-cre-why { margin: 8px 0 0; }
.cx-read pre {
  margin: 8px 0 0; padding: 10px 11px;
  background: var(--bb-inset); border: 1px solid var(--bb-line);
  border-radius: var(--bb-r-chip);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; line-height: 1.5;
  white-space: pre-wrap; word-break: break-word;
  max-height: 240px; overflow: auto;
}

/* =========================================================================
   7. Findings
   ========================================================================= */

.cx-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.cx-tab {
  font-size: 12px; padding: 5px 11px;
  border-radius: var(--bb-r-chip);
  border: 1px solid var(--bb-line);
  background: var(--bb-surface);
  color: var(--bb-ink-2);
  cursor: pointer;
}
.cx-tab:hover { background: var(--bb-hover); }
.cx-tab.is-active { border-color: var(--bb-accent); background: var(--bb-accent-tint); color: var(--bb-accent-ink); font-weight: 600; }
.cx-tab b { font-variant-numeric: tabular-nums; }

.cx-find {
  border: 1px solid var(--bb-line);
  border-left: 3px solid var(--bb-line-strong);
  border-radius: 0 var(--bb-r-control) var(--bb-r-control) 0;
  background: var(--bb-surface);
  padding: 13px 15px;
  margin-bottom: 10px;
}
.cx-find[data-sev="critico"] { border-left-color: var(--cx-crit); background: var(--bb-red-tint); }
.cx-find[data-sev="alto"]    { border-left-color: var(--cx-high); background: var(--bb-orange-tint); }
.cx-find[data-sev="medio"]   { border-left-color: var(--bb-gold); }
.cx-find[data-sev="bajo"]    { border-left-color: var(--bb-line-strong); }
.cx-find-top { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.cx-find-sev {
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 4px;
  background: var(--bb-tip-bg); color: var(--bb-tip-fg); flex: none;
}
.cx-find[data-sev="critico"] .cx-find-sev { background: var(--cx-crit); }
.cx-find[data-sev="alto"]    .cx-find-sev { background: var(--cx-high); }
.cx-find[data-sev="medio"]   .cx-find-sev { background: var(--bb-gold-ink); }
.cx-find-title { font-size: 13.5px; font-weight: 600; flex: 1; min-width: 200px; letter-spacing: -.005em; }
.cx-find-where { font-size: 11.5px; color: var(--bb-ink-2); font-variant-numeric: tabular-nums; }
.cx-find-ev {
  margin-top: 9px; padding: 8px 10px;
  background: var(--bb-tip-bg); color: var(--bb-tip-fg);
  border-radius: var(--bb-r-chip);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px; line-height: 1.5;
  word-break: break-word;
}
.cx-find-ev .cx-ev-label { color: var(--bb-tip-muted); text-transform: uppercase; letter-spacing: .07em; font-size: 9.5px; display: block; margin-bottom: 3px; }
.cx-find-why { margin-top: 9px; font-size: 12.5px; color: var(--bb-ink-2); line-height: 1.5; }
.cx-find-fix { margin-top: 7px; font-size: 12.5px; line-height: 1.5; }
.cx-find-fix b { color: var(--cx-ok); }
.cx-find-foot { margin-top: 9px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cx-find-rule { font-size: 11px; color: var(--bb-ink-3); }

.cx-owner {
  font-size: 10.5px; font-weight: 600; padding: 2px 7px;
  border-radius: 4px; border: 1px solid var(--bb-line-strong);
  background: var(--bb-surface); color: var(--bb-ink-2);
}
.cx-owner[data-o="WildFi"]     { border-color: color-mix(in srgb, var(--bb-violet) 45%, var(--bb-line)); background: var(--bb-violet-tint); color: var(--bb-violet); }
.cx-owner[data-o="Compliance"] { border-color: color-mix(in srgb, var(--cx-crit) 40%, var(--bb-line)); background: var(--bb-red-tint); color: var(--cx-crit); }
.cx-owner[data-o="Northbridge"]{ border-color: color-mix(in srgb, var(--bb-cyan) 45%, var(--bb-line)); background: var(--bb-cyan-tint); color: var(--bb-cyan); }

/* =========================================================================
   8. Typos + per-slide comments
   ========================================================================= */

.cx-typos { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cx-typos th {
  text-align: left; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--bb-ink-2); font-weight: 600;
  padding: 7px 10px; border-bottom: 1px solid var(--bb-line); background: var(--bb-inset);
}
.cx-typos td { padding: 8px 10px; border-bottom: 1px solid var(--bb-line); vertical-align: top; }
.cx-typos tr:hover td { background: var(--bb-hover); }
.cx-typos .cx-t-slide { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; color: var(--bb-ink-2); width: 62px; }
.cx-typos .cx-t-bad  { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--cx-crit); }
.cx-typos .cx-t-good { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--cx-ok); font-weight: 600; }
.cx-typos .cx-t-ctx  { color: var(--bb-ink-2); font-size: 11.5px; }

.cx-comment {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px; border: 1px solid var(--bb-line);
  border-radius: var(--bb-r-control); background: var(--bb-inset);
  margin-bottom: 8px;
}
.cx-comment-n {
  flex: none; min-width: 56px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px; font-weight: 600; color: var(--bb-accent-ink);
  font-variant-numeric: tabular-nums;
}
.cx-comment-t { flex: 1; font-size: 12.5px; line-height: 1.5; display: flex; flex-direction: column; gap: 5px; }
/* One instruction per line. Concatenated with a pipe, four findings for one slide
   became a five-line paragraph and the boundary between two separate instructions
   disappeared — and these get pasted onto the deck as comments. */
.cx-comment-i { display: block; }
.cx-comment-i + .cx-comment-i { padding-top: 5px; border-top: 1px dashed var(--bb-line); }

/* =========================================================================
   9. Empty / error
   ========================================================================= */

.cx-empty { text-align: center; padding: 34px 20px; }
.cx-empty h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.cx-empty p { margin: 0 auto; font-size: 13px; color: var(--bb-ink-2); max-width: 56ch; }
.cx-err {
  border: 1px solid color-mix(in srgb, var(--cx-crit) 45%, var(--bb-line));
  background: var(--bb-red-tint); color: var(--cx-crit);
  border-radius: var(--bb-r-control);
  padding: 12px 14px; font-size: 13px; margin-bottom: var(--cx-gap);
  display: flex; gap: 10px; align-items: flex-start;
}
.cx-err .cx-spacer { flex: 1; }
/* The recovery button is the PRIMARY thing in a failed-link strip, so it does not
   inherit the strip's red text — a red button reads as "cancel", and this one is
   the way forward. */
.cx-err .bb-btn { flex: none; align-self: flex-start; text-decoration: none; }
.cx-err a.bb-btn { color: var(--bb-ink); background: var(--bb-surface); }
.cx-err a.bb-btn:hover { background: var(--bb-hover); }

/* What did not run. A LIST of chips and lines, never a paragraph callout. */
.cx-partial { display: flex; flex-direction: column; gap: 6px; }
.cx-partial-row {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 12.5px; color: var(--bb-ink-2); line-height: 1.45;
}
.cx-partial-row::before {
  content: ''; flex: none; width: 6px; height: 6px; margin-top: 6px;
  border-radius: 50%; background: var(--bb-gold);
}

/* =========================================================================
   10. Narrow
   ========================================================================= */

@media (max-width: 720px) {
  .cx-verdict-top { padding: 18px 16px; gap: 16px; }
  .cx-card-head, .cx-card-body { padding-left: 14px; padding-right: 14px; }
  .cx-intake { padding: 16px 14px; }
  .cx-creatives { grid-template-columns: 1fr; }
  .cx-verdict-mark { width: 100%; height: 5px; align-self: auto; }
  .cx-verdict-top { flex-direction: column; }
  .cx-typos .cx-t-ctx { display: none; }
}

/* =========================================================================
   11. The document preview, and the agent reading a creative
   -------------------------------------------------------------------------
   References: CollectUI's "loading" challenge — the "Agent thinking… / Solving…
   / Working…" pills (a small animated glyph beside a state verb, several glyph
   variants) and the halftone-sweep loader (a dot field with a solid band moving
   across it). Both rebuilt here with BridgeBI's own tokens; nothing is imported.

   The animation is driven by the REAL per-creative progress the server streams
   (`stage.group` / `stage.read` / `stage.total`), and it shows the ACTUAL slide
   being read. A scanner that sweeps a placeholder while the model reads something
   else is the same class of lie as a progress bar that is not connected to
   anything — and this page is the one that exists to not do that.
   ========================================================================= */

/* ---- the filmstrip: proof we opened the right document ---- */
.cx-film { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scroll-snap-type: x proximity; }
.cx-film::-webkit-scrollbar { height: 6px; }
.cx-film::-webkit-scrollbar-thumb { background: var(--bb-line-strong); border-radius: 3px; }
.cx-film-cell {
  position: relative; flex: none; scroll-snap-align: start;
  width: 118px; height: 74px;
  border: 1px solid var(--bb-line); border-radius: var(--bb-r-chip);
  background: var(--bb-canvas);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cx-film-cell img { max-width: 100%; max-height: 100%; display: block; }
.cx-film-cell .cx-film-n {
  position: absolute; bottom: 3px; left: 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 9.5px;
  padding: 1px 4px; border-radius: 3px;
  background: rgba(18, 40, 60, .8); color: var(--bb-tip-fg);
}
.cx-film-cell.is-wait { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; color: var(--bb-ink-3); }
.cx-film-more {
  flex: none; align-self: center; padding: 0 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; color: var(--bb-ink-2);
}

/* ---- the agent pill ---- */
.cx-agent { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.cx-agent-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--bb-tip-bg); color: var(--bb-tip-fg);
  box-shadow: 0 2px 14px rgba(13, 42, 94, .18);
}
/* The glyph: a conic sweep inside a ring, masked to a 2px band. One element, no
   SVG, and it reads as "thinking" rather than as a generic spinner. */
.cx-agent-orb {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: conic-gradient(from 0deg, transparent 0deg, var(--bb-gold) 90deg, transparent 200deg);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  animation: cxOrb 1.15s linear infinite;
}
/* Three verbs stacked in one box, cross-fading — the CollectUI pills change the
   WORD, not just the glyph, and that is what makes it read as an agent working
   through something instead of a page waiting. */
.cx-agent-verbs { position: relative; height: 17px; min-width: 15ch; }
.cx-agent-verbs span {
  position: absolute; inset: 0;
  font-size: 13px; font-weight: 600; letter-spacing: -.005em;
  opacity: 0; animation: cxVerb 5.4s ease-in-out infinite;
}
.cx-agent-verbs span:nth-child(1) { animation-delay: 0s; }
.cx-agent-verbs span:nth-child(2) { animation-delay: 1.8s; }
.cx-agent-verbs span:nth-child(3) { animation-delay: 3.6s; }
.cx-agent-count {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px;
  color: var(--bb-tip-muted); font-variant-numeric: tabular-nums;
  padding-left: 4px; border-left: 1px solid var(--bb-tip-line); margin-left: 2px;
}
.cx-agent-of { font-size: 12px; color: var(--bb-ink-2); font-variant-numeric: tabular-nums; }

/* ---- the slide being read ---- */
.cx-scan {
  position: relative;
  max-width: 470px;
  border: 1px solid var(--bb-line-strong);
  border-radius: var(--bb-r-card);
  background: var(--bb-canvas);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
}
.cx-scan img { max-width: 100%; max-height: 100%; display: block; }
.cx-scan-wait { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px; color: var(--bb-ink-3); }

/* The halftone field. Revealed only under the beam, via a moving mask — a dot
   grid that is always visible is texture; one that appears where the beam is
   reads as the thing being sampled. */
.cx-scan-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--bb-accent) 1px, transparent 1.15px);
  background-size: 11px 11px;
  opacity: .5;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 12%, transparent 18%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 12%, transparent 18%);
  mask-size: 100% 560%; -webkit-mask-size: 100% 560%;
  animation: cxSweepMask 2.6s cubic-bezier(.45, 0, .55, 1) infinite;
}
/* The beam itself: a hairline with a soft gold bloom above and below it. */
.cx-scan-beam {
  position: absolute; left: 0; right: 0; height: 34%;
  pointer-events: none;
  background: linear-gradient(to bottom,
    transparent 0%,
    color-mix(in srgb, var(--bb-gold) 16%, transparent) 44%,
    var(--bb-gold) 50%,
    color-mix(in srgb, var(--bb-gold) 16%, transparent) 56%,
    transparent 100%);
  animation: cxBeam 2.6s cubic-bezier(.45, 0, .55, 1) infinite;
}
/* Detection boxes: they SNAP in with a small overshoot, staggered, then hold —
   the charm is in the overshoot. Positions are fixed fractions of the frame, not
   claims about where text is; they read as "sampling here", which is honest. */
.cx-scan-box {
  position: absolute; pointer-events: none;
  border: 1.5px solid var(--bb-gold);
  border-radius: 3px;
  background: color-mix(in srgb, var(--bb-gold) 9%, transparent);
  opacity: 0;
  animation: cxBox 2.6s cubic-bezier(.32, 1.6, .4, 1) infinite;
}
.cx-scan-box::after {
  content: ''; position: absolute; top: -3px; left: -3px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--bb-gold);
}
.cx-scan-box:nth-of-type(1) { left: 9%;  top: 16%; width: 46%; height: 15%; animation-delay: .35s; }
.cx-scan-box:nth-of-type(2) { left: 9%;  top: 41%; width: 62%; height: 11%; animation-delay: .95s; }
.cx-scan-box:nth-of-type(3) { left: 9%;  top: 68%; width: 27%; height: 13%; animation-delay: 1.55s; }
/* The corner brackets — a viewfinder, so the frame reads as being LOOKED at. */
.cx-scan-frame { position: absolute; inset: 7px; pointer-events: none; }
.cx-scan-frame i {
  position: absolute; width: 14px; height: 14px;
  border: 2px solid color-mix(in srgb, var(--bb-gold) 70%, transparent);
  animation: cxBracket 2.6s ease-in-out infinite;
}
.cx-scan-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 3px 0 0 0; }
.cx-scan-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 3px 0 0; }
.cx-scan-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 3px; }
.cx-scan-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 3px 0; }

@keyframes cxOrb { to { transform: rotate(360deg); } }
/* The three verbs must OVERLAP at the handover or the pill goes blank.
   MEASURED: with a visible window of 8%-36% and delays at 0 / 1.8s / 3.6s of a
   5.4s cycle, no verb was on screen for ~0.6s between each pair — a third of the
   time the pill showed an orb, a counter, and nothing else. Each span now fades
   out across the next one's fade in (out by 40%, next in at 33.3%), so there is
   always at least one at full or two mid-cross. */
@keyframes cxVerb {
  0% { opacity: 0; transform: translateY(5px); }
  6%, 28% { opacity: 1; transform: translateY(0); }
  40%, 100% { opacity: 0; transform: translateY(-5px); }
}
@keyframes cxBeam { 0% { top: -34%; } 100% { top: 100%; } }
@keyframes cxSweepMask { 0% { mask-position: 0 -100%; -webkit-mask-position: 0 -100%; } 100% { mask-position: 0 100%; -webkit-mask-position: 0 100%; } }
@keyframes cxBox {
  0%, 8% { opacity: 0; transform: scale(.9); }
  16% { opacity: 1; transform: scale(1.03); }
  22%, 64% { opacity: 1; transform: scale(1); }
  80%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes cxBracket { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* Every one of these is decoration. Under reduced-motion the panel still says
   WHICH creative is being read and how many are left — the information survives,
   the movement does not. */
@media (prefers-reduced-motion: reduce) {
  .cx-agent-orb, .cx-scan-dots, .cx-scan-beam, .cx-scan-box, .cx-scan-frame i { animation: none; }
  .cx-agent-verbs span { animation: none; opacity: 0; }
  .cx-agent-verbs span:nth-child(1) { opacity: 1; }
  .cx-scan-dots { opacity: .16; mask-image: none; -webkit-mask-image: none; }
  .cx-scan-beam { display: none; }
  .cx-scan-box { opacity: .55; }
  .cx-scan-frame i { opacity: .7; }
}

/* =========================================================================
   12. Every stage shows the work · and the slides that need fixing
   ========================================================================= */

/* ---- the stage strip: several láminas in flight at once ---- */
.cx-scanrow { display: flex; gap: 10px; flex-wrap: wrap; }
.cx-scanrow .cx-scan { max-width: 220px; flex: 1 1 180px; }
.cx-scanrow .cx-scan.is-lead { max-width: 340px; flex: 2 1 300px; }
/* A lámina in a batch stage is being CONSIDERED, not scanned line by line — it gets
   the shimmer and the frame, not the beam and the detection boxes. Two different
   kinds of work should not look identical. */
.cx-scan.is-batch .cx-scan-beam,
.cx-scan.is-batch .cx-scan-box { display: none; }
.cx-scan.is-batch::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, color-mix(in srgb, var(--bb-gold) 22%, transparent) 50%, transparent 62%);
  background-size: 260% 100%;
  animation: cxShimmer 1.9s ease-in-out infinite;
}
@keyframes cxShimmer { 0% { background-position: 130% 0; } 100% { background-position: -130% 0; } }

/* ---- the review sheet ---- */
.cx-fix {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px;
  /* Each card sizes to its OWN content. Without this the grid row is as tall as its
     tallest card and a lámina with one problem gets the empty space of a lámina with
     four under it, which reads as something missing. */
  align-items: start;
}
.cx-fixcard {
  border: 1px solid var(--bb-line);
  border-left: 3px solid var(--bb-line-strong);
  border-radius: 0 var(--bb-r-card) var(--bb-r-card) 0;
  background: var(--bb-surface);
  overflow: hidden;
}
.cx-fixcard[data-sev="critico"] { border-left-color: var(--cx-crit); }
.cx-fixcard[data-sev="alto"]    { border-left-color: var(--cx-high); }
.cx-fixcard[data-sev="medio"]   { border-left-color: var(--bb-gold); }
.cx-fixcard[data-sev="bajo"]    { border-left-color: var(--bb-line-strong); }

.cx-fixshot {
  position: relative; background: var(--bb-canvas);
  border-bottom: 1px solid var(--bb-line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cx-fixshot img { width: 100%; height: auto; display: block; }
.cx-fixshot .cx-fixwait {
  padding: 40px 12px; font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px; color: var(--bb-ink-3);
}
.cx-fixslide {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px;
  padding: 2px 7px; border-radius: 4px;
  background: rgba(18, 40, 60, .85); color: var(--bb-tip-fg);
}

/* The highlight. Positioned from the vision read's own normalized box, which is
   validated in cxBrain.normalizeBlocks and matched to the finding in code — a box
   is only ever drawn over words the model reported seeing at that position. */
.cx-hl { position: absolute; z-index: 2; pointer-events: none; }
.cx-hl i {
  position: absolute; inset: 0;
  border: 2px solid var(--cx-high);
  border-radius: 3px;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cx-high) 18%, transparent),
              0 0 0 9999px color-mix(in srgb, #0b1b2b 34%, transparent);
  animation: cxHl .5s var(--bb-ease-strong) both;
}
.cx-hl[data-sev="critico"] i { border-color: var(--cx-crit); box-shadow: 0 0 0 2px color-mix(in srgb, var(--cx-crit) 20%, transparent), 0 0 0 9999px color-mix(in srgb, #0b1b2b 34%, transparent); }
.cx-hl[data-sev="medio"] i   { border-color: var(--bb-gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--bb-gold) 20%, transparent), 0 0 0 9999px color-mix(in srgb, #0b1b2b 30%, transparent); }
/* The number tag sits OUTSIDE the box when there is room above it, and inside when
   the box is at the very top — a tag clipped by the frame is unreadable. */
.cx-hl b {
  position: absolute; top: -9px; left: -7px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background: var(--cx-high); color: #fff;
  box-shadow: 0 1px 4px rgba(13, 42, 94, .3);
}
.cx-hl[data-sev="critico"] b { background: var(--cx-crit); }
.cx-hl[data-sev="medio"] b   { background: var(--bb-gold-ink); }
/* A box near the top edge keeps its number INSIDE: at -9px the tag is clipped by
   the frame and an unreadable tag is worse than a slightly overlapping one. */
.cx-hl.is-top b { top: 2px; left: 2px; }
@keyframes cxHl { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }

/* One line per problem. This is the whole point: what to do, not why. */
.cx-fixlist { padding: 4px 0; }
.cx-fixitem {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 9px 13px;
  font-size: 13px; line-height: 1.4;
}
.cx-fixitem + .cx-fixitem { border-top: 1px solid var(--bb-line); }
.cx-fixnum {
  flex: none; min-width: 17px; height: 17px; margin-top: 1px;
  border-radius: 9px;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background: var(--bb-line-strong); color: var(--bb-ink);
}
.cx-fixitem[data-sev="critico"] .cx-fixnum { background: var(--cx-crit); color: #fff; }
.cx-fixitem[data-sev="alto"]    .cx-fixnum { background: var(--cx-high); color: #fff; }
.cx-fixitem[data-sev="medio"]   .cx-fixnum { background: var(--bb-gold-ink); color: #fff; }
.cx-fixtext { flex: 1; min-width: 0; }
.cx-fixtext b { font-weight: 600; }
/* The quote, and only when it adds something the line does not already say. */
.cx-fixsays {
  display: block; margin-top: 3px;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px;
  color: var(--bb-ink-2); word-break: break-word;
}
.cx-fixnobox {
  display: block; margin-top: 3px; font-size: 11px; color: var(--bb-ink-3);
}
.cx-fixfoot {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 8px 13px; border-top: 1px solid var(--bb-line);
  background: var(--bb-inset); font-size: 11.5px;
}
.cx-fixfoot .cx-spacer { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  .cx-scan.is-batch::after, .cx-hl i { animation: none; }
}
@media (max-width: 720px) { .cx-fix { grid-template-columns: 1fr; } }

/* ---- the saved-review picker ----
   One native <select>, grouped by deck. BBDrop turns each <optgroup> into a
   labelled section, so twelve runs of one deck sit under one heading instead of
   twelve loose rows — which is what made the first version unreadable. Nothing is
   on screen until he opens it. */
.cx-saved { max-width: 260px; font-size: 12.5px; }
@media (max-width: 720px) { .cx-saved { max-width: 100%; } }
