/* On Easy member bed — tokens match live oneasy.pages.dev marketing CSS.
   Violet rim + glass panels. School phases are Month/Phase 1–3 only. */
:root {
  --bg: #08080b;
  --panel: #131319;
  --panel-2: #1a1a22;
  --ink: #f4f4f7;
  --dim: #9a9aa8; /* one step lighter: ledes and hints are copy, not disabled text (was #83838f, 4.6:1) */
  --rule: #f4f4f714;
  --accent: #8b7cff;
  --accent-hover: #a499ff;
  --on-accent: #f6f4ff;
  --focus: #8b7cff;
  --header-h: 4.25rem;
  --measure: 40rem;
  --wide: 68rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 1.25rem;
  --pill: 999px;
  --rim: #7c5cff66;
  --rim-hot: #7c5cffa8;
  --glass: color-mix(in srgb, var(--panel) 72%, transparent);
  color-scheme: dark;
}

*,
:before,
:after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  background:
    radial-gradient(900px 520px at 78% 12%, #7c5cff38, transparent 58%),
    radial-gradient(720px 500px at 12% 88%, #e8c48a18, transparent 58%),
    var(--bg);
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
}

body:before {
  content: "";
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(#f4f4f709 1px, #0000 1px),
    linear-gradient(90deg, #f4f4f709 1px, #0000 1px);
  background-size: 64px 64px;
  position: fixed;
  inset: 0;
}

main, .site-header, .site-footer { z-index: 1; position: relative; }

img, svg { max-width: 100%; display: block; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.skip-link {
  left: var(--pad);
  z-index: 100;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  position: absolute;
  top: 0.75rem;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
}

.header-inner {
  width: min(var(--wide), 100%);
  padding: 0.85rem var(--pad);
  min-height: var(--header-h);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
  display: flex;
}

.wordmark {
  color: inherit;
  min-height: 2.75rem; /* 44px tap floor: pad the hit area, not the glyphs */
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  display: inline-flex;
}
.wordmark:hover { color: inherit; }
.wordmark-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.55rem;
  background: #121018 url("/app/os/icons/icon.svg") center / cover no-repeat; /* the same blue wave as the app icon */
  border: 1px solid var(--rim);
  box-shadow: 0 0 16px #4cc9f033, inset 0 1px 0 #ffffff14;
}
.wordmark-text { flex-direction: column; line-height: 1.05; display: flex; }
.wordmark-text strong { letter-spacing: -0.03em; font-size: 1rem; font-weight: 700; }
.wordmark-text em {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 600;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
}

.nav-short { display: none; }

.hello {
  color: var(--dim);
  font-size: 0.92rem;
}
.hello b { color: var(--ink); font-weight: 600; }

.wrap {
  width: min(var(--wide), 100%);
  padding: 0 var(--pad);
  margin: 0 auto;
}

.page {
  padding: clamp(2rem, 6vw, 3.5rem) 0 clamp(3rem, 8vw, 5rem);
}

.kicker {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
}

h1 {
  letter-spacing: -0.04em;
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
}

.lede { color: var(--dim); margin: 0 0 1.5rem; max-width: 40rem; }

.btn {
  border-radius: var(--pill);
  min-height: 2.85rem;
  font: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  justify-content: center;
  align-items: center;
  padding: 0.65rem 1.2rem;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  background: none;
  color: inherit;
}

.btn-primary {
  background: linear-gradient(180deg, #1c1a26, #121018);
  border-color: var(--rim);
  box-shadow: inset 0 1px 0 #ffffff14, 0 0 28px #7c5cff24;
  color: #f3f0ff;
}
.btn-primary:hover {
  background: linear-gradient(180deg, #242034, #16131e);
  border-color: var(--rim-hot);
  color: #fff;
}

.btn-ghost {
  border-color: var(--rule);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink);
}
.btn-ghost:hover { border-color: #f4f4f72e; color: var(--ink); }

.btn[aria-pressed="true"] {
  border-color: var(--rim-hot);
  color: #fff;
  box-shadow: inset 0 1px 0 #ffffff14, 0 0 20px #7c5cff33;
}

.glass {
  border: 1px solid var(--rim);
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 #ffffff10, 0 0 40px #7c5cff14;
}

.field {
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  margin-bottom: 1.1rem;
  display: flex;
}
.field label { font-size: 0.9rem; font-weight: 600; }
.req { color: var(--accent); }
.field input {
  border: 1px solid var(--rule);
  background: var(--panel);
  width: 100%;
  color: var(--ink);
  font: inherit;
  border-radius: 0.85rem;
  padding: 0.75rem 0.85rem;
}
.field input:focus-visible { outline-offset: 0; }

.form-row { display: grid; gap: 0 1rem; }
@media (width >= 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.form-status { min-height: 1.4rem; margin: 0.85rem 0 0; font-size: 0.95rem; color: var(--dim); }
.form-status[data-tone="ok"] { color: #8ee0c0; }
.form-status[data-tone="error"] { color: #ff8aa0; }

.phase {
  margin: 2.25rem 0 0;
}
.phase-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: baseline;
  margin-bottom: 0.85rem;
}
.phase-head h2 {
  margin: 0;
  letter-spacing: -0.03em;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
}
.phase-head p { margin: 0; color: var(--dim); font-size: 0.92rem; }

.lesson-list { display: grid; gap: 0.65rem; padding: 0; margin: 0; list-style: none; }

.lesson-row {
  display: grid;
  grid-template-columns: 3.4rem 1fr auto;
  gap: 0.85rem 1rem;
  align-items: center;
  padding: 0.95rem 1.1rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 #ffffff0c;
}
.lesson-row:hover {
  border-color: var(--rim);
  color: inherit;
  box-shadow: inset 0 1px 0 #ffffff14, 0 0 24px #7c5cff1f;
}

.lesson-id {
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.lesson-copy { display: flex; flex-direction: column; min-width: 0; gap: 0.12rem; }
.lesson-title { font-weight: 650; letter-spacing: -0.02em; }
.lesson-meta { color: var(--dim); font-size: 0.86rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }

.chip {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--pill);
  padding: 0.28rem 0.65rem;
  font-size: 0.66rem;
  font-weight: 700;
  border: 1px solid var(--rule);
  color: var(--dim);
  background: var(--panel); /* solid: chips sit on a gradient, so their own bg must carry the contrast */
}
.chip-ops { color: #c8c0ff; border-color: #7c5cff55; background: #1d1a2f; } /* = #7c5cff18 over --panel, flattened */
.chip-psych { color: #f0e0c4; border-color: #e8c48a44; background: #242122; }
.chip-philosophy { color: #c6e4ff; border-color: #4cc9f044; background: #17212a; }
.chip-ready { color: #8ee0c0; border-color: #3ddc9744; background: #162323; }
.chip-preview,
.chip-demo {
  color: #f0d48a;
  border-color: #e4b84a66;
  background: #27231e;
}
.chip-placeholder { color: var(--dim); }

.demo-banner {
  letter-spacing: 0.04em;
  border: 1px solid #e4b84a66;
  background: #e4b84a14;
  color: #f6e6b0;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.media-slot {
  padding: 1.15rem 1.2rem 1.25rem;
  margin: 1.4rem 0 1rem;
}
.media-slot audio,
.media-slot video {
  width: 100%;
  display: block;
  border-radius: 0.75rem;
}
.media-slot video {
  background: #000;
  aspect-ratio: 16 / 9;
  max-height: 28rem;
}
.media-empty { color: var(--dim); margin: 0; }
.media-preview-note {
  color: #f0d48a;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.rate-row,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin: 0 0 1.15rem;
}

.transcript {
  padding: 1.35rem 1.3rem 1.5rem;
  margin-top: 0.5rem;
}
.transcript h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.transcript-body {
  color: #d8d8e0;
  white-space: pre-wrap;
  margin: 0;
  font-size: 1.02rem;
}

.back {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  margin-bottom: 1.15rem;
}
.back:hover { color: var(--ink); }

.access-card {
  width: min(34rem, 100%);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.85rem;
  text-align: left;
}
.access-card .mark-dot {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.9rem;
  margin-bottom: 1.1rem;
  background: #121018 url("/app/os/icons/icon.svg") center / cover no-repeat;
  border: 1px solid var(--rim);
  box-shadow: 0 0 24px #7c5cff40, inset 0 1px 0 #ffffff14;
}
.center-page {
  min-height: calc(100vh - 5rem);
  display: grid;
  place-items: center;
  padding: 2rem var(--pad);
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.35rem 0 1.6rem;
}
.footer-inner {
  width: min(var(--wide), 100%);
  padding: 0 var(--pad);
  color: var(--dim);
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin: 0 auto;
  font-size: 0.9rem;
  display: flex;
}
.footer-inner a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; min-width: 2.75rem; }
.footer-inner a:hover { color: var(--ink); }

.capture-banner {
  padding: 1.15rem 1.2rem 1.25rem;
  margin-bottom: 1.5rem;
}

.section-title {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.page > .chips { margin: 0.35rem 0 1.25rem; }

.coach-panel {
  padding: 1.25rem 1.3rem 1.45rem;
  margin: 0 0 2rem;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}
.coach-panel h2 {
  margin: 0 0 0.4rem;
  letter-spacing: -0.03em;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
}
.coach-panel h3 {
  margin: 1.15rem 0 0.35rem;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.coach-panel .lede { margin: 0 0 0.85rem; }
.slot-grid {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 0.35rem;
}
@media (width >= 640px) {
  .slot-grid { grid-template-columns: 1fr 1fr; }
}
.slot-btn { width: 100%; justify-content: flex-start; }
.slot-btn[aria-pressed="true"] {
  border-color: var(--rim-hot);
  background: #7c5cff22;
}
.past-calls { margin: 0; padding-left: 1.1rem; color: var(--dim); }
.past-calls a { font-weight: 600; }

@media (width <= 720px) {
  :root { --header-h: 3.15rem; }
  .header-inner {
    min-height: var(--header-h);
    padding: 0.45rem var(--pad);
    gap: 0.45rem;
    flex-wrap: nowrap;
  }
  .header-meta {
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-header .hello {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .nav-full { display: none; }
  .nav-short { display: inline; }
  .header-meta .btn {
    min-height: 2.75rem; /* 44px: Apple's floor for a thumb */
    padding: 0.35rem 0.8rem;
    font-size: 0.82rem;
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .header-meta .chip {
    white-space: nowrap;
  }
  .wordmark { gap: 0.5rem; flex: 0 0 auto; }
  .wordmark-mark { width: 1.7rem; height: 1.7rem; }
  .wordmark-text strong { font-size: 0.92rem; }
  .wordmark-text em { font-size: 0.6rem; }
}

@media (width <= 640px) {
  .lesson-row { grid-template-columns: 1fr; }
  .chips { justify-content: flex-start; }
}

@media print {
  body { background: #fff; color: #111; }
  body:before, .site-header, .site-footer, .rate-row, .action-row, .media-slot, .skip-link { display: none !important; }
  .transcript, .glass { background: #fff; border: 0; box-shadow: none; backdrop-filter: none; }
  .transcript-body { color: #111; }
}

/* —— Metamorphosis progress strip (thin chips, not a dashboard) —— */
.metamorphosis-strip {
  z-index: 1;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.45rem var(--pad) 0.55rem;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--panel) 55%, transparent);
  backdrop-filter: blur(10px);
}

.metamorphosis-strip--compact {
  padding: 0.28rem var(--pad) 0.32rem;
  gap: 0.4rem 0.65rem;
}

.metamorphosis-kicker {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  flex: 0 0 auto;
}

.metamorphosis-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.18rem 0.55rem;
  border: 1px solid #f4f4f71a;
  border-radius: var(--pill);
  background: #131319aa;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metamorphosis-strip--compact .meta-chip {
  padding: 0.12rem 0.45rem;
  font-size: 0.68rem;
}

.meta-chip--phase {
  color: #c8c0ff;
  border-color: #7c5cff44;
  background: #7c5cff14;
}

.meta-chip--lessons {
  color: var(--ink);
  border-color: #f4f4f722;
}

.meta-chip--ok {
  color: #8ee0c0;
  border-color: #3ddc9733;
  background: #3ddc9710;
}

.meta-chip--warn {
  color: #e8c48a;
  border-color: #e8c48a33;
  background: #e8c48a10;
}

.meta-chip--muted {
  color: var(--dim);
  border-color: #f4f4f714;
}

@media (width <= 640px) {
  .metamorphosis-strip {
    padding-top: 0.4rem;
    padding-bottom: 0.45rem;
  }
  .meta-chip {
    white-space: normal;
  }
}

@media print {
  .metamorphosis-strip { display: none !important; }
}


/* L01+ figures */
.figures, .overview-md { margin: 1.25rem 0; padding: 1.1rem 1.2rem; }
.figures h2, .overview-md h2 { font-size: 1rem; margin: 0 0 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: #8b7cff; }
.lesson-figure { margin: 0; }
.lesson-figure img { display: block; width: 100%; border: 1px solid #2a2840; }
.transcript-body { white-space: pre-wrap; line-height: 1.55; }

/* —— Lesson right rail (video + steps) —— */
.lesson-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  margin-top: 0.5rem;
}
@media (width >= 960px) {
  .lesson-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(17rem, 0.9fr);
  }
}
.lesson-main { min-width: 0; }
.lesson-rail {
  min-width: 0;
  position: relative;
}
@media (width >= 960px) {
  .lesson-rail {
    position: sticky;
    top: 4.5rem;
  }
}
.lesson-rail .media-slot { margin-top: 0; }
.guide-blurb {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--rim, #2a2640);
  background: #12101a;
  color: #cfc9e8;
  font-size: 0.95rem;
  font-weight: 550;
  line-height: 1.45;
}
.steps-panel {
  padding: 1rem 1.05rem 1.15rem;
  margin: 0.85rem 0 0;
}
.steps-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.steps-hint {
  margin: 0 0 0.85rem;
  color: var(--dim, #9a96b0);
  font-size: 0.88rem;
  line-height: 1.4;
}
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.step-item {
  border: 1px solid var(--rim, #2a2640);
  border-radius: 0.8rem;
  background: #0c0b12;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.step-item.is-next {
  border-color: #7c5cff;
  box-shadow: 0 0 0 1px #7c5cff55, 0 0 24px #7c5cff22;
}
.step-item.is-done {
  opacity: 0.72;
}
.step-label {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.65rem;
  padding: 0.75rem 0.8rem;
  cursor: pointer;
  align-items: start;
}
.step-check {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #7c5cff;
}
.step-body {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #1c1830;
  color: #cbbfff;
  margin-bottom: 0.15rem;
}
.step-name {
  display: block;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--ink, #f2f0ff);
}
.step-detail {
  display: block;
  font-size: 0.84rem;
  color: var(--dim, #9a96b0);
  line-height: 1.4;
}
.steps-progress {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dim, #9a96b0);
}
.steps-progress[data-complete="true"] {
  color: #9dembb;
  color: #8fd9a8;
}

.open-line {
  margin: -0.35rem 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid #7c5cff66;
  background: linear-gradient(180deg, #1a1430, #12101a);
  color: #e8e2ff;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

/* —— Section scroll (<60s cards) —— */
.section-stack {
  display: grid;
  gap: 1.15rem;
  margin: 0.5rem 0 1.5rem;
}
.section-card {
  padding: 1.1rem 1.15rem 1.25rem;
  scroll-margin-top: 5rem;
}
.section-card.is-locked {
  opacity: 0.55;
  pointer-events: none;
}
.section-card.is-done {
  border-color: #8fd9a855;
}
.section-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.section-idx {
  display: inline-flex;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: #1c1830;
  color: #cbbfff;
}
.section-lock {
  color: #f0d48a;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.section-media audio,
.section-media video {
  width: 100%;
  display: block;
  border-radius: 0.75rem;
  background: #000;
}
.section-dur {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--dim, #9a96b0);
  font-weight: 600;
}
.section-read {
  margin: 0.85rem 0 0.5rem;
  font-size: 1.02rem;
  line-height: 1.45;
  color: #e8e4ff;
  font-weight: 550;
}
.section-script {
  margin: 0.5rem 0 0;
  color: var(--dim, #9a96b0);
  font-size: 0.9rem;
}
.section-script p {
  white-space: pre-wrap;
  margin: 0.4rem 0 0;
  line-height: 1.45;
}
.section-check {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rim, #2a2640);
}
.section-check-q {
  margin: 0 0 0.55rem;
  font-weight: 650;
  font-size: 0.95rem;
}
.section-check-opts {
  display: grid;
  gap: 0.4rem;
}
.section-check-btn {
  text-align: left;
  justify-content: flex-start;
}
.section-check-btn.is-correct {
  border-color: #8fd9a8;
  color: #8fd9a8;
}
.section-check-btn.is-wrong {
  border-color: #e88;
  color: #e88;
}
.section-check-fb {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbbfff;
}

/* —— Chapter-advance (web full-width; replaces micro section-scroll) —— */
.lesson-layout--chapters {
  grid-template-columns: minmax(0, 1fr);
}
@media (width >= 960px) {
  .lesson-layout--chapters {
    grid-template-columns: minmax(0, 1.75fr) minmax(14rem, 0.65fr);
  }
}
.lesson-layout--chapters .lesson-rail .media-slot {
  display: none;
}
#chapter-root {
  margin: 0.25rem 0 1.5rem;
}
.chapter-progress {
  margin: 0 0 1rem;
}
.chapter-progress-label {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: #cbbfff;
  letter-spacing: 0.02em;
}
.chapter-dots {
  display: flex;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
}
.chapter-dot {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #4a4468;
  background: #1a1730;
  cursor: default;
}
.chapter-dot.is-active {
  background: #8b7cff;
  border-color: #a99cff;
  box-shadow: 0 0 0 3px #8b7cff33;
}
.chapter-dot.is-done {
  background: #8fd9a8;
  border-color: #8fd9a8;
}
.chapter-titles-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}
.chapter-titles-rail li {
  font-size: 0.82rem;
  color: var(--dim, #9a96b0);
  padding: 0.2rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.55rem;
}
.chapter-titles-rail li.is-active {
  color: #e8e4ff;
  font-weight: 650;
  border-left-color: #8b7cff;
}
.chapter-titles-rail li.is-done {
  color: #8fd9a8;
}
.chapter-card {
  padding: 1.25rem 1.2rem 1.4rem;
  scroll-margin-top: 5rem;
}
.chapter-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8b7cff;
  font-weight: 700;
}
.chapter-headline {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.chapter-why {
  margin: 0 0 1rem;
  color: #cfc9e8;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 550;
}
.chapter-media audio,
.chapter-media video {
  width: 100%;
  display: block;
  border-radius: 0.75rem;
  background: #000;
}
.chapter-dur {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--dim, #9a96b0);
  font-weight: 600;
}
.chapter-sub-heading,
.chapter-intake-heading {
  margin: 1rem 0 0.45rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b7cff;
}
.chapter-sub-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #e0dcef;
  line-height: 1.5;
}
.chapter-sub-list li {
  margin: 0.25rem 0;
}
.chapter-infographic {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px dashed #3a3658;
  background: #0e0c16;
}
.chapter-infographic-brief {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: #cbbfff;
  font-weight: 600;
}
.chapter-infographic-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.chapter-infographic-chip {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #1c1830;
  border: 1px solid #3a3658;
  font-size: 0.82rem;
  font-weight: 650;
  color: #e8e4ff;
}
.chapter-infographic-arrow {
  color: #8b7cff;
  font-weight: 700;
}
.chapter-read-after {
  margin: 0.85rem 0 0;
  color: var(--dim, #9a96b0);
  font-size: 0.9rem;
}
.chapter-read-after p {
  margin: 0.4rem 0 0;
  color: #e8e4ff;
  line-height: 1.45;
}
.chapter-intake {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}
.chapter-intake-field,
.chapter-check-field {
  display: grid;
  gap: 0.35rem;
}
.chapter-intake-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #d8d2f0;
}
.chapter-intake-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid var(--rim, #2a2640);
  background: #0c0a12;
  color: #f0ecff;
  font: inherit;
  line-height: 1.4;
  resize: vertical;
}
.chapter-intake-input:focus {
  outline: 2px solid #8b7cff66;
  border-color: #8b7cff;
}
.chapter-check {
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--rim, #2a2640);
}
.chapter-check-q {
  margin: 0 0 0.55rem;
  font-weight: 650;
  font-size: 0.98rem;
}
.chapter-check-dual {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}
.chapter-check-fill {
  min-height: 4rem;
  margin-bottom: 0.55rem;
}
.chapter-check-save {
  margin-top: 0.25rem;
}
.chapter-check-confirm {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 550;
  line-height: 1.4;
}
.chapter-check-fb {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbbfff;
}
.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
  align-items: center;
}
.chapter-next.is-blocked,
.chapter-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.chapter-next-nudge {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  color: #f0d48a;
  font-weight: 600;
}
.chapter-primary-action {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--dim, #9a96b0);
}
.chapter-done {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  background: #142018;
  border: 1px solid #8fd9a855;
  color: #8fd9a8;
  font-weight: 650;
}

/* Skool-density steps — only inside collapsed coach notes */
.chapter-sop {
  margin-top: 1.15rem;
  padding: 0.95rem 1rem 1.05rem;
  border-radius: 0.85rem;
  background: rgba(20, 18, 36, 0.72);
  border: 1px solid var(--rim, #2a2640);
}
.chapter-sop-heading {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #cbbfff;
}
.chapter-sop-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.95rem;
}
.chapter-sop-step {
  margin: 0;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid rgba(42, 38, 64, 0.85);
}
.chapter-sop-step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.chapter-sop-step-title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--fg, #f2f0fa);
}
.chapter-sop-step-n {
  color: #8b7cff;
  font-weight: 700;
}
.chapter-sop-bullets {
  margin: 0;
  padding: 0 0 0 1.05rem;
  display: grid;
  gap: 0.35rem;
}
.chapter-sop-bullet {
  margin: 0;
  line-height: 1.45;
  font-size: 0.94rem;
  color: var(--fg, #e8e6f2);
}
.chapter-sop-lead {
  font-weight: 700;
  color: #f0d48a;
}
.chapter-sop-nest {
  margin: 0.35rem 0 0.1rem;
  padding: 0 0 0 1rem;
  display: grid;
  gap: 0.25rem;
  list-style: disc;
}
.chapter-sop-nest li {
  font-size: 0.9rem;
  color: var(--dim, #b8b4cc);
  line-height: 1.4;
}
.chapter-sop-steal {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(240, 212, 138, 0.08);
  border: 1px dashed rgba(240, 212, 138, 0.45);
}
.chapter-sop-steal-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f0d48a;
}
.chapter-sop-steal-pre {
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #f5e9c8;
  background: transparent;
  border: 0;
}

/* —— Talk-first / Live OS above the fold (L01) —— */
.chapter-layout,
.chapter-layout-talk-first {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.chapter-live-os-host {
  margin: 0.75rem 0 0.35rem;
  z-index: 2;
}
@media (max-width: 959px) {
  .chapter-live-os-host {
    position: sticky;
    top: 0.35rem;
  }
}
@media (min-width: 960px) {
  .chapter-live-os-host {
    position: sticky;
    top: 1rem;
  }
}
.voice-intake-field {
  display: grid;
  gap: 0.45rem;
}
.voice-intake-prompt {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: #e8e4ff;
  line-height: 1.4;
}
.voice-intake-habit {
  /* involve copy retired — keep class inert if old DOM appears */
  display: none;
}
.voice-intake-talk-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.voice-record-btn,
.voice-forward-btn,
.voice-pause-btn {
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.voice-record-btn {
  min-width: min(100%, 9.5rem);
  border: 2px solid #8b7cff;
  background: linear-gradient(180deg, #2a2250 0%, #1a1530 100%);
  color: #f5f2ff;
  box-shadow: 0 0 0 0 rgba(139, 124, 255, 0.35);
}
.voice-record-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #352a66 0%, #221a42 100%);
}
.voice-record-btn.is-recording,
.voice-record-btn.is-speaking {
  background: linear-gradient(180deg, #8a2f4a 0%, #5a1830 100%);
  border-color: #ff9bb5;
  box-shadow: 0 0 0 6px rgba(255, 120, 150, 0.22);
  animation: voice-pulse 1.1s ease-in-out infinite;
}
.voice-record-btn.is-unavailable,
.voice-record-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  animation: none;
}
.voice-forward-btn {
  min-width: 6.5rem;
  border: 2px solid #5ecf8e;
  background: linear-gradient(180deg, #1e3a2c 0%, #13261c 100%);
  color: #e8fff0;
}
.voice-forward-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #27523a 0%, #1a3326 100%);
}
.voice-pause-btn {
  min-width: 5.5rem;
  border: 2px solid #5a5678;
  background: linear-gradient(180deg, #2a2840 0%, #1a1830 100%);
  color: #d8d4ef;
}
.voice-pause-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #35324e 0%, #222038 100%);
}
.voice-forward-btn:disabled,
.voice-pause-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 120, 150, 0.2); }
  50% { box-shadow: 0 0 0 10px rgba(255, 120, 150, 0.1); }
}
/* legacy hold class → map to record look if any stale markup */
.voice-hold-btn {
  min-width: min(100%, 11rem);
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  border: 2px solid #8b7cff;
  background: linear-gradient(180deg, #2a2250 0%, #1a1530 100%);
  color: #f5f2ff;
  box-shadow: 0 0 0 0 rgba(139, 124, 255, 0.35);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.voice-hold-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #352a66 0%, #221a42 100%);
}
.voice-hold-btn.is-recording,
.voice-hold-btn.is-speaking {
  background: linear-gradient(180deg, #8a2f4a 0%, #5a1830 100%);
  border-color: #ff9bb5;
  box-shadow: 0 0 0 6px rgba(255, 120, 150, 0.22);
  animation: voice-pulse 1.1s ease-in-out infinite;
}
.voice-hold-btn.is-unavailable,
.voice-hold-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  animation: none;
}
.voice-intake-status {
  margin: 0;
  font-size: 0.84rem;
  color: var(--dim, #9a96b0);
  font-weight: 600;
  min-height: 1.2em;
}
.voice-intake-status.is-warn {
  color: #f0d48a;
}
.voice-intake-interim {
  margin: 0;
  font-size: 0.9rem;
  font-style: italic;
  color: #cbbfff;
  line-height: 1.35;
}
.voice-type-toggle {
  align-self: start;
  margin: 0;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  color: #8b7cff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: underline;
  cursor: pointer;
}
.voice-type-fallback {
  display: grid;
  gap: 0.35rem;
}
.voice-type-fallback.is-collapsed {
  display: none;
}

.live-os-preview {
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid #3a3658;
  background: rgba(14, 12, 24, 0.92);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
.live-os-head {
  margin-bottom: 0.65rem;
}
.live-os-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cbbfff;
}
.live-os-meta {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8fd9a8;
  line-height: 1.35;
}
.live-os-grid {
  display: grid;
  gap: 0.45rem;
}
.live-os-slot {
  display: grid;
  gap: 0.15rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(42, 38, 64, 0.9);
  background: #0c0a12;
}
.live-os-slot.is-filled {
  border-color: rgba(143, 217, 168, 0.45);
  background: rgba(20, 40, 28, 0.45);
}
.live-os-slot-label {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8b7cff;
}
.live-os-slot.is-filled .live-os-slot-label {
  color: #8fd9a8;
}
.live-os-slot-value {
  font-size: 0.86rem;
  line-height: 1.35;
  color: #e8e4ff;
  white-space: pre-wrap;
  word-break: break-word;
}
.live-os-slot.is-empty .live-os-slot-value {
  color: var(--dim, #6f6a88);
  font-style: italic;
}
.live-os-artifact {
  margin-top: 0.75rem;
  padding: 0.65rem 0.7rem;
  border-radius: 0.65rem;
  background: rgba(240, 212, 138, 0.08);
  border: 1px dashed rgba(240, 212, 138, 0.4);
}
.live-os-artifact-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f0d48a;
}
.live-os-artifact-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #f5e9c8;
  background: transparent;
  border: 0;
}

.connect-later-tease {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(139, 124, 255, 0.4);
  background: rgba(30, 24, 58, 0.65);
}
.connect-later-title {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cbbfff;
}
.connect-later-body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #e8e4ff;
}
.connect-later-note {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--dim, #9a96b0);
  font-weight: 600;
}


/* Coach notes = collapsed density (not SOP hero above fold) */
.chapter-coach-notes {
  margin-top: 1.25rem;
  padding: 0.15rem 0 0;
  border-top: 1px solid var(--rim, #2a2640);
}
.chapter-coach-notes-summary {
  cursor: pointer;
  list-style: none;
  padding: 0.75rem 0.15rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--dim, #9a96b0);
  letter-spacing: 0.01em;
}
.chapter-coach-notes-summary::-webkit-details-marker { display: none; }
.chapter-coach-notes-summary::before {
  content: "▸ ";
  color: #8b7cff;
  font-weight: 700;
}
.chapter-coach-notes[open] > .chapter-coach-notes-summary::before {
  content: "▾ ";
}
.chapter-coach-notes-body {
  padding: 0.25rem 0 0.5rem;
}
.chapter-coach-notes .chapter-sop {
  margin-top: 0.65rem;
  background: rgba(20, 18, 36, 0.45);
}
.chapter-coach-notes .chapter-sop-heading {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.88rem;
  color: var(--dim, #9a96b0);
  font-weight: 650;
}
.chapter-subsections-in-notes {
  margin-bottom: 0.75rem;
}
.chapter-read-after-in-notes p {
  margin: 0.35rem 0 0;
  color: #e8e4ff;
  line-height: 1.45;
  font-size: 0.92rem;
}

/* Optional audio — secondary / collapsed */
.chapter-media-details {
  margin-top: 0.85rem;
  color: var(--dim, #9a96b0);
  font-size: 0.9rem;
}
.chapter-media-summary {
  cursor: pointer;
  list-style: none;
  padding: 0.45rem 0;
  font-weight: 650;
  color: var(--dim, #9a96b0);
}
.chapter-media-summary::-webkit-details-marker { display: none; }
.chapter-media-summary::before {
  content: "▸ ";
  color: #8b7cff;
}
.chapter-media-details[open] > .chapter-media-summary::before {
  content: "▾ ";
}
.chapter-media-details .chapter-media {
  margin-top: 0.35rem;
}

/* Primary talk CTA */
.chapter-intake-primary {
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(139, 124, 255, 0.45);
  background: rgba(30, 24, 58, 0.55);
}
.chapter-intake-heading {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: 0;
  color: #f0ecff;
  font-weight: 750;
}
.chapter-intake-habit-line {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbbfff;
  line-height: 1.35;
}
.chapter-intake-more {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--dim, #9a96b0);
}
.chapter-intake-more > summary {
  cursor: pointer;
  font-weight: 650;
  color: #8b7cff;
}
.chapter-intake-more-body {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.75rem;
}
.chapter-check-fill-oneline {
  min-height: 0;
  margin-bottom: 0.55rem;
}
.chapter-progress {
  margin-bottom: 0.65rem;
}
.chapter-progress-label {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--dim, #9a96b0);
  letter-spacing: 0.02em;
}

/* —— L01 A-bar: Live OS = chat feed (not a slot grid) —— */
.chapter-live-os-host {
  position: relative;
  top: auto;
}
@media (max-width: 959px) {
  .chapter-live-os-host { position: relative; top: auto; }
}
@media (min-width: 960px) {
  .chapter-live-os-host { position: relative; top: auto; }
}
.live-os-preview.live-os-feed {
  padding: 0.75rem 0.8rem 0.85rem;
  background: rgba(12, 10, 20, 0.94);
  border: 1px solid rgba(139, 124, 255, 0.4);
}
.live-os-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.live-os-clear {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.28rem 0.55rem;
}
.live-os-clear.is-armed {
  border-color: #e88;
  color: #e88;
}
.live-os-title-row .oe-avatar {
  width: 1.55rem;
  height: 1.55rem;
  font-size: 0.58rem;
}
.live-os-feed .live-os-title {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}
.oe-avatar {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #2a2440, #121018);
  border: 1px solid var(--rim, #7c5cff66);
  box-shadow: 0 0 12px #7c5cff40, inset 0 1px 0 #ffffff14;
}
.oe-avatar-letters {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #cbbfff;
  line-height: 1;
}
.live-os-feed-list {
  display: grid;
  gap: 0.55rem;
  max-height: 13.5rem;
  overflow-y: auto;
  padding: 0.15rem 0.1rem 0.25rem;
  margin: 0.15rem 0 0;
  -webkit-overflow-scrolling: touch;
}
.live-os-msg {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.45rem;
  align-items: start;
}
.live-os-msg-col {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}
.live-os-msg-who {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b7cff;
}
.live-os-bubble {
  margin: 0;
  padding: 0.5rem 0.7rem;
  border-radius: 0.2rem 0.85rem 0.85rem 0.85rem;
  background: #1c1830;
  border: 1px solid #3a3658;
  color: #f0ecff;
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}
.live-os-msg-welcome .live-os-bubble {
  color: #cbbfff;
  font-weight: 550;
}
.live-os-bubble-prefix {
  color: #8fd9a8;
  font-weight: 750;
}
.live-os-bubble-typing {
  display: inline-flex;
  min-width: 3.2rem;
  padding: 0.55rem 0.8rem;
}
.live-os-dots {
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
  height: 0.9rem;
}
.live-os-dots i {
  display: block;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #cbbfff;
  opacity: 0.35;
  animation: live-os-dot 1s ease-in-out infinite;
}
.live-os-dots i:nth-child(2) { animation-delay: 0.15s; }
.live-os-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes live-os-dot {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.live-os-artifact-host {
  margin-top: 0.65rem;
}
.live-os-artifact-card {
  padding: 0.7rem 0.75rem 0.8rem;
  border-radius: 0.75rem;
  background: rgba(240, 212, 138, 0.08);
  border: 1px solid rgba(240, 212, 138, 0.42);
}
.live-os-artifact-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f0d48a;
}
.live-os-artifact-meta {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c4b48a;
  line-height: 1.35;
}
.live-os-artifact-dl {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}
.live-os-artifact-row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.4rem;
  align-items: start;
}
.live-os-artifact-row dt {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b7cff;
}
.live-os-artifact-row.is-filled dt { color: #8fd9a8; }
.live-os-artifact-row dd {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.35;
  color: #f5e9c8;
  word-break: break-word;
}
.live-os-artifact-row.is-empty dd {
  color: #6f6a88;
  font-style: italic;
}

/* Hide legacy slot grid if any leftover markup */
.live-os-feed .live-os-grid { display: none; }

/* Real infographics */
.chapter-infographic.is-real {
  margin: 1.1rem 0 0;
  padding: 0.9rem 0.85rem 1rem;
  border: 1px solid #3a3658;
  border-style: solid;
  background: #0e0c16;
}
.chapter-infographic.is-real svg {
  width: 100%;
  height: auto;
  display: block;
}
.sn-table-wrap { display: grid; gap: 0.55rem; }
.sn-table-cue {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f0ecff;
  line-height: 1.35;
}
.sn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.35;
}
.sn-table th,
.sn-table td {
  padding: 0.5rem 0.55rem;
  border: 1px solid #3a3658;
  text-align: left;
  vertical-align: top;
}
.sn-table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #14121f;
  color: #cbbfff;
}
.sn-table tbody th {
  width: 6.5rem;
  font-weight: 750;
  color: #e8e4ff;
  background: #12101a;
}
.sn-table td.sn-noise { color: #f0d48a; background: rgba(240, 212, 138, 0.06); }
.sn-table td.sn-signal { color: #8fd9a8; background: rgba(143, 217, 168, 0.07); }
.sn-table thead th.sn-noise { color: #f0d48a; }
.sn-table thead th.sn-signal { color: #8fd9a8; }
@media (max-width: 640px) {
  .sn-table { font-size: 0.75rem; }
  .sn-table tbody th { width: 5.2rem; }
  .live-os-artifact-row { grid-template-columns: 1fr; gap: 0.1rem; }
  .live-os-feed-list { max-height: 11.5rem; }
}

/* —— LIVE OS dopamine (consequence + ownership, not more chrome) —— */
.live-os-preview.is-seeded {
  border-color: rgba(143, 217, 168, 0.72);
  animation: live-os-seed-pulse 0.7s ease;
}
@keyframes live-os-seed-pulse {
  0% { box-shadow: 0 0 0 0 rgba(143, 217, 168, 0); }
  35% { box-shadow: 0 0 0 8px rgba(143, 217, 168, 0.22); }
  100% { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28); }
}
.live-os-fill {
  margin-top: 0.45rem;
  height: 3px;
  border-radius: 999px;
  background: #1a1730;
  overflow: hidden;
}
.live-os-fill-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3dcf7a, #8fd9a8);
  transition: width 0.35s ease;
}
.live-os-tick {
  margin: 0.2rem 0 0;
  min-height: 0;
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: #e8fff0;
  line-height: 1.3;
}
.live-os-tick.is-on { min-height: 1.15em; }
.live-os-msg-you .live-os-msg-who {
  color: #9aa3b5;
}
.live-os-bubble-you {
  background: #16141f;
  border-color: #2c2a3c;
  color: #f7f7fb;
  font-weight: 550;
}
.live-os-msg-you.is-just-latched .live-os-bubble-you {
  animation: live-os-bubble-in 0.42s ease;
}
@keyframes live-os-bubble-in {
  0% { transform: translateY(4px); opacity: 0.35; }
  100% { transform: none; opacity: 1; }
}
.oe-avatar-you {
  background: linear-gradient(180deg, #1c2430, #10141a);
  border-color: #3a4658;
  box-shadow: none;
}
.oe-avatar-you .oe-avatar-letters {
  color: #dce3ee;
  font-size: 0.48rem;
}

.voice-hold-btn.is-recording,
.voice-hold-btn.is-speaking,
.voice-record-btn.is-recording {
  animation: voice-breathe 1.25s ease-in-out infinite;
}
@keyframes voice-breathe {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 120, 150, 0.2); transform: scale(1); }
  50% { box-shadow: 0 0 0 11px rgba(255, 120, 150, 0.1); transform: scale(1.03); }
}
.voice-intake-interim.is-live {
  color: #f0ecff;
  font-style: normal;
  font-weight: 600;
}
.voice-intake-draft {
  margin: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 0.65rem;
  background: #121018;
  border: 1px solid #2a2640;
  color: #f7f7fb;
  font-size: 0.92rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.voice-intake-draft.is-settling,
.voice-intake-input.is-settling {
  animation: voice-settle 0.42s ease;
}
@keyframes voice-settle {
  0% { transform: scale(0.985); filter: blur(1px); }
  100% { transform: none; filter: none; }
}

.voice-forward-btn.is-hero {
  background: linear-gradient(180deg, #3dcf7a 0%, #1f8a4a 100%);
  border-color: #6ee7a0;
  color: #04150c;
  transform: scale(1.06);
  box-shadow: 0 0 0 4px rgba(110, 231, 160, 0.16), 0 8px 20px rgba(46, 180, 100, 0.24);
}
.voice-forward-btn.is-hero:hover:not(:disabled) {
  background: linear-gradient(180deg, #4ada88 0%, #239653 100%);
}
.voice-pause-btn {
  opacity: 0.62;
  font-weight: 600;
  border-color: #3f3c58;
}
.voice-hold-btn.is-secondary {
  opacity: 0.88;
  font-weight: 650;
}
.voice-type-toggle {
  color: #6e6890;
  font-weight: 550;
  text-decoration: none;
  font-size: 0.8rem;
}
.voice-type-toggle:hover { color: #8b7cff; }

@media (prefers-reduced-motion: reduce) {
  .live-os-preview.is-seeded,
  .voice-hold-btn.is-recording,
  .voice-intake-draft.is-settling,
  .live-os-msg-you.is-just-latched .live-os-bubble-you {
    animation: none;
    transform: none;
  }
  .voice-forward-btn.is-hero { transform: none; }
}

/* —— Phase 1 one-screen extract (Coach collapsed; Signal extract is the work) —— */
.lesson-layout--extract {
  grid-template-columns: minmax(0, 1fr);
}
.lesson-layout--extract .lesson-rail,
.lesson-layout--extract #media-slot,
.lesson-layout--extract #rates,
.lesson-layout--extract #transcript-section,
.lesson-layout--extract #action-row,
.lesson-layout--extract #steps-panel,
.lesson-layout--extract .media-slot,
body.lesson-onescreen .lesson-rail,
body.lesson-onescreen #media-slot,
body.lesson-onescreen #rates,
body.lesson-onescreen #transcript-section,
body.lesson-onescreen #action-row {
  display: none !important;
}
.extract-layout {
  display: block;
}
.extract-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.extract-card > .extract-head { order: 0; }
.extract-card > .extract-teach { order: 1; }
.extract-card > .signal-extract { order: 2; }
.extract-card > .extract-coach { order: 4; }
.extract-teach-summary {
  cursor: pointer;
  list-style: none;
  padding: 0.75rem 1rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: #cbbfff;
}
.extract-teach-summary::-webkit-details-marker { display: none; }
.extract-teach-summary::before {
  content: "▸ ";
  color: #8b7cff;
}
.extract-teach[open] > .extract-teach-summary::before {
  content: "▾ ";
}
.extract-teach-body {
  padding: 0 1rem 1rem;
  display: grid;
  gap: 0.65rem;
}
.extract-coach {
  margin: 0;
  border-radius: 0.9rem;
  border: 1px solid #2a2640;
  background: #100e18;
}
.extract-coach-summary {
  cursor: pointer;
  list-style: none;
  padding: 0.75rem 1rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: #cbbfff;
}
.extract-coach-summary::-webkit-details-marker { display: none; }
.extract-coach-summary::before {
  content: "▸ ";
  color: #8b7cff;
}
.extract-coach[open] > .extract-coach-summary::before {
  content: "▾ ";
}
.extract-coach-body {
  padding: 0 1rem 1rem;
  display: grid;
  gap: 1rem;
}
.extract-teach {
  order: 1;
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid #3a3658;
  background: #14121f;
}
details.extract-teach {
  padding: 0;
}
.extract-teach-media {
  display: block;
}
.extract-teach-media audio,
.extract-teach-media video {
  width: 100%;
  display: block;
  border-radius: 0.75rem;
  background: #000;
}
details.extract-teach[open] .extract-teach-media,
details.extract-teach[open] .extract-teach-media video,
details.extract-teach[open] .extract-teach-media audio {
  display: block;
}
.extract-teach .extract-rates {
  margin: 0.65rem 0 0;
}
.extract-play[aria-pressed="true"] {
  border-color: #8b7cff;
  color: #f0ecff;
}
.extract-teach-heading,
.signal-extract-heading,
.extract-confirm-heading {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b7cff;
}
.signal-extract {
  display: grid;
  gap: 0.85rem;
}
.signal-extract-lede,
.extract-record-hint {
  margin: 0;
  color: #cfc9e8;
  font-size: 0.95rem;
}
.extract-q-block {
  display: grid;
  gap: 0.5rem;
  visibility: visible;
  opacity: 1;
}
.extract-q-heading {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b7cff;
}
.extract-q-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.extract-q-item {
  display: grid;
  grid-template-columns: 1.4rem 1.15rem 1fr;
  gap: 0.55rem;
  align-items: start;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid #2a2640;
  background: #121018;
  color: #f0ecff;
  font-weight: 600;
}
.extract-q-num {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  color: #8b7cff;
  text-align: right;
  line-height: 1.2;
}
.extract-q-mark {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.1rem;
  border-radius: 999px;
  border: 1.5px solid #5a5678;
  background: #0c0a12;
}
.extract-q-item.is-filled {
  border-color: #3d6a4c;
}
.extract-q-item.is-filled .extract-q-mark {
  border-color: #8fd9a8;
  background: #8fd9a8;
  box-shadow: inset 0 0 0 2px #121018;
}
.extract-record {
  display: grid;
  gap: 0.45rem;
}
.extract-transcript {
  margin-top: 0.65rem;
}
.extract-transcript-body {
  white-space: pre-wrap;
  color: #e8e4ff;
  font-size: 0.92rem;
  line-height: 1.45;
  padding: 0.4rem 0 0;
}
.extract-confirm {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px solid #2a2640;
}
.extract-confirm-fb {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 650;
  color: #8fd9a8;
}
.extract-nav {
  margin-top: 0.2rem;
}

/* One-screen: extract (questions + Push) owns the first mobile viewport.
   Hide the outer shell stack chapters already repeats (Phase 1 · Signal + title). */
html.lesson-onescreen #metamorphosis,
html.lesson-onescreen .metamorphosis-strip,
html.lesson-onescreen #kicker,
html.lesson-onescreen #title,
html.lesson-onescreen #status-line,
html.lesson-onescreen #open-line,
html.lesson-onescreen #chips,
html.lesson-onescreen #guide-blurb,
body.lesson-onescreen #metamorphosis,
body.lesson-onescreen .metamorphosis-strip,
body.lesson-onescreen #kicker,
body.lesson-onescreen #title,
body.lesson-onescreen #status-line,
body.lesson-onescreen #open-line,
body.lesson-onescreen #chips,
body.lesson-onescreen #guide-blurb {
  display: none !important;
}

html.lesson-onescreen .page,
body.lesson-onescreen .page {
  padding-top: 0.65rem;
  padding-bottom: 2rem;
}
html.lesson-onescreen .back,
body.lesson-onescreen .back {
  display: none !important;
}
html.lesson-onescreen .extract-card,
body.lesson-onescreen .extract-card {
  gap: 0.55rem;
  padding: 0.85rem 0.95rem 1rem;
}
html.lesson-onescreen .extract-head .chapter-why,
body.lesson-onescreen .extract-head .chapter-why {
  display: none;
}
html.lesson-onescreen .extract-head .chapter-headline,
body.lesson-onescreen .extract-head .chapter-headline {
  margin-bottom: 0;
  font-size: 1.18rem;
}
html.lesson-onescreen .signal-extract-heading,
body.lesson-onescreen .signal-extract-heading {
  display: none;
}
html.lesson-onescreen .extract-teach-summary,
body.lesson-onescreen .extract-teach-summary {
  padding: 0.55rem 0.85rem;
}

@media (width <= 480px) {
  html.lesson-onescreen .extract-q-item,
  body.lesson-onescreen .extract-q-item {
    padding: 0.38rem 0.55rem;
    font-size: 0.9rem;
    gap: 0.4rem;
  }
}
