:root {
  /* ===========================================================
     COLOR — Cool neutral palette (single source of truth)
     =========================================================== */
  --bg:           #ffffff;
  --bg-soft:      #fafafa;
  --paper:        #ffffff;
  --ink:          #111827;
  --ink-2:        #1f2937;
  --muted:        #4b5563;
  --muted-2:      #6b7280;
  --line:         #e5e7eb;
  --line-strong:  #d1d5db;

  /* Brand */
  --primary:      #cc8066;
  --primary-700:  #a8654d;
  --primary-50:   rgba(204, 128, 102, 0.06);
  --primary-100:  rgba(204, 128, 102, 0.10);

  /* Semantic */
  --success:      #16a34a;
  --success-bg:   rgba(22, 163, 74, 0.08);
  --warning:      #d97706;
  --warning-bg:   rgba(217, 119, 6, 0.08);
  --danger:       #dc2626;
  --danger-bg:    rgba(220, 38, 38, 0.08);
  --info:         #2563eb;
  --info-bg:      rgba(37, 99, 235, 0.08);

  /* Legacy color aliases (resolve to canonical) */
  --green: var(--success);
  --blue:  var(--info);
  --red:   var(--danger);
  --gold:  var(--primary);
  --plum:  #7c3aed;

  /* ===========================================================
     TYPE — 7-size scale
     =========================================================== */
  --text-xs:      0.75rem;     /* 12px */
  --text-sm:      0.875rem;    /* 14px */
  --text-base:    0.9375rem;   /* 15px */
  --text-md:      1.0625rem;   /* 17px */
  --text-lg:      1.25rem;     /* 20px */
  --text-xl:      1.75rem;     /* 28px */
  --text-display: clamp(2.5rem, 1rem + 5vw, 4rem);

  /* Families */
  --font-display: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --font-body:    "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Weights — 4 only */
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* ===========================================================
     SPACING — 8pt grid
     =========================================================== */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* ===========================================================
     RADIUS
     =========================================================== */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-pill: 9999px;
  --radius:      var(--radius-md);

  /* ===========================================================
     ELEVATION
     =========================================================== */
  --shadow-rest:    0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.06);
  --shadow-raised:  0 1px 2px rgba(17, 24, 39, 0.05), 0 16px 36px rgba(17, 24, 39, 0.10);
  --shadow-popover: 0 4px 12px rgba(17, 24, 39, 0.10), 0 24px 48px rgba(17, 24, 39, 0.14);
  --shadow-cta:     0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 12px 28px rgba(204, 128, 102, 0.32);
  --shadow-focus:   0 0 0 2px var(--paper), 0 0 0 4px rgba(204, 128, 102, 0.5);

  /* Legacy shadow aliases */
  --shadow:    var(--shadow-rest);
  --shadow-sm: var(--shadow-rest);
  --shadow-md: var(--shadow-raised);
  --shadow-lg: var(--shadow-popover);

  /* ===========================================================
     MOTION
     =========================================================== */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-soft: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring:   cubic-bezier(0.22, 1.4, 0.36, 1);
  --dur-fast:      140ms;
  --dur-base:      220ms;
  --dur-slow:      420ms;

  --focus-ring: var(--shadow-focus);

  font-family: var(--font-body);
}

/* Register --score so the conic-gradient can transition smoothly when JS animates it */
@property --score {
  syntax: '<number>';
  initial-value: 0;
  inherits: false;
}

/* Anchor offset so sticky brand bar (mobile) doesn't cover section headings.
   Only needed on mobile where the brand bar is sticky at the top. */
@media (max-width: 720px) {
  section[id] {
    scroll-margin-top: 72px;
  }
}

/* Branded focus ring — replaces browser default for interactive elements */
a:focus-visible,
button:focus-visible,
.button:focus-visible,
.nav-link:focus-visible,
.filter-button:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 6px;
}

/* Reveal-on-scroll: section enters viewport → fades up into place */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Section heading micro-stagger — each child appears 70ms after the previous so the
   eye reads utility → headline → lead in sequence rather than all at once */
.reveal.is-in .section-heading > * {
  opacity: 0;
  transform: translateY(8px);
  animation: heading-rise 520ms var(--ease-out) forwards;
}
.reveal.is-in .section-heading > *:nth-child(1) { animation-delay: 80ms; }
.reveal.is-in .section-heading > *:nth-child(2) { animation-delay: 150ms; }
.reveal.is-in .section-heading > *:nth-child(3) { animation-delay: 220ms; }
.reveal.is-in .section-heading > *:nth-child(4) { animation-delay: 290ms; }

@keyframes heading-rise {
  to { opacity: 1; transform: none; }
}

/* Track / bar fills — start at 0 width; JS writes data-fill % when section enters viewport.
   width transitions are layout-bound but acceptable here (tens of bars, not thousands) */
.score-bar span,
.track span,
.intent-track span,
.clarity-track span {
  display: block;
  width: 0;
  transition: width 1100ms var(--ease-out);
}

/* Honor user motion preference — disable our motion entirely */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* === Sticky brand bar shadow appears once user has scrolled past origin === */
.sidebar {
  transition: box-shadow var(--dur-base) var(--ease-out);
}
html.is-scrolled .sidebar {
  box-shadow: 4px 0 20px rgba(20, 21, 18, 0.05);
}
@media (max-width: 720px) {
  /* On mobile the sidebar is the top brand bar, so shadow should drop downward */
  html.is-scrolled .sidebar {
    box-shadow: 0 4px 16px rgba(20, 21, 18, 0.08);
  }
}

/* === Sidebar sliding active indicator === */
.nav-list {
  position: relative;
}
.nav-indicator {
  position: absolute;
  left: 2px;
  top: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--blue);
  transform: translateY(0);
  height: 0;
  pointer-events: none;
  transition: transform 360ms var(--ease-spring), height 360ms var(--ease-spring), opacity var(--dur-base) var(--ease-out);
  opacity: 0;
}
.nav-indicator.is-ready {
  opacity: 1;
}
/* Indicator replaces the per-link active background — clear that on the sidebar
   so we have one canonical "active" cue rather than two competing signals */
.sidebar .nav-link.is-active {
  background: transparent;
  color: var(--ink);
}
.sidebar .nav-link {
  padding-left: 16px; /* leave room for the 3px indicator with a 5px gutter */
}

.nav-page-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  margin: 6px 0;
  padding: 10px 14px;
  border: 1px solid rgba(204, 128, 102, 0.22);
  border-radius: 8px;
  background: rgba(204, 128, 102, 0.08);
  color: #a8654d;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition:
    background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out);
}

.nav-page-link::after {
  content: "Open";
  color: rgba(154, 52, 18, 0.68);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-page-link:hover {
  background: rgba(204, 128, 102, 0.14);
  border-color: rgba(204, 128, 102, 0.34);
  color: #7c2d12;
  box-shadow: 0 6px 18px rgba(204, 128, 102, 0.12);
  transform: translateY(-1px);
}

/* === Custom <details> chevron === */
.source-drawer summary,
.draft-card summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-right: 32px;
}
.source-drawer summary::-webkit-details-marker,
.draft-card summary::-webkit-details-marker {
  display: none;
}
.source-drawer summary::after,
.draft-card summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  border-radius: 1px;
  transform: translateY(-70%) rotate(45deg);
  transform-origin: 70% 70%;
  transition: transform var(--dur-base) var(--ease-spring);
  opacity: 0.5;
}
.source-drawer[open] summary::after,
.draft-card[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
  opacity: 0.85;
}

/* === Engine logo refinement — softer hover lift with glow === */
.engine-row li {
  /* Replace existing transition with a more refined easing */
  transition:
    background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out);
}
.engine-row li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(20, 21, 18, 0.08), 0 1px 2px rgba(20, 21, 18, 0.04);
}
.engine-row li:hover .engine-mark {
  box-shadow: 0 2px 6px rgba(20, 21, 18, 0.12);
  transform: scale(1.06);
}
.engine-mark {
  transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base) var(--ease-out);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

a {
  color: inherit;
}

