:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --blue: #2351f5;
  --blue-strong: #173ed5;
  --green: #00866a;
  --amber: #b7791f;
  --red: #d6425f;
  --ink: #111827;
  --muted: #667085;
  --line: #d8dde8;
  --panel: #ffffff;
  --soft: #eef3ff;
  --muted-token: #f4f6fa;
  --background: #ffffff;
  --topbar-height: 68px;
  --app-content-width: 1140px;
  --app-page-gutter: clamp(20px, 3.6vw, 54px);
  --viewport-height: 100dvh;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  overflow: hidden;
  background: var(--background);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  font: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(35, 81, 245, 0.24);
  outline-offset: 2px;
}

svg {
  display: block;
}

.topbar {
  height: var(--topbar-height);
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.topbar-inner {
  width: min(var(--app-content-width), calc(100% - var(--app-page-gutter) - var(--app-page-gutter)));
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
}

.brand-home-link {
  color: var(--ink);
  text-decoration: none;
  outline-offset: 4px;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-wordmark {
  min-width: 0;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark,
.brand-mark svg {
  width: 34px;
  height: 34px;
  color: var(--blue);
}

.topbar-actions,
.topbar-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar-meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 900;
}

.meta-divider {
  width: 1px;
  height: 16px;
  background: var(--line);
}

.toc-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.toc-toggle {
  min-width: 76px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
  padding: 0 9px 0 11px;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.toc-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.toc-toggle:hover,
.toc-picker.open .toc-toggle {
  border-color: color-mix(in oklch, var(--blue), white 66%);
  background: #fff;
  color: var(--blue);
}

.toc-picker.open .toc-toggle svg {
  transform: rotate(180deg);
}

.toc-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - var(--topbar-height) - 28px));
  display: grid;
  gap: 2px;
  overflow-y: auto;
  border: 1px solid rgba(216, 221, 232, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 54px rgba(17, 24, 39, 0.16);
  padding: 7px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.toc-menu[hidden] {
  display: none;
}

.toc-item {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  padding: 9px 10px;
  text-align: left;
}

.toc-item:hover,
.toc-item.active {
  background: var(--muted-token);
}

.toc-item.active {
  color: var(--blue);
}

.toc-item-number {
  color: inherit;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  font-weight: 950;
}

.toc-item-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.toc-item-eyebrow,
.toc-item-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toc-item-eyebrow {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.toc-item-title {
  color: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 3px;
}

.language-switcher button {
  min-width: 44px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 8px;
  font-size: 0.74rem;
  font-weight: 950;
  line-height: 1;
}

.language-switcher button:hover {
  color: var(--blue);
  background: var(--muted-token);
}

.language-switcher button.active {
  background: var(--blue);
  color: #fff;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  transition:
    color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:hover {
  background: color-mix(in oklch, var(--muted-token), transparent 35%);
  color: var(--blue);
  transform: translateY(-1px) scale(1.06);
}

.side-navigation {
  position: fixed;
  inset: 0;
  z-index: 54;
  pointer-events: none;
}

.side-nav-button {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(216, 221, 232, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.12);
  pointer-events: auto;
  transform: translateY(-50%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.side-nav-button:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.side-nav-button:disabled {
  pointer-events: none;
}

.side-nav-button-prev {
  left: clamp(10px, 1.6vw, 22px);
}

.side-nav-button-next {
  right: clamp(10px, 1.6vw, 22px);
}

.progress-track {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: transparent;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
  transition: width 280ms ease;
}

.playbook {
  height: var(--viewport-height);
  overflow: hidden;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(90deg, rgba(35, 81, 245, 0.08), rgba(0, 134, 106, 0.08)) border-box;
}

.slide-track {
  height: 100%;
  display: flex;
  transform: translate3d(0, 0, 0);
  transition: transform 540ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.slide {
  position: relative;
  width: 100vw;
  height: var(--viewport-height);
  flex: 0 0 100vw;
  display: grid;
  align-content: center;
  gap: clamp(16px, 2vw, 22px);
  padding: calc(var(--topbar-height) + clamp(16px, 2.6vw, 32px)) var(--app-page-gutter) clamp(42px, 5vw, 58px);
  overflow: hidden;
}

.slide > * {
  width: min(var(--app-content-width), 100%);
  margin-inline: auto;
}

.slide-head {
  display: grid;
  gap: 10px;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  color: var(--ink);
  letter-spacing: 0;
  font-weight: 950;
  white-space: nowrap;
}

h1 {
  max-width: 100%;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.04;
}

h2 {
  max-width: min(1080px, 100%);
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 1.08;
  white-space: normal;
  overflow-wrap: anywhere;
  line-break: loose;
  text-wrap: balance;
}

h3 {
  color: var(--ink);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 950;
}

.lead,
.slide-head p,
.warning-band p,
.note-row span,
.principle-row span,
article p,
.score-panel p,
.budget-equation p,
.explore-pool p,
.budget-method p,
.coverage-copy p,
.epsilon-panel p,
.min-budget p {
  color: var(--muted);
  line-height: 1.62;
}

.lead,
.slide-head p {
  max-width: 760px;
  font-size: clamp(1rem, 1.45vw, 1.1rem);
}

.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, min(29vw, 440px));
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 22px;
}

.cover-slide h1 {
  max-width: 820px;
  overflow-wrap: anywhere;
  text-wrap: balance;
  white-space: normal;
}

.hero-copy .lead,
.engine-badge {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.engine-badge {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid color-mix(in oklch, var(--blue), white 72%);
  border-radius: 8px;
  background: #f7faff;
  color: var(--blue);
  padding: 9px 12px;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.2;
}

.engine-badge svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.engine-orbit {
  position: relative;
  width: min(100%, 440px);
  justify-self: end;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(35, 81, 245, 0.1), transparent 34%),
    radial-gradient(circle at 50% 52%, rgba(0, 134, 106, 0.08), transparent 44%),
    linear-gradient(90deg, rgba(35, 81, 245, 0.032) 1px, transparent 1px),
    linear-gradient(rgba(35, 81, 245, 0.032) 1px, transparent 1px),
    #fff;
  background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat;
  background-size: 100% 100%, 100% 100%, 42px 42px, 42px 42px, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 42px rgba(35, 81, 245, 0.045);
}

.engine-orbit::before,
.engine-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid color-mix(in oklch, var(--blue), white 55%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.engine-orbit::before {
  inset: 15%;
  border-color: rgba(35, 81, 245, 0.28);
}

.engine-orbit::after {
  inset: 28%;
  border-color: rgba(0, 134, 106, 0.28);
}

.orbit-loop-arrow {
  position: absolute;
  inset: 8%;
  z-index: 1;
  color: var(--green);
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 12px 22px rgba(35, 81, 245, 0.12));
  animation: orbitLoopSpin 14s linear infinite;
}

.orbit-loop-arrow marker path {
  fill: var(--green);
}

.orbit-flow-ring {
  fill: none;
  stroke: url("#orbit-loop-gradient");
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-dasharray: 0.78 0.22;
  stroke-dashoffset: 0;
  marker-end: url("#orbit-arrow-head");
  animation: orbitFlow 3.6s ease-in-out infinite;
}

.orbit-core {
  position: relative;
  z-index: 2;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.16), transparent 58%),
    linear-gradient(180deg, #2d5dff, var(--blue-strong));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 20px 48px rgba(35, 81, 245, 0.27);
}

.orbit-core-logo {
  position: absolute;
  inset: 10px;
  color: rgba(255, 255, 255, 0.22);
  transform: rotate(-10deg) scale(1.12);
  pointer-events: none;
}

.orbit-core strong {
  position: relative;
  font-size: 1.25rem;
  font-weight: 950;
}

.orbit-core span {
  position: relative;
  font-size: 0.82rem;
  font-weight: 900;
  opacity: 0.82;
}

.orbit-node {
  position: absolute;
  z-index: 3;
  min-width: 128px;
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  color: var(--ink);
  padding: 11px 13px;
  font-size: 0.83rem;
  font-weight: 950;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 14px 34px rgba(17, 24, 39, 0.1);
}

.node-a { top: 11%; left: 50%; transform: translateX(-50%); }
.node-b { top: 50%; right: 3%; transform: translateY(-50%); }
.node-c { bottom: 11%; left: 50%; transform: translateX(-50%); }
.node-d { top: 50%; left: 3%; transform: translateY(-50%); }

.toc-framework-slide {
  gap: clamp(14px, 1.7vw, 22px);
}

.toc-framework-head p {
  max-width: 860px;
}

.toc-framework-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.toc-framework-card {
  --toc-accent: var(--blue);
  position: relative;
  min-width: 0;
  min-height: 292px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: start;
  gap: 14px;
  border: 1px solid color-mix(in oklch, var(--toc-accent), white 58%);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in oklch, var(--toc-accent), white 94%), #fff 42%),
    #fff;
  color: var(--ink);
  padding: clamp(16px, 1.8vw, 20px);
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 16px 36px rgba(17, 24, 39, 0.07);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.toc-framework-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 8px 8px 0 0;
  background: var(--toc-accent);
}

.toc-framework-card:hover,
.toc-framework-card:focus-visible {
  border-color: var(--toc-accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 20px 44px rgba(17, 24, 39, 0.12);
  transform: translateY(-2px);
}

.toc-framework-index {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in oklch, var(--toc-accent), white 48%);
  border-radius: 8px;
  background: #fff;
  color: var(--toc-accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
  font-weight: 950;
}

.toc-framework-card strong {
  color: var(--ink);
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.18;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.toc-framework-card p {
  color: var(--muted);
  font-size: clamp(0.78rem, 0.95vw, 0.88rem);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.toc-framework-card em {
  align-self: end;
  justify-self: start;
  border: 1px solid color-mix(in oklch, var(--toc-accent), white 70%);
  border-radius: 999px;
  background: color-mix(in oklch, var(--toc-accent), white 94%);
  color: var(--toc-accent);
  padding: 5px 9px;
  font-style: normal;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1;
}

.toc-card-blue { --toc-accent: var(--blue); }
.toc-card-green { --toc-accent: var(--green); }
.toc-card-amber { --toc-accent: var(--amber); }
.toc-card-red { --toc-accent: var(--red); }
.toc-card-slate { --toc-accent: #475467; }

@keyframes orbitLoopSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitFlow {
  50% {
    stroke-dashoffset: -0.08;
  }
}

.slide-footer {
  position: absolute;
  right: var(--app-page-gutter);
  bottom: 22px;
  left: auto;
  width: auto;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: right;
}

.slide-footer span {
  min-height: 0;
  display: inline-flex;
  align-items: center;
  border: 0;
  padding: 0;
}

.capability-grid,
.principle-row,
.note-row,
.tier-grid,
.phase-grid,
.forecast-row {
  display: grid;
  gap: 12px;
}

.capability-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.capability-grid article,
.principle-row div,
.note-row div,
.tier-grid article,
.phase-grid article {
  min-height: 172px;
  display: grid;
  align-content: start;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: clamp(16px, 2vw, 22px);
}

.capability-grid article span,
.phase-grid article span {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.capability-grid article strong,
.principle-row strong,
.note-row strong,
.tier-grid article strong,
.phase-grid article h3 {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
}

.warning-band {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid #eed68b;
  border-radius: 8px;
  background: #fff8e5;
  padding: 17px 20px;
}

.warning-band strong {
  color: var(--amber);
  font-size: 1.04rem;
  font-weight: 950;
}

.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.pipeline::before {
  content: "";
  position: absolute;
  top: 108px;
  right: 12%;
  left: 12%;
  height: 2px;
  background: linear-gradient(90deg, rgba(35, 81, 245, 0.16), rgba(0, 134, 106, 0.16), rgba(183, 121, 31, 0.16));
}

.pipeline-phase {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.pipeline-phase::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 5px;
  border-radius: 8px 8px 0 0;
  background: var(--phase-color);
}

.pipeline-phase::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 108px;
  right: -16px;
  width: 16px;
  height: 10px;
  background: color-mix(in oklch, var(--phase-color), white 42%);
  clip-path: polygon(0 42%, calc(100% - 6px) 42%, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, calc(100% - 6px) 58%, 0 58%);
  transform: translateY(-50%);
}

.pipeline-phase:last-child::after {
  display: none;
}

.phase-blue {
  --phase-color: var(--blue);
  background: linear-gradient(180deg, rgba(35, 81, 245, 0.06), #fff 44%);
}

.phase-green {
  --phase-color: var(--green);
  background: linear-gradient(180deg, rgba(0, 134, 106, 0.07), #fff 44%);
}

.phase-amber {
  --phase-color: var(--amber);
  background: linear-gradient(180deg, rgba(183, 121, 31, 0.08), #fff 44%);
}

.phase-head {
  min-height: 58px;
  display: grid;
  gap: 4px;
  align-content: end;
}

.phase-head span {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in oklch, var(--phase-color), white 58%);
  border-radius: 999px;
  background: #fff;
  color: var(--phase-color);
  padding: 0 9px;
  font-size: 0.72rem;
  font-weight: 950;
}

.phase-head strong {
  color: var(--ink);
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  font-weight: 950;
}

.pipeline-step {
  position: relative;
  min-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 12px;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.05);
}

.pipeline-step b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in oklch, var(--phase-color), white 82%);
  color: var(--phase-color);
  font-size: 0.82rem;
  font-weight: 950;
  grid-row: span 2;
}

.pipeline-step span {
  min-width: 0;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 950;
}

.pipeline-step small {
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.pipeline-step.active {
  border-color: color-mix(in oklch, var(--phase-color), white 45%);
  background: #fff;
  box-shadow: 0 16px 40px rgba(35, 81, 245, 0.12);
}

.principle-row,
.note-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.note-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.principle-row div,
.note-row div {
  min-height: 94px;
}

.principle-row div {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-content: center;
  background: linear-gradient(180deg, #fff, #f8fafc);
  padding-left: 18px;
}

.principle-row div::before {
  content: "";
  width: 9px;
  height: 9px;
  align-self: center;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(0, 134, 106, 0.1);
  grid-row: span 2;
}

.principle-row strong,
.principle-row span {
  min-width: 0;
}

.definition-board {
  display: grid;
  grid-template-columns: minmax(310px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
}

.formula-panel {
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faff;
  color: var(--blue);
  padding: 24px;
  text-align: center;
}

.formula-panel .formula-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
}

.formula-panel strong {
  color: var(--ink);
  font-size: clamp(1.8rem, 3.5vw, 2.85rem);
  line-height: 1;
  font-weight: 950;
}

.formula-panel em {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
}

.formula-panel i {
  width: 38px;
  height: 2px;
  background: var(--blue);
}

.focus-examples,
.focus-methods {
  display: grid;
  gap: 12px;
}

@media (min-width: 981px) {
  .cover-grid {
    width: min(1360px, calc(100% - 80px));
  }

  #slide-4 .focus-examples {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.focus-examples article,
.focus-methods article {
  min-height: 82px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.focus-examples article span,
.focus-methods article span {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 950;
}

.focus-methods p {
  color: var(--muted);
  font-size: clamp(0.84rem, 1.05vw, 0.94rem);
  line-height: 1.5;
}

.object-template-list,
.event-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}

.object-template-list {
  padding: 0;
  list-style: none;
}

.object-template-list li,
.event-list b {
  min-height: 26px;
  display: inline-grid;
  align-content: center;
  border: 1px solid color-mix(in oklch, var(--green), white 70%);
  border-radius: 999px;
  background: color-mix(in oklch, var(--green), white 94%);
  color: var(--ink);
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.15;
}

.object-template-list li strong {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 950;
}

.object-template-list li small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.event-list b {
  display: inline-flex;
  align-items: center;
  border-color: color-mix(in oklch, var(--blue), white 72%);
  background: color-mix(in oklch, var(--blue), white 95%);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
}

.focus-methods .measurement-discipline {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  color: var(--ink);
  font-weight: 850;
}

.definition-board + .note-row div {
  min-height: 80px;
}

#slide-5 {
  gap: clamp(10px, 1.3vw, 16px);
  padding-top: calc(var(--topbar-height) + clamp(10px, 1.6vw, 22px));
  padding-bottom: clamp(24px, 3vw, 40px);
}

#slide-5 .slide-head {
  gap: 7px;
}

#slide-5 .slide-head p {
  max-width: 980px;
  font-size: clamp(0.86rem, 1.15vw, 1rem);
  line-height: 1.48;
}

#slide-6 {
  align-content: center;
  gap: clamp(12px, 1.6vw, 18px);
  padding-top: calc(var(--topbar-height) + clamp(10px, 1.6vw, 20px));
  padding-bottom: clamp(24px, 3vw, 38px);
}

#slide-6 .slide-head {
  gap: 7px;
}

#slide-6 .slide-head p {
  max-width: 930px;
  font-size: clamp(0.86rem, 1.12vw, 0.98rem);
  line-height: 1.42;
}

.budget-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.budget-controls label {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.35fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px 14px;
}

.budget-controls span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.budget-controls input,
.budget-allocation-cell input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--muted-token);
  color: var(--muted);
  padding: 0 10px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
}

.budget-controls input:hover,
.budget-allocation-cell input:hover {
  border-color: var(--line);
  background: #fff;
}

.budget-controls input:focus,
.budget-allocation-cell input:focus {
  border-color: var(--blue);
  background: #fff;
  color: var(--ink);
}

.budget-allocation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: stretch;
}

