:root {
  color-scheme: light;
  --le-bg: #f6f3ee;
  --le-paper: #fffdfa;
  --le-paper-2: #fffefc;
  --le-card: #ffffff;
  --le-border: #dfd9cf;
  --le-border-strong: #cfc6b7;
  --le-text: #121212;
  --le-text-soft: #39342f;
  --le-muted: #5e5750;
  --le-accent: #161616;
  --le-accent-soft: #f3efe7;
  --le-orange: #f08a00;
  --le-orange-soft: #fff0d8;
  --le-green: #ddf8e5;
  --le-blue: #dff1ff;
  --le-pink: #f9e0ec;
  --le-violet: #efe2fb;
  --le-sand: #fbefcb;
  --le-shadow: 0 8px 24px rgba(18, 18, 18, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.le-page {
  margin: 0;
  min-height: 100vh;
  color: var(--le-text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.8), transparent 35%),
    linear-gradient(180deg, #faf8f4 0%, var(--le-bg) 100%);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

a,
button,
summary {
  transition: all 0.18s ease;
}

.le-rail {
  display: none;
}

.le-rail-left {
  left: 0;
}

.le-rail-right {
  right: 0;
}

.le-rail-card {
  pointer-events: auto;
  margin: 0 0 0 auto;
  width: 296px;
  min-height: 184px;
  padding: 30px 24px 24px;
  border: 1px solid var(--le-border);
  border-radius: 18px;
  box-shadow: var(--le-shadow);
  text-align: center;
  background: var(--le-card);
}

.le-rail-right .le-rail-card {
  margin: 0 auto 0 0;
}

.le-rail-card.tone-sky {
  background: #ddf0ff;
}

.le-rail-card.tone-mint {
  background: #e4fbec;
}

.le-rail-card.tone-rose {
  background: #fae0eb;
}

.le-rail-card.tone-sand {
  background: #fff0cb;
}

.le-rail-card.tone-lavender {
  background: #f0e2fb;
}

.le-rail-card.tone-peach {
  background: #ffe5d6;
}

.le-rail-badge {
  width: 38px;
  height: 38px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(18, 18, 18, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
}

.le-rail-card h3 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", "Arial Black", sans-serif;
  font-size: 1.05rem;
  line-height: 1.1;
}

.le-rail-card p {
  margin: 0;
  color: #6f675f;
  line-height: 1.55;
  font-size: 0.92rem;
}

.le-shell {
  position: relative;
  z-index: 1;
  width: min(1520px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.le-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
}

.le-brand,
.le-nav a,
.le-button {
  min-height: 44px;
}

.le-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--le-text);
  text-decoration: none;
}

.le-brand span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #edf0ff;
  border: 1px solid var(--le-border);
  font-weight: 700;
}

.le-brand strong {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.96rem;
  font-weight: 700;
}

.le-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.le-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 13px;
  border: 1px solid transparent;
  color: var(--le-muted);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.86rem;
  text-decoration: none;
}

.le-nav a:hover {
  border-color: var(--le-border);
  background: rgba(255, 255, 255, 0.65);
  color: var(--le-text);
}

.le-main {
  display: grid;
  gap: 24px;
}

.le-study-hero,
.le-panel,
.le-card,
.le-question,
.le-module-card,
.le-study-sidebar {
  border: 1px solid var(--le-border);
  border-radius: 22px;
  background: var(--le-card);
  box-shadow: var(--le-shadow);
}

.le-visual-anchor {
  margin: 28px 0 0;
  padding: 18px;
  border: 1px solid var(--le-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 40%),
    var(--le-paper-2);
}

.le-visual-media {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--le-border);
  background: linear-gradient(180deg, #fffdf9 0%, #f3eee6 100%);
}

.le-visual-media img {
  display: block;
  width: 100%;
  height: auto;
}

