:root {
  --room: #0d151b;
  --canvas: #15212a;
  --canvas-alt: #1c2a32;
  --ink: #eee8dc;
  --ink-soft: #b9c0bb;
  --line: #56636a;
  --amber: #d3a052;
  --green: #83947f;
  --cyan: #72a8b0;
  --red: #bc6458;
  --wood: #b89058;
  --wood-ink: #171a19;
  --clock-red: #bc6458;
  --clock-yellow: #d3a052;
  --clock-blue: #72a8b0;
  --clock-1: var(--clock-red);
  --clock-2: var(--clock-yellow);
  --clock-3: var(--clock-blue);
  --stage-scale: 1;
  color-scheme: dark;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", -apple-system, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-theme="light"] {
  --room: #d6d5cb;
  --canvas: #f1efe6;
  --canvas-alt: #e4e1d6;
  --ink: #1b2529;
  --ink-soft: #4d5a5d;
  --line: #9ca39d;
  --amber: #946322;
  --green: #526c58;
  --cyan: #3b7881;
  --red: #a6433b;
  --wood: #c7a46d;
  --wood-ink: #171a19;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--room);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

.stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1280px;
  height: 720px;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(var(--stage-scale));
  transform-origin: center;
  background: var(--canvas);
  color: var(--ink);
  isolation: isolate;
}

.deck-chrome {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: 70px;
  padding: 0 56px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 17px;
}

.deck-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark-dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--amber);
  border-radius: 50%;
}

.deck-status {
  display: flex;
  align-items: center;
  gap: 18px;
}

.act-label {
  color: var(--amber);
}

.page-label {
  justify-self: end;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.slide-stack {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 1280px;
  height: 720px;
  padding: 102px 76px 68px;
  overflow: hidden;
  background: var(--canvas);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide.hour2-hidden {
  display: none !important;
}

.slide .q {
  flex: 0 0 auto;
  min-height: 56px;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 36px;
  font-weight: 650;
  line-height: 1.22;
}

.slide .main {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}

.slide p {
  margin: 8px 0;
  font-size: 24px;
  line-height: 1.45;
}

.slide h2 {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 25px;
  font-weight: 650;
  line-height: 1.3;
}

.takeaway {
  flex: 0 0 auto;
  margin: 9px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--amber);
  color: var(--ink);
  font-size: 23px;
  font-weight: 620;
  line-height: 1.38;
}

.src {
  flex: 0 0 auto;
  min-height: 18px;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.35;
}

.src:empty {
  display: none;
}

.figure-note {
  flex: 0 0 auto;
  margin: 7px 0 0 !important;
  color: var(--ink-soft);
  font-size: 18px !important;
  line-height: 1.35 !important;
}

.notes {
  display: none;
}

.frag {
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease;
}

.frag.is-revealed {
  opacity: 1;
  visibility: visible;
}

.progress-track {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: color-mix(in srgb, var(--line) 48%, transparent);
}

.progress-track > div {
  width: 0;
  height: 100%;
  background: var(--amber);
  transition: width 160ms ease;
}

.deck-controls {
  position: absolute;
  z-index: 8;
  right: 36px;
  bottom: 20px;
  display: flex;
  gap: 8px;
}

.deck-controls button,
.presenter-header button,
.speaker-controls button,
.exercise-clock button,
.overview > header button {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--canvas-alt);
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
}

.deck-controls button:hover,
.speaker-controls button:hover,
.exercise-clock button:hover,
.overview > header button:hover {
  border-color: var(--amber);
}

.deck-controls svg,
.speaker-controls svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
}

.toast {
  position: absolute;
  z-index: 20;
  bottom: 76px;
  left: 50%;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: var(--canvas-alt);
  color: var(--ink);
  font-size: 17px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.blackout {
  position: absolute;
  z-index: 30;
  inset: 0;
  background: #000;
}

.overview {
  position: absolute;
  z-index: 25;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 36px 34px;
  background: var(--canvas);
}

.overview > header {
  display: flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.overview > header h1 {
  margin: 0;
  font-size: 26px;
}

.overview > header button {
  width: 38px;
  min-width: 38px;
  padding: 0;
  font-size: 24px;
}

.overview-grid {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 18px 2px 2px;
}

.overview-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  min-height: 74px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--canvas-alt);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.overview-item:hover:not(:disabled) {
  border-color: var(--amber);
}

.overview-item:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.overview-number {
  color: var(--amber);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
}

.overview-title {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.3;
}

.go-dialog {
  position: absolute;
  z-index: 18;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--canvas-alt);
  transform: translate(-50%, -50%);
}

.go-dialog label {
  font-size: 18px;
}

.go-dialog input {
  width: 100px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--canvas);
  color: var(--ink);
  font-size: 20px;
  text-align: center;
}

.countdown {
  position: absolute;
  z-index: 16;
  top: 14px;
  left: 50%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 150px;
  height: 44px;
  padding: 4px 14px;
  border: 1px solid var(--amber);
  background: var(--canvas);
  color: var(--amber);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 32px;
  transform: translateX(-50%);
  pointer-events: none;
}

.countdown span {
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 20px;
  white-space: nowrap;
}

/* Cover */
.cover {
  justify-content: center;
  padding: 112px 92px;
}

.cover-rule {
  position: absolute;
  top: 132px;
  bottom: 120px;
  left: 90px;
  width: 4px;
  background: var(--amber);
}

.cover-copy {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin-left: 44px;
}

.cover h1 {
  max-width: 800px;
  margin: 0;
  color: var(--ink);
  font-size: 62px;
  font-weight: 700;
  line-height: 1.2;
}

.cover-subtitle {
  max-width: 740px;
  margin-top: 28px !important;
  color: var(--ink-soft);
  font-size: 29px !important;
  line-height: 1.5 !important;
}

.cover .q {
  max-width: 780px;
  margin: 26px 0 0;
  color: var(--amber);
  font-size: 30px;
}

.cover .takeaway {
  max-width: 620px;
  margin-top: 14px;
  font-size: 22px;
}

.definition-preview {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 24px !important;
  line-height: 1.35 !important;
}

.cover-meta {
  display: flex;
  gap: 28px;
  margin-top: 54px;
  color: var(--amber);
  font-size: 19px;
}

.cover-meta > span:not([hidden]) + span::before {
  margin-right: 28px;
  color: var(--line);
  content: "/";
}

.cover-mark {
  position: absolute;
  right: 40px;
  bottom: 80px;
  width: 390px;
  opacity: 0.72;
}

/* Chapter breaks and quotation pages */
.chapter {
  justify-content: center;
  padding-left: 112px;
}

.chapter-number {
  margin-bottom: 22px;
  color: var(--amber);
  font-size: 20px;
}

.chapter h1 {
  max-width: 900px;
  margin: 0;
  font-size: 64px;
  line-height: 1.15;
}

.chapter p {
  max-width: 800px;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 28px;
}

.quote-slide {
  justify-content: center;
}

.quote-slide .q {
  color: var(--amber);
  font-size: 22px;
}

.quote-main {
  max-width: 1060px;
  margin: 0 auto;
}

.quote-main h1 {
  margin: 0;
  color: var(--ink);
  font-size: 48px;
  font-weight: 650;
  line-height: 1.38;
}

