body:has(.m07-module-intro),
body:has(#m07-lab-root),
.m07-page {
  --m07-bg: #ffffff;
  --m07-surface: #ffffff;
  --m07-ink: #0f172a;
  --m07-muted: #475569;
  --m07-line: #d7e0ea;
  --m07-teal: #2563eb;
  --m07-teal-dark: #2563eb;
  --m07-gold: #b8862b;
  --m07-red: #b84337;
  --m07-blue: #315f9c;
  --m07-soft: #eef3f8;
  --m07-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  background: var(--m07-bg);
  color: var(--m07-ink);
}

.m07-module-intro {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
}

.m01-kw {
  font-weight: 700;
  color: var(--m07-teal);
  border-bottom: 1px dotted var(--m07-teal);
}


.m07-lesson-header {
  border-bottom: 1px solid var(--m07-line);
  margin-bottom: 2.2rem;
  padding: 0 0 1.5rem;
}

.m07-lesson-kicker {
  margin-bottom: 0.65rem;
  color: var(--m07-teal-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.m07-lesson-header h1 {
  margin: 0;
  color: var(--m07-ink);
  font-size: clamp(2.1rem, 3.4vw, 3.4rem);
  line-height: 1.05;
}

.m07-lesson-header p {
  max-width: 900px;
  margin: 0;
  color: var(--m07-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.m07-lesson-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.m07-lesson-badges code {
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--m07-teal-dark);
  font-size: 0.82rem;
}

.m07-lesson-section {
  margin: 2.7rem 0;
}

.m07-lesson-section h2 {
  margin-bottom: 1rem;
  color: var(--m07-ink);
  font-size: 1.65rem;
  line-height: 1.2;
}

.m07-social-question-title {
  max-width: 850px;
  margin-inline: auto;
  text-align: center;
}

.m07-social-question-intro {
  max-width: 880px;
  margin: 0.75rem auto 0;
  color: var(--m07-muted);
  font-size: 1rem;
  line-height: 1.75;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.m07-idea-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.m07-idea-block {
  border-top: 3px solid var(--m07-teal);
  padding-top: 1rem;
}

.m07-idea-block h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.m07-lab-breakout {
  box-sizing: border-box;
  margin-left: 50%;
  max-width: 100vw;
  transform: translateX(-50%);
  width: min(1380px, calc(100vw - 2.5rem));
}

.m07-lab-surface {
  border: 1px solid var(--m07-line);
  border-radius: 8px;
  background: var(--m07-soft);
  box-shadow: var(--m07-shadow);
  overflow: hidden;
  padding: 1.35rem;
}

.m07-lab-layout {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  min-height: 760px;
}

.m07-lab-sidebar {
  border: 1px solid var(--m07-line);
  border-radius: 8px;
  background: var(--m07-surface);
  padding: 1rem;
}

.m07-lab-main {
  border: 1px solid var(--m07-line);
  border-radius: 8px;
  background: var(--m07-surface);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
}

.m07-control-group {
  border-bottom: 1px solid var(--m07-line);
  padding: 0 0 1rem;
  margin-bottom: 1rem;
}

.m07-control-title {
  margin: 0 0 0.55rem;
  color: var(--m07-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.m07-chip-row,
.m07-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.m07-chip,
.m07-btn {
  border: 1px solid var(--m07-line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--m07-ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.2;
  padding: 0.52rem 0.65rem;
}

.m07-chip[aria-pressed="true"],
.m07-btn.is-primary {
  border-color: var(--m07-teal);
  background: var(--m07-teal);
  color: #ffffff;
  font-weight: 700;
}

.m07-chip:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.m07-btn {
  width: 100%;
  text-align: left;
}

.m07-btn.is-danger {
  border-color: rgba(184, 67, 55, 0.35);
  color: var(--m07-red);
}

.m07-note {
  margin: 0.55rem 0 0;
  color: var(--m07-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.m07-status-banner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.m07-stat {
  border: 1px solid var(--m07-line);
  border-radius: 8px;
  background: var(--m07-soft);
  padding: 0.75rem;
}

.m07-stat-label {
  display: block;
  color: var(--m07-muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.m07-stat-value {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.m07-chart-stage {
  border: 1px solid var(--m07-line);
  border-radius: 8px;
  background: var(--m07-surface);
  min-height: 470px;
  overflow: hidden;
}

.m07-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 470px;
}

.m07-axis {
  stroke: rgba(37, 35, 49, 0.36);
  stroke-width: 1;
}

.m07-grid-line {
  stroke: rgba(37, 35, 49, 0.09);
  stroke-width: 1;
}

.m07-curve {
  fill: none;
  stroke: #2f3748;
  stroke-width: 2.5;
}

.m07-alpha-area {
  fill: rgba(184, 67, 55, 0.26);
  stroke: rgba(184, 67, 55, 0.45);
  stroke-width: 1;
  transition: opacity 160ms ease;
}

.m07-p-area {
  fill: rgba(49, 95, 156, 0.24);
  stroke: rgba(49, 95, 156, 0.35);
  stroke-width: 1;
}

.m07-critical-line {
  stroke: var(--m07-red);
  stroke-dasharray: 6 5;
  stroke-width: 2;
}

.m07-observed-line {
  stroke: var(--m07-blue);
  stroke-width: 3;
}

.m07-observed-handle {
  fill: var(--m07-blue);
  stroke: #ffffff;
  stroke-width: 2;
  cursor: ew-resize;
}

.m07-region-target {
  fill: transparent;
  pointer-events: all;
  cursor: pointer;
}

.m07-title-label {
  fill: var(--m07-ink);
  font-size: 17px;
  font-weight: 800;
}

.m07-label,
.m07-axis-label {
  fill: var(--m07-muted);
  font-size: 13px;
}

.m07-compare-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.m07-decision-card {
  border: 1px solid var(--m07-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 0.75rem;
}

.m07-decision-card strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--m07-teal-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.m07-decision-card span {
  color: var(--m07-ink);
  font-weight: 700;
}

.m07-commitment {
  border-left: 4px solid var(--m07-gold);
  background: rgba(184, 134, 43, 0.08);
  padding: 0.8rem 1rem;
  color: var(--m07-muted);
  line-height: 1.55;
}

.m07-warning {
  color: var(--m07-red);
  font-weight: 700;
}

@media (max-width: 980px) {
  .m07-idea-grid,
  .m07-lab-layout,
  .m07-status-banner,
  .m07-compare-panel {
    grid-template-columns: 1fr;
  }

  .m07-lab-sidebar {
    border-right: 1px solid var(--m07-line);
  }
}

@media (max-width: 520px) {
  .m07-module-intro {
    padding-inline: 0.75rem;
  }

  .m07-lab-breakout {
    width: calc(100vw - 1rem);
  }

  .m07-lab-sidebar,
  .m07-lab-main {
    padding: 0.75rem;
  }

  .m07-chip,
  .m07-btn {
    font-size: 0.82rem;
  }

  .m07-chart-stage,
  .m07-chart-svg {
    min-height: 520px;
  }
}

.m08-direction-axis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.25rem 0;
  border: 1px solid var(--m08-border, #d7e0ea);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
}

.m08-direction-item {
  min-width: 0;
  padding: 1.25rem 1rem;
  text-align: center;
  overflow-wrap: anywhere;
}

.m08-direction-item + .m08-direction-item {
  border-left: 1px solid var(--m08-border, #d7e0ea);
}

.m08-direction-item > :first-child {
  margin-top: 0;
}

.m08-direction-item > :last-child {
  margin-bottom: 0;
}

.m08-direction-item strong {
  display: block;
  margin-bottom: 0.65rem;
}

.m08-direction-center {
  background: #f8fafc;
}

@media (max-width: 760px) {
  .m08-direction-axis {
    grid-template-columns: 1fr;
  }

  .m08-direction-item + .m08-direction-item {
    border-left: 0;
    border-top: 1px solid var(--m08-border, #d7e0ea);
  }
}

.m08-direction-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.m08-direction-row {
  padding: 1rem 1.2rem;
  border: 1px solid var(--m08-border, #d7e0ea);
  border-radius: 14px;
  background: #ffffff;
  text-align: center;
}

.m08-direction-row--center {
  background: #f8fafc;
}

.m08-direction-row p {
  margin: 0.35rem 0;
}

.m08-direction-row strong {
  display: block;
  margin-bottom: 0.35rem;
}

.m01-module-kicker {
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--m01-accent-primary);
  font-weight: 700;
  margin: 0 0 0.65rem;
}
