/* Dailies · Flow 1 styles — layered on top of bsp-tokens.css
   Mobile-first, responsive to any viewport.
   ============================================================ */

* { box-sizing: border-box; }

/* ---------- Page chrome ---------- */
html, body {
  margin: 0; padding: 0;
  background: var(--bsp-navy);
  font-family: var(--bsp-font-body);
  color: var(--bsp-fg);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Page-wide film grain (single layer, used everywhere) */
body::before {
  content: ""; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: var(--grain-opacity, 0.05);
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 200;
}

.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; justify-content: center; align-items: stretch;
  background:
    radial-gradient(ellipse 90% 70% at 50% 30%, rgba(255,210,0,0.025), transparent 70%),
    var(--bsp-navy);
  position: relative;
}

/* ---------- The frame (the column/canvas) ---------- */
.frame {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background: var(--bsp-navy);
  overflow: hidden;
  display: flex; flex-direction: column;
}

/* ===================== TABLET / NARROW DESKTOP =====================
   600–1099px: still single-column, just capped and centered. */
@media (min-width: 600px) and (max-width: 1099px) {
  .stage { padding: 32px 24px; }
  .frame {
    max-width: 540px;
    height: calc(100vh - 64px);
    max-height: 940px;
    min-height: 720px;
    border: 1px solid var(--bsp-border);
    box-shadow: var(--bsp-shadow-lift);
    overflow: visible;
  }
}

/* ===================== FULL DESKTOP =====================
   1100px+: two-column. Left = sticky cinematic slate (wordmark + summary).
   Right = scrolling feed. */
@media (min-width: 1100px) {
  html, body { overflow: hidden; height: 100vh; }
  .stage {
    padding: 0;
    align-items: stretch;
    background:
      radial-gradient(ellipse 60% 80% at 20% 30%, rgba(255,210,0,0.05), transparent 65%),
      var(--bsp-navy);
  }
  .frame {
    width: 100%;
    max-width: var(--app-max);
    height: 100vh;
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 460px 1fr;
    grid-template-rows: 1fr;
    overflow: hidden;
  }
  /* Left panel becomes the sticky slate */
  .frame > .scroll {
    grid-column: 2;
    grid-row: 1;
    border-left: 1px solid var(--bsp-border);
    height: 100vh;
    padding-bottom: 40px;
  }
  .frame > .desktop-slate {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    padding: 56px 40px 32px;
    position: relative;
    overflow-y: auto;       /* scroll on short viewports so the foot (End Session) stays reachable */
    overflow-x: hidden;
    scrollbar-width: thin;
  }
  /* Hide the in-scroll slate, show the desktop-slate */
  .frame .scroll > .slate { display: none; }
  .frame .scroll > .feed-eyebrow { padding: 32px 40px 16px; }
  .frame .scroll > .feed,
  .frame .scroll > .empty,
  .frame .scroll > .endline { padding-left: 24px; padding-right: 24px; }
  /* Cards wider on desktop */
  .card.indexcard { padding: 18px 24px; }
  .card.indexcard .thumb { width: 96px; height: 96px; }
  .card.indexcard .thumb-mono { font-size: 38px; }
  .card.indexcard .blurb { font-size: 14.5px; }
  .card.storyboard { margin: 0 24px 16px; }
  .card.marquee .thumb { aspect-ratio: 16/9; }
  .minihead { display: none; }
  /* Hide the mobile tap hint on desktop — it collides with the slate footer */
  .tap-hint { display: none !important; }
  .toast { left: auto; right: 24px; width: 360px; }
  /* Reveal frame brackets at outer corners of the whole frame */
  .frame-bracket { display: block; }
  .frame-bracket.tl { top: 18px;     left: 18px;    }
  .frame-bracket.br { bottom: 18px;  right: 18px;   }

  /* ============= DESKTOP REVIEW OVERLAY =============
     3 rows: head / body / feedback bar. */
  .review {
    display: grid;
    grid-template-rows: auto 1fr auto;
  }
  .review-head { padding: 28px 40px 18px; }
  .review-body {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    padding: 16px 56px 24px;
    overflow: hidden;
    align-items: stretch;
    min-height: 0;
  }
  .review .asset {
    aspect-ratio: auto;
    height: 100%;
    width: 100%;
    margin-bottom: 0;
    min-height: 0;
    max-height: none;
  }
  .review .asset img {
    object-fit: contain;
    background: #f5ebd6;
  }
  /* Right-panel context block */
  .review .context-col {
    display: flex; flex-direction: column;
    overflow-y: auto;
    padding-right: 8px;
    gap: 16px;
    min-height: 0;
  }
  .review h1 {
    font-size: 48px;
    line-height: 0.95;
    margin: 0 0 4px;
  }
  .review .meta-line {
    margin-bottom: 8px;
  }
  .review .request-blurb {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 4px;
  }
  .review .prior {
    border-top: 1px solid var(--bsp-border);
    padding-top: 20px;
    margin-top: 8px;
  }
  .review .prior .quote {
    font-size: 15.5px;
    line-height: 1.6;
  }
  /* Desktop: feedback bar centered with breathing room */
  .feedback-bar {
    padding: 18px 56px 28px;
  }
  .fb-inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 12px 12px 12px 18px;
  }
  .fb-input { font-size: 16px; }
  .fb-mic { width: 42px; height: 42px; }
  .fb-send { width: 42px; height: 42px; }
  /* Desktop validation layout */
  .review.validating .review-body {
    grid-template-columns: 320px 1fr;
    gap: 56px;
    padding: 16px 56px 24px;
  }
  .v-aside {
    align-self: start;
    position: sticky;
    top: 0;
  }
  .v-asset-mini { aspect-ratio: 4/5; }
  .validation { gap: 28px; padding-right: 12px; }
  .v-headline { font-size: 44px; }
  .v-prose { font-size: 15px; }
  .v-action-text { font-size: 16px; }
  .agent-bar { padding: 14px 56px 24px; }
  .agent-inner { max-width: 920px; margin: 0 auto; padding: 12px 12px 12px 18px; }
  .agent-eyebrow { max-width: 920px; margin: 0 auto; }
  .agent-input { font-size: 16px; }
  .agent-mic, .agent-send { width: 42px; height: 42px; }
  /* When review is open, fade the frame brackets to stay subtle */
  .frame:has(.review.open) .frame-bracket { opacity: 0.4; }
  /* When recording, kill the brackets entirely — eyes on asset */
  .frame:has(.review[data-state="recording"]) .frame-bracket { opacity: 0; }
  }

/* The desktop-slate is hidden on mobile, shown on desktop */
.desktop-slate { display: none; }
@media (min-width: 1100px) { .desktop-slate { display: flex; } }


/* ---------- Frame brackets ---------- */
.frame-bracket {
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid var(--bsp-yellow);
  z-index: 5; pointer-events: none;
  display: none;
}
.frame-bracket.tl { top: -10px; left: -10px; border-right: none; border-bottom: none; }
.frame-bracket.br { bottom: -10px; right: -10px; border-left: none; border-top: none; }
@media (min-width: 600px) and (max-width: 1099px) { .frame-bracket { display: block; } }