.budget-allocation-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.budget-allocation-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) minmax(72px, 0.5fr) minmax(72px, 0.5fr) minmax(110px, 0.66fr) minmax(118px, 0.72fr);
  gap: 10px;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  padding: 8px 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.budget-allocation-row:last-child {
  border-bottom: 0;
}

.budget-allocation-head {
  min-height: 42px;
  background: #eef3ff;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.budget-allocation-cell {
  min-width: 0;
}

.budget-allocation-cell > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.budget-allocation-cell strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
}

.budget-pie-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.budget-pie-stage {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(122px, 0.62fr);
  gap: 14px;
  align-items: center;
}

.budget-pie {
  position: relative;
  width: min(230px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 50%;
  background: conic-gradient(var(--blue), var(--green), var(--amber), var(--red));
  box-shadow: inset 0 0 0 24px #fff, 0 18px 42px rgba(17, 24, 39, 0.12);
}

.budget-pie-label {
  position: absolute;
  top: 50%;
  left: 50%;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 3px rgba(17, 24, 39, 0.52);
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-58px) rotate(calc(-1 * var(--angle)));
  white-space: nowrap;
}

.budget-pie-summary {
  display: grid;
  gap: 8px;
}

.budget-pie-summary div {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--muted-token);
  padding: 10px;
}

