/* A single reading surface. The surrounding lesson column owns its gutters. */
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content :is(.lesson-body, .panel) {
  width: 100%;
  max-width: none;
  margin-inline: 0 !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .lesson-body > * {
  width: 100%;
  max-width: none;
  margin-inline: 0 !important;
  box-sizing: border-box;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .panel + .panel {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid #e3e8ee;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content :is(h2, h3, p, summary, .vocab-title, .writing-meter) {
  overflow-wrap: anywhere;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content h2 {
  font-size: 23px;
  line-height: 1.55;
  letter-spacing: 0;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .article-paragraph {
  margin-block: 28px;
  border-radius: 0;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .article-paragraph::before {
  display: none;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .article-paragraph.st-reading {
  background: #f5f7fb;
  box-shadow: none;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .zh-text {
  max-width: none;
  font-size: 20px;
  line-height: 2.1;
  letter-spacing: 0;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .st-ruby .zh-text {
  line-height: 2.15;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .translation {
  max-width: none;
  margin-top: 12px;
  padding: 0;
  border: 0;
  color: #6b7483;
  font-size: 16px;
  line-height: 1.8;
  text-align: start;
  text-justify: auto;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .pinyin-line {
  font-size: 14px;
  line-height: 1.85;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .article-figure {
  width: 100%;
  max-width: none;
  margin-block: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .article-figure figcaption {
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* Word groups keep their controls, with separators in place of nested cards. */
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .vocabulary-intro {
  padding: 0 0 24px;
  border: 0;
  border-bottom: 1px solid #e3e8ee;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .vocabulary-journey {
  gap: 18px;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .vocabulary-journey li {
  flex: 0 1 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: start;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .vocabulary-journey li::after {
  display: none;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .vocab-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 4px 28px;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .vocab-card,
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .vocab-card:hover {
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid #e3e8ee;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .vocab-title strong {
  font-size: 28px;
  line-height: 1.4;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .vocab-card p {
  font-size: 16px;
  line-height: 1.8;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .vocab-actions {
  margin-top: 16px;
  padding-top: 0;
  border: 0;
  justify-content: flex-start;
  gap: 10px;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .vocab-grid.st-flash .vocab-card {
  padding: 0;
  min-height: 230px;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .vocab-grid.st-flash .vocab-card :is(.st-card-front, .st-card-back) {
  padding: 22px 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content :is(.st-web-core, .st-web-definition) {
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .st-web-core {
  border: 0;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .st-node {
  border-radius: 4px;
  box-shadow: none;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .st-node:is(:hover, :focus-visible) {
  transform: translate(-50%, -50%);
  box-shadow: none;
}

/* Grammar, reflection and practice are sections, rather than extra surfaces. */
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content :is(.grammar-formula, .st-formula, .english-tip, .scaffolds, .st-targets) {
  padding: 14px 0;
  border: 0;
  border-top: 1px solid #e3e8ee;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .english-tip {
  color: #6b7483;
  font-size: 16px;
  line-height: 1.85;
  text-align: start;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .st-chip {
  min-width: 0;
  max-width: 100%;
  border-radius: 4px;
  box-shadow: none;
  overflow-wrap: anywhere;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .scaffolds[open] {
  box-shadow: none;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .scaffolds > summary {
  min-height: 28px;
  cursor: pointer;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .question {
  margin: 0;
  padding: 28px 0;
  border: 0;
  border-top: 1px solid #e3e8ee;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .question h3 {
  font-size: 17px;
  line-height: 1.8;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content :is(.option, .match-item, .vocab-actions button, .st-icon-btn, textarea, .st-view, .st-view button) {
  border-radius: 4px;
  box-shadow: none;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .feedback {
  padding: 12px 16px;
  border-left: 3px solid #9bb2cf;
  border-radius: 0;
  background: transparent;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .feedback.wrong {
  border-left-color: #cc9ca6;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .st-qmap {
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #e3e8ee;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

/* Keep static positioning transforms for diagrams, but remove content motion. */
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content *,
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content *::before,
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content *::after {
  animation: none !important;
  transition: none !important;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .st-reveal {
  opacity: 1;
  translate: none;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content :is(.st-web-spoke, .st-web-chord, .st-joint path, .st-link, .match-ink) {
  stroke-dashoffset: 0;
}
html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .st-radar .area {
  transform: none;
  opacity: 1;
}

@media (max-width: 767px) {
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content h2 {
    font-size: 21px;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .zh-text {
    font-size: 18px;
    line-height: 2.15;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content :is(.translation, .english-tip) {
    font-size: 15px;
    line-height: 1.8;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .article-paragraph {
    margin-block: 24px;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .st-para-tools {
    position: static;
    justify-content: flex-end;
    margin-bottom: 8px;
    opacity: 1;
    transform: none;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .st-icon-btn {
    width: 44px;
    height: 44px;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .article-meta {
    gap: 6px;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .vocabulary-intro {
    display: block;
    margin-bottom: 24px;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .vocabulary-intro img {
    display: none;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .vocab-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .vocab-card p {
    font-size: 15px;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content :is(.notice, .inline-task-status) {
    padding-inline: 0;
    border: 0;
    border-top: 1px solid #e3e8ee;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content :is(.option, .match-item, .vocab-actions button, .scaffolds > summary, .st-view button) {
    min-height: 44px;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .options:has([data-answer-index]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .options:has([data-answer-index]) .option {
    width: 100%;
    text-align: start;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .question {
    padding-block: 24px;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .matching {
    column-gap: 30px;
    padding-inline: 0;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .match-item.left {
    font-size: 18px;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .match-item.right {
    padding: 12px 8px;
    font-size: 14px;
    line-height: 1.7;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content textarea {
    font-size: 16px;
    line-height: 1.85;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .st-qmap {
    position: static;
    flex-wrap: wrap;
    background: transparent;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .chapter-end {
    align-items: flex-start;
    gap: 12px;
  }
  html.atelier-theme body #app .shell.workspace-shell .main[class].page-lesson #lesson-content .chapter-end .btn {
    min-height: 44px;
  }
}
