/* ============================================================
   thebots.lab · themable UI (Extractor compact shell)
   Same token names and class contracts as the WhatsApp-bot dashboards,
   own accent identity.
   Themes:
     light (default) — warm near-white paper, one gold accent
     dark            — near-black, the same gold accent
   Toggle: html[data-theme="dark"], persisted by /static/theme.js
   Redesign 2026-09: accent moves off deep-teal onto one warm gold,
   present in both themes — the studio's own black-and-yellow — with
   warmer paper/ink neutrals. Same token names throughout, so this is
   a palette swap, not a rewrite.
   ============================================================ */

:root {
  --bg:        #fdfcfa;
  --bg-deep:   #f1efe8;
  --bg-elev:   #ffffff;
  --surface:   #ffffff;
  --surface-2: #f7f5ef;
  --line:      #e9e5d9;
  --line-soft: #f0ede3;
  --hairline-strong: #d9d3c1;

  --ink:       #1c1a15;
  --ink-2:     #54503f;
  --ink-mute:  #8a8571;
  --ink-faint: #b7b19c;

  --accent:        #f5b400;
  --accent-deep:   #a97800;
  --accent-soft:   rgba(245, 180, 0, 0.16);
  --accent-ink:    #1c1a15;

  --ok:        #1f9d5c;
  --ok-soft:   rgba(31, 157, 92, 0.13);
  --ok-ink:    #166b3f;
  --warn:      #c9721c;
  --warn-soft: rgba(201, 114, 28, 0.13);
  --warn-ink:  #97530f;
  --bad:       #d1453e;
  --bad-soft:  rgba(209, 69, 62, 0.13);
  --bad-ink:   #a3302a;
  --info:      #2f6fbb;
  --info-soft: rgba(47, 111, 187, 0.13);
  --info-ink:  #204f89;

  --mix: #ffffff;

  --grad:       linear-gradient(135deg, #ffd23f, #f5b400);
  --grad-hover: linear-gradient(135deg, #ffdd6a, #d69a00);

  --sans:    "Nunito", ui-sans-serif, system-ui, sans-serif;
  --display: "Outfit", var(--sans);
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 14px;
  --r-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(30, 26, 15, 0.05), 0 4px 14px rgba(30, 26, 15, 0.05);
  --shadow-md: 0 4px 12px rgba(30, 26, 15, 0.07), 0 12px 32px rgba(30, 26, 15, 0.06);
  --shadow-lg: 0 12px 36px rgba(30, 26, 15, 0.12), 0 28px 64px rgba(30, 26, 15, 0.09);
  --glow-accent: 0 6px 18px rgba(245, 180, 0, 0.32);

  --content: 920px;
  --content-wide: 1280px;

  /* The "tb." brand stamp is always near-black, in both themes — it's
     the studio's own mark, not a themed surface. */
  --brand-mark: #161512;
}

html { color-scheme: light; }

html[data-theme="dark"] {
  color-scheme: dark;

  --bg:        #12100c;
  --bg-deep:   #0b0a08;
  --bg-elev:   #1a1712;
  --surface:   #1a1712;
  --surface-2: #201c15;
  --line:      rgba(240, 233, 216, 0.10);
  --line-soft: rgba(240, 233, 216, 0.06);
  --hairline-strong: rgba(240, 233, 216, 0.16);

  --ink:       #f0e9d8;
  --ink-2:     #c7bfa9;
  --ink-mute:  #8a8371;
  --ink-faint: #54503f;

  --accent:        #ffd23f;
  --accent-deep:   #f5b400;
  --accent-soft:   rgba(255, 210, 63, 0.16);
  --accent-ink:    #1c1a15;

  --ok:        #6fcf8e;
  --ok-soft:   rgba(111, 207, 142, 0.13);
  --ok-ink:    #9ae0b2;
  --warn:      #e0a655;
  --warn-soft: rgba(224, 166, 85, 0.13);
  --warn-ink:  #f0c988;
  --bad:       #e2726a;
  --bad-soft:  rgba(226, 114, 106, 0.13);
  --bad-ink:   #f2a099;
  --info:      #7aa8e0;
  --info-soft: rgba(122, 168, 224, 0.13);
  --info-ink:  #aecaf0;

  --mix: #201c15;

  /* Pure black, not the light theme's #161512 — that value nearly
     disappears against dark surfaces (#1a1712/#12100c). */
  --brand-mark: #000000;

  --grad:       linear-gradient(135deg, #ffd23f, #f5b400);
  --grad-hover: linear-gradient(135deg, #ffe27a, #ffc11a);

  --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55), 0 8px 20px rgba(0, 0, 0, 0.40);
  --glow-accent: 0 6px 18px rgba(255, 210, 63, 0.20);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--accent-deep); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }
html[data-theme="dark"] a { color: var(--accent); }

/* Base has no wash — a reporting tool doesn't need decorative color blobs.
   Dark keeps a faint hairline grid (below) instead. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

html[data-theme="dark"] body::before {
  background:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, transparent 0, black 120px, black calc(100% - 120px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 120px, black calc(100% - 120px), transparent 100%);
}

/* ============================================================
   TOPBAR + BRAND (compact shell — no sidebar)
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 36px; height: 36px;
  border: 1px solid var(--hairline-strong);
  background: var(--brand-mark);
  border-radius: 9px;
  display: grid; place-items: center;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
}
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--display); font-weight: 800; letter-spacing: 0.01em; font-size: 14.5px; }
.brand__sub  { font-size: 11.5px; color: var(--ink-mute); font-weight: 600; letter-spacing: 0.02em; margin-top: 1px; }

/* Quiet studio signature — "tb." mark + wordmark, once per page. */
.stamp { display: flex; align-items: center; gap: 8px; }
.stamp__mark {
  width: 24px; height: 24px;
  border: 1px solid var(--hairline-strong);
  background: var(--brand-mark);
  border-radius: 6px;
  display: grid; place-items: center;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
}
.stamp__text { font-size: 11px; font-weight: 700; color: var(--ink-faint); letter-spacing: 0.02em; }

.topbar__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.topbar__nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.topbar__sep { width: 1px; height: 18px; background: var(--line); }
.topbar__actions .btn[aria-current="page"] {
  background: var(--surface-2);
  border-color: var(--hairline-strong);
  color: var(--ink);
}

/* ============================================================
   VIEW
   ============================================================ */
.view {
  position: relative;
  z-index: 1;
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 80px;
}
.view--wide { width: min(var(--content-wide), calc(100% - 32px)); }

.view__hero { margin-bottom: 22px; }
.view__title { font-family: var(--display); font-size: 28px; letter-spacing: -0.01em; font-weight: 700; margin: 0 0 4px; }
.view__desc  { color: var(--ink-2); font-size: 13.5px; font-weight: 600; margin: 0; max-width: 56ch; }

.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.01em; margin: 0 0 18px; }
.crumb a { color: var(--ink-mute); }
.crumb a:hover { color: var(--ink); text-decoration: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 120ms, border-color 120ms, transform 120ms, box-shadow 120ms, filter 120ms;
  white-space: nowrap;
  text-decoration: none;
  width: fit-content;
}
.btn:hover { background: var(--surface-2); border-color: var(--hairline-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--primary, .btn--accent {
  background: var(--grad);
  color: var(--accent-ink); border-color: transparent;
  box-shadow: var(--glow-accent);
}
.btn--primary:hover, .btn--accent:hover { background: var(--grad-hover); border-color: transparent; color: var(--accent-ink); }
.btn--ghost   { background: transparent; border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { background: var(--surface); }
.btn--danger  { background: var(--bad); color: var(--surface); border-color: transparent; }
/* The studio's own black, for the one call-to-action that should read as
   "ink on paper" rather than the gold gradient (e.g. + Add campaign). */
.btn--dark { background: var(--brand-mark); color: #fff; border-color: var(--hairline-strong); box-shadow: none; }
.btn--dark:hover { background: var(--accent-deep); color: #fff; border-color: transparent; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--sm { height: 28px; padding: 0 12px; font-size: 12px; gap: 5px; }
.btn.is-busy { pointer-events: none; }

.iconbtn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 120ms, color 120ms, transform 120ms;
}
.iconbtn:hover { background: var(--surface-2); color: var(--ink); transform: translateY(-1px); }
.iconbtn--theme { width: 36px; height: 36px; border-radius: 999px; color: var(--ink); }
.theme-icon { width: 18px; height: 18px; display: none; }
html:not([data-theme="dark"]) .theme-icon--moon { display: block; }
html[data-theme="dark"] .theme-icon--sun { display: block; }

/* ============================================================
   PANEL + TABLE
   ============================================================ */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  gap: 12px;
  flex-wrap: wrap;
}
.panel__head--stack { align-items: flex-start; }
.panel__title {
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute); margin: 0; display: flex; align-items: center; gap: 10px;
}
/* The Overview table is the product's main workspace, so its head reads
   louder than a routine panel label. */
.panel__title--loud {
  font-size: 15px; letter-spacing: normal; text-transform: none; color: var(--ink);
}
.panel__body { padding: 18px; }

.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl thead th {
  text-align: left; font-weight: 800; font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-mute); padding: 11px 18px; background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft); white-space: nowrap;
}
.tbl tbody td { padding: 13px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; color: var(--ink); font-weight: 600; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background 100ms; }
.tbl tbody tr:hover td { background: color-mix(in srgb, var(--accent) 4%, var(--mix)); }
.tbl tbody tr[data-href] { cursor: pointer; }
.tbl .name { font-weight: 800; color: var(--ink); }
.tbl .muted, .muted { color: var(--ink-mute); }
.tbl__actions { text-align: right; white-space: nowrap; }

.empty { padding: 52px 16px; text-align: center; color: var(--ink-mute); }
.empty::before { content: "🪄"; display: block; font-size: 30px; margin-bottom: 10px; }
.empty--sermons::before { content: "🎬"; }
.empty--channels::before { content: "📡"; }
.empty--brand::before { content: "🎞"; }
.empty__title { font-family: var(--display); font-size: 15px; color: var(--ink); font-weight: 700; margin: 0 0 4px; }
.empty__desc  { font-size: 13px; font-weight: 600; margin: 0; }

/* ============================================================
   PILLS
   ============================================================ */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 10px 3px 9px; border-radius: 999px;
  background: var(--bg-deep); color: var(--ink-2); border: 1px solid transparent;
  font-family: var(--sans); white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); }