.budget-pie-summary span,
.budget-pie-legend span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.budget-pie-summary strong,
.budget-pie-legend strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
}

.budget-pie-legend {
  display: grid;
  gap: 7px;
}

.budget-pie-legend div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.budget-pie-legend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.budget-pie-legend span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.budget-method {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  gap: 12px;
}

.budget-method > div {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
}

.budget-method strong {
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 950;
}

.budget-method p {
  font-size: clamp(0.72rem, 1vw, 0.84rem);
  line-height: 1.48;
  font-weight: 760;
}

.budget-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr) minmax(220px, 0.55fr);
  gap: 16px;
  align-items: stretch;
}

.budget-equation,
.explore-pool,
.min-budget,
.score-panel {
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: clamp(18px, 2.4vw, 28px);
}

.budget-equation span,
.score-panel span {
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 950;
}

.budget-equation strong,
.min-budget strong,
.score-panel strong {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.18;
  font-weight: 950;
}

#slide-8 {
  gap: clamp(10px, 1.45vw, 16px);
  padding-top: calc(var(--topbar-height) + clamp(10px, 1.6vw, 22px));
  padding-bottom: clamp(22px, 3vw, 38px);
}

#slide-8 .slide-head {
  gap: 7px;
}

#slide-8 .slide-head p {
  max-width: 940px;
  font-size: clamp(0.86rem, 1.12vw, 1rem);
  line-height: 1.42;
}

