:root {
  --paper: #ffffff;
  --mist: #f3f7f8;
  --mist-2: #eaf1f3;
  --ink: #143646;
  --muted: #617784;
  --faint: #899ba5;
  --line: #d8e4e8;
  --navy: #123d55;
  --navy-deep: #0c3045;
  --teal: #23878a;
  --teal-soft: #e1f1ef;
  --coral: #d95c48;
  --blue: #397596;
  --blue-soft: #eaf3f8;
  --amber: #a96f18;
  --amber-soft: #fff4dc;
  --yellow: #ecc94b;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --shadow: 0 18px 46px rgba(16, 52, 70, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { color: inherit; font: inherit; }
code { font-family: var(--mono); }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 18px;
  top: -60px;
  padding: 9px 14px;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--navy-deep);
  font-weight: 800;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 9px clamp(18px, 3.2vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}
.top-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand {
  display: flex;
  align-items: center;
  gap: 17px;
  color: var(--navy-deep);
  font-weight: 800;
  text-decoration: none;
}
.brand img { width: 126px; height: auto; }
.brand span { padding-left: 17px; border-left: 1px solid var(--line); color: var(--teal); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.tested-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #496a78;
  font-size: 12px;
  font-weight: 750;
}
.tested-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.toc-toggle,
.toc-head button {
  padding: 6px 10px;
  border: 1px solid #cbdbe1;
  border-radius: 5px;
  background: #fff;
  color: #466875;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.toc-toggle { display: none; }
.toc-is-collapsed .toc-toggle { display: inline-flex; }

.page-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 960px);
  gap: 38px;
  justify-content: start;
  width: 100%;
  margin: 0;
  padding: 28px clamp(18px, 3vw, 44px) 76px;
}
.toc {
  position: sticky;
  top: 94px;
  align-self: start;
  max-height: calc(100vh - 118px);
  min-height: calc(100vh - 122px);
  padding-right: 17px;
  border-right: 1px solid var(--line);
  overflow-y: auto;
  transition: opacity .2s ease, transform .2s ease;
}
.toc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.toc-head p { margin: 0; color: var(--faint); font-size: 13px; }
.toc nav { display: grid; gap: 2px; }
.toc nav a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 9px;
  border-left: 2px solid transparent;
  color: #5d737d;
  font-size: 13px;
  text-decoration: none;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.toc nav a > span { flex: 0 0 auto; color: #9aabb3; font-family: var(--mono); font-size: 10px; font-weight: 600; }
.toc nav a:hover,
.toc nav a.active {
  border-color: var(--teal);
  color: var(--navy-deep);
  background: #f3f8f8;
  font-weight: 750;
}
.page-shell.toc-collapsed { grid-template-columns: minmax(0, 960px); }
.page-shell.toc-collapsed .toc { display: none; }
.page-shell.toc-collapsed main { grid-column: 1; }

main { min-width: 0; }
.intro {
  padding: 54px 0 44px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  margin: 0 0 15px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}
.intro h1 {
  max-width: 880px;
  margin: 0;
  color: var(--navy-deep);
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.025em;
}
.title-medgroup { color: var(--teal); }
.title-automation {
  color: var(--coral);
  background: linear-gradient(to top, #fde6df 0 19%, transparent 19%);
}
.intro-lede {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}
.reading-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 28px;
  padding: 15px 18px;
  border-left: 3px solid var(--teal);
  background: #eef8f6;
  color: #3f626b;
  font-size: 13px;
}
.reading-path b { color: var(--navy-deep); }
.reading-path i { color: #86a1a8; font-style: normal; }

section { scroll-margin-top: 88px; }
.overview-section,
.manual-section { padding: 58px 0; border-bottom: 1px solid var(--line); }
.plain-heading { max-width: 790px; margin-bottom: 28px; }
.plain-heading > p,
.case-heading > p {
  margin: 0 0 5px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.chapter-no {
  display: inline-block;
  min-width: 30px;
  margin-right: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  background: var(--coral);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-align: center;
}
.plain-heading h2,
.case-heading h2,
.open-ended h2 {
  margin: 0;
  color: var(--navy-deep);
  font-family: var(--display);
  font-size: clamp(31px, 4vw, 44px);
  line-height: 1.3;
}
.plain-heading h2::after,
.case-heading h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 11px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--coral));
}
.plain-heading > span,
.case-heading > span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
}

