/* ASDLC Capstone Guide. Tokens first; content SVGs rely on --accent, --muted, --line, --surface, --text, --bg. */
:root {
  --bg: #ffffff;
  --surface: #f7f7f8;
  --surface-2: #f0f0f2;
  --raised: #ffffff;
  --line: #e8e8eb;
  --line-strong: #d7d7dc;
  --text: #16171b;
  --text-2: #3d3f46;
  --muted: #676a73;
  --faint: #9a9ca4;
  --accent: #4353d6;
  --accent-soft: #eef0fc;
  --accent-ink: #3140b3;
  --ok: #17794a;  --ok-soft: #e9f6ef;
  --warn: #9a5a07; --warn-soft: #fdf5e6;
  --tip: #0e7169;  --tip-soft: #e7f5f3;
  --cc: #c2531a;   --cc-soft: #fcf0e8;
  --blue: #3f5bd8; --green: #1a8048; --violet: #7c3aed;
  --mark: #fff2a8;
  --shadow-sm: 0 1px 2px rgba(16, 17, 20, .04);
  --shadow: 0 1px 2px rgba(16, 17, 20, .04), 0 8px 24px -8px rgba(16, 17, 20, .10);
  --shadow-lg: 0 24px 64px -12px rgba(16, 17, 20, .25), 0 2px 6px rgba(16, 17, 20, .06);
  --r: 10px;
  --r-sm: 7px;
  --top-h: 56px;
  --side-w: 276px;
  --col: 760px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0f12; --surface: #15161a; --surface-2: #1c1d22; --raised: #17181c;
    --line: #25262c; --line-strong: #34363e;
    --text: #ececef; --text-2: #c6c8cf; --muted: #999ca6; --faint: #6b6e78;
    --accent: #8e9bff; --accent-soft: #1b1f3d; --accent-ink: #b3bbff;
    --ok: #53cf8e; --ok-soft: #12281c; --warn: #f0b35a; --warn-soft: #2b2211; --tip: #4fcdc1; --tip-soft: #0f2826;
    --cc: #f29a62; --cc-soft: #2c1c12;
    --blue: #8ea4ff; --green: #5bd08c; --violet: #b99cff;
    --mark: #5a4b0f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 64px -12px rgba(0, 0, 0, .7), 0 0 0 1px #2b2c33;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0f12; --surface: #15161a; --surface-2: #1c1d22; --raised: #17181c;
  --line: #25262c; --line-strong: #34363e;
  --text: #ececef; --text-2: #c6c8cf; --muted: #999ca6; --faint: #6b6e78;
  --accent: #8e9bff; --accent-soft: #1b1f3d; --accent-ink: #b3bbff;
  --ok: #53cf8e; --ok-soft: #12281c; --warn: #f0b35a; --warn-soft: #2b2211; --tip: #4fcdc1; --tip-soft: #0f2826;
  --cc: #f29a62; --cc-soft: #2c1c12;
  --blue: #8ea4ff; --green: #5bd08c; --violet: #b99cff;
  --mark: #5a4b0f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 64px -12px rgba(0, 0, 0, .7), 0 0 0 1px #2b2c33;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--top-h) + 24px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15.5px/1.7 var(--sans); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p, li, dd { overflow-wrap: anywhere; }
code { font-family: var(--mono); font-size: .86em; background: var(--surface-2); border: 1px solid var(--line); padding: .08em .36em; border-radius: 5px; color: var(--text); }
kbd { font-family: var(--mono); font-size: 11px; line-height: 1; padding: 3px 5px; border-radius: 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px; background: var(--bg); color: var(--muted); }
mark { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 1px; }
svg { flex-shrink: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1:focus-visible { outline: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; margin: 0 7px; vertical-align: middle; }
.ext { font-size: .85em; margin-left: 2px; opacity: .7; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 10px; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--top-h);
  display: flex; align-items: center; gap: 14px; padding: 0 20px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); display: flex; }
