/* ============================================================
   Eterna — design refinement layer (loads after app.css).
   Linear's restraint (one accent, hairlines, surface tints) ·
   Stripe's dense-data/airy-chrome split · FT's two-voice type.
   Components reference only semantic tokens (brand.css).
   ============================================================ */

/* ── Typography discipline ─────────────────────────────────── */
body {
  font-size: 14px;
  font-feature-settings: 'cv05', 'cv11';
  color: var(--ib-navy);
}
h1, h2, h3 { letter-spacing: -0.015em; font-weight: 500; }
h1 { font-size: 26px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
table, .table, .mono, [class*="tokens"], .cal__daynum {
  font-variant-numeric: tabular-nums;
}

/* ── Cards: hairline + faint lift, airy chrome ─────────────── */
.card {
  background: var(--ib-paper);
  border: 1px solid var(--ib-rule);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
}
.card .card { box-shadow: none; }
.card__title { font-family: var(--ib-sans); font-weight: 600; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 7px; }
.card__title svg { color: var(--ib-navy-60); }

/* ── Buttons: small, quiet, one loud primary per screen ────── */
.btn {
  border-radius: var(--r-control);
  font-weight: 500;
  border: 1px solid var(--ib-rule-strong);
  background: var(--ib-paper);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), transform 120ms var(--ease);
}
.btn:hover { background: var(--surface-2); border-color: var(--ib-navy-30); }
.btn:active { transform: translateY(0.5px); }
.btn--primary, .btn--navy {
  background: var(--ib-azure); border-color: var(--ib-azure); color: #fff;
}
.btn--primary:hover, .btn--navy:hover {
  background: var(--ib-azure-deep); border-color: var(--ib-azure-deep); color: #fff;
}
.btn--ghost { border-color: transparent; background: transparent; }
.btn--ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn--accent { background: var(--ib-wash); border-color: transparent; color: var(--ib-azure-deep); }
.btn--accent:hover { background: var(--ib-wash); filter: brightness(0.97); }
.btn--danger { color: var(--ib-danger); }
.btn--danger:hover { background: var(--ib-danger-wash); }
.btn[disabled] { opacity: .45; cursor: default; }

/* ── Inputs ─────────────────────────────────────────────────── */
.input, .select, .textarea {
  border: 1px solid var(--ib-rule-strong);
  border-radius: var(--r-input);
  background: var(--ib-paper);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--ib-azure);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ib-azure) 18%, transparent);
  outline: none;
}
.field > label { font-size: 12px; font-weight: 500; color: var(--ib-navy-60); }

/* ── Focus ring: identical everywhere (this alone reads “system”) ── */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--ib-azure); outline-offset: 2px; border-radius: 4px;
}

/* ── Status pills: tinted wash + dark text, never saturated fills ── */
.badge {
  border-radius: var(--r-pill);
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}
.badge--success { background: var(--ib-ok-wash); color: var(--ib-ok); }
.badge--warning { background: var(--ib-warn-wash); color: var(--ib-warn); }
.badge--danger, .badge--error { background: var(--ib-danger-wash); color: var(--ib-danger); }
.badge--info { background: var(--ib-wash); color: var(--ib-azure-deep); }
.badge--muted { background: var(--surface-2); color: var(--ib-navy-60);
  border-color: var(--ib-rule); }

/* ── Tables: horizontal hairlines only; dense data, calm frame ── */
.table th {
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ib-navy-60); border-bottom: 1px solid var(--ib-rule-strong);
}
.table td { border-bottom: 1px solid var(--ib-rule); }
.table tbody tr:hover { background: color-mix(in oklab, var(--ib-wash) 45%, transparent); }

/* ── htmx: settle transitions (≤300ms budget, transform/opacity only) ── */
#piece-body.htmx-added, #asset-body.htmx-added, #review-card-slot > .htmx-added { opacity: 0; }
#piece-body, #asset-body, #review-card-slot > * { transition: opacity var(--dur) var(--ease); }
.htmx-swapping { opacity: 0.4; }
.toast { border-radius: var(--r-card); box-shadow: var(--shadow-2); }

