/* Local system fonts only; this stylesheet also works with file:// URLs. */
:root {
  color-scheme: light;
  --ink: #192b43;
  --body-ink: #304158;
  --muted: #596b80;
  --teal: #096e69;
  --teal-soft: #e9f5f2;
  --blue: #245fba;
  --line: #dce4eb;
  --paper: #fff;
  --canvas: #f6f8fb;
  --code: #142238;
  --focus: #1d63d5;
  --header-height: 4.75rem;
  --sidebar-width: 17.5rem;
  --radius: 0.8rem;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--body-ink); line-height: 1.65; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
a { color: var(--blue); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal); }
button, a, input, summary, [tabindex] { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
svg { vertical-align: middle; }
button svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
button { color: var(--ink); }
::selection { background: #c9e8ee; color: #142238; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.65rem;
  left: 1rem;
  padding: 0.8rem 1.2rem;
  transform: translateY(-180%);
  border-radius: 0.4rem;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); color: #fff; }
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { max-width: 96rem; min-height: var(--header-height); margin: auto; padding: 0 2.5rem; display: flex; align-items: center; gap: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; flex: 0 0 auto; }
.brand:hover { color: var(--ink); }
.brand-symbol { width: 2.65rem; height: 2.65rem; display: block; flex: 0 0 auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text strong { font-size: 1.1rem; letter-spacing: -0.02em; }
.brand-text > span { margin-top: 0.15rem; color: var(--muted); font-size: 0.73rem; }
.header-context { margin-left: 1.1rem; padding-left: 1.65rem; border-left: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; }
.header-actions { display: flex; align-items: center; gap: 0.65rem; }
.language-switcher { display: flex; align-items: center; gap: 0.2rem; margin-left: auto; flex-shrink: 0; }
.language-switcher a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.45rem 0.6rem; border: 1px solid transparent; border-radius: 0.4rem; color: var(--muted); font-size: 0.8rem; text-decoration: none; white-space: nowrap; }
.language-switcher a:hover, .language-switcher a[aria-current="page"] { border-color: var(--line); background: var(--teal-soft); color: var(--teal); }
.language-switcher a[aria-current="page"] { font-weight: 750; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0.6rem; border: 1px solid transparent; border-radius: 0.55rem; background: transparent; }
.icon-button:hover { border-color: var(--line); background: var(--canvas); }
.toolbar-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.5rem 0.8rem; border: 1px solid var(--line); border-radius: 0.5rem; background: var(--paper); color: var(--ink); font-size: 0.8rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.toolbar-button:hover { background: var(--canvas); color: var(--ink); }
.theme-feedback { margin: 1rem 2.5rem; padding: 0.8rem 1rem; border: 1px solid #b78335; border-radius: 0.5rem; background: #fff5df; color: #754914; font-size: 0.8rem; }
kbd { display: inline-block; min-width: 1.3rem; padding: 0.03rem 0.3rem; border: 1px solid #cbd5e0; border-bottom-width: 2px; border-radius: 0.3rem; background: #fff; color: #455970; font: 0.75rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-align: center; }
.menu-toggle, .menu-close { display: none; }

.workspace { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); max-width: 96rem; margin: 0 auto; padding: 0 2.5rem; }
.guide-sidebar { min-width: 0; border-right: 1px solid var(--line); }
.sidebar-inner { position: sticky; top: var(--header-height); max-height: calc(100vh - var(--header-height)); max-height: calc(100dvh - var(--header-height)); padding: 2.5rem 1.65rem 2rem 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c7d3df transparent; }
.sidebar-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; }
.eyebrow { margin: 0 0 0.4rem; color: var(--teal); font-size: 0.66rem; font-weight: 750; letter-spacing: 0.14em; line-height: 1.5; }
.sidebar-heading h2, .panel-heading h2 { margin: 0; color: var(--ink); font-size: 1rem; font-weight: 750; }
.chapter-nav { margin: 0 -0.5rem 1.8rem; font-size: 0.86rem; }
.chapter-nav ul { margin: 0; padding: 0; list-style: none; }
.chapter-nav li { margin: 0.15rem 0; }
.chapter-nav a { display: block; padding: 0.65rem 0.75rem; border-left: 3px solid transparent; border-radius: 0 0.4rem 0.4rem 0; color: #4a5d74; text-decoration: none; line-height: 1.55; overflow-wrap: anywhere; word-break: keep-all; }
.chapter-nav a:hover { background: var(--canvas); color: var(--ink); }
.chapter-nav a[aria-current="location"] { border-left-color: var(--teal); background: var(--teal-soft); color: #075e59; font-weight: 750; }
.chapter-nav a.is-current-chapter { color: var(--ink); font-weight: 700; }
.chapter-nav ul ul { margin-left: 0.7rem; padding-left: 0.4rem; border-left: 1px solid var(--line); }
.chapter-nav ul ul a { font-size: 0.77rem; padding-top: 0.4rem; padding-bottom: 0.4rem; }
.chapter-nav a.is-complete::after { content: " ✓"; color: var(--teal); font-weight: 750; }
.related-documents { margin: -0.6rem 0 1.25rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); font-size: 0.78rem; }
.related-documents summary { min-height: 2.75rem; padding: 0.6rem 0; color: var(--ink); font-weight: 700; }
.related-documents ul { margin: 0.35rem 0 0.5rem; padding: 0; list-style: none; }
.related-documents a { display: block; min-height: 2.75rem; padding: 0.6rem; border-radius: 0.4rem; color: var(--muted); text-decoration: none; }
.related-documents a:hover, .related-documents a[aria-current="page"] { background: var(--teal-soft); color: var(--teal); }
.related-documents a[aria-current="page"] { font-weight: 700; }
.progress-panel { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.panel-heading h2 { font-size: 0.87rem; }
.local-badge { padding: 0.15rem 0.45rem; border-radius: 0.3rem; background: #e8edf3; color: #4e6178; font-size: 0.65rem; font-weight: 700; }
.progress-summary { margin: 0.8rem 0 0.3rem; font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
progress { display: block; width: 100%; height: 0.35rem; border: 0; border-radius: 1rem; overflow: hidden; background: #dce6ec; color: var(--teal); accent-color: var(--teal); }
progress::-webkit-progress-bar { background: #dce6ec; border-radius: 1rem; }
progress::-webkit-progress-value { background: var(--teal); border-radius: 1rem; }
progress::-moz-progress-bar { background: var(--teal); border-radius: 1rem; }
summary { cursor: pointer; }
.progress-details { margin-top: 0.85rem; font-size: 0.78rem; }
.progress-details summary, .keyboard-help summary { min-height: 2.75rem; align-content: center; padding: 0.6rem 0; color: var(--ink); font-weight: 650; }
.progress-checklist { margin-top: 0.35rem; }
.progress-item { display: flex; align-items: flex-start; gap: 0.6rem; min-height: 2.75rem; padding: 0.55rem 0; line-height: 1.55; cursor: pointer; }
.progress-item input { flex: 0 0 auto; width: 1rem; height: 1rem; margin: 0.15rem 0 0; accent-color: var(--teal); }
.progress-item span { min-width: 0; overflow-wrap: anywhere; word-break: keep-all; }
.progress-item:has(input:checked) span { color: var(--teal); }
.progress-bottom { display: flex; align-items: center; justify-content: space-between; gap: 0.35rem; margin-top: 0.5rem; font-size: 0.67rem; color: var(--muted); }
.text-button { min-height: 2.75rem; flex-shrink: 0; padding: 0.45rem 0.25rem; border: 0; background: transparent; color: var(--blue); font-size: 0.75rem; text-decoration: underline; text-underline-offset: 0.2rem; }
.storage-note { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.68rem; line-height: 1.65; }
.storage-note.is-warning { color: #8d4420; }
.keyboard-help { padding: 0.55rem 0; margin-top: 1rem; font-size: 0.77rem; border-bottom: 1px solid var(--line); }
.keyboard-help dl { margin: 0.3rem 0 0.8rem; }
.keyboard-help dl > div { margin: 0.6rem 0; }
.keyboard-help dd { margin: 0.3rem 0 0; color: var(--muted); }
.sidebar-note { max-width: 15rem; margin: 1.15rem 0 0; color: var(--muted); font-size: 0.7rem; line-height: 1.8; word-break: keep-all; }

.main-content { min-width: 0; width: 100%; max-width: 61rem; padding: 2.7rem 0 0; }
#main-content, #guide-start { scroll-margin-top: calc(var(--header-height) + 1.5rem); }
.main-content:focus { outline: none; }
.back-to-main { display: inline-block; min-height: 2.75rem; margin: -0.65rem 0 0.8rem; padding: 0.5rem 0; color: var(--teal); font-size: 0.84rem; font-weight: 700; }
.reading-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); font-size: 0.73rem; }
.document-label { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--teal); font-weight: 750; }
.document-label > span { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--teal); }
.document-date { color: var(--muted); font-variant-numeric: tabular-nums; }
.guide-content { font-size: 1.045rem; line-height: 1.95; word-break: keep-all; overflow-wrap: anywhere; }
.guide-content > :first-child { margin-top: 0; }
.guide-content h1, .guide-content h2, .guide-content h3, .guide-content h4, .guide-content h5, .guide-content h6 { color: var(--ink); line-height: 1.45; letter-spacing: -0.025em; scroll-margin-top: calc(var(--header-height) + 1.5rem); }
.guide-content h1 { max-width: 22em; margin: 0 0 1.5rem; font-size: clamp(2rem, 3vw, 3rem); font-weight: 800; line-height: 1.32; letter-spacing: -0.045em; text-wrap: balance; }
.guide-content h1 + p { margin-top: 0; font-size: 1.13rem; line-height: 1.95; color: #4f627b; }
.guide-content h2 { position: relative; margin: 4.5rem 0 1.5rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: 1.8rem; font-weight: 780; }
.guide-content h2::before { position: absolute; content: ""; top: -2px; left: 0; width: 2.8rem; height: 3px; border-radius: 2px; background: var(--teal); }
.guide-content h3 { margin: 2.6rem 0 0.85rem; font-size: 1.3rem; font-weight: 750; }
.guide-content h4 { margin: 1.9rem 0 0.75rem; font-size: 1.08rem; }
.guide-content h5, .guide-content h6 { margin: 1.5rem 0 0.7rem; font-size: 1rem; }
.guide-content p { margin: 1rem 0 1.25rem; }
.guide-content .eyebrow { margin: 0 0 0.85rem; font-size: 0.72rem; line-height: 1.6; }
.guide-content .hero-summary { margin: 0 0 2.25rem; color: #4f627b; font-size: 1.12rem; line-height: 1.95; }
.guide-content div.hero-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1rem 1.5rem; margin: 1.5rem 0 2rem; padding: 1.15rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); font-size: 0.84rem; line-height: 1.8; }
.guide-content .hero-summary > div { min-width: 0; }
.guide-content .hero-summary > div > strong { display: block; margin-bottom: 0.35rem; color: var(--teal); font-size: 0.73rem; font-weight: 750; }
.guide-content .hero-summary > div > span { display: block; color: var(--body-ink); font-size: 0.84rem; line-height: 1.8; }
.guide-content strong { color: #223852; font-weight: 750; }
.guide-content ul, .guide-content ol { padding-left: 1.5rem; margin: 1.1rem 0 1.5rem; }
.guide-content li { padding-left: 0.35rem; margin: 0.45rem 0; }
.guide-content li::marker { color: var(--teal); font-weight: 650; }
.guide-content li > ul, .guide-content li > ol { margin-top: 0.35rem; margin-bottom: 0.5rem; }
.guide-content li > p { margin: 0.5rem 0; }
.guide-content .learning-path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.3rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.guide-content .learning-path li { margin: 0; padding: 0; }
.guide-content .learning-path > li { position: relative; display: flex; flex-direction: column; gap: 0.55rem; padding: 0.65rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); }
.guide-content .learning-path > li:not(:last-child)::after { content: "→"; position: absolute; top: 1.05rem; left: calc(100% + 0.28rem); color: var(--teal); font-size: 1.05rem; line-height: 1; }
.guide-content .learning-path .phase-title { margin: 0; padding: 0.35rem 0.4rem 0.15rem; line-height: 1.5; }
.guide-content .learning-path .phase-title strong { display: block; font-size: 0.95rem; white-space: normal; }
.guide-content .learning-path .phase-title span { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.76rem; line-height: 1.55; }
.guide-content .learning-path ul { display: grid; flex: 1; align-content: start; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.learning-path a { display: flex; align-items: center; gap: 0.65rem; height: 100%; min-height: 3rem; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 0.5rem; background: var(--paper); color: var(--ink); font-size: 0.82rem; line-height: 1.5; text-decoration: none; }
.learning-path a:hover { border-color: var(--teal); background: var(--teal-soft); }
.guide-content .learning-path strong { flex: 0 0 auto; white-space: nowrap; color: var(--teal); font-variant-numeric: tabular-nums; }
.guide-content .step-next { margin: 2rem 0 0; }
.step-next a + a { margin-left: 0.5rem; margin-top: 0.5rem; }
.step-next a { display: inline-block; min-height: 2.75rem; padding: 0.65rem 1rem; border-radius: 0.5rem; background: var(--teal); color: #fff; font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.step-next a:hover { background: #075b57; color: #fff; }
.guide-content hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.guide-content blockquote, .guide-content .note, .noscript-note { margin: 1.8rem 0; padding: 1rem 1.35rem; border: 1px solid #cbe5df; border-left: 3px solid var(--teal); border-radius: 0 0.65rem 0.65rem 0; background: #f1f8f6; color: #2a514e; font-size: 0.93rem; }
.guide-content blockquote > :first-child { margin-top: 0; }
.guide-content blockquote > :last-child { margin-bottom: 0; }
.guide-content .warning { border-color: #eadbc5; border-left-color: #956120; background: #fcf8ee; color: #684d2c; }
.guide-content code { padding: 0.12rem 0.35rem; border: 1px solid #e0e7ef; border-radius: 0.28rem; background: #f0f4f8; color: #1e527d; font: 0.86em/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.guide-content pre { max-width: 100%; margin: 1.6rem 0 2rem; padding: 1.35rem 1.5rem; overflow-x: auto; border: 1px solid #253c59; border-radius: var(--radius); background: var(--code); color: #edf4ff; font-size: 0.84rem; line-height: 1.85; tab-size: 4; scrollbar-width: thin; scrollbar-color: #647893 var(--code); }
.guide-content pre code { display: block; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font-size: inherit; line-height: inherit; white-space: pre; overflow-wrap: normal; word-break: normal; }
.guide-content pre.terminal-command code { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.guide-content .command-label { margin: 1.5rem 0 0.5rem; color: var(--teal); font-size: 0.85rem; font-weight: 750; line-height: 1.7; }
.guide-content .command-label + pre { margin-top: 0.5rem; }
.js .command-label { display: none; }
.code-block.is-command { border-color: var(--teal); }
.guide-content .step-route, .guide-content .execution-guide { margin: 1rem 0 1.5rem; padding: 0.8rem 1rem; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 0 0.5rem 0.5rem 0; background: var(--canvas); font-size: 0.9rem; line-height: 1.85; }
.guide-content .step-route a, .guide-content .execution-guide a { display: inline-block; padding: 0.2rem 0; }
.guide-content .execution-guide { border-left-color: var(--teal); }
.guide-content .output-notice { padding: 0.85rem 1rem; border: 1px solid #cbdce9; border-radius: 0.5rem; background: #f1f6fb; font-size: 0.85rem; line-height: 1.8; }
.guide-content .output-label { margin: 1.5rem 0 0.5rem; padding-left: 0.65rem; border-left: 3px solid var(--teal); color: var(--teal); font-size: 0.8rem; font-weight: 700; break-after: avoid-page; }
.guide-content .output-label + pre { margin-top: 0.5rem; padding: 1rem 1.25rem; border-color: #cbdce9; background: #f1f6fb; color: var(--ink); }
.guide-content .output-label + pre code { white-space: pre-wrap; overflow-wrap: anywhere; }
.guide-content .share-checkpoint,
.guide-content .explanation-heading { margin: 1.8rem 0 0.6rem; padding: 0.75rem 1rem; border-left: 3px solid var(--teal); border-radius: 0 0.5rem 0.5rem 0; background: var(--teal-soft); color: var(--ink); font-size: 0.95rem; font-weight: 750; scroll-margin-top: calc(var(--header-height) + 1.5rem); break-after: avoid-page; }
.guide-content .share-checkpoint + ul { margin-top: 0.6rem; }
.guide-content .lab-concept { margin: 1.25rem 0 1.75rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; background: var(--canvas); font-size: 0.94rem; line-height: 1.85; }
.guide-content .lab-concept p { margin: 0.6rem 0; }
.guide-content .lab-concept p:first-child { margin-top: 0; }
.guide-content .lab-concept p:last-child { margin-bottom: 0; }
.guide-content .concept-primer, .guide-content .concept-flow { scroll-margin-top: calc(var(--header-height) + 1.5rem); }
.guide-content .concept-primer { margin: 1.5rem 0; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.93rem; line-height: 1.8; }
.concept-primer > p { margin-top: 0; }
.concept-primer dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.5rem; margin: 0; }
.concept-primer dl > div { min-width: 0; }
.concept-primer dt { color: var(--teal); font-weight: 750; }
.concept-primer dd { margin: 0.35rem 0 0; }
.guide-content .concept-flow { margin: 1.5rem 0; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); }
.guide-content .concept-flow ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.guide-content .concept-flow li { position: relative; min-width: 0; margin: 0; padding: 0.75rem 0.6rem; border: 1px solid var(--line); border-radius: 0.4rem; background: var(--paper); line-height: 1.65; }
.concept-flow li:not(:last-child)::after { content: "→"; position: absolute; left: calc(100% + 0.3rem); top: 50%; transform: translateY(-50%); color: var(--teal); font-size: 1.1rem; }
.concept-flow strong, .concept-flow span { display: block; }
.guide-content .concept-flow strong { color: var(--teal); font-size: 0.86rem; }
.concept-flow span { margin-top: 0.35rem; font-size: 0.8rem; }
.concept-flow figcaption { margin-top: 0.9rem; font-size: 0.84rem; line-height: 1.8; }
.guide-content .concept-flow figcaption strong { display: inline; color: var(--ink); font-size: inherit; }
.guide-content .wizard-context { padding: 0.8rem 1rem; border-left: 3px solid var(--blue); background: var(--canvas); font-size: 0.9rem; line-height: 1.8; }
.guide-content .completion-check { margin: 1.8rem 0 1rem; padding: 1rem 1.25rem; border: 1px solid var(--teal); border-left-width: 4px; border-radius: 0 var(--radius) var(--radius) 0; background: var(--teal-soft); font-size: 0.94rem; line-height: 1.85; }
.guide-content .portal-shot { margin: 2rem 0; padding: 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); }
.guide-content .portal-shot[data-capture-layout="dialog"] { max-width: 42rem; margin-inline: auto; }
.guide-content .portal-shot img { width: 100%; height: auto; margin: 0; border: 1px solid var(--line); border-radius: 0.35rem; background: #fff; }
.portal-shot figcaption { margin: 0.85rem 0.25rem 0.25rem; color: var(--body-ink); font-size: 0.84rem; line-height: 1.85; }
.portal-shot figcaption a { display: inline-block; padding: 0.25rem 0; }
.code-block { margin: 1.6rem 0 2rem; overflow: hidden; border: 1px solid #253c59; border-radius: var(--radius); background: var(--code); }
.code-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; min-height: 2.8rem; padding: 0.3rem 0.75rem 0.3rem 1.25rem; border-bottom: 1px solid #2b405b; background: #1b2d46; }
.code-language { font: 0.7rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #b6c9e1; letter-spacing: 0.02em; }
.copy-button { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.5rem; padding: 0.4rem 0.6rem; border: 1px solid #435a75; border-radius: 0.4rem; background: transparent; color: #d8e7fb; font-size: 0.73rem; line-height: 1.4; white-space: nowrap; }
.copy-button:hover { background: #294260; color: #fff; }
.copy-button:focus-visible { outline-color: #99c5ff; }
.copy-button[data-copy-state="success"] { border-color: #75c7b0; color: #b8edda; }
.copy-button[data-copy-state="error"] { border-color: #eab28f; color: #ffd8bc; }
.guide-content .guide-details { margin: 1.25rem 0; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); }
.guide-details > summary { min-height: 2.75rem; align-content: center; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; cursor: pointer; }
.guide-details[open] > summary { margin-bottom: 1rem; }
.guide-details > :last-child { margin-bottom: 0; }
.guide-content .implementation-code { margin: 1.25rem 0 1.75rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); }
.implementation-code > summary { min-height: 2.75rem; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.implementation-code .implementation-note, .implementation-code .implementation-links { font-size: 0.84rem; line-height: 1.8; }
.implementation-code .implementation-note { color: var(--muted); }
.implementation-code .copy-button { display: none; }
.code-block pre { margin: 0; border: 0; border-radius: 0; }
.copy-feedback { display: block; margin: 0; color: #d3e2f4; font-size: 0.75rem; line-height: 1.6; }
.copy-feedback:not(:empty) { padding: 0.15rem 1.25rem 0.9rem; }
.copy-buffer { position: fixed; top: 0; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.guide-content table { display: block; width: 100%; max-width: 100%; margin: 1.6rem 0 2rem; overflow-x: auto; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.84rem; line-height: 1.8; }
.guide-content th, .guide-content td { padding: 0.9rem 1rem; text-align: left; vertical-align: top; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guide-content th { background: #edf2f8; color: #233c5c; font-size: 0.8rem; font-weight: 750; }
.guide-content th:last-child, .guide-content td:last-child { border-right: 0; }
.guide-content tbody tr:last-child td { border-bottom: 0; }
.guide-content tbody tr:nth-child(even) { background: #f8fafc; }
.mobile-cell-label { display: none; }
.table-scroll { max-width: 100%; margin: 1.6rem 0 2rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); scrollbar-width: thin; }
.table-scroll table { display: table; min-width: 30rem; margin: 0; border: 0; border-radius: 0; overflow: visible; }
.guide-content img { display: block; max-width: 100%; height: auto; margin: 2rem auto; }
.diagram-frame { display: block; width: 100%; max-width: 100%; margin-top: 1.8rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #f7fafc; scrollbar-width: thin; }
.diagram-frame img { width: 100%; min-width: 43rem; margin: 0; }
.diagram-source { display: inline-block; min-height: 2.75rem; padding: 0.5rem 0.1rem; font-size: 0.75rem; }
.section-pagination { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 2.5rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--line); font-size: 0.77rem; line-height: 1.7; }
.section-pagination a { display: inline-block; min-height: 2.75rem; padding: 0.6rem 0; }
.section-pagination a[rel="next"] { margin-left: auto; text-align: right; }

.chapter-completion { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin: 4rem 0 1.5rem; padding: 1.6rem; border: 1px solid #cfe2df; border-radius: var(--radius); background: #f3f9f7; }
.chapter-completion h2 { margin: 0.3rem 0 0.4rem; color: var(--ink); font-size: 1.1rem; line-height: 1.55; word-break: keep-all; }
.chapter-completion p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 0.78rem; }
.primary-button, .secondary-button, .danger-button { min-height: 2.85rem; padding: 0.65rem 1rem; border: 1px solid transparent; border-radius: 0.5rem; font-size: 0.85rem; font-weight: 700; line-height: 1.5; }
.primary-button { flex: 0 0 auto; background: var(--teal); color: #fff; }
.primary-button:hover { background: #075b57; }
.primary-button[aria-pressed="true"] { border-color: #a8ccc1; background: #e4f2ed; color: #145d4e; }
.secondary-button { border-color: #bcc9d6; background: #fff; color: var(--ink); }
.secondary-button:hover { background: var(--canvas); }
.danger-button { background: #9d3e29; color: #fff; }
.danger-button:hover { background: #7d3020; }
.chapter-pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 3rem; }
.chapter-link { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.2rem 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.chapter-link:hover { border-color: #91b1c9; background: #f7fafc; }
.chapter-link span { font-size: 0.74rem; color: var(--muted); }
.chapter-link strong { font-size: 0.97rem; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.next-chapter { grid-column: 2; text-align: right; }
.document-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); font-size: 0.73rem; color: var(--muted); }
.document-footer p { margin: 0; }
.document-footer a { min-height: 2.75rem; align-content: center; flex-shrink: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }

dialog { max-width: calc(100vw - 2rem); max-height: calc(100vh - 3rem); max-height: calc(100dvh - 3rem); margin: auto; padding: 1.75rem; overflow-y: auto; border: 1px solid #d1dce7; border-radius: 1rem; background: #fff; color: var(--body-ink); box-shadow: 0 24px 90px #14223830; }
dialog:not([open]) { display: none; }
dialog::backdrop { background: #10213980; }
body:has(dialog[open]), body.scroll-locked { overflow: hidden; }
.confirm-dialog h2 { margin: 0; color: var(--ink); font-size: 1.45rem; letter-spacing: -0.025em; }
.confirm-dialog { width: 30rem; }
.confirm-dialog > p:not(.eyebrow) { margin: 1rem 0 1.5rem; font-size: 0.93rem; line-height: 1.9; word-break: keep-all; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.65rem; }
.drawer-backdrop { display: none; }

@media (min-width: 100rem) {
  .workspace { gap: 5.5rem; }
  .main-content { padding-top: 3.25rem; }
}

@media (max-width: 70rem) {
  :root { --header-height: 4.25rem; }
  .header-inner { padding: 0 1.5rem; }
  .header-context { display: none; }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 61rem; padding: 0 1.75rem; }
  .guide-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-inner { position: static; max-height: none; padding: 1.5rem 0; }
  .chapter-nav { max-height: 20rem; overflow-y: auto; }
  .sidebar-note { max-width: none; }
  .js .menu-toggle, .js .menu-close { display: inline-flex; }
  .js .guide-sidebar { position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; width: min(22rem, calc(100vw - 2.5rem)); border: 0; background: #fff; box-shadow: 10px 0 35px #1422381f; transform: translateX(-105%); visibility: hidden; transition: transform 180ms ease, visibility 180ms; }
  .js .sidebar-inner { height: 100%; max-height: none; padding: 1.5rem 1.25rem 2rem; overflow-y: auto; }
  .js .chapter-nav { max-height: none; overflow: visible; }
  .js.drawer-open .guide-sidebar { transform: translateX(0); visibility: visible; }
  .js .drawer-backdrop:not([hidden]) { display: block; position: fixed; z-index: 40; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #10213980; cursor: default; }
  .main-content { padding-top: 2rem; }
}

@media (max-width: 52rem) {
  .guide-content .learning-path { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
  .guide-content .learning-path > li:not(:last-child)::after { display: none; }
}

@media (max-width: 42rem) {
  :root { --header-height: 4.25rem; }
  .header-inner { flex-wrap: nowrap; padding: 0.4rem 0.75rem; gap: 0.35rem 0.4rem; }
  .brand { gap: 0.5rem; flex: 1 1 0; min-width: 0; }
  .brand-text { min-width: 0; }
  .brand-symbol { width: 2.2rem; height: 2.2rem; }
  .brand-text strong { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-text > span { font-size: 0.65rem; }
  .language-switcher a { padding: 0.4rem 0.35rem; font-size: 0.75rem; }
  .header-actions { gap: 0.35rem; margin-left: 0; flex: 0 0 auto; }
  .toolbar-button { padding: 0.45rem 0.65rem; font-size: 0.75rem; }
  .theme-feedback { margin: 0.75rem 1.1rem; }
  .workspace { padding: 0 1.1rem; }
  .main-content { padding-top: 1.5rem; }
  .reading-toolbar { margin-bottom: 1.8rem; font-size: 0.67rem; }
  .guide-content { font-size: 1rem; line-height: 1.9; }
  .guide-content h1 { font-size: 2.05rem; }
  .guide-content h1 + p { font-size: 1.05rem; }
  .guide-content .hero-summary { font-size: 1.05rem; }
  .guide-content div.hero-summary { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; padding: 1rem; }
  .guide-content .hero-summary > div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.7rem; }
  .guide-content .hero-summary > div > strong { margin-bottom: 0; line-height: 1.9; }
  .guide-content h2 { margin-top: 3.3rem; font-size: 1.5rem; }
  .guide-content h3 { font-size: 1.19rem; }
  .guide-content blockquote { padding: 0.85rem 1rem; }
  .guide-content .lab-concept { padding: 0.85rem 1rem; }
  .concept-primer dl { grid-template-columns: minmax(0, 1fr); }
  .guide-content .concept-flow ol { grid-template-columns: minmax(0, 1fr); }
  .concept-flow li:not(:last-child)::after { content: "↓"; left: 50%; top: calc(100% + 0.15rem); transform: translateX(-50%); }
  .guide-content .completion-check { padding: 0.85rem 1rem; }
  .guide-content .portal-shot { padding: 0.4rem; }
  .portal-shot figcaption { margin: 0.7rem 0.35rem 0.35rem; }
  .guide-content pre { padding: 1rem; font-size: 0.78rem; }
  .guide-content th, .guide-content td { padding: 0.75rem; }
  .guide-content table.code-portal-map { position: relative; display: block; min-width: 0; width: 100%; table-layout: auto; font-size: 0.88rem; }
  .guide-content .code-portal-map thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .guide-content .code-portal-map tbody, .guide-content .code-portal-map tr, .guide-content .code-portal-map td { display: block; width: 100%; }
  .guide-content .code-portal-map tr { border-bottom: 1px solid var(--line); }
  .guide-content .code-portal-map tr:last-child { border-bottom: 0; }
  .guide-content .code-portal-map td { padding: 0.65rem 0.8rem; border: 0; }
  .guide-content .code-portal-map td + td { padding-top: 0.3rem; }
  .guide-content .code-portal-map .mobile-cell-label { display: block; margin-bottom: 0.2rem; color: var(--teal); font-size: 0.73rem; font-weight: 750; }
  .guide-content table.worked-comparison, .guide-content .worked-comparison table { display: table; min-width: 0; table-layout: fixed; font-size: 0.78rem; }
  .worked-comparison th, .worked-comparison td { padding: 0.6rem 0.45rem; word-break: normal; overflow-wrap: anywhere; }
  .worked-comparison th:first-child, .worked-comparison td:first-child { width: 22%; }
  .chapter-completion { align-items: stretch; flex-direction: column; gap: 1rem; padding: 1.25rem; }
  .chapter-pagination { gap: 0.65rem; }
  .chapter-link { padding: 1rem 0.8rem; }
  .chapter-link strong { font-size: 0.85rem; }
  .document-footer { align-items: flex-start; flex-direction: column; gap: 0.3rem; }
  dialog { max-width: calc(100vw - 1.2rem); max-height: calc(100dvh - 1.5rem); padding: 1.25rem; border-radius: 0.8rem; }
}

@media (max-width: 30rem) {
  .site-header .brand-text { display: none; }
  .brand { flex: 0 0 auto; }
  .guide-content .learning-path { grid-template-columns: minmax(0, 1fr); }
}

@media screen {
  :root[data-theme="dark"] {
    color-scheme: dark;
    --ink: #eff8ff;
    --body-ink: #d4e1ec;
    --muted: #a6b9c9;
    --teal: #7de0c7;
    --teal-soft: #123c39;
    --blue: #99caff;
    --line: #304657;
    --paper: #132131;
    --canvas: #192b3b;
    --code: #081420;
    --focus: #99caff;
  }
  :root[data-theme="dark"] body { background: #0c1621; }
  :root[data-theme="dark"] .site-header,
  :root[data-theme="dark"].js .guide-sidebar,
  :root[data-theme="dark"] dialog { background: var(--paper); border-color: var(--line); }
  :root[data-theme="dark"] .chapter-nav a { color: var(--body-ink); }
  :root[data-theme="dark"] .chapter-nav a[aria-current="location"] { color: var(--teal); }
  :root[data-theme="dark"] .guide-content strong { color: var(--ink); }
  :root[data-theme="dark"] .guide-content .learning-path strong { color: var(--teal); }
  :root[data-theme="dark"] .guide-content h1 + p,
  :root[data-theme="dark"] .guide-content .hero-summary { color: var(--muted); }
  :root[data-theme="dark"] kbd,
  :root[data-theme="dark"] .local-badge { background: #243c52; border-color: var(--line); color: var(--body-ink); }
  :root[data-theme="dark"] progress { background: var(--line); }
  :root[data-theme="dark"] progress::-webkit-progress-bar { background: var(--line); }
  :root[data-theme="dark"] .guide-content :not(pre) > code { border-color: var(--line); background: #1e3449; color: #b7dcff; }
  :root[data-theme="dark"] .guide-content blockquote,
  :root[data-theme="dark"] .guide-content .note,
  :root[data-theme="dark"] .noscript-note,
  :root[data-theme="dark"] .chapter-completion { border-color: #305951; background: var(--teal-soft); color: #d2eee5; }
  :root[data-theme="dark"] .guide-content .warning,
  :root[data-theme="dark"] .theme-feedback { border-color: #82672f; background: #3c301e; color: #f4d298; }
  :root[data-theme="dark"] .storage-note.is-warning { color: #f4d298; }
  :root[data-theme="dark"] .guide-content th { background: #21364a; color: var(--ink); }
  :root[data-theme="dark"] .guide-content tbody tr:nth-child(even) { background: #172838; }
  :root[data-theme="dark"] .guide-content .output-notice,
  :root[data-theme="dark"] .guide-content .output-label + pre { border-color: var(--line); background: var(--canvas); color: var(--body-ink); }
  :root[data-theme="dark"] .primary-button,
  :root[data-theme="dark"] .step-next a { background: var(--teal); color: #082b29; }
  :root[data-theme="dark"] .primary-button:hover,
  :root[data-theme="dark"] .step-next a:hover { background: #a3eedb; color: #082b29; }
  :root[data-theme="dark"] .primary-button[aria-pressed="true"] { border-color: #305951; background: var(--teal-soft); color: var(--teal); }
  :root[data-theme="dark"] .secondary-button,
  :root[data-theme="dark"] .chapter-link:hover,
  :root[data-theme="dark"] .diagram-frame { border-color: var(--line); background: var(--canvas); color: var(--ink); }
}

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

@media (forced-colors: active) {
  .primary-button, .danger-button { border: 1px solid ButtonText; }
  .chapter-nav a[aria-current="location"] { border-left-color: Highlight; }
  .guide-content h2::before { background: CanvasText; }
}

@page { size: A4; margin: 17mm 15mm 19mm; }
@media print {
  :root { --header-height: 0rem; }
  html { scroll-behavior: auto; scroll-padding-top: 0; }
  body { background: #fff !important; color: #111 !important; font-size: 10pt; }
  .site-header, .guide-sidebar, .drawer-backdrop, .skip-link, .no-print, .code-toolbar, .copy-feedback, .diagram-source, dialog, .noscript-note, #announcements { display: none !important; }
  .workspace { display: block; max-width: none; padding: 0; margin: 0; }
  .main-content { width: 100%; max-width: none; padding: 0; }
  .guide-content { font-size: 10pt; line-height: 1.7; color: #111; overflow-wrap: anywhere; }
  .guide-content h1 { font-size: 23pt; color: #111; }
  .guide-content h1 + p { font-size: 11pt; color: #333; }
  .guide-content .eyebrow { font-size: 8pt; }
  .guide-content .hero-summary { margin-bottom: 6mm; font-size: 11pt; color: #333; }
  .guide-content div.hero-summary { display: block; margin: 4mm 0; padding: 3mm 4mm; border-color: #aaa; border-radius: 0; background: #fff; break-inside: avoid-page; }
  .guide-content .hero-summary > div { display: grid; grid-template-columns: 60pt minmax(0, 1fr); gap: 6pt; }
  .guide-content .hero-summary > div + div { margin-top: 2mm; }
  .guide-content .hero-summary > div > strong, .guide-content .hero-summary > div > span { margin: 0; color: #222; font-size: 9pt; line-height: 1.6; }
  .guide-content h2 { margin-top: 10mm; padding-top: 5mm; font-size: 16pt; color: #111; }
  .guide-content h3 { margin-top: 6mm; font-size: 12pt; color: #111; }
  .guide-content h4, .guide-content h5, .guide-content h6 { font-size: 10.5pt; color: #111; }
  .guide-content h1, .guide-content h2, .guide-content h3, .guide-content h4 { break-after: avoid-page; page-break-after: avoid; }
  .guide-content p, .guide-content li { orphans: 3; widows: 3; }
  .guide-content .learning-path { gap: 4mm; margin: 4mm 0; break-inside: avoid-page; }
  .guide-content .learning-path > li { padding: 2mm; border-color: #aaa; border-radius: 0; background: #fff; }
  .guide-content .learning-path > li:not(:last-child)::after { display: none; }
  .learning-path a { min-height: 0; padding: 2mm; background: #fff; border-color: #aaa; font-size: 9pt; }
  .guide-content a { color: #164e81; text-decoration: underline; }
  .guide-content a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; overflow-wrap: anywhere; }
  .guide-content blockquote, .guide-content .note, .guide-content .warning { padding: 3mm 4mm; background: #fff; color: #222; border-color: #999; break-inside: auto; }
  .guide-content code { padding: 0; border: 0; color: #111; background: #f2f2f2; font-size: 8.5pt; box-decoration-break: slice; -webkit-box-decoration-break: slice; }
  .code-block, .table-scroll, .diagram-frame { display: block; max-width: 100%; height: auto; max-height: none; margin: 4mm 0; overflow: visible !important; border: 0; border-radius: 0; background: #fff; break-inside: auto; }
  .guide-content pre { padding: 3mm; margin: 4mm 0; border: 1px solid #aaa; border-radius: 0; background: #f4f4f4 !important; color: #111 !important; font-size: 8pt; line-height: 1.6; overflow: visible !important; break-inside: auto; page-break-inside: auto; }
  .guide-content pre, .guide-content pre code { max-width: 100%; white-space: pre-wrap !important; overflow-wrap: anywhere !important; word-break: break-word !important; }
  .guide-content pre code { background: transparent; color: #111; }
  .guide-content .command-label { display: block; margin: 3mm 0 1mm; color: #111; font-size: 9pt; break-after: avoid-page; }
  .guide-content .step-route, .guide-content .execution-guide { margin: 3mm 0; padding: 2mm 3mm; border-color: #999; border-radius: 0; background: #fff; color: #111; font-size: 9pt; break-inside: avoid-page; }
  .guide-content table, .table-scroll table { display: table; width: 100% !important; min-width: 0 !important; max-width: 100%; margin: 4mm 0; overflow: visible !important; table-layout: fixed; border-collapse: collapse; border: 1px solid #999; border-radius: 0; font-size: 8pt; line-height: 1.55; break-inside: auto; }
  .guide-content thead { display: table-header-group; }
  .guide-content tfoot { display: table-footer-group; }
  .guide-content tr { break-inside: auto; page-break-inside: auto; }
  .guide-content .print-with-table { break-after: avoid-page; page-break-after: avoid; }
  .guide-content .print-with-table + table, .guide-content .print-with-table + .table-scroll { break-inside: avoid-page; page-break-inside: avoid; }
  .guide-content th, .guide-content td { width: auto !important; min-width: 0 !important; padding: 2.3mm; border: 1px solid #aaa; color: #111; white-space: normal !important; overflow-wrap: anywhere !important; word-break: break-word; }
  .guide-content th { background: #eaeef2 !important; font-size: 8pt; }
  .guide-content td code { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
  .guide-content table.code-portal-map { display: table; position: static; font-size: 8pt; }
  .guide-content .code-portal-map thead { position: static; display: table-header-group; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .guide-content .code-portal-map tbody { display: table-row-group; width: auto; }
  .guide-content .code-portal-map tr { display: table-row; width: auto; }
  .guide-content .code-portal-map td { display: table-cell; padding: 2.3mm; border: 1px solid #aaa; }
  .guide-content .code-portal-map .mobile-cell-label { display: none; }
  .guide-content img, .diagram-frame img { min-width: 0; max-width: 100%; width: auto; height: auto; margin: 4mm auto; break-inside: avoid-page; }
  .guide-content .lab-concept { margin: 4mm 0; padding: 3mm 4mm; border-color: #aaa; border-radius: 0; background: #fff; font-size: 9pt; line-height: 1.65; break-inside: avoid-page; }
  .guide-content .concept-primer, .guide-content .concept-flow { margin: 4mm 0; padding: 3mm; border-color: #aaa; border-radius: 0; background: #fff; font-size: 9pt; }
  .concept-primer dl > div, .guide-content .concept-flow { break-inside: avoid-page; }
  .concept-primer dt, .guide-content .concept-flow strong { color: #111; }
  .guide-content .concept-flow ol { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5mm; }
  .guide-content .concept-flow li { padding: 2mm; border-color: #aaa; background: #fff; }
  .concept-flow li:not(:last-child)::after { content: "→"; left: calc(100% + 1mm); top: 50%; transform: translateY(-50%); color: #333; }
  .guide-content .concept-flow strong, .concept-flow span, .concept-flow figcaption { font-size: 8pt; }
  .guide-content .wizard-context, .guide-content .completion-check { margin: 4mm 0; padding: 3mm; border-color: #777; border-radius: 0; background: #fff; color: #111; font-size: 9pt; break-inside: avoid-page; }
  .guide-content .portal-shot { margin: 5mm 0; padding: 2mm; border: 1px solid #aaa; border-radius: 0; background: #fff; break-inside: avoid-page; page-break-inside: avoid; }
  .guide-content .implementation-code { margin: 4mm 0; padding: 0; border: 0; border-radius: 0; background: #fff; break-inside: auto; }
  .implementation-code > summary { display: block; min-height: 0; font-size: 9pt; break-after: avoid-page; }
  .implementation-code .implementation-note, .implementation-code .implementation-links { font-size: 8pt; }
  .guide-content .portal-shot img { width: auto; max-width: 100%; max-height: 112mm; margin: 0 auto; border: 0; border-radius: 0; object-fit: contain; }
  .portal-shot figcaption { margin: 2mm 1mm 0; color: #222; font-size: 8pt; line-height: 1.55; }
  .document-footer { padding: 5mm 0 0; margin-top: 7mm; color: #444; font-size: 8pt; }
  .document-footer a { display: none; }
}
