:root {
  color-scheme: light;
  --surface: #f8f9fb;
  --surface-low: #f1f3f7;
  --surface-mid: #e6e6ea;
  --surface-high: #dbdbe0;
  --paper: #ffffff;
  --paper-soft: #fbfcfe;
  --paper-edge: rgba(20, 26, 38, 0.06);
  --ink: #191c23;
  --ink-secondary: #3a404c;
  --ink-muted: #646b7a;
  --ink-faint: #949ba9;
  --hairline: #d2d6dd;
  --divider: rgba(82, 90, 106, 0.16);
  --brand: #5d77ad;
  --brand-deep: #3f568a;
  --brand-ink: #334979;
  --brand-07: rgba(93, 119, 173, 0.07);
  --brand-10: rgba(93, 119, 173, 0.10);
  --brand-12: rgba(93, 119, 173, 0.12);
  --brand-18: rgba(93, 119, 173, 0.18);
  --brand-22: rgba(93, 119, 173, 0.22);
  --ai-purple: #765ed7;
  --ai-purple-12: rgba(118, 94, 215, 0.12);
  --success: #2e7d32;
  --warning: #9a5a18;
  --danger: #ba1a1a;
  --success-soft: rgba(46, 125, 50, 0.08);
  --warning-soft: rgba(154, 90, 24, 0.08);
  --danger-soft: rgba(186, 26, 26, 0.07);
  --veil-fill: rgba(255, 255, 255, 0.14);
  --lens-fill: rgba(255, 255, 255, 0.26);
  --slab-fill: rgba(255, 255, 255, 0.22);
  --panel-fill: rgba(255, 255, 255, 0.50);
  --menu-fill: rgba(255, 255, 255, 0.72);
  --chrome-fill: rgba(255, 255, 255, 0.12);
  --field-fill: rgba(225, 230, 239, 0.52);
  --field-fill-focus: rgba(255, 255, 255, 0.78);
  --glass-edge-white: rgba(255, 255, 255, 0.86);
  --glass-edge-cyan: rgba(86, 209, 207, 0.26);
  --glass-edge-violet: rgba(118, 94, 219, 0.20);
  --glass-edge-dark: rgba(32, 39, 54, 0.14);
  --glass-edge-cyan-strong: rgba(86, 209, 207, 0.70);
  --glass-edge-violet-strong: rgba(118, 94, 219, 0.48);
  --edge-1:
    inset 0 1px 0 var(--glass-edge-white),
    inset 1px 0 0 var(--glass-edge-cyan),
    inset -1px 0 0 var(--glass-edge-violet),
    inset 0 -1px 0 var(--glass-edge-dark);
  --edge-2:
    inset 0 2px 2px -2px var(--glass-edge-white),
    inset 2px 0 2px -2px var(--glass-edge-cyan-strong),
    inset -2px 0 2px -2px var(--glass-edge-violet-strong),
    inset 0 -2px 2px -2px var(--glass-edge-dark);
  --e0: 0 7px 18px -16px rgba(31, 39, 57, 0.28);
  --e0-hover: 0 9px 21px -16px rgba(31, 39, 57, 0.34);
  --e2: 0 18px 42px -29px rgba(31, 43, 72, 0.42);
  --e2-hover: 0 21px 48px -29px rgba(31, 43, 72, 0.50);
  --e3: 0 26px 64px -31px rgba(25, 35, 59, 0.48);
  --e3-hover: 0 30px 72px -31px rgba(25, 35, 59, 0.56);
  --e1: 0 34px 78px -42px rgba(24, 32, 52, 0.40);
  --e1-hover: 0 39px 90px -42px rgba(24, 32, 52, 0.48);
  --shadow-paper:
    0 1px 2px rgba(16, 18, 24, 0.04),
    0 34px 82px -48px rgba(20, 27, 43, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.90),
    inset 0 0 0 1px var(--paper-edge);
  --focus-ring: 0 0 0 4px rgba(93, 119, 173, 0.18);
  --backdrop-live-dot-opacity: 0.40;
  --r-mark: 3px;
  --r-control: 12px;
  --r-card: 16px;
  --r-glass: 20px;
  --r-paper: 28px;
  --topbar-h: 64px;
  --sidebar-w: 268px;
  --font-sans:
    "Manrope", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:
    "Geist Mono", "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-fluid: cubic-bezier(.22, 1, .36, 1);
  --ease-exit: cubic-bezier(.4, 0, .2, 1);
}

