/* XiaoHu Academy V5 — 成果工坊
   页面按“看见成果 → 照着做 → 拿证据验收”组织，不再以卡片和课程档案为中心。 */

:root{
  --studio-canvas:#f3f0e9;
  --studio-paper:#fbfaf6;
  --studio-ink:#24211d;
  --studio-muted:#6f685e;
  --studio-line:#d8d1c5;
  --studio-action:#e85638;
  --studio-action-hover:#cf4529;
  --studio-proof:#2f7d57;
  --studio-concept:#4457a6;
  --studio-capstone:#9a6b18;
  --studio-shadow:0 20px 60px rgba(55,43,28,.12);
  --studio-ease:cubic-bezier(.22,1,.36,1);
}
html.dark{
  --studio-canvas:#171815;
  --studio-paper:#22231f;
  --studio-ink:#f0ede5;
  --studio-muted:#aaa397;
  --studio-line:#3c3d37;
  --studio-action:#ee7255;
  --studio-action-hover:#f2866c;
  --studio-proof:#62ad83;
  --studio-concept:#8794d8;
  --studio-capstone:#d2a95d;
  --studio-shadow:0 20px 60px rgba(0,0,0,.25);
}

body{background:var(--studio-canvas);color:var(--studio-ink);font-family:"PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;font-size:16px}
.frame{max-width:1280px}
.mono{font-family:inherit;letter-spacing:normal}

/* Global navigation */
.site-head{height:68px;background:color-mix(in srgb,var(--studio-canvas) 94%,transparent);border-color:var(--studio-line);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.studio-head-in{width:min(1280px,calc(100% - 48px));height:68px;margin:auto;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:28px}
.studio-brand{justify-self:start;display:inline-flex;align-items:center;min-height:44px;font-size:16px;font-weight:850;letter-spacing:-.02em}
.studio-brand .brand-dot{width:10px;height:10px;margin-right:11px;background:var(--studio-action)}
.studio-nav{justify-self:center;display:flex;align-items:center;gap:28px;font-size:14px;color:var(--studio-muted)}
.studio-nav a{display:inline-flex;align-items:center;min-height:44px}
.studio-nav a:hover,.studio-nav a[aria-current="page"]{color:var(--studio-ink);text-decoration:none}
.studio-nav a[aria-current="page"]{font-weight:750}
.studio-head-actions{justify-self:end;display:flex;align-items:center;gap:12px}
.studio-head-actions .nav-xp{display:inline-flex;align-items:center;min-height:42px;padding:0 15px;background:var(--studio-ink);color:var(--studio-canvas);border-radius:4px;font-size:13px;font-weight:750}
.studio-head-actions .nav-xp:hover{background:var(--studio-action);color:#fff}
.theme-btn{width:42px;height:42px;flex-basis:42px;background:transparent;border-color:var(--studio-line)}
.theme-btn::after{background:linear-gradient(90deg,var(--studio-ink) 50%,transparent 50%);border-color:var(--studio-ink)}

.studio-primary,.reader-start{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 21px;border-radius:4px;background:var(--studio-action);color:#fff;font-weight:800;line-height:1.25;transition:background .18s var(--studio-ease),transform .18s var(--studio-ease)}
.studio-primary:hover,.reader-start:hover{background:var(--studio-action-hover);color:#fff;transform:translateY(-1px)}
.studio-text-link{display:inline-flex;align-items:center;min-height:44px;color:var(--studio-ink);font-size:14px;text-decoration:underline;text-decoration-color:var(--studio-line);text-underline-offset:5px}
.studio-text-link:hover{color:var(--studio-action);text-decoration-color:currentColor}
.studio-kicker{margin:0 0 18px;color:var(--studio-action);font-size:13px;font-weight:800;letter-spacing:.08em}

/* Home */
.studio-home{overflow:hidden}
.studio-home-hero{width:min(1280px,calc(100% - 48px));min-height:710px;margin:auto;padding:76px 0 70px;display:grid;grid-template-columns:minmax(0,1.02fr) minmax(420px,.88fr);gap:clamp(48px,8vw,118px);align-items:center}
.studio-home-copy{max-width:660px}
.studio-home-copy h1{margin:0;font-size:clamp(3.1rem,5.35vw,4.8rem);line-height:1.05;letter-spacing:-.055em;text-wrap:balance}
.studio-home-lead{max-width:35em;margin:30px 0 0;color:var(--studio-muted);font-size:18px;line-height:1.85}
.studio-home-actions{display:flex;align-items:center;gap:20px;margin-top:34px}
.studio-home-assurance{display:flex;gap:22px;flex-wrap:wrap;list-style:none;margin:26px 0 0;padding:0;color:var(--studio-muted);font-size:13px}
.studio-home-assurance li{display:flex;align-items:center;gap:7px}
.studio-home-assurance li::before{content:"✓";color:var(--studio-proof);font-weight:900}
.studio-artifact-stack{position:relative;min-height:500px}
.studio-artifact-sheet{position:absolute;width:min(470px,92%);padding:24px 26px 28px;background:var(--studio-paper);border:1px solid var(--studio-line);box-shadow:var(--studio-shadow);transition:transform .28s var(--studio-ease)}
.studio-artifact-sheet>div{display:flex;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid var(--studio-line);font-size:12px;color:var(--studio-muted)}
.studio-artifact-sheet>div b{color:var(--studio-proof);font-weight:750}
.studio-artifact-sheet h2{margin:26px 0 18px;font-size:24px;letter-spacing:-.02em}
.studio-artifact-sheet p{margin:0;color:var(--studio-muted);font-size:14px;line-height:1.7}
.studio-artifact-sheet ul{list-style:none;margin:0;padding:0;display:grid;gap:11px;font-size:14px}
.studio-artifact-sheet li{display:flex;gap:9px;align-items:center}
.studio-artifact-sheet li::before{content:"✓";display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:color-mix(in srgb,var(--studio-proof) 13%,transparent);color:var(--studio-proof);font-weight:900}
.sheet-a{z-index:3;top:65px;left:2%;transform:rotate(-1.5deg)}
.sheet-b{z-index:2;top:12px;right:-4%;transform:rotate(3deg)}
.sheet-c{z-index:1;bottom:12px;right:2%;transform:rotate(-2deg)}
.studio-artifact-stack:hover .sheet-a{transform:rotate(-1deg) translateY(-6px)}
.studio-artifact-stack:hover .sheet-b{transform:rotate(2deg) translate(8px,-5px)}
.studio-artifact-stack:hover .sheet-c{transform:rotate(-1deg) translate(5px,7px)}

.studio-live-proof{border-block:1px solid var(--studio-line);display:grid;grid-template-columns:repeat(3,1fr) auto;background:var(--studio-paper)}
.studio-live-proof>*{padding:26px 30px;border-left:1px solid var(--studio-line)}
.studio-live-proof>*:first-child{border-left:0}
.studio-live-proof p{margin:0;display:grid;gap:5px}
.studio-live-proof strong{font-size:18px;color:var(--studio-proof)}
.studio-live-proof span{font-size:13px;color:var(--studio-muted)}
.studio-live-proof a{display:flex;align-items:center;justify-content:center;color:var(--studio-action);font-size:13px;font-weight:750}

.studio-section{width:min(1120px,calc(100% - 48px));margin:0 auto;padding:110px 0}
.studio-section-head{display:grid;grid-template-columns:160px minmax(0,640px);gap:8px 50px;margin-bottom:48px}
.studio-section-head>p{grid-row:1/3;margin:5px 0 0;color:var(--studio-action);font-size:13px;font-weight:800}
.studio-section-head h2{margin:0;font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.16;letter-spacing:-.04em;text-wrap:balance}
.studio-section-head>span{grid-column:2;color:var(--studio-muted);font-size:16px;line-height:1.75}
.studio-route-list{border-top:1px solid var(--studio-ink)}
.studio-route{display:grid;grid-template-columns:72px minmax(0,1.15fr) minmax(270px,.9fr) auto;gap:24px;align-items:center;min-height:168px;padding:28px 0;border-bottom:1px solid var(--studio-line);transition:padding .2s var(--studio-ease),background .2s var(--studio-ease)}
.studio-route:hover{padding-inline:18px;background:var(--studio-paper)}
.studio-route-no{font-size:26px;color:var(--studio-action);font-variant-numeric:tabular-nums}
.studio-route-copy{display:grid;gap:8px}
.studio-route-copy small{color:var(--studio-muted);font-size:12px}
.studio-route-copy strong{font-size:19px;line-height:1.45}
.studio-route-copy em{font-size:12px;color:var(--studio-muted);font-style:normal}
.studio-route-artifact{display:grid;gap:8px;padding-left:22px;border-left:2px solid var(--studio-proof)}
.studio-route-artifact i{font-size:12px;color:var(--studio-proof);font-style:normal}
.studio-route-artifact b{font-size:14px;line-height:1.55;font-weight:600}
.studio-route-go{font-size:13px;color:var(--studio-action);font-weight:750;white-space:nowrap}

.studio-method{padding:90px max(24px,calc((100vw - 1120px)/2));display:grid;grid-template-columns:300px 1fr;gap:70px;background:var(--studio-ink);color:var(--studio-canvas)}
.studio-method-title p{margin:0 0 12px;color:color-mix(in srgb,var(--studio-action) 85%,white);font-size:13px;font-weight:800}
.studio-method-title h2{margin:0;font-size:32px;line-height:1.3;letter-spacing:-.03em}
.studio-method ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr)}
.studio-method li{padding:0 26px;border-left:1px solid color-mix(in srgb,var(--studio-canvas) 20%,transparent)}
.studio-method li:first-child{padding-left:0;border-left:0}
.studio-method li>span{color:color-mix(in srgb,var(--studio-action) 85%,white);font-size:13px}
.studio-method li strong{display:block;margin:20px 0 12px;font-size:19px;color:var(--studio-canvas)}
.studio-method li p{margin:0;color:color-mix(in srgb,var(--studio-canvas) 68%,transparent);font-size:14px;line-height:1.75}

.studio-scenarios{padding-bottom:80px}
.studio-scenario-list{border-top:1px solid var(--studio-ink);margin-bottom:24px}
.studio-scenario-row{display:grid;grid-template-columns:58px minmax(0,1fr) 90px 180px 88px;gap:18px;align-items:center;min-height:72px;border-bottom:1px solid var(--studio-line);font-size:13px}
.studio-scenario-row>span{color:var(--studio-action);font-variant-numeric:tabular-nums}
.studio-scenario-row>strong{font-size:16px}
.studio-scenario-row>em,.studio-scenario-row>i{color:var(--studio-muted);font-style:normal}
.studio-scenario-row>b{color:var(--studio-action);font-size:12px;text-align:right}
.studio-scenario-row:hover>strong{color:var(--studio-action)}

.studio-queue-compact{width:min(1120px,calc(100% - 48px));margin:0 auto 100px;padding:48px 0;border-top:1px solid var(--studio-line);display:grid;grid-template-columns:1fr 1fr;gap:70px}
.studio-queue-compact p{margin:0 0 10px;color:var(--studio-action);font-size:13px;font-weight:800}
.studio-queue-compact h2{margin:0;font-size:25px;line-height:1.45}
.studio-queue-compact summary{min-height:48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--studio-ink);cursor:pointer;font-weight:750}
.studio-queue-compact summary::after{content:"＋"}
.studio-queue-compact details[open] summary::after{content:"－"}
.studio-queue-compact details>div{display:grid}
.studio-queue-compact details a{display:grid;grid-template-columns:44px 1fr auto;gap:12px;padding:13px 0;border-bottom:1px solid var(--studio-line);font-size:13px}
.studio-queue-compact details a span{color:var(--studio-muted)}
.studio-queue-compact details a small{color:var(--studio-capstone)}

/* Course overview */
body.course-overview #main{min-height:75vh}
.studio-course{width:min(1120px,calc(100% - 48px));margin:auto;padding:34px 0 100px}
.studio-crumb{display:flex;gap:8px;align-items:center;min-height:44px;color:var(--studio-muted);font-size:13px}
.studio-crumb a:hover{color:var(--studio-action)}
.studio-course-hero{padding:54px 0 64px;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr);gap:clamp(50px,8vw,110px);align-items:start}
.studio-course-intro h1{margin:0;font-size:clamp(2.6rem,5vw,4.65rem);line-height:1.04;letter-spacing:-.055em;text-wrap:balance}
.studio-course-intro>p:not(.studio-kicker){max-width:42em;margin:28px 0 0;color:var(--studio-muted);font-size:18px;line-height:1.8}
.studio-course-actions{display:flex;align-items:center;gap:20px;margin-top:32px}
.studio-course-meta{display:flex;gap:8px 18px;flex-wrap:wrap;margin-top:28px;color:var(--studio-muted);font-size:12px}
.studio-course-meta span+span::before{content:"·";margin-right:18px;color:var(--studio-line)}
.studio-course-result{margin-top:18px;padding:28px 30px;background:var(--studio-paper);border:1px solid var(--studio-line);box-shadow:var(--studio-shadow);transform:rotate(.5deg)}
.studio-course-result>p{margin:0 0 20px;color:var(--studio-muted);font-size:12px}
.studio-course-result ol{margin:0;padding:0;list-style:none;counter-reset:outcome;display:grid;gap:14px}
.studio-course-result li{counter-increment:outcome;display:grid;grid-template-columns:22px 1fr;gap:10px;font-size:14px;line-height:1.55}
.studio-course-result li::before{content:counter(outcome);display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:color-mix(in srgb,var(--studio-proof) 13%,transparent);color:var(--studio-proof);font-size:11px;font-weight:800}
.studio-course-result>div{margin-top:24px;padding-top:18px;border-top:1px solid var(--studio-line)}
.studio-course-result>div span{display:block;color:var(--studio-muted);font-size:11px}
.studio-course-result>div strong{display:block;margin-top:5px;font-size:14px;line-height:1.55}

.studio-course-progress.progress-card{margin:0 0 70px;padding:19px 22px;border:1px solid var(--studio-line);border-radius:0;background:transparent;box-shadow:none;display:grid;grid-template-columns:auto auto 1fr auto;gap:16px;align-items:center}
.studio-course-progress .progress-txt{display:grid;gap:3px}
.studio-course-progress .progress-txt b{font-size:14px}
.studio-course-progress .progress-txt span{font-size:12px;color:var(--studio-muted)}
.studio-course-progress>p{margin:0;color:var(--studio-muted);font-size:12px}
.studio-progress-link{color:var(--studio-action);font-size:13px;font-weight:750}
.studio-rebuild-notice{margin:-32px 0 60px;padding:22px 0;border-block:1px solid var(--studio-capstone)}
.studio-rebuild-notice strong{color:var(--studio-capstone)}
.studio-rebuild-notice p{margin:8px 0 0;color:var(--studio-muted);font-size:14px}

.studio-course-projects{display:grid;gap:0}
.studio-project{display:grid;grid-template-columns:300px minmax(0,1fr);gap:64px;padding:64px 0;border-top:1px solid var(--studio-line)}
.studio-project:first-child{border-top-color:var(--studio-ink)}
.studio-project-head{display:grid;grid-template-columns:46px 1fr;gap:18px;align-items:start}
.studio-project-head>span{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--studio-ink);border-radius:50%;font-size:13px;font-weight:800}
.studio-project-prep .studio-project-head>span{background:var(--studio-ink);color:var(--studio-canvas)}
.studio-project-head p{margin:0 0 8px;color:var(--studio-action);font-size:11px;font-weight:800}
.studio-project-head h2{margin:0;font-size:22px;line-height:1.4;letter-spacing:-.02em}
.studio-project-head em{display:block;margin-top:12px;color:var(--studio-muted);font-size:13px;line-height:1.65;font-style:normal}
.studio-project-lessons{border-top:1px solid var(--studio-ink)}
.studio-lesson-row.l-row{display:grid;grid-template-columns:20px 42px minmax(0,1fr) auto auto;gap:14px;align-items:center;min-height:76px;padding:14px 0;border:0;border-bottom:1px solid var(--studio-line);border-radius:0;background:transparent;font-size:inherit}
.studio-lesson-row.l-row:hover{background:transparent}
.studio-lesson-row:hover .studio-row-title strong{color:var(--studio-action)}
.studio-row-index{color:var(--studio-muted);font-size:12px;font-variant-numeric:tabular-nums}
.studio-row-title{display:grid;gap:5px}
.studio-row-title strong{font-size:15px;line-height:1.5;transition:color .16s ease}
.studio-row-title small{color:var(--studio-muted);font-size:11px}
.studio-row-free{padding:2px 7px;border:1px solid var(--studio-proof);color:var(--studio-proof);font-size:10px}
.studio-row-state{color:var(--studio-action);font-size:12px;white-space:nowrap}
.studio-project-output{margin-top:24px;padding-left:18px;border-left:3px solid var(--studio-proof);display:grid;gap:6px}
.studio-project-output span{color:var(--studio-muted);font-size:11px}
.studio-project-output strong{font-size:14px;line-height:1.55}
.studio-course-notes{margin-top:70px;border-top:1px solid var(--studio-ink)}
.studio-course-notes details{border-bottom:1px solid var(--studio-line)}
.studio-course-notes summary{display:flex;align-items:center;justify-content:space-between;min-height:60px;cursor:pointer;font-size:15px;font-weight:750}
.studio-course-notes summary::after{content:"＋";color:var(--studio-muted)}
.studio-course-notes details[open] summary::after{content:"－"}
.studio-course-notes details>p,.studio-course-notes details>ul{max-width:68ch;margin:0;padding:0 0 24px;color:var(--studio-muted);font-size:14px;line-height:1.8}
.studio-course-notes details>ul{padding-left:20px}