#slide-8 .tier-grid {
  gap: 10px;
}

#slide-8 .tier-grid article {
  min-height: 0;
  gap: 10px;
  padding: clamp(12px, 1.45vw, 16px);
}

.tier-card-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.tier-card-head strong {
  line-height: 1.18;
}

.tier-details {
  display: grid;
  gap: 7px;
  margin: 0;
}

.tier-details div {
  min-width: 0;
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line);
  padding-top: 7px;
}

.tier-details dt {
  color: var(--blue);
  font-size: clamp(0.64rem, 0.76vw, 0.7rem);
  font-weight: 950;
  line-height: 1.12;
}

.tier-details dd {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.66rem, 0.82vw, 0.76rem);
  font-weight: 760;
  line-height: 1.36;
}

.tier-details sub {
  font-size: 0.68em;
  line-height: 0;
  vertical-align: sub;
}

.min-budget {
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  align-items: stretch;
  gap: 10px 12px;
  padding: 14px;
}

.min-budget-formula {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 10px 16px;
}

.min-budget-label {
  color: var(--blue);
  font-size: clamp(1.4rem, 2.65vw, 2.35rem);
  font-weight: 950;
  line-height: 0.98;
}

.min-budget-formula strong {
  font-size: clamp(1.12rem, 1.75vw, 1.6rem);
}