.brand-sub { color: var(--faint); font-weight: 500; font-size: 13px; padding-left: 10px; border-left: 1px solid var(--line); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.menu-btn { display: none; margin-left: -6px; }
.search-btn {
  margin-left: 24px; display: flex; align-items: center; gap: 8px; height: 34px; width: 260px; max-width: 34vw;
  padding: 0 8px 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--faint);
  font: 500 13.5px var(--sans); cursor: pointer; transition: border-color .15s, color .15s;
}
.search-btn:hover { border-color: var(--line-strong); color: var(--muted); }
.search-label { flex: 1; text-align: left; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.doc-link { font-size: 13.5px; font-weight: 500; color: var(--muted); padding: 6px 10px; border-radius: 7px; white-space: nowrap; }
.doc-link:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: block; }
}

/* ---------------------------------------------------------------- layout */
.layout { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: calc(100vh - var(--top-h)); }
.sidebar {
  position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; overscroll-behavior: contain;
  border-right: 1px solid var(--line); background: var(--bg);
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.main { min-width: 0; padding: 44px 56px 64px; }
.main:focus { outline: none; }
.page-grid { display: grid; grid-template-columns: minmax(0, var(--col)) 208px; gap: 64px; justify-content: center; }
.page { min-width: 0; }
.toc { position: relative; }
.scrim { display: none; }

/* ---------------------------------------------------------------- sidebar */
.side-inner { padding: 22px 14px 28px; display: flex; flex-direction: column; min-height: 100%; }
.side-label { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 0 10px; margin: 18px 0 6px; }
.side-label:first-child { margin-top: 0; }
.side-label a { color: inherit; }
.side-label a:hover, .side-label a.active { color: var(--text); text-decoration: none; }
.nav { list-style: none; margin: 0; padding: 0; }
.nav > li + li { margin-top: 1px; }
.nav-link { display: flex; align-items: baseline; gap: 10px; padding: 6px 10px; border-radius: 7px; color: var(--text-2); font-size: 14px; font-weight: 500; line-height: 1.4; }
.nav-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--surface-2); color: var(--text); font-weight: 600; }
.nav-num { font: 500 11.5px var(--mono); color: var(--faint); min-width: 18px; }
.nav-link.active .nav-num { color: var(--accent); }
.nav-sub { list-style: none; margin: 4px 0 8px 19px; padding: 0 0 0 10px; border-left: 1px solid var(--line); }
.nav-sub a { display: block; padding: 4px 10px; margin-left: -11px; border-left: 1px solid transparent; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.nav-sub a:hover { color: var(--text); text-decoration: none; }
.nav-sub a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 500; }
.nav-sub.ms a { display: flex; gap: 8px; align-items: flex-start; }
.nav-dot { flex: none; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; }
.nav-dot svg { width: 10px; height: 10px; }
.nav-sub a.done .nav-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.nav-ms-when { display: block; font-size: 11.5px; color: var(--faint); font-weight: 500; }
.nav-proj { display: block; padding: 8px 10px; border-radius: 7px; color: var(--text-2); font-size: 14px; font-weight: 500; line-height: 1.35; }
.nav-proj:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-proj.active { background: var(--surface-2); color: var(--text); font-weight: 600; }
.nav-proj-top { display: flex; justify-content: space-between; gap: 8px; }
.nav-proj-count { font: 500 11.5px var(--mono); color: var(--faint); }
.nav-proj-slot { display: block; font-size: 12px; color: var(--faint); font-weight: 500; margin-top: 1px; }
.bar { display: block; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 7px; }
.bar > span { display: block; height: 100%; background: var(--pc, var(--accent)); border-radius: 3px; transition: width .3s; }
.nav-final { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.side-foot { margin-top: auto; padding: 22px 10px 0; font-size: 12px; color: var(--faint); line-height: 1.6; }

.c-blue { --pc: var(--blue); }
.c-green { --pc: var(--green); }
.c-violet { --pc: var(--violet); }

/* ---------------------------------------------------------------- page head */
.page-head { margin-bottom: 34px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 0; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.eb-num { font: 500 12.5px var(--mono); color: var(--accent); }
.eb-sep { width: 1px; height: 12px; background: var(--line-strong); margin: 0 10px; }
.crumb { color: var(--muted); }
.crumb:hover { color: var(--text); }
.crumb-sep { color: var(--faint); margin: 0 8px; }
h1 { font-size: 34px; line-height: 1.18; letter-spacing: -.025em; font-weight: 650; margin: 0; color: var(--text); text-wrap: balance; }
.summary { font-size: 17.5px; line-height: 1.6; color: var(--muted); margin: 12px 0 0; max-width: 680px; text-wrap: pretty; }
.slot { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--pc, var(--accent)); }
.slot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------------------------------------------------------------- prose */
.page > p, .prose p, .page > .bullets, .page > .steps { color: var(--text-2); }
.page p { margin: 0 0 16px; }
.lead { font-size: 17px; line-height: 1.7; color: var(--text) !important; margin-bottom: 24px !important; }
.hx { position: relative; }
h2.hx { font-size: 22px; line-height: 1.3; letter-spacing: -.015em; font-weight: 620; margin: 52px 0 14px; color: var(--text); }
h3.hx { font-size: 17px; line-height: 1.4; letter-spacing: -.008em; font-weight: 600; margin: 34px 0 10px; color: var(--text); }
.page-head + .hx, .page-head + * + .hx { margin-top: 8px; }
.anchor { margin-left: 6px; color: var(--faint); font-weight: 400; opacity: 0; transition: opacity .12s; text-decoration: none !important; }
.hx:hover .anchor, .anchor:focus-visible { opacity: 1; }
.anchor:hover { color: var(--accent); }
.sub-h { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 22px 0 10px; }
.flash { animation: flash 1.4s ease-out; }
@keyframes flash { 0%, 30% { background: var(--accent-soft); box-shadow: 0 0 0 6px var(--accent-soft); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }

.bullets { margin: 0 0 18px; padding-left: 0; list-style: none; }
.bullets > li { position: relative; padding-left: 20px; margin: 7px 0; }
.bullets > li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.bullets.pitfalls > li::before { background: var(--warn); opacity: .7; }
.bullets.deliver > li::before { border-radius: 1px; background: var(--accent); opacity: .6; }
.steps { counter-reset: s; list-style: none; margin: 0 0 20px; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 0 36px; margin: 0 0 12px; min-height: 24px; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 1px; width: 23px; height: 23px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--muted); font: 500 12px/21px var(--mono); text-align: center;
}
.source { font-size: 13.5px; color: var(--muted); }

/* cross-links to Claude Code components */
a.cc-link { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--cc) 55%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a.cc-link::after, .cc-demo {
  content: "CC"; display: inline-block; margin-left: 3px; padding: 0 3px; border-radius: 3px; vertical-align: 1px;
  font: 600 9px/13px var(--mono); letter-spacing: .02em; color: var(--cc); background: var(--cc-soft); text-decoration: none;
}
.cc-demo { margin-left: 0; }
a.cc-link:hover { color: var(--cc); text-decoration-color: var(--cc); }
.cc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 4px; }
.cc-row-label { font-size: 12px; font-weight: 600; color: var(--faint); margin-right: 4px; }
.cc-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text-2); font-size: 12.5px; font-weight: 500; line-height: 1.5; white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.cc-chip:hover { border-color: color-mix(in srgb, var(--cc) 50%, var(--line)); color: var(--text); text-decoration: none; }
.cc-mark { font: 600 9px/15px var(--mono); padding: 0 4px; border-radius: 999px; color: var(--cc); background: var(--cc-soft); }