.decision-formula {
  margin-top: 34px !important;
  color: var(--ink-soft);
  font-size: 25px !important;
}

.decision-formula span {
  color: var(--amber);
}

.quote-small {
  margin-top: 28px !important;
  color: var(--ink-soft);
  font-size: 20px !important;
}

.end-slide .quote-main h1 {
  font-size: 45px;
}

.thanks-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 286px;
  align-items: center;
  gap: 54px;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.thanks-layout .quote-main {
  max-width: none;
  margin: 0;
}

.thanks-qr {
  width: 286px;
  margin: 0;
  text-align: center;
}

.thanks-qr img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

.thanks-qr figcaption {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.35;
}

.thanks-qr small {
  color: var(--amber);
  font-size: 17px;
}

.end-slide .quote-main > p {
  margin-top: 28px;
  color: var(--amber);
  font-size: 23px;
}

/* Inline SVG system */
svg {
  display: block;
  width: 100%;
  max-height: 100%;
  overflow: visible;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 21px;
  fill: var(--ink);
}

svg text {
  fill: var(--ink);
}

.svg-small {
  font-size: 18px;
  fill: var(--ink-soft);
}

.svg-label {
  font-size: 24px;
  font-weight: 650;
}

.svg-rail,
.svg-axis,
.svg-line-muted {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
}

.svg-board {
  fill: var(--canvas-alt);
  stroke: var(--green);
  stroke-width: 3;
}

.svg-board-inner {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}

.svg-line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
}

.svg-line-amber {
  fill: none;
  stroke: var(--amber);
  stroke-width: 4;
}

.svg-line-cyan {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
}

.svg-line-green {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
}

.svg-arrow {
  fill: var(--amber);
}

.svg-dot-amber {
  fill: var(--amber);
}

.svg-dot-cyan {
  fill: var(--cyan);
}

.svg-dot-red {
  fill: var(--red);
}

.svg-range,
.svg-track {
  fill: color-mix(in srgb, var(--green) 35%, var(--canvas));
  stroke: var(--green);
  stroke-width: 2;
}

.svg-range-amber {
  fill: color-mix(in srgb, var(--amber) 25%, var(--canvas));
  stroke: var(--amber);
  stroke-width: 5;
}

.timeline-stop circle {
  fill: var(--canvas);
  stroke: var(--amber);
  stroke-width: 3;
}

.timeline-stop:first-of-type circle,
.timeline-stop:last-of-type circle {
  fill: var(--amber);
}

.timeline-stop text {
  font-size: 22px;
}

.svg-wood,
.svg-wood-large,
.svg-wood-small {
  fill: var(--wood);
  stroke: var(--amber);
  stroke-width: 3;
}

.svg-wood text,
.svg-wood-large + text,
.svg-wood-small + text {
  fill: var(--wood-ink);
}

.svg-id {
  font-size: 43px;
  font-weight: 700;
}

.svg-callout {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 2;
}

.svg-callout-box {
  fill: var(--canvas-alt);
  stroke: var(--line);
  stroke-width: 2;
}

.svg-friendly {
  fill: color-mix(in srgb, var(--green) 26%, var(--canvas));
  stroke: var(--green);
  stroke-width: 2;
}

.fresh-card {
  fill: none;
  stroke: var(--clock-2);
  stroke-width: 4;
}

.stale-card {
  fill: color-mix(in srgb, var(--ink-soft) 12%, var(--canvas));
  stroke: var(--line);
  stroke-width: 2;
}