.min-budget-params {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.min-budget-params div {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 10px 16px;
}

.min-budget-params b {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 950;
}

.min-budget-params span {
  color: var(--muted);
  font-size: clamp(0.68rem, 0.86vw, 0.78rem);
  font-weight: 760;
  line-height: 1.38;
}

.min-budget-rules {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.min-budget-rules li {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.min-budget-rules li::before {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f6f1;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 950;
}

.min-budget-rules li:nth-child(1)::before { content: "1"; }
.min-budget-rules li:nth-child(2)::before { content: "2"; }
.min-budget-rules li:nth-child(3)::before { content: "3"; }

.min-budget-rules strong,
.min-budget-rules span {
  min-width: 0;
}

.min-budget-rules strong {
  color: var(--ink);
  font-size: clamp(0.74rem, 0.96vw, 0.86rem);
  font-weight: 950;
  line-height: 1.28;
}

.min-budget-rules span {
  grid-column: 2;
  color: var(--muted);
  font-size: clamp(0.66rem, 0.84vw, 0.76rem);
  font-weight: 760;
  line-height: 1.38;
}

.min-budget sub {
  font-size: 0.58em;
  line-height: 0;
  vertical-align: sub;
}

.budget-stack {
  min-height: 258px;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stack-segment {
  width: var(--size);
  min-width: 80px;
  display: grid;
  place-items: end center;
  color: #fff;
  padding: 18px 10px;
  font-weight: 950;
}

.stack-segment.blue { background: var(--blue); }
.stack-segment.green { background: var(--green); }
.stack-segment.amber { background: var(--amber); }

.explore-pool {
  background: #f7faff;
}

.explore-pool strong {
  color: var(--blue);
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 0.95;
}

.explore-pool span {
  color: var(--ink);
  font-weight: 950;
}

.simulation-grid {
  --simulation-chart-height: clamp(260px, 30vh, 320px);
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(250px, 0.62fr) minmax(280px, 0.72fr);
  gap: 12px;
  align-items: stretch;
}

.simulation-slide {
  align-content: center;
  gap: clamp(10px, 1.5vw, 18px);
  overflow: hidden;
  padding-top: calc(var(--topbar-height) + clamp(10px, 1.6vw, 22px));
  padding-bottom: clamp(26px, 3vw, 42px);
}

.simulation-slide .slide-head {
  gap: 7px;
}

.simulation-slide h2 {
  white-space: normal;
}

.simulation-slide .slide-head p {
  max-width: 1060px;
  font-size: clamp(0.82rem, 1.08vw, 0.96rem);
  line-height: 1.5;
}

.simulation-slide .slide-head a {
  color: var(--blue);
  font-weight: 950;
  text-decoration: none;
}

.simulation-slide .slide-head a:hover {
  text-decoration: underline;
}

.simulation-method {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 12px;
}

.simulation-method article,
.simulation-card {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
}

.simulation-method article:first-child {
  background: #f7faff;
}

.simulation-method article:last-child {
  background: #fff8e5;
  border-color: #eed68b;
}

.simulation-method span,
.simulation-card-head span {
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.simulation-method article:last-child span {
  color: var(--amber);
}

.simulation-method p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.72rem, 1vw, 0.84rem);
  font-weight: 760;
  line-height: 1.5;
}

.simulation-card {
  min-width: 0;
  overflow-x: auto;
  padding: 12px;
}

.simulation-card-head {
  display: grid;
  gap: 3px;
}

.simulation-card-head strong {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 950;
}

.source-list,
.output-list {
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.source-list span,
.output-list span,
.asset-strip span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--muted-token);
  color: var(--ink);
  padding: 0 10px;
  font-size: 0.86rem;
  font-weight: 850;
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.cell {
  min-height: 62px;
  border-radius: 6px;
}

.cell.hot { background: var(--blue); }
.cell.warm { background: color-mix(in oklch, var(--green), white 28%); }
.cell.cool { background: #e6ebf5; }

.recall-heatmap,
.gap-table,
.collision-matrix {
  height: var(--simulation-chart-height);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.recall-heatmap {
  grid-template-columns: minmax(126px, 1.42fr) repeat(5, minmax(48px, 0.76fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding: 0;
}

.collision-matrix {
  display: grid;
  grid-template-columns: minmax(42px, 0.55fr) repeat(5, minmax(42px, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
}

.recall-heatmap > *,
.collision-matrix > * {
  min-width: 0;
  min-height: 38px;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(216, 221, 232, 0.75);
  border-bottom: 1px solid rgba(216, 221, 232, 0.75);
  padding: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.recall-heatmap > :nth-child(6n),
.collision-matrix > :nth-child(6n) {
  border-right: 0;
}

.recall-heatmap > :nth-last-child(-n + 6),
.collision-matrix > :nth-last-child(-n + 6) {
  border-bottom: 0;
}

.recall-heatmap b,
.collision-matrix b {
  background: var(--muted-token);
  color: var(--ink);
  font-size: 0.64rem;
  font-weight: 950;
}

.recall-heatmap .cell,
.collision-matrix .cell {
  min-height: 38px;
  border-radius: 0;
  color: #fff;
}

.recall-heatmap .cell.hot,
.recall-heatmap .cell.warm,
.recall-heatmap .cell.cool {
  background: color-mix(in oklch, var(--blue) var(--level), white);
}

.recall-heatmap .cell.risk,
.collision-matrix .cell.risk {
  background: var(--red);
}

.collision-matrix .cell {
  background: #e6ebf5;
  color: var(--muted);
}

.collision-matrix .cell.warm {
  background: color-mix(in oklch, var(--amber), white 28%);
  color: #fff;
}

.collision-matrix .cell.self {
  background: var(--ink);
  color: #fff;
}

.gap-table {
  display: grid;
  grid-template-rows: repeat(6, minmax(0, 1fr));
}

.gap-row {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(54px, 0.45fr) minmax(68px, 0.6fr);
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
}

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

.gap-row span,
.gap-row strong,
.gap-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gap-row strong {
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 950;
}

.gap-row em {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: #e8f6f1;
  color: var(--green);
  padding: 4px 8px;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 950;
}

.gap-head {
  min-height: 36px;
  background: #eef3ff;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.gap-row.flagged {
  background: #fff8e5;
}

.gap-row.flagged strong {
  color: var(--amber);
}

.gap-row.flagged em {
  background: #fee9b6;
  color: var(--amber);
}

.demo-readout,
.collision-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.45;
}

.demo-readout {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.demo-readout strong {
  color: var(--blue);
  font-weight: 950;
}

.query-bank-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(14px, 1.8vw, 20px);
  align-items: stretch;
  max-height: min(460px, calc(var(--viewport-height) - var(--topbar-height) - 178px));
}

.query-method-panel,
.query-map-panel {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.query-method-panel {
  display: grid;
  gap: 8px;
  overflow: hidden;
  padding: clamp(12px, 1.4vw, 16px);
}

.query-method-head {
  display: grid;
  gap: 4px;
  padding-bottom: 4px;
}

.query-method-head span {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.query-method-head h3 {
  font-size: clamp(0.98rem, 1.35vw, 1.16rem);
}

.query-method-step {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid #e6ebf5;
  border-radius: 8px;
  background: #f8fbff;
  padding: 10px;
}

.query-method-step b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 950;
}

.query-method-step strong {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 950;
}

.query-method-step p {
  margin-top: 3px;
  color: var(--muted);
  font-size: clamp(0.7rem, 0.9vw, 0.8rem);
  font-weight: 760;
  line-height: 1.42;
}

.query-map-panel {
  display: grid;
  overflow: hidden;
}

.query-bank-layout .query-map-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.intent-space-panel {
  aspect-ratio: 2720 / 1960;
  overflow: hidden;
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin-block: 0;
}

.intent-space-map {
  width: 100%;
  height: 100%;
  max-height: 100%;
}

.intent-background {
  fill: #fff;
}

.intent-boundary {
  fill: transparent;
  stroke: rgba(71, 80, 91, 0.72);
  stroke-width: 3;
  stroke-dasharray: 23 22;
}

.intent-map-title {
  fill: rgba(17, 24, 39, 0.36);
  font-size: 54px;
  font-weight: 950;
}

.intent-guide {
  fill: none;
  stroke: rgba(71, 80, 91, 0.68);
  stroke-width: 3;
  stroke-dasharray: 20 18;
}

.tier-cluster {
  fill: currentColor;
}

.tier-cluster .hint-radius {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 6;
  stroke-dasharray: 18 15;
}

.tier-muted {
  color: #7e8580;
}

.tier-green {
  color: #009f7a;
}

.tier-orange {
  color: #d98b00;
}

.tier-red {
  color: #dc5c2d;
}

.intent-labels text,
.intent-legend {
  fill: rgba(17, 24, 39, 0.52);
  font-weight: 950;
}

.intent-labels text {
  font-size: 48px;
}

.intent-legend {
  font-size: 42px;
}

.tier-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tier-grid article span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef3ff;
  color: var(--blue);
  font-weight: 950;
}

.min-budget {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
}

.coverage-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: clamp(18px, 2vw, 28px);
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.06);
}

#slide-9 {
  gap: clamp(7px, 1vw, 10px);
  padding-top: calc(var(--topbar-height) + clamp(6px, 1vw, 12px));
  padding-bottom: clamp(12px, 1.5vw, 18px);
}

#slide-9 .slide-head {
  gap: 7px;
}

#slide-9 .slide-head p {
  font-size: clamp(0.88rem, 1.18vw, 1rem);
  line-height: 1.42;
}

#slide-9 .warning-band {
  padding-block: 8px;
}

#slide-9 .slide-head h2 {
  white-space: normal;
}

.coverage-gauge {
  position: relative;
  min-height: 310px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #fff;
}

.coverage-gauge svg {
  width: min(250px, 72%);
  transform: rotate(-90deg);
}

.coverage-gauge circle {
  fill: none;
  stroke: #e6ebf5;
  stroke-width: 18;
}

.coverage-gauge .gauge-value {
  stroke: var(--green);
  stroke-linecap: round;
  stroke-dasharray: 519;
  stroke-dashoffset: 21;
}

.coverage-gauge-copy {
  position: absolute;
  width: min(54%, 150px);
  display: grid;
  gap: 7px;
  justify-items: center;
  text-align: center;
  overflow-wrap: anywhere;
}

.coverage-gauge-label {
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: 0;
}

.coverage-gauge-subtitle {
  max-width: 100%;
  color: var(--muted);
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  line-height: 1.28;
  font-weight: 900;
}

.coverage-copy {
  display: grid;
  gap: 8px;
}

.coverage-rule-card,
.epsilon-panel {
  display: grid;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 8px 0;
}

.arrow-flow {
  --arrow-flow-color: var(--blue);
  --arrow-flow-line: rgba(35, 81, 245, 0.34);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: center;
  padding: 6px 0 2px;
}

.arrow-step {
  position: relative;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 6px 4px;
  font-size: 0.8rem;
  font-weight: 950;
  line-height: 1.3;
  text-align: center;
  isolation: isolate;
}

.arrow-step::before {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 4px;
  left: 8px;
  z-index: -1;
  height: 3px;
  border-radius: 999px;
  background: var(--arrow-flow-line);
}

.arrow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  width: 15px;
  height: 15px;
  border-top: 3px solid var(--arrow-flow-color);
  border-right: 3px solid var(--arrow-flow-color);
  transform: translateY(-50%) rotate(45deg);
}

.coverage-repair-flow {
  --arrow-flow-color: var(--blue);
  --arrow-flow-line: rgba(35, 81, 245, 0.28);
}

.coverage-repair-flow .arrow-step {
  color: color-mix(in oklch, var(--blue), var(--ink) 34%);
}

.epsilon-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.epsilon-panel-head span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  white-space: nowrap;
}