/* ---------- Desktop slate (left panel) ---------- */
.desktop-slate .slate-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
}
.desktop-slate .slate-eyebrow .dot {
  width: 6px; height: 6px; background: var(--bsp-yellow); border-radius: 50%;
  box-shadow: 0 0 12px rgba(255,210,0,0.6);
  animation: pulse 2.4s ease-in-out infinite;
}
.desktop-slate .slate-eyebrow .lbl {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--bsp-fg-dim);
  white-space: nowrap;
}
.desktop-slate .slate-eyebrow .session {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--bsp-yellow);
  margin-left: auto;
  white-space: nowrap;
}
.desktop-slate .wordmark {
  font-family: var(--bsp-font-display);
  font-size: 88px; line-height: 0.88;
  letter-spacing: 0.02em;
  color: var(--bsp-yellow);
  margin-bottom: 0;
}
.desktop-slate .wordmark-logo {
  display: block;
  width: 300px; max-width: 100%; height: auto;
  margin-left: -14px; /* optical: pull the sun mark toward the slate edge */
}
.desktop-slate .subtitle {
  display: block;
  font-family: var(--bsp-font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--bsp-fg-dim);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 12px;
  line-height: 1.5;
}
.desktop-slate .ds-rule {
  height: 1px; background: var(--bsp-border);
  margin: 36px 0 28px;
}
.desktop-slate .ds-stat {
  display: flex; align-items: baseline; gap: 20px;
  margin-bottom: 28px;
}
.desktop-slate .ds-stat .n {
  font-family: var(--bsp-font-display);
  font-size: 168px; line-height: 0.76;
  color: var(--bsp-yellow);
  letter-spacing: -0.02em;
}
.desktop-slate .ds-stat .l {
  font-family: var(--bsp-font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--bsp-fg-dim);
  line-height: 1.5;
  white-space: nowrap;
}
.desktop-slate .ds-stat .l strong {
  display: block;
  color: var(--bsp-fg);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.22em;
  margin-bottom: 8px;
  white-space: nowrap;
}
.desktop-slate .ds-breakdown {
  display: flex; flex-direction: column; gap: 14px;
  border-top: 1px solid var(--bsp-border);
  padding-top: 22px;
}
.desktop-slate .ds-bd-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
}
.desktop-slate .ds-bd-row .l {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--bsp-fg-muted);
  white-space: nowrap;
}
.desktop-slate .ds-bd-row .n {
  font-family: var(--bsp-font-display);
  font-size: 26px; line-height: 1;
  color: var(--bsp-fg);
}
.desktop-slate .ds-foot {
  margin-top: auto;
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.desktop-slate .ds-foot .profile {
  display: flex; align-items: center; gap: 10px;
}
.desktop-slate .ds-foot .profile-dot {
  width: 32px; height: 32px;
  border: 1px solid var(--bsp-border-hi);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--bsp-font-display);
  font-size: 14px; color: var(--bsp-yellow);
  letter-spacing: 0.02em;
}
.desktop-slate .ds-foot .who-text {
  font-size: 11px; color: var(--bsp-fg-muted);
  letter-spacing: 0.04em;
}
.desktop-slate .ds-foot .who-text strong {
  display: block; color: var(--bsp-fg); font-weight: 500;
  font-size: 12px;
}
.desktop-slate .ds-foot .endbtn {
  font-family: var(--bsp-font-body);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--bsp-fg-dim);
  background: none; border: none; cursor: pointer;
  padding: 6px 0;
  transition: color .25s ease;
}
.desktop-slate .ds-foot .endbtn:hover { color: var(--bsp-yellow); }
.minihead {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 18px 12px;
  background: linear-gradient(to bottom, rgba(var(--bsp-navy-rgb),0.96) 0%, rgba(var(--bsp-navy-rgb),0.85) 70%, transparent 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity .35s var(--bsp-ease-out), transform .35s var(--bsp-ease-out);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
}
.minihead.shown { opacity: 1; transform: translateY(0); pointer-events: auto; }

.minihead-mark {
  font-family: var(--bsp-font-display);
  color: var(--bsp-yellow);
  font-size: 22px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.minihead-logo { display: block; height: 22px; width: auto; }
.minihead-meta {
  font-size: 10px;
  font-weight: 600;
  color: var(--bsp-fg-dim);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Scroll body ---------- */
.scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 40px);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.scroll::-webkit-scrollbar { display: none; }

/* ---------- The slate (hero summary) ---------- */
.slate {
  padding: calc(env(safe-area-inset-top, 0px) + 28px) 20px 20px;
  position: relative;
}

.slate-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
.slate-eyebrow .dot {
  width: 6px; height: 6px; background: var(--bsp-yellow); border-radius: 50%;
  box-shadow: 0 0 12px rgba(255,210,0,0.6);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
.slate-eyebrow .lbl {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--bsp-fg-dim);
  white-space: nowrap;
}
.slate-eyebrow .session {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--bsp-yellow);
  margin-left: auto;
  white-space: nowrap;
}

.wordmark {
  font-family: var(--bsp-font-display);
  font-size: 56px; line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--bsp-yellow);
  margin-bottom: 8px;
}
.wordmark-logo {
  display: block;
  width: 220px; max-width: 100%; height: auto;
  margin-left: -10px;
}
.wordmark .subtitle {
  display: block;
  font-family: var(--bsp-font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--bsp-fg-dim);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 8px;
  line-height: 1.4;
}

/* Summary block — V1 "slate" */
.summary {
  margin: 28px 0 12px;
  padding: 18px 18px 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--bsp-border);
  position: relative;
  overflow: hidden;
}
.summary::before {
  /* tiny gold rule top-left */
  content: ""; position: absolute; top: 0; left: 0;
  width: 28px; height: 2px; background: var(--bsp-yellow);
}
.summary-top { display: flex; align-items: baseline; gap: 14px; }
.summary-num {
  font-family: var(--bsp-font-display);
  font-size: 88px; line-height: 0.78;
  color: var(--bsp-yellow);
  letter-spacing: -0.01em;
}
.summary-of {
  font-family: var(--bsp-font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--bsp-fg-dim);
  line-height: 1.4;
}
.summary-of strong {
  display: block;
  color: var(--bsp-fg);
  font-weight: 600;
}
.summary-breakdown {
  display: flex; flex-wrap: wrap; gap: 0;
  margin-top: 18px;
  border-top: 1px solid var(--bsp-border);
  padding-top: 14px;
}
.bd-cell {
  flex: 1; min-width: 0;
  padding-right: 12px;
  border-right: 1px solid var(--bsp-border);
}
.bd-cell:last-child { border-right: none; padding-right: 0; }
.bd-cell:not(:first-child) { padding-left: 12px; }
.bd-cell .n {
  font-family: var(--bsp-font-display);
  font-size: 22px; line-height: 1;
  color: var(--bsp-fg);
}
.bd-cell .l {
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bsp-fg-dim);
  margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Summary V2 — "strip" variant */
.summary.strip {
  display: flex; align-items: center; gap: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--bsp-border);
  border-bottom: 1px solid var(--bsp-border);
}
.summary.strip::before { display: none; }
.summary.strip .strip-num {
  padding: 14px 16px 14px 0;
  border-right: 1px solid var(--bsp-border);
  display: flex; align-items: baseline; gap: 8px;
}
.summary.strip .strip-num .n {
  font-family: var(--bsp-font-display);
  font-size: 44px; line-height: 0.85;
  color: var(--bsp-yellow);
}
.summary.strip .strip-num .l {
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--bsp-fg-dim);
}
.summary.strip .strip-breakdown {
  flex: 1; display: flex; padding: 12px 0 12px 14px;
  gap: 14px; flex-wrap: wrap;
}
.summary.strip .strip-cell {
  display: flex; flex-direction: column; gap: 2px;
}
.summary.strip .strip-cell .n {
  font-family: var(--bsp-font-display); font-size: 18px; color: var(--bsp-fg);
}
.summary.strip .strip-cell .l {
  font-size: 9px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bsp-fg-dim);
}

/* ---------- Feed list ---------- */
.feed {
  margin-top: 18px;
  display: flex; flex-direction: column;
}

.feed-eyebrow {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 20px 14px;
}
.feed-eyebrow .lbl {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--bsp-fg-dim);
  white-space: nowrap;
}
.feed-eyebrow .rule {
  flex: 1; height: 1px; background: var(--bsp-border);
}

/* ===================================================================
   CARD LAYOUTS
   =================================================================== */

.card {
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .35s var(--bsp-ease-out), transform .35s var(--bsp-ease-out), max-height .4s var(--bsp-ease-out), margin .4s var(--bsp-ease-out);
}
.card.leaving {
  opacity: 0;
  transform: translateX(40px);
  max-height: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Shared bits */
.author-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  color: var(--bsp-fg-muted);
}
.author-row .who {
  font-weight: 500;
  color: var(--bsp-fg);
}
.author-row .dot {
  width: 2px; height: 2px; background: var(--bsp-fg-dim); border-radius: 50%;
}
.author-row .when {
  color: var(--bsp-fg-dim);
  font-size: 11px;
}

