/* LeanPlus 精益学堂 · Quantum Country (1) × Sam Rose (4) Unified System
   Pure luminous white canvas (#ffffff), whisper-quiet right 13-lesson outline & mastery curve rail,
   Sam Rose single-focus interactive micro-canvases (visual on top, clean slider bar at bottom),
   and Quantum Country tactile flip-card review deck. */

.lp-body {
  background: #ffffff;
  color: #16181a;
  overflow-x: clip;
}

/* ---------- 1. Whisper-Clean Top Bar (50px, identical to 《金矿》) ---------- */
.lp-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eff1f3;
}
.lp-topbar-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lp-topbar-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.lp-home-link {
  text-decoration: none;
  color: #16181a;
  font-size: 20px;
}
.lp-home-link b {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}
.lp-topbar-sep {
  color: #cfd5da;
}
.lp-title {
  text-decoration: none;
  font-family: var(--cc-serif);
  font-size: 15.5px;
  font-weight: 600;
  color: #16181a;
  white-space: nowrap;
}

.lp-topbar-mobile-nav {
  display: none;
  align-items: center;
  gap: 6px;
}
.lp-step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: #525a60;
  text-decoration: none;
}
.lp-step-btn:hover {
  background: #f3f5f6;
  color: #16181a;
}
.lp-ls-select {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e2e6e9;
  border-radius: 8px;
  background: #ffffff;
  color: #16181a;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.lp-topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lp-tool-btn,
.lp-topbar-right .cc-recall-btn {
  border: 0;
  background: transparent;
  height: 32px;
  padding: 0 2px;
  border-radius: 0;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: #646c73;
  cursor: pointer;
}
.lp-tool-btn:hover,
.lp-topbar-right .cc-recall-btn:hover {
  color: #16181a;
  background: transparent;
}
.lp-topbar-right .cc-recall-btn[aria-pressed="true"] {
  background: transparent;
  color: #1f6e5c;
  font-weight: 600;
}

.lp-main {
  width: 100%;
  padding-bottom: 96px;
}
.lp-loading {
  padding: 80px 0;
  text-align: center;
  color: #929aa1;
}

/* ---------- 2. Quantum Country 2-Column Layout (Main 760px + Quiet Right Rail 232px) ---------- */
.lp-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 32px 0;
  display: grid;
  grid-template-columns: minmax(0, 760px) 232px;
  justify-content: space-between;
  gap: 56px;
  align-items: start;
}

.lp-column {
  min-width: 0;
}

/* Lesson Hero: Opens directly with the concrete shop-floor tension (zero duplicate title with right rail) */
.lp-hero {
  margin-bottom: 24px;
}
.lp-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.lp-problem-lead {
  margin: 0;
  font-family: var(--cc-serif);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #16181a;
}
.lp-done-btn {
  flex: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #8c949b;
  cursor: pointer;
  padding: 4px 0;
}
.lp-done-btn:hover {
  color: #16181a;
}
.lp-done-btn[aria-pressed="true"] {
  color: #1f6e5c;
  font-weight: 600;
}
.lp-purpose {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: #2c3135;
}

/* ---------- 3. Sam Rose Single-Focus Interactive Micro-Canvas (#lp-visual-stage) ---------- */
.lp-visual-stage {
  margin: 0 0 44px;
  scroll-margin-top: 72px;
}
.lp-stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.lp-stage-modes {
  display: inline-flex;
  background: #f2f4f3;
  padding: 3px;
  border-radius: 10px;
  gap: 2px;
}
.lp-stage-modes button {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #646c73;
  cursor: pointer;
  transition: all 0.14s ease;
}
.lp-stage-modes button:hover {
  color: #16181a;
}
.lp-stage-modes button[aria-pressed="true"] {
  background: #ffffff;
  color: #16181a;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(22, 24, 26, 0.08);
}

.sr-prose {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.72;
  color: #464e54;
}
.sr-ent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  white-space: nowrap;
}
.sr-ent i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.lp-sr-box {
  background: #fafbfa;
  border: 1px solid #e4e8e6;
  border-radius: 14px;
  overflow: hidden;
}