.expired-card {
  fill: url(#expiredHatch);
  stroke: var(--red);
  stroke-width: 3;
}

.clock-sectors path {
  stroke: var(--canvas);
  stroke-width: 2;
}

.clock-sectors path:nth-child(3n + 1) {
  fill: var(--clock-1);
}

.clock-sectors path:nth-child(3n + 2) {
  fill: var(--clock-2);
}

.clock-sectors path:nth-child(3n) {
  fill: var(--clock-3);
}

.svg-clock-face {
  fill: var(--canvas-alt);
  stroke: var(--line);
  stroke-width: 2;
}

.svg-hand {
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
}

.board-head text {
  fill: var(--ink-soft);
  font-size: 18px;
  text-anchor: middle;
}

.board-head text:first-child {
  text-anchor: start;
}

.board-row text:first-child {
  font-size: 19px;
}

.board-row circle {
  fill: var(--canvas-alt);
  stroke: var(--line);
  stroke-width: 2;
}

.board-row .lamp {
  fill: var(--amber);
  stroke: var(--ink);
}

.board-row .lamp-label {
  fill: var(--amber);
  font-size: 19px;
  font-weight: 700;
}

.svg-map-wide,
.svg-map-mid,
.svg-map-small {
  fill: var(--canvas-alt);
  stroke: var(--green);
  stroke-width: 2;
}

.svg-map-mid {
  fill: color-mix(in srgb, var(--green) 20%, var(--canvas));
}

.svg-map-small {
  fill: color-mix(in srgb, var(--cyan) 20%, var(--canvas));
  stroke: var(--cyan);
}

.svg-triangle,
.svg-arrow-line {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 4;
}

.svg-arrow-line {
  stroke: var(--amber);
}

.svg-equal-angle {
  fill: none;
  stroke: var(--amber);
  stroke-width: 3;
}

.loop-node rect {
  fill: var(--canvas-alt);
  stroke: var(--line);
  stroke-width: 2;
}

.term {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 8px 8px 0 0;
  padding: 4px 10px;
  border: 1px solid var(--amber);
  border-radius: 3px;
  color: var(--amber);
  font-size: 17px;
  line-height: 1.3;
  white-space: nowrap;
}

/* Page layouts */
.timeline {
  max-height: 280px;
}

.media-main {
  align-items: center;
}

.asset-frame {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.asset-frame img,
.asset-frame video {
  display: block;
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  background: #080d11;
}

.asset-frame figcaption {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.4;
}

.media-placeholder {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 26px;
  border: 2px dashed var(--amber);
  background: color-mix(in srgb, var(--amber) 6%, var(--canvas));
  color: var(--ink);
  font-size: 21px;
  line-height: 1.55;
  text-align: center;
  white-space: pre-line;
}

.media-slide .media-placeholder {
  min-height: 420px;
}

.checkpoint-main {
  align-items: center;
  gap: 22px;
  text-align: center;
}

.checkpoint .q {
  color: var(--amber);
}

.options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.options span {
  min-width: 170px;
  padding: 20px 26px;
  border: 1px solid var(--line);
  background: var(--canvas-alt);
  font-size: 26px;
  line-height: 1.3;
}

.chat-prompt {
  color: var(--ink-soft);
  font-size: 21px !important;
}

.answer {
  max-width: 1020px;
  margin: 12px auto 0 !important;
  padding-top: 18px;
  border-top: 2px solid var(--amber);
  color: var(--ink);
  font-size: 27px !important;
  font-weight: 600;
  line-height: 1.5 !important;
  text-align: left;
}

.phone-log {
  justify-content: center !important;
  gap: 4px;
  padding: 2px 24px;
  border-left: 2px solid var(--green);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.log-row {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 16px;
  min-height: 28px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

.log-row time {
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.source-tables {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 14px;
}

.source-tables table {
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
}

th,
td {
  padding: 11px 13px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--canvas-alt);
  color: var(--amber);
  font-weight: 650;
}

tbody th {
  color: var(--ink-soft);
  font-weight: 600;
}

.source-tables table th,
.source-tables table td {
  padding: 10px 11px;
  font-size: 18px;
}

.source-tables table thead th {
  font-size: 21px;
}

.split {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 26px;
}

.split-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 24px;
  border-top: 3px solid var(--green);
  background: color-mix(in srgb, var(--canvas-alt) 70%, transparent);
}

.split-column + .split-column {
  border-color: var(--red);
}

.split-column p {
  font-size: 23px;
}

.callout {
  margin-top: 18px !important;
  padding: 14px 16px;
  border-left: 3px solid var(--amber);
  background: var(--canvas-alt);
  color: var(--amber);
  font-weight: 650;
}

.merge-demo {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 4px;
}

.merge-radar {
  max-height: 295px;
  overflow: hidden;
}

.merge-radar svg {
  height: 295px;
}

.merge-terms .term {
  opacity: 0;
  visibility: hidden;
}

.merge-demo:has(.merged-result.is-revealed) .merge-terms .term {
  opacity: 1;
  visibility: visible;
}

.merge-demo .arrival-intro {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.4;
}

.arrival-batch.is-revealed {
  animation: report-arrival 360ms ease-out;
}

.merged-result.is-revealed .merged-tracks path {
  stroke-dasharray: 720;
  animation: report-link 900ms ease-out;
}

@keyframes report-arrival {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes report-link {
  from { stroke-dashoffset: 720; }
  to { stroke-dashoffset: 0; }
}

.point-cloud circle[data-group="h21"] {
  fill: var(--amber);
}

.point-cloud circle[data-group="h22"] {
  fill: var(--cyan);
}

.point-cloud circle[data-group="f05"] {
  fill: var(--green);
}

.point-times text {
  fill: var(--ink-soft);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 18px;
}

.merged-tracks path {
  fill: none;
  stroke-width: 4;
}

.wood-tags text {
  fill: var(--wood-ink);
}

.merge-terms {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.merge-terms .term {
  margin-top: 2px;
}

.status-board svg {
  height: 290px;
}

.status-board .checkpoint-inline {
  margin-top: 8px !important;
  color: var(--amber);
  font-size: 20px !important;
  text-align: center;
}

.status-board .answer {
  max-width: 1080px;
  margin: 4px auto !important;
  padding-top: 6px;
  font-size: 21px !important;
}

.status-board .term {
  margin-top: 1px;
}

.action-card {
  gap: 4px;
  justify-content: center !important;
}

.action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 56px;
  padding: 5px 14px;
  border-bottom: 1px solid var(--line);
}

.action-row code {
  color: var(--ink);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 19px;
  line-height: 1.4;
  white-space: normal;
}

.action-row .term {
  margin: 0;
  font-size: 16px;
}

.ontology-terms {
  gap: 28px;
}

.term-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.term-columns > div {
  padding: 16px 20px;
  border-top: 3px solid var(--amber);
  background: var(--canvas-alt);
}

.term-columns p {
  margin-bottom: 0;
  font-size: 25px;
}

.four-terms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.four-terms > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 114px;
  padding: 14px 16px;
  border-bottom: 2px solid var(--line);
}

.four-terms strong {
  color: var(--amber);
  font-size: 24px;
}

.four-terms span {
  font-size: 19px;
  line-height: 1.4;
}

.four-layer svg {
  height: 390px;
}

.four-layer svg .svg-small {
  font-size: 19px;
}

.four-layer .chat-prompt {
  margin: 4px 0 0;
  padding: 8px 12px;
  border-left: 3px solid var(--cyan);
  background: var(--canvas-alt);
  font-size: 20px !important;
}

.four-layer .chat-answer {
  margin: 4px 0 0 !important;
  padding: 7px 12px;
  border-top: 0;
  border-left: 3px solid var(--amber);
  font-size: 22px !important;
}

.layer-band {
  fill: var(--canvas-alt);
  stroke: var(--line);
  stroke-width: 1.5;
}

.layer-core {
  fill: color-mix(in srgb, var(--amber) 13%, var(--canvas-alt));
  stroke: var(--amber);
  stroke-width: 2.5;
}

.svg-base {
  fill: color-mix(in srgb, var(--green) 35%, var(--canvas));
  stroke: var(--green);
  stroke-width: 1;
}

.product-table {
  justify-content: start !important;
}

.product-table table {
  font-size: 18px;
  line-height: 1.22;
}

.product-table th,
.product-table td {
  padding: 4px 8px;
}

.product-table td:first-child {
  color: var(--amber);
  font-weight: 600;
}

.aip-table {
  display: grid !important;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 30px;
}

.aip-table svg {
  height: 260px;
}

.svg-seat {
  fill: var(--canvas-alt);
  stroke: var(--green);
  stroke-width: 3;
}

.svg-seat-ai {
  fill: var(--canvas);
  stroke: var(--amber);
  stroke-width: 3;
  stroke-dasharray: 7 5;
}

.aip-rules p {
  margin: 11px 0;
  padding: 12px 14px;
  border-left: 2px solid var(--amber);
  background: var(--canvas-alt);
  font-size: 21px;
}

.timeline-media {
  display: grid !important;
  grid-template-columns: 0.85fr 1.5fr;
  align-items: center;
  gap: 34px;
}

.asset-frame.compact .media-placeholder {
  min-height: 300px;
}

.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.history-timeline p {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 16px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
}

.history-timeline time {
  color: var(--amber);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.callout-box {
  fill: var(--canvas-alt);
  stroke: var(--line);
  stroke-width: 2;
}

.governance svg {
  height: 280px;
}

.svg-note-box {
  fill: var(--canvas-alt);
  stroke: var(--amber);
  stroke-width: 2;
}

.svg-dashed {
  fill: none;
  stroke: var(--green);
  stroke-dasharray: 8 6;
  stroke-width: 2;
}

.svg-return {
  fill: var(--canvas-alt);
  stroke: var(--cyan);
  stroke-width: 2;
}

.governance-answer,
.discussion-prompt {
  padding: 9px 14px;
  background: var(--canvas-alt);
  font-size: 20px !important;
}

.governance-answer {
  border-left: 3px solid var(--amber);
}

.ai-fde {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  align-content: center;
  gap: 28px;
}

.ai-fde section {
  min-height: 190px;
  padding: 20px 22px;
  border-top: 3px solid var(--green);
  background: var(--canvas-alt);
}

.ai-fde section + section {
  border-color: var(--amber);
}

.ai-fde .figure-note {
  grid-column: 1 / -1;
}

.misconceptions {
  gap: 14px;
}

.misconceptions p {
  margin: 0;
  padding: 14px 20px;
  border-left: 3px solid var(--amber);
  background: var(--canvas-alt);
  font-size: 22px;
}

.five-questions {
  gap: 4px;
}

.five-questions > div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 280px;
  align-items: center;
  gap: 12px;
  min-height: 57px;
  border-bottom: 1px solid var(--line);
}

.five-questions b {
  color: var(--amber);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 26px;
}

.five-questions p {
  margin: 0;
  font-size: 20px;
}

.five-questions span {
  color: var(--ink-soft);
  font-size: 17px;
  text-align: right;
}

.quiz-preview {
  display: grid !important;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 42px;
}

.qr-frame {
  width: 350px;
  justify-self: center;
}

.qr-frame .media-placeholder {
  min-height: 280px;
  aspect-ratio: 1;
}

.next-hour {
  margin: 0 !important;
  color: var(--amber);
  font-size: 48px !important;
  font-weight: 650;
  line-height: 1.35 !important;
}

.inline-sandbox {
  display: inline-block;
  margin-top: 18px;
  color: var(--cyan);
  font-size: 19px;
}

.slide-links {
  min-height: 28px;
}

/* Hour two */
.video-main {
  display: grid !important;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 36px;
}

.video-frame video {
  min-height: 330px;
  max-height: 390px;
  border: 1px solid var(--line);
}

.video-frame .media-fallback {
  min-height: 300px;
  padding: 24px;
  border: 2px dashed var(--amber);
  color: var(--ink);
  font-size: 20px;
  line-height: 1.5;
}

.video-main > p {
  font-size: 27px;
}

.scenario-prompt {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 24px;
}

.scenario-prompt > div {
  padding: 24px;
  border-top: 3px solid var(--amber);
  background: var(--canvas-alt);
}

.scenario-prompt p {
  font-size: 26px;
}

.exercise-main {
  display: grid !important;
  grid-template-columns: 1.55fr 0.7fr;
  align-items: center;
  gap: 36px;
}

.exercise-questions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding-left: 34px;
}

.exercise-questions li {
  padding-left: 8px;
  font-size: 23px;
  line-height: 1.4;
}

.exercise-questions li::marker {
  color: var(--amber);
  font-weight: 700;
}

.exercise-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 28px 10px;
  border-left: 1px solid var(--line);
}

.exercise-clock time {
  color: var(--amber);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 75px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.exercise-clock time.timer-expired {
  color: var(--red);
  animation: timer-flash 750ms steps(2, end) infinite;
}

.exercise-clock button {
  min-width: 122px;
  height: 44px;
}

@keyframes timer-flash {
  50% { opacity: 0.24; }
}

.reference-model {
  display: grid !important;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 22px;
}

.reference-model > svg {
  height: 410px;
}

.reference-model > svg .svg-small {
  font-size: 20px;
}

.reference-nodes rect {
  fill: var(--canvas-alt);
  stroke: var(--green);
  stroke-width: 2;
}

.reference-nodes .svg-return {
  stroke: var(--cyan);
}

.reference-nodes .svg-dashed {
  stroke-dasharray: 7 5;
}

.reference-steps {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.reference-steps > div {
  display: grid;
  grid-template-columns: 102px 1fr;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.35;
}

.reference-steps strong {
  color: var(--amber);
}

.lifecycle svg {
  height: 300px;
}

.life-step circle {
  fill: var(--canvas-alt);
  stroke: var(--green);
  stroke-width: 3;
}

.governance .svg-map-small {
  fill: var(--canvas-alt);
}

.ai-flow {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
  gap: 18px;
}

.flow-step {
  min-height: 192px;
  padding: 20px 20px;
  border-top: 3px solid var(--green);
  background: var(--canvas-alt);
}

.flow-step b {
  color: var(--amber);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 24px;
}

.flow-step p {
  margin-top: 22px;
  font-size: 23px;
}

.trust-rule {
  grid-column: 1 / -1;
  padding: 16px 19px;
  border-left: 3px solid var(--red);
  background: color-mix(in srgb, var(--red) 12%, var(--canvas-alt));
  font-size: 21px;
  line-height: 1.45;
}

.onyx-table table {
  font-size: 20px;
}

.onyx-table th,
.onyx-table td,
.appendix-table th,
.appendix-table td {
  padding: 11px 14px;
}

.onyx-table tbody th {
  width: 140px;
  white-space: nowrap;
}

.appendix-slide {
  padding-top: 92px;
}

.appendix-table table {
  font-size: 21px;
}

.appendix-table thead th {
  font-size: 22px;
}

.source-list {
  justify-content: center !important;
  gap: 10px;
}

.source-list a {
  display: block;
  overflow-wrap: anywhere;
  color: var(--cyan);
  font-size: 17px;
  line-height: 1.3;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Keep explanations, badges and conclusions in separate layout rows. */
.spaced-diagram {
  gap: 16px;
  margin-bottom: 18px;
}

.spaced-diagram > svg {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  height: 100%;
}

.term-row {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  min-height: 42px;
}

.term-row .term {
  flex: 0 0 auto;
  margin: 0;
  font-size: 18px;
}

.term-explanation {
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.4;
}

.slide p.diagram-caption {
  flex: 0 0 auto;
  margin: 0;
  font-size: 24px;
}

.supplement-link {
  color: var(--cyan);
  font-size: 20px;
  line-height: 1.4;
  text-underline-offset: 4px;
}

.interception-summary {
  gap: 14px;
}

.interception-summary .term-row {
  gap: 10px 18px;
}

.interception-summary svg text {
  font-size: 32px;
}

.interception-summary svg .svg-small {
  font-size: 30px;
}

.svg-line-red {
  fill: none;
  stroke: var(--red);
  stroke-width: 4;
}

.slide p.merge-explanation {
  margin: 12px 0 8px;
  font-size: 24px;
  line-height: 1.4;
}

.merge-demo {
  gap: 10px;
  margin-bottom: 16px;
}

.merge-radar svg {
  height: 300px;
}

.report-story {
  display: grid !important;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.report-story .report-list,
.report-story .report-map,
.report-story .report-evidence {
  grid-area: 1 / 1;
}

.report-list {
  display: flex;
  flex-direction: column;
}

.report-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: center;
  background: var(--canvas);
}

.report-story:has(.report-map.is-revealed) .report-list {
  visibility: hidden;
}

html:not(.print-mode):not(.handout-mode) .report-story:has(.report-evidence.is-revealed) .report-map {
  visibility: hidden;
}

.report-evidence {
  align-self: center;
  background: var(--canvas);
}

.report-evidence:not(.is-revealed),
.identity-proof:not(.is-revealed) {
  visibility: hidden;
}

.report-evidence table { width: 100%; border-collapse: collapse; }
.report-evidence table { table-layout: fixed; }
.report-evidence th, .report-evidence td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 24px;
  line-height: 1.4;
}
.report-evidence th { width: auto; color: var(--cyan); }
.report-evidence thead th { font-size: 22px; color: var(--ink-soft); }
.report-evidence p { margin-top: 18px; }
html:not(.print-mode):not(.handout-mode) .report-evidence th,
html:not(.print-mode):not(.handout-mode) .report-evidence td { padding: 10px 12px; line-height: 1.3; }
html:not(.print-mode):not(.handout-mode) .report-evidence > p { font-size: 18px; line-height: 1.4; margin: 8px 0 0; }

.map-intro p {
  margin: 16px 0;
}

.map-intro .inline-sandbox {
  display: inline-block;
  margin: 8px 0;
  color: var(--cyan);
  font-size: 24px;
}

.map-intro .figure-note {
  font-size: 18px !important;
}

.source-tables {
  align-content: center;
  align-items: start;
  row-gap: 18px;
  margin-bottom: 16px;
}

.source-tables .term {
  width: max-content;
}

.source-tables .figure-note {
  grid-column: 1 / -1;
  margin: 0;
}

.status-board {
  gap: 12px;
}

.slide .status-board p {
  margin: 0;
  font-size: 24px !important;
  line-height: 1.4 !important;
}

.status-board > svg {
  flex: 0 0 auto;
  height: 250px;
}

.status-board .answer {
  width: 100%;
  margin: 0 !important;
  padding-top: 12px;
}

.status-board .beginner-example p {
  margin: 8px 0;
}

#s15 > .term {
  align-self: flex-start;
}

.status-board .frag:not(.is-revealed),
#s20 .operational-next:not(.is-revealed) {
  display: none;
}

html:not(.print-mode):not(.handout-mode) .status-board:has(.answer.is-revealed) > svg,
html:not(.print-mode):not(.handout-mode) #s20 .checkpoint-main:has(.answer.is-revealed) .options {
  display: none;
}