.le-visual-meta {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.le-visual-kicker {
  margin: 0;
  color: #8b847a;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.le-visual-meta h3 {
  margin: 0;
  font-family: "Space Grotesk", "Arial Black", sans-serif;
  font-size: 1.16rem;
  line-height: 1.15;
}

.le-visual-body {
  margin: 0;
  color: var(--le-text-soft);
  line-height: 1.6;
}

.le-visual-caption {
  margin-top: 14px;
  color: var(--le-text-soft);
}

.le-visual-caption .le-rich-text {
  display: grid;
  gap: 10px;
}

.le-visual-caption p {
  margin: 0;
}

.le-study-hero {
  padding: 44px 32px 34px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 46%),
    var(--le-paper);
  text-align: center;
}

.le-study-hero-compact {
  padding: 28px 28px 24px;
  text-align: left;
}

.le-hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #6e747d;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 700;
}

.le-hero-brand::before {
  content: "★";
  color: #4f6ef7;
}

.le-kicker {
  margin: 0 0 10px;
  color: #8b847a;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.le-title,
.le-study-hero h1,
.le-module-reader h2,
.le-card h3,
.le-panel h2 {
  font-family: "Space Grotesk", "Arial Black", sans-serif;
}

.le-title {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.le-title span {
  color: #1a1a1a;
}

.le-title-small {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.le-subtitle,
.le-study-hero p {
  max-width: 860px;
  margin: 18px auto 0;
  color: var(--le-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.le-study-hero-compact .le-subtitle {
  margin-left: 0;
}

.le-search-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.le-search-shell {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  min-width: min(100%, 530px);
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--le-border);
  background: #ffffff;
  color: #71695f;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(18, 18, 18, 0.04);
}

.le-search-shell:hover {
  transform: translateY(-1px);
}

.le-search-icon {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 1.4rem;
  line-height: 1;
}

.le-inline-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.le-inline-nav a,
.le-view-all {
  color: #7d776e;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
  text-decoration: none;
}

.le-inline-nav a:hover,
.le-view-all:hover {
  color: #1a1a1a;
}

.le-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid var(--le-border);
  background: #ffffff;
  color: var(--le-text);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
}

.le-button.primary {
  border-color: #1b1b1b;
  background: #1b1b1b;
  color: #fff8ef;
}

.le-button.warn {
  border-color: #efc168;
  background: var(--le-orange-soft);
  color: #a45a00;
}

.le-button:hover {
  transform: translateY(-1px);
}

.le-button[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.le-disclaimer {
  margin-top: 18px;
  color: #93897e;
  font-size: 0.86rem;
}

.le-panel {
  padding: 24px;
  background: var(--le-paper-2);
}

.le-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.le-panel h1,
.le-panel h2,
.le-card h2,
.le-card h3 {
  margin: 0;
}

.le-study-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.le-study-sidebar {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 6px;
  padding: 12px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: rgba(255, 254, 251, 0.94);
}

.le-side-section {
  margin: 8px 8px 2px;
  color: #7d746a;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.le-side-section span {
  color: #b0a79c;
}

.le-side-link {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(223, 217, 207, 0.65);
  color: #4b453f;
  background: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.le-side-link.is-announced {
  align-items: flex-start;
}

.le-side-link span {
  color: #7b7268;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.73rem;
  font-weight: 700;
}

.le-side-link strong {
  flex: 1;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.35;
}

.le-side-chip {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(136, 148, 255, 0.12);
  color: #5f68d8;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.le-side-link:hover,
.le-side-link.active {
  border-color: var(--le-border-strong);
  background: #f4efe8;
  color: var(--le-text);
}

.le-study-content {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.le-module-grid,
.le-track-grid,
.le-rubric-grid,
.le-result-grid,
.le-grid,
.le-stat-grid {
  display: grid;
  gap: 18px;
}

.le-block-stack {
  display: grid;
  gap: 26px;
}

.le-block-section {
  display: grid;
  gap: 18px;
}

.le-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.le-block-title {
  font-size: 1.3rem;
  line-height: 1.1;
}

.le-block-copy {
  margin-top: 8px;
  color: #7b7267;
  font-size: 0.95rem;
}

.le-block-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(136, 148, 255, 0.12);
  color: #5f68d8;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.le-module-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.le-track-grid,
.le-rubric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.le-result-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.le-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.le-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.le-module-card,
.le-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
}

.le-module-card {
  min-height: 246px;
  background:
    linear-gradient(180deg, rgba(224, 255, 231, 0.85) 0%, rgba(255, 255, 255, 0.92) 38%);
}

.le-module-card:nth-child(3n + 2) {
  background:
    linear-gradient(180deg, rgba(223, 241, 255, 0.92) 0%, rgba(255, 255, 255, 0.94) 38%);
}

.le-module-card:nth-child(4n) {
  background:
    linear-gradient(180deg, rgba(255, 240, 216, 0.92) 0%, rgba(255, 255, 255, 0.94) 38%);
}

.le-module-card:hover,
.le-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(18, 18, 18, 0.08);
}

.le-module-card.is-announced {
  background:
    linear-gradient(180deg, rgba(236, 238, 255, 0.96) 0%, rgba(255, 255, 255, 0.96) 38%);
}

.le-module-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.le-module-rank,
.le-module-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
}

.le-module-rank {
  color: #5f5b54;
  background: rgba(255, 255, 255, 0.72);
}

.le-module-chip {
  color: #b35d00;
  background: #ffe9b4;
}

.le-module-chip.is-announced {
  color: #5f68d8;
  background: rgba(136, 148, 255, 0.14);
}

.le-module-card h3 {
  font-size: 1.55rem;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.le-module-card p,
.le-card p,
.le-track-row span,
.le-rubric-grid p,
.le-module-reader p,
.le-check-list {
  color: var(--le-text-soft);
  line-height: 1.68;
}

.le-module-metrics {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.le-module-metrics small {
  display: block;
  margin-bottom: 6px;
  color: #8f887e;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.le-module-metrics strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
}

.le-module-reader {
  padding: 28px;
}

.le-module-reader h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.le-module-reader h3 {
  margin: 28px 0 10px;
  color: #8e857a;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.le-check-list {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.le-lesson-list {
  display: grid;
  gap: 12px;
}

.le-lesson {
  border: 1px solid var(--le-border);
  border-radius: 16px;
  padding: 16px;
  background: #fffdfa;
}

.le-lesson summary {
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.le-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.le-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--le-border);
  background: #fff;
  color: #585149;
  font-size: 0.82rem;
}

.le-assessment-box,
.le-share-box,
.le-feedback,
.le-stat,
.le-terminal,
.le-question {
  border: 1px solid var(--le-border);
  border-radius: 18px;
  background: #fffdfa;
}

.le-assessment-box {
  margin-top: 28px;
  padding: 18px;
  background: var(--le-orange-soft);
  border-color: #efcf9a;
}

.le-reader-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

.le-track-row {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--le-border);
}

.le-card {
  min-height: 100%;
}

.le-progress {
  display: grid;
  gap: 8px;
}

.le-progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #efe9e0;
}

.le-progress-bar span {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #121212, #5b5b5b);
}

.le-question {
  padding: 20px;
}

.le-question h2 {
  margin: 6px 0 16px;
  font-size: clamp(1.25rem, 3vw, 1.95rem);
  line-height: 1.15;
}

.le-options {
  display: grid;
  gap: 10px;
}

.le-option {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--le-border);
  border-radius: 14px;
  background: #fff;
  color: var(--le-text);
  text-align: left;
  cursor: pointer;
}

.le-option.selected {
  background: #f3efe7;
}

.le-option.correct {
  border-color: #92caa0;
}

.le-option.incorrect {
  border-color: #df9b9b;
}

.le-textarea,
.le-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--le-border);
  border-radius: 14px;
  background: #fff;
  color: var(--le-text);
  font: inherit;
}

