:root {
  --ink: #102a43;
  --ink-2: #243b53;
  --muted: #627d98;
  --paper: #f7f4ee;
  --paper-2: #fffdf9;
  --line: #d9e2ec;
  --navy: #102a43;
  --teal: #087f6f;
  --orange: #d97706;
  --purple: #6d4aff;
  --red: #c2413a;
  --gold: #b7791f;
  --green: #0f7b58;
  --yellow: #b7791f;
  --danger: #b42318;
  --shadow: 0 20px 60px rgba(16, 42, 67, .1);
  --radius: 22px;
  --content: 1180px;
  --reading: 820px;
  --base-size: 18px;
}

* { box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  color: var(--ink-2);
  background:
    radial-gradient(circle at 8% 6%, rgba(8, 127, 111, .08), transparent 25rem),
    radial-gradient(circle at 92% 2%, rgba(217, 119, 6, .08), transparent 28rem),
    var(--paper);
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: var(--base-size);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.font-large { --base-size: 20px; }
body.font-xlarge { --base-size: 22px; }
a { color: inherit; }
button, select, input { font: inherit; }
button { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; letter-spacing: -.035em; }
h2 { font-size: clamp(2.2rem, 4vw, 4.2rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 2.25rem); }
h4 { font-size: 1.05rem; }
p { text-wrap: pretty; }
em { color: var(--teal); font-style: normal; }
pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: Consolas, "Cascadia Mono", "Microsoft YaHei UI", monospace;
  line-height: 1.65;
}
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .65rem .8rem;
  color: var(--ink);
  background: white;
}
input[type="checkbox"] { width: 1.05rem; height: 1.05rem; accent-color: var(--teal); }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }

