:root {
  --h-canvas: #e7ecf3;
  --h-surface: #f3f5f9;
  --h-surface-raised: #f9fafc;
  --h-panel: #edf1f6;
  --h-navy: #071c3f;
  --h-navy-2: #0c2b5e;
  --h-ink: #172033;
  --h-muted: #46546a;
  --h-line: #c8d1df;
  --h-soft: #e8e8f4;
  --h-violet: #6642e8;
  --h-violet-deep: #4b29c8;
  --h-violet-soft: #e5e3f5;
  --h-sky: #176fd1;
  --h-sky-soft: #e2edf8;
  --h-mint: #16806a;
  --h-mint-soft: #deeee9;
  --h-gold: #a36c08;
  --h-gold-soft: #fbf1d8;
  --h-danger: #b4233d;
  --h-danger-soft: #fff0f3;
  --h-radius: 14px;
  --h-radius-sm: 10px;
  --eco-canvas: var(--h-canvas);
  --eco-surface: var(--h-surface-raised);
  --eco-line: var(--h-line);
  --eco-muted: var(--h-muted);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 132px; font-size: 17px; }
body.course-harness {
  margin: 0;
  overflow-x: hidden;
  background: var(--h-canvas);
  color: var(--h-ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.65;
}
body.course-harness :where(button, input, select) { font: inherit; }
body.course-harness :where(button, a, input, select):focus-visible {
  outline: 3px solid rgba(102, 66, 232, .28);
  outline-offset: 3px;
}
body.course-harness svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
button { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.h-skip { position: fixed; z-index: 300; top: 10px; left: 10px; transform: translateY(-160%); padding: 9px 14px; border-radius: 8px; background: var(--h-navy); color: #fff; text-decoration: none; }
.h-skip:focus { transform: none; }

.ecosystem-header-inner { width: min(calc(100% - 40px), 1480px); }
.course-harness .ecosystem-header { border-bottom-color: var(--h-line); background: var(--h-surface-raised); }
.ecosystem-account { border: 1px solid var(--h-line); cursor: pointer; }
.ecosystem-header > .ecosystem-menu-button { position: absolute; z-index: 2; top: 15px; right: max(88px, calc((100vw - 1480px) / 2 + 88px)); margin: 0; }
.h-course-nav { position: sticky; z-index: 120; top: 0; border-bottom: 1px solid var(--h-line); background: rgba(235, 240, 247, .98); }
.h-course-nav__inner { width: min(calc(100% - 40px), 1480px); min-height: 58px; margin: 0 auto; display: flex; align-items: stretch; gap: 28px; }
.h-course-home { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; color: var(--h-ink); text-decoration: none; font-weight: 820; letter-spacing: -.02em; }
.h-course-home svg { width: 20px; height: 20px; }
.h-nav-tabs { min-width: 0; display: flex; align-items: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.h-nav-tabs::-webkit-scrollbar { display: none; }
.h-nav-tabs button { position: relative; min-width: max-content; min-height: 58px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; border: 0; background: transparent; color: var(--h-muted); cursor: pointer; font-size: .86rem; font-weight: 720; }
.h-nav-tabs button:hover { color: var(--h-violet-deep); }
.h-nav-tabs button[aria-current="page"] { color: var(--h-violet-deep); }
.h-nav-tabs button[aria-current="page"]::after { content: ""; position: absolute; right: 12px; bottom: 0; left: 12px; height: 3px; border-radius: 3px 3px 0 0; background: var(--h-violet); }
.h-nav-tabs svg { width: 18px; height: 18px; }

.h-main { width: min(calc(100% - 40px), 1480px); margin: 0 auto; padding: 28px 0 64px; }
.h-view { min-height: 68vh; }
.h-hero { display: grid; grid-template-columns: 128px minmax(0, 1fr) minmax(300px, .55fr); align-items: center; gap: 24px; padding: 24px 0 30px; border-bottom: 1px solid var(--h-line); }
.h-cover { width: 128px; height: 128px; display: block; border-radius: 16px; object-fit: cover; box-shadow: 0 12px 28px rgba(7, 28, 63, .18); }
.h-hero__copy { min-width: 0; }
.h-hero h1 { max-width: 18ch; margin: 0; color: var(--h-navy); font-size: clamp(2rem, 3.4vw, 3.6rem); line-height: 1.07; letter-spacing: -.035em; text-wrap: balance; }
.h-hero__copy > p { max-width: 72ch; margin: 12px 0 0; color: #344157; font-size: clamp(1rem, 1.15vw, 1.08rem); }
.h-hero__copy > p strong { color: var(--h-violet-deep); font-weight: 880; }
.h-hero__facts { display: flex; flex-wrap: wrap; gap: 7px 20px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--h-muted); font-size: .82rem; }
.h-hero__facts strong { color: var(--h-violet-deep); font-size: .94rem; }
.h-hero__actions { min-width: 0; display: grid; grid-template-columns: minmax(155px, 1fr) minmax(130px, 1fr) auto; gap: 10px; align-items: center; padding-left: 18px; border-left: 1px solid var(--h-line); }
.h-primary, .h-secondary, .h-text-button, .h-back { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; cursor: pointer; font-size: .86rem; font-weight: 780; text-decoration: none; }
.h-primary { padding: 0 18px; border: 1px solid var(--h-violet); background: var(--h-violet); color: #fff; }
.h-primary:hover { border-color: var(--h-violet-deep); background: var(--h-violet-deep); }
.h-launcher-download { border-color: var(--h-mint); background: var(--h-mint); }
.h-launcher-download:hover { border-color: #0f6957; background: #0f6957; }
.h-primary:disabled { border-color: #aeb1bd; background: #aeb1bd; cursor: not-allowed; }
.h-secondary { padding: 0 14px; border: 1px solid #bfc8d7; background: var(--h-surface-raised); color: var(--h-navy); }
.h-secondary:hover { border-color: var(--h-violet); color: var(--h-violet-deep); }
.h-secondary svg, .h-primary svg { width: 18px; height: 18px; }
.h-text-button { min-height: 36px; padding: 0; border: 0; background: transparent; color: var(--h-violet-deep); }
.h-text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.h-progress-summary { grid-column: 1 / -1; margin-top: 5px; }
.h-progress-summary__row { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.h-progress-summary__row > span { min-width: 0; color: var(--h-muted); font-size: .76rem; }
.h-copy-share { flex: 0 0 auto; min-height: 44px; color: var(--h-violet-deep); font-size: .76rem; }
.h-progress-track { height: 6px; overflow: hidden; border-radius: 6px; background: #e8e9f1; }
.h-progress-track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--h-violet); }
.h-repo-links { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.h-repo-link { min-width: 0; display: grid; gap: 4px; padding: 13px 15px; border: 1px solid #bcc7d6; border-radius: 11px; background: var(--h-surface-raised); color: var(--h-navy); text-decoration: none; transition: border-color 150ms ease, background 150ms ease, transform 150ms ease; }
.h-repo-link:hover { transform: translateY(-1px); border-color: #a999ef; background: #fbfaff; }
.h-repo-link.is-course { border-color: #b9aaf3; background: var(--h-violet-soft); }
.h-repo-link span { color: var(--h-violet-deep); font-size: .76rem; font-weight: 840; }
.h-repo-link strong { overflow: hidden; text-overflow: ellipsis; color: var(--h-navy); font-size: .9rem; white-space: nowrap; }
.h-repo-link small { overflow: hidden; text-overflow: ellipsis; color: var(--h-muted); font-size: .72rem; white-space: nowrap; }

.h-workbench, .h-route { margin-top: 30px; border: 1px solid var(--h-line); border-radius: var(--h-radius); background: var(--h-surface); }
.h-section-heading { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 20px; border-bottom: 1px solid var(--h-line); }
.h-section-heading h2 { margin: 0; color: var(--h-navy); font-size: 1.14rem; letter-spacing: -.02em; }
.h-section-heading p { margin: 4px 0 0; color: var(--h-muted); font-size: .8rem; }
.h-truth { max-width: 46ch; text-align: right; }
.h-truth strong { color: var(--h-violet-deep); }
.h-workbench__body { display: grid; grid-template-columns: 190px minmax(520px, 1fr) 300px; min-height: 500px; }
.h-capability-panel, .h-inspector { padding: 18px; }
.h-capability-panel { border-right: 1px solid var(--h-line); }
.h-capability-panel h3, .h-graph-heading h3, .h-inspector h3 { margin: 0; color: var(--h-navy); font-size: .94rem; }
.h-capability-panel > p { margin: 3px 0 15px; color: var(--h-muted); font-size: .76rem; }
.h-capability-list { display: grid; gap: 3px; }
.h-capability-list button { width: 100%; min-height: 44px; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #344157; cursor: pointer; text-align: left; font-size: .82rem; }
.h-capability-list button:hover { background: var(--h-panel); }
.h-capability-list button[aria-pressed="true"] { border-color: #c7bcf8; background: var(--h-violet-soft); color: var(--h-violet-deep); }
.h-capability-list svg { width: 21px; height: 21px; }
.h-capability-list small { color: var(--h-muted); font-size: .7rem; }
.h-graph-panel { min-width: 0; padding: 18px 20px 14px; border-right: 1px solid var(--h-line); }
.h-graph-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.h-graph-heading span { color: var(--h-mint); font-size: .74rem; font-weight: 760; }
.h-plugin-graph { position: relative; min-height: 396px; margin-top: 10px; overflow: hidden; border-radius: 12px; background: var(--h-panel); }
.h-plugin-graph svg.h-links { position: absolute; inset: 0; width: 100%; height: 100%; color: #765ce3; pointer-events: none; }
.h-graph-link { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-dasharray: 6 5; animation: h-connect 700ms cubic-bezier(.18, .8, .2, 1) both; }
.h-graph-link.is-data { color: #2d86cf; stroke-dasharray: none; }
.h-graph-node { position: absolute; z-index: 2; min-width: 136px; max-width: 180px; padding: 11px 12px; border: 1px solid; border-radius: 11px; background: var(--h-surface-raised); text-align: center; }
.h-graph-node strong, .h-graph-node small { display: block; }
.h-graph-node strong { color: var(--h-navy); font-size: .8rem; line-height: 1.35; }
.h-graph-node small { margin-top: 3px; color: var(--h-muted); font-size: .7rem; }
.h-graph-node.is-definition { top: 22px; left: 50%; transform: translateX(-50%); border-color: #9fc6ee; background: var(--h-sky-soft); }
.h-graph-node.is-provider-a { top: 143px; left: 22px; border-color: #9cd6c7; background: #f3fbf8; }
.h-graph-node.is-provider-b { top: 247px; left: 22px; border-color: #9cd6c7; background: #f3fbf8; }
.h-graph-node.is-context { top: 176px; left: 50%; min-width: 180px; transform: translateX(-50%); border-color: var(--h-navy); background: var(--h-navy); }
.h-graph-node.is-context strong { color: #fff; font-size: .8rem; }
.h-graph-node.is-context small { color: #b9c8e2; }
.h-graph-node.is-consumer-a { top: 143px; right: 22px; border-color: #b9adf4; background: #f8f6ff; }
.h-graph-node.is-consumer-b { top: 247px; right: 22px; border-color: #b9adf4; background: #f8f6ff; }
.h-life-rail { position: absolute; z-index: 2; right: 22px; bottom: 18px; left: 22px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding-top: 15px; border-top: 1px solid #bdb9d7; }
.h-life-rail span { position: relative; color: var(--h-muted); text-align: center; font-size: .68rem; }
.h-life-rail span::before { content: ""; position: absolute; top: -20px; left: 50%; width: 9px; height: 9px; transform: translateX(-50%); border: 2px solid var(--h-violet); border-radius: 50%; background: var(--h-surface-raised); }
.h-life-rail span.is-current { color: var(--h-violet-deep); font-weight: 800; }
.h-life-rail span.is-current::before { background: var(--h-violet); }
.h-graph-legend { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 10px; color: var(--h-muted); font-size: .7rem; }
.h-graph-legend span { display: inline-flex; align-items: center; gap: 5px; }
.h-graph-legend i { width: 11px; height: 11px; border: 1px solid; border-radius: 3px; }
.h-graph-legend .is-definition { border-color: #8dbce8; background: var(--h-sky-soft); }
.h-graph-legend .is-provider { border-color: #79bfad; background: var(--h-mint-soft); }
.h-graph-legend .is-consumer { border-color: #a999ef; background: var(--h-violet-soft); }
.h-graph-legend .is-life { border-radius: 50%; border-color: var(--h-violet); }
.h-inspector { min-width: 0; }
.h-inspector__status { display: inline-flex; margin: 8px 0 14px; padding: 3px 8px; border-radius: 999px; background: var(--h-mint-soft); color: var(--h-mint); font-size: .7rem; font-weight: 800; }
.h-inspector dl { margin: 0; }
.h-inspector dt { margin-top: 13px; color: var(--h-muted); font-size: .7rem; font-weight: 760; }
.h-inspector dd { margin: 3px 0 0; color: #30394a; font-size: .78rem; line-height: 1.58; }
.h-inspector code, .h-source-inline code, .h-source-link code { font-family: "Cascadia Code", Consolas, monospace; }
.h-inspector code { color: var(--h-violet-deep); overflow-wrap: anywhere; }
.h-inspector__checks { margin: 16px -18px -18px; padding: 14px 18px; border-top: 1px solid var(--h-line); background: var(--h-panel); }
.h-inspector__checks strong { color: var(--h-navy); font-size: .78rem; }
.h-inspector__checks ul { margin: 9px 0 0; padding: 0; list-style: none; }
.h-inspector__checks li { display: flex; gap: 7px; margin: 6px 0; color: var(--h-muted); font-size: .74rem; }
.h-inspector__checks li::before { content: ""; flex: 0 0 9px; width: 9px; height: 9px; margin-top: 4px; border: 2px solid var(--h-mint); border-radius: 50%; }

.h-route { overflow: hidden; }
.h-phase-route { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.h-phase { position: relative; min-height: 145px; padding: 18px 20px 20px; }
.h-phase + .h-phase { border-left: 1px solid var(--h-line); }
.h-phase span { color: var(--h-violet-deep); font-size: .72rem; font-weight: 820; }
.h-phase h3 { margin: 7px 0 5px; color: var(--h-navy); font-size: .94rem; }
.h-phase p { margin: 0; color: var(--h-muted); font-size: .76rem; line-height: 1.58; }
.h-phase footer { display: flex; align-items: center; gap: 9px; margin-top: 14px; color: var(--h-muted); font-size: .7rem; }
.h-phase footer i { flex: 1; height: 4px; overflow: hidden; border-radius: 4px; background: #e8e9f1; }
.h-phase footer i::before { content: ""; display: block; width: var(--phase-progress, 0%); height: 100%; background: var(--h-violet); }
.h-phase:last-child span { color: var(--h-gold); }
.h-phase:last-child footer i::before { background: var(--h-gold); }
.h-current { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 18px; padding: 22px 24px; border-radius: var(--h-radius); background: var(--h-navy); color: #fff; }
.h-current__copy { min-width: 0; }
.h-current__copy > span { color: #b9c9e4; font-size: .72rem; font-weight: 800; }
.h-current h2 { margin: 5px 0; font-size: 1.12rem; }
.h-current p { max-width: 72ch; margin: 0; color: #c8d4e7; font-size: .82rem; }
.h-source-inline { display: flex; flex-wrap: wrap; gap: 7px 15px; margin-top: 12px; color: #d4deed; font-size: .7rem; }
.h-current__action { flex: 0 0 auto; display: grid; justify-items: end; gap: 10px; }
.h-current__action strong { color: #d4deed; font-size: .75rem; }
.h-current .h-primary { border-color: #fff; background: #fff; color: var(--h-navy); }
.h-current .h-primary:hover { background: #e9eeff; }

.h-page-heading { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 6px 0 22px; border-bottom: 1px solid var(--h-line); }
.h-page-heading h1 { margin: 0; color: var(--h-navy); font-size: clamp(1.75rem, 3vw, 2.8rem); line-height: 1.1; letter-spacing: -.03em; }
.h-page-heading p { max-width: 74ch; margin: 8px 0 0; color: var(--h-muted); font-size: .9rem; }
.h-search { position: relative; flex: 0 1 380px; min-width: 230px; }
.h-search svg { position: absolute; top: 50%; left: 13px; width: 19px; height: 19px; transform: translateY(-50%); color: var(--h-muted); pointer-events: none; }
.h-search input { width: 100%; min-height: 46px; padding: 0 14px 0 42px; border: 1px solid #bcc7d6; border-radius: 10px; background: var(--h-surface-raised); color: var(--h-ink); font-size: .88rem; }
.h-search input::placeholder { color: #757c8a; opacity: 1; }
.h-unit-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0; }
.h-unit-filters button { min-height: 44px; padding: 0 14px; border: 1px solid #bcc7d6; border-radius: 9px; background: var(--h-surface-raised); color: var(--h-muted); cursor: pointer; font-size: .82rem; }
.h-unit-filters button[aria-pressed="true"] { border-color: var(--h-violet); background: var(--h-violet); color: #fff; }
.h-chapter-list { border-top: 1px solid var(--h-line); }
.h-chapter-row { width: 100%; display: grid; grid-template-columns: 54px minmax(0, 1.2fr) minmax(200px, .7fr) auto; align-items: center; gap: 18px; padding: 17px 8px; border: 0; border-bottom: 1px solid var(--h-line); background: transparent; cursor: pointer; text-align: left; }
.h-chapter-row:hover { background: var(--h-panel); }
.h-chapter-number { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; background: var(--h-violet-soft); color: var(--h-violet-deep); font-size: .82rem; font-weight: 900; }
.h-chapter-row.is-complete .h-chapter-number { background: var(--h-mint-soft); color: var(--h-mint); }
.h-chapter-copy strong, .h-chapter-copy small { display: block; }
.h-chapter-copy strong { color: var(--h-navy); font-size: .94rem; }
.h-chapter-copy small { margin-top: 4px; color: var(--h-muted); font-size: .76rem; }
.h-chapter-summary { margin: 0; color: var(--h-muted); font-size: .78rem; line-height: 1.6; }
.h-chapter-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; color: var(--h-muted); font-size: .7rem; white-space: nowrap; }
.h-chapter-meta b { color: var(--h-violet-deep); font-size: .74rem; }
.h-empty { padding: 46px 20px; color: var(--h-muted); text-align: center; }

.h-reading-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 6px 0 22px; border-bottom: 1px solid var(--h-line); }
.h-back { padding: 0 10px 0 0; border: 0; background: transparent; color: var(--h-violet-deep); }
.h-back svg { width: 19px; height: 19px; }
.h-reading-head span { color: var(--h-violet-deep); font-size: .75rem; font-weight: 800; }
.h-reading-head h1 { margin: 4px 0; color: var(--h-navy); font-size: clamp(1.5rem, 2.8vw, 2.4rem); line-height: 1.12; letter-spacing: -.025em; }
.h-reading-head p { margin: 0; color: var(--h-muted); font-size: .84rem; }
.h-reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; margin-top: 18px; align-items: start; }
.h-reading-card, .h-reading-side section { border: 1px solid var(--h-line); border-radius: var(--h-radius); background: var(--h-surface); }
.h-reading-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--h-line); }
.h-reading-tabs button { position: relative; min-height: 52px; padding: 0 20px; border: 0; background: transparent; color: var(--h-muted); cursor: pointer; font-size: .84rem; font-weight: 760; white-space: nowrap; }
.h-reading-tabs button[aria-selected="true"] { color: var(--h-violet-deep); }
.h-reading-tabs button[aria-selected="true"]::after { content: ""; position: absolute; right: 18px; bottom: 0; left: 18px; height: 3px; background: var(--h-violet); }
.h-tab-panel { padding: clamp(22px, 3vw, 42px); }
.h-lesson-intro { max-width: 75ch; margin-bottom: 28px; }
.h-lesson-intro strong { color: var(--h-violet-deep); font-size: 1.08rem; line-height: 1.5; }
.h-lesson-intro p { margin: 9px 0 0; color: #344157; font-size: 1rem; }
.h-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 9px; margin: 24px 0 30px; padding: 16px; border-radius: 12px; background: var(--h-soft); }
.h-flow span { position: relative; flex: 1 1 110px; display: grid; place-items: center; min-height: 54px; padding: 8px; border: 1px solid #bdb8e4; border-radius: 9px; background: var(--h-surface-raised); color: var(--h-violet-deep); text-align: center; font-size: .78rem; font-weight: 760; }
.h-flow span + span::before { content: "→"; position: absolute; top: 50%; left: -11px; transform: translate(-50%, -50%); color: #8d91a2; }
.h-lesson-section { max-width: 75ch; margin: 0 0 34px; }
.h-lesson-section h2 { margin: 0 0 12px; color: var(--h-navy); font-size: 1.18rem; line-height: 1.3; letter-spacing: -.015em; }
.h-lesson-section p { margin: 10px 0; color: #344157; font-size: 1rem; line-height: 1.82; }
.h-lesson-section ul, .h-lesson-section ol { margin: 12px 0; padding-left: 1.3rem; }
.h-lesson-section li { margin: 7px 0; color: #344157; font-size: .96rem; line-height: 1.72; }
.h-code { margin: 18px 0 4px; overflow: hidden; border-radius: 12px; background: var(--h-navy); color: #e9f1ff; }
.h-code figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .13); color: #cbd7e8; font-size: .72rem; }
.h-code pre { margin: 0; padding: 16px; overflow: auto; }
.h-code code { font: .82rem/1.72 "Cascadia Code", Consolas, monospace; white-space: pre; }
.h-lab-callout { max-width: 75ch; margin-top: 32px; padding: 20px; border-radius: 12px; background: var(--h-navy); color: #fff; }
.h-lab-callout h2 { margin: 0; font-size: 1rem; }
.h-lab-callout p { margin: 7px 0 14px; color: #cbd6e8; font-size: .84rem; }
.h-lab-callout ol { margin: 0; padding-left: 1.2rem; }
.h-lab-callout li { margin: 7px 0; color: #dce4f0; font-size: .8rem; }
.h-lab-callout code { color: #fff; font: .76rem "Cascadia Code", Consolas, monospace; }
.h-key-list { margin: 0 0 28px; padding: 0; list-style: none; }
.h-key-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--h-line); color: #344157; font-size: .92rem; }
.h-key-list li::before { content: ""; width: 17px; height: 17px; margin-top: 3px; border: 2px solid var(--h-violet); border-radius: 50%; }
.h-misconceptions { display: grid; gap: 10px; }
.h-misconception { padding: 15px 16px; border-radius: 11px; background: #f5e8ec; }
.h-misconception strong { display: block; color: var(--h-danger); font-size: .8rem; }
.h-misconception p { margin: 5px 0 0; color: #493e4b; font-size: .84rem; }
.h-chapter-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 15px 20px; border-top: 1px solid var(--h-line); }
.h-chapter-footer .h-primary { justify-self: end; }
.h-chapter-footer span { color: var(--h-muted); font-size: .76rem; }
.h-reading-side { position: sticky; top: 78px; display: grid; gap: 12px; }
.h-reading-side section { padding: 17px; }
.h-reading-side h2 { margin: 0 0 11px; color: var(--h-navy); font-size: .9rem; }
.h-reading-side ol { margin: 0; padding-left: 1.2rem; }
.h-reading-side li, .h-reading-side p { margin: 6px 0; color: var(--h-muted); font-size: .78rem; line-height: 1.6; }
.h-source-link { display: block; padding: 8px 0; border-bottom: 1px solid var(--h-line); }
.h-source-link:last-child { border-bottom: 0; }
.h-source-link code { display: block; color: var(--h-violet-deep); font-size: .7rem; overflow-wrap: anywhere; }
.h-source-link span { display: block; margin-top: 3px; color: var(--h-muted); font-size: .7rem; line-height: 1.5; }
.h-source-baseline { padding-bottom: 10px; border-bottom: 1px solid var(--h-line); }
.h-source-baseline a, .h-inline-source, #currentSources a { color: var(--h-violet-deep); text-decoration: none; }
.h-source-baseline a:hover, .h-inline-source:hover, #currentSources a:hover, .h-source-link:hover code { text-decoration: underline; text-underline-offset: 2px; }
.h-source-baseline code { display: block; margin-top: 6px; color: var(--h-navy); overflow-wrap: anywhere; }

.h-select-label { display: grid; gap: 4px; color: var(--h-muted); font-size: .72rem; }
.h-select-label select, .h-practice-tools select { min-height: 44px; padding: 0 36px 0 12px; border: 1px solid #bcc7d6; border-radius: 9px; background: var(--h-surface-raised); color: var(--h-ink); font-size: .82rem; }
.h-lab-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.h-lab-list { overflow: hidden; border: 1px solid var(--h-line); border-radius: var(--h-radius); background: var(--h-surface); }
.h-lab-list button { width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 13px 14px; border: 0; border-bottom: 1px solid var(--h-line); background: transparent; cursor: pointer; text-align: left; }
.h-lab-list button:last-child { border-bottom: 0; }
.h-lab-list button[aria-current="true"] { background: var(--h-violet-soft); }
.h-lab-list b { color: var(--h-violet-deep); font-size: .76rem; }
.h-lab-list strong, .h-lab-list small { display: block; }
.h-lab-list strong { color: var(--h-navy); font-size: .82rem; }
.h-lab-list small { margin-top: 3px; color: var(--h-muted); font-size: .7rem; }
.h-lab-sheet { border: 1px solid var(--h-line); border-radius: var(--h-radius); background: var(--h-surface); }
.h-lab-sheet__head { padding: 24px 26px; border-bottom: 1px solid var(--h-line); }
.h-lab-sheet__head span { color: var(--h-violet-deep); font-size: .74rem; font-weight: 800; }
.h-lab-sheet__head h2 { margin: 5px 0; color: var(--h-navy); font-size: 1.35rem; }
.h-lab-sheet__head p { max-width: 72ch; margin: 0; color: var(--h-muted); font-size: .86rem; }
.h-lab-steps { counter-reset: lab-step; margin: 0; padding: 12px 26px 4px; list-style: none; }
.h-lab-step { counter-increment: lab-step; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--h-line); }
.h-lab-step::before { content: counter(lab-step); width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: var(--h-violet-soft); color: var(--h-violet-deep); font-size: .72rem; font-weight: 900; }
.h-lab-step strong { color: var(--h-navy); font-size: .88rem; }
.h-lab-step p { margin: 4px 0 0; color: var(--h-muted); font-size: .82rem; }
.h-lab-step code { display: block; margin-top: 8px; padding: 9px 11px; overflow-x: auto; border-radius: 8px; background: var(--h-navy); color: #e9f1ff; font: .76rem/1.58 "Cascadia Code", Consolas, monospace; }
.h-lab-acceptance { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--h-line); }
.h-lab-acceptance section { padding: 20px 26px; }
.h-lab-acceptance section + section { border-left: 1px solid var(--h-line); }
.h-lab-acceptance h3 { margin: 0; color: var(--h-navy); font-size: .88rem; }
.h-lab-acceptance ul { margin: 10px 0 0; padding-left: 1.1rem; }
.h-lab-acceptance li { margin: 6px 0; color: var(--h-muted); font-size: .78rem; }
.h-lab-complete { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 26px; border-top: 1px solid var(--h-line); background: var(--h-panel); }
.h-lab-complete span { color: var(--h-muted); font-size: .78rem; }

.h-page-stats { display: grid; grid-template-columns: auto auto auto auto; align-items: baseline; gap: 5px 12px; }
.h-page-stats strong { color: var(--h-violet-deep); font-size: 1.2rem; }
.h-page-stats span { color: var(--h-muted); font-size: .72rem; }
.h-practice-tools { display: grid; grid-template-columns: minmax(260px, 1fr) 180px auto; gap: 10px; padding: 18px 0; }
.h-practice-list { display: grid; gap: 12px; }
.h-question { padding: 20px 22px; border: 1px solid var(--h-line); border-radius: var(--h-radius); background: var(--h-surface); }
.h-question__meta { display: flex; flex-wrap: wrap; gap: 7px 13px; margin-bottom: 8px; color: var(--h-muted); font-size: .72rem; }
.h-question__meta b { color: var(--h-violet-deep); }
.h-question h2 { max-width: 75ch; margin: 0; color: var(--h-navy); font-size: .98rem; line-height: 1.6; }
.h-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.h-option { min-height: 48px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid #bcc7d6; border-radius: 10px; background: var(--h-surface-raised); cursor: pointer; color: #344157; text-align: left; font-size: .82rem; }
.h-option:hover:not(:disabled) { border-color: var(--h-violet); }
.h-option span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #f0f1f6; color: var(--h-muted); font-size: .6rem; font-weight: 800; }
.h-option.is-selected { border-color: var(--h-violet); background: var(--h-violet-soft); }
.h-option.is-correct { border-color: #79bea9; background: var(--h-mint-soft); }
.h-option.is-wrong { border-color: #e9a9b4; background: var(--h-danger-soft); }
.h-option:disabled { cursor: default; }
.h-explanation { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--h-panel); color: #344157; font-size: .8rem; }
.h-explanation strong { display: block; margin-bottom: 4px; color: var(--h-navy); }

.h-review-stage { margin-top: 20px; }
.h-review-card { min-height: 360px; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; border-radius: var(--h-radius); background: var(--h-navy); color: #fff; }
.h-review-card__meta { display: flex; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid rgba(255, 255, 255, .13); color: #c7d3e6; font-size: .74rem; }
.h-review-card__body { display: grid; place-items: center; padding: 38px clamp(24px, 6vw, 90px); text-align: center; }
.h-review-card__body h2 { max-width: 28ch; margin: 0; font-size: clamp(1.3rem, 2.6vw, 2.25rem); line-height: 1.35; text-wrap: balance; }
.h-review-answer { max-width: 72ch; margin: 18px 0 0; color: #dce5f2; font-size: .94rem; }
.h-review-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; padding: 17px 20px; border-top: 1px solid rgba(255, 255, 255, .13); }
.h-review-card__actions button { min-height: 44px; padding: 0 17px; border: 1px solid rgba(255, 255, 255, .36); border-radius: 10px; background: transparent; color: #fff; cursor: pointer; font-size: .82rem; font-weight: 760; }
.h-review-card__actions button:hover { background: rgba(255, 255, 255, .1); }
.h-review-card__actions .is-mastered { border-color: #8ad1bf; background: #e7f6f1; color: #0f6957; }
.h-review-queue { margin-top: 16px; color: var(--h-muted); font-size: .8rem; text-align: center; }

.h-progress-overview { display: grid; grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(150px, .55fr)); margin-top: 20px; overflow: hidden; border: 1px solid var(--h-line); border-radius: var(--h-radius); background: var(--h-surface); }
.h-progress-overview > div { min-height: 116px; padding: 20px; }
.h-progress-overview > div + div { border-left: 1px solid var(--h-line); }
.h-progress-overview span { display: block; color: var(--h-muted); font-size: .74rem; }
.h-progress-overview strong { display: block; margin-top: 7px; color: var(--h-navy); font-size: 1.35rem; }
.h-progress-overview p { margin: 5px 0 0; color: var(--h-muted); font-size: .76rem; }
.h-progress-units { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; overflow: hidden; border: 1px solid var(--h-line); border-radius: var(--h-radius); background: var(--h-surface); }
.h-progress-unit { padding: 19px 20px; }
.h-progress-unit + .h-progress-unit { border-left: 1px solid var(--h-line); }
.h-progress-unit span { color: var(--h-violet-deep); font-size: .72rem; font-weight: 800; }
.h-progress-unit h2 { margin: 5px 0 12px; color: var(--h-navy); font-size: .9rem; }
.h-progress-unit .h-progress-track { height: 5px; }
.h-progress-unit p { margin: 8px 0 0; color: var(--h-muted); font-size: .72rem; }
.h-resume-panel { display: flex; align-items: center; justify-content: space-between; gap: 26px; margin-top: 14px; padding: 22px 24px; border-radius: var(--h-radius); background: var(--h-navy); color: #fff; }
.h-resume-panel h2 { margin: 0; font-size: 1rem; }
.h-resume-panel p { margin: 5px 0 0; color: #c9d5e7; font-size: .82rem; }
.h-resume-panel .h-primary { border-color: #fff; background: #fff; color: var(--h-navy); }

.h-toast { position: fixed; z-index: 260; right: 22px; bottom: 22px; max-width: min(360px, calc(100vw - 32px)); padding: 13px 16px; border-radius: 11px; background: var(--h-navy); color: #fff; font-size: .84rem; box-shadow: 0 14px 40px rgba(7, 28, 63, .22); }
.h-mobile-nav { display: none; }
.h-footer { padding: 10px 20px 28px; text-align: center; }
.h-footer a { color: #566277; font-size: .78rem; text-decoration: none; }

@keyframes h-connect { from { stroke-dashoffset: 32; opacity: .25; } to { stroke-dashoffset: 0; opacity: 1; } }

@media (max-width: 1180px) {
  .ecosystem-header > .ecosystem-menu-button { right: 18px; }
  .h-workbench__body { grid-template-columns: 170px minmax(500px, 1fr); }
  .h-inspector { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .6fr); gap: 20px; border-top: 1px solid var(--h-line); }
  .h-inspector__checks { margin: -18px; border-top: 0; border-left: 1px solid var(--h-line); }
  .h-reading-layout { grid-template-columns: minmax(0, 1fr) 290px; }
}

@media (max-width: 920px) {
  .ecosystem-header > .ecosystem-menu-button { top: 15px; right: 14px; }
  .ecosystem-header-inner { width: min(calc(100% - 28px), 1480px); }
  .ecosystem-nav { display: none; }
  .ecosystem-header-inner { grid-template-columns: 1fr auto; }
  .h-course-nav__inner, .h-main { width: min(calc(100% - 28px), 1480px); }
  .h-course-home span { display: none; }
  .h-hero { grid-template-columns: 92px minmax(0, 1fr); }
  .h-cover { width: 92px; height: 92px; }
  .h-hero__actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr auto; padding: 18px 0 0; border-top: 1px solid var(--h-line); border-left: 0; }
  .h-repo-links { grid-column: 1 / -1; }
  .h-workbench__body { grid-template-columns: minmax(0, 1fr); }
  .h-capability-panel, .h-graph-panel, .h-inspector { min-width: 0; }
  .h-capability-panel { border-right: 0; border-bottom: 1px solid var(--h-line); }
  .h-capability-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .h-graph-panel { border-right: 0; }
  .h-inspector { grid-template-columns: 1fr 1fr; }
  .h-phase-route, .h-progress-units { grid-template-columns: 1fr 1fr; }
  .h-phase:nth-child(3), .h-progress-unit:nth-child(3) { border-left: 0; border-top: 1px solid var(--h-line); }
  .h-phase:nth-child(4), .h-progress-unit:nth-child(4) { border-top: 1px solid var(--h-line); }
  .h-reading-layout { grid-template-columns: 1fr; }
  .h-reading-side { position: static; grid-template-columns: 1fr 1fr; }
  .h-reading-side section:last-child { grid-column: 1 / -1; }
  .h-lab-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .h-progress-overview { grid-template-columns: 1fr 1fr; }
  .h-progress-overview > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--h-line); }
  .h-progress-overview > div:nth-child(4) { border-top: 1px solid var(--h-line); }
}

@media (max-width: 1360px) {
  .ecosystem-header .ecosystem-nav { display: none !important; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 68px; }
  body.course-harness { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .ecosystem-header { display: none; }
  .h-course-nav { top: 0; }
  .h-course-nav__inner { width: calc(100% - 24px); min-height: 54px; }
  .h-course-home { min-width: 36px; }
  .h-nav-tabs { display: none; }
  .h-main { width: calc(100% - 24px); padding: 12px 0 34px; }
  .h-hero { grid-template-columns: 90px minmax(0, 1fr); gap: 14px; padding: 12px 0 22px; }
  .h-cover { width: 90px; height: 90px; border-radius: 12px; }
  .h-hero h1 { font-size: 1.65rem; }
  .h-hero__copy > p { font-size: .94rem; }
  .h-hero__facts { grid-column: 1 / -1; gap: 6px 14px; font-size: .78rem; }
  .h-hero__actions { grid-template-columns: 1fr 1fr; }
  .h-course-share { grid-column: 1 / -1; width: 100%; }
  .h-secondary { min-width: 44px; }
  .h-hero__actions > .h-secondary { padding: 0 12px; }
  .h-repo-links { gap: 8px; }
  .h-repo-link { min-height: 82px; padding: 10px; }
  .h-repo-link strong { white-space: normal; line-height: 1.35; }
  .h-repo-link small { display: none; }
  .h-section-heading { align-items: flex-start; padding: 15px; }
  .h-section-heading .h-truth { display: none; }
  .h-workbench, .h-route { margin-top: 18px; }
  .h-capability-panel { padding: 14px; }
  .h-capability-list { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .h-capability-list button { flex: 0 0 120px; grid-template-columns: 22px 1fr; }
  .h-capability-list small { display: none; }
  .h-graph-panel { padding: 14px; }
  .h-plugin-graph { min-height: 470px; }
  .h-graph-node { min-width: 118px; max-width: 135px; padding: 9px; }
  .h-graph-node.is-definition { top: 18px; }
  .h-graph-node.is-provider-a { top: 112px; left: 10px; }
  .h-graph-node.is-provider-b { top: 215px; left: 10px; }
  .h-graph-node.is-context { top: 318px; left: 50%; min-width: 164px; }
  .h-graph-node.is-consumer-a { top: 112px; right: 10px; }
  .h-graph-node.is-consumer-b { top: 215px; right: 10px; }
  .h-life-rail { bottom: 20px; }
  .h-inspector { display: block; padding: 16px; }
  .h-inspector__checks { margin: 16px -16px -16px; padding: 14px 16px; border-top: 1px solid var(--h-line); border-left: 0; }
  .h-phase-route, .h-progress-units { display: block; }
  .h-phase + .h-phase, .h-progress-unit + .h-progress-unit { border-top: 1px solid var(--h-line); border-left: 0; }
  .h-current, .h-resume-panel { align-items: flex-start; flex-direction: column; padding: 19px; }
  .h-current__action { width: 100%; justify-items: stretch; }
  .h-current__action .h-primary, .h-resume-panel .h-primary { width: 100%; }
  .h-page-heading { min-height: 0; align-items: flex-start; flex-direction: column; padding: 10px 0 18px; }
  .h-page-heading h1 { font-size: 1.65rem; }
  .h-search { width: 100%; min-width: 0; }
  .h-chapter-row { grid-template-columns: 45px minmax(0, 1fr) auto; gap: 10px; padding: 14px 2px; }
  .h-chapter-summary { grid-column: 2 / -1; }
  .h-chapter-meta span { display: none; }
  .h-reading-head { grid-template-columns: auto 1fr auto; gap: 10px; padding-top: 6px; }
  .h-reading-head .h-back { width: 40px; padding: 0; }
  .h-reading-head .h-back { font-size: 0; }
  .h-reading-head .h-back svg { width: 22px; height: 22px; }
  .h-reading-head h1 { font-size: 1.32rem; }
  .h-reading-head > .h-secondary { width: 42px; min-width: 42px; padding: 0; font-size: 0; }
  .h-tab-panel { padding: 20px 16px; }
  .h-reading-side { display: block; }
  .h-reading-side section { margin-top: 10px; }
  .h-flow { display: grid; grid-template-columns: 1fr; }
  .h-flow span + span::before { top: -7px; left: 50%; transform: translate(-50%, -50%) rotate(90deg); }
  .h-chapter-footer { padding: 12px; }
  .h-lab-layout { display: block; }
  .h-lab-list { display: flex; margin-bottom: 12px; overflow-x: auto; }
  .h-lab-list button { flex: 0 0 210px; border-right: 1px solid var(--h-line); border-bottom: 0; }
  .h-lab-sheet__head, .h-lab-steps, .h-lab-acceptance section, .h-lab-complete { padding-right: 16px; padding-left: 16px; }
  .h-lab-acceptance { grid-template-columns: 1fr; }
  .h-lab-acceptance section + section { border-top: 1px solid var(--h-line); border-left: 0; }
  .h-lab-complete { align-items: flex-start; flex-direction: column; }
  .h-practice-tools { grid-template-columns: 1fr 1fr; }
  .h-practice-tools .h-search { grid-column: 1 / -1; }
  .h-options { grid-template-columns: 1fr; }
  .h-page-stats { grid-template-columns: auto 1fr auto 1fr; }
  .h-review-card { min-height: 390px; }
  .h-progress-overview { grid-template-columns: 1fr 1fr; }
  .h-progress-overview > div { min-height: 100px; padding: 15px; }
  .h-progress-overview > div:nth-child(3) { border-left: 0; }
  .h-mobile-nav { position: fixed; z-index: 220; right: 0; bottom: 0; left: 0; display: flex; gap: 0; overflow-x: auto; padding: 5px 5px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid var(--h-line); background: #e9eef5; scrollbar-width: none; }
  .h-mobile-nav::-webkit-scrollbar { display: none; }
  .h-mobile-nav button { position: relative; flex: 1 0 52px; min-height: 51px; display: grid; place-items: center; align-content: center; gap: 2px; padding: 3px; border: 0; background: transparent; color: #697183; cursor: pointer; }
  .h-mobile-nav button[aria-current="page"] { color: var(--h-violet-deep); }
  .h-mobile-nav button[aria-current="page"]::before { content: ""; position: absolute; top: -5px; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--h-violet); }
  .h-mobile-nav svg { width: 20px; height: 20px; }
  .h-mobile-nav span { font-size: .78rem; font-weight: 740; }
  .h-source-link code, .h-source-link span, .h-select-label, .h-page-stats span, .h-question__meta, .h-progress-overview span, .h-progress-overview p, .h-progress-unit span, .h-progress-unit p { font-size: .72rem; }
  .h-toast { right: 12px; bottom: calc(70px + env(safe-area-inset-bottom)); }
  .h-footer { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 680px) {
  body.course-harness > .ecosystem-header,
  body.course-harness .ecosystem-header { display: none !important; }
}