.ip-tag {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(255, 210, 0, 0.08);
  border: 1px solid var(--bsp-border-gold);
  color: var(--bsp-yellow);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  white-space: nowrap;
}

.effort-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--bsp-border);
  color: var(--bsp-fg);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.effort-tag .icon { display: inline-flex; }

/* ---------- Asset title (higher-level name) + episode tag ---------- */
.asset-title {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px;
  line-height: 1.2;
}
.asset-title .at-type {
  font-size: 15.5px; font-weight: 600;
  color: var(--bsp-fg);
  letter-spacing: -0.01em;
}
.asset-title .at-version {
  font-family: var(--bsp-font-mono);
  font-size: 11.5px; font-weight: 400;
  color: var(--bsp-fg-muted);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.asset-title .at-version::before {
  content: "\00b7"; margin-right: 6px;
  color: var(--bsp-fg-dim);
}

/* Episode / chapter chip — neutral, distinct from the gold IP tag. */
.ep-tag {
  display: inline-flex; align-items: center;
  padding: 3px 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--bsp-border-hi);
  color: var(--bsp-fg-muted);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  white-space: nowrap;
}

/* Thumbnail container — universal */
.thumb {
  position: relative;
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bsp-navy-light), var(--bsp-navy));
  overflow: hidden;
  border: 1px solid var(--bsp-border);
  display: flex; align-items: center; justify-content: center;
}
.thumb::before {
  /* film strip top sprockets — applied only on video */
  content: "";
}
.thumb.video::before, .thumb.video::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 7px;
  background-image: repeating-linear-gradient(to right, transparent 0, transparent 6px, rgba(0,0,0,0.55) 6px, rgba(0,0,0,0.55) 12px);
  z-index: 2;
}
.thumb.video::before { top: 0; }
.thumb.video::after { bottom: 0; }

.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Monogram placeholder thumbs */
.thumb-mono {
  font-family: var(--bsp-font-display);
  color: rgba(255, 210, 0, 0.18);
  letter-spacing: 0.04em;
  font-size: 64px; line-height: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}
.thumb-mono.small { font-size: 28px; }
.thumb-bg-bucket { background: radial-gradient(ellipse at 30% 30%, #1a2a48 0%, var(--bsp-navy) 80%); }
.thumb-bg-speed { background: radial-gradient(ellipse at 70% 50%, #2a1414 0%, var(--bsp-navy) 80%); }
.thumb-bg-misc { background: linear-gradient(135deg, var(--bsp-navy-light) 0%, var(--bsp-navy) 100%); }
.thumb-bg-eloise { background: linear-gradient(135deg, #f5ebd6 0%, #e8d8b8 100%); }
.thumb-bg-eloise .thumb-mono { color: rgba(80, 50, 20, 0.85); }

/* Play-icon for videos */
.play-mark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--bsp-yellow);
  color: var(--bsp-yellow);
  z-index: 3;
  background: rgba(var(--bsp-navy-rgb),0.55);
  backdrop-filter: blur(2px);
}


/* Audio thumbs darken the artwork so waveform + control read at feed density. */
.thumb.audio::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(11, 16, 21, 0.78);
  pointer-events: none;
}
.thumb.audio .thumb-mono { z-index: 0; }
.thumb.audio .play-mark {
  z-index: 3;
  background: var(--bsp-yellow);
  border-color: var(--bsp-yellow);
  color: var(--bsp-bg-deep);
  backdrop-filter: none;
  border-radius: 0;
}
/* Audio card: a waveform strip along the foot + the shared play affordance */
.thumb.audio .thumb-wave {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  height: 28px; display: flex; align-items: flex-end; justify-content: center; gap: 2px;
  padding: 0 8px 7px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
}
.thumb.audio .thumb-wave i { width: 2px; height: 8px; border-radius: 999px; background: var(--bsp-yellow); opacity: 0.9; }
.thumb.audio .thumb-wave i:nth-child(2n) { height: 14px; }
.thumb.audio .thumb-wave i:nth-child(3n) { height: 20px; }
.thumb.audio .thumb-wave i:nth-child(5n) { height: 11px; }
.thumb.audio .thumb-wave i:nth-child(7n) { height: 24px; }
.card.indexcard .thumb.audio .thumb-wave { height: 22px; padding-bottom: 5px; }
.card.indexcard .thumb.audio .thumb-wave i:nth-child(7n) { height: 18px; }

/* Request (text-only) badge instead of thumb */
.thumb-request {
  background: var(--bsp-bg-card);
  border-style: dashed;
  border-color: var(--bsp-border-hi);
  color: var(--bsp-fg-dim);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: flex; flex-direction: column; gap: 6px;
  justify-content: center; align-items: center;
}
.thumb-request svg {
  width: 32px; height: 32px; stroke: var(--bsp-yellow); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.75;
}

/* =================== Layout A: Storyboard =================== */
.card.storyboard {
  margin: 0 16px 16px;
  background: var(--bsp-bg-card);
  border: 1px solid var(--bsp-border);
  padding: 0;
  overflow: hidden;
}
.card.storyboard::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--bsp-yellow);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--bsp-ease-out);
  z-index: 5;
}
.card.storyboard:hover,
.card.storyboard:active { background: var(--bsp-bg-card-hi); }
.card.storyboard:hover::before,
.card.storyboard:active::before { transform: scaleX(1); }

.storyboard .thumb { aspect-ratio: 16/9; border: none; border-bottom: 1px solid var(--bsp-border); }
.storyboard .meta-overlay {
  position: absolute; bottom: 8px; left: 8px; right: 8px;
  display: flex; justify-content: space-between; align-items: flex-end;
  z-index: 4;
}
.storyboard .caption {
  padding: 14px 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.storyboard .caption .blurb {
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--bsp-fg);
  letter-spacing: -0.005em;
}
.storyboard .caption .meta {
  display: flex; align-items: center; gap: 8px;
}
.storyboard .caption .meta-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.storyboard .footline {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 2px;
}

