:root {
  --canvas: #f6f4ee;
  --ink: #151515;
  --body: #66605b;
  --muted: #8e8780;
  --accent: #d57b5f;
  --accent-soft: #edd1c5;
  --card: #fffdf8;
  --pill: #eee8cc;
  --pill-text: #928d6b;
  --green-pill: #dfe6c7;
  --green-text: #8b956e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 62px 22px 88px;
}

.hero {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-bottom: 62px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 12vw, 6.4rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.92;
}

.hero p {
  max-width: 650px;
  margin: 0;
  color: var(--body);
  font-size: clamp(1.05rem, 2.5vw, 1.32rem);
  line-height: 1.55;
}

.hero strong {
  color: var(--ink);
  font-weight: 800;
}

.burst {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.large-burst {
  width: 72px;
  height: 72px;
}

.burst::before,
.burst::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.large-burst::before,
.large-burst::after {
  height: 9px;
}

.burst::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.burst {
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 7px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 7px 100% no-repeat;
  transform: rotate(22deg);
}

.large-burst {
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 9px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 9px 100% no-repeat;
}

.burst span {
  display: none;
}

.level-section {
  margin-top: 22px;
}

.level-section + .level-section {
  margin-top: 54px;
}

.level-heading {
  margin-bottom: 30px;
}

.level-section h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 8vw, 4rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.level-subtitle {
  margin: 8px 0 0 52px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.level-section h2 .burst {
  width: 38px;
  height: 38px;
}

.guide-list {
  display: grid;
  gap: 28px;
}

.guide-card {
  position: relative;
  display: grid;
  min-height: 172px;
  align-content: start;
  gap: 10px;
  padding: 28px 28px 24px;
  border: 1.5px solid var(--accent-soft);
  border-radius: 18px;
  background: color-mix(in srgb, var(--card) 92%, white);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.guide-card:hover,
.guide-card:focus-visible {
  border-color: var(--accent);
  background: #fffefa;
  box-shadow: 0 18px 42px rgba(87, 60, 47, 0.08);
  outline: none;
  transform: translateY(-2px);
}

.guide-card:hover .arrow,
.guide-card:focus-visible .arrow {
  opacity: 1;
  transform: translateX(0);
}

.arrow {
  position: absolute;
  top: 26px;
  right: 28px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.guide-card h3 {
  max-width: calc(100% - 48px);
  margin: 0;
  color: #5b5752;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.12;
}

.guide-card p {
  max-width: 92%;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.45;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.pill {
  display: inline-grid;
  min-height: 31px;
  place-items: center;
  padding: 5px 15px;
  border-radius: 999px;
  background: var(--pill);
  color: var(--pill-text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.pill:first-child {
  background: var(--green-pill);
  color: var(--green-text);
}

.pill-soon {
  background: #ece8e2;
  color: #8e8780;
  font-style: italic;
}

/* Coming-soon card variant: visible in the curriculum so the full scope    */
/* is browseable, but visibly distinct from built modules and not clickable. */
.guide-card.is-coming-soon {
  cursor: default;
  border-style: dashed;
  border-color: rgba(213, 123, 95, 0.32);
  background: rgba(255, 253, 248, 0.55);
  opacity: 0.78;
}

.guide-card.is-coming-soon:hover,
.guide-card.is-coming-soon:focus-visible {
  border-color: rgba(213, 123, 95, 0.45);
  background: rgba(255, 253, 248, 0.7);
  box-shadow: none;
  transform: none;
}

.guide-card.is-coming-soon h3 {
  color: #807a73;
}

.guide-card.is-coming-soon p {
  color: #a09a92;
}

.guide-card.is-coming-soon .arrow {
  display: none;
}

.lesson-shell {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  padding: 30px 0 90px;
}

.back-link {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 36px;
  padding: 9px 12px;
  border: 1px solid rgba(213, 123, 95, 0.24);
  border-radius: 999px;
  background: rgba(246, 244, 238, 0.9);
  backdrop-filter: blur(8px);
  color: var(--body);
  font-weight: 800;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--ink);
  outline: none;
}

.lesson-hero {
  display: grid;
  gap: 22px;
  max-width: 960px;
  margin: 0 auto 44px;
  text-align: center;
}

.lesson-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lesson-kicker .burst {
  width: 31px;
  height: 31px;
}

.lesson-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.8rem, 10vw, 7.4rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.94;
}

.lesson-hero p {
  max-width: 780px;
  margin: 0 auto;
  color: var(--body);
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.55;
}

.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.lesson-meta span,
.mini-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--pill);
  color: var(--pill-text);
  font-size: 0.94rem;
  font-weight: 800;
}

.lesson-meta span:first-child,
.mini-pill {
  background: var(--green-pill);
  color: var(--green-text);
}

.training-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.lesson-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1.5px solid var(--accent-soft);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.72);
}

.lesson-sidebar p {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lesson-sidebar a {
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--body);
  font-weight: 800;
}

.lesson-sidebar a:hover,
.lesson-sidebar a:focus-visible {
  background: #fffefa;
  color: var(--ink);
  outline: none;
}

.lesson-content {
  display: grid;
  gap: 26px;
}

.lesson-panel {
  padding: clamp(24px, 4vw, 42px);
  border: 1.5px solid var(--accent-soft);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.78);
}

.intro-panel {
  border-color: #c9d5b5;
}

.warning-panel {
  border-color: #dfb4a6;
}

.section-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lesson-panel h2 {
  max-width: 780px;
  margin: 0 0 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.lesson-panel h3 {
  margin: 0 0 8px;
  color: #514d49;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 1.82rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.12;
}

.lesson-panel p,
.lesson-panel li,
.source-note p {
  color: var(--body);
  font-size: 1.04rem;
  line-height: 1.58;
}

.objective-grid,
.surface-grid,
.use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.objective-grid article,
.surface-grid article,
.use-grid div {
  min-width: 0;
  padding-top: 18px;
  border-top: 2px solid var(--accent-soft);
}

.objective-grid article span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 1;
}

.concept-list {
  display: grid;
  gap: 22px;
}

.concept-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(213, 123, 95, 0.24);
}

.concept-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.concept-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: #dbe7e3;
  color: #386d65;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 800;
}

.concept-button {
  border: 0;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.concept-button:hover,
.concept-button:focus-visible {
  background: #cce0da;
  box-shadow: 0 10px 22px rgba(56, 109, 101, 0.16);
  outline: none;
  transform: translateY(-2px);
}

.callout,
.completion-card {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 5px solid #386d65;
  background: #eef4ef;
  color: var(--body);
  line-height: 1.55;
}

.danger-callout {
  border-left-color: var(--accent);
  background: #fbefe9;
}

.rules {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(213, 123, 95, 0.28);
}

.rules article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(213, 123, 95, 0.28);
}

.rules article span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fffdf8;
  font-weight: 900;
}

.rules article h3,
.rules article p {
  grid-column: 2;
}

.rules article span {
  grid-row: 1 / span 2;
}

.prompt-lab {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.prompt-lab > div {
  min-width: 0;
  padding: 20px;
  border: 1.5px solid rgba(213, 123, 95, 0.34);
  border-radius: 16px;
  background: #fffefa;
}

.prompt-lab code {
  display: block;
  color: #30302f;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: normal;
}

.check-grid {
  display: grid;
  gap: 12px;
}

.check-grid label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(213, 123, 95, 0.22);
  color: var(--body);
  font-size: 1.05rem;
  line-height: 1.45;
}