code {
  font-size: 0.92em;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 35;
  width: 260px;
  height: 100vh;
  max-height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 100vw;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-copy,
.brand small {
  display: block;
}

.brand-logo {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: -2px;
  margin-left: 36px;
  font-weight: 600;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
}

.nav-link {
  transition: color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
  background: #ede7da;
}

/* Subtle hover lift on the visibly interactive cards.
   Skipped on static info containers (canonical-card, panel-stack content) so motion stays meaningful */
.score-card,
.failure-card,
.fix-card,
.tier-card,
.chip-panel {
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  will-change: transform;
}

.score-card:hover,
.failure-card:hover,
.fix-card:hover,
.tier-card:hover,
.chip-panel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Hamburger → X transform (mobile only — selector specificity covers all viewports but the toggle is hidden ≥1181px) */
.mobile-nav-toggle span {
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
  transform-origin: 50% 50%;
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sidebar-note {
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.status-dot {
  margin-top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--green);
  flex: 0 0 auto;
}

main {
  grid-column: 2;
  min-width: 0;
  max-width: 100vw;
}

@supports (height: 100dvh) {
  .sidebar {
    height: 100dvh;
    max-height: 100dvh;
  }
}

.topbar {
  min-height: 86px;
  padding: 20px clamp(22px, 4vw, 56px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: rgba(246, 244, 239, 0.86);
  backdrop-filter: blur(18px);
  z-index: 20;
}

.topbar h1 {
  margin: 3px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-reference-link {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(204, 128, 102, 0.24);
  border-radius: 999px;
  background: #cc8066;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(204, 128, 102, 0.18);
  white-space: nowrap;
  transition:
    background-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out);
}

.topbar-reference-link:hover {
  background: #a8654d;
  box-shadow: 0 12px 32px rgba(204, 128, 102, 0.24);
  transform: translateY(-1px);
}

.topbar-reference-link:active {
  transform: translateY(0) scale(0.99);
}

.top-nav {
  display: none;
}

.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: fixed;
  left: min(330px, calc(100vw - 58px));
  right: auto;
  top: 118px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  z-index: 40;
  transition: background-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.mobile-nav-toggle:hover {
  background: #1f201c;
  box-shadow: 0 6px 14px rgba(20, 21, 18, 0.2);
}

.mobile-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.mobile-nav-toggle b {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.utility {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.client-pill {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 230px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.7);
}

.client-pill img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.client-pill strong,
.client-pill span {
  display: block;
}

.client-pill span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

@media (min-width: 1181px) {
  .mobile-nav-toggle {
    display: none;
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  .mobile-nav-toggle {
    left: auto;
    right: clamp(22px, 4vw, 56px);
    top: 104px;
  }
}

.hero-section {
  margin: 0 clamp(16px, 4vw, 48px) 34px;
  min-height: calc(100vh - 148px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 4vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 14%, rgba(204, 128, 102, 0.18), transparent 29%),
    linear-gradient(135deg, var(--paper) 0%, #f2eadc 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy h2 {
  max-width: 820px;
  margin: 12px 0 18px;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: manual;
  font-feature-settings: "ss01" on, "cv11" on;
}

.hero-brand-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 22px;
}

.hero-copy,
.hero-board,
.panel,
.section-heading,
.client-pill {
  min-width: 0;
}

.hero-copy p:not(.utility) {
  max-width: 760px;
  color: #4f514b;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  transition:
    background-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out);
  will-change: transform;
  cursor: pointer;
  user-select: none;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0) scale(0.99);
  transition-duration: var(--dur-fast);
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1px 2px rgba(20, 21, 18, 0.18), 0 4px 10px rgba(20, 21, 18, 0.12);
}

.button.primary:hover {
  background: #1f201c;
  box-shadow: 0 4px 10px rgba(20, 21, 18, 0.22), 0 12px 26px rgba(20, 21, 18, 0.18);
}

.button.secondary {
  background: #ebe3d4;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(20, 21, 18, 0.04);
}

.button.secondary:hover {
  background: #e2d9c6;
  box-shadow: inset 0 0 0 1px rgba(20, 21, 18, 0.08), 0 6px 16px rgba(20, 21, 18, 0.08);
}

.hero-board {
  position: relative;
  background:
    radial-gradient(120% 80% at 90% -10%, rgba(204, 128, 102, 0.08), transparent 55%),
    radial-gradient(80% 60% at 0% 100%, rgba(180, 134, 59, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(255, 253, 248, 0.7));
  border: 1px solid rgba(20, 21, 18, 0.08);
  border-radius: 8px;
  padding: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 1px 2px rgba(20, 21, 18, 0.04),
    0 20px 50px rgba(26, 25, 21, 0.1);
  overflow: hidden;
}

/* Soft top-left highlight for depth — single sharp specular hint, not a heavy glow */
.hero-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 40% at 18% 8%, rgba(255, 255, 255, 0.55), transparent 70%);
  pointer-events: none;
  border-radius: inherit;
  mix-blend-mode: screen;
  opacity: 0.6;
}

.score-ring {
  --angle: calc(var(--score) * 3.6deg);
  width: min(280px, 70vw);
  aspect-ratio: 1;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, var(--paper) 0 58%, transparent 59%),
    conic-gradient(var(--blue) 0 var(--angle), #e2dacd var(--angle) 360deg);
  transition: --score 1100ms var(--ease-out);
}

/* Animation primer: JS sets this class until the ring enters viewport,
   forcing --score to 0; removing it transitions the conic-gradient up */
.score-ring.is-pending {
  --score: 0 !important;
}

.score-ring span,
.score-ring small {
  grid-area: 1 / 1;
  display: block;
  text-align: center;
}

.score-ring span {
  font-size: 68px;
  font-weight: 800;
  transform: translateY(-12px);
}

.score-ring small {
  color: var(--muted);
  font-weight: 700;
  transform: translateY(44px);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.board-grid div {
  min-height: 96px;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.board-grid strong {
  display: block;
  font-size: 29px;
  line-height: 1;
}

.board-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.section-band {
  padding: 64px clamp(16px, 4vw, 48px);
  border-top: 1px solid rgba(20, 21, 18, 0.08);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 8px 0 10px;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.split-section .section-heading h2,
.sticky-heading h2 {
  font-size: clamp(24px, 2vw, 32px);
}

.section-heading p:not(.utility) {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

.score-radar-figure {
  margin: 0 0 28px;
  padding: 28px 24px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
}

.score-radar {
  width: 100%;
  max-width: 560px;
}

.score-radar svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.score-radar__label text {
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
  font-feature-settings: "ss01";
  letter-spacing: -0.01em;
}

.score-radar__label .score-radar__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.score-radar-cap {
  margin: 14px 0 0;
  max-width: 540px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.score-radar-cap span {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 640px) {
  .score-radar-figure {
    padding: 20px 12px 16px;
  }
  .score-radar__label text {
    font-size: 11.5px;
  }
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.score-card {
  min-height: 260px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.score-card .score {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.score-card .evidence-badge {
  align-self: flex-start;
  margin-top: 10px;
}

.score-card h3 {
  min-height: 48px;
  margin: 14px 0 10px;
  font-size: 17px;
  line-height: 1.18;
}

.score-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.score-card .score-bar {
  margin-top: auto;
  height: 8px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.score-card .score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.identity-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 16px;
}

.identity-graphic {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.graphic-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.graphic-head h3 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.confidence {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 99px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.confidence.low {
  color: var(--red);
  background: rgba(180, 84, 69, 0.12);
}

.confidence.high {
  color: var(--green);
  background: rgba(47, 125, 98, 0.12);
}

.entity-map {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 18%, rgba(204, 128, 102, 0.14), transparent 28%),
    linear-gradient(180deg, #f9fbfc, #f6f0e5);
  border: 1px solid var(--line);
  overflow: hidden;
  padding: 18px;
}

.entity-map::before {
  display: none;
}

.aligned .entity-map::before {
  display: none;
}

.fragmented .entity-map {
  background:
    radial-gradient(circle at 50% 44%, rgba(180, 84, 69, 0.22), transparent 26%),
    linear-gradient(180deg, #fbfcfd, #f8eee9);
}

.aligned .entity-map {
  background:
    radial-gradient(circle at 50% 44%, rgba(47, 125, 98, 0.2), transparent 26%),
    linear-gradient(180deg, #fbfcfd, #eef6ed);
}

.entity-center {
  position: static;
  transform: none;
  grid-column: 1 / -1;
  width: 100%;
  min-height: 0;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid rgba(20, 21, 18, 0.08);
  box-shadow: 0 12px 30px rgba(20, 21, 18, 0.08);
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
  row-gap: 4px;
  text-align: left;
  padding: 16px 22px;
  z-index: 2;
}

.entity-center img {
  grid-row: 1 / span 3;
  grid-column: 1;
  align-self: center;
}

.entity-center strong,
.entity-center span,
.entity-center .signal-list {
  grid-column: 2;
}

.chain-layer {
  display: none;
}

.chain-layer::before,
.chain-layer::after {
  content: "";
  position: absolute;
  top: var(--spine-top);
  bottom: var(--spine-bottom);
  width: 2px;
  border-radius: 999px;
  z-index: 1;
}

.chain-layer::before {
  left: var(--left-spine);
}

.chain-layer::after {
  left: var(--right-spine);
}

.chain-branch {
  position: absolute;
  left: var(--left-spine);
  width: calc(var(--right-spine) - var(--left-spine));
  top: var(--spine-top);
  height: 2px;
  border-radius: 999px;
  z-index: 1;
}

.chain-branch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -26px;
  width: 2px;
  height: 26px;
  border-radius: 999px;
  z-index: 1;
}

.broken-chain::before,
.broken-chain::after,
.broken-chain .chain-branch,
.broken-chain .chain-branch::before {
  background: rgba(180, 84, 69, 0.48);
}

.solid-chain::before,
.solid-chain::after,
.solid-chain .chain-branch,
.solid-chain .chain-branch::before {
  background: rgba(47, 125, 98, 0.5);
}

.chain-link {
  position: absolute;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(20, 21, 18, 0.12);
  z-index: 8;
}

.chain-link svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.broken-chain .chain-link {
  color: var(--red);
  border: 1px solid rgba(180, 84, 69, 0.25);
}

.broken-chain .chain-link::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 3px;
  border-radius: 99px;
  background: var(--paper);
  transform: rotate(-35deg);
}

.solid-chain .chain-link {
  color: var(--green);
  border: 1px solid rgba(47, 125, 98, 0.25);
}

.chain-link.top-left,
.chain-link.mid-left-one,
.chain-link.mid-left-two {
  left: var(--left-spine);
}

.chain-link.top-right,
.chain-link.mid-right-one,
.chain-link.mid-right-two {
  left: var(--right-spine);
}

.chain-link.top-left,
.chain-link.top-right {
  top: var(--top-link);
}

.chain-link.mid-left-one,
.chain-link.mid-right-one {
  top: var(--middle-link-one);
}

.chain-link.mid-left-two,
.chain-link.mid-right-two {
  top: var(--middle-link-two);
}

.fragmented .entity-center {
  border-color: rgba(20, 21, 18, 0.08);
}

.aligned .entity-center {
  border-color: rgba(20, 21, 18, 0.08);
}

.entity-center > img {
  width: 128px;
  height: 128px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 28%;
}

.entity-center strong,
.entity-center span {
  display: block;
}

.entity-center strong {
  font-size: 18px;
  margin-top: 0;
  letter-spacing: -0.01em;
}

.entity-center span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.signal-list {
  width: 100%;
  margin: 4px 0 0;
  padding: 10px 14px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 10px 22px rgba(20, 21, 18, 0.06);
}

.signal-list li {
  position: relative;
  padding-left: 19px;
  color: #343631;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.signal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--red);
}

.aligned .signal-list li::before {
  background: var(--green);
}

.surface-card {
  position: static;
  width: auto;
  min-height: 0;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 10px 24px rgba(20, 21, 18, 0.08);
  z-index: 4;
  overflow: hidden;
}

.surface-card::after {
  display: none;
}

.surface-head {
  min-height: 48px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, #071a2f, #103656);
}

.surface-head img,
.surface-logo {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  object-fit: contain;
}

.surface-head img.brand-icon {
  background: rgba(255, 255, 255, 0.1);
  object-fit: cover;
}

.surface-logo {
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: #18334c;
  font-weight: 900;
  font-size: 17px;
}

.surface-logo.nextdoor {
  background: #35a935;
}

.surface-logo.weloans {
  background: #7352c7;
}

.surface-head b,
.surface-head small {
  display: block;
}

.surface-head b {
  color: #fff;
  font-size: 13px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}

.surface-head small {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.2;
  font-size: 11px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.surface-body {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.field-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  font-size: 12px;
  line-height: 1.25;
}

.field-row span {
  color: #24241f;
  font-weight: 800;
}

.field-row b {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.field-row .match {
  color: #087329;
}

.field-row .drift {
  color: #d84b17;
}

.field-row .miss {
  color: #d21f1f;
}

.surface-card.good {
  border-color: rgba(47, 125, 98, 0.28);
}

.surface-card.warning {
  border-color: rgba(180, 84, 69, 0.28);
}

.surface-card.good .surface-head {
  background: linear-gradient(135deg, #092341, #123d63);
}

.surface-card.warning .surface-head {
  background: linear-gradient(135deg, #071a2f, #103656);
}

.result-box {
  margin-top: 12px;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid var(--line);
}

.result-box p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.result-box.bad {
  border-color: rgba(180, 84, 69, 0.34);
  background: rgba(180, 84, 69, 0.08);
}

.result-box.good {
  border-color: rgba(47, 125, 98, 0.34);
  background: rgba(47, 125, 98, 0.08);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.panel.tier-card {
  position: relative;
  padding: 22px 22px 22px 78px;
  min-height: 178px;
}

.tier-number {
  position: absolute;
  left: 22px;
  top: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0;
}

.tier-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.2;
}

.tier-card p {
  color: var(--muted);
  line-height: 1.48;
  margin: 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 24px;
}

.panel-stack {
  display: grid;
  gap: 16px;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(36, 32, 24, 0.05);
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-title h3 {
  margin: 0;
  font-size: 18px;
}

.panel-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.coverage-meter {
  height: 16px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--line);
  margin-bottom: 22px;
}

.coverage-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.engine-bars {
  display: grid;
  gap: 14px;
}

.engine-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 62px;
  gap: 14px;
  align-items: center;
  font-size: 14px;
}

.track {
  height: 11px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.engine-row strong:last-child {
  text-align: right;
}

.intent-board {
  display: grid;
  gap: 10px;
}

.intent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 9px 14px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.intent-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.intent-row b,
.intent-row small {
  display: block;
}

.intent-row small {
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.35;
}

.intent-status {
  font-weight: 800;
  text-align: right;
}

.intent-track {
  grid-column: 1 / -1;
  height: 10px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}

.intent-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.insight-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.insight-list article {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 20px 16px 64px;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(20, 21, 18, 0.02), 0 6px 18px rgba(20, 21, 18, 0.04);
}

.insight-list .insight-num {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #cc8066;
  color: #fff;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 4px 10px rgba(204, 128, 102, 0.25);
}

.insight-list article > b {
  display: block;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 6px;
}

.insight-list .card-more {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 720px) {
  .insight-list {
    grid-template-columns: 1fr;
  }
}

.insight-list p,
.gap-callout p,
.proof-card p {
  color: var(--muted);
  line-height: 1.5;
}

.competitor-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.competitor-map,
.clarity-map {
  display: grid;
  gap: 14px;
}

.clarity-row {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr) 88px;
  gap: 12px;
  align-items: center;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.clarity-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.clarity-row b,
.clarity-row small {
  display: block;
}

.clarity-row strong {
  text-align: right;
  font-size: 13px;
}

.clarity-row small {
  color: var(--muted);
  margin-top: 3px;
}

.clarity-track {
  position: relative;
  height: 14px;
  background: var(--line);
  border-radius: 99px;
  overflow: visible;
}

.clarity-track > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  position: relative;
  z-index: 1;
}

.clarity-track::after {
  content: "";
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: var(--cohort-avg, 50%);
  width: 0;
  border-left: 1.5px dashed var(--ink);
  opacity: 0.55;
  z-index: 2;
  pointer-events: none;
}

.clarity-num {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ink);
  opacity: 0.75;
  z-index: 3;
  letter-spacing: 0.02em;
}

.clarity-row--you {
  position: relative;
  margin: 0 -10px;
  padding: 10px 10px 13px;
  background: rgba(180, 84, 69, 0.05);
  border-radius: 8px;
  border-bottom-color: transparent;
}

.clarity-row--you + .clarity-row {
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.clarity-you-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--paper);
  background: var(--ink);
  padding: 2px 6px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 6px;
  line-height: 1;
}

.clarity-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.clarity-legend b {
  color: var(--ink);
  margin-left: 2px;
}

.clarity-legend-line {
  display: inline-block;
  width: 18px;
  height: 0;
  border-top: 1.5px dashed var(--ink);
  opacity: 0.55;
  margin-right: 2px;
}

.competitor-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 54px;
  gap: 12px;
  align-items: center;
}

.competitor-row b {
  font-size: 14px;
}

.bubble-line {
  height: 34px;
  border-radius: 99px;
  background: var(--line);
  position: relative;
}

.bubble {
  position: absolute;
  top: 50%;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  transform: translate(-50%, -50%);
  border-radius: 99px;
  background: var(--color);
  box-shadow: 0 0 0 5px rgba(255, 253, 248, 0.75);
}

.gap-callout {
  padding: 18px;
  border-radius: 8px;
  background: #f2efe7;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.mini-table {
  display: grid;
  gap: 8px;
}

.mini-row {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.mini-row small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.mini-row span {
  color: var(--muted);
  line-height: 1.35;
  font-size: 13px;
}

.control-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.control-card {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--paper);
}

.control-card h3 {
  margin: 0 0 14px;
  font-size: 21px;
}

.control-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.filter-button {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition:
    color var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out);
}

.filter-button:hover {
  color: var(--ink);
  border-color: rgba(20, 21, 18, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(20, 21, 18, 0.06);
}

.filter-button.is-selected {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 21, 18, 0.18), 0 4px 10px rgba(20, 21, 18, 0.12);
}

.filter-button.is-selected:hover {
  background: #1f201c;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(20, 21, 18, 0.22), 0 12px 26px rgba(20, 21, 18, 0.16);
}

.filter-button:active {
  transform: translateY(0) scale(0.99);
  transition-duration: var(--dur-fast);
}

.fix-queue {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.fix-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fix-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.24;
}

.fix-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.fix-card .fix-body {
  flex: 1 1 auto;
}
.fix-card .fix-time {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(20, 21, 18, 0.05);
  padding: 4px 10px;
  border-radius: 99px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fix-meta {
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 8px;
}
.fix-meta > div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}
.fix-meta dt {
  margin: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.fix-meta dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 99px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--line);
  color: #514d43;
}

.badge.fix-now {
  background: rgba(47, 125, 98, 0.14);
  color: var(--green);
}

.badge.needs-approval {
  background: rgba(180, 134, 59, 0.16);
  color: #85601f;
}

.badge.defer {
  background: rgba(111, 76, 108, 0.14);
  color: var(--plum);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.metric-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px 8px;
  border-radius: 10px;
  background: rgba(20, 21, 18, 0.025);
  min-width: 0;
  outline: none;
}

.metric-cell span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric-cell strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.metric-cell strong small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 1px;
  letter-spacing: 0;
}

.metric-cell .dots {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}

.metric-cell .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(20, 21, 18, 0.16);
}

.metric-cell .dot.is-filled {
  background: var(--ink);
}

.fix-card[data-bucket="fix-now"] .metric-cell .dot.is-filled {
  background: var(--green);
}

.fix-card[data-bucket="needs-approval"] .metric-cell .dot.is-filled {
  background: var(--blue);
}

.fix-card[data-bucket="defer"] .metric-cell .dot.is-filled {
  background: var(--plum);
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.week-card {
  background: #24241f;
  color: var(--paper);
  border-radius: 8px;
  padding: 18px;
  min-height: 255px;
}

.week-card span {
  color: #c7bfae;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.week-card h3 {
  margin: 10px 0 16px;
  font-size: 20px;
  line-height: 1.15;
}

.week-card ul {
  margin: 0;
  padding-left: 18px;
  color: #ece4d6;
  line-height: 1.45;
  font-size: 14px;
}

.draft-card {
  overflow: hidden;
}

.draft-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.draft-card summary::-webkit-details-marker {
  display: none;
}

.draft-card summary h3 {
  margin: 0;
  font-size: 20px;
}

.draft-card summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.draft-body {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  gap: 12px;
}

.draft-copy {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--bg-soft);
  color: #33342f;
  line-height: 1.52;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.proof-card span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 800;
}

.proof-card strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.16;
}

.source-drawer {
  margin-top: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.source-drawer summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}
.source-drawer.tech-handoff {
  border-color: rgba(204, 128, 102, 0.35);
  border-left: 3px solid var(--primary);
}
.source-drawer.tech-handoff summary {
  color: var(--ink);
}
.handoff-subhead {
  margin: 20px 0 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.handoff-subhead:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 12px;
}
.term-defn {
  font-style: normal;
  border-bottom: 1px dotted rgba(20, 21, 18, 0.45);
  cursor: help;
  text-decoration: none;
}
.term-defn:hover {
  border-bottom-color: var(--ink);
  background: rgba(204, 128, 102, 0.06);
}
.glossary-drawer {
  margin-top: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.glossary-drawer summary {
  cursor: pointer;
  font-weight: 800;
}
.glossary-drawer dl {
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}
.glossary-drawer dl > div {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.glossary-drawer dl > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.glossary-drawer dt {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
}
.glossary-drawer dt small {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}
.glossary-drawer dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.glossary-drawer dd b {
  color: var(--ink);
}

/* ============================================================
   60-second executive summary (top of page)
   ============================================================ */
.exec-summary {
  margin: 32px auto 0;
  padding: 32px clamp(20px, 4vw, 48px);
  max-width: 1280px;
  background: linear-gradient(180deg, rgba(20, 21, 18, 0.025), rgba(20, 21, 18, 0));
  border-bottom: 1px solid var(--line);
}
.exec-summary__head {
  margin-bottom: 24px;
  display: grid;
  gap: 8px;
}
.exec-summary__kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.exec-summary__head h2 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.exec-summary__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.exec-card {
  position: relative;
  padding: 28px 28px 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 18px;
  align-content: start;
}
.exec-card--good {
  border-top: 4px solid var(--success);
}
.exec-card--bad {
  border-top: 4px solid #b3261e;
}
.exec-card--action {
  border-top: 4px solid #1f4475;
  background: rgba(204, 128, 102, 0.04);
}
.exec-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 14px;
  color: white;
}
.exec-card--good .exec-card__icon { background: var(--success); }
.exec-card--bad .exec-card__icon { background: #b3261e; }
.exec-card--action .exec-card__icon { background: #1f4475; font-size: 11px; }
.exec-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
  font-weight: 700;
}
.exec-card ul,
.exec-card ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.exec-card ul li b,
.exec-card ol li b {
  color: var(--ink);
}
.exec-card ol {
  padding-left: 22px;
  font-variant-numeric: tabular-nums;
}
.exec-card ol li::marker {
  font-weight: 700;
  color: #1f4475;
}
.exec-card__foot {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  font-style: italic;
}
.exec-card__foot a {
  color: #1f4475;
  font-weight: 700;
  text-decoration: none;
  font-style: normal;
}
.exec-card__foot a:hover {
  text-decoration: underline;
}
.exec-time {
  display: inline-block;
  margin-left: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(20, 21, 18, 0.06);
  padding: 2px 8px;
  border-radius: 99px;
  font-style: normal;
  white-space: nowrap;
}
.exec-summary__cadence {
  margin: 24px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
@media (max-width: 880px) {
  .exec-summary__grid {
    grid-template-columns: 1fr;
  }
}

.source-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.source-list a {
  color: var(--blue);
}

.source-list code {
  font-size: 11.5px;
}

.evidence-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 99px;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(204, 128, 102, 0.12);
  color: var(--blue);
}

.evidence-badge.fact {
  color: var(--green);
  background: rgba(47, 125, 98, 0.13);
}

.evidence-badge.inference,
.evidence-badge.fact-inference {
  color: #85601f;
  background: rgba(180, 134, 59, 0.16);
}

.evidence-badge.assumption,
.evidence-badge.needs-verification {
  color: var(--plum);
  background: rgba(111, 76, 108, 0.13);
}

.score-drawer p,
.drawer-intro {
  color: var(--muted);
  line-height: 1.55;
  font-size: 12.5px;
}
.drawer-intro p {
  margin: 0 0 10px;
}
.drawer-intro p:last-child {
  margin-bottom: 0;
}
.drawer-intro b {
  color: var(--ink);
  font-weight: 600;
}

.score-breakdown {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.score-break-row,
.schema-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.4fr) minmax(0, 0.6fr);
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.score-break-row:first-child,
.schema-row:first-child {
  border-top: 0;
}

.score-break-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.failure-grid,
.wedge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.wedge-grid {
  grid-template-columns: repeat(5, minmax(190px, 1fr));
}

.failure-card,
.wedge-card,
.wshfc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  min-height: 250px;
  box-shadow: 0 12px 30px rgba(36, 32, 24, 0.05);
}

.failure-card h3,
.wedge-card h3,
.wshfc-card h3 {
  margin: 10px 0 14px;
  font-size: 20px;
  line-height: 1.14;
}

.failure-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.failure-card dt,
.wedge-proof span,
.next-move span,
.wshfc-card span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 800;
}

.failure-card dd {
  margin: 4px 0 0;
  color: #343631;
  line-height: 1.4;
  font-size: 13px;
}

.wedge-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wedge-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.wedge-top h3 {
  margin: 0;
}

.pickup,
.baseline {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 99px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  background: var(--line);
  color: #514d43;
}

.pickup.weak,
.baseline.weak,
.baseline.risky,
.baseline.weak-mixed {
  color: var(--red);
  background: rgba(180, 84, 69, 0.12);
}

.pickup.mixed,
.baseline.mixed,
.baseline.should-be-strong {
  color: #85601f;
  background: rgba(180, 134, 59, 0.16);
}

.pickup.stronger,
.baseline.strong,
.baseline.stronger {
  color: var(--green);
  background: rgba(47, 125, 98, 0.13);
}

.wedge-proof {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}

.wedge-proof strong {
  display: block;
  margin-top: 4px;
  line-height: 1.3;
}

.wedge-card p,
.next-move b,
.wshfc-card p,
.heat-takeaway,
.schema-row span {
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.next-move {
  margin-top: auto;
}

.next-move b {
  display: block;
  margin-top: 4px;
  font-weight: 600;
}

.heatmap-panel {
  overflow-x: auto;
}

.source-heatmap,
.retest-board {
  min-width: 900px;
  display: grid;
  gap: 0;
}

.heat-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) repeat(4, minmax(90px, 0.6fr)) minmax(220px, 1.3fr);
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.heat-row:first-child,
.retest-row:first-child {
  border-top: 0;
}

.heat-head,
.retest-head {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 800;
}

.heat-source b,
.heat-source span {
  display: block;
}

.heat-source span {
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
}

.heat-cell {
  justify-self: stretch;
  align-self: stretch;
  min-width: 60px;
  min-height: 52px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--line);
  color: #514d43;
  border: 1px solid rgba(20, 21, 18, 0.04);
}

.heat-cell.strong {
  background: var(--green);
  color: var(--paper);
  border-color: rgba(47, 125, 98, 0.6);
}
.heat-cell.anchored {
  background: #4a8a76;
  color: var(--paper);
  border-color: rgba(74, 138, 118, 0.6);
}
.heat-cell.review {
  background: rgba(47, 125, 98, 0.22);
  color: var(--green);
  border-color: rgba(47, 125, 98, 0.35);
}
.heat-cell.some {
  background: #d6a04f;
  color: #1f1709;
  border-color: rgba(180, 134, 59, 0.7);
}
.heat-cell.mixed {
  background: rgba(180, 134, 59, 0.3);
  color: #6b4f1a;
  border-color: rgba(180, 134, 59, 0.45);
}
.heat-cell.low {
  background: rgba(180, 84, 69, 0.2);
  color: var(--red);
  border-color: rgba(180, 84, 69, 0.4);
}
.heat-cell.risk {
  background: var(--red);
  color: var(--paper);
  border-color: rgba(180, 84, 69, 0.7);
}
.heat-cell.unknown {
  background: rgba(111, 76, 108, 0.15);
  color: var(--plum);
  border-color: rgba(111, 76, 108, 0.35);
}

.heat-row:not(.heat-head):hover {
  background: rgba(20, 21, 18, 0.025);
}

.path-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.path-step {
  position: relative;
  min-height: 124px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
  display: flex;
  align-items: center;
  color: #353631;
  font-weight: 700;
  line-height: 1.35;
}

.path-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  width: 12px;
  height: 2px;
  background: var(--line);
}

.path-step.strong {
  border-color: rgba(47, 125, 98, 0.32);
  background: rgba(47, 125, 98, 0.08);
  color: #275946;
}

.wshfc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.wshfc-card {
  min-height: 220px;
}

.wshfc-card div:not(.badge-row) {
  margin-top: 12px;
}

.wshfc-card p {
  margin: 4px 0 0;
}

.retest-section {
  margin-top: 42px;
}

.compact-heading {
  margin-bottom: 18px;
}

.compact-heading h2 {
  font-size: clamp(26px, 3vw, 40px);
}

.retest-board {
  min-width: 760px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 16px;
}

.retest-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.3fr) minmax(100px, 0.7fr) minmax(170px, 0.9fr) minmax(220px, 1.5fr);
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.retest-row b {
  color: var(--ink);
}

.retest-head em {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-left: 6px;
  padding: 2px 6px;
  border: 1px solid rgba(47, 125, 98, 0.4);
  border-radius: 99px;
  background: rgba(47, 125, 98, 0.08);
  vertical-align: middle;
}

.retest-trajectory {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.retest-spark {
  width: 100%;
  max-width: 160px;
  height: auto;
  display: block;
  overflow: visible;
}

.retest-spark-axis {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 160px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 0 4px;
}

.retest-foot {
  margin: 14px 0 4px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  font-style: italic;
}

/* === AI Overview before/after snippet mockup === */
.snippet-mock {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 16px;
  margin: 4px 0 28px;
}

.snippet-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.snippet-card--before {
  border-top: 3px solid var(--red);
}

.snippet-card--after {
  border-top: 3px solid var(--green);
}

.snippet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.snippet-engine {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.snippet-engine img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--bg);
  padding: 2px;
}

.snippet-state-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid transparent;
}

.snippet-state-badge--before {
  color: var(--red);
  background: rgba(180, 84, 69, 0.1);
  border-color: rgba(180, 84, 69, 0.3);
}

.snippet-state-badge--after {
  color: var(--green);
  background: rgba(47, 125, 98, 0.1);
  border-color: rgba(47, 125, 98, 0.3);
}

.snippet-body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
}

.snippet-body s {
  color: var(--red);
  text-decoration-color: rgba(180, 84, 69, 0.7);
  text-decoration-thickness: 2px;
  text-underline-offset: 1px;
  font-weight: 500;
}

.snippet-body strong {
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(180deg, transparent 62%, rgba(47, 125, 98, 0.18) 62%);
  padding: 0 1px;
}

.snippet-cite {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.snippet-cite-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}

.snippet-cite-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--line);
}