#s20 .checkpoint-main {
  gap: 12px;
}

#s20 .answer,
#s20 .operational-next p {
  margin: 0 !important;
  font-size: 24px !important;
  line-height: 1.4 !important;
}

#s20 .answer {
  padding-top: 10px;
}

#s20 .operational-next p + p {
  margin-top: 12px !important;
}

.four-layer {
  gap: 22px;
  margin-bottom: 18px;
}

.four-layer .chat-prompt:not(.is-revealed),
.four-layer .chat-answer:not(.is-revealed) {
  display: none;
}

html:not(.print-mode):not(.handout-mode) .four-layer:has(.chat-prompt.is-revealed) > svg {
  display: none;
}

.four-layer .chat-prompt,
.four-layer .chat-answer {
  padding: 18px 24px;
  font-size: 28px !important;
  line-height: 1.5 !important;
}

#s08 .checkpoint-main {
  gap: 12px;
}

#s08 .answer {
  font-size: 24px !important;
  padding-top: 10px;
  margin-top: 0 !important;
}

#s08 .enemy-summary {
  height: 190px;
  flex: 0 0 auto;
}

#s08 .identity-proof { margin: 0; font-size: 24px; line-height: 1.4; }

.enemy-summary text {
  font-size: 25px;
}

.svg-dot-green {
  fill: var(--green);
}