.pill--ok::before, .pill--warn::before, .pill--bad::before, .pill--info::before, .pill--accent::before {
  background: currentColor;
}
.pill--ok     { color: var(--ok-ink);      background: var(--ok-soft); }
.pill--warn   { color: var(--warn-ink);    background: var(--warn-soft); }
.pill--bad    { color: var(--bad-ink);     background: var(--bad-soft); }
.pill--info   { color: var(--info-ink);    background: var(--info-soft); }
.pill--accent { color: var(--accent-deep); background: var(--accent-soft); }
/* Status pill doubling as the control that changes it. */
.pill--btn { cursor: pointer; }
.pill--btn:hover { border-color: currentColor; }
.pill--btn:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--accent-soft); }
html[data-theme="dark"] .pill--accent { color: var(--accent); }

/* ============================================================
   FORMS
   ============================================================ */
.form { display: grid; gap: 16px; }
.form .details { margin: 0; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.form .details .form__grid,
.form .details .form__row,
.form .details .check { margin-top: 14px; }
.form .details .form__row:first-child { margin-top: 0; }
.form__sticky {
  position: sticky;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 12px 0 4px;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__row { display: flex; flex-direction: column; gap: 6px; }
.form__row--full { grid-column: 1 / -1; }

.tabs { display: grid; gap: 14px; }
.tabs__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
}
.tabs__list--3 {
  grid-template-columns: repeat(3, 1fr);
}
.tabs__list--3 .tabs__tab {
  padding-left: 8px;
  padding-right: 8px;
}
.tabs__list--kit {
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 721px) {
  .tabs__list--kit { grid-template-columns: repeat(4, 1fr); }
}
.tabs__tab {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.tabs__tab:hover { color: var(--ink); }
.tabs__tab:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.tabs__tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.tabs__panel { display: grid; gap: 14px; }
.tabs__panel[hidden] { display: none; }
.lbl {
  font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 800;
  display: flex; align-items: center; gap: 6px;
}

.inp, .sel, .txt {
  width: 100%;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-sm); color: var(--ink); outline: 0;
  font-weight: 600;
  transition: border-color 120ms, box-shadow 120ms, background 120ms;
}
.inp, .sel { height: 40px; padding: 0 13px; }
.txt { padding: 10px 13px; line-height: 1.5; resize: none; overflow: hidden; }
.inp::placeholder, .txt::placeholder { color: var(--ink-faint); font-weight: 600; }
.inp:hover, .sel:hover, .txt:hover { border-color: var(--hairline-strong); }
.inp:focus, .sel:focus, .txt:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
.inp--mono  { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sel {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1 L5 5 L9 1' fill='none' stroke='%237e8299' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 32px;
}
html[data-theme="dark"] .sel {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1 L5 5 L9 1' fill='none' stroke='%23b8bcc2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

/* Custom file picker — native Choose file is unstyled and misaligned. */
.file {
  position: relative;
  width: 100%;
}
.file__input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.file__ui {
  display: flex;
  align-items: stretch;
  height: 40px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color 120ms, box-shadow 120ms, background 120ms;
}
.file:hover .file__ui { border-color: var(--hairline-strong); }
.file:focus-within .file__ui {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: var(--surface);
}
.file__btn {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 14px;
  border-right: 1.5px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}
.file:hover .file__btn { background: var(--bg-deep); }
.file__name {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  padding: 0 13px;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file__name--set { color: var(--ink-2); }

.hint {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 600;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}
.check input { width: 16px; height: 16px; accent-color: var(--accent); }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--ink-mute);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ============================================================
   JOB DETAIL
   ============================================================ */
.kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.kv dt {
  font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 800;
}
.kv dd { margin: 4px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }

.log {
  margin: 0;
  max-height: 22rem;
  overflow: auto;
  background: var(--bg-deep);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  color: var(--ink-2);
}

.banner {
  padding: 11px 14px;
  border-radius: var(--r-sm);
  margin: 0 0 16px;
  font-weight: 700;
  font-size: 13px;
}
.banner--bad { background: var(--bad-soft); color: var(--bad-ink); }
.banner--ok { background: var(--ok-soft); color: var(--ok-ink); }
.banner--warn { background: var(--warn-soft); color: var(--warn-ink); }

.section-title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  margin: 8px 0 12px;
}

.progress {
  margin: 0 0 22px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
}
.progress__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.progress__headline {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.progress__detail {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 13px;
}
.progress__pct {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-mute);
}
.progress__bar {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 18px;
}
.progress__fill {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  border-radius: inherit;
  background: var(--grad);
  transition: width 0.45s ease;
}
.progress__bar--ok .progress__fill { background: var(--ok); }
.progress__bar--bad .progress__fill { background: var(--bad); }
.progress__bar--live .progress__fill {
  background-size: 200% 100%;
  animation: progress-sheen 1.6s linear infinite;
}

@keyframes progress-sheen {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
  100% { filter: brightness(1); }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.steps__item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}
.steps__marker {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  border: 2px solid var(--hairline-strong);
  background: var(--surface);
  box-sizing: border-box;
}
.steps__title {
  display: block;
  font-weight: 800;
  font-size: 13px;
  color: var(--ink-mute);
}
.steps__detail {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.steps__item--done .steps__marker {
  border-color: var(--ok);
  background: var(--ok);
  box-shadow: inset 0 0 0 3px var(--surface);
}
.steps__item--done .steps__title { color: var(--ok-ink); }
.steps__item--current .steps__marker {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.steps__item--current .steps__title { color: var(--ink); }
.steps__item--failed .steps__marker {
  border-color: var(--bad);
  background: var(--bad);
}
.steps__item--failed .steps__title { color: var(--bad-ink); }
.steps__item--todo .steps__title { color: var(--ink-faint); }

.player-block { margin: 8px 0 8px; }
.player-block .row { margin: 12px 0 0; flex-wrap: wrap; }
.player {
  display: block;
  width: 100%;
  max-height: min(70vh, 520px);
  background: var(--bg-deep);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.player--asset { max-height: 220px; }
.player--short {
  width: auto;
  max-width: 100%;
  max-height: 420px;
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  object-fit: contain;
}

.kit { margin: 20px 0 8px; }
.kit__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.kit__head .section-title { margin-bottom: 4px; }
.clip-list {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}
.clip {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.clip__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
}
.clip__hook {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.clip__meta .row { margin-top: 10px; }
.copybox {
  margin: 10px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.copybox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
}
.copybox__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.copybox__body {
  margin: 0;
  padding: 10px 12px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
}
.player-placeholder--short {
  min-height: 220px;
  aspect-ratio: 9 / 16;
  max-height: 420px;
}
.card-img {
  display: block;
  width: 100%;
  max-width: 280px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-deep);
}
.card-img--stories { max-width: 200px; }

.plan {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}
.plan__item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.plan__item:last-child { border-bottom: 0; }
.plan__day {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.plan__title {
  margin: 0 0 4px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.plan__item .row { margin-top: 10px; }

@media (min-width: 721px) {
  .clip {
    grid-template-columns: minmax(160px, 220px) 1fr;
    align-items: start;
  }
}

.asset-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}
.asset {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.asset--active {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.asset__title {
  margin: 0 0 2px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.asset__meta .row {
  margin-top: 10px;
  flex-wrap: wrap;
}
@media (min-width: 721px) {
  .asset {
    grid-template-columns: minmax(220px, 320px) 1fr;
    align-items: start;
  }
}

.player-placeholder {
  display: grid;
  place-content: center;
  gap: 4px;
  min-height: 200px;
  padding: 24px;
  text-align: center;
  background: var(--bg-deep);
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--r-md);
}
.player-placeholder__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
}
.player-placeholder__desc {
  margin: 0;
  color: var(--ink-mute);
  font-size: 13px;
}

.details {
  margin: 18px 0 0;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}
.details__summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  color: var(--ink-2);
  list-style: none;
}
.details__summary::-webkit-details-marker { display: none; }
.details__summary::before {
  content: "▸ ";
  color: var(--ink-mute);
}
.details[open] > .details__summary::before { content: "▾ "; }
.details .kv { margin-top: 12px; margin-bottom: 0; }

.details-panel {
  overflow: hidden;
}
.details-panel__summary {
  cursor: pointer;
  list-style: none;
  width: 100%;
}
.details-panel__summary::-webkit-details-marker { display: none; }
.details-panel:not([open]) .details-panel__summary {
  border-bottom: none;
}

/* ============================================================
   UTIL
   ============================================================ */
.row { display: flex; align-items: center; gap: 10px; }
.row--wrap { flex-wrap: wrap; }
.muted { color: var(--ink-mute); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.group-blurb { margin: 0; font-size: 13px; font-weight: 600; }

.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 9;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 800;
}
.skip:focus {
  left: 12px;
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Label for controls that are only clear visually (e.g. an actions column). */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 4;
  min-width: 160px;
  display: grid;
  gap: 4px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
.menu__list .btn { width: 100%; justify-content: flex-start; }

.timeline {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}
.timeline__slot {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 140px;
  padding: 14px;
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.timeline__slot--set { border-style: solid; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline__slot--sermon { place-content: center; text-align: center; border-style: solid; }
.timeline__label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.timeline__empty { margin: 0; font-weight: 700; color: var(--ink); }
.timeline__join {
  align-self: center;
  color: var(--ink-mute);
  font-weight: 800;
}

.queue-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.queue-list__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.queue-list__item:last-child { border-bottom: 0; }
.queue-list__title { margin: 0 0 2px; font-weight: 800; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--hairline-strong); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }

@media (prefers-reduced-motion: reduce) {
  .btn, .iconbtn, .tbl tbody tr, .tbl tbody .tbl__rowactions, .tbl tbody .tbl__addcity--row { transition: none; }
  .progress__bar--live .progress__fill { animation: none; }
}

@media (max-width: 920px) {
  .topbar { padding: 12px 16px; }
  .brand__sub { display: none; }
  .view { width: calc(100% - 32px); padding: 16px 0 64px; }
  .form__grid { grid-template-columns: 1fr; }
  .panel__head,
  .kit__head { flex-direction: column; align-items: flex-start; }
  .plan__item { grid-template-columns: 1fr; gap: 6px; }
  .timeline {
    grid-template-columns: 1fr;
  }
  .timeline__join { justify-self: center; transform: rotate(90deg); }
}

/* ============================================================
   ABBITOMATOR — reporting tables + login
   ============================================================ */

.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.tbl .inp--cell {
  width: 7.5rem;
  height: 32px;
  padding: 0 8px;
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.tbl .inp--name { width: 100%; min-width: 10rem; height: 32px; padding: 0 8px; text-align: left; }
.tbl .inp--wide { width: 6.5rem; text-align: left; }
.tbl .sel { height: 32px; min-width: 6.5rem; padding: 0 28px 0 8px; background-position: right 8px center; }

/* Click-to-edit: a value reads as report text and only becomes an input once clicked. */
.tbl .cellv {
  display: inline-block;
  min-width: 2ch;
  padding: 4px 7px;
  margin: -4px -7px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: text;
}
.tbl .cellv:hover { background: var(--surface-2); border-color: var(--line); }
.tbl .cellv:focus-visible {
  outline: 0;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.tbl .is-saved { animation: cell-saved 1000ms ease-out; }
.tbl .is-invalid, .tbl .is-invalid:hover { border-color: var(--bad); background-color: var(--bad-soft); }
@keyframes cell-saved {
  from { background-color: var(--ok-soft); border-color: var(--ok); }
  to   { background-color: transparent; border-color: transparent; }
}

.tbl__row--group td { background: var(--surface-2); font-weight: 800; }
.tbl__note { font-weight: 600; font-size: 11.5px; text-transform: none; letter-spacing: 0; }
.tbl__row--total td { font-weight: 800; border-top: 1px solid var(--line); background: var(--surface-2); }
.tbl tfoot tr:hover td { background: transparent; }
.tbl tfoot .tbl__row--add td { background: var(--surface-2); border-top: 1px dashed var(--hairline-strong); }
.tbl tfoot .tbl__row--add:hover td { background: var(--surface-2); }
.tbl tfoot .tbl__row--add + .tbl__row--add td { border-top: 0; }
.tbl__toggle { margin-right: 4px; font-size: 10px; letter-spacing: 0; text-transform: none; }
.tbl__rowactions { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; }
/* Actions on every row are permanent noise, so they surface on hover or keyboard focus. */
.tbl tbody .tbl__rowactions { opacity: 0; transition: opacity 120ms; }
.tbl tbody tr:hover .tbl__rowactions,
.tbl tbody tr:focus-within .tbl__rowactions { opacity: 1; }
.tbl tbody tr.tbl__row--add .tbl__rowactions { opacity: 1; }

/* Overview: each campaign is its own tbody so cities nest as a block, not extra campaigns. */
.tbl--overview tbody.tbl__block + tbody.tbl__block tr:first-child td {
  border-top: 8px solid var(--bg);
}
.tbl--overview tbody.tbl__block--split td {
  background: color-mix(in srgb, var(--surface-2) 88%, var(--surface));
}
.tbl--overview tbody.tbl__block--split tr:hover td {
  background: color-mix(in srgb, var(--accent) 6%, var(--mix));
}
.tbl--overview tbody.tbl__block--split tr.tbl__row--parent td { font-weight: 800; }
.tbl--overview tbody.tbl__block--split td:first-child {
  box-shadow: inset 3px 0 0 var(--accent-soft);
}
.tbl--overview tbody.tbl__block--split tr.tbl__row--parent td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
}
.tbl--overview tbody.tbl__block--collapsed > tr.tbl__row--city { display: none; }
.tbl__count {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 6px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  cursor: pointer;
}
.tbl__count:hover { background: var(--surface-2); color: var(--ink-2); }
.tbl__count:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.tbl__count[aria-expanded="true"] .tbl__toggle::before { content: "▾"; }
.tbl__count[aria-expanded="false"] .tbl__toggle::before { content: "▸"; }
.tbl__rolled { font-variant-numeric: tabular-nums; cursor: default; }
.tbl__city { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.tbl__branch {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
}
.tbl__branch::before,
.tbl__branch::after {
  content: "";
  position: absolute;
  background: var(--hairline-strong);
}
.tbl__branch::before {
  left: 4px;
  top: -14px;
  width: 1px;
  height: 20px;
}
.tbl__branch::after {
  left: 4px;
  top: 6px;
  width: 8px;
  height: 1px;
}
.tbl__row--city td { color: var(--ink-2); padding-top: 8px; padding-bottom: 8px; }
.tbl__row--city td.name { font-weight: 600; }
.tbl__addcity {
  margin: 0;
  padding: 2px 4px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--accent-deep);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
html[data-theme="dark"] .tbl__addcity { color: var(--accent); }
.tbl__addcity:hover { text-decoration: underline; }
.tbl__addcity:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.tbl tbody .tbl__addcity--row { opacity: 0; transition: opacity 120ms; }
.tbl tbody tr:hover .tbl__addcity--row,
.tbl tbody tr:focus-within .tbl__addcity--row,
.tbl tbody.tbl__block:hover .tbl__addcity--row,
.tbl tbody.tbl__block:focus-within .tbl__addcity--row { opacity: 1; }
.tbl__row--add td { background: var(--surface-2); border-top: 1px dashed var(--hairline-strong); }

.iconbtn--sm { width: 26px; height: 26px; border-radius: var(--r-xs); font-size: 13px; line-height: 1; }
.iconbtn--danger:hover { background: var(--bad-soft); color: var(--bad-ink); border-color: transparent; }

.empty--weeks::before { content: "🗓"; }
.empty--overview::before { content: "📊"; }
.empty__action { margin-top: 16px; display: flex; justify-content: center; }

.stack { display: grid; gap: 18px; }

/* Auth card (login.astro): .login wraps a .panel, plus a brand header
   and footer tagline. main.view centers and grounds it on a faint dot
   grid — the one page in the app with no topbar nav to anchor against. */
main.view:has(> .login) {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.login {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding: 40px 0;
}
.login__brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.login__mark {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--grad);
  display: grid; place-items: center;
  color: var(--accent-ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  box-shadow: var(--glow-accent);
}
.login__name { margin: 0 0 4px; font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; font-size: 20px; color: var(--ink); }
.login__tagline { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ink-mute); font-style: italic; }
.login .panel { width: min(420px, 100%); text-align: left; }
.login__heading { margin: 0 0 4px; font-family: var(--display); font-size: 19px; font-weight: 800; color: var(--ink); }
.login__sub { margin: 0 0 4px; font-size: 13px; color: var(--ink-mute); font-weight: 600; }
.login__footer { margin: 0; font-size: 12px; font-weight: 600; color: var(--ink-faint); }

/* Week scope bar — the control that scopes every number on the page. */
.scopebar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.scopebar__label { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.scopebar__step { display: flex; align-items: center; gap: 6px; }
.scopebar .sel { width: auto; min-width: 8.5rem; height: 32px; }
.scopebar .inp { width: 5.5rem; height: 32px; }
.scopebar__spacer { flex: 1; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px 15px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px;
}
.kpi__head { display: flex; align-items: center; gap: 8px; }
.kpi__icon {
  width: 26px; height: 26px; flex: none; border-radius: 8px;
  background: var(--accent-soft); display: grid; place-items: center;
  color: var(--accent-deep); font-family: var(--mono); font-size: 12px; font-weight: 800;
}
.kpi__label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-mute); margin: 0; }
.kpi__value { font-family: var(--display); font-size: 21px; font-weight: 800; margin: 0; }
.kpi__delta { margin: 4px 0 0; font-size: 11.5px; font-weight: 700; color: var(--ink-mute); }
.kpi__delta--good { color: var(--ok-ink); }
.kpi__delta--bad  { color: var(--bad-ink); }
/* Trend sparkline over the last few weeks (see api /overview `history_totals`). */
.kpi__spark { display: flex; align-items: flex-end; gap: 2px; height: 22px; margin-top: auto; }
.kpi__bar { flex: 1; min-width: 2px; border-radius: 2px; background: var(--accent-soft); }
.kpi__bar--current { background: var(--accent); }

/* ============================================================
   OVERVIEW HERO — personalized greeting + week pill + side panel
   ============================================================ */
.ov-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.ov-hero__greeting { position: relative; }
.ov-hero__kicker { margin: 0 0 2px; font-size: 14px; font-weight: 700; color: var(--ink-mute); }
.ov-hero__title {
  font-family: var(--display); font-size: 32px; letter-spacing: -0.01em; font-weight: 800;
  margin: 0 0 6px; color: var(--ink); display: flex; align-items: center; gap: 8px;
}
.ov-hero__title em { color: var(--accent-deep); font-size: 22px; font-style: normal; }
.ov-hero__tagline { color: var(--ink-2); font-size: 13.5px; font-weight: 700; margin: 0 0 8px; font-style: italic; }
.ov-hero__rule { display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--grad); transform: rotate(-1deg); }

.ov-week {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.ov-week .sel { width: auto; min-width: 8.5rem; height: 32px; }
.ov-week__sep { width: 1px; height: 16px; background: var(--line); }
.ov-week__link { font-size: 13px; font-weight: 700; color: var(--accent-deep); white-space: nowrap; }

.ov-grid { display: grid; grid-template-columns: 2.6fr 1fr; gap: 14px; align-items: start; margin-bottom: 14px; }
.ov-side { display: flex; flex-direction: column; gap: 12px; }

.ov-goal {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  background: var(--ink);
  min-height: 150px;
}
/* Placeholder for a real photo — swap the gradient for a background-image here. */
.ov-goal__photo {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(245, 180, 0, 0.35), transparent 55%),
    linear-gradient(135deg, #2a2620, #14120d 70%);
}
.ov-goal__body {
  position: relative;
  z-index: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-height: 150px;
  box-sizing: border-box;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(20, 18, 14, 0.05) 0%, rgba(20, 18, 14, 0.78) 60%, rgba(20, 18, 14, 0.92) 100%);
}
.ov-goal__badge { display: flex; align-items: center; gap: 6px; }
.ov-goal__chip { width: 16px; height: 16px; background: var(--accent); border-radius: 3px; display: inline-block; transform: rotate(-8deg); }
.ov-goal__label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #f0e9d8; }
.ov-goal__quip { margin: 0; font-size: 13.5px; font-weight: 700; color: #fff; font-style: italic; line-height: 1.4; }
.ov-goal__stats { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.ov-goal__pct { font-family: var(--display); font-size: 18px; font-weight: 800; color: #fff; }
.ov-goal__of { font-size: 10.5px; color: #cfc6ae; font-weight: 700; }
.ov-goal__bar { width: 100%; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.22); overflow: hidden; }
.ov-goal__fill { display: block; height: 100%; background: var(--accent); }

.ov-insight { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 15px 16px; box-shadow: var(--shadow-sm); }
.ov-insight__head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.ov-insight__icon {
  width: 22px; height: 22px; border-radius: 7px; background: var(--accent-soft);
  display: grid; place-items: center; color: var(--accent-deep); font-size: 11px; font-weight: 800;
}
.ov-insight__label { margin: 0; font-size: 10.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-mute); }
.ov-insight__text { margin: 0 0 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); line-height: 1.5; }
.ov-insight__link { font-size: 12.5px; font-weight: 800; color: var(--accent-deep); }

.ov-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 6px; flex-wrap: wrap; }
.ov-footer__quote { margin: 0; font-size: 13px; font-style: italic; font-weight: 700; color: var(--ink-mute); }

@media (max-width: 920px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .scopebar { border-radius: var(--r-lg); }
  .ov-grid { grid-template-columns: 1fr; }
}