/* ---- Mode A: Tactile Dispatch Slip inside Sam Rose Canvas ---- */
.lp-slip-wrap {
  padding: 24px 22px 20px;
}
.dispatch-slip {
  --slip-paper: #ffffff;
  --slip-paper-deep: #f4f6f5;
  --slip-ink: #183049;
  --slip-ink-soft: rgba(24, 48, 73, 0.68);
  --slip-orange: #c84b28;

  position: relative;
  width: 100%;
  padding: 18px 18px 14px;
  color: var(--slip-ink);
  background: var(--slip-paper);
  border: 1px solid #cdd6dc;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(24, 48, 73, 0.05);
}
.dispatch-slip__clip {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 15px;
  border-radius: 3px 3px 2px 2px;
  border: 1px solid #44515b;
  background: linear-gradient(180deg, #e0e6ea 0%, #a2aeb7 58%, #828e97 100%);
}
.dispatch-slip__clip::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: #48545d;
}
.dispatch-slip__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dde4e8;
}
.dispatch-slip__title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
}
.dispatch-slip__head-r {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dispatch-slip__shifts {
  display: inline-flex;
  background: #f2f5f7;
  padding: 2px;
  border-radius: 7px;
}
.dispatch-slip__shift-btn {
  padding: 3px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--slip-ink-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.dispatch-slip__shift-btn.is-active {
  background: #ffffff;
  color: var(--slip-ink);
  box-shadow: 0 1px 2px rgba(24, 48, 73, 0.12);
}
.dispatch-slip__serial {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--slip-ink-soft);
}

.mini-rack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.mini-bin {
  padding: 8px 6px 6px;
  border: 1px solid #e2e7e5;
  background: #fafbfa;
  border-bottom: 3px solid #b5c0bc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 4px;
}
.mini-bin.is-complete {
  background: #eef6f4;
  border-color: #b7d8ce;
  border-bottom-color: #1f6e5c;
}
.mini-part {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #354747;
}
.dispatch-slip__bracket {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
  clip-path: polygon(12% 6%, 36% 6%, 47% 50%, 88% 55%, 96% 70%, 96% 92%, 6% 92%, 6% 24%);
  background:
    radial-gradient(circle at 23% 26%, var(--slip-paper) 0 2.4px, transparent 2.8px),
    radial-gradient(circle at 23% 74%, var(--slip-paper) 0 2.6px, transparent 3px),
    radial-gradient(circle at 74% 74%, var(--slip-paper) 0 2.4px, transparent 2.8px),
    var(--slip-ink);
}
.dispatch-slip__bracket--right {
  transform: scaleX(-1);
}
.dispatch-slip__bracket--missing {
  background:
    radial-gradient(circle at 23% 26%, var(--slip-paper) 0 2.4px, transparent 2.8px),
    radial-gradient(circle at 23% 74%, var(--slip-paper) 0 2.6px, transparent 3px),
    radial-gradient(circle at 74% 74%, var(--slip-paper) 0 2.4px, transparent 2.8px),
    repeating-linear-gradient(-45deg, rgba(200, 75, 40, 0.45) 0 4px, rgba(200, 75, 40, 0.08) 4px 8px);
}

.dispatch-slip__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed #d5dde2;
}
.dispatch-slip__slots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.dispatch-slip__slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1.5px dashed #b5c0bc;
  background: #fafbfa;
  font-size: 11.5px;
}
.dispatch-slip__slot.is-filled {
  border-style: solid;
  border-color: #1f6e5c;
  background: #eef6f4;
  color: #1f6e5c;
}
.dispatch-slip__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dispatch-slip__btn {
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid #cfd8de;
  background: #ffffff;
  color: var(--slip-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.dispatch-slip__btn:hover:not(:disabled) {
  border-color: #1f6e5c;
  background: #1f6e5c;
  color: #ffffff;
}
.dispatch-slip__btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.dispatch-slip__summary {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  flex-wrap: wrap;
}
.dispatch-slip__stamp {
  padding: 2px 10px;
  font-weight: 700;
  font-size: 12px;
  border-radius: 99px;
  background: #fdf2ee;
  color: var(--slip-orange);
  white-space: nowrap;
}
.dispatch-slip__stamp.is-ok {
  background: #eef6f4;
  color: #1f6e5c;
}

.lp-slip-bar {
  padding: 14px 22px;
  border-top: 1px solid #eaeeec;
  background: #ffffff;
  font-size: 13.5px;
  line-height: 1.65;
  color: #525a60;
}

/* ---- Unified Vertical Level-2 Sub-Navigation + Canvas (.lp-sr-split) ---- */
.lp-sr-split {
  background: #fafbfa;
  border: 1px solid #e4e8e6;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 198px minmax(0, 1fr);
  align-items: stretch;
}
.lp-subnav {
  background: #ffffff;
  border-right: 1px solid #eaeeec;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lp-subnav-item {
  width: 100%;
  text-align: left;
  border: 0;
  border-left: 2.5px solid transparent;
  border-radius: 0 8px 8px 0;
  background: transparent;
  padding: 8px 10px;
  color: #525a60;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 7px;
  transition: background 0.12s ease, color 0.12s ease;
}
.lp-subnav-item:hover {
  background: #f5f7f6;
  color: #16181a;
}
.lp-subnav-item.is-active,
.lp-subnav-item[aria-pressed="true"] {
  background: #eef6f4;
  border-left-color: #1f6e5c;
  color: #154e41;
  font-weight: 600;
}
.lp-subnav-num {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: #929aa1;
  flex: none;
}
.lp-subnav-item.is-active .lp-subnav-num,
.lp-subnav-item[aria-pressed="true"] .lp-subnav-num {
  color: #1f6e5c;
}
.lp-sr-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.lp-sim-head-bar {
  padding: 16px 20px 0;
  background: #fafbfa;
}
.lp-sim-head-bar h3 {
  margin: 0 0 4px;
  font-family: var(--cc-serif);
  font-size: 17px;
  font-weight: 600;
  color: #16181a;
}
.lp-sim-head-bar p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #646c73;
}

/* Transform LP_LABS internal shell into Sam Rose vertical flow: visual stage on top, slider bar below! */
.lp-lab-shell {
  display: flex;
  flex-direction: column-reverse;
}
.lp-stage {
  padding: 16px 20px 16px;
  background: #fafbfa;
}
.lp-controls {
  padding: 16px 20px 18px;
  border-top: 1px solid #eaeeec;
  background: #ffffff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px 18px;
  align-items: end;
}
.lp-controls hr {
  display: none;
}
.lp-field {
  margin: 0;
}
.lp-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  color: #525a60;
  margin-bottom: 4px;
}
.lp-field label b {
  font-variant-numeric: tabular-nums;
  color: #16181a;
  white-space: nowrap;
}
.lp-field input[type="range"] {
  width: 100%;
  accent-color: #1f6e5c;
  cursor: pointer;
}
.lp-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.lp-kpi small {
  display: block;
  font-size: 11.5px;
  color: #7c858b;
  margin-bottom: 2px;
}
.lp-kpi strong {
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color: #16181a;
}
.lp-kpi.is-warn strong {
  color: #c84b28;
}
.lp-kpi.is-good strong {
  color: #1f6e5c;
}
.lp-svg-stage svg {
  display: block;
  width: 100%;
  height: auto;
}
.lp-insight {
  margin-top: 14px;
  padding: 2px 0 2px 14px;
  border-left: 2.5px solid #1f6e5c;
  font-size: 13.5px;
  line-height: 1.66;
  color: #525a60;
}
.lp-controls .lp-chips {
  grid-column: 1 / -1;
}
.lp-controls .lp-chip {
  border: 1px solid #dfe4e2;
  background: #fafbfa;
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 12px;
  color: #525a60;
  cursor: pointer;
}
.lp-controls .lp-chip:hover {
  border-color: #1f6e5c;
  color: #1f6e5c;
}