.check-grid input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.lead-text {
  max-width: 640px;
  margin: -12px 0 22px;
}

.practice-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 24px;
}

.practice-list li::marker {
  color: var(--accent);
  font-weight: 900;
}

.source-note {
  padding: 0 4px;
}

.source-note a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.source-note p {
  margin: 0;
  font-size: 0.95rem;
}

.lesson-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(21, 21, 21, 0.44);
  backdrop-filter: blur(10px);
}

.lesson-modal-backdrop[hidden] {
  display: none;
}

.lesson-modal {
  position: relative;
  width: min(1160px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: clamp(22px, 4vw, 38px);
  border-radius: 22px;
  background: var(--canvas);
  box-shadow: 0 28px 90px rgba(21, 21, 21, 0.24);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(213, 123, 95, 0.34);
  border-radius: 50%;
  background: #fffefa;
  color: var(--ink);
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.modal-close span,
.modal-close span::before,
.modal-close span::after {
  display: block;
}

.modal-close span {
  position: relative;
  width: 20px;
  height: 20px;
}

.modal-close span::before,
.modal-close span::after {
  position: absolute;
  top: 9px;
  left: 1px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.modal-close span::before {
  transform: rotate(45deg);
}

.modal-close span::after {
  transform: rotate(-45deg);
}

.token-visual {
  padding: clamp(18px, 3vw, 30px);
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 20px;
  background: #faf8f3;
}

.token-visual-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.token-visual h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4.1rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.token-count {
  display: grid;
  min-width: 96px;
  min-height: 96px;
  place-items: center;
  padding: 12px;
  border-radius: 50%;
  background: #dbe7e3;
  color: #386d65;
}

.token-count strong {
  display: block;
  margin-bottom: -16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.8rem;
  line-height: 1;
}

.token-count span {
  font-weight: 900;
}

.token-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-bottom: 30px;
  color: var(--ink);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 800;
}

.token-legend span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.legend-swatch {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 7px;
}

.swatch-common {
  border: 1px solid #b8d4ec;
  background: #e1f0fc;
}

.swatch-split {
  border: 1px solid #efc7ba;
  background: #fff1eb;
}

.swatch-punctuation {
  border: 1px solid #d4d1ca;
  background: #f4f2ec;
}

.legend-more {
  margin-left: auto;
  font-size: 1.8rem;
  line-height: 1;
}

.token-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 10px;
  margin-bottom: 30px;
}

.token-chip {
  position: relative;
  display: inline-grid;
  min-height: 58px;
  place-items: center;
  padding: 10px 20px;
  border-radius: 10px;
  color: #0f4772;
  cursor: help;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  font-weight: 900;
  line-height: 1;
}

.token-chip:hover,
.token-chip:focus-visible {
  outline: 3px solid rgba(21, 21, 21, 0.12);
  outline-offset: 3px;
  z-index: 3;
}

.token-chip::after {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 4;
  width: max-content;
  max-width: 230px;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--ink);
  color: #fffdf8;
  content: attr(data-token-info);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.token-chip:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.token-common {
  border: 1px solid #b8d4ec;
  background: #e1f0fc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.68);
}

.token-split {
  border: 1px dashed #dfaa99;
  background: #fff1eb;
  color: #71301b;
}

.token-punctuation {
  min-width: 58px;
  border: 1px solid #d4d1ca;
  background: #f4f2ec;
  color: #4d4741;
}

.token-summary {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.06rem, 2.2vw, 1.34rem);
  line-height: 1.5;
}

.token-summary strong {
  color: var(--ink);
}

.token-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.token-notes article {
  min-width: 0;
  padding: 20px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 16px;
  background: #fffefa;
}

.token-notes h3 {
  margin: 0 0 8px;
  color: #514d49;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0;
}

.token-notes p {
  margin: 0;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.55;
}

@media (min-width: 900px) {
  .page-shell {
    width: min(100% - 48px, 840px);
    padding-top: 74px;
  }

  .hero {
    margin-bottom: 74px;
  }
}

@media (max-width: 960px) {
  .training-layout {
    grid-template-columns: 1fr;
  }

  .lesson-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }

  .lesson-sidebar p {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .objective-grid,
  .surface-grid,
  .use-grid,
  .prompt-lab {
    grid-template-columns: 1fr;
  }

  .lesson-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 24px;
  }

  .lesson-hero {
    margin-bottom: 32px;
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 46px 16px 68px;
  }

  .hero {
    gap: 15px;
    margin-bottom: 48px;
  }

  .large-burst {
    width: 58px;
    height: 58px;
  }

  .level-section h2 {
    gap: 11px;
    margin-bottom: 24px;
  }

  .level-section h2 .burst {
    width: 31px;
    height: 31px;
  }

  .guide-list {
    gap: 22px;
  }

  .guide-card {
    min-height: 168px;
    padding: 23px 20px 20px;
    border-radius: 15px;
  }

  .arrow {
    top: 21px;
    right: 20px;
  }

  .lesson-sidebar {
    gap: 6px;
    padding: 14px;
  }

  .lesson-sidebar a {
    padding: 9px 8px;
    font-size: 0.95rem;
  }

  .lesson-panel {
    border-radius: 17px;
  }

  .concept-list article,
  .rules article {
    grid-template-columns: 1fr;
  }

  .rules article h3,
  .rules article p {
    grid-column: 1;
  }

  .rules article span {
    grid-row: auto;
  }
}

/* ------------------------------------------------------------- */
/* Module 1.2 — Context window visualizer                        */
/* Reuses .lesson-modal, .token-visual, and .token-notes shells. */
/* ------------------------------------------------------------- */

.context-count {
  background: #f0e6dc;
  color: #71301b;
}

.context-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  font-weight: 800;
}

.context-legend span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.swatch-system {
  border: 1px solid #c9d5b5;
  background: #dfe6c7;
}

.swatch-history {
  border: 1px solid #d4d1ca;
  background: #f4f2ec;
}

.swatch-user {
  border: 1px solid #b8d4ec;
  background: #e1f0fc;
}

.swatch-attach {
  border: 1px solid #efc7ba;
  background: #fff1eb;
}

.swatch-room {
  border: 1px solid #b9d8d2;
  background: #dbe7e3;
}

.context-bar {
  display: flex;
  width: 100%;
  height: 78px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 14px;
  background: #faf8f3;
}

.ctx-seg {
  position: relative;
  flex-grow: 0;
  flex-shrink: 0;
  min-width: 0;
  border-right: 1px solid rgba(21, 21, 21, 0.06);
  transition: flex-basis 360ms ease;
}

.ctx-seg:last-child {
  border-right: 0;
}

.ctx-seg.is-empty {
  border-right: 0;
}

.ctx-system {
  background: #dfe6c7;
}

.ctx-history {
  background: #f4f2ec;
}

.ctx-user {
  background: #e1f0fc;
}

.ctx-attach {
  background: #fff1eb;
}

.ctx-room {
  background: #dbe7e3;
}

.context-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.ctx-btn {
  padding: 10px 16px;
  border: 1.5px solid rgba(213, 123, 95, 0.34);
  border-radius: 999px;
  background: #fffefa;
  color: var(--body);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.ctx-btn:hover,
.ctx-btn:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
  outline: none;
  transform: translateY(-1px);
}

.ctx-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffdf8;
}