.access-requirement {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: -5px 0 24px;
  padding: 11px 14px;
  border-left: 3px solid var(--yellow);
  color: #566c74;
  background: #fff9df;
  font-size: 12px;
}
.access-requirement b { color: #735b0a; }
.access-requirement a { margin-left: auto; color: #176f7b; font-weight: 800; text-decoration: none; }
.access-requirement a:hover { text-decoration: underline; }

.key-acquisition {
  display: grid;
  grid-template-columns: minmax(250px, .82fr) minmax(0, 1.18fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.key-intro { padding: 25px 34px 25px 0; }
.key-intro > span {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}
.key-intro h3 { margin: 6px 0 5px; color: var(--navy-deep); font-family: var(--display); font-size: 25px; }
.key-intro p { margin: 0; color: var(--muted); font-size: 13px; }
.key-intro a {
  display: inline-flex;
  margin-top: 15px;
  padding: 7px 11px;
  border: 1px solid #b8d1d6;
  border-radius: 5px;
  color: #176f7b;
  background: #f4faf9;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.key-intro a:hover { border-color: var(--teal); background: var(--teal-soft); }
.key-steps { margin: 0; padding: 0; border-left: 1px solid var(--line); list-style: none; }
.key-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 22px 0 22px 28px; }
.key-steps li + li { border-top: 1px solid var(--line); }
.key-steps li > b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-family: var(--mono);
  font-size: 12px;
}
.key-steps h3 { margin: 0; color: var(--navy-deep); font-size: 15px; }
.key-steps p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.connection-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  gap: 26px;
  align-items: stretch;
  margin-top: 30px;
}
.mcp-config-card {
  overflow: hidden;
  border: 1px solid #234e57;
  border-radius: 9px;
  color: #d9ebea;
  background: #0d3036;
}
.mcp-config-head {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 8px 13px;
  border-bottom: 1px solid #2c535b;
  background: #143f46;
}
.mcp-config-head > div { display: flex; gap: 6px; }
.mcp-config-head i { width: 9px; height: 9px; border-radius: 50%; background: #55ad8c; }
.mcp-config-head i:first-child { background: #ed6754; }
.mcp-config-head i:nth-child(2) { background: var(--yellow); }
.mcp-config-head b { font-family: var(--mono); font-size: 11px; font-weight: 650; }
.mcp-config-head b span { margin-right: 5px; color: #fff3b0; }
.mcp-config-head button {
  margin-left: auto;
  padding: 5px 9px;
  border: 0;
  border-radius: 5px;
  color: var(--navy-deep);
  background: var(--yellow);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.mcp-config-card pre { margin: 0; padding: 24px; overflow: auto; font: 12.5px/1.85 var(--mono); white-space: pre; }
.mcp-config-card pre code { color: inherit; }
.mcp-config-card > p { margin: 0; padding: 13px 17px; border-top: 1px solid #2c535b; color: #b9d0d1; background: #12373d; font-size: 11px; }
.mcp-config-card > p code { color: #fff3b0; }
.connection-shot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--mist);
}
.connection-shot > div { position: relative; width: min(100%, 390px); margin: 0 auto; }
.connection-shot img { width: 100%; border: 1px solid #d0dde1; border-radius: 7px; background: #fff; }
.connection-pin {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 5px 15px rgba(16,52,70,.2);
}
.pin-open-mcp { top: 3%; right: 9%; }
.pin-tools-ready { top: 31%; left: 43%; }
.connection-shot figcaption { display: grid; gap: 8px; margin-top: 13px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.connection-shot figcaption .connection-caption-title { color: var(--navy-deep); font-size: 12px; }
.connection-shot figcaption span { display: grid; grid-template-columns: 22px 1fr; gap: 7px; }
.connection-shot figcaption b { color: var(--coral); font-family: var(--mono); }
.connection-shot figcaption i { font-style: normal; }
.connection-shot figcaption strong { color: var(--navy-deep); }

.task-lab {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  min-height: 580px;
  border: 1px solid #cbdde3;
  border-radius: 11px;
  background: #f6f9fa;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.task-switcher {
  display: flex;
  flex-direction: column;
  padding: 25px 22px 22px;
  color: #fff;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--navy-deep);
  background-size: 24px 24px;
}
.switcher-intro > span { color: #8fd1d1; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.switcher-intro h3 { margin: 7px 0 4px; font-family: var(--display); font-size: 27px; }
.switcher-intro p { margin: 0; color: #bdd0d8; font-size: 12px; line-height: 1.7; }
.task-buttons { display: grid; gap: 7px; margin-top: 20px; }
.task-button {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 7px;
  color: #fff;
  background: rgba(255,255,255,.04);
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.task-button:hover { background: rgba(255,255,255,.08); }
.task-button.active { border-color: #5fd0d1; background: rgba(53,159,163,.18); transform: translateX(3px); }
.task-button.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #67d4d1;
  transform-origin: left;
  animation: task-progress 7s linear forwards;
}
.task-lab.paused .task-button.active::after { animation-play-state: paused; }
.task-button span { display: block; color: #91b2bf; font-size: 10px; }
.task-button b { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; }
@keyframes task-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.task-output { padding: 26px; overflow: hidden; }
.task-output-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.task-output-head span { color: var(--teal); font-size: 11px; font-weight: 800; }
.task-output-head h3 { margin: 4px 0 0; font-family: var(--display); font-size: 28px; line-height: 1.35; }
.task-output-head a { flex: 0 0 auto; color: #15788b; font-size: 12px; font-weight: 750; text-decoration: none; }
.input-label { margin: 19px 0 8px; color: var(--faint); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.input-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.input-chips span { padding: 7px 10px; border: 1px solid #d1e0e4; border-radius: 999px; background: #fff; color: #58707b; font-size: 11px; }
.input-chips b { margin-right: 5px; color: var(--navy); }
.task-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 31px 0 24px; }
.process-step { position: relative; min-width: 0; padding: 28px 8px 0 0; }
.process-step:not(:last-child)::after { content: ""; position: absolute; left: 12px; right: -2px; top: 10px; height: 1px; background: #bed3d8; }
.process-step i { position: absolute; z-index: 2; left: 0; top: 2px; width: 17px; height: 17px; border: 4px solid #eef4f5; border-radius: 50%; background: #a9bec5; box-shadow: 0 0 0 1px #a9bec5; }
.process-step.active i { background: var(--coral); box-shadow: 0 0 0 1px var(--coral), 0 0 0 5px rgba(217,92,72,.12); }
.process-step.done i { background: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.process-step span { display: block; padding-right: 7px; }
.process-step b { display: block; color: var(--navy-deep); font-size: 12px; }
.process-step small { display: block; margin-top: 3px; color: var(--faint); font-size: 10px; line-height: 1.45; }
.result-display {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  min-height: 172px;
  padding: 24px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #1f7580, #174b65);
  transition: opacity .18s ease, transform .18s ease;
}
.result-display.loading { opacity: .55; transform: translateY(3px); }
.result-display span { color: #9cd9d9; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.result-display h3 { margin: 7px 0 5px; font-family: var(--display); font-size: 25px; line-height: 1.35; }
.result-display p { max-width: 560px; margin: 0; color: #d5e7eb; font-size: 12px; line-height: 1.65; }
.result-display strong { color: #fff; font-family: var(--mono); font-size: 31px; white-space: nowrap; }

.manual-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.manual-steps li { display: grid; grid-template-columns: 105px 1fr; gap: 25px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.manual-steps li > span { color: var(--coral); font-family: var(--mono); font-size: 12px; font-weight: 800; }
.manual-steps h3 { margin: 0; font-size: 18px; }
.manual-steps p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
figure { margin: 0; }
.manual-figure { margin-top: 30px; }
.manual-figure > a { position: relative; display: block; border: 1px solid var(--line); background: #eef3f4; overflow: hidden; }
.manual-figure img { width: 100%; height: auto; margin: 0 auto; }
.manual-figure figcaption { padding: 11px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.manual-figure figcaption b { color: var(--navy-deep); }
.config-figure img { width: min(100%, 1010px); }
.shot-pin,
.figure-mark {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(16,52,70,.22);
}
.shot-pin { padding: 6px 9px; }
.shot-pin b,
.figure-mark b { font-family: var(--mono); }
.figure-mark { left: 14px; top: 14px; padding: 8px 11px; }
.pin-workspace { left: 24%; top: 18%; }
.pin-prompt { left: 57%; top: 29%; }
.pin-model { left: 3%; top: 55%; }
.pin-save { right: 1%; top: 1%; }
.pin-run { right: 19%; top: 1%; }
.config-key { display: none; }
.report-figure > a { padding: 15px; }
.report-figure img { width: min(100%, 780px); border: 1px solid #e1eaed; }
.wide-report img { width: min(100%, 900px); }

.case-section { --case-accent: var(--teal); --case-soft: var(--teal-soft); }
#case-operation { --case-accent: var(--blue); --case-soft: var(--blue-soft); }
#case-pharma { --case-accent: var(--amber); --case-soft: var(--amber-soft); }
#case-academic { --case-accent: var(--coral); --case-soft: #fdebe7; }
.case-heading { max-width: 820px; padding-left: 17px; border-left: 4px solid var(--case-accent); }
.case-heading > p { color: var(--case-accent); }
.case-heading h2::after { background: var(--case-accent); }
.case-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 26px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case-facts div { padding: 14px 16px 14px 0; }
.case-facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.case-facts dt { color: var(--case-accent); font-size: 11px; font-weight: 800; }
.case-facts dd { margin: 3px 0 0; color: var(--navy-deep); font-size: 13px; font-weight: 750; }
.case-facts code { font-size: 12px; }
.prompt-block { margin-top: 24px; padding: 17px 18px; border-left: 3px solid var(--case-accent, var(--teal)); background: var(--case-soft, var(--mist)); }
.prompt-block > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.prompt-block b { color: var(--case-accent, var(--navy)); font-size: 12px; }
.prompt-block button { padding: 5px 10px; border: 0; border-radius: 5px; background: var(--case-accent, var(--navy)); color: #fff; font-size: 11px; font-weight: 800; cursor: pointer; }
.prompt-block button:hover { filter: brightness(.92); }
.prompt-block p { margin: 9px 0 0; color: #465f69; font-size: 13px; line-height: 1.85; }

.daily-section { padding-bottom: 50px; }
.daily-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.daily-flow li { position: relative; min-height: 122px; padding: 21px 18px; }
.daily-flow li + li { border-left: 1px solid var(--line); }
.daily-flow b { display: block; color: var(--coral); font-family: var(--mono); font-size: 20px; }
.daily-flow span { display: block; margin-top: 8px; color: var(--navy-deep); font-size: 13px; font-weight: 750; line-height: 1.6; }
.open-ended { min-height: 260px; padding: 65px 0; border-bottom: 1px solid var(--line); }
.open-ended p { margin: 0 0 8px; color: var(--teal); font-size: 13px; font-weight: 800; }
.open-ended h2 { max-width: 760px; }
.qa-list { border-top: 1px solid var(--line); }
.qa-list article { display: grid; grid-template-columns: minmax(210px, .8fr) 1.3fr; gap: 30px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.qa-list h3 { margin: 0; color: var(--navy-deep); font-size: 15px; }
.qa-list h3::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--teal); vertical-align: 2px; }
.qa-list p { margin: 0; color: var(--muted); font-size: 13px; }
.closing-note { margin: 24px 0 0; padding: 13px 15px; border-left: 3px solid var(--yellow); background: #fff9df; color: #566c74; font-size: 12px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 0 0; color: var(--faint); font-size: 12px; }
.footer div { display: flex; align-items: center; gap: 10px; }
.footer img { width: 38px; height: 38px; }
.footer p { margin: 0; }

.copy-toast { position: fixed; z-index: 90; left: 50%; bottom: 26px; transform: translate(-50%, 16px); padding: 8px 13px; border-radius: 999px; background: var(--navy-deep); color: #fff; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.copy-toast.show { opacity: 1; transform: translate(-50%, 0); }
a:focus-visible,
button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

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

@media (max-width: 1080px) {
  .page-shell { grid-template-columns: 174px minmax(0, 1fr); gap: 26px; padding-inline: 20px; }
  .task-lab { grid-template-columns: 250px minmax(0, 1fr); }
  .task-output { padding: 22px; }
  .task-process { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .process-step:nth-child(2)::after { display: none; }
}

@media (max-width: 820px) {
  .brand span,
  .tested-badge { display: none; }
  .toc-toggle { display: inline-flex; }
  .page-shell { display: block; padding: 16px 16px 54px; }
  .toc { position: fixed; z-index: 70; inset: 70px 12px auto; display: none; min-height: 0; max-height: calc(100vh - 84px); padding: 16px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
  .toc.open { display: block; }
  .toc-head button { display: none; }
  .intro { padding-top: 34px; }
  .intro h1 { font-size: clamp(40px, 11vw, 56px); }
  .task-lab { grid-template-columns: 1fr; }
  .task-switcher { min-height: 0; }
  .task-buttons { grid-template-columns: repeat(2, 1fr); }
  .task-output-head { flex-direction: column; gap: 8px; }
  .task-process { grid-template-columns: 1fr; gap: 12px; overflow: visible; }
  .process-step { min-height: 48px; padding: 0 0 0 31px; }
  .process-step i { left: 1px; top: 5px; }
  .process-step:not(:last-child)::after {
    display: block;
    left: 9px;
    right: auto;
    top: 21px;
    bottom: -17px;
    width: 1px;
    height: auto;
  }
  .process-step span { padding-right: 0; }
  .result-display { grid-template-columns: 1fr; }
  .key-acquisition,
  .connection-grid { grid-template-columns: 1fr; }
  .key-intro { padding-right: 0; }
  .key-steps { border-top: 1px solid var(--line); border-left: 0; }
  .key-steps li { padding-left: 0; }
  .connection-shot > div { width: min(100%, 440px); }
  .manual-steps li { grid-template-columns: 78px 1fr; gap: 15px; }
  .shot-pin { display: none; }
  .config-key { display: flex; flex-wrap: wrap; gap: 7px; padding: 11px 12px; border: 1px solid var(--line); border-top: 0; background: #f7fafb; }
  .config-key span { display: inline-flex; align-items: center; gap: 4px; color: #54707b; font-size: 11px; }
  .config-key b { color: var(--coral); font-family: var(--mono); }
  .case-facts { grid-template-columns: 1fr; }
  .case-facts div { padding: 12px 0; }
  .case-facts div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .daily-flow { grid-template-columns: repeat(2, 1fr); }
  .daily-flow li:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .daily-flow li:nth-child(4) { border-top: 1px solid var(--line); }
  .qa-list article { grid-template-columns: 1fr; gap: 6px; }
  .footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .topbar { min-height: 62px; padding-inline: 13px; }
  .brand img { width: 112px; }
  .page-shell { padding-inline: 13px; }
  .intro { padding-bottom: 36px; }
  .intro h1 { font-size: 39px; }
  .intro-lede { font-size: 15px; }
  .reading-path { align-items: flex-start; flex-direction: column; }
  .reading-path i { display: none; }
  .overview-section,
  .manual-section { padding: 44px 0; }
  .plain-heading h2,
  .case-heading h2,
  .open-ended h2 { font-size: 31px; }
  .task-switcher { padding: 21px 17px; }
  .task-buttons { grid-template-columns: 1fr; }
  .task-output { padding: 18px 14px; }
  .task-output-head h3 { font-size: 24px; }
  .task-process { margin-block: 25px 19px; }
  .result-display { min-height: 190px; padding: 19px; }
  .result-display strong { font-size: 26px; }
  .key-intro { padding-block: 21px; }
  .access-requirement { align-items: flex-start; flex-direction: column; }
  .access-requirement a { margin-left: 0; }
  .key-intro a { display: flex; justify-content: center; }
  .key-steps li { grid-template-columns: 30px 1fr; gap: 9px; padding-block: 18px; }
  .key-steps li > b { width: 26px; height: 26px; }
  .connection-grid { gap: 18px; margin-top: 22px; }
  .mcp-config-card pre { padding: 18px 14px; font-size: 10.5px; }
  .connection-shot { padding: 10px; }
  .connection-pin { width: 27px; height: 27px; }
  .manual-steps li { grid-template-columns: 1fr; gap: 5px; }
  .manual-figure { margin-top: 23px; }
  .report-figure > a { padding: 7px; }
  .prompt-block { padding: 15px 13px; }
  .daily-flow { grid-template-columns: 1fr; }
  .daily-flow li + li { border-top: 1px solid var(--line); border-left: 0; }
  .daily-flow li { min-height: 96px; }
  .open-ended { min-height: 220px; padding: 50px 0; }
}