/* =================== Layout B: Index Card =================== */
.card.indexcard {
  margin: 0;
  padding: 0;
  display: flex; flex-direction: column;
  border-bottom: 1px solid var(--bsp-border);
  background: transparent;
}
.card.indexcard .ix-main {
  display: flex; gap: 12px; align-items: stretch;
  padding: 14px 18px 14px 16px;
}
.card.indexcard:hover,
.card.indexcard:active { background: var(--bsp-bg-card-hi); }
.card.indexcard:hover .ix-main,
.card.indexcard:active .ix-main { padding-left: 20px; }
.card.indexcard .thumb {
  width: 76px; height: 76px;
  aspect-ratio: 1/1;
  flex-shrink: 0;
}
.card.indexcard .thumb-mono { font-size: 32px; }
.card.indexcard .thumb-request { padding: 6px; }
.card.indexcard .thumb-request svg { width: 22px; height: 22px; }
.card.indexcard .thumb-request span { font-size: 8px; letter-spacing: 0.24em; }
.card.indexcard .play-mark { width: 30px; height: 30px; border-width: 1.25px; }
.card.indexcard .play-mark svg { width: 12px; height: 12px; }
.card.indexcard .body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 6px;
}
.card.indexcard .top-row {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.card.indexcard .blurb {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.35;
  color: var(--bsp-fg-dim);
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card.indexcard .bottom-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.card.indexcard .who-line {
  font-size: 12px;
  color: var(--bsp-fg-dim);
  letter-spacing: 0.01em;
}
.card.indexcard .who-line strong {
  color: var(--bsp-fg-muted); font-weight: 500;
}

/* Asset-type banner — full-width gold label at the top of the card. Raw text +
   a hairline rule (the separator); never a chip, so it reads as a banner. */
.card-type {
  display: flex; align-items: baseline; gap: 7px;
  padding: 9px 14px 8px;
  border-bottom: 1px solid var(--bsp-border);
  color: var(--bsp-yellow);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.card-type .ct-sep { color: rgba(255, 210, 0, 0.45); font-weight: 600; }
.card-type .ct-meta {
  color: rgba(255, 210, 0, 0.66); font-weight: 600;
  letter-spacing: 0.12em; font-variant-numeric: tabular-nums;
}

/* =================== Layout C: Marquee =================== */
.card.marquee {
  margin: 0 0 12px;
  position: relative;
  overflow: hidden;
}
.card.marquee .thumb {
  aspect-ratio: 4/5;
  border-left: none; border-right: none;
}
.card.marquee .thumb-mono { font-size: 100px; }
.card.marquee .thumb-request {
  aspect-ratio: 4/5;
  flex-direction: column;
  gap: 14px;
}
.card.marquee .thumb-request svg { width: 56px; height: 56px; }
.card.marquee .thumb-request span { font-size: 13px; letter-spacing: 0.3em; }
.card.marquee .scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 35%, rgba(var(--bsp-navy-rgb),0.05) 50%, rgba(var(--bsp-navy-rgb),0.95) 100%);
  pointer-events: none;
}
.card.marquee .play-mark { width: 72px; height: 72px; border-width: 2px; }
.card.marquee .play-mark svg { width: 24px; height: 24px; }
.card.marquee .overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 20px 22px;
  display: flex; flex-direction: column; gap: 12px;
  z-index: 5;
}
.card.marquee .overlay .meta-row {
  display: flex; align-items: center; gap: 8px;
}
.card.marquee .blurb {
  font-size: 19px;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--bsp-fg);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.card.marquee .who-row {
  display: flex; justify-content: space-between; align-items: flex-end;
}
.card.marquee .who-row .who-line {
  font-size: 11.5px;
  color: var(--bsp-fg-muted);
}
.card.marquee .who-row .who-line strong { color: var(--bsp-fg); font-weight: 500; }
.card.marquee:hover .scrim,
.card.marquee:active .scrim { background: linear-gradient(180deg, transparent 0%, transparent 30%, rgba(var(--bsp-navy-rgb),0.1) 50%, rgba(var(--bsp-navy-rgb),1) 100%); }

/* corner indicator (gold L-bracket) on marquee */
.card.marquee .bracket {
  position: absolute; z-index: 5; pointer-events: none;
  width: 22px; height: 22px;
  border: 2px solid var(--bsp-yellow);
}
.card.marquee .bracket.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.card.marquee .bracket.br { bottom: 14px; right: 14px; border-left: none; border-top: none; opacity: 0; transition: opacity .3s var(--bsp-ease-out); }
.card.marquee:hover .bracket.br { opacity: 1; }

/* ---------- Empty / end of feed ---------- */
.endline {
  display: flex; align-items: center; gap: 12px;
  padding: 24px 20px 0;
}
.endline .rule { flex: 1; height: 1px; background: var(--bsp-border); }
.endline .lbl {
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--bsp-fg-dim);
}

.empty {
  text-align: center;
  padding: 80px 30px;
}
.empty .num {
  font-family: var(--bsp-font-display);
  font-size: 76px; color: var(--bsp-yellow); line-height: 0.85;
}
.empty .eb {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--bsp-fg-dim);
  margin-top: 12px;
}
.empty .msg {
  margin-top: 18px;
  font-size: 14px; font-weight: 300;
  color: var(--bsp-fg-muted);
  line-height: 1.5;
}

/* ---------- Review overlay (Flow 2 hand-off stub) ---------- */
.review {
  position: absolute; inset: 0;
  background: var(--bsp-navy);
  z-index: 250;
  display: flex; flex-direction: column;
  transform: translateY(40px); opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--bsp-ease-out), transform .35s var(--bsp-ease-out);
}
.review.open { transform: translateY(0); opacity: 1; pointer-events: auto; }

.review-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px 14px;
  flex-shrink: 0;
}
.review-back {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; color: var(--bsp-fg);
  font-family: var(--bsp-font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer; padding: 6px 4px;
}
.review-back svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.review-head .badge {
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--bsp-yellow);
}
.review-body { flex: 1; overflow-y: auto; padding: 8px 18px 24px; min-height: 0; }
.review .asset {
  width: 100%; aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--bsp-navy-light), var(--bsp-navy));
  border: 1px solid var(--bsp-border);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  overflow: hidden;
}
.review .asset::before {
  content: ""; position: absolute; inset: -6px;
  border: 1px solid rgba(255, 210, 0, 0.25);
  transform: rotate(2deg);
  pointer-events: none;
}
.review .asset img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.review h1 {
  font-family: var(--bsp-font-display);
  font-size: 32px; line-height: 0.95;
  color: var(--bsp-fg);
  font-weight: 400;
  margin: 0 0 12px;
}
.review .meta-line {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.review .meta-line .effort-tag {
  white-space: nowrap;
}
.review .request-blurb {
  font-size: 15px; font-weight: 300; line-height: 1.5;
  color: var(--bsp-fg-muted);
  margin-bottom: 18px;
}
.review .prior {
  border-top: 1px solid var(--bsp-border);
  padding-top: 16px;
  margin-top: 8px;
}
.review .prior .head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.review .prior .head .lbl {
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--bsp-yellow);
}
.review .prior .quote {
  font-size: 14px; font-weight: 300; font-style: italic;
  color: var(--bsp-fg-muted);
  line-height: 1.55;
  padding-left: 14px;
  border-left: 2px solid var(--bsp-yellow);
}
.review .prior .quote .signer {
  display: block; font-style: normal;
  font-size: 10px; font-weight: 600; color: var(--bsp-fg-dim);
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-top: 8px;
}

.review .actions {
  display: flex; gap: 10px;
  padding: 14px 18px 24px;
  border-top: 1px solid var(--bsp-border);
}
.review .actions button {
  flex: 1;
  font-family: var(--bsp-font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 14px 12px;
  border: 1px solid var(--bsp-border-hi);
  background: transparent;
  color: var(--bsp-fg);
  cursor: pointer;
  transition: all .25s var(--bsp-ease-out);
}
.review .actions button.primary {
  background: var(--bsp-yellow);
  color: var(--bsp-navy);
  border-color: var(--bsp-yellow);
}
.review .actions button:hover { transform: translateY(-1px); }
.review .actions button.primary:hover { background: var(--bsp-yellow-hi); border-color: var(--bsp-yellow-hi); }

/* ================================================================
   FLOW 2 — Chat-style feedback bar (always present in review)
   ================================================================ */
.feedback-bar {
  position: relative;
  padding: 14px 18px calc(env(safe-area-inset-bottom, 0px) + 18px);
  border-top: 1px solid var(--bsp-border);
  background: linear-gradient(to bottom, rgba(var(--bsp-navy-rgb),0.6) 0%, var(--bsp-navy) 60%);
  z-index: 6;
  transition: border-color .35s var(--bsp-ease-out), background .35s var(--bsp-ease-out);
}
.feedback-bar[data-state="recording"] {
  border-top-color: var(--bsp-yellow);
  background: linear-gradient(to bottom, rgba(255,210,0,0.04) 0%, var(--bsp-navy) 60%);
}

.fb-inner {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--bsp-bg-card);
  border: 1px solid var(--bsp-border);
  padding: 10px 10px 10px 14px;
  transition: border-color .25s var(--bsp-ease-out), background .25s var(--bsp-ease-out);
}
.feedback-bar[data-state="recording"] .fb-inner {
  border-color: var(--bsp-border-gold);
  background: rgba(255,210,0,0.03);
}