html.dark,
html[data-theme="dark"] {
  color-scheme: dark;
  --surface: #111318;
  --surface-low: #191c22;
  --surface-mid: #282c34;
  --surface-high: #33373f;
  --paper: #171a21;
  --paper-soft: #1b1f27;
  --paper-edge: rgba(240, 243, 249, 0.08);
  --ink: #e2e4e9;
  --ink-secondary: #bfc4cd;
  --ink-muted: #8b92a0;
  --ink-faint: #5d6370;
  --hairline: #3d4250;
  --divider: rgba(202, 208, 219, 0.14);
  --brand: #a0b4e0;
  --brand-deep: #bed0f4;
  --brand-ink: #cedafd;
  --brand-07: rgba(160, 180, 224, 0.07);
  --brand-10: rgba(160, 180, 224, 0.10);
  --brand-12: rgba(160, 180, 224, 0.12);
  --brand-18: rgba(160, 180, 224, 0.18);
  --brand-22: rgba(160, 180, 224, 0.22);
  --ai-purple: #ae9aff;
  --ai-purple-12: rgba(174, 154, 255, 0.14);
  --success: #81c784;
  --warning: #ffb74d;
  --danger: #f2b8b5;
  --success-soft: rgba(129, 199, 132, 0.10);
  --warning-soft: rgba(255, 183, 77, 0.10);
  --danger-soft: rgba(242, 184, 181, 0.09);
  --veil-fill: rgba(255, 255, 255, 0.09);
  --lens-fill: rgba(255, 255, 255, 0.15);
  --slab-fill: rgba(255, 255, 255, 0.11);
  --panel-fill: rgba(17, 19, 24, 0.38);
  --menu-fill: rgba(24, 27, 34, 0.76);
  --chrome-fill: rgba(255, 255, 255, 0.07);
  --field-fill: rgba(48, 53, 65, 0.58);
  --field-fill-focus: rgba(36, 40, 49, 0.88);
  --glass-edge-white: rgba(255, 255, 255, 0.12);
  --glass-edge-cyan: rgba(86, 209, 207, 0.20);
  --glass-edge-violet: rgba(148, 128, 242, 0.20);
  --glass-edge-dark: rgba(0, 0, 0, 0.34);
  --glass-edge-cyan-strong: rgba(86, 209, 207, 0.48);
  --glass-edge-violet-strong: rgba(148, 128, 242, 0.44);
  --e0: 0 8px 20px -15px rgba(0, 0, 0, 0.58);
  --e0-hover: 0 10px 23px -15px rgba(0, 0, 0, 0.68);
  --e2: 0 20px 46px -28px rgba(0, 0, 0, 0.78);
  --e2-hover: 0 23px 52px -28px rgba(0, 0, 0, 0.88);
  --e3: 0 28px 68px -30px rgba(0, 0, 0, 0.86);
  --e3-hover: 0 32px 76px -30px rgba(0, 0, 0, 0.94);
  --e1: 0 36px 84px -40px rgba(0, 0, 0, 0.82);
  --e1-hover: 0 42px 94px -40px rgba(0, 0, 0, 0.92);
  --shadow-paper:
    0 1px 2px rgba(0, 0, 0, 0.34),
    0 36px 86px -45px rgba(0, 0, 0, 0.84),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px var(--paper-edge);
  --focus-ring: 0 0 0 4px rgba(160, 180, 224, 0.23);
  --backdrop-live-dot-opacity: 0.44;
}

@media (prefers-color-scheme: dark) {
  html:not(.light):not([data-theme="light"]) {
    color-scheme: dark;
    --surface: #111318;
    --surface-low: #191c22;
    --surface-mid: #282c34;
    --surface-high: #33373f;
    --paper: #171a21;
    --paper-soft: #1b1f27;
    --paper-edge: rgba(240, 243, 249, 0.08);
    --ink: #e2e4e9;
    --ink-secondary: #bfc4cd;
    --ink-muted: #8b92a0;
    --ink-faint: #5d6370;
    --hairline: #3d4250;
    --divider: rgba(202, 208, 219, 0.14);
    --brand: #a0b4e0;
    --brand-deep: #bed0f4;
    --brand-ink: #cedafd;
    --brand-07: rgba(160, 180, 224, 0.07);
    --brand-10: rgba(160, 180, 224, 0.10);
    --brand-12: rgba(160, 180, 224, 0.12);
    --brand-18: rgba(160, 180, 224, 0.18);
    --brand-22: rgba(160, 180, 224, 0.22);
    --ai-purple: #ae9aff;
    --ai-purple-12: rgba(174, 154, 255, 0.14);
    --success: #81c784;
    --warning: #ffb74d;
    --danger: #f2b8b5;
    --success-soft: rgba(129, 199, 132, 0.10);
    --warning-soft: rgba(255, 183, 77, 0.10);
    --danger-soft: rgba(242, 184, 181, 0.09);
    --veil-fill: rgba(255, 255, 255, 0.09);
    --lens-fill: rgba(255, 255, 255, 0.15);
    --slab-fill: rgba(255, 255, 255, 0.11);
    --panel-fill: rgba(17, 19, 24, 0.38);
    --menu-fill: rgba(24, 27, 34, 0.76);
    --chrome-fill: rgba(255, 255, 255, 0.07);
    --field-fill: rgba(48, 53, 65, 0.58);
    --field-fill-focus: rgba(36, 40, 49, 0.88);
    --glass-edge-white: rgba(255, 255, 255, 0.12);
    --glass-edge-cyan: rgba(86, 209, 207, 0.20);
    --glass-edge-violet: rgba(148, 128, 242, 0.20);
    --glass-edge-dark: rgba(0, 0, 0, 0.34);
    --glass-edge-cyan-strong: rgba(86, 209, 207, 0.48);
    --glass-edge-violet-strong: rgba(148, 128, 242, 0.44);
    --e0: 0 8px 20px -15px rgba(0, 0, 0, 0.58);
    --e0-hover: 0 10px 23px -15px rgba(0, 0, 0, 0.68);
    --e2: 0 20px 46px -28px rgba(0, 0, 0, 0.78);
    --e2-hover: 0 23px 52px -28px rgba(0, 0, 0, 0.88);
    --e3: 0 28px 68px -30px rgba(0, 0, 0, 0.86);
    --e3-hover: 0 32px 76px -30px rgba(0, 0, 0, 0.94);
    --e1: 0 36px 84px -40px rgba(0, 0, 0, 0.82);
    --e1-hover: 0 42px 94px -40px rgba(0, 0, 0, 0.92);
    --shadow-paper:
      0 1px 2px rgba(0, 0, 0, 0.34),
      0 36px 86px -45px rgba(0, 0, 0, 0.84),
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      inset 0 0 0 1px var(--paper-edge);
    --focus-ring: 0 0 0 4px rgba(160, 180, 224, 0.23);
    --backdrop-live-dot-opacity: 0.44;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--topbar-h);
  background: var(--surface);
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.76;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
button, input { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
svg { display: block; }
::selection { color: var(--ink); background: var(--brand-22); }

:where(a, button, input, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid transparent;
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

.main:focus-visible,
.guide-view:focus-visible,
.subsection:focus-visible {
  outline: none;
  box-shadow: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ambient-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--surface);
}

.ambient-aurora,
.ambient-aurora-ribbon,
.ambient-aurora-ribbon-secondary { display: none; }

.ambient-grid { position: absolute; inset: 0; width: 100%; height: 100%; }

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 12px;
  padding: 9px 14px;
  border-radius: var(--r-control);
  color: #fff;
  background: #3f568a;
  text-decoration: none;
  box-shadow: var(--edge-1), var(--e2);
  transform: translateY(-150%);
  transition: transform 180ms var(--ease-fluid);
}

.skip-link:focus { transform: translateY(0); }

.reading-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  pointer-events: none;
}