/* ---------------------------------------------------------------- callouts */
.callout { --c: var(--accent); --cs: var(--accent-soft); margin: 22px 0; padding: 14px 18px; border: 1px solid color-mix(in srgb, var(--c) 22%, var(--line)); border-left: 3px solid var(--c); border-radius: var(--r-sm); background: color-mix(in srgb, var(--cs) 55%, var(--bg)); }
.callout.warn { --c: var(--warn); --cs: var(--warn-soft); }
.callout.tip { --c: var(--tip); --cs: var(--tip-soft); }
.callout.lesson { --c: var(--pc, var(--accent)); --cs: var(--surface); }
.callout-title { font-size: 13.5px; font-weight: 600; color: var(--c); margin-bottom: 4px; }
.callout-body { font-size: 14.5px; color: var(--text-2); }
.callout-body > :last-child, .callout-body p:last-child { margin-bottom: 0; }
.callout-body p { margin: 0 0 8px; }

/* ---------------------------------------------------------------- code */
/* bare <pre> inside html content (e.g. in a list item) */
.page pre { max-width: 100%; overflow-x: auto; margin: 10px 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font: 400 12.5px/1.6 var(--mono); color: var(--text); }
.page pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.code { margin: 20px 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.code-head { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.code-title { font: 500 12px var(--mono); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.code-lang { font: 500 11px var(--mono); color: var(--faint); text-transform: lowercase; margin-left: auto; }
.copy-btn { margin-left: 6px; font: 500 12px var(--sans); color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; cursor: pointer; }
.code-title:empty + .copy-btn, .code-head > .copy-btn:nth-child(2) { margin-left: auto; }
.copy-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--bg); }
.copy-btn.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; border: 0; border-radius: 0; background: none; font: 400 13px/1.65 var(--mono); color: var(--text); tab-size: 2; }
.code pre code { background: none; border: 0; padding: 0; font-size: inherit; }