.fb-input {
  flex: 1 1 0;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: var(--bsp-fg);
  font-family: var(--bsp-font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  padding: 8px 4px 8px 0;
  min-height: 24px;
  max-height: 200px;
  letter-spacing: -0.005em;
  white-space: pre-wrap;
}
.fb-input::placeholder {
  color: var(--bsp-fg-dim);
  font-weight: 300;
}

.fb-rec {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 4px;
  min-height: 24px;
}

.fb-rec-meta {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.fb-rec-meta .rec-dot {
  width: 7px; height: 7px;
  background: var(--bsp-yellow);
  border-radius: 50%;
  animation: recPulse 1s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(255,210,0,0.7);
}
@keyframes recPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}
.fb-rec-meta .rec-label {
  font-family: var(--bsp-font-body);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bsp-yellow);
}
.fb-rec-meta .rec-time {
  font-family: var(--bsp-font-display);
  font-size: 18px;
  color: var(--bsp-fg);
  letter-spacing: 0.02em;
  line-height: 1;
}

/* Mic + send button cluster */
.fb-actions {
  display: flex;
  align-items: center;
  gap: 0;
  flex: none;
  align-self: stretch;
}

.fb-mic, .fb-send {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--bsp-border-hi);
  background: transparent;
  color: var(--bsp-fg);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}
.fb-mic:hover { border-color: var(--bsp-fg); }

.fb-mic.recording {
  background: var(--bsp-yellow);
  border-color: var(--bsp-yellow);
  color: var(--bsp-navy);
  box-shadow: 0 0 0 0 rgba(255,210,0,0.6);
  animation: micPulse 1.5s ease-out infinite;
}
@keyframes micPulse {
  0%   { box-shadow: 0 0 0 0    rgba(255,210,0,0.45); }
  70%  { box-shadow: 0 0 0 14px rgba(255,210,0,0);    }
  100% { box-shadow: 0 0 0 0    rgba(255,210,0,0);    }
}

.fb-send {
  border: 1px solid var(--bsp-border-hi);
  background-color: transparent;
  color: var(--bsp-fg-dim);
  width: 38px;
  margin-left: 6px;
  flex-shrink: 0;
  cursor: not-allowed;
}
.fb-send:disabled { pointer-events: none; cursor: not-allowed; }

.fb-hint {
  margin-top: 8px;
  padding-left: 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bsp-fg-dim);
  animation: fadeIn .35s var(--bsp-ease-out);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Waveform ---------- */
.waveform {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  min-width: 0;
  overflow: hidden;
}
.wave-bar {
  display: block;
  flex: 1;
  min-width: 2px;
  max-width: 4px;
  background: var(--bsp-yellow);
  height: calc(20px * var(--scale, 0.6));
  transform-origin: center;
  animation-name: waveStep;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  border-radius: 1px;
}
@keyframes waveStep {
  0%, 100% { transform: scaleY(0.18); opacity: 0.55; }
  35%      { transform: scaleY(0.95); opacity: 1;    }
  55%      { transform: scaleY(0.45); opacity: 0.8;  }
  80%      { transform: scaleY(0.75); opacity: 0.95; }
}

/* ---------- Recording halo around asset (subtle, gold) ---------- */
.rec-halo {
  position: absolute;
  inset: -2px;
  pointer-events: none;
  border: 1px solid rgba(255,210,0,0.45);
  animation: haloBreath 2.4s ease-in-out infinite;
}
@keyframes haloBreath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,210,0,0.18), inset 0 0 28px rgba(255,210,0,0.06); }
  50%      { box-shadow: 0 0 0 8px rgba(255,210,0,0),    inset 0 0 48px rgba(255,210,0,0.12); }
}

/* When recording, the right-hand context column dims to push focus to asset */
.context-col.dim {
  opacity: 0.4;
  transition: opacity .4s var(--bsp-ease-out);
}
.context-col {
  transition: opacity .4s var(--bsp-ease-out);
}

/* Sent overlay */
.sent-overlay {
  position: absolute; inset: 0;
  background: rgba(var(--bsp-navy-rgb),0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 20;
  animation: fadeIn .25s var(--bsp-ease-out);
}
.sent-card {
  background: var(--bsp-navy-light);
  border: 1px solid var(--bsp-border-hi);
  border-top: 2px solid var(--bsp-yellow);
  padding: 32px 36px;
  max-width: 360px;
  text-align: center;
}
.sent-card .sent-eb {
  font-family: var(--bsp-font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bsp-yellow);
  margin-bottom: 10px;
}
.sent-card .sent-msg {
  font-family: var(--bsp-font-display);
  font-size: 24px;
  line-height: 1.15;
  color: var(--bsp-fg);
  letter-spacing: 0.005em;
}

/* ================================================================
   FLOW 3 — Validation screen
   ================================================================ */

/* The aside (left column on desktop) — small asset + metadata */
.v-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
}
.v-asset-mini {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--bsp-navy-light), var(--bsp-navy));
  border: 1px solid var(--bsp-border);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.v-asset-mini img { width: 100%; height: 100%; object-fit: cover; }
.v-asset-mini::before {
  content: ""; position: absolute; inset: -4px;
  border: 1px solid rgba(255,210,0,0.18);
  transform: rotate(2deg);
  pointer-events: none;
}
.v-aside-meta { display: flex; flex-direction: column; gap: 10px; }
.v-aside-meta .v-ip-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 8px;
  background: rgba(255, 210, 0, 0.08);
  border: 1px solid var(--bsp-border-gold);
  color: var(--bsp-yellow);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  white-space: nowrap;
}
.v-aside-who {
  font-size: 12px;
  color: var(--bsp-fg-muted);
  letter-spacing: 0.01em;
}
.v-aside-who strong { color: var(--bsp-fg); font-weight: 500; }
.v-aside-blurb {
  font-size: 13.5px; font-weight: 300; line-height: 1.5;
  color: var(--bsp-fg-muted);
}

/* The validation editor (right column) */
.validation {
  display: flex; flex-direction: column;
  overflow-y: auto;
  padding-right: 8px;
  min-height: 0;
  gap: 22px;
}
.v-eyebrow {
  display: flex; align-items: center; gap: 10px;
}
.v-eyebrow .v-lbl {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--bsp-yellow);
}
.v-eyebrow .v-meta {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bsp-fg-dim);
  margin-left: auto;
}

.v-headline {
  font-family: var(--bsp-font-display);
  font-size: 36px;
  line-height: 1.02;
  color: var(--bsp-fg);
  letter-spacing: 0.005em;
}

/* Editable text — visible affordance for click-to-edit */
.editable {
  display: inline;
  border-bottom: 1px dashed transparent;
  padding: 1px 2px;
  margin: 0 -2px;
  border-radius: 0;
  outline: none;
  cursor: text;
  transition: background-color .2s ease, border-color .2s ease;
}
.editable:hover {
  background-color: rgba(255, 210, 0, 0.06);
  border-bottom-color: rgba(255, 210, 0, 0.4);
}
.editable:focus {
  background-color: rgba(255, 210, 0, 0.1);
  border-bottom-color: var(--bsp-yellow);
}
.editable:empty::before {
  content: attr(placeholder);
  color: var(--bsp-fg-dim);
}

/* Section block */
.v-section { display: flex; flex-direction: column; gap: 12px; }
.v-section-head {
  display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bsp-border);
}
.v-sec-lbl {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--bsp-fg-dim);
}
.v-sec-count {
  font-family: var(--bsp-font-display);
  font-size: 18px;
  color: var(--bsp-yellow);
  line-height: 1;
  margin-left: auto;
}

/* Action items — scannable list */
.v-actions {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 12px;
}
.v-actions-tight { gap: 8px; }
.v-action {
  display: flex; gap: 14px;
  align-items: baseline;
}
.v-bullet {
  font-family: var(--bsp-font-display);
  font-size: 14px;
  color: var(--bsp-yellow);
  line-height: 1.5;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  min-width: 22px;
}
.v-action-text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--bsp-fg);
  letter-spacing: -0.005em;
  flex: 1;
}

/* Prose */
.v-prose {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--bsp-fg-muted);
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: pretty;
}
.v-prose-tight { font-size: 13.5px; }