.reading-progress span { display: block; width: 0; height: 100%; background: var(--brand); }

.topbar {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 26px;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  box-shadow: 0 9px 20px -13px rgba(42, 59, 96, 0.82);
}

.brand-copy { min-width: 0; display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.brand-copy strong { color: var(--ink); font-size: 17px; font-weight: 740; letter-spacing: -0.025em; }
.brand-copy small { color: var(--ink-muted); font-size: 12px; font-weight: 570; }
.topbar-actions { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

.search-shell {
  position: relative;
  width: min(420px, 37vw);
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 14px;
  border-radius: var(--r-control);
  background: var(--panel-fill);
  backdrop-filter: blur(40px) saturate(1.9);
  box-shadow: var(--edge-1), var(--e2);
  transition: background-color 180ms ease, box-shadow 220ms var(--ease-fluid);
}

.search-shell:focus-within { background: var(--menu-fill); box-shadow: var(--edge-2), var(--e2-hover), var(--focus-ring); }
.search-shell > svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ink-muted); stroke-width: 1.65; stroke-linecap: round; }
.search-shell input { min-width: 0; flex: 1; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.search-shell input::placeholder { color: var(--ink-faint); }

kbd {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border: 0;
  border-radius: 7px;
  color: var(--brand-deep);
  background: var(--surface-low);
  box-shadow: inset 0 0 0 1px var(--divider), inset 0 -1px rgba(20, 26, 38, 0.08);
  font-family: var(--font-mono);
  font-size: .78em;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.search-shell > kbd { color: var(--ink-faint); font-size: 10px; }

.search-results {
  position: absolute;
  z-index: 110;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  max-height: min(480px, calc(100vh - 96px));
  padding: 8px;
  overflow: auto;
  border-radius: var(--r-glass);
  background: var(--menu-fill);
  backdrop-filter: blur(64px) saturate(2);
  box-shadow: var(--edge-1), var(--e3);
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
}

.search-results.show { display: block; }
.search-results a { display: block; padding: 11px 12px; border-radius: var(--r-control); text-decoration: none; transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.search-results a:hover, .search-results a:focus-visible, .search-results a[data-active] { color: var(--brand-deep); background: var(--lens-fill); box-shadow: var(--edge-1), var(--e0); }
.search-results strong { display: block; color: var(--ink); font-size: 14px; font-weight: 680; line-height: 1.45; }
.search-results small { display: -webkit-box; margin-top: 3px; overflow: hidden; color: var(--ink-muted); font-size: 12px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.search-result-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px 9px; color: var(--ink-muted); font-size: 11px; }
.search-result-meta button { padding: 4px 8px; border: 0; border-radius: 8px; color: var(--brand-deep); background: var(--brand-10); cursor: pointer; font-size: 11px; font-weight: 660; }
.search-empty { margin: 0; padding: 20px 12px; color: var(--ink-muted); font-size: 13px; text-align: center; }

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  flex: none;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--r-control);
  color: var(--ink-muted);
  background: var(--veil-fill);
  backdrop-filter: blur(24px) saturate(2);
  box-shadow: var(--edge-1), var(--e0);
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 180ms ease, transform 160ms var(--ease-spring);
}

.icon-button:hover { color: var(--ink); background: var(--lens-fill); box-shadow: var(--edge-2), var(--e0-hover); }
.icon-button:active { transform: scale(.98); }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.nav-toggle { display: none; }

.sidebar {
  position: fixed;
  z-index: 60;
  top: calc(var(--topbar-h) + 18px);
  bottom: 20px;
  left: 20px;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  padding: 14px;
  overflow: auto;
  border-radius: var(--r-glass);
  background: var(--chrome-fill);
  backdrop-filter: blur(120px) saturate(2.1);
  box-shadow: var(--edge-1), var(--e2);
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
}

.sidebar-intro { display: grid; grid-template-columns: 1fr; gap: 3px; padding: 5px 7px 14px; border-bottom: 1px solid var(--divider); }
.sidebar-intro > a { min-width: 0; display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.sidebar-intro > a strong { min-width: 0; overflow: hidden; font-size: 13px; font-weight: 660; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-intro p { margin: 0; color: var(--ink-muted); font-size: 11px; line-height: 1.4; }
.version-chip { min-width: 40px; padding: 4px 9px; border-radius: 999px; color: var(--brand-deep); background: var(--brand-10); font-family: var(--font-mono); font-size: 11px; font-weight: 730; text-align: center; }

.toc { position: relative; display: grid; gap: 2px; padding: 10px 0; }
.toc-lens {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 1px;
  left: 1px;
  height: var(--lens-h, var(--toc-lens-height, 43px));
  border-radius: var(--r-control);
  background: var(--lens-fill);
  backdrop-filter: blur(24px) saturate(2);
  box-shadow: var(--edge-2), var(--e2);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, var(--lens-y, var(--toc-lens-y, 0px)), 0);
  transition: top 420ms var(--ease-fluid), height 420ms var(--ease-fluid), transform 480ms var(--ease-fluid), opacity 180ms ease;
}

.toc[data-lens="on"] .toc-lens, .toc-lens.show, .toc-lens.active { opacity: 1; }

.toc a, .toc-parent {
  position: relative;
  z-index: 1;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--r-control);
  color: var(--ink-muted);
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 570;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.toc-parent { width: 100%; cursor: pointer; }
.toc a:hover, .toc-parent:hover { color: var(--ink); background: var(--veil-fill); }
.toc-parent.active, .toc-parent[aria-current="location"] { color: var(--brand-ink); background: transparent; }
.toc-index { width: 24px; flex: none; color: var(--brand-deep); font-family: var(--font-mono); font-size: 14px; font-weight: 660; letter-spacing: .01em; }
.toc-parent.active .toc-index, .toc-parent[aria-current="location"] .toc-index { color: var(--brand); }
.toc-label { min-width: 0; flex: 1; }

.toc-sub { position: relative; display: grid; gap: 1px; margin: 0 0 4px 31px; padding: 2px 0 5px 11px; }
.toc-sub::before { position: absolute; top: 4px; bottom: 7px; left: 0; width: 1px; background: var(--divider); content: ""; }
.toc-sub a { min-height: 36px; padding: 7px 9px; color: var(--ink-muted); font-size: 14px; font-weight: 510; }
.toc-sub a.active, .toc-sub a[aria-current="location"] { color: var(--brand-deep); background: transparent; }
.toc-sub a.active::before, .toc-sub a[aria-current="location"]::before { position: absolute; top: 10px; bottom: 10px; left: -11px; width: 2px; border-radius: 999px; background: var(--brand); content: ""; }

.sidebar-note { margin-top: auto; padding: 14px; border-radius: var(--r-card); background: var(--panel-fill); backdrop-filter: blur(40px) saturate(1.9); box-shadow: var(--edge-1), var(--e0); }
.sidebar-note strong { display: block; color: var(--brand-deep); font-size: 12px; font-weight: 680; }
.sidebar-note p { margin: 4px 0 0; color: var(--ink-muted); font-size: 11.5px; line-height: 1.55; }

.nav-scrim { position: fixed; z-index: 50; inset: var(--topbar-h) 0 0; background: rgba(13, 17, 25, .40); backdrop-filter: blur(4px); }

.main {
  position: relative;
  z-index: 1;
  margin-left: calc(var(--sidebar-w) + 40px);
  padding: calc(var(--topbar-h) + 28px) 28px 112px;
}

.guide {
  container-type: inline-size;
  width: min(100%, 1240px);
  min-height: calc(100vh - var(--topbar-h) - 72px);
  margin: 0 auto;
  padding: clamp(46px, 4.5vw, 72px);
  border-radius: var(--r-paper);
  background: var(--paper);
  box-shadow: var(--shadow-paper);
}

.guide--task { isolation: isolate; }

.guide-view { display: block; }

.chapter, .subsection, .search-entry { scroll-margin-top: 28px; }
.guide-home { min-height: 0; }
.guide-intro { margin-bottom: 24px; }
.guide-intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 3.2vw, 42px);
  font-weight: 660;
  line-height: 1.2;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.guide-intro p { max-width: 760px; margin: 12px 0 0; color: var(--ink-secondary); font-size: 17px; line-height: 1.7; }
.guide-start {
  margin: 0;
  padding: 5px;
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-card);
  background: var(--paper-soft);
}
.guide-start-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding: 18px 22px;
  border-radius: calc(var(--r-card) - 5px);
  color: var(--ink);
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}
.guide-start-link + .guide-start-link { border-top: 1px solid var(--divider); border-top-left-radius: 0; border-top-right-radius: 0; }
.guide-start-link.is-primary { background: var(--brand-07); }
.guide-start-copy { display: grid; gap: 5px; min-width: 0; }
.guide-start-copy strong { color: inherit; font-size: 19px; line-height: 1.45; font-weight: 650; }
.guide-start-link.is-primary strong { color: var(--brand-deep); font-size: 22px; font-weight: 720; }
.guide-start-copy > span { color: var(--ink-secondary); font-size: 16px; line-height: 1.65; }
.guide-start-action { display: inline-flex; flex: none; align-items: center; gap: 10px; color: var(--brand-deep); font-size: 22px; }
.guide-start-action > span { font-size: 14px; font-weight: 680; }
.guide-start-link:hover, .guide-start-link:focus-visible {
  color: var(--brand-deep);
  background: var(--brand-10);
}
.guide-home + .chapter { margin-top: 40px; padding-top: 36px; }
.edition-note { max-width: 820px; margin: 22px 0 0; color: var(--ink-muted); font-size: 14px; line-height: 1.7; }

