:root {
  --deck-w: 1600;
  --deck-h: 900;
  --deck-scale: 1;
  --ink: var(--bf-text, #18181b);
  --paper: #ffffff;
  --canvas: #f4f1ea;
  --soft: #ebe6dc;
  --muted: #69635a;
  --line: #d8d1c4;
  --obsidian: #151518;
  --panel: #202027;
  --accent: var(--bf-cobalt, #4338ff);
  --lime: #d6ff12;
  --green: #b8f3ce;
  --gold: #f3d873;
  --rose: #e95c5c;
  --blue-soft: #d9e0ff;
  --radius: 8px;
  --mono: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
  --sans: var(--font-sans, Inter, ui-sans-serif, system-ui, sans-serif);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--obsidian);
  color: var(--ink);
  font-family: var(--sans);
}
body { overflow: hidden; }
button { font: inherit; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
img { max-width: 100%; }

.deck {
  position: fixed;
  left: 50%;
  top: 50%;
  width: calc(var(--deck-w) * 1px);
  height: calc(var(--deck-h) * 1px);
  transform: translate(-50%, -50%) scale(var(--deck-scale));
  transform-origin: center center;
  overflow: hidden;
  background: var(--canvas);
  box-shadow: 0 28px 80px rgba(0,0,0,0.32);
}
.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 20px;
  padding: 48px 64px 34px;
  background: var(--canvas);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.slide.is-active { opacity: 1; pointer-events: auto; transform: translateY(0); }
.slide::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: var(--accent);
}

.slug { display: flex; align-items: center; gap: 12px; min-width: 0; }
.idx { font-family: var(--mono); color: var(--accent); font-size: 13px; font-weight: 800; }
.sec { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0; color: var(--muted); }
h1, h2, h3, p, figure { margin: 0; }
h1 {
  max-width: 22ch;
  font-size: clamp(40px, 6.2vh, 66px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}
h1 em { color: var(--accent); font-style: normal; }
h2 { font-size: 26px; line-height: 1.04; letter-spacing: 0; }
h3 { font-size: 18px; line-height: 1.12; letter-spacing: 0; }
p { font-size: 14px; line-height: 1.38; color: var(--muted); }
b { color: inherit; }
.content { min-height: 0; position: relative; }

.footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer .mark { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0; color: var(--muted); }
.progress { display: flex; gap: 7px; align-items: center; }
.dot { width: 7px; height: 7px; background: var(--line); }
.dot.is-active { background: var(--accent); transform: scale(1.25); }

.cover {
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 62px 74px 50px;
  background: var(--obsidian);
  color: #fff;
}
.cover::before { background: var(--lime); }
.cover-top { display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.cover-top img { height: 40px; width: auto; }
.cover-top .tag { font-family: var(--mono); font-size: 13px; color: rgba(255,255,255,0.64); }
.cover-body {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 44px;
  align-items: center;
  min-height: 0;
}
.cover h1 { color: #fff; font-size: clamp(58px, 9.4vh, 102px); max-width: 11ch; }
.cover-copy { display: grid; gap: 18px; align-content: center; }
.cover-copy p { color: rgba(255,255,255,0.74); font-size: 18px; max-width: 42ch; }
.cover-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.cover-shots { position: relative; height: min(58vh, 520px); min-height: 410px; }
.shot {
  position: absolute;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,0.34);
}
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot.home { width: 78%; height: 51%; right: 0; top: 0; }
.shot.ask { width: 60%; height: 39%; left: 0; top: 30%; }
.shot.cms { width: 47%; height: 34%; right: 8%; bottom: 0; }
.cover-meta { display: flex; align-items: center; gap: 15px; font-family: var(--mono); color: rgba(255,255,255,0.62); font-size: 13px; }
.bar { width: 32px; height: 2px; background: var(--lime); }

.chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}
.chip.dark { background: var(--obsidian); color: #fff; }
.chip.clean { background: var(--green); color: var(--ink); }
.chip.hold { background: var(--gold); color: var(--ink); }
.chip.risk { background: var(--rose); color: #fff; }
.chip.blue { background: var(--blue-soft); color: var(--ink); }

.room-map {
  display: grid;
  grid-template-columns: 1.12fr 0.94fr 0.94fr;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  height: 100%;
  min-height: 0;
}
.lane-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 14px;
  padding: 24px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 0;
}
.lane-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: var(--accent);
}
.lane-card.dark { background: var(--obsidian); color: #fff; border-color: var(--obsidian); }
.lane-card.dark p,
.lane-card.dark .lane-primary span { color: rgba(255,255,255,0.72); }
.lane-card.editorial::before { background: var(--blue-soft); }
.lane-card.business::before { background: var(--green); }
.lane-card.growth::before { background: var(--gold); }
.lane-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.lane-kicker span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  color: var(--accent);
  text-transform: uppercase;
}
.lane-card.dark .lane-kicker span { color: var(--green); }
.lane-kicker img { width: auto; height: 34px; object-fit: contain; }
.lane-card h2 {
  max-width: 13ch;
  font-size: 36px;
  line-height: 0.98;
}
.lane-card.dark h2,
.lane-card.dark .lane-primary b { color: #fff; }
.lane-visual {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 128px;
}
.lane-photo {
  width: 116px;
  height: 128px;
  border-radius: var(--radius);
  background: var(--soft);
  border: 1px solid var(--line);
  overflow: hidden;
}
.lane-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.lane-photo.logo { display: grid; place-items: center; padding: 22px; background: #fff; }
.lane-photo.logo img { object-fit: contain; }
.lane-photo.initial {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 900;
}
.lane-primary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  align-self: end;
  min-height: 0;
}
.avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-weight: 900;
  font-size: 16px;
  border: 2px solid rgba(0,0,0,0.1);
  overflow: hidden;
}
.avatar.logo { background: #fff; padding: 6px; }
.avatar.logo img { width: 100%; height: 100%; object-fit: contain; }
.lane-primary b { display: block; font-size: 24px; line-height: 1.02; }
.lane-primary span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.25;
}
.people-stack {
  display: grid;
  gap: 8px;
  align-content: end;
}
.person-line {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.person-dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  overflow: hidden;
}
.person-dot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}
.person-line b {
  display: block;
  font-size: 13px;
  line-height: 1.05;
}
.person-line span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}
.dark .person-line span { color: rgba(255,255,255,0.68); }
.name-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  align-self: end;
}
.name-row span {
  display: inline-flex;
  align-items: center;
  padding: 7px 9px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.dark .name-row span {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
}
.pascal-bridge {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--obsidian);
  color: #fff;
}
.pascal-bridge b {
  font-size: 25px;
  line-height: 1;
  white-space: nowrap;
}
.pascal-bridge span {
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  line-height: 1.25;
}