.property-question p {
  margin: 8px 0 !important;
  font-size: 24px;
  line-height: 1.4;
}

html:not(.print-mode):not(.handout-mode) #s15 .status-board:has(.property-question.is-revealed) > svg {
  display: none;
}

html:not(.print-mode):not(.handout-mode) #s15 .status-board:has(.answer.is-revealed) .property-question {
  display: none;
}

#s15 .property-question {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.writeback-main {
  gap: 22px;
}

.writeback-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  gap: 20px;
  color: var(--ink-soft);
  font-size: 24px;
}

.writeback-sequence {
  min-height: 265px;
}

.writeback-initial,
.writeback-step {
  flex-direction: column;
  gap: 22px;
}

.writeback-step h2,
.writeback-initial h2 {
  font-size: 30px;
  margin: 0;
}

.writeback-sequence p {
  margin: 0;
  font-size: 24px;
  line-height: 1.45;
}

.writeback-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.writeback-pair > div {
  border-top: 3px solid var(--line);
  padding-top: 16px;
}

.writeback-pair strong {
  display: block;
  margin-bottom: 12px;
  color: var(--amber);
  font-size: 28px;
}

.writeback-command,
.writeback-transition {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-size: 27px;
}

.writeback-command b,
.writeback-transition b {
  color: var(--amber);
}

.written-state {
  color: var(--green);
  border-bottom: 3px solid var(--green);
  padding-bottom: 8px;
}

.writeback-step.is-revealed .written-state {
  animation: state-write 700ms ease-out;
}