.snippet-cite-pill--strong {
  background: rgba(47, 125, 98, 0.1);
  color: var(--green);
  border-color: rgba(47, 125, 98, 0.3);
}

.snippet-cite-pill--weak {
  background: rgba(180, 84, 69, 0.08);
  color: var(--red);
  border-color: rgba(180, 84, 69, 0.25);
}

.snippet-cite-pill--missing {
  background: transparent;
  color: var(--muted);
  border-style: dashed;
  font-style: italic;
}

.snippet-stamp {
  position: absolute;
  bottom: 12px;
  right: -22px;
  transform: rotate(-8deg);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  padding: 3px 28px;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0.78;
}

.snippet-stamp--false {
  color: var(--red);
  background: rgba(180, 84, 69, 0.1);
  border-top: 1px solid rgba(180, 84, 69, 0.4);
  border-bottom: 1px solid rgba(180, 84, 69, 0.4);
}

.snippet-stamp--projected {
  color: var(--green);
  background: rgba(47, 125, 98, 0.1);
  border-top: 1px solid rgba(47, 125, 98, 0.4);
  border-bottom: 1px solid rgba(47, 125, 98, 0.4);
}

.snippet-arrow {
  display: grid;
  place-items: center;
  color: var(--muted);
  align-self: center;
}