/* Video sections */
.v-sections {
  display: flex; flex-direction: column;
  gap: 24px;
}
.v-vsec { display: flex; flex-direction: column; gap: 12px; }
.v-vsec-head {
  display: flex; align-items: center; gap: 12px;
}
.v-vsec-tag {
  font-family: var(--bsp-font-display);
  font-size: 22px;
  color: var(--bsp-fg);
  letter-spacing: 0.04em;
}
.v-vsec-rule {
  flex: 1; height: 1px; background: var(--bsp-border);
}

/* Agent log (chat history of edits) */
.v-agent-log {
  border-top: 1px solid var(--bsp-border);
  padding-top: 16px;
  display: flex; flex-direction: column;
  gap: 12px;
}
.v-agent-msg {
  display: flex; flex-direction: column;
  gap: 4px;
}
.v-agent-msg .v-agent-eb {
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--bsp-fg-dim);
}
.v-agent-msg.user .v-agent-eb { color: var(--bsp-fg-muted); }
.v-agent-msg.agent .v-agent-eb { color: var(--bsp-yellow); }
.v-agent-msg .v-agent-body {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--bsp-fg);
}

/* ================================================================
   FLOW 3 — Agent input bar
   ================================================================ */
.agent-bar {
  position: relative;
  padding: 12px 18px calc(env(safe-area-inset-bottom, 0px) + 18px);
  border-top: 1px solid var(--bsp-border-gold);
  background: linear-gradient(to bottom, rgba(255,210,0,0.03) 0%, var(--bsp-navy) 60%);
  z-index: 6;
}
.agent-eyebrow {
  display: flex; align-items: center; gap: 6px;
  padding: 0 4px 8px;
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--bsp-yellow);
}
.agent-eyebrow svg { stroke: var(--bsp-yellow); }
.agent-inner {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--bsp-bg-card);
  border: 1px dashed var(--bsp-border-gold);
  padding: 10px 10px 10px 14px;
}
.agent-bar[data-state="recording"] .agent-inner {
  border-style: solid;
  border-color: var(--bsp-yellow);
  background: rgba(255,210,0,0.04);
}
.agent-bar[data-state="thinking"] .agent-inner {
  border-style: solid;
  border-color: var(--bsp-border-gold);
}

.agent-input {
  flex: 1 1 0;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: var(--bsp-fg);
  font-family: var(--bsp-font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  padding: 8px 4px 8px 0;
  min-height: 24px;
  max-height: 140px;
  letter-spacing: -0.005em;
  white-space: pre-wrap;
}
.agent-input::placeholder { color: var(--bsp-fg-dim); font-weight: 300; }

.agent-rec {
  flex: 1 1 0;
  min-width: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 8px 4px;
  min-height: 24px;
}
.agent-rec-meta {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.agent-rec-meta .rec-dot {
  width: 7px; height: 7px;
  background: var(--bsp-yellow);
  border-radius: 50%;
  animation: recPulse 1s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(255,210,0,0.7);
}
.agent-rec-meta .rec-label {
  font-family: var(--bsp-font-body);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--bsp-yellow);
}
.agent-rec-meta .rec-time {
  font-family: var(--bsp-font-display);
  font-size: 18px;
  color: var(--bsp-fg);
  line-height: 1;
}

.agent-thinking {
  flex: 1 1 0;
  min-width: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 8px 4px;
  min-height: 24px;
}
.agent-think-dots { display: inline-flex; gap: 4px; }
.agent-think-dots span {
  width: 6px; height: 6px;
  background: var(--bsp-yellow);
  border-radius: 50%;
  animation: thinkPulse 1.2s ease-in-out infinite;
}
.agent-think-dots span:nth-child(2) { animation-delay: .15s; }
.agent-think-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes thinkPulse {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50%      { opacity: 1;    transform: scale(1);   }
}
.agent-think-lbl {
  font-family: var(--bsp-font-body);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--bsp-yellow);
}

.agent-actions {
  display: flex; align-items: center; gap: 6px;
  flex: none;
}
.agent-mic, .agent-send {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

/* ================================================================
   FLOW 4 — Session progress + end-session modal + warmer toast
   ================================================================ */

/* Session block inside the desktop slate */
.ds-session {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--bsp-border);
  display: flex; flex-direction: column;
  gap: 12px;
}
.ds-session-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
}
.ds-session-head .ds-session-lbl {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--bsp-fg-dim);
}
.ds-session-head .ds-session-meta {
  font-family: var(--bsp-font-display);
  font-size: 18px; line-height: 1;
  color: var(--bsp-yellow);
  letter-spacing: 0.04em;
}
.ds-session-empty {
  font-size: 12px;
  font-weight: 300;
  color: var(--bsp-fg-dim);
  letter-spacing: 0.005em;
  font-style: italic;
}
.ds-session-chips {
  display: flex; flex-wrap: wrap;
  gap: 6px;
}
.ds-session-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px 4px 6px;
  background: rgba(255, 210, 0, 0.06);
  border: 1px solid var(--bsp-border-gold);
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bsp-yellow);
}
.ds-chip-glyph {
  width: 6px; height: 6px;
  background: var(--bsp-yellow);
  border-radius: 0;
}
.ds-chip-glyph.kind-video { border-radius: 50%; }
.ds-chip-glyph.kind-request {
  background: transparent;
  border: 1px solid var(--bsp-yellow);
}
.ds-chip-glyph.kind-audio { width: 3px; height: 9px; border-radius: 999px; }
.ds-chip-ip { line-height: 1; }

/* Warmer toast */
.toast {
  display: flex; align-items: stretch; gap: 14px;
  padding: 14px 16px;
  background: var(--bsp-navy-light);
  border: 1px solid var(--bsp-border-hi);
  border-left: 2px solid var(--bsp-yellow);
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  left: 16px; right: 16px;
  z-index: 50;
  transform: translateY(80px);
  opacity: 0;
  transition: transform .35s var(--bsp-ease-out), opacity .35s var(--bsp-ease-out);
  pointer-events: none;
}
.toast.shown { transform: translateY(0); opacity: 1; }
.toast-ip-wrap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.toast-ip {
  font-family: var(--bsp-font-display);
  font-size: 18px;
  color: var(--bsp-fg);
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.toast-eb {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--bsp-yellow);
}
.toast-rule { width: 1px; background: var(--bsp-border); margin: 2px 0; }
.toast-meta { display: flex; align-items: baseline; gap: 8px; flex: 1; min-width: 0; }
.toast-count {
  font-family: var(--bsp-font-display);
  font-size: 28px;
  color: var(--bsp-yellow);
  line-height: 0.9;
  letter-spacing: -0.01em;
}
.toast-msg {
  font-size: 12px;
  font-weight: 300;
  color: var(--bsp-fg-muted);
  line-height: 1.3;
  letter-spacing: 0.005em;
}

/* Empty session line */
.empty-session {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--bsp-border);
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 8px;
}
.empty-session-line {
  display: flex; align-items: baseline; gap: 10px;
}
.empty-session-line .n {
  font-family: var(--bsp-font-display);
  font-size: 28px;
  color: var(--bsp-yellow);
  line-height: 1;
}
.empty-session-line .l {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bsp-fg-dim);
}
.empty-session-meta {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bsp-fg-dim);
}