/* ------------------------------------------------------------- */
/* Module 1.3 — Workday leverage inspector                       */
/* Reuses .lesson-modal, .token-visual, and .token-notes shells. */
/* ------------------------------------------------------------- */

.savings-count {
  background: #dbe7e3;
  color: #386d65;
}

.leverage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.lev-tab {
  padding: 10px 16px;
  border: 1.5px solid rgba(213, 123, 95, 0.34);
  border-radius: 999px;
  background: #fffefa;
  color: var(--body);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.lev-tab:hover,
.lev-tab:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
  outline: none;
  transform: translateY(-1px);
}

.lev-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffdf8;
}

.lev-body {
  display: grid;
  gap: 22px;
  margin-bottom: 22px;
  padding: 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 16px;
  background: #faf8f3;
}

.lev-summary {
  display: grid;
  gap: 6px;
}

.lev-trait {
  margin: 0;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lev-task {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 400;
  line-height: 1.2;
}

.lev-comparison {
  display: grid;
  gap: 12px;
}

.lev-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.lev-row-label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lev-bar {
  position: relative;
  height: 36px;
  overflow: hidden;
  border-radius: 10px;
  background: #f4f2ec;
}

.lev-bar-fill {
  display: block;
  height: 100%;
  transition: width 380ms ease;
}

.lev-bar-today .lev-bar-fill {
  background: #efc7ba;
}

.lev-bar-claude .lev-bar-fill {
  background: #b5d2cc;
}

.lev-bar-value {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
}

.lev-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.lev-changes ul {
  margin: 0;
  padding-left: 20px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.55;
}

.lev-changes li {
  margin-bottom: 6px;
}

.lev-changes li::marker {
  color: var(--accent);
  font-weight: 900;
}

.lev-prompt code {
  display: block;
  padding: 14px 16px;
  border: 1.5px solid rgba(213, 123, 95, 0.34);
  border-radius: 12px;
  background: #fffefa;
  color: #30302f;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: normal;
}

/* ------------------------------------------------------------- */
/* Module 1.4 — Data classifier quiz                             */
/* Reuses .lesson-modal, .token-visual, and .token-notes shells. */
/* ------------------------------------------------------------- */

.classifier-count {
  background: #f0e6dc;
  color: #71301b;
}

.dc-progress {
  height: 6px;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: #f4f2ec;
}

.dc-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 320ms ease;
}

.dc-stage {
  display: grid;
  gap: 22px;
}

.dc-stage[hidden] {
  display: none;
}

.dc-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 16px;
  background: #faf8f3;
}

.dc-sample {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  font-weight: 400;
  line-height: 1.25;
}

.dc-context {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}