.le-textarea {
  min-height: 150px;
  padding: 14px;
}

.le-feedback {
  margin-top: 14px;
  padding: 16px;
}

.le-feedback.good {
  background: #eef9f0;
}

.le-feedback.bad {
  background: #fff0f0;
}

.le-feedback.partial {
  background: #fff7e9;
}

.le-stat {
  padding: 16px;
}

.le-stat span,
.le-meta,
.le-source,
.le-small {
  color: #8d857c;
  font-size: 0.82rem;
}

.le-stat strong,
.le-terminal-cell strong,
.le-score-ring strong {
  font-family: "Space Grotesk", sans-serif;
}

.le-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 1.45rem;
}

.le-terminal {
  min-height: 320px;
  padding: 18px;
}

.le-terminal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.le-terminal-cell {
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--le-border);
  border-radius: 14px;
  background: #fff;
}

.le-score-ring {
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  margin: 10px auto 18px;
  border-radius: 50%;
  border: 12px solid #ece4d9;
  border-top-color: #1a1a1a;
}

.le-score-ring strong {
  font-size: 2.8rem;
}

.le-share-box {
  padding: 16px;
  white-space: pre-wrap;
}

.le-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.le-loading {
  padding: 40px;
  text-align: center;
}

.le-module-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.le-screen-card {
  display: grid;
  gap: 18px;
}