.snippet-arrow svg {
  width: 60px;
  height: 24px;
  display: block;
}

@media (max-width: 880px) {
  .snippet-mock {
    grid-template-columns: 1fr;
  }
  .snippet-arrow {
    transform: rotate(90deg);
  }
}

.schema-checklist {
  display: grid;
  margin-top: 12px;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .sidebar {
    position: sticky;
    top: 0;
    left: auto;
    bottom: auto;
    z-index: 35;
    width: 100%;
    height: auto;
    max-height: none;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
    width: 100%;
    background: rgba(246, 244, 239, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(20, 21, 18, 0.08);
  }

  main {
    grid-column: 1;
  }

  .sidebar .brand {
    margin: 0;
  }

  .sidebar .brand-logo {
    width: 128px;
  }

  .sidebar .nav-list {
    display: none;
  }

  .topbar {
    position: static;
    flex-wrap: wrap;
    padding-top: 18px;
    backdrop-filter: none;
    background: transparent;
  }

  .topbar-right {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 8px;
  }

  .mobile-nav-toggle {
    display: grid;
    position: fixed;
    top: 14px;
    right: 16px;
    left: auto;
    width: 40px;
    height: 40px;
    z-index: 40;
  }

  .top-nav {
    order: 3;
    width: 100%;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .top-nav .nav-link {
    white-space: nowrap;
    background: rgba(255, 253, 248, 0.62);
  }

  .top-nav-page-link {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #cc8066;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(204, 128, 102, 0.18);
  }

  .sidebar-note {
    display: none;
  }

  .hero-section,
  .split-section,
  .competitor-layout,
  .identity-compare {
    grid-template-columns: 1fr;
  }

  .sticky-heading {
    position: static;
  }

  .fix-queue,
  .week-grid,
  .proof-grid,
  .tier-grid,
  .control-matrix,
  .failure-grid,
  .wedge-grid,
  .wshfc-grid,
  .path-flow,
  .entity-map {
    grid-template-columns: repeat(2, 1fr);
  }

  .retest-section {
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  .sidebar {
    display: flex;
    padding: 10px 16px;
  }

  .brand {
    margin: 0;
  }

  .sidebar .brand-logo,
  .brand-logo {
    width: 120px;
  }

  .nav-list {
    display: none;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    position: static;
    padding-top: 18px;
    padding-right: 64px;
  }

  .topbar > div:first-child,
  .topbar-right {
    width: 100%;
  }

  .topbar-right {
    display: block;
    gap: 8px;
  }

  .mobile-nav-toggle {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: fixed;
    top: 12px;
    right: 14px;
    left: auto;
    width: 40px;
    height: 40px;
  }

  /* Mobile menu — always rendered so it can transition; visibility/pointer-events
     gate interactivity, opacity + translate gate appearance */
  .top-nav {
    display: grid;
    position: fixed;
    top: 60px;
    left: 12px;
    right: 12px;
    z-index: 38;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(246, 244, 239, 0.97);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(20, 21, 18, 0.08);
    box-shadow: 0 24px 60px rgba(20, 21, 18, 0.18);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
    transform-origin: top right;
    pointer-events: none;
    visibility: hidden;
    transition:
      opacity var(--dur-base) var(--ease-out),
      transform var(--dur-base) var(--ease-spring),
      visibility 0s linear var(--dur-base);
  }

  .top-nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
    transition:
      opacity var(--dur-base) var(--ease-out),
      transform var(--dur-base) var(--ease-spring),
      visibility 0s linear 0s;
  }

  /* Each link enters with a small stagger after the menu opens */
  .top-nav .nav-link {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  }
  .top-nav.is-open .nav-link {
    opacity: 1;
    transform: none;
  }
  .top-nav.is-open .nav-link:nth-child(1) { transition-delay: 60ms; }
  .top-nav.is-open .nav-link:nth-child(2) { transition-delay: 100ms; }
  .top-nav.is-open .nav-link:nth-child(3) { transition-delay: 140ms; }
  .top-nav.is-open .nav-link:nth-child(4) { transition-delay: 180ms; }
  .top-nav.is-open .nav-link:nth-child(5) { transition-delay: 220ms; }
  .top-nav.is-open .nav-link:nth-child(6) { transition-delay: 260ms; }
  .top-nav.is-open .nav-link:nth-child(7) { transition-delay: 300ms; }
  .top-nav.is-open .nav-link:nth-child(8) { transition-delay: 340ms; }

  .top-nav .nav-link {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 10px;
  }

  .top-nav-page-link {
    grid-column: 1 / -1;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #cc8066;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  }

  .top-nav.is-open .top-nav-page-link {
    opacity: 1;
    transform: none;
    transition-delay: 380ms;
  }

  .client-pill {
    width: calc(100% - 56px);
    max-width: none;
    min-width: 0;
  }

  .client-pill strong,
  .client-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-reference-link {
    display: none;
  }

  .hero-section {
    margin-inline: 12px;
    padding: 22px;
    min-height: auto;
    max-width: calc(100vw - 24px);
  }

  .hero-copy h2 {
    font-size: 35px;
    line-height: 1;
  }

  .hero-copy p:not(.utility) {
    font-size: 17px;
  }

  .score-ring {
    width: min(280px, 58vw);
  }

  .board-grid,
  .fix-queue,
  .week-grid,
  .proof-grid,
  .tier-grid,
  .control-matrix,
  .failure-grid,
  .wedge-grid,
  .wshfc-grid,
  .path-flow,
  .entity-map {
    grid-template-columns: 1fr;
  }

  .entity-center {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 22px 18px;
    gap: 14px;
  }

  .entity-center > img {
    grid-column: 1;
    grid-row: auto;
    width: 110px;
    height: 110px;
    margin: 0 auto;
  }

  .entity-center strong,
  .entity-center span,
  .entity-center .signal-list {
    grid-column: 1;
  }

  .signal-list {
    grid-template-columns: 1fr;
  }

  .path-step:not(:last-child)::after {
    display: none;
  }

  .score-break-row,
  .schema-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .score-grid {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .engine-row,
  .competitor-row,
  .clarity-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .engine-row strong:last-child {
    text-align: left;
  }

  .identity-graphic {
    padding: 14px;
  }

  .graphic-head {
    display: block;
  }

  .confidence {
    margin-top: 10px;
  }

  .entity-map {
    min-height: auto;
    gap: 10px;
    padding: 12px;
    grid-template-columns: 1fr;
  }

  .entity-map::before,
  .chain-layer {
    display: none;
  }

  .entity-center,
  .surface-card {
    width: 100%;
  }

  .entity-center {
    min-height: 168px;
    border-radius: 8px;
  }

  .surface-card::after {
    display: none;
  }

  .panel.tier-card {
    padding: 72px 18px 18px 18px;
  }
}

/* === New components added in design pass === */

/* Hero — review pools strip + ring label */
.hero-board .ring-label {
  margin: 0 0 6px;
  text-align: center;
}

.review-pools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0 6px;
}

.review-pools > div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.65);
}

.review-pools strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

.review-pools strong small {
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
}

.review-pools span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

/* Identity — canonical source-of-truth strip */
.canonical-card {
  margin: 0 0 28px;
  padding: 22px 26px;
  background: linear-gradient(180deg, rgba(47, 125, 98, 0.05), rgba(47, 125, 98, 0.02));
  border-color: rgba(47, 125, 98, 0.22);
}

.canonical-card .utility {
  margin: 0 0 12px;
  color: var(--green);
}

.canonical-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 22px;
}