/* ---------------------------------------------------------------- tables */
.table-wrap { margin: 18px 0 24px; border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted); background: var(--surface); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); min-width: 120px; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--text); font-weight: 500; }

/* ---------------------------------------------------------------- equation, timeline */
.equation { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 24px 0; padding: 24px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.equation span { padding: 4px 12px; border-radius: 7px; background: var(--bg); border: 1px solid var(--line); }
.equation em { font-style: normal; color: var(--faint); font-weight: 400; }
.timeline { list-style: none; margin: 16px 0 26px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 13px 18px; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; }
.tl-when { font: 500 12.5px/1.9 var(--mono); color: var(--accent); white-space: nowrap; }
.tl-what { color: var(--text-2); font-size: 14.5px; }

/* ---------------------------------------------------------------- defs */
.defs { margin: 16px 0 26px; border-top: 1px solid var(--line); }
.def { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.def dt { font-weight: 600; font-size: 15px; line-height: 1.45; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.def-term { color: var(--text); }
.def-term:hover { color: var(--accent); text-decoration: none; }
.def dd { margin: 0; color: var(--text-2); font-size: 14.5px; }
.def-src { margin-top: 6px; font-size: 13px; }
.def-src a { color: var(--muted); }
.def-src a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- resources */
.res-list { list-style: none; margin: 14px 0 26px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.res-list li + li { border-top: 1px solid var(--line); }
.res { display: flex; align-items: flex-start; gap: 14px; padding: 13px 16px; color: var(--text); transition: background .12s; }
.res:hover { background: var(--surface); text-decoration: none; }
.res:hover .res-title { color: var(--accent); }
.res:hover .res-go { color: var(--accent); transform: translate(1px, -1px); }
.kind { flex: none; width: 58px; margin-top: 2px; text-align: center; font: 600 10.5px/20px var(--sans); letter-spacing: .03em; text-transform: uppercase; border-radius: 5px; color: var(--kc, var(--muted)); background: color-mix(in srgb, var(--kc, var(--muted)) 11%, transparent); }
.k-docs { --kc: var(--accent); }
.k-read { --kc: var(--muted); }
.k-video { --kc: #d23f4a; }
.k-course { --kc: var(--ok); }
.k-repo { --kc: var(--text-2); }
.k-spec { --kc: var(--tip); }
.k-pdf { --kc: var(--warn); }
.k-paper { --kc: var(--violet); }
.res-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.res-title { font-weight: 550; font-size: 14.5px; line-height: 1.45; transition: color .12s; }
.res-meta { font-size: 12.5px; color: var(--muted); }
.res-host { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.res-note { font-size: 13.5px; color: var(--text-2); margin-top: 3px; line-height: 1.55; }
.res-go { flex: none; color: var(--faint); margin-top: 1px; transition: transform .15s, color .15s; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.pill { display: inline-flex; align-items: center; gap: 2px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--text-2); background: var(--bg); }
.pill:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.src-link { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- checklists */
.checklist { margin: 16px 0 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); overflow: hidden; }
.cl-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px 8px; font-weight: 600; font-size: 14px; }
.cl-count { font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; }
.checklist.complete .cl-count { color: var(--ok); }
.cl-bar { height: 2px; margin: 0 16px 6px; background: var(--line); border-radius: 2px; overflow: hidden; }
.cl-bar span { display: block; height: 100%; background: var(--ok); transition: width .25s; }
.checklist ul { list-style: none; margin: 0; padding: 4px 6px 6px; }
.check { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.check:hover { background: var(--surface); }
.check input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 2px 0 0; }
.box { flex: none; width: 18px; height: 18px; margin-top: 2px; border: 1.5px solid var(--line-strong); border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; color: transparent; background: var(--bg); transition: background .12s, border-color .12s; }
.box svg { width: 12px; height: 12px; }
.check input:checked + .box { background: var(--ok); border-color: var(--ok); color: #fff; }
.check input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check input:checked ~ .check-text { color: var(--muted); }

/* ---------------------------------------------------------------- tools */
.tool-group { margin-bottom: 8px; }
.group-intro { color: var(--muted) !important; font-size: 14.5px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0 28px; }
.tool-card { display: flex; flex-direction: column; padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.tool-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.tool-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tool-top h4 { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.35; letter-spacing: -.005em; }
.tag { flex: none; font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.cost { align-self: flex-start; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border-radius: 6px; padding: 2px 8px; }
.cost.is-free { color: var(--ok); background: var(--ok-soft); }
.facts { margin: 12px 0 0; display: grid; gap: 9px; }
.facts dt { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 1px 0 0; font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.tool-card .pills { margin-top: 14px; }
.tool-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.verified { font-size: 11.5px; color: var(--faint); }

/* ---------------------------------------------------------------- components */
.comp-block { margin: 12px 0 26px; }
.comp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 22px; }
.comp-card { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.comp-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); text-decoration: none; }
.comp-card:hover .chev { color: var(--accent); transform: translateX(2px); }
.comp-icon { flex: none; width: 36px; height: 36px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.comp-icon svg { width: 18px; height: 18px; }
.glyph-txt { font: 600 12px var(--mono); text-transform: uppercase; }
.comp-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.comp-name { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.comp-one { font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.chev { width: 14px; height: 14px; color: var(--faint); flex: none; transition: transform .15s, color .15s; }
.comp-hero-icon { position: absolute; right: 0; top: 0; width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--cc-soft); color: var(--cc); }
.comp-hero-icon svg { width: 24px; height: 24px; }
.page-head:has(.comp-hero-icon) { position: relative; padding-right: 68px; }
.backlinks { list-style: none; margin: 10px 0 24px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); }
.backlinks li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.backlinks li:first-child { border-top: 0; }
.bl-where { color: var(--faint); font-size: 12.5px; white-space: nowrap; }

/* ---------------------------------------------------------------- diagram */
.diagram { margin: 22px 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--text); }
.diagram-inner { overflow-x: auto; }
.diagram svg { display: block; max-width: 100%; height: auto; margin: 0 auto; font-family: var(--sans); }
.diagram figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------------------------------------------------------------- labs */
.lab { margin: 20px 0 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); box-shadow: var(--shadow-sm); }
.lab[open] { border-color: var(--line-strong); }
.lab > summary { list-style: none; cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 52px 16px 18px; border-radius: var(--r); }
.lab > summary::-webkit-details-marker { display: none; }
.lab > summary:hover { background: var(--surface); }
.lab[open] > summary { border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; }
.lab-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lab-tag { font: 600 10.5px/19px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 0 7px; border-radius: 5px; color: var(--bg); background: var(--text); }
.lvl { font-size: 11.5px; font-weight: 600; padding: 0 8px; border-radius: 999px; line-height: 19px; border: 1px solid var(--line); color: var(--muted); }
.lvl-warm-up { color: var(--tip); border-color: color-mix(in srgb, var(--tip) 35%, var(--line)); }
.lvl-core { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.lvl-stretch { color: var(--violet); border-color: color-mix(in srgb, var(--violet) 35%, var(--line)); }
.lab-time { font-size: 12.5px; color: var(--muted); }
.lab-count { margin-left: auto; font: 500 12px var(--mono); color: var(--faint); }
.lab-count.ok { color: var(--ok); }
.lab-title { font-size: 16.5px; font-weight: 600; letter-spacing: -.008em; color: var(--text); line-height: 1.35; }
.lab-goal { font-size: 14px; color: var(--muted); line-height: 1.55; }
.lab-toggle { position: absolute; right: 16px; top: 18px; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.lab-toggle .chev { transform: rotate(90deg); }
.lab[open] .lab-toggle .chev { transform: rotate(-90deg); }
.lab-body { padding: 4px 18px 18px; }
.lab-body .sub-h:first-child { margin-top: 16px; }
.lab-body .checklist { margin-top: 0; }
.lab-goal-full { margin-top: 14px !important; color: var(--text-2); font-size: 14.5px; }

/* ---------------------------------------------------------------- building blocks */
.prims { list-style: none; margin: 16px 0 26px; padding: 0; display: grid; gap: 12px; }
.prim { display: flex; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); }
.prim-n { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font: 600 13px/28px var(--mono); text-align: center; }
.prim-body { min-width: 0; flex: 1; }
.prim h3 { margin: 2px 0 6px; font-size: 15.5px; font-weight: 600; }
.prim p { margin: 0 0 10px !important; font-size: 14.5px; color: var(--text-2); }
.prim-done { padding: 8px 12px; background: var(--surface); border-radius: 7px; }
.label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ok); margin-bottom: 2px; }
.prim-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.prim-foot .cc-row { margin: 0; }

/* ---------------------------------------------------------------- rubric */
.rubric { display: grid; gap: 0; margin: 14px 0 12px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rub { padding: 14px 18px; border-top: 1px solid var(--line); }
.rub:first-child { border-top: 0; }
.rub-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 14.5px; }
.rub-w { font: 600 13px var(--mono); color: var(--accent); }
.rub-bar { height: 4px; background: var(--line); border-radius: 4px; margin: 8px 0 8px; overflow: hidden; }
.rub-bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.rub p { margin: 0 !important; font-size: 14px; color: var(--text-2); }

/* ---------------------------------------------------------------- projects */
.proj-cards { display: grid; gap: 12px; margin-top: 8px; }
.proj-card { display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); color: var(--text); position: relative; transition: border-color .15s, box-shadow .15s; }
.proj-card::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--pc); }
.proj-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); text-decoration: none; }
.proj-card h2 { font-size: 18px; margin: 6px 0 6px; letter-spacing: -.01em; font-weight: 600; }
.proj-card p { margin: 0 0 14px !important; color: var(--muted); font-size: 14.5px; }
.proj-card-foot { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); }
.proj-card-foot .bar { flex: 1; max-width: 200px; margin: 0; }
.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0 0; }
.meta dt { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.meta dd { margin: 3px 0 0; font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.prog { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.prog-bar { flex: 1; max-width: 320px; height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.prog-bar span { display: block; height: 100%; background: var(--pc); border-radius: 6px; transition: width .3s; }
.prog-txt { font-size: 13px; color: var(--muted); }

.evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 22px; }
.ev { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); color: var(--text); transition: border-color .15s, box-shadow .15s; }
a.ev:hover { border-color: var(--line-strong); box-shadow: var(--shadow); text-decoration: none; }
a.ev:hover .ev-src { color: var(--accent); }
.ev-org { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ev-stat { font-size: 26px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; color: var(--pc, var(--text)); }
.ev-label { font-size: 13px; color: var(--text-2); line-height: 1.55; flex: 1; }
.ev-src { margin-top: 8px; font-size: 12px; color: var(--muted); transition: color .12s; }

.ms-cards { list-style: none; margin: 14px 0 26px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ms-cards li + li { border-top: 1px solid var(--line); }
.ms-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; color: var(--text); transition: background .12s; }
.ms-card:hover { background: var(--surface); text-decoration: none; }
.ms-card:hover .chev { color: var(--accent); transform: translateX(2px); }
.ms-n { flex: none; align-self: flex-start; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font: 500 12.5px var(--mono); color: var(--muted); background: var(--bg); }
.ms-n svg { width: 14px; height: 14px; }
.ms-card.done .ms-n { background: var(--ok); border-color: var(--ok); color: #fff; }
.ms-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ms-when { font-size: 12px; font-weight: 500; color: var(--faint); }
.ok-txt { color: var(--ok); }
.ms-title { font-weight: 600; font-size: 15px; line-height: 1.4; margin-top: 1px; }
.ms-goal { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.rail { margin: -8px 0 30px; overflow-x: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail ol { list-style: none; margin: 0; padding: 2px; display: flex; gap: 4px; }
.rail li { flex: 1 0 auto; }
.rail a { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: border-color .12s, color .12s, background .12s; }
.rail a:hover { color: var(--text); border-color: var(--line-strong); text-decoration: none; }
.rail a.current { color: var(--text); border-color: var(--pc); background: color-mix(in srgb, var(--pc) 8%, var(--bg)); font-weight: 600; }
.rail-dot { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 500 11px var(--mono); background: var(--surface-2); color: var(--muted); }
.rail-dot svg { width: 11px; height: 11px; }
.rail a.done .rail-dot { background: var(--ok); color: #fff; }
.rail a.current:not(.done) .rail-dot { background: var(--pc); color: #fff; }
.ms-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.ms-end { margin-top: 40px; padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--r); }
.ms-end .ms-status { margin-top: 0; }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: 500 14px var(--sans); cursor: pointer; transition: background .12s, border-color .12s; }
.btn svg { width: 14px; height: 14px; }
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { background: color-mix(in srgb, var(--text) 85%, var(--bg)); }
.btn-done { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.btn-done:hover { background: var(--ok-soft); border-color: var(--ok); }

/* ---------------------------------------------------------------- pager, footer */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.pager-link { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); color: var(--text); transition: border-color .15s; min-width: 0; }
.pager-link:hover { border-color: var(--accent); text-decoration: none; }
.pager-link.next { text-align: right; grid-column: 2; }
.pager-dir { font-size: 12.5px; color: var(--muted); }
.pager-link.prev .pager-dir::before { content: "← "; }
.pager-link.next .pager-dir::after { content: " →"; }
.pager-title { font-weight: 600; font-size: 14.5px; color: var(--accent); overflow: hidden; text-overflow: ellipsis; }
.page-foot { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }
.page-foot a { color: var(--muted); }

/* ---------------------------------------------------------------- toc */
.toc-inner { position: sticky; top: calc(var(--top-h) + 44px); max-height: calc(100vh - var(--top-h) - 64px); overflow-y: auto; padding-bottom: 20px; scrollbar-width: none; }
.toc-title { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; margin-left: -1px; padding: 4px 0 4px 13px; border-left: 1px solid transparent; font-size: 13px; line-height: 1.45; color: var(--muted); transition: color .12s, border-color .12s; }
.toc .lv3 a { padding-left: 25px; font-size: 12.5px; }
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.active { color: var(--accent); border-left-color: var(--accent); }

/* ---------------------------------------------------------------- palette */
.palette { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.palette[hidden] { display: none; }
.palette-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, #0a0b0d 38%, transparent); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.palette-box { position: relative; width: 100%; max-width: 620px; max-height: 70vh; display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.palette-input-row { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--faint); }
.palette-input-row input { flex: 1; min-width: 0; height: 52px; border: 0; outline: none; background: transparent; color: var(--text); font: 400 16px var(--sans); }
.palette-input-row input::placeholder { color: var(--faint); }
.palette-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; }
.palette-list a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; color: var(--text); }
.palette-list a:hover { text-decoration: none; }
.palette-list li[aria-selected="true"] a { background: var(--accent-soft); }
.p-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.p-title { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-kind { flex: none; font-size: 11px; font-weight: 600; color: var(--faint); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.palette-empty { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 14px; }
.palette-foot { display: flex; gap: 16px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.palette-foot kbd { margin-right: 3px; }
body.palette-open { overflow: hidden; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1260px) {
  .page-grid { grid-template-columns: minmax(0, var(--col)); }
  .toc { display: none; }
}
@media (max-width: 1060px) {
  .main { padding: 36px 36px 56px; }
  .evidence { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; height: 100%; width: min(320px, 86vw);
    transform: translateX(-100%); visibility: hidden; box-shadow: var(--shadow-lg);
    transition: transform .22s ease, visibility 0s linear .22s;
  }
  .menu-open .sidebar { transform: none; visibility: visible; transition: transform .22s ease; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: color-mix(in srgb, #0a0b0d 35%, transparent); }
  .scrim[hidden] { display: none; }
  .side-inner { padding-top: 18px; }
  .brand-sub { display: none; }
  .search-btn { margin-left: auto; }
  .topbar-right { margin-left: 0; }
}
@media (max-width: 720px) {
  :root { --top-h: 52px; }
  body { font-size: 15px; }
  .topbar { padding: 0 12px 0 16px; gap: 6px; }
  .main { padding: 24px 16px 48px; }
  .doc-link { display: none; }
  .search-btn { width: 34px; padding: 0; justify-content: center; border-color: transparent; background: none; color: var(--muted); }
  .search-label, .search-kbd { display: none; }
  h1 { font-size: 27px; }
  .summary { font-size: 16px; }
  h2.hx { font-size: 20px; margin-top: 42px; }
  .page-head { margin-bottom: 26px; padding-bottom: 22px; }
  .tool-grid, .comp-grid, .meta { grid-template-columns: minmax(0, 1fr); }
  .def { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kind { width: auto; padding: 0 6px; }
  .res { gap: 12px; padding: 12px 14px; }
  .pager { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pager-link { padding: 12px; }
  .pager-title { font-size: 13.5px; }
  .lab > summary { padding: 14px 48px 14px 14px; }
  .lab-body { padding: 4px 14px 14px; }
  .lab-count { margin-left: 0; }
  .prim { padding: 14px; gap: 12px; }
  .equation { font-size: 17px; }
  .palette { padding: 8px; }
  .palette-box { max-height: 86vh; }
  .palette-foot { display: none; }
  .comp-hero-icon { width: 40px; height: 40px; }
  .page-head:has(.comp-hero-icon) { padding-right: 52px; }
}
@media (max-width: 400px) {
  .brand-text { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .sidebar, .toc, .pager, .copy-btn, .ms-status { display: none !important; }
  .layout { display: block; }
  .main { padding: 0; }
  .lab > .lab-body { display: block; }
}

/* lists inside html content of callouts and cells */
.callout-body ul, .callout-body ol { margin: 6px 0 8px; padding-left: 18px; }
.callout-body li { margin: 3px 0; }
.callout-body li::marker { color: var(--faint); }
td ul, td ol { margin: 0; padding-left: 16px; }
@media (max-width: 720px) {
  .diagram { padding: 14px; }
  .diagram svg { min-width: 520px; }
  .callout { padding: 12px 14px; }
}