.le-module-stack {
  display: grid;
  gap: 18px;
}

.le-screen-header h2 {
  margin: 0;
}

.le-screen-copy {
  margin: 0;
  color: var(--le-text-soft);
  line-height: 1.68;
  font-size: 1rem;
}

.le-rich-text {
  display: grid;
  gap: 14px;
}

.le-rich-text p,
.le-rich-text li {
  margin: 0;
  color: var(--le-text-soft);
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.le-rich-text ul {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.le-rich-heading {
  margin: 4px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.le-callout {
  margin: 0;
  padding: 16px 18px;
  border-left: 4px solid #f0b14d;
  border-radius: 14px;
  background: #fff7e9;
  color: #41372c;
  font-size: 1.02rem;
  line-height: 1.65;
}

.le-strong {
  color: #171717;
  font-weight: 700;
}

.le-inline-code {
  padding: 0.08em 0.4em;
  border-radius: 0.35em;
  background: #f3efe7;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92em;
  white-space: normal;
  overflow-wrap: anywhere;
}

.le-note-block {
  margin: 0;
  padding: 16px 18px;
  border-radius: 16px;
  border-left: 4px solid #f0b14d;
  background: #fff7e9;
  color: #41372c;
  line-height: 1.72;
  white-space: normal;
  overflow-wrap: anywhere;
}

.le-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--le-border), transparent);
}

.le-inline-term {
  padding: 0 0.22em;
  border-radius: 0.35em;
  background: #fff0d8;
  color: #6a4300;
  font-weight: 700;
}

.le-example-card,
.le-task-card,
.le-summary-card,
.le-misconception-box,
.le-supplement {
  border: 1px solid var(--le-border);
  border-radius: 18px;
  background: #fff;
}

.le-example-card,
.le-task-card,
.le-summary-card,
.le-misconception-box,
.le-supplement {
  padding: 18px;
}

.le-example-card strong,
.le-summary-card h3,
.le-supplement h3 {
  display: block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.le-example-card p,
.le-summary-card li,
.le-order-empty,
.le-task-prompt {
  margin: 0;
  color: #615a52;
  line-height: 1.68;
}

.le-supplement {
  background: #fffcf8;
}

.le-supplement-body {
  display: grid;
  gap: 12px;
}

.le-task-prompt {
  margin-bottom: 14px;
}

.le-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.le-order-build {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 52px;
  margin-bottom: 14px;
}

.le-order-slot {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f4efe8;
  color: #4d4842;
}

.le-order-choice[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.le-misconception-box {
  margin-bottom: 14px;
  background: #fff8ec;
}

.le-summary-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.le-principle-feedback {
  padding: 28px;
}

.le-principle-feedback h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.08;
}

.le-feedback-caption {
  margin: 0 0 18px;
  color: var(--le-muted);
  line-height: 1.7;
}

.le-feedback-form {
  display: grid;
  gap: 14px;
}

.le-intro-hero .le-subtitle {
  max-width: 560px;
}

.le-intro-content {
  gap: 18px;
}

.le-intro-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 253, 249, 0.98) 100%);
}