.canonical-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.canonical-grid .span-2 {
  grid-column: span 2;
}

.canonical-grid span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.canonical-grid b {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .canonical-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .canonical-grid .span-2 {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .canonical-grid {
    grid-template-columns: 1fr;
  }
  .canonical-grid .span-2 {
    grid-column: span 1;
  }
}

/* Buyer Proof — GBP chip cloud */
.chip-panel {
  margin-bottom: 22px;
  padding: 22px 26px;
}

.chip-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.chip-panel-head h3 {
  margin: 6px 0 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
  max-width: 56ch;
}

.chip-source {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
}

.chip b {
  font-weight: 600;
}

.chip i {
  font-style: normal;
  padding: 1px 8px;
  background: rgba(47, 125, 98, 0.12);
  color: var(--green);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.chip-foot {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 70ch;
}

/* Buyer Proof — Reddit callout */
.reddit-callout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px 26px;
}

.reddit-mark {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #ff4500;
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.reddit-callout h3 {
  margin: 6px 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}

.reddit-callout p:not(.utility) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .reddit-callout {
    grid-template-columns: 1fr;
  }
}

/* Competitors — Michelle Fort callout + Territorial peer callout (share layout) */
.michelle-callout,
.territorial-callout {
  margin-bottom: 22px;
  padding: 24px 28px;
}

.michelle-callout > h3,
.territorial-callout > h3 {
  margin: 4px 0 18px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}

.michelle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}