/* End-session modal */
.end-modal {
  position: absolute; inset: 0;
  background: rgba(6, 8, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--bsp-ease-out);
  padding: 24px;
}
.end-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.end-card {
  background: var(--bsp-navy);
  border: 1px solid var(--bsp-border-hi);
  width: 100%;
  max-width: 460px;
  padding: 32px 32px 28px;
  position: relative;
  transform: translateY(20px);
  transition: transform .3s var(--bsp-ease-out);
}
.end-card::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 40px; height: 2px; background: var(--bsp-yellow);
}
.end-modal.open .end-card { transform: translateY(0); }
.end-eb {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.end-eb .dot {
  width: 5px; height: 5px;
  background: var(--bsp-yellow);
  border-radius: 50%;
}
.end-eb .lbl {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--bsp-fg-dim);
}
.end-headline {
  font-family: var(--bsp-font-display);
  font-size: 44px;
  line-height: 1;
  color: var(--bsp-fg);
  margin-bottom: 22px;
  letter-spacing: 0.005em;
}
.end-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--bsp-border);
  border-bottom: 1px solid var(--bsp-border);
  margin-bottom: 20px;
}
.end-stat {
  padding: 14px 0;
  display: flex; flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--bsp-border);
}
.end-stat:last-child { border-right: none; }
.end-stat:not(:first-child) { padding-left: 14px; }
.end-stat .n {
  font-family: var(--bsp-font-display);
  font-size: 28px;
  color: var(--bsp-yellow);
  line-height: 0.9;
  letter-spacing: 0.01em;
}
.end-stat .l {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bsp-fg-dim);
}
.end-breakdown {
  margin-bottom: 22px;
}
.end-bd-head {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--bsp-fg-dim);
  margin-bottom: 10px;
}
.end-bd-list {
  display: flex; flex-direction: column;
  gap: 8px;
}
.end-bd-row {
  display: flex; align-items: baseline;
  gap: 10px;
}
.end-bd-row .end-bd-ip {
  font-family: var(--bsp-font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bsp-fg);
}
.end-bd-row .end-bd-rule {
  flex: 1; height: 1px;
  background: var(--bsp-border);
  align-self: center;
}
.end-bd-row .end-bd-n {
  font-family: var(--bsp-font-display);
  font-size: 18px;
  color: var(--bsp-yellow);
  line-height: 1;
}
.end-bd-kinds {
  display: flex; gap: 14px;
  padding-top: 8px;
  font-size: 11px;
  color: var(--bsp-fg-muted);
  letter-spacing: 0.01em;
  flex-wrap: wrap;
}
.end-bd-kinds strong {
  font-weight: 500;
  color: var(--bsp-fg);
}
.end-actions {
  display: flex; gap: 10px;
}
.end-btn {
  flex: 1;
  padding: 14px 16px;
  font-family: var(--bsp-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--bsp-border-hi);
  background: transparent;
  color: var(--bsp-fg);
  appearance: none;
  -webkit-appearance: none;
}
.end-btn.ghost:hover { border-color: var(--bsp-fg); }
.end-btn.primary {
  background-color: var(--bsp-yellow);
  border-color: var(--bsp-yellow);
  color: var(--bsp-navy);
}
.end-btn.primary:hover {
  background-color: var(--bsp-yellow-hi);
  border-color: var(--bsp-yellow-hi);
}

/* ---------- Bottom toast (after mark reviewed) ---------- */
.toast {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); left: 16px; right: 16px;
  background: var(--bsp-navy-light);
  border: 1px solid var(--bsp-border-hi);
  border-left: 2px solid var(--bsp-yellow);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  z-index: 50;
  transform: translateY(80px);
  opacity: 0;
  transition: transform .35s var(--bsp-ease-out), opacity .35s var(--bsp-ease-out);
  pointer-events: none;
}
.toast.shown { transform: translateY(0); opacity: 1; }
.toast .lbl {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--bsp-yellow);
}
.toast .msg {
  font-size: 13px; font-weight: 300;
  color: var(--bsp-fg-muted);
  flex: 1;
}
.toast .count {
  font-family: var(--bsp-font-display);
  font-size: 26px; color: var(--bsp-fg);
  line-height: 0.9;
}

/* ---------- Profile dot in mini-head ---------- */
.profile-dot {
  width: 28px; height: 28px;
  border: 1px solid var(--bsp-border-hi);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--bsp-font-display);
  font-size: 14px; color: var(--bsp-yellow);
  letter-spacing: 0.02em;
}

/* ---------- Reveal animation on initial load ---------- */
.reveal {
  opacity: 1;
  transform: none;
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hint for first interaction ---------- */
.tap-hint {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--bsp-fg-dim);
  z-index: 25;
  display: flex; align-items: center; gap: 6px;
  pointer-events: none;
  animation: hintFade 4s ease-in 1.2s forwards;
  opacity: 1;
  white-space: nowrap;
}
.tap-hint .arr {
  width: 6px; height: 6px;
  border-right: 1.5px solid var(--bsp-yellow);
  border-bottom: 1.5px solid var(--bsp-yellow);
  transform: rotate(45deg) translate(-1px, -1px);
}
@keyframes hintFade {
  0% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; }
}

/* =================== Project group (accordion) =================== */
.project-group {
  border-bottom: 1px solid var(--bsp-border);
}
.project-group:last-child { border-bottom: none; }

.group-head {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014));
  border: none; cursor: pointer;
  text-align: left; font: inherit; color: inherit;
  transition: background .2s ease;
}
.group-head:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)); }
.project-group.open .group-head { border-bottom: 1px solid var(--bsp-border); }
.group-head:focus-visible {
  outline: 1px solid var(--bsp-border-gold);
  outline-offset: -3px;
}

.group-title {
  font-family: var(--bsp-font-display);
  font-size: 30px; line-height: 0.9;
  letter-spacing: 0.01em; text-transform: uppercase;
  color: var(--bsp-fg);
}
.group-count {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bsp-fg-dim);
  white-space: nowrap;
}
.group-flags {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 13px;
  white-space: nowrap;
}
/* Priority — temperature reads as urgency: coral (hot) -> amber -> teal (cool). */
.group-flags .prio {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.group-flags .prio-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent);
}
.group-flags .prio-high   { color: #ff6f61; }
.group-flags .prio-medium { color: #f2b63d; }
.group-flags .prio-low    { color: #74a39a; }
.group-flags .flag-sep {
  width: 1px; height: 15px;
  background: var(--bsp-border-hi);
}
.group-flags .deadline {
  display: inline-flex; align-items: baseline; gap: 7px;
}
.group-flags .dl-label {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bsp-fg-dim);
}
.group-flags .dl-date {
  font-size: 13px; font-weight: 600;
  color: var(--bsp-fg-muted);
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.group-chevron {
  display: inline-flex; color: var(--bsp-fg-dim);
  transition: transform .3s ease;
}
.project-group.open .group-chevron { transform: rotate(180deg); }

/* Collapsible body — grid-rows technique animates both directions; the inner
   wrapper clips so cards never spill while the track is mid-transition. */
.group-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s cubic-bezier(.4, 0, .2, 1);
}
.project-group.open .group-body { grid-template-rows: 1fr; }
.group-body-inner { min-height: 0; overflow: hidden; }

/* Project grid: wrapping flex tiles (flexbox, not grid) that grow to fill each
   row and reflow as the container narrows. Card surface lifts on hover. */
.group-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px 16px;
}
.group-grid .card.indexcard {
  flex: 1 1 280px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--bsp-border);
  background: var(--bsp-bg-elev);
  overflow: hidden;
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s cubic-bezier(.22,1,.36,1), border-color .25s ease, background .25s ease;
}
.group-grid .card.indexcard .ix-main { padding: 14px; }
.group-grid .card.indexcard .thumb { align-self: flex-start; }
.group-grid .card.indexcard:hover,
.group-grid .card.indexcard:active {
  background: var(--bsp-bg-card-hi);
  border-color: var(--bsp-border-hi);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -16px rgba(0,0,0,0.55);
}
.group-grid .card.indexcard:hover .ix-main,
.group-grid .card.indexcard:active .ix-main { padding-left: 14px; }

@media (min-width: 1100px) {
  .group-head { padding: 18px 24px; }
  .group-grid { padding: 12px 24px 20px; }
  .card.indexcard .asset-title .at-type { font-size: 17.5px; }
  .card.indexcard .asset-title .at-version { font-size: 12.5px; }
  .card.indexcard .blurb { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .group-body { transition: none; }
  .group-chevron { transition: none; }
  .group-grid .card.indexcard { transition: none; }
  .group-grid .card.indexcard:hover { transform: none; }
}

/* ============================================================
   Review-as-iteration: due dates, status, verdicts, grouping
   The queue now reads on two drivers — due date and IP — with
   iteration status kept secondary. Urgency is shown with the
   existing temperature ramp (coral hot, amber, teal cool) so
   nothing competes with the reserved gold (The One Light Rule).
   ============================================================ */

/* Temperature: set --temp from the urgency class, reuse everywhere. */
.due-overdue, .temp-overdue { --temp: #ff6f61; }
.due-soon,    .temp-soon    { --temp: #f2b63d; }
.due-later,   .temp-later   { --temp: #74a39a; }

/* Due chip — the loudest non-gold signal where the eye lands first. */
.due-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--bsp-font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--temp, var(--bsp-fg-muted));
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.due-chip .due-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--temp, var(--bsp-fg-dim)); flex-shrink: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--temp, transparent) 20%, transparent);
}
.card-type .due-chip { margin-left: auto; align-self: center; }
.storyboard .footline .due-chip { margin-left: auto; }