.view-back {
  width: fit-content;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -10px 0 38px;
  padding: 8px 13px;
  border-radius: var(--r-control);
  color: var(--ink-muted);
  background: var(--veil-fill);
  backdrop-filter: blur(24px) saturate(2);
  box-shadow: var(--edge-1), var(--e0);
  font-size: 13px;
  font-weight: 620;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 180ms ease;
}

.view-back > span { color: var(--brand); }
.view-back:hover, .view-back:focus-visible { color: var(--ink); background: var(--lens-fill); box-shadow: var(--edge-2), var(--e0-hover); }

.chapter { padding-top: 56px; margin-top: 64px; border-top: 1px solid var(--divider); }

.chapter-head {
  max-width: 980px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

.chapter-no { margin: 4px 0 0; color: var(--brand); font-family: var(--font-mono); font-size: 31px; font-weight: 530; line-height: 1; letter-spacing: -.05em; }
.chapter h2 { margin: 0; color: var(--ink); font-size: clamp(36px, 4vw, 50px); font-weight: 600; line-height: 1.14; letter-spacing: -.042em; text-wrap: balance; }
.chapter-head > div > p:last-child { max-width: 760px; margin: 14px 0 0; color: var(--ink-muted); font-size: 17px; line-height: 1.72; }

.canvas-paths {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 30px 0 10px;
}

.canvas-paths a {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 17px;
  border-radius: var(--r-card);
  color: var(--ink);
  background: var(--surface-low);
  box-shadow: inset 0 0 0 1px var(--paper-edge);
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 180ms ease, transform 180ms var(--ease-fluid);
}

.canvas-paths a:hover, .canvas-paths a:focus-visible { color: var(--brand-deep); background: var(--brand-07); box-shadow: inset 0 0 0 1px var(--brand-12), var(--e0); transform: translateY(-1px); }
.canvas-paths small { color: var(--ink-muted); font-size: 11.5px; font-weight: 620; }
.canvas-paths strong { color: currentColor; font-size: 15px; font-weight: 650; line-height: 1.45; }

.subsection { display: flow-root; padding-top: 38px; }
.subsection + .subsection { margin-top: 28px; border-top: 1px solid var(--divider); }

.subsection-head {
  max-width: 920px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}

.subsection-head > span { flex: none; color: var(--brand-deep); font-family: var(--font-mono); font-size: 24px; font-weight: 680; line-height: 1.3; letter-spacing: -.04em; }
.subsection h3 { margin: 0; color: var(--ink); font-size: clamp(25px, 2.5vw, 31px); font-weight: 640; line-height: 1.3; letter-spacing: -.03em; text-wrap: balance; }
.subsection-head p { margin: 8px 0 0; color: var(--ink-muted); font-size: 16px; line-height: 1.68; }

.subsection > p,
.subsection > .doc-list,
.subsection > .notice,
.subsection > .disclosure,
.subsection > .conversion-prompt,
.subsection > .table-wrap { max-width: 860px; }

.subsection > p, .lesson-copy > p, .doc-list { color: var(--ink-secondary); font-size: 17px; line-height: 1.86; }
.subsection > p, .lesson-copy > p { margin: 14px 0; }
.subsection > p a, .lesson-copy > p a, .doc-list a, .disclosure-body a { color: var(--brand-deep); text-decoration-color: var(--brand-22); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.subsection > p a:hover, .doc-list a:hover, .disclosure-body a:hover { text-decoration-color: currentColor; }
b, strong { color: var(--ink); font-weight: 700; }
.doc-list { margin: 16px 0; padding-left: 1.45em; }
.doc-list li { margin: 10px 0; padding-left: .28em; }
.doc-list li::marker { color: var(--brand); font-weight: 680; }

.conversion-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin: 22px 0;
  padding: 19px;
  border-radius: var(--r-card);
  background: var(--brand-07);
  box-shadow: inset 0 0 0 1px var(--brand-12);
}

.conversion-prompt > div > span { color: var(--brand-deep); font-size: 12px; font-weight: 700; }
.conversion-prompt blockquote { margin: 8px 0 0; padding: 0; border: 0; color: var(--ink); background: transparent; font-size: 17px; font-weight: 580; line-height: 1.7; }

.copy-inline {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border: 0;
  border-radius: var(--r-control);
  color: #fff;
  background: #5d77ad;
  box-shadow: var(--edge-1), var(--e2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 680;
  transition: box-shadow 180ms ease, transform 160ms var(--ease-spring);
}

.copy-inline:hover { box-shadow: var(--edge-2), var(--e2-hover); transform: translateY(-1px); }
.copy-inline:active { transform: scale(.98); }
.copy-inline svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.notice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
  padding: 17px 19px 17px 21px;
  overflow: hidden;
  border-radius: var(--r-card);
  color: var(--ink-secondary);
  background: var(--panel-fill);
  backdrop-filter: blur(40px) saturate(1.9);
  box-shadow: var(--edge-1), var(--e0);
}

.notice::before { position: absolute; top: 10px; bottom: 10px; left: 0; width: 3px; border-radius: 0 999px 999px 0; background: var(--brand); content: ""; }
.notice p { margin: 0; color: inherit; font-size: 16px; line-height: 1.72; }
.notice-info { background: var(--brand-07); }
.notice-warning { background: var(--warning-soft); }
.notice-warning::before { background: var(--warning); }
.notice-warning p { color: var(--ink-secondary); }
.notice svg { width: 19px; height: 19px; flex: none; margin-top: 4px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notice-warning svg { stroke: var(--warning); }

.disclosure {
  margin: 18px 0;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--paper-soft);
  box-shadow: inset 0 0 0 1px var(--paper-edge);
}

.disclosure summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  font-weight: 640;
  line-height: 1.45;
  list-style: none;
  transition: background-color 160ms ease;
}