/* ── Sidebar: ink surface, wash-highlighted active ─────────── */
.sidebar { background: var(--ib-navy); }
.sidebar__link.is-active { background: color-mix(in oklab, #ffffff 10%, transparent); color: #fff; }
.sidebar__link:hover { color: #fff; }

/* ── Verdicts + flags ───────────────────────────────────────── */
.verdict { border-radius: var(--r-pill); font-weight: 600; }
.verdict--pass { background: var(--ib-ok-wash); color: var(--ib-ok); }
.verdict--flag { background: var(--ib-danger-wash); color: var(--ib-danger); }
.flagmark { background: var(--ib-warn-wash); border-radius: 3px; padding: 0 3px; }

/* ── Calendar events ────────────────────────────────────────── */
.cal td { transition: outline-color var(--dur) var(--ease); }
.cal__ev { border-radius: var(--r-control); }

/* ── Empty states: text + one action, never a blank div ─────── */
.empty {
  text-align: center; padding: 40px 20px; color: var(--ib-navy-60);
}
.empty h3 { font-family: var(--ib-serif); color: var(--ib-navy); margin: 8px 0 4px; }
.empty__icon {
  width: 40px; height: 40px; border-radius: 999px; background: var(--ib-wash);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ib-azure-deep);
}

/* ── Command palette (G) ────────────────────────────────────── */
.palette-backdrop {
  position: fixed; inset: 0; background: oklch(0.24 0.012 220 / 0.35);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh; z-index: 90;
}
.palette {
  width: min(560px, 92vw); background: var(--ib-paper); border-radius: var(--r-card);
  border: 1px solid var(--ib-rule); box-shadow: var(--shadow-2); overflow: hidden;
}
.palette input {
  width: 100%; border: none; padding: 14px 16px; font-size: 15px; background: transparent;
  border-bottom: 1px solid var(--ib-rule);
}
.palette input:focus { outline: none; box-shadow: none; }
.palette__list { max-height: 46vh; overflow-y: auto; padding: 6px; }
.palette__item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: var(--r-input); font-size: 13.5px; width: 100%; text-align: left;
}
.palette__item:hover, .palette__item:focus { background: var(--ib-wash); outline: none; }
.palette__kind { font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ib-navy-60); flex: none; width: 52px; }