.michelle-col {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.michelle-col span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.michelle-col b {
  display: block;
  font-size: 14px;
  margin-bottom: 12px;
}

.michelle-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.michelle-col li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}

.michelle-col li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.45;
}

.michelle-col li.match::before { background: var(--green); opacity: 1; }
.michelle-col li.miss::before { background: var(--red); opacity: 1; }

.michelle-foot {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 80ch;
}

@media (max-width: 720px) {
  .michelle-grid {
    grid-template-columns: 1fr;
  }
}

/* AI errors — engine logo header + quote line */
/* === AI-error receipts — captured-answer card pattern === */
.failure-card.receipt {
  position: relative;
  padding: 20px 20px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  box-shadow: 0 1px 0 rgba(20, 21, 18, 0.02), 0 8px 22px rgba(20, 21, 18, 0.05);
}

.receipt__chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.receipt__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.receipt--gemini .receipt__avatar { background: #e8edf6; }
.receipt--google-aio .receipt__avatar { background: #eaf1ff; }
.receipt--chatgpt .receipt__avatar { background: #e6f2ec; }
.receipt--perplexity .receipt__avatar { background: #f0eee9; }

.receipt__avatar img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 0;
}

.receipt__id {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.receipt__engine {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

.receipt__meta {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 3px;
  text-transform: uppercase;
}

.receipt__stamp {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--red);
  border: 1.5px solid var(--red);
  padding: 3px 7px 2px;
  border-radius: 3px;
  text-transform: uppercase;
  transform: rotate(-3deg);
  background: rgba(180, 84, 69, 0.06);
  white-space: nowrap;
}

.receipt__bubble {
  position: relative;
  margin: 0;
  padding: 12px 14px 12px 18px;
  background: #f1ede2;
  border-radius: 6px;
  font-style: italic;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}

.receipt__bubble::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background: var(--red);
  opacity: 0.7;
}

.receipt__truth {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  border-left: 3px solid var(--green);
  padding: 4px 0 4px 12px;
}

.receipt__truth-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  padding-top: 1px;
}

.receipt__truth p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 500;
}

.receipt h3.receipt__headline {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
}

.receipt__risk {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.receipt__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.receipt__fix {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink);
  flex: 1 1 auto;
  min-width: 0;
}
.receipt__fix b {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
}

/* === Tooltip pattern — applies to any element with data-tip === */
[data-tip] {
  position: relative;
  cursor: help;
  outline: none;
}

[data-tip]:hover,
[data-tip]:focus-visible {
  z-index: 60;
}

[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px) scale(0.96);
  transform-origin: 50% 100%;
  width: max-content;
  max-width: 280px;
  padding: 9px 12px;
  background: #1a1c18;
  color: #f5f1e8;
  font-size: 12px;
  font-weight: 500;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
  text-align: left;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(20, 21, 18, 0.22);
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  z-index: 60;
  transition:
    opacity 160ms var(--ease-out),
    transform 240ms var(--ease-spring);
}

[data-tip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(6px) scale(0.9);
  border: 6px solid transparent;
  border-top-color: #1a1c18;
  pointer-events: none;
  opacity: 0;
  z-index: 60;
  transition:
    opacity 160ms var(--ease-out),
    transform 240ms var(--ease-spring);
}

[data-tip]:hover::after,
[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
[data-tip]:hover::before,
[data-tip]:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Some badges sit at the very top of cards; flip the tooltip to render below */
.score-card [data-tip]::after,
.score-break-row [data-tip]::after,
.failure-card .badge-row [data-tip]::after,
.fix-card .badge-row [data-tip]::after,
.canonical-card [data-tip]::after,
.chip-panel [data-tip]::after,
.score-ring[data-tip]::after {
  bottom: auto;
  top: calc(100% + 10px);
  transform-origin: 50% 0%;
  transform: translateX(-50%) translateY(-6px) scale(0.96);
}

.score-card [data-tip]::before,
.score-break-row [data-tip]::before,
.failure-card .badge-row [data-tip]::before,
.fix-card .badge-row [data-tip]::before,
.canonical-card [data-tip]::before,
.chip-panel [data-tip]::before,
.score-ring[data-tip]::before {
  bottom: auto;
  top: calc(100% + 4px);
  border-top-color: transparent;
  border-bottom-color: #1a1c18;
  transform: translateX(-50%) translateY(-6px) scale(0.9);
}

.score-card [data-tip]:hover::after,
.score-card [data-tip]:focus-visible::after,
.score-card [data-tip]:hover::before,
.score-card [data-tip]:focus-visible::before,
.score-break-row [data-tip]:hover::after,
.score-break-row [data-tip]:focus-visible::after,
.score-break-row [data-tip]:hover::before,
.score-break-row [data-tip]:focus-visible::before,
.failure-card .badge-row [data-tip]:hover::after,
.failure-card .badge-row [data-tip]:focus-visible::after,
.failure-card .badge-row [data-tip]:hover::before,
.failure-card .badge-row [data-tip]:focus-visible::before,
.fix-card .badge-row [data-tip]:hover::after,
.fix-card .badge-row [data-tip]:focus-visible::after,
.fix-card .badge-row [data-tip]:hover::before,
.fix-card .badge-row [data-tip]:focus-visible::before,
.score-ring[data-tip]:hover::after,
.score-ring[data-tip]:focus-visible::after,
.score-ring[data-tip]:hover::before,
.score-ring[data-tip]:focus-visible::before {
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Make focus state visible for keyboard users without a heavy ring */
[data-tip]:focus-visible {
  box-shadow: 0 0 0 2px rgba(20, 21, 18, 0.18);
}

/* Methodology line under Sources headline */
.methodology-line {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
}
.methodology-note {
  display: inline-block;
  margin-left: 6px;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  font-style: italic;
  opacity: 0.85;
}

/* === Hero board — premium scope metrics === */
.board-grid.premium {
  border: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(20, 21, 18, 0.04) inset;
}

.board-grid.premium > div {
  min-height: 104px;
  padding: 18px 20px;
  border: 0;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 253, 248, 0.78));
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.board-grid.premium > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 0 0 2px 0;
  opacity: 0.85;
}

.board-grid.premium > div:nth-child(1)::before { background: var(--blue); }
.board-grid.premium > div:nth-child(2)::before { background: var(--green); }
.board-grid.premium > div:nth-child(3)::before { background: var(--gold); }
.board-grid.premium > div:nth-child(4)::before { background: var(--ink); }

.board-grid.premium strong {
  display: block;
  font-size: clamp(34px, 4.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.board-grid.premium span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
  letter-spacing: 0.005em;
}

.board-grid.premium .board-tag {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink);
  opacity: 0.62;
  letter-spacing: 0;
  font-style: italic;
}

/* === Engine attestation strip === */
.engine-strip {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.engine-strip-label {
  margin: 0 0 14px;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.engine-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.engine-row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px 10px;
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.55);
  border: 1px solid rgba(20, 21, 18, 0.04);
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.engine-row li:hover {
  background: rgba(255, 253, 248, 0.92);
  border-color: rgba(20, 21, 18, 0.1);
  transform: translateY(-1px);
}

.engine-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  width: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(20, 21, 18, 0.08);
  box-shadow: 0 1px 2px rgba(20, 21, 18, 0.06);
  overflow: hidden;
}

.engine-mark img {
  height: 16px;
  width: 16px;
  object-fit: contain;
  display: block;
}

.engine-monogram {
  background: linear-gradient(135deg, #20b8a6, #167a8a);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
  border: 0;
}

.engine-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.005em;
  white-space: nowrap;
}

/* Mobile — keep all four engines but compact, and stack scope metrics 1-up if very narrow */
@media (max-width: 520px) {
  .board-grid.premium > div {
    min-height: 92px;
    padding: 16px 16px;
  }
  .board-grid.premium strong {
    font-size: 30px;
  }
  .engine-row {
    gap: 4px;
  }
  .engine-row li {
    padding: 10px 4px 8px;
  }
  .engine-name {
    font-size: 10px;
  }
}

/* ============================================================
   Expanded share-of-voice (§5b)
   ============================================================ */