.stakeholder-slide {
  gap: 14px;
  padding-top: 42px;
}
.stakeholder-slide h1 {
  max-width: 16ch;
  font-size: 56px;
}
.stakeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 13px;
  height: 100%;
  min-height: 0;
}
.stakeholder-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 0;
  padding: 18px;
  border: 2px solid var(--line);
  border-top-width: 7px;
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.stakeholder-card.dark {
  background: var(--obsidian);
  border-color: var(--obsidian);
  border-top-color: var(--green);
  color: #fff;
}
.stakeholder-card.blue { border-top-color: var(--blue-soft); }
.stakeholder-card.green { border-top-color: var(--green); }
.stakeholder-card.gold { border-top-color: var(--gold); }
.stakeholder-card.red { border-top-color: var(--rose); }
.stakeholder-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.stakeholder-photo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 900;
  border: 1px solid var(--line);
}
.dark .stakeholder-photo { border-color: rgba(255,255,255,0.18); }
.stakeholder-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.stakeholder-name {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.stakeholder-name h2 {
  font-size: 25px;
  line-height: 0.98;
}
.stakeholder-role {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.15;
}
.dark .stakeholder-role { color: var(--green); }
.dark .stakeholder-name h2 { color: #fff; }
.stakeholder-body {
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 0;
}
.stakeholder-body p {
  color: var(--muted);
  font-size: 11.8px;
  line-height: 1.3;
}
.dark .stakeholder-body p { color: rgba(255,255,255,0.72); }
.stakeholder-note {
  padding: 9px 10px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.25;
}
.dark .stakeholder-note {
  background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.78);
}
.stakeholder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: end;
}
.stakeholder-tags span {
  display: inline-flex;
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.dark .stakeholder-tags span {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
}

.frame-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 20px;
  height: 100%;
  min-height: 0;
}
.big-card {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--obsidian);
  color: #fff;
  min-height: 0;
}
.big-card h2 { color: #fff; font-size: 42px; line-height: 0.96; max-width: 11ch; }
.big-card p { color: rgba(255,255,255,0.74); font-size: 16px; }
.cards-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  min-height: 0;
}
.card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  min-height: 0;
}
.card h3 { font-size: 17px; }
.card p { font-size: 13.2px; }
.link-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.link-pill {
  display: inline-flex;
  max-width: 100%;
  padding: 7px 9px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.repo-brief-slide h1 {
  max-width: 18ch;
  font-size: 58px;
}
.repo-brief {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 30px;
  height: 100%;
  min-height: 0;
}
.repo-brief-left,
.repo-brief-right {
  min-height: 0;
  display: grid;
  align-content: start;
}
.repo-brief-left { gap: 16px; }
.repo-brief-right { gap: 18px; }
.repo-path {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--obsidian);
}
.repo-path strong {
  font-family: var(--mono);
  font-size: 16px;
}
.repo-path span {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.repo-tree {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.tree-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.tree-row b {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
  line-height: 1.1;
}
.tree-row span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.28;
}
.repo-callout {
  padding: 16px 18px;
  background: var(--obsidian);
  color: #fff;
  border-radius: var(--radius);
}
.repo-callout b {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.05;
}
.repo-callout span {
  display: block;
  margin-top: 7px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  line-height: 1.32;
}
.lane-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.lane-column {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}
.lane-column h2 {
  font-size: 30px;
  line-height: 0.98;
}
.lane-column p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.34;
}
.lane-list {
  display: grid;
  gap: 7px;
  margin-top: 3px;
}
.lane-list div {
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.28;
}
.lane-list div::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 5px;
  background: var(--accent);
}
.lane-column.keith .lane-list div::before { background: var(--rose); }
.lane-column.pascal .lane-list div::before { background: var(--green); }
.design-pass {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  padding-top: 15px;
  border-top: 2px solid var(--obsidian);
}
.design-pass h2 {
  font-size: 28px;
  line-height: 1;
}
.design-pass p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.34;
}
.hod-run {
  padding: 13px 14px;
  border-radius: var(--radius);
  background: var(--soft);
}
.hod-run b {
  display: block;
  font-size: 14px;
}
.hod-run span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.product-review-slide {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 16px;
}
.product-review-slide h1 {
  max-width: 900px;
}
.product-review-intro {
  max-width: 890px;
  margin-top: -6px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}