.le-intro-prose {
  display: grid;
  gap: 28px;
  width: 100%;
  max-width: 760px;
}

.le-intro-section {
  display: grid;
  gap: 14px;
}

.le-intro-section h3 {
  margin: 0;
  color: #171411;
  font-family: "Space Grotesk", "Arial Black", sans-serif;
  font-size: 1.28rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.le-intro-prose .le-rich-text {
  gap: 12px;
}

.le-intro-prose .le-rich-text p,
.le-intro-prose .le-rich-text li,
.le-intro-card p,
.le-intro-cta-copy {
  color: var(--le-text-soft);
  font-size: 1.06rem;
  line-height: 1.66;
}

.le-intro-callout {
  display: grid;
  gap: 12px;
  padding: 22px 24px;
  border: 1px solid #e4d7bd;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffaf0 0%, #fff6e8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.le-intro-callout-label,
.le-intro-card-label,
.le-intro-cta-label {
  margin: 0;
  color: #7b6b56;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.le-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.le-intro-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--le-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.le-learning-map {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px 0 4px;
}

.le-map-step-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.le-map-step,
.le-map-arrow {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.le-map-step {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--le-border);
  background: #fffdf9;
  color: #403a34;
  font-size: 0.84rem;
  font-weight: 700;
}

.le-map-arrow {
  color: #857b71;
  font-size: 0.95rem;
}

.le-intro-closing {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(223, 217, 207, 0.85);
}

.le-intro-cta-bar {
  position: sticky;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(207, 198, 183, 0.95);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.96);
  box-shadow: 0 12px 28px rgba(18, 18, 18, 0.08);
  backdrop-filter: blur(10px);
}

.le-intro-cta-bar .le-button {
  width: auto;
  min-width: 220px;
}


@media (max-width: 1700px) {
  .le-shell {
    width: min(1460px, calc(100% - 32px));
  }
}

@media (max-width: 1360px) {
  .le-shell {
    width: min(1120px, calc(100% - 32px));
  }

  .le-module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .le-header,
  .le-panel-head,
  .le-block-head,
  .le-module-hero-top,
  .le-reader-actions,
  .le-intro-cta-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .le-study-layout,
  .le-module-grid,
  .le-track-grid,
  .le-rubric-grid,
  .le-grid,
  .le-result-grid,
  .le-stat-grid,
  .le-comparison-grid,
  .le-audience-grid {
    grid-template-columns: 1fr;
  }

  .le-study-sidebar {
    position: static;
    max-height: none;
  }

  .le-module-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .le-side-link.is-announced {
    flex-wrap: wrap;
  }

  .le-side-chip {
    margin-left: 34px;
  }

  .le-intro-cta-bar {
    position: static;
  }
}

@media (max-width: 640px) {
  .le-shell {
    width: min(100% - 18px, 100%);
    padding-top: 18px;
  }

  .le-study-hero,
  .le-panel,
  .le-module-reader,
  .le-module-card,
  .le-card,
  .le-study-sidebar {
    border-radius: 18px;
  }

  .le-study-hero {
    padding: 30px 18px 24px;
  }

  .le-search-row,
  .le-search,
  .le-terminal-grid {
    grid-template-columns: 1fr;
  }

  .le-search-row {
    flex-direction: column;
  }

  .le-search-shell,
  .le-button {
    width: 100%;
  }

  .le-inline-nav {
    gap: 18px;
  }

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

  .le-intro-prose .le-rich-text p,
  .le-intro-prose .le-rich-text li,
  .le-intro-card p,
  .le-intro-cta-copy {
    font-size: 1rem;
  }

  .le-intro-cta-bar .le-button {
    min-width: 0;
  }
}