.epsilon-split {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 10px;
}

.epsilon-bar {
  grid-column: 1 / -1;
  height: 14px;
  display: grid;
  grid-template-columns: 70fr 30fr;
  overflow: hidden;
  border-radius: 8px;
  background: var(--muted-token);
}

.epsilon-bar span {
  background: var(--green);
}

.epsilon-bar i {
  background: var(--blue);
}

.epsilon-card {
  min-height: 82px;
  display: grid;
  gap: 7px;
  align-content: start;
  border: 1px solid rgba(0, 134, 106, 0.24);
  border-radius: 8px;
  background: color-mix(in oklch, var(--green), #fff 92%);
  padding: 12px;
}

.epsilon-card.explore {
  border-color: rgba(35, 81, 245, 0.24);
  background: #f7faff;
}

.epsilon-card strong {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 950;
}

.epsilon-card p {
  font-size: 0.82rem;
  line-height: 1.5;
}

.epsilon-promotion-flow {
  --arrow-flow-color: var(--green);
  --arrow-flow-line: rgba(0, 134, 106, 0.3);
  padding-top: 6px;
}

.epsilon-promotion-flow .arrow-step {
  color: color-mix(in oklch, var(--green), var(--ink) 38%);
}

#slide-10 {
  align-content: center;
  gap: clamp(8px, 1.2vw, 12px);
  padding-top: calc(var(--topbar-height) + clamp(8px, 1.2vw, 16px));
  padding-bottom: clamp(18px, 2.2vw, 30px);
}

#slide-10 .slide-head {
  gap: 6px;
}

#slide-10 .slide-head p {
  max-width: 100%;
  font-size: clamp(0.82rem, 1.1vw, 0.98rem);
  line-height: 1.34;
  white-space: nowrap;
}

.matrix-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1.42fr 0.46fr 0.64fr 0.6fr 0.62fr 0.82fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

#slide-10 .table-row {
  min-height: 50px;
  font-size: 0.82rem;
}

.matrix-edit-row {
  padding-top: 10px;
  padding-bottom: 10px;
}

#slide-10 .matrix-edit-row {
  padding-top: 7px;
  padding-bottom: 7px;
}

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

.table-head {
  min-height: 48px;
  background: #eef3ff;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

#slide-10 .table-head {
  min-height: 42px;
  font-size: 0.72rem;
}

.table-row strong {
  color: var(--green);
  font-weight: 950;
}

.matrix-cell {
  min-width: 0;
}

.matrix-static-text {
  display: block;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matrix-cell input,
.matrix-cell select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--muted-token);
  color: var(--muted);
  padding: 0 10px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
}

#slide-10 .matrix-cell input,
#slide-10 .matrix-cell select {
  min-height: 30px;
  font-size: 0.76rem;
}

.matrix-cell input:hover,
.matrix-cell select:hover {
  border-color: var(--line);
  background: #fff;
}

.matrix-cell input:focus,
.matrix-cell select:focus {
  border-color: var(--blue);
  background: #fff;
  color: var(--ink);
}

.matrix-range-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}

.matrix-range-inputs span {
  color: var(--muted);
  font-weight: 950;
}

.forecast-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.forecast-row div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

#slide-10 .forecast-row div {
  padding: 13px 16px;
}

.forecast-row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.forecast-row strong {
  color: var(--ink);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1;
  font-weight: 950;
}