.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 9999;
  padding: .7rem 1rem; border-radius: 8px; background: white; color: var(--ink);
}
.skip-link:focus { top: 1rem; }
.section { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; padding: 110px 0; }
.section-narrow { width: min(var(--reading), calc(100% - 40px)); margin: 0 auto; padding: 100px 0; }
.section-heading { max-width: 830px; margin-bottom: 44px; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.06rem; }
.section-heading.compact { margin-bottom: 28px; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1.25fr .75fr; gap: 54px; align-items: end; }
.split-heading > p { margin: 0; padding-bottom: .6rem; }
.section-label, .eyebrow, .lesson-kicker {
  color: var(--teal); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow span { display: inline-block; padding: .3rem .55rem; border-radius: 999px; background: var(--ink); color: white; letter-spacing: .12em; }
.lead { font-size: 1.16rem; color: var(--ink-2); }
.version-note, .lab-disclaimer, .privacy-note { color: var(--muted); font-size: .82rem; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  min-height: 78px; padding: 10px max(18px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid rgba(217, 226, 236, .85);
  background: rgba(247, 244, 238, .91); backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 200px; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--ink); color: white; font-weight: 900; font-size: .9rem; letter-spacing: -.04em;
}
.brand strong, .brand small { display: block; line-height: 1.22; }
.brand strong { font-size: .92rem; }
.brand small { color: var(--muted); font-size: .66rem; margin-top: 3px; }
.lesson-nav { display: flex; justify-content: center; align-items: center; gap: 4px; }
.lesson-nav a {
  display: flex; align-items: center; gap: 6px; min-height: 42px; padding: .45rem .65rem;
  border-radius: 10px; color: var(--muted); text-decoration: none; font-size: .78rem; font-weight: 700;
}
.lesson-nav a span { font-variant-numeric: tabular-nums; font-size: .64rem; opacity: .65; }
.lesson-nav a:hover, .lesson-nav a.active { background: white; color: var(--ink); box-shadow: 0 3px 12px rgba(16, 42, 67, .08); }
.header-actions, .lecture-controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.button, .icon-button, .copy-button, .complete-button, .text-button {
  min-height: 44px; border: 0; cursor: pointer; font-weight: 800; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.button:hover, .icon-button:hover, .copy-button:hover, .complete-button:hover { transform: translateY(-2px); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .68rem 1rem; border-radius: 12px; text-decoration: none; }
.button-primary { background: var(--teal); color: white; box-shadow: 0 10px 24px rgba(8, 127, 111, .2); }
.button-secondary { background: white; color: var(--ink); border: 1px solid var(--line); }
.button-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.icon-button { display: grid; place-items: center; width: 44px; border-radius: 12px; background: transparent; border: 1px solid var(--line); }
.text-button { background: none; color: var(--muted); text-decoration: underline; font-size: .78rem; }

.lecture-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 2000; display: none;
  grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; min-height: 78px; padding: 10px 24px;
  background: var(--paper-2); border-bottom: 1px solid var(--line); box-shadow: 0 8px 30px rgba(16, 42, 67, .1);
}
.lecture-status { text-align: center; }
.lecture-status small, .lecture-status strong { display: block; line-height: 1.25; }
.lecture-status small { color: var(--teal); font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.lecture-status strong { font-size: 1rem; }
.lecture-pace {
  display: block; margin: 3px auto 0; padding: 0; border: 0; background: none; color: var(--muted);
  font: inherit; font-size: .66rem; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer;
}
.lecture-pace:hover { color: var(--ink); }
.lecture-pace.over { color: var(--red); font-weight: 900; }

.hero {
  width: min(1320px, calc(100% - 40px)); min-height: calc(100vh - 78px); margin: 0 auto;
  display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(32px, 7vw, 100px); padding: 80px 0 90px;
}
.hero h1 { font-size: clamp(3.4rem, 7vw, 7.4rem); margin: 20px 0 24px; letter-spacing: -.075em; }
.hero h1 em { display: inline-block; font-size: .76em; white-space: nowrap; }
.hero-lead { max-width: 660px; color: var(--ink-2); font-size: clamp(1.05rem, 1.7vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 42px; }
.hero-facts { display: flex; gap: 34px; margin: 0; padding: 0; list-style: none; }
.hero-facts li { display: flex; align-items: baseline; gap: 7px; }
.hero-facts strong { color: var(--ink); font-size: 1.8rem; }
.hero-facts span { color: var(--muted); font-size: .78rem; }
.hero-stage { position: relative; padding: 30px; }
.stage-window {
  position: relative; z-index: 2; overflow: hidden; border: 1px solid rgba(217, 226, 236, .95); border-radius: 30px;
  background: rgba(255, 253, 249, .95); box-shadow: 0 30px 90px rgba(16, 42, 67, .16); transform: rotate(1deg);
}
.window-bar { display: flex; align-items: center; gap: 7px; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--line); background: #f2efe8; }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #b9c7d5; }
.window-bar i:nth-child(1) { background: #e46b5e; }
.window-bar i:nth-child(2) { background: #e5ad42; }
.window-bar i:nth-child(3) { background: #54a777; }
.window-bar span { margin-left: auto; color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .15em; }
.stage-question { padding: 42px 38px 32px; }
.stage-label { color: var(--teal); font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.stage-question p { margin: 10px 0 0; color: var(--ink); font-size: clamp(1.2rem, 2.2vw, 1.9rem); font-weight: 750; line-height: 1.45; }
.workflow { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 26px 34px; }
.workflow-node { padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: white; font-size: .76rem; font-weight: 800; }
.workflow b { color: #9fb3c8; }
.deliverable-card { display: flex; align-items: center; gap: 14px; padding: 24px 30px; background: var(--ink); color: white; }
.deliverable-card small, .deliverable-card strong { display: block; }
.deliverable-card small { color: #9fb3c8; font-size: .68rem; letter-spacing: .08em; }
.deliverable-card strong { margin-top: 3px; font-size: .92rem; }
.deliverable-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; background: var(--teal); font-weight: 900; }
.orbit { position: absolute; z-index: 3; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; color: white; font-size: .72rem; font-weight: 900; box-shadow: var(--shadow); }
.orbit-one { right: -4px; top: 12%; background: var(--orange); transform: rotate(8deg); }
.orbit-two { left: -4px; bottom: 10%; background: var(--purple); transform: rotate(-8deg); }

.thesis { text-align: center; }
.thesis h2 { font-size: clamp(2rem, 4.3vw, 4rem); }
.four-capabilities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 52px; text-align: left; }
.four-capabilities article { position: relative; padding: 25px; border-top: 3px solid var(--teal); background: rgba(255, 255, 255, .62); }
.four-capabilities span { color: var(--teal); font-size: .7rem; font-weight: 900; }
.four-capabilities h3 { margin: 16px 0 8px; font-size: 1.25rem; }
.four-capabilities p { margin: 0; color: var(--muted); font-size: .86rem; }

.prep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.panel { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .68); }
.panel-accent { background: var(--ink); color: white; border-color: var(--ink); }
.panel-accent h3 { color: white; }
.panel-number { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e6f4f1; color: var(--teal); font-weight: 900; }
.panel h3 { margin: 23px 0 18px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.55rem; margin: .5rem 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 900; }
.instructor-box { margin-top: 20px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.52); }
.instructor-box summary { cursor: pointer; padding: 18px 22px; color: var(--ink); font-weight: 800; }
.details-body { padding: 0 22px 8px; }

.course-map { border-top: 1px solid var(--line); }
.map-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.map-card { position: relative; min-height: 280px; padding: 22px 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper-2); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.map-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.map-card > span { display: block; color: #cbd5e1; font-size: 2.5rem; font-weight: 900; letter-spacing: -.08em; }
.map-card small { color: var(--teal); font-weight: 800; letter-spacing: .12em; font-size: .58rem; }
.map-card h3 { margin: 24px 0 9px; font-size: 1.15rem; }
.map-card p { margin: 0; color: var(--muted); font-size: .78rem; }
.map-card b { position: absolute; left: 18px; bottom: 20px; font-size: .74rem; color: var(--ink); }
.progress-panel { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; margin-top: 18px; padding: 19px 22px; border-radius: 15px; background: var(--ink); color: white; }
.progress-panel strong, .progress-panel span { display: block; }
.progress-panel strong { font-size: .88rem; }
.progress-panel span { color: #9fb3c8; font-size: .68rem; }
.progress-track { overflow: hidden; height: 8px; border-radius: 999px; background: rgba(255,255,255,.15); }
.progress-track i { display: block; width: 0; height: 100%; background: #51d3b3; transition: width .3s ease; }
.progress-panel .text-button { color: #d9e2ec; }

.case-rail { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: center; border-top: 1px solid var(--line); }
.case-rail h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); }
.case-steps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.case-steps span { padding: .52rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: white; font-size: .74rem; font-weight: 800; }
.case-steps b { color: #9fb3c8; }
.privacy-note { grid-column: 1 / -1; padding: 14px 18px; border-left: 3px solid var(--orange); background: rgba(217, 119, 6, .06); }

.lesson { --accent: var(--teal); --accent-soft: #e6f4f1; width: min(var(--content), calc(100% - 40px)); margin: 70px auto 120px; scroll-margin-top: 98px; }
.lesson-blue { --accent: #2563a8; --accent-soft: #e8f1fb; }
.lesson-teal { --accent: #087f6f; --accent-soft: #e6f4f1; }
.lesson-orange { --accent: #c66a09; --accent-soft: #fff0dc; }
.lesson-purple { --accent: #6d4aff; --accent-soft: #f0edff; }
.lesson-red { --accent: #b83e37; --accent-soft: #fbecea; }
.lesson-gold { --accent: #9a6a12; --accent-soft: #faf0d7; }
.lesson-header {
  display: grid; grid-template-columns: 120px 1fr 250px; gap: 32px; align-items: center;
  padding: 44px; border-radius: 30px 30px 0 0; background: var(--ink); color: white;
}
.lesson-index { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 96px; height: 112px; border: 1px solid rgba(255,255,255,.2); border-radius: 22px; }
.lesson-index small { color: #9fb3c8; font-size: .58rem; font-weight: 800; letter-spacing: .16em; }
.lesson-index strong { color: white; font-size: 3rem; line-height: 1; letter-spacing: -.08em; }
.lesson-heading h2 { margin: 10px 0 9px; color: white; font-size: clamp(2.25rem, 5vw, 4.8rem); }
.lesson-heading p:last-child { margin: 0; color: #bcccdc; max-width: 700px; }
.lesson-kicker { color: #51d3b3; margin: 0; }
.lesson-question { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.18); }
.lesson-question span, .lesson-question strong { display: block; }
.lesson-question span { color: #9fb3c8; font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.lesson-question strong { margin-top: 12px; color: white; font-size: 1.2rem; line-height: 1.45; }
.lesson-objectives { display: grid; grid-template-columns: 220px 1fr; gap: 30px; padding: 28px 42px; border: 1px solid var(--line); border-top: 0; background: var(--paper-2); }
.lesson-objectives h3 { margin: 0; font-size: 1rem; }
.lesson-objectives ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: goals; }
.lesson-objectives li { position: relative; padding-left: 1.7rem; font-size: .83rem; counter-increment: goals; }
.lesson-objectives li::before { content: counter(goals); position: absolute; left: 0; top: .05rem; color: var(--accent); font-weight: 900; }
.timeline { display: flex; justify-content: space-between; gap: 8px; padding: 15px 24px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; background: #f0ede6; }
.timeline span { color: var(--muted); font-size: .65rem; font-weight: 800; white-space: nowrap; }
.beat { position: relative; margin: 32px 0; padding: clamp(30px, 5vw, 62px); border: 1px solid var(--line); border-radius: 24px; background: var(--paper-2); box-shadow: 0 8px 25px rgba(16, 42, 67, .035); break-inside: avoid; }
.beat-number { margin-bottom: 22px; color: var(--accent); font-size: .68rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.beat-grid { display: grid; gap: 42px; align-items: center; }
.two-columns { grid-template-columns: 1fr 1fr; }
.speaker-note { margin-top: 28px; padding: 17px 20px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--accent-soft); font-size: .82rem; }
.speaker-note strong { color: var(--ink); }
.speaker-note p { margin: .35rem 0 0; }

.token-sentence { margin: 24px 0 17px; padding: 22px; border-radius: 14px; background: var(--ink); color: white; font-size: 1.05rem; font-weight: 700; }
.token-bars { display: grid; gap: 12px; }
.token-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.token-bar strong { font-size: .85rem; }
.token-bar span { color: var(--muted); font-size: .75rem; }
.token-bar i { grid-column: 1 / -1; display: block; height: 10px; border-radius: 99px; background: #edf2f7; overflow: hidden; }
.token-bar i b { display: block; height: 100%; border-radius: inherit; background: var(--accent); animation: grow .45s ease both; transform-origin: left; }
.token-disclaimer { margin: 16px 0 0; color: var(--muted); font-size: .72rem; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.concept-grid { display: grid; gap: 14px; }
.concept-grid.four { grid-template-columns: repeat(4, 1fr); }
.concept-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.concept-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); font-weight: 900; }
.concept-grid h4 { margin: 24px 0 8px; }
.concept-grid p { color: var(--muted); font-size: .82rem; }
.concept-grid small { color: var(--accent); font-size: .68rem; font-weight: 700; }
.compare-band { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; margin-top: 20px; padding: 30px; border-radius: 16px; background: var(--ink); color: white; }
.compare-band > span { font-size: 2rem; color: #829ab1; }
.compare-band small, .compare-band strong { display: block; }
.compare-band small { color: #51d3b3; font-size: .67rem; letter-spacing: .12em; }
.compare-band strong { margin-top: 7px; font-size: 1.05rem; }
.compare-band p { margin: .3rem 0 0; color: #bcccdc; font-size: .77rem; }
.hardware-map { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; }
.hardware-map article { padding: 22px 17px; border: 1px solid var(--line); border-radius: 16px; text-align: center; }
.hardware-map article.featured { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, white); }
.hardware-map > i { align-self: center; color: #9fb3c8; font-style: normal; }
.hardware-symbol { width: 62px; margin: 0 auto 18px; padding: .5rem; border-radius: 9px; background: var(--ink); color: white; font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.hardware-map h4 { margin-bottom: 8px; }
.hardware-map p { margin: 0; color: var(--muted); font-size: .75rem; }
.table-scroll { overflow-x: auto; margin-top: 24px; }
table { width: 100%; border-collapse: collapse; font-size: .8rem; }
caption { padding: 0 0 10px; color: var(--ink); font-weight: 800; text-align: left; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #edf2f7; color: var(--ink); }
.three-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.three-inputs article { padding: 25px; border-radius: 18px; border: 1px solid var(--line); }
.three-inputs span { display: inline-block; padding: .25rem .5rem; border-radius: 999px; font-size: .64rem; font-weight: 900; }
.three-inputs p { min-height: 74px; margin: 18px 0; color: var(--ink); font-weight: 700; }
.three-inputs strong { font-size: .78rem; }
.input-bad span { color: var(--danger); background: #fce8e6; }
.input-warn span { color: #925e08; background: #fff3d6; }
.input-good span { color: var(--green); background: #ddf4e8; }
.big-quote { margin: 38px auto 0; padding: 0; border: 0; color: var(--ink); font-size: clamp(1.45rem, 3vw, 2.6rem); font-weight: 800; line-height: 1.38; text-align: center; letter-spacing: -.04em; }
.demo-steps { margin: 0; padding: 0; list-style: none; }
.demo-steps li { display: grid; grid-template-columns: 52px 1fr auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.demo-steps li > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .7rem; font-weight: 900; }
.demo-steps strong { color: var(--ink); }
.demo-steps p { margin: .2rem 0 0; color: var(--muted); font-size: .82rem; }
.demo-steps small { color: var(--accent); font-weight: 800; }
.prompt-card { overflow: hidden; margin-top: 26px; border: 1px solid #354f69; border-radius: 15px; background: #102a43; color: #e6edf3; }
.prompt-head { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 8px 10px 8px 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.prompt-head span { color: #9fb3c8; font-size: .67rem; font-weight: 800; letter-spacing: .1em; }
.prompt-card pre { padding: 20px; font-size: .8rem; }
.copy-button { min-height: 36px; padding: .35rem .7rem; border-radius: 8px; background: rgba(255,255,255,.1); color: white; font-size: .68rem; }
.traffic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.traffic-grid article { padding: 23px; border-radius: 16px; border: 1px solid var(--line); }
.traffic-grid span { font-size: .65rem; font-weight: 900; }
.traffic-grid h4 { margin: 13px 0 8px; }
.traffic-grid p { margin: 0; font-size: .8rem; }
.traffic-grid .green { background: #edf9f3; }
.traffic-grid .green span { color: var(--green); }
.traffic-grid .yellow { background: #fff8e8; }
.traffic-grid .yellow span { color: var(--yellow); }
.traffic-grid .red { background: #fff0ee; }
.traffic-grid .red span { color: var(--danger); }
.exercise-box { margin-top: 20px; padding: 24px; border: 1px dashed var(--accent); border-radius: 15px; }
.exercise-box p { margin: .55rem 0; }
.exercise-instruction { color: var(--muted); font-size: .82rem; }
.lesson-close { background: var(--accent-soft); border-color: transparent; }
.close-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.close-grid h3 { font-size: clamp(2rem, 4vw, 3.7rem); }
.close-grid h4 { margin-bottom: 10px; }
.exit-ticket { margin-top: 20px; padding: 16px 18px; border-radius: 12px; background: rgba(255,255,255,.65); }
.exit-ticket strong, .exit-ticket span { display: block; }
.exit-ticket strong { color: var(--accent); font-size: .68rem; letter-spacing: .08em; }
.exit-ticket span { margin-top: 5px; font-size: .8rem; }
.complete-button { margin-top: 30px; padding: .7rem 1rem; border-radius: 12px; background: var(--accent); color: white; }
.complete-button.completed { background: var(--ink); }

.layer-stack { display: grid; gap: 10px; }
.layer-stack article { display: grid; grid-template-columns: 50px 1fr 160px; gap: 18px; align-items: center; padding: 18px 22px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.layer-stack article > span { color: #9fb3c8; font-size: 1.3rem; font-weight: 900; }
.layer-stack strong { color: var(--ink); }
.layer-stack p { margin: .15rem 0 0; color: var(--muted); font-size: .78rem; }
.layer-stack small { color: var(--accent); font-weight: 800; text-align: right; }
.surface-rule { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.surface-rule span { padding: 12px 14px; border-radius: 11px; background: var(--accent-soft); color: var(--muted); font-size: .7rem; }
.surface-rule strong { color: var(--ink); }
.surface-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.surface-grid article { padding: 22px 18px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.surface-grid .recommended { color: white; background: var(--ink); border-color: var(--ink); transform: translateY(-7px); }
.surface-grid .recommended h4 { color: white; }
.surface-grid .recommended p { color: #bcccdc; }
.surface-tag { color: var(--accent); font-size: .62rem; font-weight: 900; }
.surface-grid h4 { margin: 18px 0 10px; }
.surface-grid p { color: var(--muted); font-size: .75rem; }
.surface-grid strong { font-size: .69rem; }
.auth-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-compare article { padding: 30px; border: 1px solid var(--line); border-radius: 18px; }
.auth-compare article > span { color: var(--accent); font-size: .65rem; font-weight: 900; }
.auth-compare ul { padding-left: 1.2rem; font-size: .82rem; }
.auth-compare strong { display: block; margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink); }
.danger-callout { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center; margin-top: 18px; padding: 20px 24px; border-radius: 15px; background: #fff0ee; }
.danger-callout > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--danger); color: white; font-weight: 900; }
.danger-callout strong { color: var(--danger); }
.danger-callout p { margin: .25rem 0 0; font-size: .8rem; }
.model-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.model-cards article { padding: 28px; border-radius: 18px; border: 1px solid var(--line); }
.model-cards small { font-size: .65rem; font-weight: 900; }
.model-cards h4 { margin: 22px 0 10px; font-size: 1.3rem; }
.model-cards p { margin: 0; color: var(--muted); font-size: .82rem; }
.model-cards .sol { background: #eaf0f8; }
.model-cards .sol small { color: #255893; }
.model-cards .terra { background: #e7f6f2; }
.model-cards .terra small { color: #087f6f; }
.model-cards .luna { background: #fff2df; }
.model-cards .luna small { color: #b45c08; }
.model-choosing-line { margin: 16px 0 0; padding: 15px 18px; border-radius: 12px; background: #f5f7fa; font-size: .8rem; }
.effort-ladder { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 8px; align-items: stretch; margin-top: 22px; }
.effort-ladder div { padding: 17px; border: 1px solid var(--line); border-radius: 12px; }
.effort-ladder div.default { border: 2px solid var(--accent); }
.effort-ladder span { color: var(--accent); font-size: .65rem; font-weight: 900; }
.effort-ladder p { margin: .3rem 0 0; font-size: .72rem; }
.effort-ladder i { align-self: center; color: #9fb3c8; font-style: normal; }
.ultra-note { display: flex; gap: 10px; margin-top: 12px; padding: 14px 17px; border: 1px dashed var(--accent); border-radius: 12px; font-size: .76rem; }
.ultra-note strong { color: var(--accent); white-space: nowrap; }
.rule-quote { margin: 24px 0 0; padding: 20px 24px; border-left: 4px solid var(--accent); background: #f5f7fa; font-size: 1.05rem; }
.router-lab { display: grid; grid-template-columns: .8fr 1.2fr; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; }
.router-form { padding: 32px; background: #f0ede6; }
.router-form label { display: block; margin-top: 16px; color: var(--ink); font-size: .76rem; font-weight: 800; }
.router-form select { margin-top: 6px; }
.router-result { display: flex; flex-direction: column; justify-content: center; padding: 38px; background: var(--ink); color: white; }
.router-result small { color: #51d3b3; font-weight: 800; letter-spacing: .12em; }
.router-result h4 { margin: 12px 0; color: white; font-size: 1.7rem; }
.router-result p { color: #bcccdc; }
.router-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.router-tags span { padding: .35rem .55rem; border-radius: 999px; background: rgba(255,255,255,.1); font-size: .7rem; font-weight: 800; }
.scorecard { max-width: 760px; margin: 0 auto; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.scorecard-head { display: flex; justify-content: space-between; padding: 20px 25px; background: var(--ink); color: white; }
.scorecard-head span { color: #9fb3c8; font-size: .72rem; }
.scorecard ol { margin: 0; padding: 16px 28px 22px 52px; }
.scorecard li { padding: 8px; border-bottom: 1px solid var(--line); }
.second-opinion { max-width: 900px; margin: 20px auto 0; padding: 20px 23px; border-left: 4px solid var(--accent); background: var(--accent-soft); }
.second-opinion p { margin: .3rem 0 0; font-size: .8rem; }

.before-after { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: stretch; }
.before-after article { padding: 28px; border: 1px solid var(--line); border-radius: 18px; }
.before-after article > span { font-size: .65rem; font-weight: 900; }
.before-after blockquote { margin: 18px 0; color: var(--ink); font-size: 1.15rem; font-weight: 800; line-height: 1.5; }
.before-after ul { padding-left: 1.2rem; color: var(--muted); font-size: .78rem; }
.before { background: #fff0ee; }
.before > span { color: var(--danger); }
.after { background: #edf9f3; }
.after > span { color: var(--green); }
.transform-arrow { align-self: center; color: #9fb3c8; font-size: 2rem; }
.brief-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.brief-grid article { padding: 23px; border: 1px solid var(--line); border-radius: 15px; }
.brief-grid span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .72rem; font-weight: 900; }
.brief-grid h4 { margin: 18px 0 8px; }
.brief-grid p { margin: 0; color: var(--muted); font-size: .77rem; }
.memory-line { margin: 20px 0 0; padding: 16px 20px; border-radius: 12px; background: var(--accent-soft); font-size: .83rem; }
.prompt-lab { display: grid; grid-template-columns: .72fr 1.28fr; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; }
.prompt-layers { padding: 32px; background: #f0ede6; }
.prompt-layers label { display: flex; align-items: center; gap: 9px; margin: 13px 0; color: var(--ink); font-size: .8rem; font-weight: 750; }
.prompt-output { min-height: 380px; background: var(--ink); color: white; }
.prompt-output pre { padding: 28px; color: #e6edf3; font-size: .8rem; }
.case-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.case-gallery article { min-height: 210px; padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.case-gallery article > span { color: var(--accent); font-size: .65rem; font-weight: 900; }
.case-gallery h4 { margin: 20px 0 9px; }
.case-gallery p { color: var(--muted); font-size: .76rem; }
.case-gallery small { color: var(--ink); font-size: .68rem; font-weight: 700; }
.website-value { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.artifact-selector { padding: 28px; border-radius: 18px; background: var(--ink); color: white; }
.artifact-selector strong { display: block; margin-bottom: 15px; }
.artifact-selector p { padding: 10px 0; margin: 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #bcccdc; font-size: .8rem; }
.artifact-selector span { color: white; font-weight: 800; }
.live-example { display: flex; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 18px 22px; border-radius: 13px; background: var(--accent-soft); }
.live-example span { color: var(--accent); font-size: .76rem; font-weight: 900; }
.live-example strong { font-size: .82rem; }
.pair-exercise { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin: 0; padding: 0; list-style: none; counter-reset: pair; }
.pair-exercise li { padding: 19px 16px; border: 1px solid var(--line); border-radius: 14px; }
.pair-exercise strong { color: var(--ink); font-size: .8rem; }
.pair-exercise p { margin: .5rem 0 0; color: var(--muted); font-size: .72rem; }

.chat-agent-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 25px; align-items: center; }
.chat-agent-compare article { padding: 30px; border: 1px solid var(--line); border-radius: 20px; text-align: center; }
.chat-agent-compare article.agent-card { background: var(--ink); color: white; }
.chat-agent-compare .agent-card h3 { color: white; }
.chat-agent-compare article > p { color: var(--muted); }
.chat-agent-compare .agent-card > p { color: #bcccdc; }
.chat-agent-compare blockquote { margin: 24px 0; padding: 18px; border-radius: 12px; background: #f0ede6; color: var(--ink); font-size: .8rem; }
.persona-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 23px; border-radius: 17px; background: var(--accent-soft); color: var(--accent); font-weight: 900; }
.versus { color: #9fb3c8; font-weight: 900; }
.agent-loop { display: grid; grid-template-columns: repeat(13, auto); gap: 8px; align-items: stretch; overflow-x: auto; padding-bottom: 10px; }
.agent-loop div { min-width: 125px; padding: 18px 14px; border: 1px solid var(--line); border-radius: 14px; text-align: center; }
.agent-loop div span { display: grid; place-items: center; width: 29px; height: 29px; margin: 0 auto 12px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .65rem; font-weight: 900; }
.agent-loop strong, .agent-loop small { display: block; }
.agent-loop strong { font-size: .77rem; }
.agent-loop small { margin-top: 5px; color: var(--muted); font-size: .62rem; }
.agent-loop i { align-self: center; color: #9fb3c8; font-style: normal; }
.capability-map { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 780px; margin: 0 auto; }
.cap-center { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; background: var(--ink); color: white; box-shadow: var(--shadow); }
.cap-center span, .cap-center strong { display: block; }
.cap-center span { color: #51d3b3; font-size: .65rem; letter-spacing: .12em; }
.capability-map article { min-height: 170px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.capability-map article:nth-of-type(even) { text-align: right; }
.capability-map article > span { color: var(--accent); font-weight: 900; }
.capability-map article p { max-width: 230px; color: var(--muted); font-size: .75rem; }
.capability-map article:nth-of-type(even) p { margin-left: auto; }
.tip-callout { display: flex; gap: 10px; margin-top: 24px; padding: 19px 22px; border-radius: 13px; background: var(--accent-soft); }
.tip-callout p { margin: 0; }
.authority-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.authority-levels article { padding: 24px; border: 1px solid var(--line); border-top-width: 5px; border-radius: 15px; }
.authority-levels span { font-size: .64rem; font-weight: 900; }
.authority-levels h4 { margin: 18px 0 9px; }
.authority-levels p, .authority-levels small { color: var(--muted); font-size: .74rem; }
.level-1 { border-top-color: #0f7b58 !important; }
.level-2 { border-top-color: #4a85b9 !important; }
.level-3 { border-top-color: #d97706 !important; }
.level-4 { border-top-color: #b42318 !important; }
.incident-card { padding: 30px; border-radius: 20px; background: var(--ink); color: white; }
.incident-card > span { color: #51d3b3; font-size: .67rem; font-weight: 900; letter-spacing: .12em; }
.incident-card h3 { margin-top: 16px; color: white; }
.incident-status { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.incident-status i { padding: .35rem .6rem; border-radius: 999px; font-size: .68rem; font-style: normal; font-weight: 800; }
.incident-status .bad { background: #7d2b27; }
.incident-status .warn { background: #805b17; }
.incident-status .good { background: #166447; }
.decision-questions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.decision-questions article { display: flex; align-items: center; gap: 12px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; }
.decision-questions strong { color: var(--accent); }
.decision-questions p { margin: 0; font-size: .75rem; }

.artifact-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; }
.artifact-grid article { padding: 24px 18px; border: 1px solid var(--line); border-radius: 16px; text-align: center; }
.artifact-grid article.featured { color: white; background: var(--ink); transform: translateY(-7px); }
.artifact-grid article.featured h4 { color: white; }
.artifact-grid article.featured p { color: #bcccdc; }
.artifact-grid span { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-weight: 900; }
.artifact-grid h4 { margin: 20px 0 8px; }
.artifact-grid p { margin: 0; color: var(--muted); font-size: .73rem; }
.product-brief ol { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.product-brief li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; }
.product-brief li:last-child { grid-column: 1 / -1; }
.product-brief li > span { color: var(--accent); font-size: .72rem; font-weight: 900; }
.product-brief strong { color: var(--ink); }
.product-brief p { margin: .2rem 0 0; color: var(--muted); font-size: .74rem; }
.delivery-gates { display: grid; grid-template-columns: repeat(11, auto); gap: 7px; align-items: stretch; overflow-x: auto; padding-bottom: 8px; }
.delivery-gates article { min-width: 135px; padding: 18px 13px; border: 1px solid var(--line); border-radius: 14px; text-align: center; }
.delivery-gates span { color: var(--accent); font-size: .65rem; font-weight: 900; }
.delivery-gates h4 { margin: 13px 0 7px; font-size: .87rem; }
.delivery-gates p { margin: 0; color: var(--muted); font-size: .65rem; }
.delivery-gates i { align-self: center; color: #9fb3c8; font-style: normal; }
.release-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; }
.release-flow article { padding: 22px; border-left: 3px solid var(--accent); background: #f5f7fa; }
.release-flow span { color: var(--accent); font-size: .65rem; font-weight: 900; }
.release-flow strong { display: block; margin-top: 17px; color: var(--ink); font-size: .82rem; }
.release-flow p { margin: .45rem 0 0; color: var(--muted); font-size: .7rem; }
.success-definition { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; margin-top: 20px; padding: 18px 22px; border-radius: 14px; background: var(--ink); color: white; }
.success-definition span { color: #f3ad9e; font-size: .72rem; font-weight: 900; }
.success-definition s { color: #9fb3c8; font-size: .8rem; }
.success-definition strong { font-size: .8rem; }
.uat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.uat-grid article { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; }
.uat-grid span { grid-row: 1 / span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .68rem; font-weight: 900; }
.uat-grid h4 { margin: 0 0 5px; }
.uat-grid p { grid-column: 2; margin: 0; color: var(--muted); font-size: .72rem; }
.release-simulation { display: grid; grid-template-columns: 1fr .9fr; gap: 35px; padding: 30px; border: 2px solid var(--accent); border-radius: 20px; }
.evidence-checks { display: grid; gap: 8px; }
.evidence-checks label { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 10px; background: #f0ede6; font-size: .75rem; font-weight: 700; }

.risk-matrix { display: grid; grid-template-columns: 70px 1fr; grid-template-rows: 1fr 60px; gap: 10px; max-width: 880px; margin: 0 auto; }
.axis-y { display: flex; flex-direction: column; justify-content: space-between; align-items: center; color: var(--muted); font-size: .65rem; }
.axis-y strong { writing-mode: vertical-rl; color: var(--ink); letter-spacing: .12em; }
.axis-x { grid-column: 2; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .65rem; }
.axis-x strong { color: var(--ink); letter-spacing: .12em; }
.matrix-cells { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.matrix-cells article { min-height: 170px; padding: 28px; border-radius: 16px; }
.matrix-cells strong { color: var(--ink); }
.matrix-cells p { margin: 1rem 0 .3rem; font-size: .85rem; }
.matrix-cells small { font-size: .68rem; }
.risk-green { background: #ddf4e8; }
.risk-yellow { background: #fff2cf; }
.risk-red { background: #fce4e1; }
.injection-demo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: center; }
.email-sheet { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 18px 40px rgba(16,42,67,.1); transform: rotate(-2deg); }
.email-sheet small { color: var(--muted); }
.email-sheet p { margin: 28px 0 0; color: var(--danger); font-family: Consolas, monospace; font-size: .79rem; }
.shield { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--danger); color: white; font-size: 1.8rem; font-weight: 900; }
.workflow-asset { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.workflow-asset article { padding: 22px; border: 1px solid var(--line); border-radius: 14px; }
.workflow-asset span { color: var(--accent); font-size: .65rem; font-weight: 900; }
.workflow-asset h4 { margin: 16px 0 7px; }
.workflow-asset p { margin: 0; color: var(--muted); font-size: .73rem; }
.maturity-line { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-top: 22px; }
.maturity-line span { padding: .5rem .7rem; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: .75rem; font-weight: 800; }
.maturity-line i { color: #9fb3c8; font-style: normal; }
.capstone-brief { padding: 34px; border-radius: 20px; background: var(--ink); color: white; }
.capstone-brief > span { color: #f6cb6f; font-size: .67rem; font-weight: 900; letter-spacing: .14em; }
.capstone-brief h3 { margin-top: 18px; color: white; }
.capstone-brief p { margin: 0; color: #bcccdc; }
.capstone-deliverables { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 14px; }
.capstone-deliverables article { padding: 17px 10px; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.capstone-deliverables span { color: var(--accent); font-weight: 900; }
.capstone-deliverables p { margin: .3rem 0 0; font-size: .67rem; }
.red-team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.red-team-grid article { padding: 21px; border: 1px solid #e9b4af; border-radius: 14px; background: #fff0ee; }
.red-team-grid span { color: var(--danger); font-size: .65rem; font-weight: 900; }
.red-team-grid p { margin: .8rem 0 0; font-size: .72rem; }
.thirty-day { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.thirty-day article { padding: 24px; border-top: 4px solid var(--accent); background: #f5f7fa; }
.thirty-day span { color: var(--accent); font-size: .65rem; font-weight: 900; }
.thirty-day h4 { margin: 17px 0 8px; }
.thirty-day p { margin: 0; color: var(--muted); font-size: .72rem; }
.metric-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; margin: 0; padding-left: 1.2rem; }
.metric-list li { font-size: .78rem; }
.final-statement { margin-top: 28px; padding: 19px; border-radius: 13px; background: var(--ink); color: white; font-weight: 800; text-align: center; }

.toolkit { border-top: 1px solid var(--line); }
.toolkit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tool-card { position: relative; overflow: hidden; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.tool-card > span { color: #d9e2ec; font-size: 2.4rem; font-weight: 900; }
.tool-card h3 { margin: 16px 0; font-size: 1.35rem; }
.tool-card pre { min-height: 175px; padding: 20px; border-radius: 12px; background: #102a43; color: #e6edf3; font-size: .75rem; }
.tool-card .copy-button { margin-top: 12px; background: var(--teal); }
.glossary { border-top: 1px solid var(--line); }
.glossary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.glossary-grid details { border: 1px solid var(--line); border-radius: 13px; background: white; }
.glossary-grid summary { display: flex; justify-content: space-between; cursor: pointer; padding: 17px 20px; list-style: none; }
.glossary-grid summary::-webkit-details-marker { display: none; }
.glossary-grid summary span { color: var(--muted); font-size: .72rem; }
.glossary-grid details p { margin: 0; padding: 0 20px 17px; color: var(--muted); font-size: .78rem; }
.sources { border-top: 1px solid var(--line); }
.source-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 25px; padding-left: 1.2rem; }
.source-links a { color: var(--teal); text-underline-offset: 3px; }
.site-footer { display: grid; grid-template-columns: 1fr auto auto; gap: 30px; align-items: center; padding: 35px max(20px, calc((100vw - var(--content)) / 2)); background: var(--ink); color: white; }
.site-footer > div { display: flex; align-items: center; gap: 12px; }
.site-footer p { margin: 0; color: #9fb3c8; font-size: .72rem; }
.site-footer a { color: white; font-size: .75rem; }
.toast { position: fixed; z-index: 5000; left: 50%; bottom: 25px; transform: translate(-50%, 30px); padding: .65rem 1rem; border-radius: 999px; background: var(--ink); color: white; font-size: .75rem; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

body.lecture { overflow: hidden; background: var(--paper); }
body.lecture .site-header, body.lecture .hero, body.lecture .thesis, body.lecture .prep, body.lecture .course-map, body.lecture .case-rail, body.lecture .toolkit, body.lecture .glossary, body.lecture .sources, body.lecture .site-footer { display: none !important; }
body.lecture .lecture-bar { display: grid; }
body.lecture main { padding-top: 96px; }
body.lecture .lesson { display: none; width: min(1500px, calc(100% - 48px)); margin: 0 auto; }
body.lecture .lesson.is-current { display: block; }
body.lecture .lesson-header, body.lecture .lesson-objectives, body.lecture .timeline { display: none; }
body.lecture .beat { display: none; height: calc(100vh - 120px); margin: 0; padding: clamp(30px, 4vw, 64px); overflow-y: auto; box-shadow: var(--shadow); }
body.lecture .beat.is-current { display: block; }
body.lecture .beat h3 { font-size: clamp(2.1rem, 4vw, 4.2rem); }
body.lecture .beat h4 { font-size: 1.15rem; }
body.lecture .beat p, body.lecture .beat li { font-size: max(1rem, 2.2vh); }
body.lecture .speaker-note { display: none; }
body.lecture.show-notes .speaker-note { display: block; }
body.lecture .complete-button { display: none; }

@media (max-width: 1100px) {
  .lesson-nav a { padding: .45rem; }
  .lesson-nav a span { display: none; }
  .brand { min-width: auto; }
  .brand small { display: none; }
  .map-track { grid-template-columns: repeat(3, 1fr); }
  .map-card { min-height: 235px; }
  .surface-grid { grid-template-columns: repeat(3, 1fr); }
  .release-flow { grid-template-columns: repeat(3, 1fr); }
  .capstone-deliverables { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 78px; }
  .site-header { grid-template-columns: 1fr auto; min-height: 68px; }
  .lesson-nav { order: 3; grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; padding-bottom: 3px; }
  .lesson-nav a { flex: 0 0 auto; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 55px; }
  .hero-stage { max-width: 650px; margin: 0 auto; }
  .split-heading, .case-rail, .website-value { grid-template-columns: 1fr; gap: 24px; }
  .prep-grid { grid-template-columns: 1fr; }
  .four-capabilities { grid-template-columns: 1fr 1fr; }
  .lesson-header { grid-template-columns: 90px 1fr; padding: 32px; }
  .lesson-question { grid-column: 2; padding-left: 0; border: 0; }
  .lesson-index { width: 78px; height: 96px; }
  .lesson-objectives { grid-template-columns: 1fr; }
  .timeline { overflow-x: auto; justify-content: flex-start; }
  .beat-grid.two-columns, .close-grid, .router-lab, .prompt-lab, .release-simulation { grid-template-columns: 1fr; gap: 25px; }
  .concept-grid.four, .hardware-map, .authority-levels, .artifact-grid, .thirty-day { grid-template-columns: 1fr 1fr; }
  .hardware-map > i { display: none; }
  .three-inputs, .model-cards, .brief-grid, .case-gallery, .uat-grid, .workflow-asset { grid-template-columns: 1fr 1fr; }
  .surface-grid { grid-template-columns: 1fr 1fr; }
  .surface-rule { grid-template-columns: 1fr 1fr; }
  .surface-grid .recommended, .artifact-grid article.featured { transform: none; }
  .effort-ladder { grid-template-columns: 1fr 1fr; }
  .effort-ladder i { display: none; }
  .pair-exercise { grid-template-columns: 1fr 1fr; }
  .chat-agent-compare { grid-template-columns: 1fr; }
  .versus, .transform-arrow { transform: rotate(90deg); text-align: center; }
  .before-after, .injection-demo { grid-template-columns: 1fr; }
  .product-brief ol { grid-template-columns: 1fr; }
  .product-brief li:last-child { grid-column: auto; }
  .release-flow { grid-template-columns: 1fr 1fr; }
  .red-team-grid { grid-template-columns: 1fr 1fr; }
  .toolkit-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 600px) {
  :root { --base-size: 17px; }
  body.font-large { --base-size: 19px; }
  body.font-xlarge { --base-size: 21px; }
  .section, .section-narrow, .lesson { width: min(100% - 24px, var(--content)); }
  .section { padding: 75px 0; }
  .site-header { padding-inline: 12px; }
  .brand strong { font-size: .82rem; }
  .brand-mark { width: 38px; height: 38px; }
  .header-actions .button { padding-inline: .65rem; font-size: .72rem; }
  .header-actions #fontButton { display: none; }
  .hero { width: calc(100% - 24px); padding-top: 45px; }
  .hero h1 { font-size: clamp(3rem, 17vw, 5.1rem); }
  .hero-actions .button { width: 100%; }
  .hero-facts { gap: 13px; justify-content: space-between; }
  .hero-facts li { display: block; }
  .hero-facts span { display: block; }
  .hero-stage { padding: 14px 3px; }
  .stage-question { padding: 30px 22px 22px; }
  .workflow { flex-wrap: wrap; }
  .deliverable-card { padding: 20px; }
  .orbit { display: none; }
  .four-capabilities, .map-track, .concept-grid.four, .hardware-map, .three-inputs, .traffic-grid, .surface-rule, .surface-grid, .auth-compare, .model-cards, .brief-grid, .case-gallery, .authority-levels, .artifact-grid, .uat-grid, .workflow-asset, .release-flow, .red-team-grid, .thirty-day, .glossary-grid, .source-links { grid-template-columns: 1fr; }
  .ultra-note { display: block; }
  .ultra-note span { display: block; margin-top: 5px; }
  .progress-panel { grid-template-columns: 1fr; gap: 12px; }
  .lesson { margin-block: 40px 80px; }
  .lesson-header { grid-template-columns: 1fr; padding: 28px 22px; border-radius: 22px 22px 0 0; }
  .lesson-index { width: 68px; height: 78px; }
  .lesson-index strong { font-size: 2.2rem; }
  .lesson-question { grid-column: auto; }
  .lesson-objectives { padding: 24px 20px; }
  .lesson-objectives ol { grid-template-columns: 1fr; }
  .beat { padding: 27px 20px; border-radius: 18px; }
  .compare-band { grid-template-columns: 1fr; }
  .compare-band > span { transform: rotate(90deg); text-align: center; }
  .demo-steps li { grid-template-columns: 44px 1fr; }
  .demo-steps li > small { grid-column: 2; }
  .layer-stack article { grid-template-columns: 42px 1fr; }
  .layer-stack small { grid-column: 2; text-align: left; }
  .effort-ladder { grid-template-columns: 1fr; }
  .case-gallery article { min-height: auto; }
  .live-example { display: block; }
  .live-example strong { display: block; margin-top: 8px; }
  .pair-exercise, .decision-questions { grid-template-columns: 1fr; }
  .capability-map { grid-template-columns: 1fr; }
  .cap-center { position: static; transform: none; width: 100px; height: 100px; margin: 0 auto; }
  .capability-map article:nth-of-type(even) { text-align: left; }
  .capability-map article:nth-of-type(even) p { margin-left: 0; }
  .tip-callout { display: block; }
  .risk-matrix { grid-template-columns: 42px 1fr; }
  .matrix-cells { grid-template-columns: 1fr; }
  .axis-x { display: none; }
  .capstone-deliverables { grid-template-columns: 1fr 1fr; }
  .metric-list { grid-template-columns: 1fr; }
  .lecture-bar { grid-template-columns: auto 1fr; padding-inline: 10px; }
  .lecture-status { text-align: left; }
  .lecture-pace { margin-left: 0; }
  .lecture-controls { grid-column: 1 / -1; justify-content: center; }
  body.lecture main { padding-top: 136px; }
  body.lecture .lesson { width: calc(100% - 16px); }
  body.lecture .beat { height: calc(100vh - 150px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

@media print {
  @page { size: A4; margin: 14mm 13mm 16mm; }
  html { font-size: 16px; }
  :root { --base-size: 10.5pt; }
  * { box-shadow: none !important; text-shadow: none !important; }
  body { background: white; color: #172b3a; }
  .site-header, .lecture-bar, .skip-link, .hero-actions, .hero-stage, .progress-panel, .complete-button, .copy-button, .toast, .site-footer, .speaker-note, #tokenNext { display: none !important; }
  .hero { display: block; min-height: auto; width: 100%; padding: 10mm 0 16mm; page-break-after: always; }
  .hero h1 { font-size: 38pt; }
  .hero-lead { max-width: none; }
  .section, .section-narrow, .lesson { width: 100%; padding: 8mm 0; margin: 0; }
  .thesis, .prep, .course-map, .case-rail, .toolkit, .glossary, .sources { page-break-before: always; }
  .map-track { grid-template-columns: repeat(3, 1fr); }
  .map-card { min-height: 55mm; }
  .lesson { page-break-before: always; }
  .lesson-header { border-radius: 0; padding: 8mm; background: white; color: var(--ink); border: 2px solid var(--ink); }
  .lesson-heading h2, .lesson-index strong, .lesson-question strong { color: var(--ink); }
  .lesson-heading p:last-child, .lesson-question span, .lesson-index small { color: #52697d; }
  .lesson-objectives, .timeline { border-color: #9fb3c8; }
  .beat { padding: 7mm; margin: 5mm 0; break-inside: auto; border-color: #9fb3c8; background: white !important; }
  .beat h3, .beat h4 { break-after: avoid; }
  article, li, table, pre, .prompt-card, .exercise-box { break-inside: avoid-page; page-break-inside: avoid; }
  .layer-stack { display: block !important; }
  .layer-stack article { margin-bottom: 3mm; break-inside: avoid-page !important; page-break-inside: avoid !important; }
  .release-simulation, .router-lab, .prompt-lab, .risk-matrix, .injection-demo { break-inside: avoid-page; page-break-inside: avoid; }
  .prompt-card, .prompt-output, .router-result, .incident-card, .capstone-brief, .artifact-selector { background: #f0f3f5 !important; color: var(--ink) !important; border: 1px solid #52697d; }
  .prompt-card pre, .prompt-output pre, .router-result h4, .incident-card h3, .capstone-brief h3, .artifact-selector strong, .artifact-selector span { color: var(--ink) !important; }
  .prompt-head span, .router-result p, .capstone-brief p, .artifact-selector p { color: #52697d !important; }
  details:not([open]) > :not(summary) { display: block !important; }
  summary { list-style: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; color: #52697d; font-size: 8pt; overflow-wrap: anywhere; }
  a[href^="#"]::after { content: none; }
  .section-label::after { content: " · AI 工作台 2026.08"; color: #829ab1; }
}
