.chapter-heading {padding-top:clamp(26px,5vw,52px);max-width:740px}
.chapter-heading h1 {font-size:clamp(2rem,5vw,3.25rem);letter-spacing:-.05em}
.chapter-heading p {margin-top:9px;color:var(--muted)}
.chapter-page .reader {padding-top:20px}
.chapter-page .studio-empty {min-height:clamp(280px,48svh,465px)}
#chapter-options {display:grid;grid-template-columns:auto minmax(0,24rem) minmax(0,1fr);align-items:center;gap:6px 12px;padding:10px 17px;border-bottom:1px solid var(--line);background:var(--surface)}
#chapter-options label {font-weight:650;font-size:.88rem}
#chapter-choice {width:100%;min-width:0;min-height:40px;font:inherit;color:inherit;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:6px 8px}
#chapter-status {font-size:.84rem;color:var(--muted)}
.chapter-example {display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:14px}
.chapter-example p {flex-basis:100%;font-size:.83rem;color:var(--muted)}
.chapter-practice {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:25px;margin-top:clamp(35px,7vw,72px);padding:clamp(16px,4vw,36px);background:var(--accent-soft);border-radius:20px}
.chapter-practice h2 {font-size:clamp(1.45rem,3vw,2rem);letter-spacing:-.035em}
.chapter-practice ol {padding-left:20px;margin:12px 0 0}
.chapter-practice figure {margin:0}
.chapter-practice img {display:block;width:100%;height:auto;border-radius:12px}
.chapter-practice figcaption {margin-top:6px;font-size:.82rem;color:var(--muted)}
.chapter-related {margin-top:24px}
@media(max-width:690px) {
  #chapter-options {grid-template-columns:auto minmax(0,1fr)}
  #chapter-status {grid-column:1 / -1}
  .chapter-practice {grid-template-columns:minmax(0,1fr)}
}