.reframe-callout {
  margin: 0 0 24px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: rgba(204, 128, 102, 0.08);
  border-left: 3px solid var(--primary);
  border-radius: 0 10px 10px 0;
}
.reframe-callout b {
  color: var(--ink);
  font-weight: 700;
}
.card-discipline {
  margin-top: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  background: rgba(146, 64, 14, 0.06);
  border-left: 2px solid rgba(146, 64, 14, 0.4);
  border-radius: 0 6px 6px 0;
}
.card-discipline b {
  color: var(--ink);
}
.surface-map {
  margin-top: 24px;
}
.surface-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.surface-cell {
  padding: 16px;
  background: rgba(20, 21, 18, 0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 8px;
}
.surface-cell b {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.35;
}
.surface-cell p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.surface-cell p b {
  font-size: inherit;
  color: var(--ink);
}
.surface-cell p i {
  font-style: italic;
  color: var(--ink);
  font-weight: 600;
}
.surface-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  width: fit-content;
}
.surface-tag.controlled {
  background: rgba(204, 128, 102, 0.12);
  color: #1f4475;
}
.surface-tag.working {
  background: rgba(34, 119, 78, 0.12);
  color: var(--success);
}
.surface-tag.diagnostic {
  background: rgba(146, 64, 14, 0.12);
  color: #7a3a0a;
}
.surface-tag.influenced {
  background: rgba(133, 100, 4, 0.12);
  color: #6b4d02;
}
.surface-foot {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
@media (max-width: 720px) {
  .surface-grid {
    grid-template-columns: 1fr;
  }
}
.inclusion-floor {
  border-left: 3px solid var(--red);
  padding-left: 22px;
}
.inclusion-floor .utility {
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}
.inclusion-floor h3 {
  margin: 6px 0 16px;
  font-size: 22px;
  line-height: 1.25;
}
/* Inclusion floor — two metric tiles */
.floor-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.floor-tile {
  display: grid;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid rgba(180, 84, 69, 0.18);
  background: rgba(180, 84, 69, 0.04);
  border-radius: 14px;
  position: relative;
}
.floor-tile--miss {
  border-color: rgba(180, 84, 69, 0.32);
  background: rgba(180, 84, 69, 0.07);
}
.floor-tile--warn {
  border-color: rgba(196, 130, 56, 0.32);
  background: rgba(196, 130, 56, 0.06);
}
.floor-tile-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.floor-tile-value {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.floor-tile--warn .floor-tile-value {
  color: #b06a1f;
}
.floor-tile-value small {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 2px;
}
.floor-tile-meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.floor-foot {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.floor-foot b {
  color: var(--ink);
}

/* Share-of-voice matrix table */
.sov-matrix-panel {
  display: grid;
  gap: 16px;
}
.sov-matrix-wrap {
  overflow-x: auto;
  margin: 0 -4px;
  padding: 0 4px;
}
.sov-matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.sov-matrix thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.sov-mhead-num {
  text-align: right;
}
.sov-mhead-bars {
  width: 38%;
  min-width: 160px;
}
.sov-mhead-num.n {
  width: 48px;
}
.sov-mrow > th,
.sov-mrow > td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.sov-mrow:last-child > th,
.sov-mrow:last-child > td {
  border-bottom: 0;
}
.sov-mrow-name {
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
}
.sov-mrow-arrow {
  color: var(--muted);
  margin-right: 2px;
}
.sov-mrow-star {
  display: inline-block;
  margin-left: 4px;
  color: var(--primary, #cc8066);
  font-size: 12px;
  vertical-align: 1px;
}
.sov-mrow-bars {
  padding-top: 10px;
  padding-bottom: 10px;
}
.sov-mtrack {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(20, 21, 18, 0.06);
  overflow: hidden;
}
.sov-mtrack + .sov-mtrack {
  margin-top: 6px;
}
.sov-mtrack > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  width: 0;
  transition: width 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sov-mtrack--jason > span {
  background: rgba(204, 128, 102, 0.55);
}
.sov-mtrack--teddy > span {
  background: var(--primary, #cc8066);
}
.sov-mrow-num {
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.sov-mrow-num small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 1px;
}
.sov-mrow-num.n {
  font-weight: 500;
  color: var(--muted);
  font-size: 13px;
}
.sov-mrow.is-sub .sov-mrow-name {
  padding-left: 22px;
  font-weight: 500;
  color: var(--muted);
  font-size: 13px;
}
.sov-mrow.is-featured {
  background: rgba(204, 128, 102, 0.04);
}
.sov-mrow.is-featured .sov-mrow-name {
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
}
.sov-mrow.is-featured .sov-mrow-num {
  font-weight: 700;
}
.sov-mrow.is-featured .sov-mtrack--teddy > span {
  box-shadow: 0 0 0 2px rgba(204, 128, 102, 0.18);
}
.sov-mrow.teddy-wins .sov-mrow-num.teddy {
  color: var(--primary, #cc8066);
}

.sov-aio-note {
  margin: 0;
  padding: 14px 16px;
  background: rgba(204, 128, 102, 0.06);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* Peer comparison — three benchmarks in one card */
.peer-comparison .peer-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.peer-row {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(220px, 280px);
  gap: 28px;
  align-items: start;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}
.peer-row:last-child {
  border-bottom: 0;
}
.peer-row.is-featured {
  background: rgba(204, 128, 102, 0.04);
  border-radius: 10px;
  padding: 22px 14px;
  margin: 2px -10px;
  border-bottom: 1px solid rgba(204, 128, 102, 0.18);
}
.peer-row.is-featured + .peer-row {
  border-top: 0;
}
.peer-row__tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 10px;
  background: rgba(20, 21, 18, 0.05);
  border-radius: 999px;
  margin-bottom: 8px;
}
.peer-row__tag.is-featured {
  background: var(--primary, #cc8066);
  color: #fff;
}
.peer-row__id b {
  display: block;
  font-size: 15.5px;
  margin-bottom: 2px;
}
.peer-row__id small {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}
.peer-row__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}
.peer-row__facts li {
  padding-left: 16px;
  position: relative;
}
.peer-row__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(20, 21, 18, 0.18);
}
.peer-row__facts li.match {
  color: var(--ink);
}
.peer-row__facts li.match::before {
  background: var(--primary, #cc8066);
}
.peer-row__facts li.miss {
  color: var(--ink);
}
.peer-row__facts li.miss::before {
  background: var(--red, var(--danger));
}
.peer-row__facts li b {
  color: var(--ink);
}
.peer-row__verdict {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  padding-left: 14px;
  border-left: 2px solid rgba(204, 128, 102, 0.3);
}
.peer-row__verdict b {
  color: var(--ink);
}
.peer-row.is-featured .peer-row__verdict {
  border-left-color: var(--primary, #cc8066);
  color: var(--ink);
}

.gap-callout-inline {
  margin: 0 0 14px;
  padding: 12px 16px;
  background: rgba(204, 128, 102, 0.05);
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.gap-callout-inline strong {
  color: var(--ink);
  display: inline;
}

@media (max-width: 900px) {
  .peer-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 4px;
  }
  .peer-row.is-featured {
    padding: 20px 14px;
  }
}

/* WSHFC callout inside Playbook */
.wshfc-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 32px;
  padding: 22px 26px;
  margin-bottom: 24px;
  background: rgba(204, 128, 102, 0.05);
  border: 1px solid rgba(204, 128, 102, 0.16);
  border-radius: 14px;
}
.wshfc-callout__head .utility {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  margin: 0 0 4px;
}
.wshfc-callout__head h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
}
.wshfc-callout__head p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.wshfc-callout__head p b {
  color: var(--ink);
}
.wshfc-callout__path {
  list-style: none;
  counter-reset: wshfc;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  align-self: center;
}
.wshfc-callout__path li {
  counter-increment: wshfc;
  position: relative;
  padding: 8px 12px 8px 36px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
  background: rgba(20, 21, 18, 0.02);
  border-radius: 8px;
}
.wshfc-callout__path li::before {
  content: counter(wshfc);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 21, 18, 0.08);
  color: var(--muted);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.wshfc-callout__path li.is-target {
  background: rgba(204, 128, 102, 0.08);
  color: var(--ink);
  font-weight: 600;
}
.wshfc-callout__path li.is-target::before {
  background: var(--primary, #cc8066);
  color: #fff;
}
@media (max-width: 760px) {
  .wshfc-callout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px 20px;
  }
}

/* Wedge-language pilot sub-panel inside Visibility */
.pilot-panel .panel-title {
  align-items: flex-start;
}
.pilot-panel .panel-title h3 {
  margin: 4px 0 0;
}
.pilot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 4px;
}
.pilot-grid__col .utility {
  margin: 0 0 12px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pilot-grid__col + .pilot-grid__col {
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
/* Compact 4-card hit-rate strip — fills the row at full width */
.pilot-grid__col--engines #engineBars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.pilot-grid__col--engines .engine-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 8px;
  padding: 12px 14px;
  background: rgba(20, 21, 18, 0.025);
  border-radius: 10px;
}
.pilot-grid__col--engines .engine-row > strong:first-of-type {
  grid-column: 1;
  grid-row: 1;
  font-size: 13px;
  color: var(--ink);
  align-self: center;
}
.pilot-grid__col--engines .engine-row > .track {
  grid-column: 1 / -1;
  grid-row: 2;
}
.pilot-grid__col--engines .engine-row > strong:last-of-type {
  grid-column: 2;
  grid-row: 1;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--ink);
}
.pilot-takeaways {
  margin-top: 18px;
}
.sov-aio-note b {
  color: var(--ink);
}

/* Per-engine notes drawer */
.sov-notes-drawer summary {
  cursor: pointer;
}
.sov-notes {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}
.sov-note-row b {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--ink);
}
.sov-note-row.is-sub b {
  color: var(--muted);
  font-weight: 500;
  padding-left: 8px;
}
.sov-note-story {
  margin: 0 0 4px;
  padding-left: 10px;
  border-left: 2px solid var(--primary, #cc8066);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 600;
}
.sov-note-detail {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.sov-notes-aside {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .inclusion-floor {
    padding-left: 16px;
  }
  .floor-tile {
    padding: 16px 18px;
  }
  .floor-tile-value {
    font-size: 26px;
  }
  .sov-matrix thead th {
    font-size: 10px;
    padding: 0 8px 8px;
  }
  .sov-mrow > th,
  .sov-mrow > td {
    padding: 12px 8px;
  }
  .sov-mhead-bars {
    width: 30%;
    min-width: 110px;
  }
  .sov-mrow-name {
    font-size: 13px;
    white-space: normal;
  }
}

/* ============================================================
   Escalation desk (Tier 2-F)
   Ready-to-send messages for fixes Teddy can't action alone.
   ============================================================ */
.escalations-block {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px dashed var(--line);
}
.escalations-block .compact-heading h3 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 4px 0 8px;
}
.escalations-panel {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.escalation-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary, #cc8066);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 150ms ease;
}
.escalation-card[open] {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.escalation-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}
.escalation-card summary::-webkit-details-marker {
  display: none;
}
.escalation-summary-left h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.escalation-meta {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}
.escalation-chevron {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(204, 128, 102, 0.08);
  color: var(--primary, #cc8066);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  transition: transform 150ms ease;
}
.escalation-card[open] .escalation-chevron {
  transform: rotate(45deg);
}
.escalation-body {
  padding: 4px 20px 20px;
  border-top: 1px solid var(--line);
}
.escalation-intro {
  margin: 16px 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.escalation-fixlist {
  margin: 6px 0 18px;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.escalation-fixlist li {
  margin-bottom: 4px;
}
.escalation-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.escalation-message-head .utility {
  margin: 0;
}
.escalation-copy-btn {
  appearance: none;
  border: 1px solid var(--primary, #cc8066);
  background: var(--primary, #cc8066);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 150ms ease, transform 100ms ease;
}
.escalation-copy-btn:hover {
  background: #a8654d;
  border-color: #a8654d;
}
.escalation-copy-btn:active {
  transform: scale(0.97);
}
.escalation-copy-btn.is-copied {
  background: #15803d;
  border-color: #15803d;
}
.escalation-message {
  margin: 0;
  padding: 16px;
  background: #fafaf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 360px;
  overflow-y: auto;
}
@media (max-width: 600px) {
  .escalation-card summary {
    padding: 14px 16px;
  }
  .escalation-body {
    padding: 4px 16px 16px;
  }
  .escalation-message-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .escalation-copy-btn {
    width: 100%;
  }
  .escalation-message {
    font-size: 12px;
    max-height: 280px;
  }
}

/* ============================================================
   Sticky "This week" bar (Tier 2-E)
   Appears below the topbar when the exec summary scrolls out of view.
   ============================================================ */
.this-week-bar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px clamp(22px, 4vw, 56px);
  background: rgba(246, 244, 239, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 180ms ease,
    visibility 0s linear 220ms;
}
.this-week-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 180ms ease,
    visibility 0s linear 0s;
}
.this-week-bar__kicker {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary, #cc8066);
  padding: 4px 10px;
  border: 1px solid rgba(204, 128, 102, 0.32);
  border-radius: 999px;
  background: rgba(204, 128, 102, 0.08);
  white-space: nowrap;
}
.this-week-bar__list {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
  overflow: hidden;
}
.this-week-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  min-width: 0;
  flex: 1 1 auto;
}
.this-week-bar__n {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}
.this-week-bar__title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.this-week-bar__time {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 999px;
  white-space: nowrap;
}
.this-week-bar__link {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary, #cc8066);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(204, 128, 102, 0.32);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease;
}
.this-week-bar__link:hover {
  background: var(--primary, #cc8066);
  color: #fff;
}
@media (max-width: 1100px) {
  .this-week-bar__time {
    display: none;
  }
}
@media (max-width: 880px) {
  .this-week-bar {
    /* Sit below the mobile sidebar brand strip (~62px sticky top). */
    top: 62px;
    gap: 10px;
    padding: 8px 16px;
  }
  .this-week-bar__list {
    gap: 8px;
  }
  .this-week-bar__title {
    font-size: 12px;
  }
  .this-week-bar__item:nth-child(n + 2) {
    /* Show only the first action on narrow screens. */
    display: none;
  }
  .this-week-bar__kicker::after {
    content: " (3 moves)";
    font-weight: 700;
    margin-left: 2px;
  }
}
@media (max-width: 520px) {
  .this-week-bar__kicker {
    font-size: 10px;
    padding: 3px 8px;
  }
  .this-week-bar__link {
    font-size: 11.5px;
    padding: 5px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .this-week-bar {
    transition: opacity 120ms linear, visibility 0s linear 120ms;
    transform: none;
  }
  .this-week-bar.is-visible {
    transition: opacity 120ms linear;
  }
}

/* ============================================================
   Cadence pill — companion to .live-pill (Tier 2-G)
   Surfaces the 90-day refresh expectation at the top of the hero.
   ============================================================ */
.hero-pills {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: fit-content;
}
.cadence-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(204, 128, 102, 0.06);
  border: 1px solid rgba(204, 128, 102, 0.28);
  border-radius: 9999px;
  width: fit-content;
  cursor: help;
}
.cadence-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 12px;
  color: var(--primary, #cc8066);
  /* Counter the surrounding letter-spacing on the glyph. */
  letter-spacing: 0;
  font-weight: 700;
  line-height: 1;
}
@media (max-width: 520px) {
  .hero-pills {
    gap: 6px;
  }
  .cadence-pill {
    font-size: 0.625rem;
    padding: 5px 10px;
    letter-spacing: 0.12em;
  }
}

/* ============================================================
   "How to read this report" drawer (Tier 2-I)
   Sits between exec-summary and hero. Collapsed by default —
   gives first-time readers a 90-second orientation.
   ============================================================ */
.how-to-read {
  margin: 24px auto 0;
  max-width: 1180px;
  padding: 0;
  background: linear-gradient(180deg, rgba(204, 128, 102, 0.04), rgba(204, 128, 102, 0.02));
  border: 1px solid rgba(204, 128, 102, 0.22);
  border-radius: 12px;
  overflow: hidden;
}
.how-to-read summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
}
.how-to-read summary::-webkit-details-marker {
  display: none;
}
.how-to-read__badge {
  flex: 0 0 auto;
  font-family: var(--font-mono, ui-monospace);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1d4e89;
  padding: 4px 10px;
  background: rgba(204, 128, 102, 0.12);
  border: 1px solid rgba(204, 128, 102, 0.32);
  border-radius: 999px;
  white-space: nowrap;
}
.how-to-read__title {
  flex: 1 1 auto;
  font-weight: 700;
  color: var(--ink);
}
.how-to-read__chevron {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(204, 128, 102, 0.12);
  color: #1d4e89;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  transition: transform 150ms ease;
}
.how-to-read[open] .how-to-read__chevron {
  transform: rotate(45deg);
}
.how-to-read__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 8px 22px 22px;
  border-top: 1px solid rgba(204, 128, 102, 0.18);
  background: rgba(255, 255, 255, 0.5);
}
.how-to-read__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.how-to-read__col > .utility {
  margin: 12px 0 0;
  color: #1d4e89;
  font-weight: 800;
}
.how-to-read__col ul,
.how-to-read__col ol {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
}
.how-to-read__col li {
  margin-bottom: 6px;
}
.how-to-read__col li b {
  color: var(--ink);
}
.how-to-read__pointer {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
}
.how-to-read__pointer a {
  color: #1d4e89;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.how-to-read__col a {
  color: #1d4e89;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 880px) {
  .how-to-read {
    margin: 20px 16px 0;
  }
  .how-to-read__body {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 4px 18px 18px;
  }
  .how-to-read summary {
    padding: 12px 18px;
    font-size: 13.5px;
  }
  .how-to-read__title {
    font-size: 13.5px;
  }
}
@media (max-width: 520px) {
  .how-to-read__badge {
    font-size: 9.5px;
    padding: 3px 8px;
  }
}

/* ============================================================
   Section-collapsed pattern (Tier 2-J)
   Wraps the body content of a section behind an inline expander,
   keeping the section heading visible above.
   Used on diagnostic sections that don't drive direct action
   (scorecard, source-heatmap, control-matrix, wshfc-path).
   ============================================================ */
.section-collapsed {
  margin-top: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.section-collapsed > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(20, 21, 18, 0.02), rgba(20, 21, 18, 0));
}
.section-collapsed > summary::-webkit-details-marker {
  display: none;
}
.section-collapsed > summary:hover {
  background: linear-gradient(180deg, rgba(204, 128, 102, 0.05), rgba(204, 128, 102, 0));
}
.section-collapsed[open] > summary {
  border-bottom: 1px solid var(--line);
  background: rgba(204, 128, 102, 0.04);
}
.section-collapsed__chevron {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(204, 128, 102, 0.1);
  color: var(--primary, #cc8066);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  transition: transform 150ms ease;
}
.section-collapsed[open] .section-collapsed__chevron {
  transform: rotate(45deg);
}
/* Give expanded content some breathing room without forcing a panel wrapper. */
.section-collapsed[open] > :not(summary) {
  padding: 20px 22px;
}
.section-collapsed[open] > .panel {
  padding: 0;
  margin: 20px 22px;
}
.section-collapsed[open] > figure,
.section-collapsed[open] > .path-flow {
  padding: 20px 22px 0;
}
.section-collapsed[open] > .source-drawer {
  margin: 0 22px 22px;
}
.section-collapsed[open] > :first-of-type[id$="Grid"],
.section-collapsed[open] > [id$="Matrix"],
.section-collapsed[open] > [id$="Path"] {
  padding: 0 22px 22px;
}
@media (max-width: 880px) {
  .section-collapsed > summary {
    padding: 12px 18px;
    font-size: 13.5px;
  }
  .section-collapsed[open] > :not(summary) {
    padding: 16px 18px;
  }
}