.product-review {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  height: 100%;
  min-height: 0;
}
.product-carousel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
}
.carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--obsidian);
  padding-bottom: 8px;
}
.carousel-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  line-height: 1;
}
.carousel-head h2 span {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.carousel-controls {
  display: flex;
  gap: 6px;
}
.carousel-controls button {
  width: 34px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}
.carousel-controls button:hover { background: var(--soft); }
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 30%;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  min-height: 0;
}
.review-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  scroll-snap-align: start;
  min-height: 0;
}
.review-card figure {
  min-height: 0;
  overflow: hidden;
  background: #f8f7f4;
}
.review-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.review-card figcaption {
  display: grid;
  gap: 5px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}
.review-card b {
  font-size: 15px;
  line-height: 1;
}
.review-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.map-slide h1,
.live-review-slide h1,
.ship-slide h1 {
  max-width: 18ch;
}
.map-slide {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}
.map-intro {
  margin-top: -8px;
  max-width: 1000px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
}
.product-map {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  height: 100%;
  min-height: 0;
}
.link-ledger {
  display: grid;
  border-top: 2px solid var(--obsidian);
}
.ledger-row {
  display: grid;
  grid-template-columns: 210px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.ledger-row b {
  font-size: 18px;
}
.ledger-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}
.ledger-row .open-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.map-bottom {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  min-height: 0;
}
.repo-tree-compact {
  padding-top: 12px;
  border-top: 2px solid var(--obsidian);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.48;
  white-space: pre-wrap;
  color: var(--ink);
}
.repo-tree-compact b {
  color: var(--accent);
}
.shipping-line {
  display: grid;
  align-content: start;
  gap: 16px;
  padding-top: 12px;
  border-top: 2px solid var(--obsidian);
}
.shipping-line h2 {
  font-size: 30px;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  align-items: start;
}
.timeline span {
  position: relative;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.timeline span::before {
  content: "";
  width: 100%;
  height: 2px;
  background: var(--obsidian);
  margin-top: 5px;
}
.timeline span::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
}
.map-links {
  display: grid;
  gap: 8px;
}
.map-links a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arch-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 18px;
  height: 100%;
  min-height: 0;
}
.repo-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--obsidian);
  color: #fff;
  min-height: 0;
}
.repo-card h2 { color: #fff; font-size: 34px; }
.repo-card p { color: rgba(255,255,255,0.72); }
.repo-list { display: grid; gap: 9px; align-content: start; min-height: 0; }
.repo-line {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.13);
  font-size: 12px;
  line-height: 1.25;
}
.repo-line b { font-family: var(--mono); color: #fff; }
.repo-line span { color: rgba(255,255,255,0.68); }
.arch-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  min-height: 0;
}
.arch-col {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 0;
}
.arch-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  color: var(--accent);
  text-transform: uppercase;
}
.node-stack { display: grid; gap: 10px; align-content: stretch; min-height: 0; }
.node {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 2px solid var(--line);
  min-height: 92px;
}
.node strong { display: block; font-size: 16px; }
.node span { display: block; margin-top: 7px; color: var(--muted); font-size: 12.4px; line-height: 1.32; }
.node.primary { border-color: var(--accent); border-top-width: 6px; }
.node.green { border-color: #99d5af; background: #effaf3; }
.node.gold { border-color: #d9b84e; background: #fff8d8; }
.flow-foot {
  padding: 11px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  height: 100%;
  min-height: 0;
}
.help-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 20px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 0;
}
.help-card.wide { grid-column: span 2; background: var(--obsidian); color: #fff; border-color: var(--obsidian); }
.help-card.wide h2,
.help-card.wide h3 { color: #fff; }
.help-card.wide p { color: rgba(255,255,255,0.74); }
.help-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.help-card.wide img { border-color: rgba(255,255,255,0.18); }
.help-card p { font-size: 13px; }
.owner-note {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.loop-layout {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 18px;
  height: 100%;
  min-height: 0;
}
.mail-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  background: var(--obsidian);
  color: #fff;
  border-radius: var(--radius);
  min-height: 0;
}
.mail-panel h2 { color: #fff; font-size: 32px; }
.mail-panel p { color: rgba(255,255,255,0.72); }
.mail-shots {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mail-shot {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.18);
  background: #fff;
}
.mail-shot img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top left; }
.loop-board {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
}
.loop-title {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}
.loop-title p { max-width: 68ch; }
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  min-height: 0;
}
.pipe-step {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 9px;
  padding: 14px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  min-height: 0;
}
.pipe-step .num { font-family: var(--mono); color: var(--accent); font-size: 12px; font-weight: 900; }
.pipe-step b { font-size: 14px; line-height: 1.08; }
.pipe-step span { display: block; color: var(--muted); font-size: 12px; line-height: 1.28; }
.pipe-step.dark { background: var(--obsidian); color: #fff; border-color: var(--obsidian); }
.pipe-step.dark span { color: rgba(255,255,255,0.72); }

.workflow-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
  height: 100%;
  min-height: 0;
}
.workflow-rail {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
  background: var(--obsidian);
  color: #fff;
  border-radius: var(--radius);
  min-height: 0;
}
.workflow-rail h2 { color: #fff; font-size: 36px; line-height: 0.96; }
.workflow-rail p { color: rgba(255,255,255,0.72); }
.workflow-links {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 0;
}
.workflow-link {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
}
.workflow-link b { font-family: var(--mono); font-size: 12px; color: #fff; }
.workflow-link span {
  min-width: 0;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  line-height: 1.28;
}
.workflow-link a {
  justify-self: end;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--lime);
  white-space: nowrap;
}
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-height: 0;
}
.status-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  min-height: 0;
}
.status-card.dark { background: #101218; border-color: #2b3040; color: #edf0ff; }
.status-card.dark p { color: #aeb5c6; }
.status-card h3 { font-size: 17px; }
.status-card p { font-size: 12.5px; }
.check-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}
.small-link {
  display: block;
  width: 100%;
  padding: 8px 9px;
  border-radius: 6px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.22;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dark .small-link { background: #191d29; border-color: #2b3040; color: #d7ddff; }

.review-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  height: 100%;
  min-height: 0;
}
.review-shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 0;
}
.review-shot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  background: var(--paper);
  min-height: 0;
}
.review-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.review-shot .caption { font-size: 11px; }
.review-guide {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--obsidian);
  color: #fff;
  min-height: 0;
}
.review-guide h2 { color: #fff; font-size: 36px; line-height: 0.98; }
.review-guide p { color: rgba(255,255,255,0.72); }
.review-steps {
  display: grid;
  gap: 10px;
  align-content: start;
}
.review-step {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
}
.review-step .n { font-family: var(--mono); color: var(--lime); font-weight: 900; }
.review-step b { display: block; font-size: 13px; }
.review-step span { display: block; margin-top: 3px; color: rgba(255,255,255,0.7); font-size: 12px; line-height: 1.3; }

.live-review-slide h1,
.ship-slide h1 { max-width: 19ch; }
.live-review {
  display: grid;
  grid-template-columns: 1.36fr 0.64fr;
  gap: 24px;
  height: 100%;
  min-height: 0;
}
.live-review .product-carousel {
  min-height: 0;
}
.live-review .carousel-track {
  grid-auto-columns: 47%;
}
.live-review .review-card figcaption {
  min-height: 70px;
}
.live-review .review-card img {
  object-fit: contain;
  background: #fff;
}
.review-rail {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  background: var(--obsidian);
  color: #fff;
  border-radius: var(--radius);
  min-height: 0;
}
.review-rail h2 {
  color: #fff;
  font-size: 32px;
  line-height: 0.96;
}
.review-rail p {
  color: rgba(255,255,255,0.72);
  font-size: 12.5px;
}
.review-rail .review-steps {
  gap: 0;
}
.review-rail .review-step {
  padding: 8px 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  background: transparent;
  border-radius: 0;
}
.rail-links {
  display: grid;
  gap: 6px;
}
.rail-links .small-link {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  color: #dfe4ff;
  padding: 6px 8px;
  font-size: 9.5px;
}

.ship-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  height: 100%;
  min-height: 0;
}
.rules {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
  background: var(--obsidian);
  color: #fff;
  border-radius: var(--radius);
  min-height: 0;
}
.rules h2 { color: #fff; font-size: 39px; line-height: 0.96; }
.rule-list { display: grid; gap: 10px; align-content: start; min-height: 0; }
.rule {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
}
.rule .n { font-family: var(--mono); color: var(--lime); font-weight: 900; }
.rule b { display: block; font-size: 13px; }
.rule span { display: block; margin-top: 3px; color: rgba(255,255,255,0.69); font-size: 12px; line-height: 1.3; }
.pr-stack { display: grid; gap: 10px; min-height: 0; }
.pr-card {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 13px;
  align-items: start;
  padding: 15px;
  background: #101218;
  color: #edf0ff;
  border-radius: var(--radius);
  border: 1px solid #2b3040;
  min-height: 0;
}
.pr-num { font-family: var(--mono); color: #9cacff; font-weight: 900; }
.pr-card h3 { color: #fff; font-size: 16px; }
.pr-card p { color: #aeb5c6; font-size: 12px; margin-top: 4px; }
.pr-card .state { justify-self: end; }
.preview-url {
  grid-column: 2 / 4;
  font-family: var(--mono);
  font-size: 11px;
  color: #d7ddff;
  background: #191d29;
  border: 1px solid #2b3040;
  border-radius: 6px;
  padding: 8px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  position: fixed;
  right: 24px;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  background: var(--obsidian);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.nav button {
  width: 36px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}
.nav button:hover { background: rgba(255,255,255,0.2); }
.nav .counter {
  min-width: 52px;
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
html[data-export="1"] .nav {
  display: none;
}

@media (max-width: 1180px) {
  .deck { box-shadow: none; }
  .nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}