@keyframes state-write {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

html:not(.print-mode):not(.handout-mode) .writeback-step {
  display: none;
}

html:not(.print-mode):not(.handout-mode) .writeback-step.is-revealed {
  display: flex;
}

html:not(.print-mode):not(.handout-mode) .writeback-step.is-revealed:has(~ .writeback-step.is-revealed),
html:not(.print-mode):not(.handout-mode) .writeback-sequence:has(.writeback-step.is-revealed) .writeback-initial {
  display: none;
}

.workshop-question .workshop-context {
  font-size: 26px;
  margin: 0 0 20px;
  line-height: 1.45;
  color: var(--ink);
}

#s25 .workshop-question { padding: 0; }
#s25 .question-sentence,
#s25 .question-instruction { white-space: normal; }
#s25 .question-context { display: block; margin-bottom: 8px; font-size: 24px; line-height: 1.4; }
#s25 .workshop-context h2 { font-size: 27px; margin-bottom: 10px; }
#s25 .workshop-context p { margin: 8px 0; font-size: 24px; line-height: 1.45; }
.workshop-relationship { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 16px 0; }
.workshop-relationship p { border-top: 1px solid var(--line); padding-top: 12px; }
.workshop-relationship strong { color: var(--cyan); }
html:not(.print-mode):not(.handout-mode) #s25 .four-layer:has(.workshop-question.is-revealed) { justify-content: flex-start; }
html:not(.print-mode):not(.handout-mode) #s25 .workshop-context { margin-bottom: 8px; }
html:not(.print-mode):not(.handout-mode) #s25 .workshop-context h2 { margin-bottom: 6px; line-height: 1.3; }
html:not(.print-mode):not(.handout-mode) #s25 .workshop-context p { margin: 4px 0; line-height: 1.3; }
html:not(.print-mode):not(.handout-mode) #s25 .workshop-relationship { margin: 8px 0; }
html:not(.print-mode):not(.handout-mode) #s25 .workshop-relationship p { padding-top: 6px; }
html:not(.print-mode):not(.handout-mode) #s25 .question-sentence { margin-bottom: 4px; line-height: 1.3; }
html:not(.print-mode):not(.handout-mode) #s25 .question-context { margin-bottom: 4px; line-height: 1.3; }
html:not(.print-mode):not(.handout-mode) #s25 .workshop-prompt:not(.is-revealed) { display: none; }
html:not(.print-mode):not(.handout-mode) #s25 .four-layer:has(.workshop-prompt.is-revealed) .workshop-context { display: none; }
html:not(.print-mode):not(.handout-mode) #s25 .workshop-question:has(.workshop-prompt.is-revealed) { margin-top: 48px; }

.workshop-example {
  margin: 0 !important;
  font-size: 24px !important;
  line-height: 1.45 !important;
}

.four-layer .workshop-example:not(.is-revealed) {
  display: none;
}

html:not(.print-mode):not(.handout-mode) .four-layer:has(.chat-answer.is-revealed) .workshop-context,
html:not(.print-mode):not(.handout-mode) .four-layer:has(.workshop-example.is-revealed) .workshop-question {
  display: none;
}

.ontology-comparison {
  gap: 20px;
}

.ontology-comparison th,
.ontology-comparison td {
  padding: 16px 18px;
  font-size: 23px;
  line-height: 1.4;
}

.ontology-comparison th:first-child {
  width: 27%;
}

.ontology-comparison .supplement-link {
  font-size: 22px;
}

.scenario-prompt {
  gap: 22px;
}

.scenario-prompt > div {
  padding: 20px;
}

.scenario-prompt h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.scenario-prompt p {
  margin: 0;
  font-size: 25px;
  line-height: 1.45;
}

.scenario-prompt .scenario-extension {
  margin-top: 20px;
  color: var(--ink-soft);
}

.business-limits {
  margin: 0;
  padding-left: 25px;
  font-size: 24px;
  line-height: 1.65;
}

.model-budget {
  font-size: 22px;
  color: var(--ink-soft);
  line-height: 1.4;
  margin: 10px 0 2px;
}

.worked-exercise {
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 28px;
  align-items: start;
}

.worked-exercise .worked-target {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.4;
}

.worked-exercise table th,
.worked-exercise table td {
  font-size: 22px;
  line-height: 1.4;
  padding: 10px 12px;
}

.worked-exercise .worked-scope {
  font-size: 18px;
  margin: 10px 0;
  color: var(--ink-soft);
  line-height: 1.4;
}

.worked-flow {
  margin-top: 4px;
}

.worked-flow p {
  font-size: 24px;
  line-height: 1.45;
  margin: 10px 0 0;
}

.worked-step h2 {
  font-size: 28px;
  line-height: 1.35;
  margin: 0;
  color: var(--amber);
}

.worked-step.answer {
  border: 0;
  padding-top: 0;
}

html:not(.print-mode):not(.handout-mode) .worked-step {
  display: none;
}

html:not(.print-mode):not(.handout-mode) .worked-step.is-revealed {
  display: block;
}

html:not(.print-mode):not(.handout-mode) .worked-step.is-revealed:has(~ .worked-step.is-revealed),
html:not(.print-mode):not(.handout-mode) .worked-flow:has(.worked-step.is-revealed) .worked-initial,
html:not(.print-mode):not(.handout-mode) .worked-content:has(.worked-step.is-revealed) .worked-scope,
html:not(.print-mode):not(.handout-mode) .worked-content:has(.model-step.is-revealed) .worked-input {
  display: none;
}

html:not(.print-mode):not(.handout-mode) .worked-content:has(.worked-step.is-revealed) .worked-target {
  margin-bottom: 6px;
}

.worked-exercise .exercise-clock {
  gap: 12px;
  padding: 12px 8px;
}

.worked-exercise .exercise-clock time {
  font-size: 52px;
}

.worked-exercise .exercise-clock p,
.worked-exercise .exercise-clock span {
  font-size: 22px;
  line-height: 1.45;
  text-align: center;
  margin: 0;
}

.worked-exercise .exercise-clock span {
  color: var(--ink-soft);
}

.handout-mode .writeback-step,
.print-mode .writeback-step {
  display: flex;
  margin-top: 28px;
}

.handout-mode .worked-step,
.print-mode .worked-step {
  display: block;
  margin-top: 24px;
}

.handout-mode .merge-terms .term,
.print-mode .merge-terms .term {
  opacity: 1;
  visibility: visible;
}

.question-sentence,
.question-instruction {
  display: block;
  white-space: nowrap;
}

.question-sentence {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 650;
}

.supply-scene {
  gap: 12px;
  margin-bottom: 18px;
}

.supply-scene .asset-frame img {
  max-height: 270px;
}

.supply-scene .asset-frame figcaption {
  margin-top: 6px;
}

.supply-scene > p {
  margin: 0;
  font-size: 24px;
}

#s30 .asset-frame img {
  max-height: 310px;
}

#s30 .timeline-media {
  margin-bottom: 18px;
}

.slide p.logistics-explanation {
  margin: 12px 0;
  font-size: 24px;
  line-height: 1.4;
}

#s43 .reference-model {
  grid-template-columns: 0.86fr 1.14fr;
  margin-bottom: 10px;
}

#s43 .reference-model svg {
  max-height: 320px;
}

#s43 .reference-model svg text {
  font-size: 27px;
}

#s43 .reference-model svg .svg-small {
  font-size: 28px;
}

#s43 .reference-steps {
  gap: 4px;
}

#s43 .reference-steps > div {
  grid-template-columns: 72px 1fr;
  padding: 6px 10px;
}

#s43 .figure-note {
  margin: 4px 0 12px;
}

.slide p.track-definition {
  margin: 0 0 22px;
  font-size: 24px;
  line-height: 1.45;
}

#a1 th,
#a1 td {
  padding-top: 9px;
  padding-bottom: 9px;
}

.backup-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.backup-grid .asset-frame {
  min-height: 0;
}

.backup-grid .asset-frame a {
  display: block;
  min-height: 0;
  flex: 1 1 0;
}

.backup-grid .asset-frame img {
  width: 100%;
  height: 100%;
  max-height: 185px;
  object-fit: contain;
}

.backup-grid .media-placeholder {
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px;
  font-size: 16px;
}

.backup-grid figcaption {
  margin-top: 8px;
  font-size: 18px;
}

.sandbox-link {
  position: absolute;
  right: 150px;
  bottom: 21px;
  z-index: 7;
  color: var(--cyan);
  font-size: 16px;
  text-decoration: none;
}

.sandbox-link:hover,
.inline-sandbox:hover,
.source-list a:hover {
  color: var(--amber);
}

/* Presenter window */
.presenter-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  gap: 13px 18px;
  width: 100%;
  height: 100%;
  padding: 16px 18px;
  overflow: auto;
  background: var(--room);
  color: var(--ink);
}

.presenter-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.presenter-header strong {
  font-size: 19px;
}

.presenter-header span {
  color: var(--ink-soft);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 15px;
}

.presenter-previews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 10px;
}

.presenter-previews > section {
  min-width: 0;
}

.presenter-previews h2,
.speaker-notes h2 {
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.speaker-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--canvas);
  border: 1px solid var(--line);
}

.speaker-preview > .slide {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 1280px;
  height: 720px;
  padding: 102px 76px 68px;
  opacity: 1;
  visibility: visible;
  transform: scale(var(--preview-scale));
  transform-origin: top left;
}

.speaker-preview .sandbox-link,
.speaker-preview .inline-sandbox {
  display: none !important;
}

.speaker-notes {
  min-height: 0;
  padding: 12px 15px;
  border-left: 3px solid var(--amber);
  background: var(--canvas);
}

#speaker-notes {
  max-height: 250px;
  overflow: auto;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#speaker-notes section + section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

#speaker-notes h3 {
  margin: 0 0 5px;
  color: var(--amber);
  font-size: 16px;
  line-height: 1.35;
}

#speaker-notes p,
#speaker-notes ul {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

#speaker-notes ul {
  display: grid;
  gap: 4px;
  padding-left: 20px;
}

.speaker-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.4fr 0.8fr;
  gap: 10px;
}

.speaker-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: var(--canvas);
}

.speaker-metrics span {
  color: var(--ink-soft);
  font-size: 13px;
}