.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary:hover { background: var(--brand-07); }
.disclosure summary i { position: relative; width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--surface-low); }
.disclosure summary i::before, .disclosure summary i::after { position: absolute; top: 50%; left: 50%; width: 10px; height: 1.5px; border-radius: 999px; background: var(--ink-muted); transform: translate(-50%, -50%); transition: transform 200ms var(--ease-fluid); content: ""; }
.disclosure summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.disclosure[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.disclosure[open] summary { border-bottom: 1px solid var(--divider); }
.disclosure-body { padding: 18px; }
.disclosure-body > :first-child { margin-top: 0; }
.disclosure-body > :last-child { margin-bottom: 0; }
.disclosure-body p, .disclosure-body li { color: var(--ink-secondary); font-size: 16px; line-height: 1.82; }
.disclosure-body p { margin: 8px 0; }
.disclosure-body ul, .disclosure-body ol { margin: 10px 0; padding-left: 1.4em; }
.disclosure-body li { margin: 7px 0; }

.table-wrap {
  width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  border-radius: var(--r-card);
  box-shadow: inset 0 0 0 1px var(--paper-edge);
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
}

table { width: 100%; border-collapse: collapse; color: var(--ink-secondary); font-size: 16px; line-height: 1.7; }
th, td { padding: 14px 18px; border-bottom: 1px solid var(--divider); text-align: left; vertical-align: top; }
thead th { color: var(--ink); background: var(--surface-low); font-size: 13px; font-weight: 690; letter-spacing: .02em; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: var(--brand-07); }

.media-frame { width: min(100%, 760px); margin: 24px auto; }
.media-frame.media-portrait { width: min(100%, 460px); }
.media-overview { width: 100%; }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 22px; margin: 20px 0 26px; }
.lesson-copy { min-width: 0; }
.lesson-copy > :first-child { margin-top: 0; }
.lesson-copy > :last-child { margin-bottom: 0; }
.lesson-layout > .media-frame { margin: 0 auto; }
.lesson-layout + .disclosure { max-width: none; margin-top: 24px; }
@container (min-width: 760px) {
  .lesson-layout { grid-template-columns: minmax(0, 1fr) minmax(0, var(--media-width)); gap: clamp(24px, 3cqw, 36px); }
  .lesson-layout > .media-frame { width: 100%; }
}
.media-open {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-card);
  background: var(--surface-low);
  box-shadow: inset 0 0 0 1px var(--paper-edge), var(--e1);
  cursor: zoom-in;
  transition: box-shadow 220ms var(--ease-fluid), transform 220ms var(--ease-fluid);
}