/* ── Touch + motion accessibility ───────────────────────────── */
@media (max-width: 480px) {
  .btn { min-height: 42px; }
  .btn--sm { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── The one next step ──────────────────────────────────────────────────────
   Was a .split (space-between): explanation hard left, button hard right, and at
   any narrow width the button wrapped onto its own line looking orphaned. A grid
   keeps the label and its action together and vertically centred on each other. */
.next-step {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--ib-rule);
  border-radius: 10px;
  background: color-mix(in oklab, var(--ib-aqua, #3EC2B4) 5%, transparent);
}
.next-step__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.next-step__go { min-height: 40px; min-width: 116px; justify-content: center; }
@media (max-width: 560px) {
  .next-step { grid-template-columns: 1fr; }
  .next-step__go { width: 100%; }
}

/* Scope choices: each is a full-width target with its consequence underneath, so
   the decision is made on what it does rather than on a label alone. */
.scope-option { display: block; }
.scope-option__btn {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  width: 100%; text-align: left; cursor: pointer;
  padding: 9px 12px; border: 1px solid var(--ib-rule); border-radius: 8px;
  background: var(--ib-surface, #fff); color: inherit; font: inherit;
}
.scope-option__btn:hover { border-color: var(--ib-aqua, #3EC2B4); }
.scope-option__label { display: flex; gap: 8px; align-items: baseline; font-weight: 600; font-size: .88rem; }

/* ── Review queue (artifact card) ───────────────────────────────────── */
.review-page { max-width: 720px; margin: 0 auto; }
.review-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.review-tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 3px; border-radius: 10px; }
.review-tab {
  padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--ib-navy-60); text-decoration: none;
}
.review-tab.is-active { background: var(--ib-paper); color: var(--ib-navy); box-shadow: var(--shadow-1); }
.review-tab__n {
  display: inline-block; min-width: 1.4em; padding: 0 5px; border-radius: 999px;
  background: var(--ib-wash); color: var(--ib-azure-deep); font-size: 11px; font-weight: 700;
}
.review-keys { white-space: nowrap; }
.review-empty { text-align: center; padding: 40px 20px; }
.review-empty h3 { font-family: var(--ib-serif); margin: 8px 0 6px; }
.review-card__meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.review-card__kind { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.review-card__title { margin: 0 0 2px; font-size: 20px; }
.review-card__title a { text-decoration: none; }
.review-card__title a:hover { color: var(--ib-azure); }
.review-artifact { margin: 14px 0; }
.review-artifact__preview { max-width: 100%; }
.review-artifact__metrics { padding: 0 14px 8px; }
.review-read {
  margin: 12px 0; max-height: 320px; overflow: auto;
  background: var(--surface-2); border-radius: 10px; padding: 14px 16px;
}
.review-read__body { white-space: pre-wrap; line-height: 1.6; font-size: 14.5px; }
.review-flags { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.review-flag {
  padding: 8px 12px; border-radius: 8px; background: var(--surface-2);
  border-left: 3px solid var(--ib-warn);
}
.review-flag--block { border-left-color: var(--ib-danger); background: var(--ib-danger-wash); }
.review-verdicts { margin-top: 16px; }
.review-verdicts__row { flex-wrap: wrap; gap: 8px; }
.review-verdicts__row .btn { min-height: 44px; }
.review-verdicts__reason { align-items: flex-end; gap: 8px; margin-top: 10px; }

/* ── Asset studio (preview-first) ───────────────────────────────────── */
.studio {
  display: grid; gap: 16px;
}
@media (min-width: 980px) {
  .studio { grid-template-columns: 1fr min(340px, 34%); align-items: start; }
  .studio__aside { position: sticky; top: 72px; }
}
.studio__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.studio__main > .card { margin-top: 0; }
.studio__channel { margin-left: 8px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.studio__toggle {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit;
  display: inline-flex; align-items: center; gap: 6px;
}
.studio__copy { font-size: 15px; line-height: 1.55; }
.studio__metrics { margin-top: 4px; color: var(--ib-navy-60); }
.studio__metrics.is-over { color: var(--ib-danger); }
.studio__metrics .is-ok { color: var(--ib-ok); }
.studio__metrics .is-warn { color: var(--ib-warn); }
.studio__chips {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px;
}
.studio__chip-input { flex: 1; min-width: 140px; max-width: 260px; }
.studio__steer { margin: 8px 0; }
.studio__steer summary { cursor: pointer; margin-bottom: 6px; }
.studio__slides { gap: 10px; }
.studio__slide {
  padding: 10px 12px; border: 1px solid var(--ib-rule); border-radius: 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.studio__slide-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.studio__slide-label { display: flex; align-items: center; gap: 6px; }
.studio__slide-thumb { width: 30px; aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; }
.studio__cap-label { margin-top: 8px; display: block; }
.studio__callout {
  padding: 9px 11px; border-radius: 8px; margin-bottom: 10px; font-size: 13px;
}
.studio__callout--warn {
  border-left: 3px solid var(--ib-warn); background: var(--ib-warn-wash); color: var(--ib-warn);
}
.studio__callout--hint { background: var(--surface-2); color: var(--ib-navy-60); }
.studio__callout--info {
  border-left: 3px solid var(--ib-azure); background: var(--ib-wash);
}
.studio__warn { color: var(--ib-danger); }
.studio__visual-form { margin: 10px 0; flex-wrap: wrap; }
.studio__visual-form .select { width: auto; }
.studio__upload { margin-top: 8px; flex-wrap: wrap; }
.studio__primary-actions { margin-bottom: 10px; flex-wrap: wrap; }
.studio__reject { align-items: flex-end; gap: 6px; margin-bottom: 10px; }
.studio__compliance {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; margin-bottom: 10px; font-size: 13px;
}
.studio__sched-note { margin: 0 0 6px; }
.studio__manual-pub { margin-top: 8px; }
.studio__dry { margin-top: 8px; }

/* Pre-publish checklist: blockers loud, ok quiet */
.checklist { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.checklist-item {
  display: flex; gap: 8px; align-items: baseline; text-decoration: none;
  font-size: 12.5px; padding: 4px 0; border-radius: 4px;
}
.checklist-item--ok { color: var(--ib-ok); }
.checklist-item--block { color: var(--ib-danger); font-weight: 500; }
.checklist-item__mark { flex: none; width: 1em; text-align: center; }

/* New piece */
.new-card { max-width: 640px; }
.new-card__lead { margin-bottom: 14px; }
.new-card__checks { flex-wrap: wrap; gap: 12px; }
.new-card__check { display: inline-flex; align-items: center; gap: 6px; }

/* Board thumbs */
.pcard__thumb { margin: -4px -4px 8px; border-radius: 8px; overflow: hidden; }
.pcard__thumb img { width: 100%; height: 96px; object-fit: cover; }

/* Sidebar section label */
.sidebar__section {
  font-family: var(--ib-mono); font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(246,244,238,.4);
  padding: 14px 12px 4px;
}
.sidebar__link--sub { font-size: 13.5px; padding: 7px 12px; }

/* Mobile botnav: 5 slots + more sheet */
.botnav { align-items: stretch; }
.botnav a, .botnav__more summary {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 4px 8px; color: rgba(246,244,238,.6); font-size: 10px;
  background: none; border: 0; cursor: pointer; list-style: none;
}
.botnav a svg, .botnav__more summary svg { width: 20px; height: 20px; }
.botnav a.is-active, .botnav__more.is-active > summary { color: #fff; }
.botnav__new { color: #fff !important; }
.botnav__more { position: relative; flex: 1; }
.botnav__more summary::-webkit-details-marker { display: none; }
.botnav__sheet {
  position: absolute; bottom: calc(100% + 8px); right: 4px;
  min-width: 200px; background: var(--ib-navy); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 8px; box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 2px; z-index: 40;
}
.botnav__sheet a {
  flex: none; flex-direction: row; justify-content: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 8px; font-size: 13px; color: rgba(246,244,238,.85);
}
.botnav__sheet a:hover { background: rgba(255,255,255,.08); color: #fff; }

/* Voice exemplar row: the whole title area toggles the editor. */
.voice-title {
  display: flex; align-items: baseline; gap: 8px; flex: 1; min-width: 0;
  background: none; border: 0; padding: 0; text-align: left; cursor: pointer;
  color: inherit; font: inherit;
}
.voice-title .tiny { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sources: the evidence behind a piece, not a footnote to hunt for. */
.sources { margin-top: 8px; }
.sources > summary { cursor: pointer; list-style: none; }
.sources > summary::-webkit-details-marker { display: none; }
.sources > summary::before { content: "▸ "; }
.sources[open] > summary::before { content: "▾ "; }
.sources__list { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.sources__list li { font-size: .82rem; line-height: 1.45; }
.sources__list a { word-break: break-all; }

/* ── In-app documentation ──────────────────────────────────────────────────── */
.help-doc { max-width: 68ch; }
.help-doc .lede { font-size: 1.02rem; line-height: 1.6; color: var(--ib-ink); margin-bottom: 18px; }
.help-doc h2 { font-family: var(--ib-serif); font-size: 1.22rem; margin: 30px 0 8px;
               padding-top: 14px; border-top: 1px solid var(--ib-rule); scroll-margin-top: 70px; }
.help-doc h2:first-of-type { border-top: 0; }
.help-doc p, .help-doc li, .help-doc dd { line-height: 1.62; }
.help-doc ul, .help-doc ol { padding-left: 20px; display: flex; flex-direction: column; gap: 5px; }
.help-toc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.help-toc a { font-size: .8rem; padding: 3px 9px; border: 1px solid var(--ib-rule);
              border-radius: 999px; text-decoration: none; color: inherit; }
.help-toc a:hover { border-color: var(--ib-aqua, #3EC2B4); }
.help-steps li { margin-bottom: 3px; }
.help-dl { margin: 10px 0; }
.help-dl dt { font-weight: 600; font-size: .9rem; margin-top: 10px; }
.help-dl dd { margin: 2px 0 0 0; padding-left: 14px; border-left: 2px solid var(--ib-rule);
              font-size: .9rem; color: var(--ib-ink-70, #4a5560); }
.help-doc kbd { font-family: ui-monospace, monospace; font-size: .78rem; padding: 1px 5px;
                border: 1px solid var(--ib-rule); border-bottom-width: 2px; border-radius: 4px; }
.help-doc code { font-family: ui-monospace, monospace; font-size: .85em;
                 background: rgba(11,27,53,.05); padding: 1px 4px; border-radius: 3px; }
.help-foot { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--ib-rule);
             font-size: .84rem; color: var(--ib-ink-70, #4a5560); }

/* Provider credit outage: the pipeline cannot run at all, so this outranks the page. */

/* ============================================================
   Experience v3 — Today, path cards, editorial review, board calm
   ============================================================ */

/* Today home */
.today { max-width: 1040px; }
.today__hero {
  display: grid; gap: 20px; margin-bottom: 28px;
  padding: 8px 4px 8px;
}
@media (min-width: 800px) {
  .today__hero { grid-template-columns: 1fr auto; align-items: end; }
}
.today__greet {
  font-family: var(--ib-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ib-navy-60); margin: 0 0 6px;
}
.today__headline {
  font-family: var(--ib-serif); font-size: clamp(28px, 4vw, 36px);
  font-weight: 500; letter-spacing: -0.03em; margin: 0 0 8px; line-height: 1.15;
}
.today__sub { margin: 0; max-width: 42ch; line-height: 1.55; font-size: 15px; }
.today__stats { display: flex; gap: 10px; }
.today__stat {
  min-width: 88px; padding: 14px 16px; border-radius: 14px;
  background: var(--ib-paper); border: 1px solid var(--ib-rule);
  text-decoration: none; transition: border-color .15s, transform .12s;
}
.today__stat:hover { border-color: var(--ib-azure); transform: translateY(-1px); }
.today__stat-n {
  display: block; font-family: var(--ib-serif); font-size: 28px; font-weight: 500;
  letter-spacing: -0.03em; color: var(--ib-navy); line-height: 1;
}
.today__stat-l { font-size: 11.5px; color: var(--ib-navy-60); font-weight: 500; }
.today__grid {
  display: grid; gap: 22px;
}
@media (min-width: 900px) {
  .today__grid { grid-template-columns: 1.15fr .85fr; align-items: start; }
}
.today__colhead {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px; gap: 10px;
}
.today__colhead h3 {
  font-family: var(--ib-sans); font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ib-navy-60); margin: 0;
}
.today__list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.today-card {
  display: grid; grid-template-columns: 72px 1fr; gap: 14px;
  padding: 12px; border-radius: 14px; background: var(--ib-paper);
  border: 1px solid var(--ib-rule); text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.today-card:hover {
  border-color: color-mix(in oklab, var(--ib-azure) 45%, var(--ib-rule));
  box-shadow: var(--shadow-2);
}
.today-card__thumb {
  width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--surface-2);
}
.today-card__thumb--empty {
  display: flex; align-items: center; justify-content: center; color: var(--ib-navy-60);
}
.today-card__meta { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
.today-card__title { font-weight: 600; font-size: 14.5px; line-height: 1.3; margin-bottom: 3px; }
.today-card__excerpt { font-size: 12.5px; color: var(--ib-navy-60); line-height: 1.4; }
.today-empty {
  padding: 28px 18px; text-align: center; border-radius: 14px;
  border: 1px dashed var(--ib-rule-strong); background: color-mix(in oklab, var(--ib-paper) 70%, transparent);
}
.today-empty .btn-row { justify-content: center; margin-top: 12px; }
.today__upcoming { display: flex; flex-direction: column; gap: 6px; }
.today-up {
  display: grid; grid-template-columns: 110px 100px 1fr; gap: 8px; align-items: baseline;
  padding: 10px 12px; border-radius: 10px; background: var(--ib-paper);
  border: 1px solid var(--ib-rule); font-size: 13px; text-decoration: none;
}
.today-up:hover { border-color: var(--ib-azure); }
.today-up__when { font-variant-numeric: tabular-nums; color: var(--ib-navy-60); font-size: 12px; }
.today-up__ch { font-size: 11px; font-weight: 600; color: var(--ib-azure-deep); }
.today-up__title { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Path cards (Today + New) */
.path-cards { display: flex; flex-direction: column; gap: 10px; }
.path-card {
  display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px;
  padding: 16px 18px; border-radius: 14px; background: var(--ib-paper);
  border: 1px solid var(--ib-rule); text-decoration: none;
  transition: border-color .15s, transform .12s, box-shadow .15s;
}
.path-card:hover {
  border-color: var(--ib-azure); transform: translateY(-1px); box-shadow: var(--shadow-2);
}
.path-card--primary {
  background: linear-gradient(135deg, color-mix(in oklab, var(--ib-azure) 12%, #fff), #fff 55%);
  border-color: color-mix(in oklab, var(--ib-azure) 35%, var(--ib-rule));
}
.path-card__icon { grid-row: span 2; color: var(--ib-azure-deep); display: flex; align-items: flex-start; padding-top: 2px; }
.path-card__title { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.path-card__desc { grid-column: 2; font-size: 13px; color: var(--ib-navy-60); line-height: 1.4; }

/* New: three big paths then form */
.new-paths {
  display: grid; gap: 12px; margin-bottom: 22px;
}
@media (min-width: 720px) {
  .new-paths { grid-template-columns: repeat(3, 1fr); }
}
.new-paths .path-card { grid-template-columns: 1fr; text-align: left; min-height: 140px; }
.new-paths .path-card__icon { grid-row: auto; margin-bottom: 8px; }
.new-paths .path-card__desc { grid-column: auto; }
.new-paths .path-card.is-active {
  border-color: var(--ib-azure);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ib-azure) 18%, transparent);
}
.new-form-wrap { max-width: 640px; }

/* Channel posts on piece — magazine strip */
.channel-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px;
}
.channel-card {
  margin: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column;
  border-radius: 14px; border: 1px solid var(--ib-rule); background: var(--ib-paper);
  box-shadow: var(--shadow-1); transition: border-color .15s, box-shadow .15s;
}
.channel-card:hover { border-color: color-mix(in oklab, var(--ib-azure) 40%, var(--ib-rule)); box-shadow: var(--shadow-2); }
.channel-card__media {
  display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface-2);
}
.channel-card__media--wide { aspect-ratio: 16/9; }
.channel-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.channel-card__copy {
  font-size: 13.5px; line-height: 1.45; max-height: 5.8em; overflow: hidden;
  white-space: pre-line; color: var(--ib-navy);
}
.channel-card__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }

/* Journey driver on piece */
.journey {
  padding: 18px 20px; border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, color-mix(in oklab, var(--ib-wash) 55%, #fff) 100%);
  border: 1px solid var(--ib-rule);
  box-shadow: var(--shadow-1);
}
.journey__steps {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px;
}
.journey__steps .badge { font-size: 11px; }
.journey__next { margin-top: 4px; }

/* Board: calm density, cap visual noise */
.board { gap: 12px; }
.board__col {
  flex: 0 0 260px; background: color-mix(in oklab, var(--ib-navy) 3%, transparent);
  border: 1px solid var(--ib-rule); border-radius: 14px; padding: 10px;
}
/* Cap idea wall so the board stays scannable (full list lives in /ideas). */
.board__col[data-phase="idea"] .pcard:nth-child(n+9) { display: none; }
.pcard {
  border-radius: 12px; padding: 0; overflow: hidden;
}
.pcard__title { padding: 10px 12px 0; font-size: 13.5px; }
.pcard__meta { padding: 6px 12px 0; }
.pcard__foot { padding: 8px 12px 11px; margin-top: 0; }
.pcard__thumb { margin: 0; border-radius: 0; }
.pcard__thumb img { height: 110px; }

/* Review card — editorial reading surface */
.review-page { max-width: 720px; }
.review-card {
  padding: 22px 24px 20px;
  border-radius: 16px;
}
.review-card__title {
  font-family: var(--ib-serif); font-size: 26px; font-weight: 500;
  letter-spacing: -0.025em; line-height: 1.2;
}
.review-read, .review-artifact {
  margin: 16px 0;
}
.review-read {
  max-height: 380px; border-radius: 12px; padding: 18px 20px;
  background: #faf9f7; border: 1px solid var(--ib-rule);
}
.review-read__body {
  font-size: 15.5px; line-height: 1.65; font-family: var(--ib-serif);
  letter-spacing: -0.01em;
}
.review-flag {
  border-radius: 10px; padding: 12px 14px;
}
.review-flag--block {
  background: var(--ib-danger-wash);
  border-left: 3px solid var(--ib-danger);
}
.review-flag--infra {
  background: var(--ib-warn-wash);
  border-left: 3px solid var(--ib-warn);
  color: var(--ib-navy);
}
.review-verdicts__row .btn--primary { min-width: 140px; font-size: 15px; padding: 11px 18px; }

/* Login */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(800px 400px at 20% 0%, color-mix(in oklab, var(--ib-azure) 18%, transparent), transparent 55%),
    radial-gradient(700px 380px at 90% 100%, color-mix(in oklab, var(--ib-teal) 14%, transparent), transparent 50%),
    #1a1d22;
}
.login-card {
  width: min(420px, 100%); text-align: center; padding: 32px 28px;
  border-radius: 18px; background: #fff; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.45);
}
.login-card .eyebrow { margin: 8px 0 22px; }
.login-card .stack { text-align: left; }

/* AI alert bar */
.ai-alert {
  position: fixed; bottom: 84px; right: 16px; left: auto;
  z-index: 50; width: min(400px, calc(100vw - 32px));
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 14px; border-radius: 12px;
  background: var(--ib-surface, #fff);
  border: 1px solid color-mix(in oklab, var(--ib-warn) 45%, transparent);
  border-left: 3px solid var(--ib-warn);
  color: var(--ib-navy); font-size: 13px; line-height: 1.45;
  box-shadow: var(--shadow-2);
}
@media (min-width: 880px) { .ai-alert { bottom: 24px; } }
.ai-alert__icon { color: var(--ib-warn); flex: none; margin-top: 1px; }
.ai-alert__body { flex: 1; min-width: 0; }
.ai-alert__body b { display: block; margin-bottom: 3px; font-size: 13.5px; }
.ai-alert__detail { display: block; color: var(--ib-navy-60); }
.ai-alert__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ai-alert__close {
  flex: none; background: none; border: 0; cursor: pointer; padding: 2px;
  color: var(--ib-navy-60); border-radius: 6px; line-height: 0;
}
.ai-alert__close:hover { background: rgba(20,32,50,.08); color: var(--ib-navy); }

/* Studio copy reading */
.studio__preview .li-preview { max-width: 100%; box-shadow: var(--shadow-1); }
.studio__copy, .textarea.studio__copy {
  font-family: var(--ib-serif); font-size: 16px; line-height: 1.6; letter-spacing: -0.01em;
}

/* ── Shipping page ───────────────────────────────────────────── */
.ship-banner {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 16px 18px; border-radius: 14px; margin-bottom: 20px;
  border: 1px solid var(--ib-rule);
}
.ship-banner--dry {
  background: linear-gradient(135deg, color-mix(in oklab, var(--ib-azure) 10%, #fff), #fff);
  border-color: color-mix(in oklab, var(--ib-azure) 30%, var(--ib-rule));
}
.ship-banner__text { margin: 4px 0 0; font-size: 14px; color: var(--ib-navy-60); max-width: 52ch; line-height: 1.45; }
.ship-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px;
}
@media (max-width: 640px) { .ship-stats { grid-template-columns: repeat(2, 1fr); } }
.ship-stat {
  padding: 14px 16px; border-radius: 14px; background: var(--ib-paper);
  border: 1px solid var(--ib-rule);
}
.ship-stat--alert { border-color: color-mix(in oklab, var(--ib-danger) 35%, var(--ib-rule)); }
.ship-stat__n {
  display: block; font-family: var(--ib-serif); font-size: 26px; font-weight: 500;
  letter-spacing: -0.03em; line-height: 1;
}
.ship-stat__l { font-size: 11.5px; color: var(--ib-navy-60); font-weight: 500; }
.ship-section { margin-bottom: 28px; }
.ship-section__head { margin-bottom: 12px; }
.ship-section__head h2 {
  font-family: var(--ib-serif); font-size: 22px; font-weight: 500;
  letter-spacing: -0.02em; margin: 0 0 4px;
}
.ship-list { display: flex; flex-direction: column; gap: 8px; }
.ship-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 12px; background: var(--ib-paper);
  border: 1px solid var(--ib-rule);
}
.ship-row--error { border-color: color-mix(in oklab, var(--ib-danger) 30%, var(--ib-rule));
  background: color-mix(in oklab, var(--ib-danger-wash) 50%, #fff); }
.ship-row__thumb {
  width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none;
  background: var(--surface-2);
}
.ship-row__thumb--empty {
  display: flex; align-items: center; justify-content: center; color: var(--ib-navy-60);
}
.ship-row__main { flex: 1; min-width: 180px; }
.ship-row__title { font-weight: 600; font-size: 14.5px; margin-bottom: 4px; }
.ship-row__title a { text-decoration: none; }
.ship-row__title a:hover { color: var(--ib-azure); }
.ship-row__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ship-row__err { margin-top: 4px; font-size: 12.5px; color: var(--ib-danger); }
.ship-row__actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ship-empty {
  padding: 20px; border-radius: 12px; border: 1px dashed var(--ib-rule-strong);
  color: var(--ib-navy-60); font-size: 14px; text-align: center;
}
.ship-log { margin-top: 14px; }
.ship-btn { font-size: 15px; padding: 12px 18px; min-height: 46px; gap: 8px; }

/* Create flow strip on Today / New */
.flow-strip {
  display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center;
  margin: 0 0 18px; padding: 10px 14px; border-radius: 12px;
  background: var(--ib-paper); border: 1px solid var(--ib-rule);
  font-size: 13px; color: var(--ib-navy-60);
}
.flow-strip b { color: var(--ib-navy); font-weight: 600; }
.flow-strip .sep { opacity: .4; margin: 0 2px; }

/* ── Two-step channel state: the words, then the artwork ──────────────────── */
.step-line { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.step-line__item {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; line-height: 1; padding: 4px 8px; border-radius: 999px;
  background: var(--ib-sage-08, rgba(120,140,120,.10));
  color: var(--ib-navy-60); border: 1px solid transparent; white-space: nowrap;
}
.step-line__item svg { width: 12px; height: 12px; }
.step-line__item.is-done { color: var(--ib-success, #2f6b46); background: rgba(47,107,70,.10); }
.step-line__item.is-warn { color: var(--ib-warning, #8a6116); background: rgba(138,97,22,.12); }
.step-line__item.is-skip { opacity: .65; }

/* ── Radio choice cards (Create: how it should be written) ────────────────── */
.choice-list { display: grid; gap: 10px; }
.choice {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  padding: 12px 14px; border: 1px solid var(--ib-line, rgba(20,32,50,.14));
  border-radius: 12px; background: var(--ib-surface, #fff); transition: border-color .12s, background .12s;
}
.choice:hover { border-color: var(--ib-navy-40, rgba(20,32,50,.34)); }
.choice input { margin-top: 3px; flex: none; }
.choice:has(input:checked) {
  border-color: var(--ib-navy, #14202f);
  background: var(--ib-sage-06, rgba(120,140,120,.07));
}
.choice__body { display: block; }
.choice__title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14.5px; margin-bottom: 3px;
}
.choice__desc { display: block; font-size: 13px; line-height: 1.5; color: var(--ib-navy-60); }