#slide-10 .forecast-row strong {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
}

.method-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px 18px;
}

#slide-10 .method-panel {
  gap: 7px;
  padding: 11px 14px;
}

.method-panel > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.method-panel span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.method-panel strong {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.method-formulas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.method-formulas code {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--muted-token);
  color: var(--ink);
  padding: 9px 10px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.64rem, 1.1vw, 0.78rem);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.method-panel p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.72rem, 1.2vw, 0.84rem);
  line-height: 1.55;
  font-weight: 760;
}

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

.loop-node {
  min-height: 210px;
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.loop-node b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 950;
}

.loop-node strong {
  color: var(--ink);
  font-weight: 950;
}

.loop-node span {
  color: var(--muted);
  line-height: 1.55;
}

#slide-11 {
  gap: clamp(10px, 1.25vw, 14px);
  padding-top: calc(var(--topbar-height) + clamp(8px, 1.2vw, 16px));
  padding-bottom: clamp(50px, 6vw, 68px);
}

#slide-11 .loop-node {
  min-height: 150px;
  gap: 8px;
  padding: 16px;
}

#slide-11 .loop-node b {
  width: 32px;
  height: 32px;
}

#slide-11 .loop-node span {
  font-size: clamp(0.82rem, 1.2vw, 0.94rem);
  line-height: 1.45;
}

.post-loop-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 12px;
  align-items: stretch;
}

.post-loop-summary .score-panel,
.post-loop-summary .final-objective {
  min-width: 0;
  height: 100%;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: clamp(12px, 1.5vw, 16px);
}

.post-loop-summary .score-panel span,
.post-loop-summary .final-objective span {
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 950;
}

.post-loop-summary .score-panel strong,
.post-loop-summary .final-objective strong {
  color: var(--ink);
  font-size: clamp(1rem, 1.7vw, 1.38rem);
  font-weight: 950;
  line-height: 1.18;
}

.post-loop-summary .score-panel p,
.post-loop-summary .final-objective p {
  color: var(--muted);
  font-size: clamp(0.78rem, 1.1vw, 0.9rem);
  font-weight: 760;
  line-height: 1.42;
}

.final-objective {
  margin: 0;
}

.governance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: 16px;
  align-items: stretch;
}

.governance-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.governance-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.governance-panel-head {
  display: grid;
  gap: 5px;
}

.governance-panel-head span,
.governance-rail span {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.governance-panel-head strong {
  color: var(--ink);
  font-size: clamp(1.05rem, 1.7vw, 1.34rem);
  font-weight: 950;
}

.governance-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
  margin: 0;
  padding: 16px 0 2px;
  list-style: none;
}

.governance-flow li {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 9px;
  padding: 0;
}

.governance-flow li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 17px;
  right: -12px;
  left: 56px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(35, 81, 245, 0.46), rgba(0, 134, 106, 0.28));
}

.governance-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10px;
  right: -15px;
  width: 14px;
  height: 14px;
  border-top: 3px solid var(--blue);
  border-right: 3px solid var(--blue);
  transform: rotate(45deg);
}

.governance-flow b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 950;
}

.governance-flow strong,
.governance-rail strong {
  min-width: 0;
  color: var(--ink);
  font-weight: 950;
}

.governance-flow p,
.governance-rail p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.governance-flow p {
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  font-weight: 760;
}

.governance-rail {
  display: grid;
  gap: 0;
  align-content: stretch;
  background: transparent;
  padding: 16px 0;
}

.governance-rail div {
  display: grid;
  align-content: center;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.governance-rail div:first-child {
  padding-top: 0;
}

.governance-rail div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.governance-rail strong {
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  line-height: 1.3;
}

.governance-rail p {
  font-size: 0.82rem;
  font-weight: 780;
}

.phase-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.asset-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slide-dots {
  position: fixed;
  z-index: 55;
  right: 50%;
  bottom: 18px;
  display: inline-flex;
  gap: 10px;
  transform: translateX(50%);
}

.slide-dots button {
  position: relative;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: width 180ms ease;
}

.slide-dots button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #cbd5e1;
  transform: translate(-50%, -50%);
  transition:
    width 180ms ease,
    background-color 180ms ease;
}

.slide-dots button.active {
  width: 54px;
}

.slide-dots button.active::before {
  width: 42px;
  background: var(--blue);
}