.media-open:hover { box-shadow: inset 0 0 0 1px var(--brand-12), var(--e1-hover); transform: translateY(-1px); }
.media-open img { width: auto; max-width: 100%; height: auto; display: block; margin: 0 auto; image-rendering: auto; }
.media-open:hover img { transform: none; }
.media-viewport { display: block; position: relative; width: 100%; overflow: hidden; }
.media-viewport.media-cropped img { position: absolute; width: var(--crop-width); max-width: none; height: auto; left: var(--crop-left); top: var(--crop-top); }
.media-gif .media-open { background: var(--slab-fill); backdrop-filter: blur(30px) saturate(2); box-shadow: var(--edge-1), var(--e1); }
.media-motion-toggle {
  min-height: 40px;
  display: block;
  margin: 10px 0 0 auto;
  padding: 5px 10px;
  border: 0;
  border-radius: 9px;
  color: var(--ink-secondary);
  background: var(--surface-low);
  box-shadow: inset 0 0 0 1px var(--paper-edge);
  cursor: pointer;
  font-size: 14px;
  font-weight: 620;
  transition: color 160ms ease, background-color 160ms ease;
}

.media-motion-toggle:hover, .media-motion-toggle:focus-visible { color: var(--brand-deep); background: var(--brand-07); }
.media-frame figcaption { max-width: 820px; margin: 10px auto 0; color: var(--ink-muted); font-size: 14px; line-height: 1.6; text-align: left; }
.media-tutorial figcaption { color: var(--ink-secondary); font-weight: 570; }

