:root {
  --blue: #ffd84a;
  --blue-strong: #ffdf70;
  --blue-soft: #302e1c;
  --ink: #eceee6;
  --muted: #b0b6a8;
  --line: #414638;
  --canvas: #141615;
  --surface: #1a1d1a;
  --surface-raised: #242920;
  --green: #9bd7b8;
  --green-soft: #203329;
  --amber: #efbd68;
  --amber-soft: #362d1e;
  --red: #f4a29a;
  --red-soft: #3b2523;
  --purple: #c9b6f0;
  --purple-soft: #30293e;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

.skip-link { position: fixed; top: -80px; left: 16px; z-index: 20; padding: 12px 16px; background: var(--blue); color: var(--canvas); }
.skip-link:focus { top: 12px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; padding: 16px max(24px, calc((100vw - 1072px) / 2)); border-bottom: 1px solid var(--line); background: var(--canvas); }
.site-identity { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-identity strong { font: 700 15px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .035em; }
.site-identity strong span { margin-left: 8px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.site-header-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; font-size: 12px; }
.site-header-actions > span { color: var(--muted); }
.site-header-actions a { font-weight: 650; text-decoration: none; }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  padding: 10px max(20px, calc((100vw - 1120px) / 2));
  overflow-x: auto;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.01em;
}

nav .brand::before {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: var(--muted);
  content: "4";
  font-size: 14px;
  font-weight: 800;
}

nav a {
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
  line-height: 20px;
  text-decoration: none;
}

nav a:hover { background: var(--blue-soft); color: var(--blue-strong); }
nav a.active { background: var(--blue-soft); color: var(--blue); }

a {
  color: var(--blue-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--blue); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

main {
  width: min(100%, 1120px);
  min-height: calc(100vh - 142px);
  margin: 0 auto;
  padding: 42px 24px 64px;
}

.brand-hero { padding: 0 0 28px; margin-bottom: 24px; border-bottom: 1px solid #726235; }
.hero-context { margin: 0 0 12px; color: var(--amber); font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
.incept-wordmark { margin: 4px 0 24px; color: var(--blue); font: 900 96px/.95 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.04em; text-shadow: 2px 3px 0 #816326; }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero-bottom h1 { max-width: 30ch; font-size: 28px; font-weight: 600; }
.hero-bottom .sub { max-width: 62ch; margin: 10px 0 0; font-size: 14px; }
.primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; flex: none; min-height: 44px; padding: 12px 18px; border: 1px solid var(--blue); border-radius: 5px; background: var(--blue); color: var(--canvas); font-size: 13px; font-weight: 700; text-decoration: none; }
.primary-link:hover { background: #ffe67d; color: var(--canvas); }
.overview-note { max-width: 80ch; color: var(--muted); font-size: 12px; }
.about-lead { max-width: 65ch; color: var(--muted); font-size: 17px; }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 28px 0; }
.about-grid article { padding-top: 20px; border-top: 1px solid var(--line); }
.about-grid h2 { font-size: 19px; }
.about-grid p { color: var(--muted); }
.install-section { scroll-margin-top: 72px; }
.install-section pre { padding: 16px; overflow-x: auto; border: 1px solid var(--line); background: var(--canvas); }
.install-section pre code { background: none; color: var(--ink); padding: 0; font-size: 12px; }
.install-section li { margin: 14px 0; color: var(--muted); }
.install-section strong { color: var(--ink); }
.about-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }

h1 {
  max-width: 22ch;
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.sub {
  max-width: 72ch;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}

p {
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.65;
  text-wrap: pretty;
}

section {
  margin: 18px 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

section h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-wrap: balance;
}

section > p { max-width: 72ch; }

ul { margin: 8px 0; padding-left: 22px; }
li { margin: 7px 0; font-size: 14px; line-height: 1.55; }

.badge {
  display: inline-block;
  margin: 2px 3px 2px 0;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.b-green { background: var(--green-soft); color: var(--green); }
.b-amber { background: var(--amber-soft); color: var(--amber); }
.b-red { background: var(--red-soft); color: var(--red); }
.b-blue { background: var(--blue-soft); color: var(--blue-strong); }
.b-purple { background: var(--purple-soft); color: var(--purple); }
.b-gray { background: var(--surface-raised); color: var(--muted); }

table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
}

th {
  padding: 10px 12px;
  background: var(--surface-raised);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .035em;
  text-align: left;
  text-transform: uppercase;
}

td {
  padding: 11px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  line-height: 1.45;
  vertical-align: top;
}

td + td,
th + th { border-left: 1px solid var(--line); }

tbody tr:hover td { background: var(--surface); }

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--surface-raised);
  color: var(--muted);
  font-size: .9em;
  overflow-wrap: anywhere;
}

small { color: var(--muted); line-height: 1.45; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.filters button {
  min-height: 36px;
  padding: 7px 13px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
}

.filters button:hover { border-color: var(--line); background: var(--surface); }
.filters button.on { border-color: var(--blue); background: var(--blue); color: var(--muted); }

.filter-block {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 8px 0;
}

.filter-label {
  width: 48px;
  flex: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.filter-block .filters { margin: 0; }
.result-count { margin: 14px 0 8px; color: var(--muted); font-size: 13px; }

.course-page main { width: min(100%, 920px); }
.course-page section p,
.course-page section li { max-width: 72ch; }

.course-page section:not(#eta) > ul {
  display: grid;
  gap: var(--space-sm);
}

.course-page section:not(#eta) > ul > li { margin: 0; }

.course-page #eta {
  border-color: var(--line);
  background: var(--surface);
}

.course-page #eta > h2 { color: var(--blue-strong); }

.course-activity {
  margin: 0 0 var(--space-xl);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.course-activity h2 { margin: 0 0 4px; font-size: 17px; }
.course-activity > p { margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.course-activity .update-item { grid-template-columns: 1fr; gap: 6px; padding: 13px 0; }
.course-activity .update-meta { gap: 2px; }
.course-activity .update-item p { font-size: 13px; line-height: 1.5; }
.update-evidence { white-space: nowrap; font-size: 12px; font-weight: 700; }

@media (min-width: 1180px) {
  .course-page main {
    width: min(calc(100% - 48px), 1232px);
    display: grid;
    grid-template-columns: minmax(0, 920px) 280px;
    column-gap: 32px;
  }

  .course-page main > * { grid-column: 1; }
  .course-page main > .course-activity {
    position: sticky;
    top: 76px;
    grid-column: 2;
    grid-row: 2 / span 6;
    align-self: start;
    max-height: calc(100vh - 96px);
    overflow: auto;
  }
}

.eta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0 8px;
}

.eta div {
  flex: 0 1 auto;
  min-width: 150px;
  padding: 0 0 7px;
}

.eta b {
  display: block;
  margin-top: 4px;
  color: var(--blue-strong);
  font-size: 24px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.eta span { color: var(--muted); font-size: 12px; font-weight: 650; }

.eta-details {
  margin-top: 17px;
  border-top: 1px solid var(--line);
}

.eta-details summary {
  display: list-item;
  min-height: 44px;
  padding: 12px 0 2px;
  cursor: pointer;
  color: var(--blue-strong);
  font-size: 14px;
  font-weight: 700;
}

.eta-details summary:hover { color: var(--blue); }
.eta-details-body {
  max-width: 72ch;
  padding-top: var(--space-sm);
}

.eta-details-body h3 {
  margin: var(--space-lg) 0 var(--space-xs);
  font-size: 17px;
  line-height: 1.35;
  text-wrap: balance;
}

.eta-intro {
  margin: 0 0 var(--space-sm);
  color: var(--muted);
}

.work-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-list > li {
  max-width: none;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  line-height: 1.65;
}

.work-list > li:first-child { border-top: 0; }

.work-list > li > b:first-child {
  display: block;
  max-width: 62ch;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}

.work-list > li > p {
  max-width: 68ch;
  margin: var(--space-sm) 0 0;
  line-height: 1.65;
}

.work-measure {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface-raised);
  color: var(--muted);
  font-weight: 650;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.work-estimate {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-size: 13px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.45;
}

.eta-basis,
.eta-exclusions {
  margin: var(--space-lg) 0 0;
  padding: var(--space-md) var(--space-lg);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
}

.eta-basis {
  background: var(--canvas);
  color: var(--muted);
}

.eta-exclusions {
  border: 1px solid var(--line);
  background: var(--amber-soft);
  color: var(--muted);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.section-head h2 { margin-bottom: 0; }
.section-head a { flex: none; font-size: 13px; font-weight: 650; }
.last-updated { margin: 8px 0 4px; color: var(--muted); font-size: 13px; }

.update-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.update-item {
  display: grid;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 18px;
}

.update-item > *, .agent-latest { min-width: 0; overflow-wrap: anywhere; }
.update-item:first-child { border-top: 0; }
.update-meta { display: flex; flex-direction: column; gap: 4px; }
.update-meta strong { color: var(--blue-strong); font-size: 13px; }
.update-meta time { color: var(--muted); font-size: 12px; line-height: 1.45; }
.update-item p { max-width: 68ch; margin: 0; line-height: 1.6; }
.updates-sec .update-item p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.update-list-full { padding: 0 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.update-list-full .update-item { gap: var(--space-xl); padding: 20px 0; }
.update-empty { padding: 16px 0; color: var(--muted); }

.note {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--muted);
  font-size: 13px;
}

.lessons-page main { max-width: 1040px; }

.lesson-ledger {
  padding: 0;
  overflow: hidden;
}

.lesson-ledger > h2 {
  margin: 0;
  padding: 21px 24px;
  background: var(--surface-raised);
  color: var(--muted);
  font-size: 20px;
}

.lesson-table {
  border: 0;
  border-radius: 0;
}

.lesson-table th {
  padding: 11px 20px;
  background: var(--surface-raised);
  color: var(--muted);
}

.lesson-table td { padding: 18px 20px; font-size: 14px; }

.lesson-table td:first-child {
  width: 44%;
  background: var(--surface);
  color: var(--muted);
  line-height: 1.5;
}

.lesson-table td:last-child { color: var(--muted); line-height: 1.6; }
.lesson-title { display: block; margin-bottom: 7px; font-size: 15px; line-height: 1.4; }
.lesson-context { display: block; color: var(--muted); font-size: 14px; line-height: 1.58; }
.application-lead { display: block; margin-bottom: 6px; color: var(--muted); font-weight: 750; }
.lesson-details { margin-top: 6px; }
.lesson-details summary {
  min-height: 44px;
  padding: 11px 0;
  cursor: pointer;
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.lesson-details summary:hover { color: var(--blue); }
.lesson-details[open] summary { margin-bottom: 3px; }
.lesson-table td a { font-weight: 650; }
.lesson-table tbody tr:hover td:first-child { background: var(--surface-raised); }
.lesson-table tbody tr:hover td:last-child { background: var(--surface); }

.agent-page main { width: min(100%, 980px); }

.agent-brief {
  border-color: var(--line);
  background: var(--surface);
}

.agent-brief .section-head { align-items: center; }

.agent-facts {
  display: flex;
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.agent-facts > div {
  min-width: 0;
  flex: 1 1 0;
  padding: 14px 16px;
}

.agent-facts > div + div { border-left: 1px solid var(--line); }

.agent-facts dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.agent-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.agent-latest { padding-top: 16px; }
.agent-latest > strong { display: block; font-size: 14px; }
.agent-latest p { max-width: 78ch; margin: 5px 0 7px; color: var(--muted); }
.agent-latest a { font-size: 13px; font-weight: 700; }

.agent-handoff { border-color: var(--line); }

.agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.agent-action {
  min-height: 44px;
  padding: 10px 15px;
  cursor: pointer;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}

.agent-action:hover:not(:disabled) { border-color: var(--blue-strong); background: var(--blue-strong); }
.agent-action:active:not(:disabled) { background: #123483; }

.agent-action-secondary { background: var(--surface); color: var(--blue-strong); }
.agent-action-secondary:hover:not(:disabled) { background: var(--blue-soft); color: var(--blue-strong); }

.agent-action:disabled {
  cursor: wait;
  border-color: var(--line);
  background: var(--surface-raised);
  color: var(--muted);
}

.agent-action-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.agent-source-list { margin-top: 16px; border-top: 1px solid var(--line); }

.agent-source {
  display: grid;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
}

.agent-source h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.agent-source p { max-width: 68ch; margin: 4px 0 0; color: var(--muted); }
.agent-source-link { font-size: 13px; font-weight: 750; white-space: nowrap; }
.agent-history-list { margin-top: 10px; }

.reading-guide dl { max-width: 72ch; margin: 0; }

.reading-guide dl > div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.reading-guide dl > div:first-child { border-top: 0; padding-top: 4px; }
.reading-guide dt { font-size: 14px; font-weight: 750; line-height: 1.4; }
.reading-guide dd { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

@media (min-width: 761px) {
  .claims-page #tbl { table-layout: fixed; }
  .claims-page #tbl td { overflow-wrap: anywhere; }
  .claims-page #tbl th:nth-child(1) { width: 20%; }
  .claims-page #tbl th:nth-child(2) { width: 10%; }
  .claims-page #tbl th:nth-child(3) { width: 36%; }
  .claims-page #tbl th:nth-child(4) { width: 16%; }
  .claims-page #tbl th:nth-child(5) { width: 18%; }
}

footer {
  padding: 22px 20px 28px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 760px) {
  nav {
    min-height: 56px;
    padding: 8px 14px;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  nav .brand {
    order: -2;
    flex: 0 0 28px;
    width: 28px;
    gap: 0;
    margin-right: 4px;
    overflow: hidden;
    font-size: 0;
  }

  nav a {
    min-height: 44px;
    padding: 12px 10px;
  }

  nav a.active { order: 0; }

  main { padding: 30px 16px 48px; }
  h1 { font-size: 28px; }
  .sub { margin-bottom: 22px; }
  section { padding: 19px 18px; }

  .filter-block { display: block; margin: 14px 0; }
  .filter-label { display: block; width: auto; margin-bottom: 7px; }

  .update-item {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 15px 0;
  }

  .update-meta { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; }
  .update-list-full { padding: 0 18px; }
  .updates-sec .update-item p { -webkit-line-clamp: 4; }

  .work-list > li { padding: 16px 0; }
  .work-estimate { width: 100%; }

  table:not(.lesson-table) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table:not(.lesson-table) tbody {
    display: table;
    width: 100%;
    min-width: 680px;
  }

  #tbl {
    display: block;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  #tbl tbody { display: block; min-width: 0; }
  #tbl tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  #tbl tr:first-child { display: none; }
  #tbl td {
    display: grid;
    min-width: 0;
    padding: 7px 0;
    border: 0;
    background: transparent;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
    overflow-wrap: anywhere;
  }
  #tbl td > * { min-width: 0; overflow-wrap: anywhere; }
  #tbl td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .lesson-ledger { padding: 0; }
  .lesson-ledger > h2 { padding: 19px 18px; font-size: 18px; }

  .lesson-table,
  .lesson-table tbody,
  .lesson-table tr,
  .lesson-table td { display: block; width: 100%; }

  .lesson-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .lesson-table tr { border-top: 1px solid var(--line); }
  .lesson-table tbody tr:first-child { border-top: 0; }

  .lesson-table td {
    padding: 14px 18px 17px;
    border: 0;
    font-size: 14px;
  }

  .lesson-table td:first-child { width: 100%; padding-top: 17px; }

  .lesson-table td::before {
    display: block;
    margin-bottom: 6px;
    color: var(--blue-strong);
    content: "Lesson learned";
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .035em;
    text-transform: uppercase;
  }

  .lesson-table td:nth-child(2)::before { content: "Applied going forward"; }

  .agent-facts { display: block; }
  .agent-facts > div { padding: 13px 0; }
  .agent-facts > div + div { border-top: 1px solid var(--line); border-left: 0; }

  .agent-source {
    align-items: start;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .agent-source-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .agent-action { transition: none; }
}

/* Shared course-state timeline; routine content updates live in timeline.js. */
.timeline-sec { margin: 8px 0 20px; padding: 22px 24px 24px; }

.timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.timeline-head h2 { margin-bottom: 5px; }

.timeline-sub {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.timeline-snapshot {
  flex: none;
  padding-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.timeline-canvas {
  position: relative;
  height: 250px;
  margin: 0 -2px;
  padding-top: 4px;
}

.timeline-rail {
  position: absolute;
  top: 17px;
  right: 7%;
  left: 7%;
  height: 2px;
  background: #c8d1df;
}

.timeline-stages {
  position: absolute;
  inset: 0 3% auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
}

.timeline-stage {
  display: flex;
  min-width: 0;
  padding: 0;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.timeline-stage:hover,
.timeline-stage:focus-visible,
.timeline-stage[aria-pressed="true"] { color: var(--blue-strong); }

.timeline-stage:focus-visible { outline: 0; }

.timeline-stage-point {
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  transition: border-color 180ms ease-out, background 180ms ease-out, color 180ms ease-out, transform 180ms ease-out;
}

.timeline-stage:hover .timeline-stage-point,
.timeline-stage:focus-visible .timeline-stage-point,
.timeline-stage[aria-pressed="true"] .timeline-stage-point {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-strong);
  transform: translateY(-2px);
}

.timeline-stage:focus-visible .timeline-stage-point {
  box-shadow: 0 0 0 3px var(--blue);
}

.timeline-stage:last-child .timeline-stage-point {
  width: auto;
  min-width: 92px;
  padding: 0 12px;
  border-radius: 999px;
  border-color: var(--blue);
  background: var(--blue);
  color: var(--muted);
  white-space: nowrap;
}

.timeline-stage-label {
  max-width: 100px;
  color: currentColor;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}

.timeline-stage:last-child .timeline-stage-label { visibility: hidden; }

.timeline-course {
  position: absolute;
  z-index: 3;
  top: var(--timeline-course-y);
  left: var(--timeline-course-x);
  display: inline-flex;
  min-height: 31px;
  max-width: 170px;
  padding: 6px 10px;
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  background: var(--timeline-course-color);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transform: translateX(-50%);
  transition: filter 180ms ease-out, transform 180ms ease-out;
}

.timeline-course::before {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: calc(var(--timeline-course-y) - 21px);
  background: var(--timeline-course-color);
  content: "";
  opacity: .55;
  pointer-events: none;
}

.timeline-course::after {
  position: absolute;
  top: calc(17px - var(--timeline-course-y) - 4px);
  left: 50%;
  width: 9px;
  height: 9px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--timeline-course-color);
  box-shadow: 0 0 0 1px var(--timeline-course-color);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.timeline-course:hover,
.timeline-course:focus-visible,
.timeline-course[aria-pressed="true"] {
  filter: brightness(.93) saturate(1.08);
  transform: translateX(-50%) translateY(-2px);
}

.timeline-course-short { display: none; }

.timeline-detail {
  display: grid;
  min-height: 108px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--canvas);
  grid-template-columns: minmax(150px, .58fr) minmax(0, 1.42fr);
  gap: 10px 20px;
  align-items: start;
}

.timeline-detail-kicker {
  margin: 0 0 4px;
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.timeline-detail-title {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}

.timeline-detail-copy,
.timeline-detail-foot {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.timeline-detail-foot { margin-top: 4px; color: var(--muted); }

.timeline-detail-move {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 5px 10px;
  margin: 9px 0 0;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.timeline-detail-move span {
  color: var(--blue-strong);
  font-weight: 750;
}

.timeline-detail-move strong { font-weight: 650; }
.timeline-detail-move[hidden] { display: none; }

.timeline-detail-link {
  display: inline-block;
  margin-top: 7px;
  font-size: 13px;
  font-weight: 700;
}

.timeline-detail-link[hidden] { display: none; }

.timeline-eta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: baseline;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.timeline-eta strong { color: var(--ink); font-size: 14px; }
.timeline-eta[hidden] { display: none; }

@media (max-width: 620px) {
  .timeline-sec { padding: 19px 16px 18px; }
  .timeline-head { display: block; margin-bottom: 8px; }
  .timeline-snapshot { display: block; margin-top: 6px; white-space: normal; }
  .timeline-canvas { height: 250px; }
  .timeline-rail { right: 6%; left: 6%; }
  .timeline-stages { right: 0; left: 0; }
  .timeline-stage-point { width: 31px; height: 31px; }
  .timeline-stage:last-child .timeline-stage-point { min-width: 72px; padding: 0 6px; font-size: 9px; }
  .timeline-stage-label { display: none; }
  .timeline-course { max-width: 78px; padding: 6px 8px; font-size: 11px; }
  .timeline-course-long { display: none; }
  .timeline-course-short { display: inline; }
  .timeline-detail { grid-template-columns: 1fr; gap: 8px; }
  .timeline-detail-move { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-stage-point,
  .timeline-course { transition: none; }
}

/* All-course state cards and retrospective work maps. */
.course-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.course-summary-card {
  position: relative;
  display: block;
  min-width: 0;
  padding: 16px;
  border: 1px solid color-mix(in oklch, var(--course-color) 24%, var(--line));
  border-top: 3px solid var(--course-color);
  border-radius: 11px;
  background: color-mix(in oklch, var(--course-color) 5%, var(--surface));
  color: var(--ink);
  text-decoration: none;
}

.course-summary-card:hover {
  border-color: var(--course-color);
  color: var(--ink);
  box-shadow: 0 4px 8px rgba(23, 32, 51, .08);
}

.course-card-headline {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  align-items: baseline;
}

.course-card-status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  background: color-mix(in oklch, var(--course-color) 14%, var(--surface));
  color: var(--course-color);
}

.course-card-landed {
  min-width: 0;
  flex: 1 1 280px;
  color: color-mix(in oklch, var(--course-color) 16%, var(--ink));
  font-size: 12px;
  line-height: 1.45;
}

.course-card-landed strong { color: var(--ink); }

.course-summary-card h3 {
  margin: 9px 0 11px;
  font-size: 17px;
  line-height: 1.3;
  color: var(--course-color);
}
.course-summary-card p { margin: 12px 0 8px; color: color-mix(in oklch, var(--course-color) 16%, var(--ink)); font-size: 13px; line-height: 1.5; }
.course-summary-card > small { font-size: 11px; }

.phase-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin: 14px 0 16px;
}

.phase-state {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: 8px;
  background: var(--surface);
}

.phase-state-active { border-left-color: var(--blue); }
.phase-state-closed { border-left-color: var(--green); }
.phase-state-blocked { border-left-color: var(--amber); }
.phase-state-locked { border-left-color: var(--line); }
.phase-state > div { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.phase-state strong { color: var(--blue-strong); font-size: 15px; }
.phase-state span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .035em; text-align: right; }
.phase-state h3,
.course-summary-card .phase-state h3 { margin: 5px 0 4px; color: var(--ink); font-size: 12px; line-height: 1.3; }
.phase-state p,
.course-summary-card .phase-state p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.phase-course-list > article + article { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.phase-course-list > article > h3 { margin-bottom: 0; }

.gate-evidence-sec { border-color: var(--line); background: var(--surface); }
.gate-evidence-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.gate-evidence-head h2 { margin-top: 7px; }
.gate-observed { color: var(--muted); font-size: 11px; white-space: nowrap; }
.gate-evidence-note { margin-bottom: 15px; color: var(--muted); }

.work-footprint {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.work-footprint > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.work-footprint strong,
.work-footprint span { display: block; }
.work-footprint strong { color: var(--blue-strong); font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.work-footprint span { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.3; }

.gate-evidence-list { border-top: 1px solid var(--line); }
.gate-evidence-row {
  display: grid;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
}

.gate-evidence-row:last-child { padding-bottom: 2px; border-bottom: 0; }
.gate-evidence-id { min-width: 0; color: var(--purple); }
.gate-evidence-id > span { display: grid; width: 42px; height: 42px; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-size: 10px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.gate-evidence-id small { display: block; margin-top: 7px; color: currentColor; font-size: 10px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; text-wrap: pretty; }
.gate-evidence-closed .gate-evidence-id { color: var(--green); }
.gate-evidence-active .gate-evidence-id { color: var(--blue-strong); }
.gate-evidence-status { color: var(--purple); font-size: 10px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.gate-evidence-closed .gate-evidence-status { color: var(--green); }
.gate-evidence-active .gate-evidence-status { color: var(--blue-strong); }
.gate-evidence-row h3 { margin: 4px 0 3px; font-size: 15px; line-height: 1.35; }
.gate-evidence-row p { margin: 0 0 4px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.gate-evidence-row a { font-size: 12px; font-weight: 700; }

@media (max-width: 760px) {
  .course-card-grid { grid-template-columns: 1fr; }
  .phase-state-grid { grid-template-columns: 1fr; }
  .gate-evidence-head { display: block; }
  .gate-observed { display: block; margin: -3px 0 10px; white-space: normal; }
}

@media (max-width: 520px) {
  .work-footprint { grid-template-columns: 1fr; }
  .gate-evidence-row { grid-template-columns: 46px minmax(0, 1fr); gap: 10px; }
  .gate-evidence-id small { display: none; }
}

/* Overview control board: exceptions first, then compact operating state. */
.needs-human-strip {
  margin: 8px 0 10px;
  padding: 16px 18px;
  border-width: 2px;
}

.needs-human-strip.is-clear { border-color: var(--line); background: var(--green-soft); }
.needs-human-strip.has-items { border-color: var(--line); background: var(--amber-soft); }
.needs-human-strip.is-hold { border-color: var(--line); background: var(--red-soft); }
.needs-human-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.needs-human-head h2 { margin: 0; font-size: 22px; }
.needs-human-head p { margin: 0; color: var(--muted); font-size: 12px; }
.needs-human-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}
.needs-human-item { display: flex; gap: 9px; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.needs-human-course { flex: none; align-self: flex-start; padding: 3px 6px; border: 1px solid color-mix(in oklch, var(--course-color) 30%, var(--surface)); border-radius: 999px; background: color-mix(in oklch, var(--course-color) 14%, var(--surface)); color: var(--course-color); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.needs-human-copy { min-width: 0; }
.needs-human-copy strong { display: block; font-size: 12px; line-height: 1.35; }
.needs-human-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }

.automation-frontier {
  margin: 0 0 10px;
  padding: 10px 14px;
  border-color: var(--line);
  background: var(--surface);
}
.automation-frontier-summary { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; cursor: pointer; }
.automation-frontier-summary strong { color: var(--blue-strong); font-size: 14px; }
.automation-frontier-summary span { color: var(--muted); font-size: 11px; }
.automation-frontier-rule { margin: 12px 0 8px; color: var(--ink); font-size: 12px; font-weight: 650; }
.automation-step-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.automation-step { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.automation-step-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.automation-step-head strong { color: var(--ink); font-size: 12px; }
.automation-step-status { flex: none; padding: 2px 6px; border-radius: 999px; background: var(--surface-raised); color: var(--muted); font-size: 9px; font-weight: 750; }
.automation-step.is-automated { border-color: var(--line); background: var(--green-soft); }
.automation-step.is-automated .automation-step-status { background: var(--green-soft); color: var(--green); }
.automation-step p { margin: 6px 0 3px; color: var(--muted); font-size: 11px; }
.automation-step small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.automation-frontier.is-hold { border-color: var(--line); background: var(--surface); }
.automation-frontier.is-hold strong { color: var(--muted); }

#course-release-timeline { margin-top: 0; padding: 16px 18px 18px; }
#course-release-timeline .timeline-head { margin-bottom: 4px; }
#course-release-timeline .course-card-grid { margin-top: 10px; }
.course-summary-card { padding: 13px; }
.course-summary-card.is-stale { border-color: var(--line); border-top-color: var(--line); background: var(--surface); filter: grayscale(.72); }
.course-summary-card.is-stale .course-card-status { background: var(--surface-raised); color: var(--muted); }
.course-card-status { line-height: 1.35; }
.course-card-landed,
.course-card-next { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.course-card-next { min-height: 39px; }
.rate-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.rate-tiles > span { min-width: 0; padding: 7px 8px; border-radius: 7px; background: var(--canvas); }
.rate-tiles strong,
.rate-tiles small { display: block; }
.rate-tiles strong { overflow: hidden; color: var(--ink); font-size: 14px; line-height: 1.2; text-overflow: ellipsis; }
.rate-tiles small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.25; }
.update-writer { color: var(--muted); font-size: 11px; line-height: 1.35; }

@media (max-width: 760px) {
  .needs-human-head,
  .automation-frontier-summary { display: block; }
  .needs-human-head p,
  .automation-frontier-summary span { display: block; margin-top: 4px; }
  .needs-human-items,
  .automation-step-list { grid-template-columns: 1fr; }
  .comparison-grid,
  .funnel-grid { grid-template-columns: 1fr; }
}

/* ASAP is a presentation crosswalk over the existing native process. */
.asap-section { padding: 20px 18px; }
.asap-section .section-head { flex-wrap: wrap; gap: 8px; }
.asap-intro { max-width: 82ch; margin: 10px 0 18px; color: var(--muted); }
.asap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.asap-card {
  display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 16px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.asap-card:hover { border-color: var(--blue); }
.asap-card[aria-expanded="true"] { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 3px var(--blue); }
.asap-card-heading { display: flex; align-items: center; gap: 8px; width: 100%; }
.asap-letter { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--blue-soft); color: var(--blue-strong); font-size: 18px; font-weight: 750; }
.asap-title { font-size: 16px; font-weight: 750; }
.asap-toggle { margin-left: auto; color: var(--blue-strong); }
.asap-card[aria-expanded="true"] .asap-toggle { transform: rotate(45deg); }
.asap-summary { font-size: 13px; line-height: 1.5; }
.asap-coverage { margin-top: auto; padding-top: 4px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .01em; }
.asap-positions { display: grid; gap: 4px; min-height: 32px; color: var(--blue-strong); font-size: 11px; line-height: 1.4; }
.asap-filter-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 0; }
.asap-filter-status { margin: 0; color: var(--muted); font-size: 12px; }
.asap-reset { flex: none; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--blue-strong); font: inherit; font-size: 12px; cursor: pointer; }
.asap-reset:hover { background: var(--blue-soft); }
.asap-drawer { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.asap-drawer h3 { margin: 0 0 10px; font-size: 19px; }
.asap-proof { max-width: 82ch; color: var(--muted); }
.asap-unassigned { padding: 10px 12px; border-left: 3px solid var(--line); background: var(--surface-raised); color: var(--muted); font-size: 12px; }
.asap-table-scroll { overflow-x: auto; }
.asap-coverage-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.asap-coverage-table caption { padding: 12px 0 10px; color: var(--ink); font-weight: 700; text-align: left; }
.asap-coverage-table th, .asap-coverage-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 12px; }
.asap-coverage-table thead th { background: var(--surface-raised); }
.asap-coverage-table tbody th { font-weight: 550; }
.asap-coverage-table td { color: var(--muted); }
.asap-native-scope { margin-bottom: 0; color: var(--muted); font-size: 11px; }
.course-summary-card .course-asap-position { color: var(--muted); font-size: 11px; line-height: 1.45; }
.asap-drawer[hidden], .course-summary-card[hidden] { display: none; }
.builder-install { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.builder-install summary { padding: 4px 0; color: var(--blue-strong); font-size: 13px; font-weight: 650; cursor: pointer; }
.builder-install pre { max-width: 100%; overflow-x: auto; padding: 12px; border-radius: 8px; background: var(--canvas); font-size: 12px; }
.builder-install p { color: var(--muted); font-size: 12px; }
@media (max-width: 940px) { .asap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .asap-section { padding: 18px 14px; }
  .asap-grid { grid-template-columns: 1fr; }
  .asap-card { gap: 10px; }
  .asap-filter-controls { align-items: flex-start; flex-direction: column; gap: 10px; }
  .asap-drawer { padding: 14px; }
  .asap-coverage-table th, .asap-coverage-table td { padding: 8px 5px; font-size: 11px; }
}

/* Economics & Executive ROI Styles */
.badge.b-gold { background: var(--amber-soft); color: var(--muted); border: 1px solid var(--line); }

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 8px;
  padding: 12px 14px;
}

.kpi-card.highlight {
  border-top-color: var(--amber);
  background: var(--amber-soft);
}

.kpi-card.link-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top-color: var(--green);
  background: var(--green-soft);
}

.kpi-label {
  display: block;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 4px;
}

.kpi-value {
  display: block;
  font-size: 16px;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.25;
}

.kpi-sub {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
}

.kpi-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
}
.kpi-link:hover { text-decoration: underline; }

.econ-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}

.econ-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  border-top: 3px solid var(--blue);
}

.econ-card.highlight {
  border-top-color: var(--amber);
  background: var(--amber-soft);
}

.econ-label {
  display: block;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 6px;
}

.econ-val {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.econ-meta {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}

.econ-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}

.econ-section h2 {
  margin-top: 0;
  font-size: 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.lead {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.comp-box {
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.comp-box.manual {
  background: var(--amber-soft);
  border-left: 4px solid var(--line);
}

.comp-box.factory {
  background: var(--green-soft);
  border-left: 4px solid var(--green);
}

.comp-box h3 { margin-top: 0; font-size: 15px; }
.comp-box ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }

.econ-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.econ-table th {
  background: var(--surface);
  border-bottom: 2px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  font-weight: 650;
  color: var(--muted);
}
.econ-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
}

.callout-quote {
  font-style: italic;
  background: var(--surface-raised);
  border-left: 4px solid var(--blue);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin: 14px 0;
  color: var(--blue-strong);
}

.funnel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.funnel-step {
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.funnel-step.free { border-top: 3px solid var(--green); }
.funnel-step.mid { border-top: 3px solid var(--blue); }
.funnel-step.cold { border-top: 3px solid var(--purple); }
.funnel-step .step-num {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.funnel-step h4 { margin: 0 0 6px; font-size: 14px; }
.funnel-step p { margin: 0 0 8px; font-size: 13px; }
.funnel-step small { font-size: 11px; color: var(--muted); line-height: 1.4; display: block; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 6px;
  text-align: center;
}

.stat-box.accent { background: var(--green-soft); border-color: var(--line); }
.stat-num {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.stat-box.accent .stat-num { color: var(--green); }
.stat-desc { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }

.meta-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  background: var(--surface);
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.gov-list { padding-left: 20px; font-size: 13px; line-height: 1.7; }

/* State colors retain readable contrast on the Builder's dark surfaces. */
.filters button.on, .agent-action { color: var(--canvas); }
.agent-action:hover, .agent-action:active:not(:disabled) { background: #ffe67d; color: var(--canvas); }
.agent-action:disabled { background: var(--surface-raised); color: var(--muted); }
.course-summary-card[data-course-card="humgeo"] { --course-color: #8bd3b1 !important; }
.course-summary-card[data-course-card="apwh"] { --course-color: #e9c181 !important; }
.course-summary-card[data-course-card="apush"] { --course-color: #f0a699 !important; }
.course-summary-card[data-course-card="psych"] { --course-color: #cab1eb !important; }
.course-summary-card.is-stale { filter: none; }
.course-summary-card.is-stale .course-card-status, .needs-human-course { color: var(--ink); }
.course-summary-card { background: var(--surface); }
.course-card-status { background: var(--surface-raised); }
.course-card-landed, .course-summary-card p { color: var(--ink); }
.rate-tiles > span { background: var(--canvas); }
.lesson-ledger > h2, .lesson-table th, .application-lead { color: var(--ink); }
.badge.b-gold { color: var(--amber); }
.asap-card[aria-expanded="true"] { box-shadow: none; }
.asap-card { border-radius: 6px; }
.asap-drawer { background: var(--surface-raised); }
.asap-unassigned { border-left-width: 1px; color: var(--muted); }
.asap-coverage-table th, .asap-coverage-table td { background: transparent; }
.population-coverage { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.population-coverage h3 { margin: 0 0 14px; font-size: 20px; }
.population-selector-label { margin-right: 12px; font-size: 13px; }
.population-selector { max-width: 100%; min-height: 44px; padding: 8px 32px 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.population-summary { max-width: 78ch; color: var(--muted); font-size: 12px; line-height: 1.6; }
.population-recorded td strong { display: block; color: var(--ink); font-size: 14px; line-height: 1.5; }
.population-evidence-kind { display: block; margin: 5px 0; font-size: 11px; }
.population-recorded details { max-width: 52ch; margin-top: 8px; }
.population-recorded summary { cursor: pointer; color: var(--blue-strong); }
.population-source { display: inline-block; margin: 4px 14px 4px 0; }
.population-pending td { font-style: italic; }
.asap-unassigned a { display: block; margin-top: 8px; }
.kpi-strip { padding: 0; border: 0; background: transparent; }
.kpi-card { border-top-width: 1px; background: var(--surface); }
.kpi-label { text-transform: none; letter-spacing: 0; }
section { border-radius: 8px; }
footer { border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .site-header { padding: 16px 20px; }
  .site-identity strong span, .site-header-actions > span { display: none; }
  .hero-bottom { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-bottom h1 { font-size: 25px; }
  .about-grid { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 520px) {
  .site-header { padding: 13px 18px; min-height: 68px; }
  .site-identity { gap: 9px; }
  .site-identity strong { font-size: 13px; }
  .site-header-actions { font-size: 11px; }
  nav { padding: 8px 14px; min-height: 48px; }
  nav a { padding: 7px 9px; font-size: 12px; }
  .incept-wordmark { font-size: 68px; margin-bottom: 22px; }
  .hero-context { font-size: 10px; letter-spacing: 0; }
}
.roi-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 22px 0; }
.roi-inputs label { display: flex; flex-direction: column; gap: 9px; color: var(--ink); font-size: 13px; line-height: 1.5; }
.roi-inputs input { width: 100%; min-width: 0; min-height: 44px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--canvas); color: var(--ink); font: inherit; }
.roi-inputs input::placeholder { color: var(--muted); opacity: 1; }
.roi-inputs input:hover { border-color: var(--muted); }
.roi-inputs input:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.roi-result { min-height: 56px; margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-raised); color: var(--muted); font-size: 13px; line-height: 1.7; }
.roi-result dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px 20px; margin: 0; }
.roi-result dt { color: var(--muted); }
.roi-result dd { margin: 0; color: var(--blue); font-weight: 650; overflow-wrap: anywhere; }
@media (max-width: 520px) { .roi-inputs { grid-template-columns: 1fr; } .roi-result dl { grid-template-columns: 1fr; gap: 3px; } .roi-result dd { margin-bottom: 10px; } }
.value-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.value-strip strong { display: block; color: var(--ink); font-size: 15px; font-weight: 650; }
.value-strip span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.value-strip > a { font-size: 13px; font-weight: 650; grid-column: 1 / -1; }
.value-strip > a span { display: inline; color: inherit; }
.value-strip > p { grid-column: 1 / -1; margin: -8px 0 0; color: var(--muted); font-size: 11px; }
@media (max-width: 650px) { .value-strip { grid-template-columns: 1fr; gap: 18px; } }

/* Source synchronization reuses GitHub authentication; no credentials in the page. */
.source-sync-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem 1rem;margin:0 0 1.5rem;padding:1rem;border:1px solid var(--line,#454637);background:#1b1e19;font-size:.85rem}
.source-sync-link,.source-refresh{border:1px solid #b99e35;background:transparent;color:#ffdc42;padding:.5rem .75rem;font:inherit;text-decoration:none;cursor:pointer}
.source-refresh:disabled{opacity:.65;cursor:wait}.source-sync-status{color:#d8dacb;overflow-wrap:anywhere}
.source-sync-bar small{flex-basis:100%;color:#b7bcad}.population-source{overflow-wrap:anywhere}

/* Product entry, shared workspace and reference docs have separate reading paths. */
.header-install { border: 1px solid var(--line); padding: 9px 14px; border-radius: 4px; }
.section-nav { position: static; z-index: auto; background: transparent; border-bottom: 1px solid var(--line); min-height: 46px; }
.section-nav a { font-size: 12px; }
.product-page main { max-width: 1120px; }
.product-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 48px; padding: 40px 0 48px; border: 0; margin: 0; }
.hero-copy { min-width: 0; }
.hero-banner { display: block; width: 100%; max-width: 440px; height: auto; justify-self: center; }
@media(max-width:900px) { .product-hero { grid-template-columns: 1fr; gap: 24px; } }
.product-hero h1 { max-width: 20ch; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.1; letter-spacing: -.04em; margin: 22px 0 16px; }
.product-hero .sub { max-width: 62ch; font-size: 17px; line-height: 1.7; }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 22px; }
.secondary-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 650; text-decoration: none; }
.compatibility { color: var(--muted); font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; margin-top: 22px; }
.product-page section { padding: 28px; margin-bottom: 28px; }
.product-page h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.025em; }
.home-install { scroll-margin-top: 80px; }
.home-install p, .home-preview > p, .home-bottom p { max-width: 68ch; color: var(--muted); line-height: 1.65; font-size: 14px; }
.install-command { display: flex; align-items: center; gap: 20px; padding: 18px; margin-top: 18px; background: var(--canvas); border: 1px solid var(--line); border-radius: 4px; }
.install-command code { min-width: 0; flex: 1; overflow-wrap: anywhere; font-size: 12px; line-height: 1.7; }
.install-command button { flex: none; min-height: 44px; border: 1px solid var(--amber); border-radius: 4px; padding: 10px 14px; color: var(--blue-strong); background: transparent; cursor: pointer; font: inherit; font-size: 12px; }
#copy-install-status:empty { display: none; }
.preview-link { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; margin-top: 20px; }
.preview-link img { display: block; width: 100%; height: auto; }
.preview-caption { font-size: 11px !important; margin-bottom: 0; }
.home-preview .section-head { align-items: end; gap: 20px; flex-wrap: wrap; }
.home-preview .section-head h2 { margin-bottom: 0; }
.workflow-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; margin: 25px 0 15px; }
.workflow-steps article { border-top: 1px solid var(--line); padding-top: 16px; }
.workflow-steps article > span { font: 12px ui-monospace, monospace; color: var(--amber); }
.workflow-steps h3 { font-size: 17px; margin: 12px 0 8px; }
.workflow-steps p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.product-page .value-strip { padding: 0; border: 0; margin: 20px 0 0; }
.home-bottom { padding: 18px 0 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.page-heading { max-width: 76ch; margin: 12px 0 26px; }
.page-heading h1 { font-size: 34px; letter-spacing: -.035em; }
.workspace-page #course-release-timeline { padding: 0; border: 0; background: transparent; margin: 0 0 24px; }
.workspace-page .course-card-grid { margin: 0; gap: 16px; }
.workspace-page .course-summary-card { padding: 22px; display: flex; flex-direction: column; }
.workspace-page .course-card-headline { justify-content: space-between; gap: 14px; align-items: center; }
.workspace-page .course-card-headline h2 { margin: 0 0 14px; font-size: 19px; color: var(--ink); }
.course-open { color: var(--blue-strong); }
.workspace-page .course-card-status { align-self: flex-start; border-radius: 4px; font-size: 12px; padding: 5px 9px; }
.workspace-page .course-asap-position { font-size: 11px; line-height: 1.5; color: var(--muted); margin: 12px 0 18px; }
.workspace-page .course-card-next { display: block; overflow: visible; -webkit-line-clamp: unset; margin: auto 0 20px; font-size: 13px; line-height: 1.65; }
.workspace-page .course-card-next strong, .workspace-page .course-card-next span { display: block; }
.workspace-page .course-card-next strong { color: var(--muted); font-size: 11px; margin-bottom: 5px; font-weight: 500; }
.course-checked { display: block; color: var(--muted); font-size: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.workspace-tools { border: 1px solid var(--line); border-radius: 6px; margin: 16px 0; padding: 15px 18px; background: var(--surface); }
.workspace-tools > summary { cursor: pointer; min-height: 26px; font-size: 14px; font-weight: 550; }
.workspace-tools > section { margin-top: 16px; }
.workspace-tools .source-sync-bar { margin: 16px 0 0; }
.workspace-history { font-size: 13px; margin: 25px 0; }
.course-page .course-activity { float: none; width: auto; margin: 20px 0; }
.course-page [data-course-next] { line-height: 1.65; }
.course-page .gate-observed { white-space: normal; }
.course-page .course-card-next { display: block; overflow: visible; -webkit-line-clamp: unset; }
.course-page .population-coverage { margin: 24px 0; padding: 22px; }
.docs-start { padding: 26px; }
.docs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.docs-grid h3 { font-size: 19px; }
.docs-grid p { font-size: 14px; line-height: 1.65; color: var(--muted); }
.docs-grid .access-note { font-size: 11px; }
.resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.resource-grid > a { color: var(--ink); display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 5px; padding: 20px; }
.resource-grid > a:hover { border-color: var(--amber); }
.resource-grid h3 { font-size: 16px; margin: 0 0 12px; }
.resource-grid p { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 0; }
@media(max-width:760px) {
  .product-page section { padding: 20px; }
  .product-hero { padding-top: 10px; }
  .product-hero .sub { font-size: 15px; }
  .workflow-steps, .resource-grid { grid-template-columns: 1fr 1fr; }
  .docs-grid { grid-template-columns: 1fr; gap: 20px; }
  .install-command { flex-direction: column; align-items: stretch; gap: 14px; }
  .workspace-page .course-summary-card { padding: 18px; }
  .course-page .population-coverage { padding: 16px; }
}
@media(max-width:440px) {
  .site-header { gap: 12px; }
  .site-header-actions { gap: 12px; }
  .header-install { padding: 8px 10px; }
  .resource-grid { grid-template-columns: 1fr; }
  .page-heading h1 { font-size: 28px; }
  .section-nav a { font-size: 11px; padding: 8px; }
}

.workspace-page .course-summary-card[hidden] { display: none; }