@media (max-width: 980px) {
  .playbook {
    height: var(--viewport-height);
    overflow: hidden;
  }

  .slide-track {
    height: 100%;
  }

  .slide {
    height: var(--viewport-height);
    min-height: 0;
    align-content: start;
    overflow-y: auto;
  }

  .cover-grid,
  .definition-board,
  .budget-layout,
  .budget-allocation-layout,
  .budget-method,
  .query-bank-layout,
  .simulation-method,
  .simulation-grid,
  .coverage-layout,
  .post-loop-summary,
  .governance-layout {
    grid-template-columns: 1fr;
  }

  .query-bank-layout {
    max-height: none;
  }

  .toc-framework-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toc-framework-card {
    min-height: 220px;
  }

  .capability-grid,
  .tier-grid,
  .loop-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .governance-flow {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 6px;
  }

  .governance-flow li {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 10px;
  }

  .governance-flow b {
    grid-row: span 2;
  }

  .governance-flow li:not(:last-child)::before {
    top: 38px;
    bottom: -20px;
    left: 16px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(35, 81, 245, 0.46), rgba(0, 134, 106, 0.28));
  }

  .governance-flow li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -19px;
    left: 10px;
    transform: rotate(135deg);
  }

  .pipeline {
    grid-template-columns: 1fr;
  }

  .pipeline::before {
    top: 86px;
    bottom: 64px;
    left: 31px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(35, 81, 245, 0.28), rgba(0, 134, 106, 0.28), rgba(183, 121, 31, 0.28));
  }

  .pipeline-phase {
    padding-left: 54px;
  }

  .pipeline-phase::after {
    top: auto;
    right: auto;
    bottom: -13px;
    left: 31px;
    transform: translateX(-50%) rotate(90deg);
  }

  .principle-row,
  .note-row,
  .phase-grid,
  .forecast-row,
  .method-formulas {
    grid-template-columns: 1fr;
  }

  .min-budget {
    grid-template-columns: 1fr;
  }

  .min-budget-rules {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --topbar-height: 62px;
    --app-page-gutter: 18px;
  }

  .topbar-meta > span:first-child,
  .meta-divider {
    display: none;
  }

  .topbar-inner {
    gap: 8px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .toc-toggle {
    min-width: 72px;
    height: 30px;
    padding-inline: 9px 7px;
    font-size: 0.74rem;
  }

  .toc-menu {
    position: fixed;
    top: calc(var(--topbar-height) - 2px);
    right: 12px;
    left: 12px;
    width: auto;
    max-height: min(440px, calc(100vh - var(--topbar-height) - 18px));
  }

  .side-nav-button {
    width: 38px;
    height: 38px;
  }

  .side-nav-button-prev {
    left: 6px;
  }

  .side-nav-button-next {
    right: 6px;
  }

  .language-switcher {
    display: none;
  }

  .brand-wordmark {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(0.95rem, 4.3vw, 1.35rem);
  }

  h2 {
    font-size: clamp(0.9rem, 4vw, 1.25rem);
  }

  .cover-grid {
    width: calc(100vw - var(--app-page-gutter) - var(--app-page-gutter));
  }

  .engine-badge {
    width: 100%;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    line-height: 1.35;
  }

  .engine-badge svg {
    flex: none;
  }

  .capability-grid,
  .toc-framework-grid,
  .tier-grid,
  .loop-layout,
  .coverage-repair-flow,
  .epsilon-split,
  .explore-flow,
  .post-loop-summary,
  .governance-flow {
    grid-template-columns: 1fr;
  }

  .toc-framework-slide {
    align-content: start;
  }

  .toc-framework-card {
    min-height: 188px;
    gap: 10px;
  }

  .governance-panel,
  .governance-rail {
    padding: 12px;
  }

  .governance-flow {
    gap: 22px;
    padding-top: 6px;
  }

  .governance-flow li {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 10px;
  }

  .governance-flow b {
    grid-row: span 2;
  }

  .governance-flow li:not(:last-child)::before {
    top: 38px;
    bottom: -20px;
    left: 16px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(35, 81, 245, 0.46), rgba(0, 134, 106, 0.28));
  }

  .governance-flow li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -19px;
    left: 10px;
    transform: rotate(135deg);
  }

  .pipeline {
    gap: 12px;
  }

  .pipeline::before,
  .pipeline-phase::after {
    display: none;
  }

  .pipeline-phase {
    padding: 12px;
  }

  .phase-head {
    min-height: auto;
  }

  .pipeline-step {
    min-height: 70px;
    padding: 11px;
  }

  .arrow-flow {
    gap: 20px;
  }

  .arrow-step {
    min-height: 36px;
  }

  .arrow-step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -17px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }

  .warning-band,
  .min-budget,
  .budget-controls {
    grid-template-columns: 1fr;
  }

  .min-budget-params {
    grid-template-columns: 1fr;
  }

  .min-budget-params div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 10px 0;
  }

  .min-budget-params div:first-child {
    border-top: 0;
  }

  .min-budget-rules li {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .coverage-gauge {
    min-height: 300px;
  }

  .coverage-gauge svg {
    width: min(220px, 68%);
  }

  .coverage-gauge-copy {
    width: min(52%, 140px);
  }

  .coverage-gauge-label {
    font-size: clamp(1.18rem, 5.6vw, 1.55rem);
  }

  .coverage-gauge-subtitle {
    font-size: 0.78rem;
  }

  .budget-controls label {
    grid-template-columns: 1fr;
  }

  .query-method-panel {
    gap: 6px;
    padding: 10px;
  }

  .query-method-head {
    gap: 2px;
    padding-bottom: 2px;
  }

  .query-method-step {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .query-method-step b {
    width: 28px;
    height: 28px;
    font-size: 0.96rem;
  }

  .query-method-step strong {
    font-size: 0.82rem;
  }

  .query-method-step p {
    font-size: 0.68rem;
    line-height: 1.36;
  }

  .query-map-panel {
    height: min(226px, 64vw);
    padding: 8px;
  }

  .budget-allocation-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 14px;
  }

  .budget-allocation-head {
    display: none;
  }

  .budget-allocation-cell {
    display: grid;
    grid-template-columns: minmax(84px, 0.36fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }

  .budget-allocation-cell::before {
    content: attr(data-label);
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .budget-pie-stage {
    grid-template-columns: 1fr;
  }

  .budget-pie-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .budget-pie-legend div {
    grid-template-columns: 1fr;
  }

  .budget-pie-legend i {
    display: none;
  }

  .recall-heatmap {
    min-width: 560px;
  }

  .collision-matrix {
    min-width: 360px;
  }

  .engine-orbit {
    width: min(100%, 340px);
    min-height: 330px;
    justify-self: center;
  }

  .slide-footer {
    position: static;
    width: min(var(--app-content-width), 100%);
    align-items: flex-start;
    justify-content: flex-start;
    margin-inline: auto;
    text-align: left;
  }

  .orbit-core {
    width: 100px;
    height: 100px;
  }

  .orbit-core strong {
    font-size: 1rem;
  }

  .orbit-loop-arrow {
    inset: 10%;
  }

  .orbit-flow-ring {
    stroke-width: 3;
  }

  .orbit-node {
    min-width: 108px;
    padding: 9px 10px;
    font-size: 0.74rem;
  }

  .node-b {
    right: 3%;
  }

  .node-d {
    left: 3%;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 14px;
  }

  .table-head {
    display: none;
  }

  .matrix-cell {
    display: grid;
    grid-template-columns: minmax(84px, 0.36fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }

  .matrix-cell::before {
    content: attr(data-label);
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .method-panel > div:first-child {
    display: grid;
    gap: 2px;
  }

  .slide-dots {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide-track,
  .progress-track span,
  .icon-button,
  .toc-toggle,
  .toc-toggle svg,
  .side-nav-button,
  .slide-dots button,
  .slide-dots button::before {
    transition: none;
  }

  .orbit-loop-arrow,
  .orbit-flow-ring {
    animation: none;
  }
}