/* ---- Mode C: Directed Causal Ego-Graph ---- */
.lp-causal-inner {
  padding: 16px 18px 14px;
}
.lp-causal-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 12px;
}
.lp-rel-legend {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 500;
}
.lp-stage-link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: #1f6e5c;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.lp-causal-svg-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 6px 0;
}
.lp-causal-svg {
  display: block;
  width: 100%;
  min-width: 520px;
  height: auto;
}
.lp-ego-node {
  cursor: pointer;
}
.lp-causal-why-bar {
  padding: 14px 20px;
  border-top: 1px solid #eaeeec;
  background: #ffffff;
  font-size: 13.5px;
  line-height: 1.66;
  color: #363d42;
}
.lp-causal-more {
  margin-top: 10px;
}
.lp-causal-more summary {
  cursor: pointer;
  font-size: 12.5px;
  color: #7c858b;
}
.lp-causal-pool-list {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.lp-causal-pool-item {
  border: 0;
  background: transparent;
  padding: 0;
  color: #525a60;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.lp-causal-pool-item:hover,
.lp-causal-pool-item.is-focus {
  color: #1f6e5c;
  font-weight: 600;
}

/* ---------- 4. Quantum Country Flip-Card Deck (.qc-stage) ---------- */
.qc-stage {
  background: #f5f7f6;
  border-radius: 16px;
  padding: 24px 24px 22px;
  margin: 28px 0 0;
}
.qc-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.qc-stage-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #525a60;
}
.qc-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.qc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #d2d8d5;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease;
}
.qc-dot.is-mastered {
  background: #6fb29e;
}
.qc-dot.is-current {
  width: 18px;
  border-radius: 99px;
  background: #1f6e5c;
}
.qc-nav-arrows {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.qc-arrow-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #e0e5e3;
  border-radius: 8px;
  background: #ffffff;
  color: #525a60;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.qc-arrow-btn:hover:not(:disabled) {
  border-color: #1f6e5c;
  color: #1f6e5c;
}
.qc-arrow-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.qc-deck-wrap {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  padding-bottom: 12px;
}
.qc-deck-wrap::before,
.qc-deck-wrap::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 18px;
  background: #ffffff;
  border: 1px solid #e6eae8;
  border-radius: 12px;
  z-index: 1;
}
.qc-deck-wrap::after {
  left: 20px;
  right: 20px;
  bottom: 0;
  background: #fbfcfc;
  z-index: 0;
}
.qc-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border: 1px solid #e5e9e7;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(22, 24, 26, 0.06);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.qc-card.is-hidden-ans {
  cursor: pointer;
}
.qc-card.is-hidden-ans:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(22, 24, 26, 0.09);
}
.qc-card-front {
  padding: 22px 26px 20px;
}
.qc-card-kind {
  font-size: 12px;
  font-weight: 600;
  color: #1f6e5c;
  margin-bottom: 8px;
}
.heti .qc-card-q,
.qc-card-q {
  margin: 0;
  margin-block: 0;
  font-family: var(--cc-serif);
  font-size: 18.5px;
  font-weight: 600;
  line-height: 1.54;
  color: #16181a;
}
.qc-curtain {
  padding: 36px 24px;
  border-top: 1px solid #f0f2f1;
  background: linear-gradient(180deg, #fafcfb 0%, #f5f8f7 100%);
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  color: #8b9692;
  letter-spacing: 0.04em;
  user-select: none;
}
.qc-card-back {
  padding: 18px 26px 22px;
  border-top: 1px solid #eff2f1;
  background: #fcfdfd;
}
.heti .qc-card-back p,
.qc-card-back p {
  margin: 0 0 10px;
  margin-block: 0 10px;
  font-size: 15px;
  line-height: 1.76;
  color: #24292d;
}
.heti .qc-card-back p:last-child,
.qc-card-back p:last-child {
  margin-bottom: 0;
  margin-block-end: 0;
}
.qc-actions {
  max-width: 540px;
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.qc-act-btn {
  height: 38px;
  border-radius: 10px;
  border: 1px solid #dde3e1;
  background: #ffffff;
  color: #525a60;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}
.qc-act-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.qc-act-btn:hover:not(:disabled) {
  border-color: #16181a;
  color: #16181a;
}
.qc-act-btn.is-ok {
  background: #1f6e5c;
  border-color: #1f6e5c;
  color: #ffffff;
}
.qc-act-btn.is-ok:hover:not(:disabled) {
  background: #175748;
  border-color: #175748;
  color: #ffffff;
}
.qc-stage-foot {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}
.qc-flat-toggle {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  color: #7c858b;
  cursor: pointer;
}
.qc-flat-toggle:hover {
  color: #16181a;
}
.qc-flat-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.qc-flat-item {
  background: #ffffff;
  border: 1px solid #e6eae8;
  border-radius: 12px;
  padding: 16px 20px;
}
.heti .qc-flat-item h3,
.qc-flat-item h3 {
  margin: 0 0 8px;
  margin-block: 0 8px;
  font-family: var(--cc-serif);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.5;
}
.qc-flat-ans {
  border-radius: 6px;
}
.heti .qc-flat-item p,
.qc-flat-item p {
  margin: 0 0 8px;
  margin-block: 0 8px;
  font-size: 14.5px;
  line-height: 1.74;
  color: #363d42;
}
.heti .qc-flat-item p:last-child,
.qc-flat-item p:last-child {
  margin-bottom: 0;
  margin-block-end: 0;
}

/* ---------- 5. Clean Workshop Story Stream (#lp-companion-pane) ---------- */
.lp-companion-pane {
  min-width: 0;
}
.heti .lp-sec-h,
.lp-sec-h {
  margin: 0 0 14px;
  margin-block: 0 14px;
  font-family: var(--cc-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  color: #16181a;
}

.lp-block {
  scroll-margin-top: 72px;
}
.lp-block.is-story {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid #eff1f3;
}
.lp-block.is-story:first-of-type {
  border-top: 0;
  padding-top: 4px;
}
.lp-block.is-narrator {
  padding: 14px 0;
  border-top: 1px solid #eff1f3;
}
.lp-block.is-target {
  background: #eef6f4;
  border-radius: 10px;
  padding: 14px 16px;
}

.lp-portrait-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding-top: 2px;
}
.lp-portrait {
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 0 2px var(--char-color, #1f6e5c), 0 4px 12px rgba(22, 24, 26, 0.08);
  background-color: #203b35;
  background-image: url('/leanplus/portraits.jpg');
  background-size: 400% 400%;
  image-rendering: auto;
  flex: none;
}
.lp-speaker-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--char-color, #16181a);
  text-align: center;
  line-height: 1.2;
}
.lp-speaker-role {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--char-bg, #f2f4f3);
  color: var(--char-color, #525a60);
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.lp-cast-mention {
  font-weight: 600;
}

.heti .lp-block-body p,
.lp-block-body p {
  margin: 0 0 10px;
  margin-block: 0 10px;
  font-size: 15px;
  line-height: 1.76;
  color: #24292d;
}
.heti .lp-block-body p:last-of-type,
.lp-block-body p:last-of-type {
  margin-bottom: 0;
  margin-block-end: 0;
}

.lp-block.is-exp {
  position: relative;
  margin: 12px 0 18px;
  padding: 14px 16px 12px;
  background: #fafbfa;
  border: 1px solid #e6ebe9;
  border-left: 2.5px solid #1f6e5c;
  border-radius: 10px;
}
.lp-exp-tag {
  position: absolute;
  top: -8px;
  left: 12px;
  padding: 0 6px;
  background: linear-gradient(180deg, #ffffff 52%, #fafbfa 52%);
  font-size: 11px;
  font-weight: 600;
  line-height: 15px;
  letter-spacing: 0.06em;
  color: #7c858b;
  user-select: none;
}
.heti .lp-block.is-exp p,
.lp-block.is-exp p {
  margin: 0 0 7px;
  margin-block: 0 7px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #454d54;
}
.heti .lp-block.is-exp p:last-of-type,
.lp-block.is-exp p:last-of-type {
  margin-bottom: 0;
  margin-block-end: 0;
}

.lp-block-tags {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 7px;
}
.lp-block-tags button {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 12px;
  color: #1f6e5c;
  border-bottom: 1px solid #cde0da;
  cursor: pointer;
}
.lp-block-tags button:hover {
  color: #16181a;
  border-bottom-color: #16181a;
}

/* Plan B1: Module -> Lesson Concepts Unified Index */
.lp-sys-map {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #eff1f3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lp-sys-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: baseline;
  gap: 2px 12px;
  font-size: 12.5px;
  line-height: 1.6;
}
.lp-sys-node {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-self: start;
  border: 0;
  background: transparent;
  padding: 1px 0;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #24292d;
  cursor: pointer;
  white-space: nowrap;
}
.lp-sys-node:hover {
  color: #1f6e5c;
}
.lp-sys-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #1f6e5c;
  flex: none;
}
.lp-sys-arr {
  font-style: normal;
  font-size: 11px;
  color: #8c949b;
  margin-left: 1px;
}
.lp-sys-node:hover .lp-sys-arr {
  color: #1f6e5c;
}
.lp-sys-concepts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 7px;
}
.lp-c-sep {
  color: #c7cfd4;
  user-select: none;
}
.lp-text-link {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 12.5px;
  color: #1f6e5c;
  border-bottom: 1px solid #cde0da;
  cursor: pointer;
}
.lp-text-link:hover {
  color: #16181a;
  border-bottom-color: #16181a;
}

.lp-pager {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid #eff1f3;
}
.lp-pager a {
  text-decoration: none;
  color: #16181a;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lp-pager a.is-next {
  text-align: right;
  margin-left: auto;
}
.lp-pager small {
  font-size: 12px;
  color: #929aa1;
}
.lp-pager b {
  font-family: var(--cc-serif);
  font-size: 16px;
  font-weight: 600;
}
.lp-pager a:hover b {
  color: #1f6e5c;
}

/* ---------- 6. Quantum Country Right Rail (13 Lessons + Mastery Curve) ---------- */
.qc-rail {
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}
.qc-mastery-box {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #eff1f3;
}
.qc-mastery-svg {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 8px;
}
.qc-mastery-stats {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #7c858b;
  font-variant-numeric: tabular-nums;
}
.qc-mastery-stats strong {
  color: #1f6e5c;
}
.qc-outline-title {
  font-size: 12px;
  font-weight: 700;
  color: #363d42;
  margin-bottom: 8px;
}
.qc-outline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qc-outline-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  text-decoration: none;
  font-size: 12.5px;
  line-height: 1.5;
  color: #7c858b;
  padding: 2px 0;
}
.qc-outline-list a:hover {
  color: #16181a;
}
.qc-outline-list a.is-active {
  color: #1f6e5c;
  font-weight: 600;
}
.qc-outline-tick {
  font-size: 11px;
  color: #6fb29e;
  flex: none;
}
.qc-rail-links {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eff1f3;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qc-rail-links a {
  font-size: 12.5px;
  color: #646c73;
  text-decoration: none;
}
.qc-rail-links a:hover {
  color: #1f6e5c;
}

/* ---------- 7. Secondary Views (#/summary & #/books) ---------- */
.lp-subview {
  max-width: 1040px;
  margin: 0 auto;
  padding: 36px 32px 0;
}
.lp-subview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eff1f3;
}
.lp-subview-head h1 {
  margin: 6px 0 0;
  font-family: var(--cc-serif);
  font-size: 30px;
  font-weight: 600;
}
.lp-back-link {
  text-decoration: none;
  font-size: 13.5px;
  color: #1f6e5c;
}
.lp-sum-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.lp-sum-table th {
  text-align: left;
  padding: 10px 12px 10px 0;
  border-bottom: 1.5px solid #16181a;
  font-size: 12.5px;
  color: #7c858b;
}
.lp-sum-table td {
  padding: 14px 14px 14px 0;
  border-bottom: 1px solid #eff1f3;
  vertical-align: top;
  line-height: 1.65;
}
.lp-books-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 36px;
}
.lp-book-item {
  padding-top: 16px;
  border-top: 1px solid #eff1f3;
}
.lp-book-item h3 {
  margin: 6px 0 10px;
  font-family: var(--cc-serif);
  font-size: 18px;
  font-weight: 600;
}
.lp-book-item ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #525a60;
}

.lp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.lp-chip {
  display: inline-flex;
  align-items: center;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 12.5px;
  color: #1f6e5c;
  border-bottom: 1px solid #cde0da;
  text-decoration: none;
  cursor: pointer;
}
.lp-chip:hover {
  color: #16181a;
  border-bottom-color: #16181a;
}
.lp-chip.is-focus {
  font-weight: 600;
}
.lp-rel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-rel {
  padding-bottom: 10px;
  border-bottom: 1px solid #eff1f3;
}
.lp-rel-type {
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .lp-shell {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px 20px 0;
  }
  .qc-rail {
    display: none;
  }
  .lp-topbar-mobile-nav {
    display: flex;
  }
  .lp-books-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .lp-sr-split {
    grid-template-columns: 1fr;
  }
  .lp-subnav {
    border-right: 0;
    border-bottom: 1px solid #eaeeec;
  }
  .lp-topbar-in {
    padding: 8px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .lp-topbar-mobile-nav {
    order: 3;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid #eff1f3;
  }
  .lp-ls-select {
    flex: 1;
    min-width: 0;
  }
  .lp-block.is-story {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .lp-portrait-col {
    flex-direction: row;
    gap: 10px;
  }
  .mini-rack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dispatch-slip__bracket {
    width: 34px;
    height: 21px;
  }
  .lp-sum-table thead {
    display: none;
  }
  .lp-sum-table tr,
  .lp-sum-table td {
    display: block;
    width: 100%;
    padding: 6px 0;
  }
  .lp-sum-table td {
    border-bottom: 0;
  }
  .lp-sum-table tr {
    padding: 12px 0;
    border-bottom: 1px solid #eff1f3;
  }
  .lp-sys-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .lp-sys-concepts {
    padding-left: 12px;
  }
}