.speaker-metrics strong {
  color: var(--ink);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.plan-meter > div {
  position: relative;
  height: 8px;
  margin-top: 2px;
  background: var(--canvas-alt);
}

.plan-meter i,
.plan-meter b {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 0;
  background: var(--amber);
}

.plan-meter b {
  z-index: 1;
  width: 2px;
  background: var(--cyan);
}

.plan-meter em {
  color: var(--red);
  font-size: 13px;
  font-style: normal;
}

.speaker-sandbox {
  align-self: center;
  grid-column: 1;
  color: var(--cyan);
  font-size: 15px;
}

.speaker-controls {
  display: flex;
  justify-content: end;
  gap: 8px;
  grid-column: 2;
}

.speaker-fallback {
  margin-left: 12px;
  border: 1px solid var(--red);
  background: transparent;
  color: var(--red);
}

.presenter-mode body {
  overflow: auto;
}

.presenter-mode #stage {
  display: none !important;
}

.presenter-mode .presenter-shell {
  display: grid;
}

/* Diagnostic mode */
.overflow-debug {
  outline: 2px solid transparent !important;
  outline-offset: -2px;
}

.layout-overlap-debug {
  outline: 2px solid transparent !important;
  outline-offset: 1px;
}

.layout-debug-running *,
.layout-debug-running *::before,
.layout-debug-running *::after {
  animation: none !important;
  transition: none !important;
}

/* Handout view */
.handout-mode body {
  height: auto;
  min-height: 100%;
  overflow: auto;
  background: var(--room);
}

.handout-mode #stage {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  height: auto;
  min-height: 100vh;
  overflow: visible;
  transform: none;
}

.handout-mode .deck-chrome,
.handout-mode .progress-track,
.handout-mode .deck-controls,
.handout-mode .toast,
.handout-mode .blackout,
.handout-mode .overview,
.handout-mode .go-dialog,
.handout-mode .countdown {
  display: none !important;
}

.handout-mode .slide-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
}

.handout-mode .slide {
  position: relative;
  display: flex !important;
  width: min(1280px, 100%);
  height: auto;
  min-height: 640px;
  aspect-ratio: auto;
  margin: 0 auto;
  padding: 70px 56px 48px;
  opacity: 1;
  visibility: visible;
  border: 1px solid var(--line);
}

.handout-mode .slide .main {
  flex: 0 0 auto;
  min-height: auto;
}

.handout-mode .frag {
  opacity: 1;
  visibility: visible;
}

.handout-mode .notes {
  display: none !important;
}

.handout-mode .report-story {
  display: flex !important;
  flex-direction: column;
  gap: 24px;
}

.handout-mode .report-story .report-list,
.print-mode .report-story .report-list {
  visibility: visible !important;
}

.print-mode #s07,
.print-mode #s15,
.print-mode #s25 {
  padding-top: 74px;
  padding-bottom: 48px;
}

.print-mode .report-story {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.print-mode .report-list {
  gap: 2px;
  padding: 2px 12px;
}

.print-mode .report-list .log-row {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  min-height: 24px;
  font-size: 18px;
  line-height: 1.3;
}

.print-mode .report-story .report-map {
  grid-area: 1 / 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.print-mode .map-intro p {
  margin: 8px 0;
  font-size: 20px;
}

.print-mode .report-map img {
  max-height: 140px;
}

.print-mode .report-map figcaption {
  font-size: 16px;
}

.print-mode #s15 .status-board {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: center;
  align-items: start;
}

.print-mode #s15 .status-board > svg {
  grid-column: 1 / -1;
  height: 195px;
}

.print-mode #s15 .standby-definition {
  grid-column: 1 / -1;
}

.print-mode #s15 .status-board .chat-prompt {
  grid-column: 1;
  grid-row: 3;
}

.print-mode #s15 .status-board .answer {
  grid-column: 2;
  grid-row: 3;
}

.print-mode #s15 .beginner-example {
  grid-column: 3;
  grid-row: 3;
}

.print-mode #s15 .status-board .takeaway {
  grid-column: 1 / -1;
  grid-row: 4;
}

.print-mode #s15 .status-board p {
  font-size: 20px !important;
  line-height: 1.3 !important;
}

.print-mode #s15 .beginner-example p {
  margin: 4px 0;
}

.print-mode #s25 .four-layer {
  gap: 6px;
}

.print-mode #s25 .four-layer > svg {
  height: 310px;
}

.print-mode #s25 .question-sentence {
  margin-bottom: 6px;
  font-size: 24px;
}

.print-mode #s25 .chat-prompt,
.print-mode #s25 .chat-answer {
  padding: 6px 12px;
  font-size: 24px !important;
  line-height: 1.4 !important;
}

/* Print */
@page {
  size: 1280px 720px;
  margin: 0;
}