/* Status pill — secondary. Locked earns the gold stamp; the rest stay quiet. */
.status-pill {
  display: inline-flex; align-items: center; flex-shrink: 0;
  font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 3px 8px; white-space: nowrap;
}
.status-pill.st-pass   { color: var(--bsp-fg-dim); border: 1px solid var(--bsp-border-hi); }
.status-pill.st-back   { color: #f2b63d; border: 1px solid color-mix(in srgb, #f2b63d 45%, transparent); }
.status-pill.st-signed { color: var(--bsp-fg-dim); border: 1px solid var(--bsp-border); font-family: var(--bsp-font-mono); letter-spacing: 0.06em; }
.review-signal {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  padding: 3px 8px;
  border: 1px solid var(--bsp-border);
  color: var(--bsp-fg-muted);
  font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  white-space: nowrap;
}
.review-signal::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}
.review-signal.mine {
  color: var(--bsp-yellow);
  border-color: var(--bsp-border-gold);
  background: rgba(255, 210, 0, 0.06);
}
.review-signal.stakeholder {
  color: var(--bsp-fg-muted);
  border-color: var(--bsp-border-hi);
  background: rgba(255, 255, 255, 0.035);
}

/* Non-waiting cards recede; returned cards get a faint amber hairline. */
.card.st-out-for-pass { opacity: 0.62; }
.card.st-out-for-pass:hover { opacity: 1; }
.card.is-returned { box-shadow: inset 0 0 0 1px color-mix(in srgb, #f2b63d 32%, transparent), var(--bsp-shadow-card); }
.card .top-row:empty { display: none; }
.card.marquee .overlay .marquee-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px;
}

/* Group-by knob in the feed eyebrow. */
.feed-eyebrow .groupby { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.groupby-lbl { font-size: 9px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bsp-fg-dim); }
.groupby-seg { display: inline-flex; border: 1px solid var(--bsp-border-hi); background: var(--bsp-bg-card); }
.groupby-opt {
  font-family: var(--bsp-font-body);
  font-size: 10px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--bsp-fg-dim); background: transparent; border: 0; cursor: pointer;
  padding: 7px 12px; transition: color .2s ease, background .2s ease;
}
.groupby-opt + .groupby-opt { border-left: 1px solid var(--bsp-border); }
.groupby-opt:hover { color: var(--bsp-fg-muted); }
.groupby-opt.active { color: var(--bsp-fg); background: var(--bsp-bg-elev); }
.groupby-opt:focus-visible { outline: 1px solid var(--bsp-border-gold); outline-offset: -2px; }

/* Axis-aware group headers. */
.group-temp {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: var(--temp, var(--bsp-fg-dim));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--temp, transparent) 18%, transparent);
}
.group-extra { color: var(--bsp-fg-dim); font-weight: 600; }
.group-flags .due-chip { font-size: 12px; }

/* Verdict buttons — shared by both review feet and the overlay head. The pass
   is a ghost (a request), the approve is the gold decision (The One Light Rule). */
.verdict-btn {
  font-family: var(--bsp-font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  padding: 9px 18px; cursor: pointer; border-radius: var(--bsp-radius-pill);
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .15s ease;
}
.verdict-btn.pass { background: transparent; color: var(--bsp-fg-muted); border: 1px solid var(--bsp-border-hi); }
.verdict-btn.pass:hover { color: var(--bsp-yellow); border-color: var(--bsp-border-gold); transform: translateY(-1px); }
.verdict-btn.approve { background: var(--bsp-yellow); color: var(--bsp-accent-on); border: 1px solid var(--bsp-yellow); box-shadow: var(--bsp-shadow-gold); }
.verdict-btn.approve:hover { background: var(--bsp-yellow-hi); border-color: var(--bsp-yellow-hi); transform: translateY(-1px); }
.review-head .head-approve { padding: 7px 16px; font-size: 11px; }

/* Returned-asset banner + real prior-round notes in the overlay. */
.returned-banner { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 12px; }
.returned-banner .rb-tag {
  font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: #f2b63d; border: 1px solid color-mix(in srgb, #f2b63d 45%, transparent); padding: 3px 8px;
}
.returned-banner .rb-text { font-family: var(--bsp-font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--bsp-fg-muted); }
.prior .prior-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.prior .prior-note { display: flex; gap: 10px; align-items: baseline; }
.prior .prior-note .pn-who {
  font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bsp-fg-dim); flex-shrink: 0; min-width: 42px;
}
.prior .prior-note .pn-text { font-size: 14px; font-weight: 300; color: var(--bsp-fg-muted); line-height: 1.5; }

/* Loop tallies on the slate and the vertical deck. */
.ds-loops, .deck-loops { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.ds-loop, .deck-loop {
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--bsp-fg-dim); display: inline-flex; align-items: center;
}
.ds-loop.overdue, .deck-loop.overdue { color: #ff6f61; }

/* Past-approvals link on the desktop slate — a quiet exit to the archive. */
.ds-approvals {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  margin-top: 16px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bsp-fg-dim); text-decoration: none;
  transition: color var(--bsp-dur-fast) var(--bsp-ease-out);
}
.ds-approvals svg { transition: transform var(--bsp-dur-fast) var(--bsp-ease-out); }
.ds-approvals:hover, .ds-approvals:focus-visible { color: var(--bsp-yellow); }
.ds-approvals:hover svg { transform: translate(2px, -2px); }
.ds-approvals:focus-visible { outline: 1px solid var(--bsp-border-gold); outline-offset: 3px; }

/* Quick links to the product's other surfaces (shared by slate + data-deck). */
.quick-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.quick-link {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bsp-fg-dim); text-decoration: none; white-space: nowrap; padding: 4px 0;
  transition: color var(--bsp-dur-fast) var(--bsp-ease-out);
}
.quick-link:hover, .quick-link:focus-visible { color: var(--bsp-yellow); }
.quick-link:focus-visible { outline: 1px solid var(--bsp-border-gold); outline-offset: 3px; }
/* On the desktop slate the links sit just under the Past-approvals exit. */
.desktop-slate .slate-quick { align-self: flex-start; margin-top: 10px; gap: 6px 16px; }

/* Verdict toast. */
.toast { align-items: center; }
.toast .toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bsp-fg-dim); flex-shrink: 0; }
.toast.tone-approve .toast-dot { background: var(--bsp-yellow); box-shadow: 0 0 0 3px var(--bsp-tint-gold); }
.toast.tone-pass .toast-dot { background: #f2b63d; }
.toast .toast-msg { font-size: 13px; color: var(--bsp-fg-muted); letter-spacing: 0.02em; align-self: center; }

/* End-of-session verdict split. */
.end-verdicts { display: flex; gap: 8px; margin: -2px 0 6px; flex-wrap: wrap; }
.end-verdict {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 10px; border: 1px solid var(--bsp-border-hi); color: var(--bsp-fg-muted);
}
.end-verdict.approve { color: var(--bsp-accent-on); background: var(--bsp-yellow); border-color: var(--bsp-yellow); }
.end-verdict.pass { color: #f2b63d; border-color: color-mix(in srgb, #f2b63d 45%, transparent); }

@media (max-width: 600px) {
  .groupby-lbl { display: none; }
  .feed-eyebrow { flex-wrap: wrap; row-gap: 10px; }
}