.guide-footer { display: flex; align-items: center; gap: 12px; margin-top: 88px; padding-top: 25px; border-top: 1px solid var(--divider); }
.guide-footer img { width: 28px; height: 28px; flex: none; border-radius: 8px; }
.guide-footer > div { min-width: 0; }
.guide-footer strong { display: block; color: var(--ink); font-size: 13px; }
.guide-footer p { margin: 1px 0 0; color: var(--ink-muted); font-size: 12px; }
.guide-footer .edition-note { margin-top: 10px; font-size: 14px; line-height: 1.7; }
.guide-footer a { flex: none; margin-left: auto; color: var(--brand-deep); font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; }

.media-dialog {
  position: fixed;
  width: fit-content;
  max-width: min(95vw, 1600px);
  max-height: 94vh;
  padding: 48px 18px 18px;
  overflow: auto;
  border: 0;
  border-radius: var(--r-glass);
  color: var(--ink);
  background: var(--menu-fill);
  backdrop-filter: blur(64px) saturate(2);
  box-shadow: var(--edge-1), var(--e3);
}

.media-dialog::backdrop { background: rgba(10, 13, 20, .72); backdrop-filter: blur(8px); }
.media-dialog img { max-width: calc(95vw - 36px); max-height: calc(94vh - 102px); display: block; margin: 0 auto; border-radius: var(--r-control); }
.media-dialog p { max-width: 900px; margin: 12px auto 0; color: var(--ink-muted); font-size: 13px; line-height: 1.55; text-align: center; }