/* Lesson: Artifact Workshop */
body.lesson-page{background:var(--studio-canvas)}
body.lesson-page #main{min-height:75vh}
.workshop-reader{max-width:none;margin:0;padding:0}
.workshop-toolbar{width:min(1280px,calc(100% - 48px));min-height:56px;margin:auto;border-color:var(--studio-line);display:grid;grid-template-columns:1fr auto 1fr;gap:20px}
.workshop-toolbar .reader-back{justify-self:start;color:var(--studio-muted)}
.workshop-position{justify-self:center;color:var(--studio-muted);font-size:12px}
.workshop-toolbar .reader-outline{justify-self:end}
.reader-outline>summary{border-radius:3px;color:var(--studio-ink)}
.reader-outline[open]>summary{background:var(--studio-paper)}
.reader-outline-panel{background:var(--studio-paper);border-color:var(--studio-line);box-shadow:var(--studio-shadow)}

.workshop-hero{width:min(1160px,calc(100% - 48px));margin:auto;padding:62px 0 56px;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.78fr);gap:clamp(54px,8vw,110px);align-items:center}
.workshop-lesson-id{display:flex;align-items:center;gap:12px;margin-bottom:20px;font-size:12px;color:var(--studio-muted)}
.workshop-lesson-id span{padding:6px 9px;background:var(--studio-ink);color:var(--studio-canvas);border-radius:3px;font-weight:750}
.workshop-lesson-id em{font-style:normal}
.workshop-lesson-id b{color:var(--studio-proof);font-size:11px}
.reader-problem-label{margin:0;color:var(--lesson-accent,var(--studio-action));font-size:13px;font-weight:800;letter-spacing:.05em}
.workshop-brief h1{max-width:800px;margin:16px 0 0;font-size:clamp(2.7rem,5vw,4.45rem);line-height:1.06;letter-spacing:-.055em;text-wrap:balance}
.workshop-lead{max-width:42em;margin:25px 0 0;color:var(--studio-muted);font-size:17px;line-height:1.8}
.workshop-lead strong{color:var(--studio-ink)}
.workshop-delivery{margin-top:28px;padding:17px 0;border-block:1px solid var(--studio-line);display:grid;grid-template-columns:145px 1fr;gap:16px;align-items:start}
.workshop-delivery span{color:var(--studio-muted);font-size:12px}
.workshop-delivery strong{font-size:15px;line-height:1.55}
.workshop-hero-actions{display:flex;align-items:center;gap:18px;margin-top:28px}
.workshop-hero-actions small{color:var(--studio-muted);font-size:12px}
.workshop-artifact{position:relative;padding:10px 8px 10px 0}
.workshop-artifact::before{content:"交付预览";position:absolute;z-index:2;right:-6px;top:-5px;padding:7px 11px;background:var(--studio-proof);color:#fff;border-radius:2px;font-size:11px;font-weight:750;transform:rotate(2deg)}
.workshop-artifact-paper{padding:22px 24px 26px;background:var(--studio-paper);border:1px solid var(--studio-line);box-shadow:var(--studio-shadow);transform:rotate(-1deg)}
.workshop-artifact-paper>div{display:flex;justify-content:space-between;gap:10px;padding-bottom:12px;border-bottom:1px solid var(--studio-line);font-size:11px;color:var(--studio-muted)}
.workshop-artifact-paper>div b{color:var(--studio-proof)}
.workshop-artifact-paper h2{margin:24px 0;font-size:20px;line-height:1.45;letter-spacing:-.02em}
.workshop-artifact-paper ul{list-style:none;margin:0;padding:0;display:grid;gap:11px;font-size:13px}
.workshop-artifact-paper li{display:flex;gap:9px;align-items:center}
.workshop-artifact-paper li::before{content:"✓";display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:color-mix(in srgb,var(--studio-proof) 13%,transparent);color:var(--studio-proof);font-weight:900}
.reader-template-concept{--lesson-accent:var(--studio-concept)}
.reader-template-operation{--lesson-accent:var(--studio-action)}
.reader-template-capstone{--lesson-accent:var(--studio-capstone)}

.workshop-route{border-block:1px solid var(--studio-line);background:var(--studio-paper);display:grid;grid-template-columns:repeat(4,1fr);padding-inline:max(24px,calc((100vw - 1160px)/2))}
.workshop-route-item{display:grid;grid-template-columns:32px 1fr;gap:12px;align-items:start;min-height:96px;padding:23px 22px;border-left:1px solid var(--studio-line)}
.workshop-route-item:first-child{border-left:0;padding-left:0}
.workshop-route-item b{display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--studio-line);border-radius:50%;font-size:11px}
.workshop-route-item span{display:grid;gap:5px}
.workshop-route-item strong{font-size:13px;line-height:1.45}
.workshop-route-item small{color:var(--studio-muted);font-size:11px}
.workshop-route-item.is-current b{background:var(--lesson-accent);border-color:var(--lesson-accent);color:#fff}
.workshop-route-item.is-current strong{color:var(--lesson-accent)}

.workshop-content{width:min(1040px,calc(100% - 48px));margin:0 auto;padding:78px 0 110px;display:grid;grid-template-columns:210px minmax(0,760px);gap:70px;align-items:start}
.workshop-guide{position:sticky;top:98px;padding-top:8px;border-top:3px solid var(--lesson-accent)}
.workshop-guide>p{margin:0 0 8px;color:var(--studio-muted);font-size:11px}
.workshop-guide>strong{display:block;font-size:14px;line-height:1.55}
.workshop-guide .side-progress{margin:18px 0}
.workshop-guide-output{display:grid;gap:5px;margin:0 0 14px;padding:13px 0;border-block:1px solid var(--studio-line)}
.workshop-guide-output span{color:var(--studio-muted);font-size:10px}
.workshop-guide-output b{font-size:12px;line-height:1.55;font-weight:700}
.workshop-guide>a{display:inline-flex;min-height:44px;align-items:center;color:var(--lesson-accent);font-size:12px;font-weight:750}
.workshop-guide .reader-help{margin-top:16px;padding-top:14px;border-top:1px solid var(--studio-line)}
.workshop-guide .reader-help summary{min-height:40px;display:flex;align-items:center;font-size:12px}
.workshop-guide .reader-help p{font-size:12px;line-height:1.7;color:var(--studio-muted)}
.workshop-guide>small{display:block;margin-top:18px;color:var(--studio-muted);font-size:10px;line-height:1.6}
.workshop-content>.reader-article{min-width:0;grid-area:auto;grid-column:auto;max-width:none;padding-top:0}

/* Lesson content language: prose is plain; only actions, software and evidence get surfaces. */
.reader-article .lesson-body{max-width:68ch;margin:0;padding:0;color:var(--studio-ink);font-size:16px;line-height:1.85}
.reader-article .lesson-body>p{margin:0 0 24px;color:var(--studio-muted)}
.reader-article .lesson-body h2{margin:82px 0 22px;font-size:clamp(1.7rem,3vw,2.35rem);line-height:1.34;letter-spacing:-.035em;text-wrap:balance}
.reader-article .lesson-body h2:first-child{margin-top:0}
.reader-article .lesson-body h3{margin:46px 0 16px;font-size:21px;line-height:1.45;letter-spacing:-.02em}
.reader-article .lesson-body h4{margin:34px 0 12px;font-size:17px}
.reader-article .lesson-body .hn{display:inline-flex;min-width:34px;margin-right:12px;color:var(--lesson-accent);font-size:.55em;vertical-align:.35em;font-variant-numeric:tabular-nums}
.reader-article .lesson-body a{color:var(--lesson-accent);text-decoration-color:color-mix(in srgb,var(--lesson-accent) 38%,transparent);text-underline-offset:4px}
.reader-article .lesson-body ul,.reader-article .lesson-body ol{padding-left:1.35em;margin:0 0 26px}
.reader-article .lesson-body li{margin:8px 0}
.reader-article .lesson-body code{font-family:SFMono-Regular,"Cascadia Code","JetBrains Mono",monospace;font-size:.88em}
.reader-article .problem-lead,.reader-article .c02-lead{margin:0 0 54px;padding:0 0 28px;border:0;border-bottom:1px solid var(--studio-line);background:transparent;border-radius:0;box-shadow:none}
.reader-article .problem-lead h2,.reader-article .c02-lead h2{margin:9px 0 14px;font-size:28px}
.reader-article .problem-kicker{color:var(--lesson-accent)!important;font-size:12px!important;font-weight:800}
.reader-article .problem-lead p:last-child{margin-bottom:0}
.reader-article .outcome{margin:36px 0;padding:24px 0;border:0;border-block:1px solid var(--studio-proof);border-radius:0;background:transparent;box-shadow:none}
.reader-article .outcome .o-tag{color:var(--studio-proof);font-size:11px;font-weight:800}
.reader-article .outcome .o-txt{font-size:17px;line-height:1.7}
.reader-article .follow{margin:34px 0 46px;border:1px solid var(--studio-line);border-radius:4px;background:var(--studio-paper);box-shadow:none;overflow:hidden}
.reader-article .follow .f-head{padding:17px 18px;border-bottom:1px solid var(--studio-line);background:transparent}
.reader-article .f-step{min-height:58px;padding:12px 18px;border-color:var(--studio-line);font-size:14px;line-height:1.55}
.reader-article .f-step:hover{background:color-mix(in srgb,var(--lesson-accent) 4%,transparent)}
.reader-article .quiz{margin:36px 0;padding:24px;border:1px solid var(--studio-line);border-radius:4px;background:var(--studio-paper);box-shadow:none}
.reader-article .quiz .opt{min-height:48px;border-radius:3px}
.reader-article .term,.reader-article .cmd{margin:34px 0;border-radius:5px;box-shadow:0 16px 34px rgba(0,0,0,.16)}
.reader-article .fig{margin:40px 0;border:0;border-block:1px solid var(--studio-line);border-radius:0;background:transparent;padding:28px 0;box-shadow:none}
.reader-article .xh-note{margin:36px 0;padding:20px 0 20px 22px;border:0;border-left:3px solid var(--lesson-accent);border-radius:0;background:transparent}
.reader-article .try-it{margin:40px 0;padding:24px;border:1px dashed var(--lesson-accent);border-radius:4px;background:transparent}
.reader-article .compare{margin:36px 0;border-radius:0;box-shadow:none}
.lesson-sources{margin-top:80px;border-block:1px solid var(--studio-line)}
.lesson-sources summary{min-height:54px;color:var(--studio-muted);font-size:12px}
.lesson-sources .source-strip{border:0;border-top:1px solid var(--studio-line);border-radius:0;background:transparent}

.workshop-finish{margin-top:90px;padding:38px 0;border-block:1px solid var(--studio-proof)}
.workshop-finish>p{margin:0 0 10px;color:var(--studio-proof);font-size:12px;font-weight:800}
.workshop-finish h2{margin:0 0 18px;font-size:28px;line-height:1.4;letter-spacing:-.03em}
.workshop-finish>strong{display:block;margin-bottom:24px;font-size:15px;line-height:1.6}
.workshop-finish .btn-done{min-height:50px;padding:0 22px;border:0;border-radius:4px;background:var(--studio-proof);color:#fff;font-weight:800}
.workshop-finish .btn-done.is-done{background:color-mix(in srgb,var(--studio-proof) 18%,transparent);color:var(--studio-proof)}
.studio-lesson-pn{display:grid;grid-template-columns:1fr 1fr;gap:40px;padding-top:48px}
.studio-lesson-pn a{display:grid;gap:6px;min-height:70px;padding-top:14px;border-top:1px solid var(--studio-line)}
.studio-lesson-pn a span{color:var(--studio-muted);font-size:11px}
.studio-lesson-pn a strong{font-size:14px;line-height:1.5}
.studio-pn-next{text-align:right}

/* Existing secondary pages inherit a calmer scale. */
.course-hero h1,.qp-head h1,.about-page h1{letter-spacing:-.04em}
.side-card,.c-card,.s-card,.m-card,.mf-item{box-shadow:none}

@media (max-width:960px){
  .studio-head-in{width:calc(100% - 32px);grid-template-columns:1fr auto;gap:12px}
  .studio-nav{display:none}
  .studio-head-actions .nav-xp{display:none}
  .studio-home-hero{width:calc(100% - 40px);grid-template-columns:1fr;min-height:0;padding:58px 0 38px;gap:46px}
  .studio-home-copy h1{font-size:clamp(2.8rem,9vw,4.6rem)}
  .studio-artifact-stack{min-height:450px;max-width:620px;width:100%;margin:auto}
  .studio-live-proof{grid-template-columns:repeat(3,1fr)}
  .studio-live-proof a{grid-column:1/-1;border-top:1px solid var(--studio-line);border-left:0;min-height:60px}
  .studio-section-head{grid-template-columns:120px 1fr;gap:8px 30px}
  .studio-route{grid-template-columns:52px 1fr auto}
  .studio-route-artifact{grid-column:2/3;margin-top:6px}
  .studio-route-go{grid-column:3;grid-row:1/3}
  .studio-method{grid-template-columns:1fr;gap:42px}
  .studio-scenario-row{grid-template-columns:48px minmax(0,1fr) 80px 70px}
  .studio-scenario-row>i{display:none}
  .studio-course-hero{grid-template-columns:1fr;gap:44px}
  .studio-course-result{max-width:620px;margin-top:0}
  .studio-project{grid-template-columns:250px minmax(0,1fr);gap:40px}
  .workshop-hero{grid-template-columns:1fr;gap:46px}
  .workshop-artifact{max-width:620px}
  .workshop-content{grid-template-columns:180px minmax(0,1fr);gap:44px}
}

@media (max-width:700px){
  .site-head{height:58px}
  .studio-head-in{height:58px;width:calc(100% - 28px)}
  .studio-brand{font-size:15px}
  .theme-btn{width:40px;height:40px;flex-basis:40px}
  .site-foot{margin-top:60px}
  .studio-home-hero{width:calc(100% - 36px);padding:38px 0 26px;gap:36px}
  .studio-kicker{font-size:12px;margin-bottom:12px}
  .studio-home-copy h1{font-size:clamp(2.45rem,12vw,3.35rem);line-height:1.08}
  .studio-home-lead{margin-top:22px;font-size:16px;line-height:1.8}
  .studio-home-actions{display:grid;gap:7px;margin-top:26px}
  .studio-primary{width:fit-content;min-height:48px}
  .studio-home-assurance{gap:8px 16px;margin-top:18px;font-size:12px}
  .studio-artifact-stack{min-height:350px}
  .studio-artifact-sheet{width:94%;padding:18px 19px 22px}
  .studio-artifact-sheet h2{margin:18px 0 13px;font-size:20px}
  .sheet-a{top:30px;left:0}.sheet-b{top:0;right:-6%}.sheet-c{bottom:0;right:0}
  .studio-live-proof{grid-template-columns:1fr;background:transparent}
  .studio-live-proof>*{padding:18px;border-left:0;border-top:1px solid var(--studio-line)}
  .studio-live-proof>*:first-child{border-top:0}
  .studio-section{width:calc(100% - 36px);padding:74px 0}
  .studio-section-head{display:block;margin-bottom:34px}
  .studio-section-head>p{margin:0 0 10px}
  .studio-section-head h2{font-size:2.25rem}
  .studio-section-head>span{display:block;margin-top:14px;font-size:15px}
  .studio-route{grid-template-columns:38px 1fr;gap:14px;min-height:0;padding:26px 0}
  .studio-route:hover{padding-inline:0;background:transparent}
  .studio-route-no{font-size:18px}
  .studio-route-artifact{grid-column:2;margin:8px 0 0;padding-left:15px}
  .studio-route-go{grid-column:2;grid-row:auto;margin-top:8px}
  .studio-method{padding:66px 20px}
  .studio-method ol{grid-template-columns:1fr}
  .studio-method li{padding:24px 0;border-left:0;border-top:1px solid color-mix(in srgb,var(--studio-canvas) 20%,transparent)}
  .studio-method li:first-child{border-top:0;padding-top:0}
  .studio-method li strong{margin:10px 0 8px}
  .studio-scenario-row{grid-template-columns:36px minmax(0,1fr) 70px;gap:8px;min-height:68px}
  .studio-scenario-row>i,.studio-scenario-row>b{display:none}
  .studio-scenario-row>strong{font-size:14px}
  .studio-queue-compact{width:calc(100% - 36px);grid-template-columns:1fr;gap:30px;margin-bottom:70px}
  .studio-course{width:calc(100% - 36px);padding-top:18px}
  .studio-course-hero{padding:32px 0 40px}
  .studio-course-intro h1{font-size:2.75rem}
  .studio-course-intro>p:not(.studio-kicker){font-size:16px}
  .studio-course-actions{display:grid;gap:6px}
  .studio-course-meta{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}
  .studio-course-meta span+span::before{display:none}
  .studio-course-result{padding:22px 20px;transform:none}
  .studio-course-progress.progress-card{grid-template-columns:auto 1fr auto;margin-bottom:48px;padding:16px 0;border-inline:0}
  .studio-course-progress>p{display:none}
  .studio-project{grid-template-columns:1fr;gap:26px;padding:46px 0}
  .studio-project-head{grid-template-columns:40px 1fr;gap:14px}
  .studio-project-head>span{width:38px;height:38px}
  .studio-lesson-row.l-row{grid-template-columns:18px 32px minmax(0,1fr) auto;gap:9px;min-height:72px}
  .studio-row-free{display:none}
  .studio-row-state{font-size:0}
  .studio-row-state::after{content:"→";font-size:14px}

  body.lesson-page .site-head{display:block}
  .workshop-toolbar{width:calc(100% - 32px);min-height:50px;grid-template-columns:1fr auto}
  .workshop-position{display:none}
  .workshop-toolbar .reader-back{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
  .reader-outline>summary{padding-inline:7px;font-size:12px}
  .reader-outline .sp-txt-m{display:none}
  .workshop-hero{width:calc(100% - 36px);padding:34px 0 38px;gap:34px}
  .workshop-lesson-id{margin-bottom:14px}
  .workshop-brief h1{font-size:clamp(2.35rem,11vw,3rem);line-height:1.08}
  .workshop-lead{margin-top:20px;font-size:16px;line-height:1.75}
  .workshop-delivery{grid-template-columns:1fr;gap:6px;margin-top:22px;padding:14px 0}
  .workshop-hero-actions{margin-top:22px}
  .workshop-artifact{padding:0 5px 5px 0}
  .workshop-artifact-paper{padding:18px 18px 21px;transform:none}
  .workshop-artifact-paper h2{margin:18px 0;font-size:18px}
  .workshop-route{grid-template-columns:1fr 1fr;padding:12px 10px}
  .workshop-route-item{min-height:82px;padding:14px 10px;border:0}
  .workshop-route-item:first-child{padding-left:10px}
  .workshop-route-item small{display:none}
  .workshop-content{width:calc(100% - 36px);display:block;padding:46px 0 78px}
  .workshop-guide{position:static;margin-bottom:46px;padding:14px 0;border-top-width:2px;border-bottom:1px solid var(--studio-line)}
  .workshop-guide>small{display:none}
  .workshop-guide .reader-help{margin-top:8px}
  .reader-article .lesson-body{font-size:16px;line-height:1.82}
  .reader-article .lesson-body h2{margin-top:64px;font-size:1.8rem}
  .reader-article .problem-lead h2,.reader-article .c02-lead h2{font-size:24px}
  .reader-article .follow .f-head,.reader-article .f-step{padding-inline:14px}
  .reader-article .quiz{padding:18px 14px}
  .workshop-finish{margin-top:70px}
  .workshop-finish h2{font-size:24px}
  .studio-lesson-pn{grid-template-columns:1fr;gap:24px}
  .studio-pn-next{text-align:left}
}

@media (pointer:coarse){
  .studio-text-link,.studio-progress-link,.studio-route-go,.studio-scenario-row{min-height:44px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}