.dc-prompt {
  margin: 0;
  color: var(--body);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

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

.dc-btn {
  display: grid;
  gap: 4px;
  padding: 16px 14px;
  border: 1.5px solid rgba(213, 123, 95, 0.34);
  border-radius: 14px;
  background: #fffefa;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.dc-btn:hover,
.dc-btn:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(87, 60, 47, 0.1);
}

.dc-btn-label {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  line-height: 1;
}

.dc-btn-hint {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.dc-btn-safe:hover,
.dc-btn-safe:focus-visible {
  border-color: #8b956e;
  background: #f3f6e9;
}

.dc-btn-sensitive:hover,
.dc-btn-sensitive:focus-visible {
  border-color: #c79a4a;
  background: #fbf3df;
}

.dc-btn-offlimits:hover,
.dc-btn-offlimits:focus-visible {
  border-color: var(--accent);
  background: #fbefe9;
}

.dc-feedback {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 16px;
  background: #faf8f3;
}

.dc-feedback.is-correct {
  border-color: #8b956e;
  background: #f3f6e9;
}

.dc-feedback.is-incorrect {
  border-color: var(--accent);
  background: #fbefe9;
}

.dc-feedback-verdict {
  margin: 0;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dc-feedback.is-correct .dc-feedback-verdict {
  color: #5e7244;
}

.dc-feedback-correct {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 400;
  line-height: 1.25;
}

.dc-feedback-why {
  margin: 0;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.55;
}

.dc-feedback-actions {
  display: flex;
  justify-content: flex-end;
}

.dc-next {
  padding: 11px 22px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fffdf8;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.dc-next:hover,
.dc-next:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.dc-restart {
  background: #fffefa;
  color: var(--accent);
}

.dc-end {
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 16px;
  background: #faf8f3;
  text-align: left;
}

.dc-end-score {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1;
}

.dc-end-rule {
  margin: 0;
  color: var(--body);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* ------------------------------------------------------------- */
/* Module 2.1 — Prompt builder                                   */
/* Reuses .lesson-modal, .token-visual, and .token-notes shells. */
/* ------------------------------------------------------------- */

.strength-count {
  transition: background-color 200ms ease, color 200ms ease;
}

.strength-count[data-pb-strength="thin"] {
  background: #f0e6dc;
  color: #71301b;
}

.strength-count[data-pb-strength="working"] {
  background: #fbf3df;
  color: #8a6515;
}

.strength-count[data-pb-strength="strong"] {
  background: #dbe7e3;
  color: #386d65;
}

.pb-scenario {
  margin-bottom: 22px;
  padding: 18px 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 14px;
  background: #faf8f3;
}

.pb-scenario-text {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.45;
}

.pb-groups {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.pb-group {
  margin: 0;
  padding: 18px 20px;
  border: 1.5px solid rgba(213, 123, 95, 0.22);
  border-radius: 14px;
  background: #fffefa;
}

.pb-group legend {
  padding: 0 8px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.pb-chip {
  padding: 9px 14px;
  border: 1.5px solid rgba(213, 123, 95, 0.34);
  border-radius: 999px;
  background: #fffefa;
  color: var(--body);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.pb-chip:hover,
.pb-chip:focus-visible {
  outline: none;
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}

.pb-chip.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffdf8;
}

.pb-preview {
  margin-bottom: 22px;
  padding: 18px 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 14px;
  background: #faf8f3;
}

.pb-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pb-reset {
  padding: 7px 14px;
  border: 1.5px solid rgba(213, 123, 95, 0.34);
  border-radius: 999px;
  background: #fffefa;
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.pb-reset:hover,
.pb-reset:focus-visible {
  outline: none;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.pb-preview-code {
  margin: 0;
  padding: 14px 16px;
  border: 1.5px solid rgba(213, 123, 95, 0.34);
  border-radius: 12px;
  background: #fffefa;
  color: #30302f;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  max-height: 320px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ------------------------------------------------------------- */
/* Module 2.2 — Brief anatomy walkthrough                        */
/* Reuses .lesson-modal, .token-visual, and .token-notes shells. */
/* ------------------------------------------------------------- */

.anatomy-count {
  background: #f0e6dc;
  color: #71301b;
}

.ba-scenario {
  margin-bottom: 22px;
  padding: 18px 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 14px;
  background: #faf8f3;
}

.ba-scenario-text {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.02rem, 2.4vw, 1.18rem);
  line-height: 1.45;
}

.ba-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.ba-brief {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 18px 18px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 14px;
  background: #fffefa;
}

.ba-segment {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.ba-segment + .ba-segment {
  margin-top: 4px;
}

.ba-segment:hover {
  background: rgba(213, 123, 95, 0.06);
}

.ba-segment.is-highlighted {
  background: #fbefe9;
  box-shadow: inset 3px 0 0 var(--accent);
}

.ba-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border: 1.5px solid rgba(213, 123, 95, 0.4);
  border-radius: 999px;
  background: #fffefa;
  color: var(--accent);
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.ba-pin:hover,
.ba-pin:focus-visible {
  outline: none;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.ba-pin.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffdf8;
}

.ba-text {
  margin: 0;
  color: var(--body);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.ba-label {
  color: var(--accent);
  font-weight: 800;
}

.ba-annotation {
  align-self: start;
  padding: 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 14px;
  background: #faf8f3;
  position: sticky;
  top: 0;
}

.ba-annotation h3 {
  margin: 6px 0 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  font-weight: 400;
  line-height: 1.2;
}

.ba-annotation p[data-ba-text] {
  margin: 0;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.55;
}

/* ------------------------------------------------------------- */
/* Module 2.3 — Iteration loop walker                            */
/* Reuses .lesson-modal, .token-visual, and .token-notes shells. */
/* ------------------------------------------------------------- */

.loop-count {
  transition: background-color 200ms ease, color 200ms ease;
}

.loop-count[data-il-stage="weak"],
.loop-count[data-il-stage="round"] {
  background: #f0e6dc;
  color: #71301b;
}

.loop-count[data-il-stage="working"] {
  background: #fbf3df;
  color: #8a6515;
}

.loop-count[data-il-stage="ship"] {
  background: #dbe7e3;
  color: #386d65;
}

.il-scenario {
  margin-bottom: 22px;
  padding: 18px 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 14px;
  background: #faf8f3;
}

.il-scenario-text {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.02rem, 2.4vw, 1.18rem);
  line-height: 1.45;
}

.il-rounds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.il-round {
  padding: 10px 16px;
  border: 1.5px solid rgba(213, 123, 95, 0.34);
  border-radius: 999px;
  background: #fffefa;
  color: var(--body);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.il-round:hover,
.il-round:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
  outline: none;
  transform: translateY(-1px);
}

.il-round.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffdf8;
}

.il-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 16px;
  margin-bottom: 22px;
}

.il-panel {
  padding: 16px 18px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 14px;
  background: #fffefa;
}

.il-text {
  margin: 6px 0 0;
  color: #30302f;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.55;
  max-height: 320px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.il-verdict {
  padding: 18px 22px;
  margin-bottom: 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 14px;
  background: #faf8f3;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.il-verdict.is-warn {
  border-color: rgba(213, 123, 95, 0.4);
  background: #fbefe9;
}

.il-verdict.is-ship {
  border-color: #8b956e;
  background: #f3f6e9;
}

.il-verdict ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.55;
}

.il-verdict li {
  margin-bottom: 6px;
}

.il-verdict li::marker {
  color: var(--accent);
  font-weight: 900;
}

.il-verdict.is-ship li::marker {
  color: #5e7244;
}

/* ------------------------------------------------------------- */
/* Module 2.4 — Tool-fit tester                                  */
/* Reuses .lesson-modal, .token-visual, and .token-notes shells. */
/* ------------------------------------------------------------- */

.fit-count {
  transition: background-color 200ms ease, color 200ms ease;
}

.fit-count[data-fit-verdict="strong"] {
  background: #dbe7e3;
  color: #386d65;
}

.fit-count[data-fit-verdict="weak"] {
  background: #fbf3df;
  color: #8a6515;
}

.fit-count[data-fit-verdict="wrong"] {
  background: #f0e6dc;
  color: #71301b;
}

.tf-tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.tf-task {
  padding: 10px 16px;
  border: 1.5px solid rgba(213, 123, 95, 0.34);
  border-radius: 999px;
  background: #fffefa;
  color: var(--body);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: left;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.tf-task:hover,
.tf-task:focus-visible {
  outline: none;
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}

.tf-task.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffdf8;
}

.tf-card {
  padding: 22px;
  margin-bottom: 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 16px;
  background: #faf8f3;
}

.tf-task-text {
  margin: 6px 0 18px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 400;
  line-height: 1.25;
}

.tf-tests {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.tf-test {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1.5px solid rgba(213, 123, 95, 0.22);
  border-radius: 12px;
  background: #fffefa;
}

.tf-test.is-pass {
  border-color: #8b956e;
  background: #f3f6e9;
}

.tf-test.is-fail {
  border-color: rgba(213, 123, 95, 0.45);
  background: #fbefe9;
}

.tf-test-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: 2px;
  border-radius: 999px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.tf-test.is-pass .tf-test-glyph {
  background: #8b956e;
  color: #fffdf8;
}

.tf-test.is-fail .tf-test-glyph {
  background: var(--accent);
  color: #fffdf8;
}

.tf-test-body {
  display: grid;
  gap: 4px;
}

.tf-test-name {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.2;
}

.tf-test-why {
  margin: 0;
  color: var(--body);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tf-verdict {
  padding: 18px 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 14px;
  background: #fffefa;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.tf-verdict.is-strong {
  border-color: #8b956e;
  background: #f3f6e9;
}

.tf-verdict.is-weak {
  border-color: #c79a4a;
  background: #fbf3df;
}

.tf-verdict.is-wrong {
  border-color: var(--accent);
  background: #fbefe9;
}

.tf-verdict-headline {
  margin: 6px 0 8px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-weight: 400;
  line-height: 1.15;
}

.tf-verdict-rec {
  margin: 0;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.55;
}

/* ------------------------------------------------------------- */
/* Module 3.1 — Surface workflow walker                          */
/* Reuses .lesson-modal, .token-visual, and .token-notes shells. */
/* ------------------------------------------------------------- */

.workflow-count {
  background: #f0e6dc;
  color: #71301b;
}

.sw-tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.sw-task {
  padding: 10px 16px;
  border: 1.5px solid rgba(213, 123, 95, 0.34);
  border-radius: 999px;
  background: #fffefa;
  color: var(--body);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.sw-task:hover,
.sw-task:focus-visible {
  outline: none;
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}

.sw-task.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffdf8;
}

.sw-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  margin-bottom: 22px;
}

.sw-step {
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 16px;
  background: #fffefa;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.sw-step[data-sw-surface="chat"] {
  border-color: #b9d8d2;
  background: #f0f6f3;
}

.sw-step[data-sw-surface="cowork"] {
  border-color: rgba(213, 123, 95, 0.45);
  background: #fbefe9;
}

.sw-step[data-sw-surface="code"] {
  border-color: #b8b3a8;
  background: #f4f2ec;
}

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

.sw-step-num {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sw-surface-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 400;
}

.sw-surface-badge[data-sw-surface="chat"] {
  background: #dbe7e3;
  color: #386d65;
}

.sw-surface-badge[data-sw-surface="cowork"] {
  background: var(--accent);
  color: #fffdf8;
}

.sw-surface-badge[data-sw-surface="code"] {
  background: #36312a;
  color: #fffdf8;
}

.sw-step-task {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-weight: 400;
  line-height: 1.35;
}

.sw-step-why {
  margin: 0;
  color: var(--body);
  font-size: 0.95rem;
  line-height: 1.5;
}

.sw-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
}

.sw-handoff {
  padding: 18px 22px;
  margin-bottom: 22px;
  border: 1.5px dashed rgba(213, 123, 95, 0.4);
  border-radius: 14px;
  background: #faf8f3;
}

.sw-handoff p[data-sw-handoff] {
  margin: 6px 0 0;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.55;
}

/* ------------------------------------------------------------- */
/* Module 3.2 — Slide critique walker                            */
/* Reuses .lesson-modal, .token-visual, and .token-notes shells. */
/* ------------------------------------------------------------- */

.slide-count {
  transition: background-color 200ms ease, color 200ms ease;
}

.slide-count[data-ds-state-badge="weak"] {
  background: #f0e6dc;
  color: #71301b;
}

.slide-count[data-ds-state-badge="ship"] {
  background: #dbe7e3;
  color: #386d65;
}

.ds-rounds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.ds-round {
  padding: 10px 16px;
  border: 1.5px solid rgba(213, 123, 95, 0.34);
  border-radius: 999px;
  background: #fffefa;
  color: var(--body);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.ds-round:hover,
.ds-round:focus-visible {
  outline: none;
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}

.ds-round.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffdf8;
}

.ds-stage[hidden] {
  display: none;
}

.ds-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

/* Faux slide frame. Sized to evoke a 16:9 slide without being literal. */
.ds-slide {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px 26px;
  border: 1.5px solid rgba(54, 49, 42, 0.18);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(87, 60, 47, 0.08);
  min-height: 420px;
}

.ds-slide-header {
  position: relative;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(54, 49, 42, 0.1);
}

.ds-slide-title {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 400;
  line-height: 1.2;
}

.ds-slide-subtitle {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-style: italic;
}

.ds-slide-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  padding-top: 16px;
}

.ds-slide-chart {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px dashed rgba(54, 49, 42, 0.18);
  border-radius: 8px;
  background: #faf8f3;
}

.ds-chart-axis-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ds-chart-frame {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 8px;
  flex: 1;
  min-height: 140px;
  padding: 8px 6px;
  border-bottom: 1.5px solid rgba(54, 49, 42, 0.25);
}

.ds-chart-frame-labeled {
  align-items: flex-end;
}

.ds-chart-bar {
  width: 32px;
  background: linear-gradient(180deg, #d57b5f 0%, #b85042 100%);
  border-radius: 4px 4px 0 0;
  min-height: 12px;
}

.ds-chart-bar-labeled {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ds-chart-bar-labeled .ds-chart-bar {
  width: 36px;
}

.ds-chart-value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink);
}

.ds-chart-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--body);
}

.ds-chart-caption {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: italic;
  text-align: center;
}

.ds-slide-bullets {
  position: relative;
  margin: 0;
  padding-left: 18px;
  color: var(--body);
  font-size: 0.92rem;
  line-height: 1.55;
}

.ds-slide-bullets li {
  margin-bottom: 5px;
}

.ds-slide-bullets li::marker {
  color: var(--accent);
  font-weight: 900;
}

.ds-takeaway {
  padding: 14px 16px;
  border: 1.5px solid #b9d8d2;
  border-radius: 10px;
  background: #f0f6f3;
}

.ds-takeaway p:last-child {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
}

.ds-slide-footer {
  position: relative;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(54, 49, 42, 0.1);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Highlight a slide element while its pin is selected. */
.ds-slide [data-ds-target].is-flagged {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 6px;
}

/* Pin buttons overlaid on the slide. */
.ds-pin {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--accent);
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(87, 60, 47, 0.18);
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
  z-index: 2;
}

.ds-pin:hover,
.ds-pin:focus-visible {
  outline: none;
  transform: scale(1.06);
}

.ds-pin.is-active {
  background: var(--accent);
  color: #fffdf8;
}

.ds-slide-header .ds-pin {
  top: -8px;
  right: -8px;
}

.ds-slide-chart .ds-pin {
  top: -8px;
  right: -8px;
}

.ds-pin-bullets {
  top: -8px;
  right: -8px;
}

.ds-pin-story {
  bottom: -8px;
  left: -8px;
}

.ds-slide-footer .ds-pin {
  bottom: -8px;
  right: -8px;
}

.ds-annotation {
  align-self: start;
  padding: 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 14px;
  background: #faf8f3;
  position: sticky;
  top: 0;
}

.ds-annotation h3 {
  margin: 6px 0 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 3vw, 1.5rem);
  font-weight: 400;
  line-height: 1.2;
}

.ds-annotation .ds-issue {
  margin: 0 0 18px;
  color: var(--body);
  font-size: 0.98rem;
  line-height: 1.55;
}

.ds-annotation .ds-fix {
  margin: 4px 0 0;
  color: var(--body);
  font-size: 0.98rem;
  line-height: 1.55;
}

.ds-annotation-ship {
  border-color: #b9d8d2;
  background: #f0f6f3;
}

.ds-slide-ship {
  border-color: #b9d8d2;
}

/* ------------------------------------------------------------- */
/* Module 3.3 — AI-tell detector                                 */
/* Reuses .lesson-modal, .token-visual, and .token-notes shells. */
/* ------------------------------------------------------------- */

.voice-count {
  transition: background-color 200ms ease, color 200ms ease;
}

.voice-count[data-vt-state-badge="ai"] {
  background: #f0e6dc;
  color: #71301b;
}

.voice-count[data-vt-state-badge="human"] {
  background: #dbe7e3;
  color: #386d65;
}

.vt-rounds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.vt-round {
  padding: 10px 16px;
  border: 1.5px solid rgba(213, 123, 95, 0.34);
  border-radius: 999px;
  background: #fffefa;
  color: var(--body);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.vt-round:hover,
.vt-round:focus-visible {
  outline: none;
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}

.vt-round.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffdf8;
}

.vt-stage[hidden] {
  display: none;
}

.vt-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.vt-paragraph {
  padding: 22px 26px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 14px;
  background: #fffefa;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.02rem, 2.3vw, 1.18rem);
  line-height: 1.65;
}

.vt-paragraph p {
  margin: 0;
}

.vt-paragraph p + p {
  margin-top: 10px;
}

.vt-paragraph-human {
  border-color: #b9d8d2;
  background: #f0f6f3;
}

.vt-signoff {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

/* Inline tell button. Lives inside prose, so it has to read like a phrase
   that's been gently highlighted — not like a UI button bolted onto a sentence. */
.vt-tell {
  display: inline;
  padding: 0 4px;
  margin: 0;
  border: none;
  border-bottom: 2px dashed rgba(213, 123, 95, 0.45);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-style: italic;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.vt-tell:hover,
.vt-tell:focus-visible {
  outline: none;
  background: rgba(213, 123, 95, 0.1);
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.vt-tell.is-active {
  background: var(--accent);
  border-bottom-color: var(--accent);
  color: #fffdf8;
  font-style: normal;
  border-radius: 4px;
}

.vt-annotation {
  align-self: start;
  padding: 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 14px;
  background: #faf8f3;
  position: sticky;
  top: 0;
}

.vt-annotation h3 {
  margin: 6px 0 14px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 400;
  line-height: 1.2;
}

.vt-annotation .vt-reason,
.vt-annotation .vt-rewrite {
  margin: 4px 0 14px;
  color: var(--body);
  font-size: 0.98rem;
  line-height: 1.55;
}

.vt-annotation .vt-rewrite:last-child {
  margin-bottom: 0;
}

.vt-annotation-human {
  border-color: #b9d8d2;
  background: #f0f6f3;
}

/* ------------------------------------------------------------- */
/* Module 3.4 — Formula translator                               */
/* Reuses .lesson-modal, .token-visual, and .token-notes shells. */
/* ------------------------------------------------------------- */

.formula-count {
  background: #f0e6dc;
  color: #71301b;
}

.ft-dataset {
  margin-bottom: 22px;
  padding: 16px 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 14px;
  background: #faf8f3;
}

.ft-dataset-text {
  margin: 6px 0 0;
  color: var(--body);
  font-size: 0.98rem;
  line-height: 1.55;
}

.ft-dataset-text code {
  display: inline-block;
  padding: 1px 6px;
  margin: 0 1px;
  border-radius: 4px;
  background: #fffefa;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  font-weight: 800;
}

.ft-tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.ft-task {
  padding: 10px 16px;
  border: 1.5px solid rgba(213, 123, 95, 0.34);
  border-radius: 999px;
  background: #fffefa;
  color: var(--body);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.ft-task:hover,
.ft-task:focus-visible {
  outline: none;
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}

.ft-task.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffdf8;
}

.ft-card {
  padding: 22px;
  margin-bottom: 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 16px;
  background: #faf8f3;
}

.ft-english {
  margin: 4px 0 18px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  font-weight: 400;
  line-height: 1.3;
}

.ft-formula {
  margin: 4px 0 22px;
  padding: 14px 16px;
  border: 1.5px solid rgba(54, 49, 42, 0.18);
  border-radius: 10px;
  background: #36312a;
  color: #f6efe5;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.4;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.ft-breakdown {
  margin: 4px 0 22px;
  padding: 0;
  list-style: none;
  counter-reset: ft-step;
}

.ft-breakdown li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 14px;
  align-items: start;
  padding: 12px 14px;
  border: 1.5px solid rgba(213, 123, 95, 0.22);
  border-radius: 10px;
  background: #fffefa;
}

.ft-breakdown li + li {
  margin-top: 8px;
}

.ft-breakdown li::before {
  counter-increment: ft-step;
  content: counter(ft-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 800;
}

.ft-breakdown li code {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  background: #f4f2ec;
  color: #36312a;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.4;
  word-break: break-word;
}

.ft-breakdown li span {
  align-self: center;
  color: var(--body);
  font-size: 0.95rem;
  line-height: 1.55;
}

.ft-verify {
  padding: 16px 22px;
  border: 1.5px dashed rgba(213, 123, 95, 0.4);
  border-radius: 12px;
  background: #fbefe9;
}

.ft-verify p[data-ft-verify] {
  margin: 6px 0 0;
  color: var(--body);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ------------------------------------------------------------- */
/* Module 3.5 — Thread summarizer                                */
/* Reuses .lesson-modal, .token-visual, and .token-notes shells. */
/* ------------------------------------------------------------- */

.summary-count {
  background: #f0e6dc;
  color: #71301b;
}

.ts-context {
  margin-bottom: 22px;
  padding: 16px 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 14px;
  background: #faf8f3;
}

.ts-context-text {
  margin: 6px 0 0;
  color: var(--body);
  font-size: 0.98rem;
  line-height: 1.55;
}

.ts-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.ts-thread {
  display: grid;
  gap: 10px;
  align-content: start;
}

.ts-msg {
  padding: 14px 16px;
  border: 1.5px solid rgba(213, 123, 95, 0.22);
  border-radius: 12px;
  background: #fffefa;
  transition: background-color 200ms ease, border-color 200ms ease,
    box-shadow 200ms ease, transform 200ms ease;
}

.ts-msg header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ts-from {
  color: var(--accent);
}

.ts-msg p {
  margin: 0;
  color: var(--body);
  font-size: 0.95rem;
  line-height: 1.5;
}

.ts-msg.is-flagged {
  border-color: var(--accent);
  background: #fbefe9;
  box-shadow: 0 8px 22px rgba(213, 123, 95, 0.18);
  transform: translateX(-2px);
}

.ts-summary {
  display: grid;
  gap: 18px;
  align-content: start;
}

.ts-section {
  padding: 18px 20px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 14px;
  background: #faf8f3;
}

.ts-section-note {
  color: var(--muted);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.ts-items {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.ts-item {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(213, 123, 95, 0.22);
  border-radius: 10px;
  background: #fffefa;
  color: var(--body);
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.ts-item strong {
  color: var(--ink);
  font-weight: 800;
}

.ts-item:hover,
.ts-item:focus-visible {
  outline: none;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.ts-item.is-active {
  border-color: var(--accent);
  background: #fbefe9;
  color: var(--ink);
}

.ts-source-tag {
  margin-bottom: 22px;
  padding: 14px 22px;
  border: 1.5px dashed rgba(213, 123, 95, 0.4);
  border-radius: 12px;
  background: #faf8f3;
  transition: border-color 200ms ease, background-color 200ms ease;
}

.ts-source-tag.is-implicit {
  border-color: #c79a4a;
  background: #fbf3df;
}

.ts-source-tag p[data-ts-source-text] {
  margin: 6px 0 0;
  color: var(--body);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ------------------------------------------------------------- */
/* Module 4.1 — Cadence designer                                 */
/* Reuses .lesson-modal, .token-visual, and .token-notes shells. */
/* ------------------------------------------------------------- */

.cadence-count {
  background: #f0e6dc;
  color: #71301b;
}

.cd-context {
  margin-bottom: 22px;
  padding: 16px 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 14px;
  background: #faf8f3;
}

.cd-context-text {
  margin: 6px 0 0;
  color: var(--body);
  font-size: 0.98rem;
  line-height: 1.55;
}

.cd-week {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.cd-day {
  display: grid;
  gap: 4px;
  padding: 16px 14px;
  border: 1.5px solid rgba(213, 123, 95, 0.34);
  border-radius: 14px;
  background: #fffefa;
  color: var(--body);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.cd-day:hover,
.cd-day:focus-visible {
  outline: none;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(87, 60, 47, 0.1);
}

.cd-day-label {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 400;
}

.cd-day-time {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cd-day-surface {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.cd-day.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

.cd-day.is-active .cd-day-label,
.cd-day.is-active .cd-day-time,
.cd-day.is-active .cd-day-surface {
  color: #fffdf8;
}

.cd-day-gap {
  border-style: dashed;
  background: #faf8f3;
}

.cd-day-gap .cd-day-surface {
  color: var(--muted);
  font-style: italic;
}

.cd-day-gap.is-active {
  background: #c79a4a;
  border-color: #c79a4a;
  border-style: solid;
}

.cd-detail {
  display: grid;
  gap: 16px;
  padding: 22px;
  margin-bottom: 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 16px;
  background: #faf8f3;
}

.cd-detail-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cd-detail-badge {
  padding: 5px 14px;
  border-radius: 999px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
}

.cd-detail-badge[data-cd-surface="email"] {
  background: var(--accent);
  color: #fffdf8;
}

.cd-detail-badge[data-cd-surface="social"] {
  background: #dbe7e3;
  color: #386d65;
}

.cd-detail-badge[data-cd-surface="call"] {
  background: #36312a;
  color: #fffdf8;
}

.cd-detail-badge[data-cd-surface="gap"] {
  background: #fbf3df;
  color: #8a6515;
}

.cd-detail h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 400;
  line-height: 1.2;
}

.cd-detail-section p:not(.section-label) {
  margin: 6px 0 0;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.55;
}

.cd-message {
  font-family: Georgia, "Times New Roman", serif;
}

.cd-prompt {
  margin: 6px 0 0;
  padding: 14px 16px;
  border: 1.5px solid rgba(213, 123, 95, 0.34);
  border-radius: 12px;
  background: #fffefa;
  color: #30302f;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ------------------------------------------------------------- */
/* Module 4.2 — Engine anatomy                                   */
/* Reuses .lesson-modal, .token-visual, and .token-notes shells. */
/* ------------------------------------------------------------- */

.engine-count {
  background: #f0e6dc;
  color: #71301b;
}

.eg-query {
  margin-bottom: 22px;
  padding: 16px 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 14px;
  background: #faf8f3;
}

.eg-query-text {
  margin: 6px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2.3vw, 1.12rem);
  line-height: 1.55;
  font-style: italic;
}

.eg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.eg-response {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 16px;
  background: #fffefa;
}

.eg-section {
  position: relative;
  padding: 16px 18px;
  border: 1.5px solid rgba(213, 123, 95, 0.22);
  border-radius: 12px;
  background: #faf8f3;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.eg-section.is-flagged {
  border-color: var(--accent);
  background: #fbefe9;
  box-shadow: 0 8px 20px rgba(213, 123, 95, 0.16);
}

.eg-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.eg-section-label {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eg-confidence {
  padding: 4px 12px;
  border-radius: 999px;
  background: #dbe7e3;
  color: #386d65;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  font-weight: 400;
}

.eg-section.is-flagged .eg-confidence {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.eg-verdict-text {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 400;
  line-height: 1.2;
}

.eg-verdict-note {
  margin: 0;
  color: var(--body);
  font-size: 0.95rem;
  line-height: 1.5;
  font-style: italic;
}

.eg-section-citation {
  margin: 4px 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.5;
}

.eg-section-citation strong {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  font-weight: 800;
}

.eg-section-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.eg-edges {
  margin: 4px 0 0;
  padding-left: 18px;
  color: var(--body);
  font-size: 0.95rem;
  line-height: 1.55;
}

.eg-edges li {
  margin-bottom: 4px;
}

.eg-edges li::marker {
  color: var(--accent);
}

/* Pin buttons on each section. */
.eg-pin {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--accent);
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(87, 60, 47, 0.18);
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
  z-index: 2;
}

.eg-pin:hover,
.eg-pin:focus-visible {
  outline: none;
  transform: scale(1.06);
}

.eg-pin.is-active {
  background: var(--accent);
  color: #fffdf8;
}

.eg-section .eg-pin {
  top: -8px;
  right: -8px;
}

.eg-pin-verdict {
  top: auto !important;
  right: 60px !important;
  bottom: -8px;
}

.eg-pin-bottom {
  top: auto !important;
  bottom: -8px;
  right: -8px;
}

.eg-annotation {
  align-self: start;
  padding: 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 14px;
  background: #faf8f3;
  position: sticky;
  top: 0;
}

.eg-annotation h3 {
  margin: 6px 0 14px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 400;
  line-height: 1.2;
}

.eg-annotation .eg-what,
.eg-annotation .eg-verify {
  margin: 4px 0 14px;
  color: var(--body);
  font-size: 0.98rem;
  line-height: 1.55;
}

.eg-annotation .eg-verify:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------- */
/* Module 4.3 — Propagation map                                  */
/* Reuses .lesson-modal, .token-visual, and .token-notes shells. */
/* ------------------------------------------------------------- */

.propagation-count {
  background: #f0e6dc;
  color: #71301b;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.propagation-count strong {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.pm-decision {
  margin-bottom: 14px;
  padding: 18px 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.4);
  border-radius: 14px;
  background: #faf8f3;
}

.pm-decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.pm-decision-grid > div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fffefa;
}

.pm-decision-grid span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pm-decision-grid code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.4;
}

.pm-arrow {
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.pm-surfaces {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.pm-surface {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1.5px solid rgba(213, 123, 95, 0.34);
  border-radius: 12px;
  background: #fffefa;
  color: var(--body);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.pm-surface:hover,
.pm-surface:focus-visible {
  outline: none;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(87, 60, 47, 0.1);
}

.pm-surface.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

.pm-surface-name {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 400;
}

.pm-surface.is-active .pm-surface-name {
  color: #fffdf8;
}

.pm-surface-tag {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pm-surface.is-active .pm-surface-tag {
  color: #fbeee5;
}

.pm-detail {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  margin-bottom: 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 16px;
  background: #faf8f3;
}

.pm-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.pm-detail-head h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 400;
  line-height: 1.2;
}

.pm-detail-when {
  padding: 4px 12px;
  border-radius: 999px;
  background: #dbe7e3;
  color: #386d65;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.pm-detail-section p:not(.section-label) {
  margin: 4px 0 0;
  color: var(--body);
  font-size: 0.98rem;
  line-height: 1.55;
}

.pm-audit {
  margin: 4px 0 0;
  padding: 14px 16px;
  border: 1.5px solid rgba(54, 49, 42, 0.18);
  border-radius: 10px;
  background: #36312a;
  color: #f6efe5;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ------------------------------------------------------------- */
/* Module 4.4 — Pipeline stage inspector                         */
/* Reuses .lesson-modal, .token-visual, and .token-notes shells. */
/* ------------------------------------------------------------- */

.pipeline-count {
  background: #f0e6dc;
  color: #71301b;
}

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

.pl-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid rgba(213, 123, 95, 0.34);
  border-radius: 14px;
  background: #fffefa;
  color: var(--body);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.pl-stage:hover,
.pl-stage:focus-visible {
  outline: none;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(87, 60, 47, 0.1);
}

.pl-stage.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

.pl-stage-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: #fffefa;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 800;
}

.pl-stage.is-active .pl-stage-num {
  background: #fffefa;
  color: var(--accent);
  border-color: #fffefa;
}

.pl-stage-name {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 400;
}

.pl-stage.is-active .pl-stage-name {
  color: #fffdf8;
}

.pl-detail {
  display: grid;
  gap: 16px;
  padding: 22px;
  margin-bottom: 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 16px;
  background: #faf8f3;
}

.pl-headline {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 3.2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.2;
}

.pl-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.pl-state {
  padding: 18px 20px;
  border: 1.5px solid rgba(213, 123, 95, 0.22);
  border-radius: 12px;
  background: #fffefa;
}

.pl-state-today {
  border-color: rgba(213, 123, 95, 0.4);
  background: #fbefe9;
}

.pl-state-ai {
  border-color: #b9d8d2;
  background: #f0f6f3;
}

.pl-time {
  margin: 4px 0 8px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  font-weight: 400;
  line-height: 1.25;
}

.pl-touches {
  margin: 0 0 10px;
  color: var(--body);
  font-size: 0.95rem;
  line-height: 1.5;
}

.pl-narr {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.5;
}

.pl-boundary {
  padding: 16px 22px;
  border: 1.5px dashed rgba(213, 123, 95, 0.45);
  border-radius: 12px;
  background: #fbf3df;
}

.pl-boundary p:not(.section-label) {
  margin: 6px 0 0;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.55;
}

.pl-prompt-shell {
  padding: 0;
}

.pl-prompt {
  margin: 6px 0 0;
  padding: 14px 16px;
  border: 1.5px solid rgba(213, 123, 95, 0.34);
  border-radius: 12px;
  background: #fffefa;
  color: #30302f;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ------------------------------------------------------------- */
/* Module 4.5 — Compliance lens                                  */
/* Reuses .lesson-modal, .token-visual, and .token-notes shells. */
/* ------------------------------------------------------------- */

.compliance-count {
  background: #f0e6dc;
  color: #71301b;
}

.compliance-count strong {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

.cl-module {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid rgba(213, 123, 95, 0.34);
  border-radius: 14px;
  background: #fffefa;
  color: var(--body);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.cl-module:hover,
.cl-module:focus-visible {
  outline: none;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(87, 60, 47, 0.1);
}

.cl-module.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

.cl-module-num {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 6px;
  background: #f4f2ec;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.85rem;
  font-weight: 800;
}

.cl-module.is-active .cl-module-num {
  background: #fffefa;
  color: var(--accent);
}

.cl-module-name {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.2;
}

.cl-module.is-active .cl-module-name {
  color: #fffdf8;
}

.cl-detail {
  display: grid;
  gap: 16px;
  padding: 22px;
  margin-bottom: 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 16px;
  background: #faf8f3;
}

.cl-headline {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 3.2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.2;
}

.cl-section {
  padding: 16px 18px;
  border: 1.5px solid rgba(213, 123, 95, 0.22);
  border-radius: 12px;
  background: #fffefa;
}

.cl-section-flag {
  border-color: #c79a4a;
  background: #fbf3df;
}

.cl-regs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.cl-reg-badge {
  padding: 5px 12px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: #fbefe9;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.cl-prose {
  margin: 8px 0 0;
  color: var(--body);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ------------------------------------------------------------- */
/* Module 4.6 — Borrower journey map                             */
/* Reuses .lesson-modal, .token-visual, and .token-notes shells. */
/* ------------------------------------------------------------- */

.journey-count {
  background: #f0e6dc;
  color: #71301b;
}

.jm-context {
  margin-bottom: 22px;
  padding: 16px 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 14px;
  background: #faf8f3;
}

.jm-context-text {
  margin: 6px 0 0;
  color: var(--body);
  font-size: 0.98rem;
  line-height: 1.55;
}

.jm-timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.jm-milestone {
  display: grid;
  gap: 4px;
  padding: 12px 10px;
  border: 1.5px solid rgba(213, 123, 95, 0.34);
  border-radius: 12px;
  background: #fffefa;
  color: var(--body);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.jm-milestone:hover,
.jm-milestone:focus-visible {
  outline: none;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(87, 60, 47, 0.1);
}

.jm-milestone.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

.jm-milestone-when {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.jm-milestone.is-active .jm-milestone-when {
  color: #fbeee5;
}

.jm-milestone-label {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.2;
}

.jm-milestone.is-active .jm-milestone-label {
  color: #fffdf8;
}

.jm-detail {
  display: grid;
  gap: 16px;
  padding: 22px;
  margin-bottom: 22px;
  border: 1.5px solid rgba(213, 123, 95, 0.28);
  border-radius: 16px;
  background: #faf8f3;
}

.jm-headline {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 3.2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.2;
}

.jm-detail-section {
  padding: 16px 18px;
  border: 1.5px solid rgba(213, 123, 95, 0.22);
  border-radius: 12px;
  background: #fffefa;
}

.jm-detail-section.jm-boundary {
  border-color: #c79a4a;
  background: #fbf3df;
}

.jm-prose {
  margin: 8px 0 0;
  color: var(--body);
  font-size: 0.98rem;
  line-height: 1.55;
}

.jm-boundary p:not(.section-label) {
  margin: 8px 0 0;
  color: var(--body);
  font-size: 0.98rem;
  line-height: 1.55;
}

.jm-message {
  margin: 8px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: #fbefe9;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2.3vw, 1.12rem);
  line-height: 1.6;
  font-style: italic;
}

@media (max-width: 680px) {
  .lesson-modal-backdrop {
    padding: 10px;
  }

  .lesson-modal {
    max-height: calc(100vh - 20px);
    border-radius: 17px;
  }

  .token-visual-header,
  .token-notes {
    grid-template-columns: 1fr;
  }

  .token-visual-header {
    display: grid;
  }

  .token-count {
    width: 82px;
    min-width: 82px;
    min-height: 82px;
  }

  .token-count strong {
    font-size: 2.35rem;
  }

  .token-chip {
    min-height: 48px;
    padding: 8px 13px;
  }

  .token-chip::after {
    left: 0;
    transform: translateY(6px);
  }

  .token-chip:focus-visible::after {
    transform: translateY(0);
  }

  .context-bar {
    height: 64px;
  }

  .ctx-btn {
    padding: 9px 13px;
    font-size: 0.9rem;
  }

  .lev-tab {
    padding: 9px 13px;
    font-size: 0.9rem;
  }

  .lev-body {
    padding: 16px;
  }

  .lev-detail {
    grid-template-columns: 1fr;
  }

  .lev-row {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
  }

  .lev-bar {
    height: 32px;
  }

  .dc-options {
    grid-template-columns: 1fr;
  }

  .dc-card,
  .dc-feedback,
  .dc-end {
    padding: 18px;
  }

  .pb-group {
    padding: 14px 16px;
  }

  .pb-chip {
    font-size: 0.88rem;
  }

  .pb-preview {
    padding: 14px 16px;
  }

  .ba-layout {
    grid-template-columns: 1fr;
  }

  .ba-annotation {
    position: static;
  }

  .ba-text {
    font-size: 0.86rem;
  }

  .il-split {
    grid-template-columns: 1fr;
  }

  .il-round {
    padding: 9px 13px;
    font-size: 0.88rem;
  }

  .tf-task {
    padding: 9px 13px;
    font-size: 0.88rem;
  }

  .tf-card {
    padding: 16px;
  }

  .tf-test {
    padding: 12px 14px;
  }

  .sw-task {
    padding: 9px 13px;
    font-size: 0.88rem;
  }

  .sw-flow {
    grid-template-columns: 1fr;
  }

  .sw-arrow {
    transform: rotate(90deg);
    font-size: 2rem;
  }

  .sw-step {
    padding: 16px 18px;
  }

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

  .ds-annotation {
    position: static;
  }

  .ds-slide {
    padding: 16px 18px;
    min-height: 0;
  }

  .ds-slide-body {
    grid-template-columns: 1fr;
  }

  .ds-round {
    padding: 9px 13px;
    font-size: 0.88rem;
  }

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

  .vt-annotation {
    position: static;
  }

  .vt-paragraph {
    padding: 16px 18px;
    font-size: 1rem;
  }

  .vt-round {
    padding: 9px 13px;
    font-size: 0.88rem;
  }

  .ft-task {
    padding: 9px 13px;
    font-size: 0.88rem;
  }

  .ft-card {
    padding: 16px;
  }

  .ft-breakdown li {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .ft-breakdown li span {
    grid-column: 1 / -1;
  }

  .ts-split {
    grid-template-columns: 1fr;
  }

  .ts-section {
    padding: 14px 16px;
  }

  .ts-msg {
    padding: 12px 14px;
  }

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

  .cd-day {
    padding: 12px 10px;
  }

  .cd-day-surface {
    font-size: 0.85rem;
  }

  .cd-detail {
    padding: 16px;
  }

  .eg-layout {
    grid-template-columns: 1fr;
  }

  .eg-annotation {
    position: static;
  }

  .eg-section {
    padding: 14px 16px;
  }

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

  .pm-decision-grid {
    grid-template-columns: 1fr;
  }

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

  .pl-compare {
    grid-template-columns: 1fr;
  }

  .pl-detail {
    padding: 16px;
  }

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

  .cl-detail {
    padding: 16px;
  }

  .cl-section {
    padding: 14px 16px;
  }

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

  .jm-detail {
    padding: 16px;
  }

  .jm-detail-section {
    padding: 14px 16px;
  }
}