.media-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; color: var(--ink-muted); background: var(--veil-fill); box-shadow: var(--edge-1), var(--e0); cursor: pointer; }
.media-close:hover { color: var(--ink); background: var(--lens-fill); }
.media-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.toast {
  position: fixed;
  z-index: 130;
  bottom: 24px;
  left: 50%;
  padding: 10px 15px;
  border-radius: var(--r-control);
  color: #fff;
  background: rgba(25, 28, 35, .92);
  box-shadow: var(--edge-1), var(--e3);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 220ms var(--ease-fluid);
  font-size: 13px;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 7. 联系我们 —— 两张二维码卡片并排，窄屏叠起来。
   二维码底板恒为白色：暗色主题下也要黑码白底，否则扫不出来。 */
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 860px; margin-top: 28px; }
.contact-cards .contact-card { display: flex; align-items: center; gap: 20px; padding: 22px; border-radius: var(--r-card); background: var(--panel-fill); box-shadow: var(--shadow-paper); }
.contact-cards .contact-card + .contact-card { margin-top: 0; border-top: 0; }
.contact-card h3 { font-size: 20px; }
.contact-card p { margin: 8px 0 0; color: var(--ink-secondary); font-size: 15px; line-height: 1.72; }
.contact-qr { flex: none; display: block; width: 132px; height: 132px; padding: 8px; border-radius: var(--r-control); background: #ffffff; box-shadow: 0 0 0 1px var(--paper-edge); }
.contact-qr img { display: block; width: 100%; height: 100%; object-fit: contain; }
#contact > .notice { max-width: 860px; margin-top: 24px; }

@media (min-width: 1600px) {
  :root { --sidebar-w: 276px; }
  .main { padding-right: 42px; padding-left: 42px; }
}

@media (max-width: 1280px) {
  :root { --sidebar-w: 238px; }
  .sidebar { left: 16px; }
  .main { margin-left: calc(var(--sidebar-w) + 28px); padding-right: 20px; padding-left: 20px; }
  .guide { padding: clamp(40px, 4vw, 54px); }
  .canvas-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  :root { --sidebar-w: 224px; }
  .toc a, .toc-parent { font-size: 14px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: grid; }

  .sidebar {
    top: calc(var(--topbar-h) + 12px);
    bottom: 12px;
    left: -360px;
    width: min(340px, calc(100vw - 24px));
    padding: 15px;
    background: var(--menu-fill);
    backdrop-filter: blur(64px) saturate(2);
    box-shadow: var(--edge-1), var(--e3);
    opacity: 0;
    visibility: hidden;
    transition: left 360ms var(--ease-fluid), opacity 220ms ease, visibility 0s linear 360ms;
  }

  .sidebar.open {
    left: 12px;
    opacity: 1;
    visibility: visible;
    transition: left 420ms var(--ease-fluid), opacity 220ms ease, visibility 0s;
  }

  .main { margin-left: 0; padding: calc(var(--topbar-h) + 24px) 18px 76px; }
  .guide { width: min(100%, 930px); min-height: calc(100vh - var(--topbar-h) - 60px); }
}

@media (max-width: 760px) {
  .contact-cards { grid-template-columns: 1fr; }
  .topbar { padding: 0 16px; }
  .brand-copy small { display: none; }
  .search-shell { width: min(280px, 43vw); }
  .search-shell > kbd { display: none; }
  .guide { padding: 34px 28px 48px; border-radius: var(--r-glass); }
  .guide-start-link { gap: 16px; padding: 16px; }
  .guide-start-action > span { display: none; }
  .chapter-head { grid-template-columns: 54px minmax(0, 1fr); gap: 14px; }
  .chapter h2 { font-size: clamp(32px, 7.2vw, 42px); }
  .chapter-no { font-size: 24px; }
  .subsection-head { grid-template-columns: 48px minmax(0, 1fr); }
  .canvas-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .conversion-prompt { grid-template-columns: 1fr; align-items: start; }
  .copy-inline { width: fit-content; }
  .media-frame,
  .media-frame.media-portrait { width: 100%; }
}

@media (max-width: 540px) {
  body { font-size: 17px; }
  .topbar { gap: 8px; padding: 0 12px; }
  .brand { gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .brand-copy { display: none; }
  .topbar-actions { flex: 1; gap: 7px; }
  .search-shell { width: min(220px, calc(100vw - 116px)); height: 40px; }
  .search-shell input { font-size: 13px; }

  .search-results {
    position: fixed;
    top: calc(var(--topbar-h) + 7px);
    right: 12px;
    left: 12px;
    max-height: calc(100vh - var(--topbar-h) - 22px);
  }

  .main { padding: calc(var(--topbar-h) + 12px) 8px 52px; }
  .guide { padding: 28px 18px 40px; border-radius: var(--r-card); }
  .guide-home { min-height: 0; }
  .guide-intro { margin-bottom: 20px; }
  .guide-intro h1 { font-size: 32px; }
  .guide-intro p { font-size: 16px; }
  .guide-start-link { gap: 12px; padding: 16px 12px; }
  .guide-start-link.is-primary strong { font-size: 20px; }
  .guide-home + .chapter { margin-top: 32px; padding-top: 32px; }
  .view-back { margin-bottom: 30px; }
  .chapter { padding-top: 62px; margin-top: 54px; }
  .chapter-head { display: block; }
  .chapter-no { margin-bottom: 12px; font-size: 18px; }
  .chapter h2 { font-size: 31px; }
  .chapter-head > div > p:last-child { font-size: 16px; }
  .canvas-paths { grid-template-columns: 1fr; }
  .canvas-paths a { min-height: 92px; }
  .subsection { padding-top: 46px; }
  .subsection-head { gap: 12px; }
  .subsection-head > span { font-size: 21px; }
  .subsection h3 { font-size: 24px; }
  .subsection > p, .doc-list { font-size: 17px; line-height: 1.82; }
  .doc-list { padding-left: 1.3em; }
  .notice { padding: 15px 15px 15px 18px; }
  .notice p, .disclosure-body p, .disclosure-body li { font-size: 15px; }
  .disclosure summary { font-size: 15px; }
  .media-frame { margin-top: 24px; margin-bottom: 24px; }
  .media-frame figcaption { font-size: 14px; text-align: left; }
  .table-wrap { width: calc(100% + 20px); margin-right: -10px; margin-left: -10px; }
  table { min-width: 580px; font-size: 14px; }
  th, td { padding: 12px; }
  .guide-footer { align-items: flex-start; margin-top: 66px; }
  .guide-footer a { display: none; }
}

@media (max-width: 390px) {
  .search-shell { width: min(202px, calc(100vw - 106px)); }
  .icon-button { width: 40px; height: 40px; }
  .guide { padding-right: 16px; padding-left: 16px; }
}

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

@media print {
  @page { size: A4 portrait; margin: 16mm 14mm 18mm; }
  html, body { color: #191c23 !important; background: #fff !important; font-size: 10.5pt; }

  .topbar,
  .sidebar,
  .nav-scrim,
  .ambient-background,
  .reading-progress,
  .icon-button,
  .toast,
  .media-dialog,
  .view-back,
  .media-motion-toggle,
  .copy-inline { display: none !important; }

  .main { margin: 0; padding: 0; }
  .guide { width: 100%; max-width: none; min-height: 0; margin: 0; padding: 0; border-radius: 0; background: #fff !important; box-shadow: none; }
  .guide-view, .js .guide-view, body[data-guide-ready="true"] .guide-view { display: block !important; animation: none !important; }
  .guide-intro { margin-bottom: 6mm; }
  .guide-intro h1 { font-size: 26pt; }
  .chapter, .chapter.guide-view { padding-top: 12mm; margin-top: 10mm; border-top: .5pt solid #d2d6dd; }

  .guide-start-link,
  .canvas-paths a,
  .notice,
  .disclosure,
  .media-frame,
  table,
  tr { break-inside: avoid; }

  .subsection > .media-frame {
    float: none !important;
    clear: both;
    margin: 5mm auto !important;
  }
  .lesson-layout { display: block; }
  .lesson-layout > .media-frame { width: min(80%, 150mm); margin: 5mm auto; }

  h1, h2, h3, summary { break-after: avoid; }
  .canvas-paths { display: block; }
  .guide-start-link, .canvas-paths a { min-height: 0; padding: 4mm; }
  .canvas-paths a { margin: 4mm 0; box-shadow: inset 0 0 0 .5pt #d2d6dd; }
  .media-open, .media-gif .media-open { background: #f3f5f8 !important; box-shadow: inset 0 0 0 .5pt #d2d6dd; }
  .media-frame img { max-height: 150mm; object-fit: contain; }
  .media-viewport.media-cropped img { max-height: none; object-fit: fill; }
  details { background: #fff !important; box-shadow: inset 0 0 0 .5pt #d2d6dd; }
  details > * { display: block !important; }
  a { color: #191c23 !important; text-decoration: none; }
}