@media print {
  :root {
    --room: #fff;
    --canvas: #fff;
    --canvas-alt: #f0f0eb;
    --ink: #111;
    --ink-soft: #40484a;
    --line: #8b9290;
    --amber: #835719;
    --green: #526a56;
    --cyan: #356d75;
    --red: #9c3f38;
    --wood: #c7a46d;
    --wood-ink: #171a19;
  }

  html,
  body {
    width: auto;
    height: auto;
    overflow: visible;
    background: #fff;
  }

  .stage {
    position: static;
    width: 1280px;
    height: auto;
    overflow: visible;
    transform: none;
    background: #fff;
    color: #111;
  }

  .stage::before,
  .deck-chrome,
  .progress-track,
  .deck-controls,
  .toast,
  .blackout,
  .overview,
  .go-dialog,
  .countdown,
  #presenter-shell {
    display: none !important;
  }

  .slide-stack {
    position: static;
    display: block;
  }

  .slide,
  .slide.hour2-hidden {
    position: relative;
    inset: auto;
    display: flex !important;
    width: 1280px;
    height: 720px;
    padding: 102px 76px 68px;
    overflow: hidden;
    page-break-after: always;
    break-after: page;
    background: #fff;
    color: #111;
    opacity: 1;
    visibility: visible;
    border: 0;
    transition: none;
  }

  .print-mode .slide.hour2-hidden {
    display: none !important;
  }

  .slide-stack > .slide:last-child {
    page-break-after: auto;
    break-after: auto;
  }

  .handout-mode .slide {
    min-height: 0;
    height: auto;
    page-break-after: always;
    break-after: page;
  }

  .slide .q,
  .slide p,
  .takeaway,
  .src,
  .figure-note,
  .slide h2,
  svg text,
  table,
  th,
  td {
    color: #111 !important;
  }

  .frag {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .notes {
    display: none !important;
  }

  .media-placeholder,
  .asset-frame video {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .print-with-notes .stage {
    width: 1280px;
  }

  .print-with-notes .slide,
  .print-with-notes .slide.hour2-hidden {
    height: 1040px;
  }

  .print-with-notes .notes {
    position: absolute;
    top: 746px;
    right: 76px;
    left: 76px;
    display: block !important;
    max-height: 270px;
    overflow: hidden;
    padding: 18px 0;
    border-top: 2px solid #777;
    color: #111;
    font-size: 22px;
    line-height: 1.45;
  }

  .print-with-notes .notes::before {
    display: block;
    margin-bottom: 8px;
    color: #555;
    content: "讲者备注";
    font-size: 16px;
    font-weight: 700;
  }
}

@media screen and (max-width: 720px) {
  .overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .overview {
    padding: 18px;
  }

  .presenter-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto auto;
    padding: 12px;
  }

  .presenter-header,
  .presenter-previews,
  .speaker-notes,
  .speaker-metrics,
  .speaker-sandbox,
  .speaker-controls {
    grid-column: 1;
  }

  .presenter-previews {
    grid-template-columns: 1fr 1fr;
  }

  .speaker-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  #s22 .writeback-timeline { font-size: 18px; padding-bottom: 6px; }
  #s22 .writeback-sequence { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; min-height: 0; }
  #s22 .writeback-initial { display: none; }
  #s22 .writeback-step { margin: 0; gap: 10px; }
  #s22 .writeback-step h2 { font-size: 22px; }
  #s22 .writeback-sequence p { font-size: 18px; }
  #s22 .writeback-pair { gap: 12px; }
  #s22 .writeback-pair strong { font-size: 20px; }
  #s22 .writeback-command, #s22 .writeback-transition { padding: 8px 0; gap: 10px; font-size: 19px; }
  #s42 .worked-exercise { grid-template-columns: 1fr; gap: 10px; }
  #s42 .worked-target { font-size: 19px; margin-bottom: 6px; }
  #s42 .worked-exercise table th, #s42 .worked-exercise table td { font-size: 18px; padding: 6px 10px; }
  #s42 .worked-scope { font-size: 16px; margin: 6px 0; }
  #s42 .worked-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin-top: 10px; }
  #s42 .worked-initial { display: none; }
  #s42 .worked-step { margin: 0; }
  #s42 .worked-step h2 { font-size: 19px; }
  #s42 .worked-step p { font-size: 16px !important; margin-top: 5px; line-height: 1.3; }
  #s42 .exercise-clock { display: none; }
  #s42 > .chat-prompt { display: none; }
  #s25 .four-layer { gap: 6px; }
  #s25 .workshop-context { font-size: 18px; margin-bottom: 8px; }
  #s25 .workshop-example { font-size: 18px !important; }
  #s25, #s42 { padding: 40px 76px 24px; }
  #s25 .q, #s42 .q { min-height: 40px; font-size: 32px; margin-bottom: 8px; }
  #s25 .main, #s42 .main { flex: 0 0 auto; justify-content: flex-start; }
  #s25 .four-layer > svg { flex: 0 0 auto; height: 270px; }
  #s25 .chat-prompt, #s25 .chat-answer { padding: 8px 12px; font-size: 20px !important; line-height: 1.3 !important; }
  #s25 .question-sentence { font-size: 24px; margin-bottom: 6px; }
  #s25 .question-instruction { font-size: 20px; }
  #s25 .workshop-example { line-height: 1.3 !important; }
  #s42 .worked-exercise table th, #s42 .worked-exercise table td { padding: 4px 8px; line-height: 1.25; }
  #s42 .worked-flow { gap: 8px 22px; margin-top: 6px; }
  #s42 .worked-step p { margin-top: 4px; line-height: 1.25; }
  #s42 .takeaway, #s25 .takeaway { font-size: 21px; line-height: 1.3; margin-top: 8px; }
}

/* Export all scenes while keeping each slide on its own printed page. */
.print-mode #s07 { padding: 40px 76px 24px; }
.print-mode #s07 .q { margin-bottom: 8px; }
.print-mode #s07 .report-story { grid-template-rows: auto auto; gap: 10px 24px; flex: 0 0 auto; }
.print-mode #s07 .report-evidence { grid-area: 2 / 1 / 3 / 3; }
.print-mode #s07 .report-evidence h2 { font-size: 20px; margin-bottom: 4px; }
.print-mode #s07 .report-evidence th,
.print-mode #s07 .report-evidence td { font-size: 18px; padding: 6px 10px; line-height: 1.3; }
.print-mode #s07 .report-evidence p { font-size: 18px; margin: 5px 0; }
.print-mode #s07 .map-intro h2 { font-size: 20px; }
.print-mode #s07 .map-intro p { font-size: 18px; margin: 5px 0; }
.print-mode #s07 .report-map img { max-height: 90px; }
.print-mode #s07 .report-map figcaption { font-size: 14px; }
.print-mode #s07 .figure-note { font-size: 16px !important; }
.print-mode #s07 .takeaway { font-size: 21px; }
.print-mode #s25 .four-layer > svg { height: 205px; }
.print-mode #s25 .workshop-context h2 { font-size: 20px; margin-bottom: 4px; }
.print-mode #s25 .workshop-context p { font-size: 18px; margin: 4px 0; line-height: 1.3; }
.print-mode #s25 .workshop-context { margin-bottom: 6px; }
.print-mode #s25 .workshop-relationship { gap: 18px; margin: 4px 0; }
.print-mode #s25 .workshop-relationship p { padding-top: 4px; }
.print-mode #s25 .question-sentence { font-size: 20px; margin-bottom: 4px; }
.print-mode #s25 .question-instruction { font-size: 18px; }
.print-mode #s25 .question-context { font-size: 18px; margin-bottom: 4px; }
.print-mode #s25 .chat-prompt, .print-mode #s25 .chat-answer { padding: 0; font-size: 18px !important; }
.print-mode #s25 .workshop-example h2 { font-size: 20px; margin: 6px 0; }
.print-mode #s25 .workshop-example p { font-size: 18px; margin: 4px 0; line-height: 1.3; }
.print-mode #s07 .report-list .log-row {
  min-height: 19px;
  gap: 6px;
  font-size: 16px;
  line-height: 1.15;
}
.print-mode #s07 .report-list { gap: 0; padding: 0 8px; }
.print-mode #s07 .report-story { gap: 5px 18px; }
.print-mode #s07 .report-evidence th,
.print-mode #s07 .report-evidence td { font-size: 16px; padding: 3px 8px; line-height: 1.2; }
.print-mode #s07 .report-evidence > p { font-size: 16px; line-height: 1.2; margin: 2px 0; }
.print-mode #s07 .figure-note { font-size: 14px !important; margin: 2px 0; }
.print-mode #s25 .four-layer {
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 60%);
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 5px;
  align-content: start;
}
.print-mode #s25 .four-layer > svg { grid-column: 1; grid-row: 1; width: 100%; height: 250px; }
.print-mode #s25 .workshop-question { grid-column: 2; grid-row: 1; margin: 0; }
.print-mode #s25 .workshop-context h2 { font-size: 18px; }
.print-mode #s25 .workshop-context p { font-size: 16px; margin: 2px 0; line-height: 1.2; }
.print-mode #s25 .workshop-relationship { gap: 8px; margin: 2px 0; }
.print-mode #s25 .workshop-relationship p { padding-top: 2px; }
.print-mode #s25 .question-sentence { font-size: 18px; }
.print-mode #s25 .question-context,
.print-mode #s25 .question-instruction { font-size: 16px; }
.print-mode #s25 .chat-answer { grid-column: 1; grid-row: 2; font-size: 18px !important; }
.print-mode #s25 .workshop-example { grid-column: 2; grid-row: 2; font-size: 16px !important; line-height: 1.2 !important; }
.print-mode #s25 .workshop-example h2 { font-size: 18px; margin: 0 0 2px; }
.print-mode #s25 .workshop-example p { font-size: 16px; margin: 2px 0; line-height: 1.2; }
.handout-mode .report-evidence { visibility: visible; }
