/* win11debloat.dev — design system.
   An engineering-document look: warm paper, ink, hairlines, one signal colour.
   No gradients. Every colour is a token; dark mode redefines the tokens. */

@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-var.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-var.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }

:root {
  --bg: #f6f5f1; --bg-2: #efede6; --surface: #ffffff; --raised: #fbfaf7;
  --ink: #121417; --ink-2: #474c54; --ink-3: #6f747d; --ink-4: #9a9ea6;
  --line: #e3e0d8; --line-2: #cfcbc0; --line-3: #b9b4a7;
  --accent: #e2531a; --accent-ink: #b2400c; --accent-soft: #fcebe1; --on-accent: #ffffff;
  --ok: #0e7a50; --ok-soft: #e1f2e9; --warn: #9b5a05; --warn-soft: #faefd9; --bad: #bf2a2a; --bad-soft: #fae4e2;
  --pol: #5a48c2; --pol-soft: #ece9fb; --info: #1f5fbf; --info-soft: #e5eefb;
  --code-bg: #131518; --code-ink: #e5e3dc; --code-line: #24272c; --code-3: #8b9099;
  --c-key: #9fc2ff; --c-str: #b8e19a; --c-num: #ffb38a; --c-com: #6d737c; --c-var: #f2c66d; --c-flag: #ff9b70; --c-cmd: #ffffff;
  --viz: #e2531a; --viz-2: #121417; --viz-track: rgba(18, 20, 23, .06);
  --shadow-s: 0 1px 0 rgba(18, 20, 23, .04), 0 1px 3px rgba(18, 20, 23, .06);
  --shadow: 0 1px 0 rgba(18, 20, 23, .04), 0 12px 32px -16px rgba(18, 20, 23, .25);
  --shadow-l: 0 2px 0 rgba(18, 20, 23, .03), 0 30px 80px -30px rgba(18, 20, 23, .35);
  --r: 10px; --r-s: 6px; --r-l: 16px;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --w: 1240px; --w-text: 740px; --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --grid-line: rgba(18, 20, 23, .055);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0e10; --bg-2: #121417; --surface: #16181c; --raised: #1a1d21;
    --ink: #ecebe6; --ink-2: #b0b4bb; --ink-3: #868b94; --ink-4: #5d626a;
    --line: #25282d; --line-2: #33373d; --line-3: #474c53;
    --accent: #ff6a2b; --accent-ink: #ff8f5c; --accent-soft: #2b1a11; --on-accent: #120a05;
    --ok: #46c993; --ok-soft: #0f261c; --warn: #e5aa52; --warn-soft: #2a2010; --bad: #f2756f; --bad-soft: #2d1614;
    --pol: #ab9dff; --pol-soft: #1d1a33; --info: #7fb0ff; --info-soft: #121d30;
    --code-bg: #0a0b0d; --code-line: #1d2025;
    --viz: #ff6a2b; --viz-2: #ecebe6; --viz-track: rgba(236, 235, 230, .07);
    --shadow-s: 0 1px 0 rgba(0, 0, 0, .3); --shadow: 0 16px 40px -18px rgba(0, 0, 0, .7); --shadow-l: 0 30px 80px -30px rgba(0, 0, 0, .8);
    --grid-line: rgba(236, 235, 230, .045);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0e10; --bg-2: #121417; --surface: #16181c; --raised: #1a1d21;
  --ink: #ecebe6; --ink-2: #b0b4bb; --ink-3: #868b94; --ink-4: #5d626a;
  --line: #25282d; --line-2: #33373d; --line-3: #474c53;
  --accent: #ff6a2b; --accent-ink: #ff8f5c; --accent-soft: #2b1a11; --on-accent: #120a05;
  --ok: #46c993; --ok-soft: #0f261c; --warn: #e5aa52; --warn-soft: #2a2010; --bad: #f2756f; --bad-soft: #2d1614;
  --pol: #ab9dff; --pol-soft: #1d1a33; --info: #7fb0ff; --info-soft: #121d30;
  --code-bg: #0a0b0d; --code-line: #1d2025;
  --viz: #ff6a2b; --viz-2: #ecebe6; --viz-track: rgba(236, 235, 230, .07);
  --shadow-s: 0 1px 0 rgba(0, 0, 0, .3); --shadow: 0 16px 40px -18px rgba(0, 0, 0, .7); --shadow-l: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --grid-line: rgba(236, 235, 230, .045);
  color-scheme: dark;
}

/* ── base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.65 var(--sans); font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 4.6vw, 3.55rem); font-weight: 760; letter-spacing: -.04em; line-height: 1.04; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); font-weight: 720; margin: 3.2rem 0 1rem; position: relative; }
h3 { font-size: 1.16rem; font-weight: 680; margin: 2rem 0 .6rem; letter-spacing: -.015em; }
h4 { font-size: 1rem; font-weight: 680; margin: 1.5rem 0 .4rem; }
p { margin: 0 0 1.05rem; }
ul, ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
li { margin: .3rem 0; }
li::marker { color: var(--ink-3); }
strong { font-weight: 650; }
small, .small { font-size: 14px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
code, kbd, pre { font-family: var(--mono); }
:not(pre) > code { font-size: .86em; padding: .12em .38em; border-radius: 5px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); white-space: break-spaces; overflow-wrap: anywhere; }
kbd { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1; padding: 4px 6px 3px; border-radius: 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--surface); color: var(--ink-2); }
.muted { color: var(--ink-3); }
.sr, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 500; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.mono { font-family: var(--mono); }
.c { text-align: center; }

/* ── header ───────────────────────────────────────────────────────────── */
.site-h { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-h-in { max-width: var(--w); margin: 0 auto; padding: 0 var(--gut); height: 62px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.logo { color: var(--ink); }
.logo-gone { stroke: var(--accent); }
.brand-n { font-weight: 730; font-size: 17px; letter-spacing: -.03em; }
.brand-tld { color: var(--ink-3); font-weight: 560; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav li { margin: 0; }
.nav-i { position: relative; }
.nav-b { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: 560 14.5px var(--sans); cursor: pointer; }
.nav-b:hover, .nav-i.open .nav-b { background: var(--bg-2); color: var(--ink); }
.nav-b.is-cur { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 0 0; }
.nav-b svg { transition: transform .2s var(--ease); opacity: .6; }
.nav-i.open .nav-b svg { transform: rotate(180deg); }
.nav-p { position: absolute; top: calc(100% + 10px); left: -12px; z-index: 120; display: none; min-width: 330px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-l); }
.nav-i.open .nav-p { display: block; animation: drop .18s var(--ease); }
.nav-p-in { display: flex; gap: 6px; }
.nav-g { min-width: 300px; padding: 4px; }
.nav-g + .nav-g { border-left: 1px solid var(--line); padding-left: 10px; }
.nav-g ul { display: block; }
.nav-gt { margin: 4px 10px 6px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.nav-g a { display: flex; flex-direction: column; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.nav-g a:hover, .nav-g a[aria-current] { background: var(--bg-2); }
.nav-l { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.nav-d { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }
.site-h-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.search-b { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink-3); font: 500 14px var(--sans); cursor: pointer; min-width: 190px; }
.search-b:hover { border-color: var(--line-2); color: var(--ink-2); }
.search-b kbd { margin-left: auto; font-size: 11px; padding: 3px 5px 2px; }
.ver { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--line); font: 600 12.5px var(--mono); color: var(--ink-2); text-decoration: none; background: var(--surface); }
.ver:hover { color: var(--ink); border-color: var(--line-2); }
.ver-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.icon-b, .burger { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid transparent; border-radius: 9px; background: none; color: var(--ink-2); cursor: pointer; text-decoration: none; }
.icon-b:hover, .burger:hover { background: var(--bg-2); color: var(--ink); }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; } :root[data-theme="dark"] .i-moon { display: inline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: none; } :root:not([data-theme="light"]) .i-moon { display: inline; } }

.burger { display: none; }
.drawer { position: fixed; inset: 62px 0 0; z-index: 99; overflow-y: auto; background: var(--bg); padding: 20px var(--gut) 60px; }
.drawer-in { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.drawer-g p { margin: 0 0 6px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.drawer-g ul { list-style: none; padding: 0; margin: 0; }
.drawer-g li { margin: 0; }
.drawer-g a { display: block; padding: 7px 0; text-decoration: none; font-weight: 560; border-bottom: 1px solid var(--line); }
.drawer-g a[aria-current] { color: var(--accent-ink); }
@media (max-width: 1080px) { .search-l, .search-b kbd { display: none; } .search-b { min-width: 0; width: 36px; padding: 0; justify-content: center; } }
@media (max-width: 900px) { .nav { display: none; } .burger { display: inline-grid; } .ver { display: none; } }
@media (max-width: 420px) { .brand-tld { display: none; } }

/* ── page layout ──────────────────────────────────────────────────────── */
.page-layout { max-width: var(--w); margin: 0 auto; padding: 22px var(--gut) 80px; display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 64px; }
.page-layout.no-rail, .page-layout--wide, .page-layout--tool, .page-layout--plain { grid-template-columns: minmax(0, 1fr); }
.page-article { min-width: 0; width: 100%; max-width: var(--w-text); }
.page-layout--wide .page-article, .page-layout--tool .page-article { max-width: none; }
.page-layout--article.no-rail .page-article, .page-layout--plain .page-article { margin: 0 auto; }
.crumbs ol { list-style: none; padding: 0; margin: 6px 0 22px; display: flex; flex-wrap: wrap; gap: 4px; font: 500 12.5px var(--mono); color: var(--ink-3); }
.crumbs li { margin: 0; display: flex; align-items: center; gap: 4px; }
.crumbs li + li::before { content: '/'; color: var(--ink-4); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-hero { padding: 6px 0 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 600 12px var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--accent); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.24rem); line-height: 1.55; color: var(--ink-2); margin: 16px 0 0; max-width: 64ch; }
.page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 20px; font-size: 13.5px; color: var(--ink-3); }
.page-meta a { color: var(--ink-3); }
.pm-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 12.5px; }
.page-rail { position: relative; }
.rail-toc { position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow-y: auto; padding-left: 16px; border-left: 1px solid var(--line); }
.rail-toc-t { margin: 0 0 10px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.toc-list { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc-list li { margin: 0; counter-increment: toc; }
.toc-item { position: relative; display: block; padding: 5px 0; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); text-decoration: none; }
.toc-item:hover { color: var(--ink); }
.toc-item.is-active { color: var(--ink); font-weight: 600; }
.toc-item.is-active::before { content: ''; position: absolute; left: -17px; top: 6px; bottom: 6px; width: 2px; background: var(--accent); }
.rail-top { display: inline-block; margin-top: 16px; font: 500 12px var(--mono); color: var(--ink-3); text-decoration: none; }
.toc-inline { display: none; margin: 0 0 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.toc-inline summary { cursor: pointer; padding: 12px 16px; font-weight: 620; font-size: 15px; list-style: none; display: flex; justify-content: space-between; }
.toc-inline summary span { font: 500 12px var(--mono); color: var(--ink-3); }
.toc-inline .toc-list { padding: 0 16px 12px; counter-reset: toc; }
.toc-inline .toc-item::before { content: counter(toc, decimal-leading-zero); font: 500 11px var(--mono); color: var(--ink-4); margin-right: 10px; }
@media (max-width: 1080px) { .page-layout { grid-template-columns: minmax(0, 1fr); } .page-rail { display: none; } .toc-inline { display: block; } .page-article { margin: 0 auto; } }
.h-anchor { position: absolute; left: -1.1em; top: 0; padding-right: .3em; color: var(--ink-4); text-decoration: none; opacity: 0; font-weight: 500; }
h2:hover .h-anchor, .h-anchor:focus { opacity: 1; }
@media (max-width: 900px) { .h-anchor { display: none; } }
.page-article > h2:first-of-type { margin-top: 2rem; }
.page-feedback { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font: 620 15px var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background .15s; }
.btn:hover { color: var(--bg); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-accent:hover { color: var(--on-accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.4rem 0; }

/* ── code ─────────────────────────────────────────────────────────────── */
.code { margin: 1.3rem 0 1.6rem; border-radius: var(--r); background: var(--code-bg); color: var(--code-ink); overflow: hidden; border: 1px solid var(--code-line); box-shadow: var(--shadow-s); }
.code-h { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--code-line); }
.code-dots { display: inline-flex; gap: 5px; }
.code-dots i { width: 8px; height: 8px; border-radius: 50%; background: #2e3238; }
.code-t { font: 500 12px var(--mono); color: var(--code-3); }
.code pre { margin: 0; padding: 14px 16px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.65; tab-size: 4; }
.code code { font-family: var(--mono); }
.copy { margin-left: auto; height: 28px; padding: 0 11px; border: 1px solid #30343a; border-radius: 7px; background: #1b1e22; color: #d6d3cc; font: 600 12px var(--sans); cursor: pointer; }
.copy:hover { background: #262a2f; color: #fff; }
.copy.is-done { background: var(--ok); border-color: var(--ok); color: #fff; }
.c-key { color: var(--c-key); } .c-str { color: var(--c-str); } .c-num, .c-lit { color: var(--c-num); } .c-com { color: var(--c-com); font-style: italic; }
.c-var { color: var(--c-var); } .c-flag { color: var(--c-flag); } .c-cmd { color: var(--c-cmd); font-weight: 600; } .c-prompt { color: var(--code-3); user-select: none; } .c-out { color: var(--code-3); }
.cmdline, .pathbox { display: flex; align-items: center; gap: 8px; margin: .8rem 0 1.1rem; padding: 6px 6px 6px 14px; border-radius: var(--r); background: var(--code-bg); border: 1px solid var(--code-line); }
.cmdline code, .pathbox code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; background: none !important; border: 0 !important; padding: 0 !important; color: var(--code-ink) !important; font-size: 13.5px !important; scrollbar-width: none; }
.copy-sm { margin-left: 0; flex-shrink: 0; }
.kseq { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.kplus { color: var(--ink-3); font-size: 12px; }

/* ── callouts, answer box ─────────────────────────────────────────────── */
.callout { display: grid; grid-template-columns: 22px 1fr; gap: 12px; margin: 1.4rem 0 1.7rem; padding: 15px 18px 14px 15px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.callout > div > :last-child { margin-bottom: 0; }
.callout-i { color: var(--ink-3); padding-top: 2px; }
.callout-t { margin: 0 0 4px; font-weight: 680; }
.callout-tip { border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); background: var(--ok-soft); } .callout-tip .callout-i { color: var(--ok); }
.callout-ok { border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); background: var(--ok-soft); } .callout-ok .callout-i { color: var(--ok); }
.callout-warn { border-color: color-mix(in srgb, var(--warn) 32%, var(--line)); background: var(--warn-soft); } .callout-warn .callout-i { color: var(--warn); }
.callout-danger { border-color: color-mix(in srgb, var(--bad) 32%, var(--line)); background: var(--bad-soft); } .callout-danger .callout-i { color: var(--bad); }
.callout-new { border-color: color-mix(in srgb, var(--accent) 32%, var(--line)); background: var(--accent-soft); } .callout-new .callout-i { color: var(--accent-ink); }
.callout-note .callout-i { color: var(--info); }
.answer { position: relative; margin: 0 0 2rem; padding: 20px 22px 18px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.answer::before { content: ''; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--accent); }
.answer-k { margin: 0 0 6px; font: 600 11px var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); }
.answer-q { margin: 0 0 6px; font-weight: 680; font-size: 1.05rem; }
.answer-a > :last-child { margin-bottom: 0; }
.answer-a ul { margin-bottom: 0; }

/* ── cards ────────────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 1.3rem 0 1.8rem; }
.cards-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 17px 18px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s var(--ease), box-shadow .15s; }
.card:hover { color: var(--ink); border-color: var(--line-3); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-i { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 6px; border-radius: 9px; background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); }
.card-k { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.card-t { font-weight: 680; font-size: 15.5px; letter-spacing: -.01em; padding-right: 22px; }
.card-d { font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.card-go { position: absolute; top: 17px; right: 16px; color: var(--ink-4); transition: transform .15s var(--ease), color .15s; }
.card:hover .card-go { color: var(--accent); transform: translateX(3px); }

/* ── steps ────────────────────────────────────────────────────────────── */
.steps { list-style: none; padding: 0; margin: 1.5rem 0 2rem; counter-reset: step; }
.step { position: relative; margin: 0; padding: 0 0 26px 56px; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -1px; width: 38px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--ink); color: var(--bg); font: 600 13px var(--mono); }
.step::after { content: ''; position: absolute; left: 18.5px; top: 36px; bottom: 6px; width: 1px; background: var(--line-2); }
.step:last-child::after { display: none; }
.step-t { margin: 2px 0 6px; font-size: 1.06rem; }
.step-b > :last-child { margin-bottom: 0; }

/* ── tabs ─────────────────────────────────────────────────────────────── */
.tabs { margin: 1.4rem 0 1.8rem; }
.tab-bar { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 14px; }
.tab-btn { flex-shrink: 0; height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--ink-3); font: 600 14px var(--sans); cursor: pointer; }
.tab-btn[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); }
.tabs.is-js > .tab-panel { display: none; }
.tabs.is-js > .tab-panel.is-active { display: block; animation: fade .2s ease; }
.tabs:not(.is-js) > .tab-panel::before { content: attr(data-label); display: block; font-weight: 700; margin: 1rem 0 .5rem; }
@keyframes fade { from { opacity: 0; } }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq { margin: 1.2rem 0 2rem; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { flex: 1; margin: 0; font-size: 1.04rem; font-weight: 640; letter-spacing: -.01em; }
.faq-i { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-i::before, .faq-i::after { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--ink-3); transition: transform .2s var(--ease); }
.faq-i::after { transform: rotate(90deg); }
.faq-item[open] .faq-i::after { transform: rotate(0); }
.faq-a { padding: 0 0 16px; color: var(--ink-2); }
.faq-a > :last-child { margin-bottom: 0; }

/* ── tables ───────────────────────────────────────────────────────────── */
.table-wrap { margin: 1.2rem 0 1.8rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font: 600 11px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); background: var(--raised); white-space: nowrap; position: sticky; top: 0; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 620; }
tbody tr:hover { background: color-mix(in srgb, var(--bg-2) 55%, transparent); }
td code, th code { font-size: 12.5px; }
.errmsg { font: 500 .86em/1.5 var(--mono); color: var(--bad); background: var(--bad-soft); padding: .12em .4em; border-radius: 5px; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.yes { color: var(--ok); font-weight: 650; } .no { color: var(--bad); font-weight: 650; } .part { color: var(--warn); font-weight: 650; }
.tag { display: inline-flex; align-items: center; height: 21px; padding: 0 7px; border-radius: 5px; font: 600 11px var(--mono); letter-spacing: .02em; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.tag-def { color: var(--accent-ink); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.tag-pol { color: var(--pol); background: var(--pol-soft); border-color: color-mix(in srgb, var(--pol) 25%, transparent); }
.tag-ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; } .tag-warn { color: var(--warn); background: var(--warn-soft); border-color: transparent; } .tag-bad { color: var(--bad); background: var(--bad-soft); border-color: transparent; }
.rec { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.rec::before { content: ''; width: 8px; height: 8px; border-radius: 2px; }
.rec-ok { color: var(--ok); } .rec-ok::before { background: var(--ok); }
.rec-warn { color: var(--warn); } .rec-warn::before { background: var(--warn); border-radius: 50%; }
.rec-bad { color: var(--bad); } .rec-bad::before { background: var(--bad); transform: rotate(45deg); }
.tbl-apps .app-n { display: block; }
.app-id { display: block; margin-top: 2px; font-size: 11.5px !important; color: var(--ink-3) !important; background: none !important; border: 0 !important; padding: 0 !important; font-weight: 400; }
.filter-bar { display: flex; align-items: center; gap: 12px; margin: 1.2rem 0 -.4rem; flex-wrap: wrap; }
.filter { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink-3); }
.filter:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.filter input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 15px var(--sans); }
.filter-count { font: 500 12.5px var(--mono); color: var(--ink-3); }

/* ── registry tables ──────────────────────────────────────────────────── */
.regt { margin: 12px 0 14px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.regt-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--line); background: var(--raised); }
.regt-f { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-3); min-width: 0; }
.regt-f code { background: none !important; border: 0 !important; padding: 0 !important; font-size: 12px !important; color: var(--ink-2) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.regt-src { font: 500 12px var(--mono); color: var(--ink-3); }
.regt .table-wrap { margin: 0; border: 0; border-radius: 0; }
.regt-t { font-size: 13px; }
.regt-t th, .regt-t td { padding: 8px 12px; }
.regt-t td { border-right: 1px solid var(--line); }
.regt-t td:last-child { border-right: 0; }
.rr-key { width: 52%; }
.rk-hive { display: inline-block; margin-right: 6px; padding: 1px 5px; border-radius: 4px; font: 700 10.5px var(--mono); vertical-align: 1px; color: var(--info); background: var(--info-soft); }
.rk-HKLM { color: var(--warn); background: var(--warn-soft); }
.rk-path { font: 12px/1.55 var(--mono); color: var(--ink); word-break: break-all; }
.regt-t .tag-pol { margin-left: 6px; height: 18px; font-size: 10px; }
.rr-note { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.rr-name code, .rr-val code { font-size: 12px; }
.rr-type { display: inline-block; min-width: 54px; margin-right: 6px; font: 600 10.5px var(--mono); color: var(--ink-3); }
.rv-hex { font: 11px var(--mono); color: var(--ink-4); }
.rv-del { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; font: 600 11px var(--mono); color: var(--bad); background: var(--bad-soft); }
.regt-undo { opacity: .92; }

/* ── tweak cards ──────────────────────────────────────────────────────── */
.tweaks { display: grid; gap: 14px; margin: 1.4rem 0 2rem; }
.tw { padding: 18px 20px 14px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); scroll-margin-top: 90px; }
.tw:target { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.tw-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.tw-t { margin: 0; font-size: 1.08rem; }
.tw-b { display: flex; flex-wrap: wrap; gap: 5px; }
.tw-d { margin: 8px 0 12px; color: var(--ink-2); font-size: 15px; }
.tw-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 18px; margin: 0 0 10px; padding: 10px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.tw-meta div { min-width: 0; }
.tw-meta dt { font: 600 10.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.tw-meta dd { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.tw-sw { font-size: 12.5px !important; color: var(--accent-ink) !important; }
.tw-reg > summary { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; font-weight: 620; font-size: 14.5px; list-style: none; color: var(--ink); }
.tw-reg > summary::-webkit-details-marker { display: none; }
.tw-reg > summary span { margin-left: auto; font: 500 12px var(--mono); color: var(--ink-3); }
.tw-reg > summary::after { content: '+'; font: 500 16px var(--mono); color: var(--ink-3); width: 14px; text-align: center; }
.tw-reg[open] > summary::after { content: '–'; }
.tw-undo-h { display: flex; align-items: center; gap: 7px; margin: 14px 0 0; font-size: 13.5px; color: var(--ink-3); flex-wrap: wrap; }
.twg { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--raised); scroll-margin-top: 90px; }
.twg-k { margin: 0 0 4px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.twg-t { margin: 0; }
.twg-opts { display: grid; gap: 10px; margin-top: 10px; }
.twg-ol { margin: 6px 0 6px; font-weight: 640; font-size: 14.5px; }
.twg-ol::before { content: '○ '; color: var(--ink-3); }
.twg-none { margin: 0; font-size: 14px; color: var(--ink-3); }
.twg .tw { background: var(--surface); }
.deflist { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; counter-reset: d; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.deflist li { margin: 0; counter-increment: d; border-bottom: 1px solid var(--line); }
.deflist li:last-child { border-bottom: 0; }
.deflist a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; color: var(--ink); }
.deflist a::before { content: counter(d, decimal-leading-zero); font: 600 12px var(--mono); color: var(--ink-4); }
.deflist a:hover { background: var(--bg-2); }
.deflist-l { font-weight: 600; font-size: 15px; }
.deflist-c { margin-left: auto; font: 500 12px var(--mono); color: var(--ink-3); }

/* ── charts (lib/charts.mjs) ──────────────────────────────────────────── */
.viz { margin: 1.6rem 0 2rem; padding: 20px 20px 14px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.viz-head { display: flex; flex-direction: column; gap: 2px; margin: 0 0 18px; }
.viz-title { font-weight: 680; font-size: 1.02rem; letter-spacing: -.01em; }
.viz-sub { font-size: 13.5px; color: var(--ink-3); }
.viz-note { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-3); }
.viz-source { display: block; margin-top: 2px; font-family: var(--mono); font-size: 11.5px; }
.viz-table { margin-top: 8px; font-size: 13px; }
.viz-table > summary { cursor: pointer; color: var(--ink-3); width: fit-content; }
.viz-table .table-wrap { margin: 8px 0 0; }
.viz-hbars { display: grid; gap: 9px; }
.hb-row { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; align-items: center; gap: 12px; font-size: 13.5px; }
.hb-label { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-track { height: 14px; border-radius: 3px; background: var(--viz-track); }
.hb-bar { display: block; height: 100%; width: var(--w); border-radius: 3px; background: var(--ink-3); transform-origin: left; }
.hb-row.is-hl .hb-bar, .hb-bar:hover, .hb-bar:focus-visible { background: var(--viz); }
.hb-val { font: 600 12.5px var(--mono); color: var(--ink); min-width: 5.5ch; text-align: right; font-variant-numeric: tabular-nums; }
.viz-cols, .viz-area { position: relative; }
.vc-grid { position: absolute; inset: 0 0 26px 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.vc-tick { border-top: 1px dashed var(--line); height: 0; position: relative; }
.vc-tick span { position: absolute; left: 0; top: -9px; font: 10.5px var(--mono); color: var(--ink-3); background: var(--surface); padding-right: 6px; }
.vc-plot { position: relative; height: 230px; margin-left: 38px; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; align-items: end; padding-bottom: 26px; }
.vc-col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.vc-bar { position: relative; width: min(100%, 24px); height: var(--h); border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--ink) 22%, var(--surface)); transform-origin: bottom; }
.vc-col.is-hl .vc-bar, .vc-bar:hover, .vc-bar:focus-visible { background: var(--viz); }
.vc-val { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font: 600 11px var(--mono); color: var(--ink); white-space: nowrap; }
.vc-x { position: absolute; bottom: -22px; font: 10px var(--mono); color: var(--ink-3); white-space: nowrap; }
.vc-x-minor { visibility: hidden; }
@media (max-width: 760px) { .vc-x { transform: rotate(-55deg); transform-origin: top right; right: 50%; bottom: -34px; font-size: 9px; } .vc-plot { height: 190px; padding-bottom: 44px; } .vc-grid { bottom: 44px; } .vc-val { font-size: 9.5px; } }
.ar-plot { position: relative; height: 220px; margin-left: 34px; }
.ar-plot .vc-grid { inset: 0; left: -34px; }
.ar-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ar-fill { fill: var(--viz); opacity: .1; }
.ar-line { fill: none; stroke: var(--viz); stroke-width: 2px; stroke-linejoin: round; }
.ar-hit { position: absolute; left: var(--x); top: var(--y); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; }
.ar-lab { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -150%); font: 600 11px var(--mono); color: var(--ink); white-space: nowrap; }
.ar-x { position: relative; height: 22px; margin: 6px 0 0 34px; }
.ar-x span { position: absolute; left: var(--x); transform: translateX(-50%); font: 10.5px var(--mono); color: var(--ink-3); }
.viz-tip { position: fixed; z-index: 300; max-width: 290px; padding: 7px 10px; border-radius: 8px; background: var(--ink); color: var(--bg); font: 600 12.5px/1.4 var(--sans); pointer-events: none; box-shadow: var(--shadow); transform: translate(-50%, calc(-100% - 12px)); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 1.4rem 0 1.9rem; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); overflow: hidden; }
.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--line); margin-right: -1px; border-bottom: 1px solid var(--line); margin-bottom: -1px; }
.stat-v { font-size: clamp(1.4rem, 3.6vw, 1.85rem); font-weight: 740; letter-spacing: -.035em; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-l { font-size: 13.5px; color: var(--ink-2); }
.stat-n { font: 11.5px/1.4 var(--mono); color: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) {
  .js .viz .hb-bar, .js .viz .vc-bar { transform: scale(0); }
  .viz.in-view .hb-bar { animation: growX .9s var(--ease) forwards; }
  .viz.in-view .vc-bar { animation: growY .8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 22ms); }
}
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes growY { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ── screenshots, diagrams ────────────────────────────────────────────── */
.shot { margin: 1.6rem 0 2rem; }
.shot-frame { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: var(--shadow); line-height: 0; }
.shot img { width: 100%; display: block; }
.shot figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.shot-badge { display: inline-flex; width: fit-content; align-items: center; gap: 6px; font: 600 11px var(--mono); letter-spacing: .03em; color: var(--ok); }
.shot-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.diagram { margin: 1.6rem 0 2rem; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }
.dg-box { fill: var(--raised); stroke: var(--line-2); stroke-width: 1.2; }
.dg-box-a { fill: var(--accent-soft); stroke: var(--accent); }
.dg-box-g { fill: var(--ok-soft); stroke: var(--ok); }
.dg-box-i { fill: var(--ink); stroke: var(--ink); }
.dg-t { fill: var(--ink); font: 600 15px var(--sans); }
.dg-ti { fill: var(--bg); font: 600 15px var(--sans); }
.dg-s { fill: var(--ink-3); font: 500 12.5px var(--mono); }
.dg-a { fill: var(--accent-ink); font: 600 12.5px var(--mono); }
.dg-line { stroke: var(--ink-3); stroke-width: 1.4; fill: none; }
.dg-line-a { stroke: var(--accent); stroke-width: 1.6; fill: none; }
.dg-dash { stroke-dasharray: 4 4; }
.dg-arrow { fill: var(--ink-3); }
.dg-arrow-a { fill: var(--accent); }

/* ── related, footer ──────────────────────────────────────────────────── */
.next { margin-top: 56px; padding-top: 6px; }
.next h2 { font-size: 1.15rem; margin: 1rem 0 .4rem; }
.site-f { border-top: 1px solid var(--line); background: var(--bg-2); }
.site-f-in { max-width: var(--w); margin: 0 auto; padding: 48px var(--gut) 30px; display: grid; grid-template-columns: minmax(240px, 1.6fr) repeat(auto-fit, minmax(130px, 1fr)); gap: 30px 26px; }
.f-brand p { font-size: 14px; color: var(--ink-3); margin: 14px 0 0; max-width: 40ch; }
.f-mail { font-size: 14px; }
.f-h { margin: 4px 0 10px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.f-col ul { list-style: none; padding: 0; margin: 0; }
.f-col li { margin: 0 0 7px; }
.f-col a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.f-col a:hover { color: var(--ink); text-decoration: underline; }
.f-legal { max-width: var(--w); margin: 0 auto; padding: 18px var(--gut) 34px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 12.5px; color: var(--ink-3); }
.f-legal p { margin: 0; max-width: 80ch; }
.f-legal a { color: var(--ink-3); }

/* ── search palette ───────────────────────────────────────────────────── */
.palette { position: fixed; inset: 0; z-index: 400; background: color-mix(in srgb, var(--bg) 55%, rgba(0, 0, 0, .45)); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: 11vh 16px 16px; }
.palette[hidden] { display: none; }
.palette-box { width: min(640px, 100%); max-height: 72vh; display: flex; flex-direction: column; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-l); overflow: hidden; animation: drop .18s var(--ease); }
.palette-in { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.palette-in input { flex: 1; height: 56px; border: 0; outline: 0; background: none; color: var(--ink); font: 17px var(--sans); }
.palette-in input::-webkit-search-cancel-button { display: none; }
.palette-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.palette-list li { margin: 0; }
.palette-list a { display: grid; grid-template-columns: 62px 1fr; gap: 0 10px; padding: 9px 10px; border-radius: 9px; text-decoration: none; color: var(--ink); }
.palette-list a[aria-selected="true"] { background: var(--bg-2); }
.pl-kind { grid-row: span 2; align-self: start; margin-top: 2px; font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); }
.pl-t { font-weight: 620; font-size: 15px; }
.pl-d { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-empty { padding: 18px 12px; color: var(--ink-3); font-size: 14px; }
.palette-foot { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

/* ── misc utilities ───────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 1.3rem 0 1.8rem; }
.panel { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.panel > :last-child { margin-bottom: 0; }
.panel h3:first-child { margin-top: 0; }
.pros, .cons { list-style: none; padding: 0; }
.pros li, .cons li { position: relative; padding-left: 24px; }
.pros li::before { content: '+'; position: absolute; left: 4px; color: var(--ok); font: 700 15px var(--mono); }
.cons li::before { content: '−'; position: absolute; left: 4px; color: var(--bad); font: 700 15px var(--mono); }
.nextlist li { margin: .45rem 0; }
.spec { display: grid; grid-template-columns: minmax(130px, auto) 1fr; margin: 1.2rem 0 1.8rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.spec dt, .spec dd { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.spec dt { font: 600 11.5px/1.9 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); background: var(--raised); }
.spec dd { font-size: 14.5px; min-width: 0; overflow-wrap: anywhere; }
.spec dt:nth-last-of-type(1), .spec dd:last-child { border-bottom: 0; }
@media (max-width: 560px) { .spec { grid-template-columns: 1fr; } .spec dt { border-bottom: 0; padding-bottom: 0; } }
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .reveal.in-view { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
@media print { .site-h, .site-f, .page-rail, .toc-inline, .next, .page-feedback, .copy { display: none !important; } body { background: #fff; } }

/* ── hashes, chains (download flow) ───────────────────────────────────── */
.tbl-hash th { width: 30%; }
.hash-f { display: block; font: 500 12px var(--mono); color: var(--ink-3); margin-top: 2px; }
.hash { font-size: 12px !important; word-break: break-all; }
.hash-n { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.chain { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 0; counter-reset: ch; }
.chain li { position: relative; margin: 0; padding: 0 0 22px 46px; counter-increment: ch; }
.chain li::before { content: counter(ch); position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--ink); font: 600 13px var(--mono); background: var(--bg); z-index: 1; }
.chain li::after { content: ''; position: absolute; left: 15px; top: 30px; bottom: 0; border-left: 1.5px dashed var(--line-3); }
.chain li:last-child::after { display: none; }
.chain-t { display: block; font-weight: 660; margin: 3px 0 2px; }
.chain-h { display: inline-block; margin: 2px 0 4px; padding: 2px 8px; border-radius: 6px; background: var(--code-bg); color: var(--code-ink); font: 500 12.5px var(--mono); word-break: break-all; }
.chain-d { display: block; font-size: 14.5px; color: var(--ink-2); }
.chain li.is-you::before { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ── measured registry diff ───────────────────────────────────────────── */
.regdiff { margin: 1.2rem 0 1.8rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.rd-g + .rd-g { border-top: 1px solid var(--line); }
.rd-g > summary { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.rd-g > summary::-webkit-details-marker { display: none; }
.rd-g > summary::before { content: '+'; font: 500 15px var(--mono); color: var(--ink-3); width: 12px; }
.rd-g[open] > summary::before { content: '–'; }
.rd-t { font-weight: 620; font-size: 14.5px; }
.rd-sw { font-size: 11.5px !important; color: var(--accent-ink) !important; }
.rd-n { margin-left: auto; font: 500 12px var(--mono); color: var(--ink-3); }
.rd-t-t { border-top: 1px solid var(--line); }
.rd-t-t td { border-right: 0 !important; }
.rd-v { white-space: nowrap; }
.rd-arrow { margin: 0 8px; color: var(--accent); font-weight: 700; }
.rv-none { font: 12px var(--mono); color: var(--ink-4); }
.rd-g .table-wrap { margin: 0; border: 0; border-radius: 0; }
.tr-total th, .tr-total td { background: var(--raised); }
.table-tall { max-height: min(680px, 78vh); overflow: auto; }
.tbl-apps th[scope="row"], .tbl-index th[scope="row"] { min-width: 210px; }
.tbl-apps td:nth-child(2) { min-width: 220px; }

/* ── app catalog ──────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: 560 13.5px var(--sans); cursor: pointer; }
.chip span { font: 600 11px var(--mono); color: var(--ink-3); }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip[aria-pressed="true"] span { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.tbl-cat td:nth-child(2) { min-width: 280px; }
.tbl-cat td:nth-child(3) .tag { margin-top: 5px; display: inline-flex; }
.tbl-cat td:nth-child(3) { white-space: nowrap; }
.tbl-cat td:nth-child(3) .rec { display: flex; }
.cat-note { display: block; margin-top: 6px; font-size: 13.5px; color: var(--ink-2); padding-left: 10px; border-left: 2px solid var(--accent); }
.cat-keep { display: block; margin-top: 4px; font-size: 13px; color: var(--warn); font-weight: 560; }
.btn-mini { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; margin: 0 4px 4px 0; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 12px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-mini:hover { border-color: var(--ink); color: var(--ink); }
.btn-mini.is-done { background: var(--ok); border-color: var(--ok); color: #fff; }
.cat-empty { padding: 16px; color: var(--ink-3); }
.tbl-cat tr.is-target { background: var(--accent-soft); }
@media (max-width: 760px) { .site-f-in { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }
p, li, dd, td, th, figcaption { overflow-wrap: break-word; }

/* run comparison and -WhatIf timeline (tested page) */
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl-runs th[scope="row"] { min-width: 13em; }
.wf { list-style: none; margin: 1.4rem 0; padding: 0; position: relative; }
.wf::before { content: ''; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.wf-s { position: relative; padding: 0 0 18px 42px; }
.wf-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.wf-n { position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line-2); font: 650 12px var(--mono); color: var(--ink-2); }
.wf-t { font-weight: 650; }
.wf-c { font: 600 11.5px var(--mono); color: var(--accent-ink); }
.wf-b { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.wf-reg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; }
.wf-file { font-size: 12px; color: var(--ink-3); background: none; border: 0; padding: 0; }
.wf-apps { display: flex; flex-wrap: wrap; gap: 5px; }
.wf-app { padding: 2px 8px; border-radius: 5px; border: 1px solid var(--line); background: var(--raised); font-size: 12.5px; color: var(--ink-2); }
.wf-more summary { cursor: pointer; font-size: 13px; color: var(--accent-ink); margin: 2px 0 6px; }
.wf-tasks, .wf-other { margin: 0; padding-left: 1.1em; font-size: 13px; color: var(--ink-2); }
.wf-tasks code { font-size: 12px; overflow-wrap: anywhere; }
.runs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin: 1.4rem 0; }
.run-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.run-card.run-void { background: var(--bg); border-style: dashed; }
.run-card header p { margin: 0; }
.run-os { display: flex; justify-content: space-between; gap: 10px; font-weight: 680; }
.run-os span { font: 600 11.5px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.run-how { font-size: 13px; color: var(--ink-3); margin-top: 2px !important; }
.run-ms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 10px; padding: 12px 0; border-block: 1px solid var(--line); }
.run-m { display: flex; flex-direction: column; min-width: 0; }
.run-v { font-weight: 720; font-size: 1.15rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.run-v .yes, .run-v .no { font-size: .85rem; }
.run-l { font-size: 11.5px; color: var(--ink-3); line-height: 1.3; }
.run-out { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* tweak areas grid (/tweaks/) */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 1.2rem 0; }
.cat { position: relative; display: grid; align-content: start; grid-template-columns: auto 1fr; grid-template-areas: "n t" "n d" "n m"; gap: 2px 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s var(--ease); }
a.cat:hover { border-color: var(--ink); transform: translateY(-1px); color: var(--ink); }
div.cat { background: var(--bg); }
.cat-n { grid-area: n; font: 720 1.7rem/1 var(--sans); letter-spacing: -.04em; min-width: 2ch; color: var(--accent); font-variant-numeric: tabular-nums; }
.cat-t { grid-area: t; font-weight: 680; }
.cat-d { grid-area: d; font-size: 13.5px; color: var(--ink-2); }
.cat-m { grid-area: m; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.cat-m:empty { display: none; }
.tbl-index code { white-space: nowrap; }
.tbl-policy code.pk { display: block; font-size: 11.5px; margin: 2px 0; overflow-wrap: anywhere; white-space: normal; }
.tbl-policy .app-id { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

/* release notes */
.rn { display: flex; flex-direction: column; gap: 8px; margin: 1.2rem 0; }
.rn-r { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.rn-r summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.rn-r summary::-webkit-details-marker { display: none; }
.rn-tag { font: 700 15px var(--mono); }
.rn-date { color: var(--ink-2); font-size: 14px; }
.rn-dl { margin-left: auto; font: 12px var(--mono); color: var(--ink-3); }
.rn-b { padding: 0 16px 12px; font-size: 14.5px; }
.rn-b ul { padding-left: 1.2em; margin: .3rem 0 .8rem; }
.rn-b li { margin-bottom: 3px; }
.rn-h { margin: .6rem 0 .2rem; font-weight: 680; }
.rn-note { margin: .4rem 0 .8rem; padding: 10px 12px; border-left: 3px solid var(--info); background: var(--info-soft); border-radius: var(--r-s); }
.rn-src { margin: .4rem 0 0; font-size: 13px; }
.vc-col:last-child .vc-val { left: auto; right: 0; transform: none; } .vc-col:first-child .vc-val { left: 0; transform: none; }
.rn-b { overflow-wrap: anywhere; }

/* per-tweak test result on tweak cards */
.tw-test { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r-s); background: var(--ok-soft); font-size: 13.5px; }
.tw-test p { margin: 0; }
.tw-test svg { vertical-align: -2px; margin-right: 5px; }
.tw-test-h { color: var(--ink); }
.tw-test-u { margin-top: 6px !important; }
.tw-test-u.is-part { color: var(--warn); }
.tw-test-d summary { margin-top: 8px; cursor: pointer; font-weight: 600; font-size: 13px; }
.tw-test-d .rk-path { display: block; font: 11px var(--mono); color: var(--ink-3); overflow-wrap: anywhere; }
.tw-test-shot { margin: 10px 0 0; }
.tw-test-shot img { width: 100%; height: auto; border-radius: var(--r-s); border: 1px solid var(--line); }
.tw-test-shot figcaption { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

/* comparison matrix (/alternatives/, /vs/*) */
.tbl-compare { font-size: 14px; }
.tbl-compare.cmp-3, .tbl-compare.cmp-4 { min-width: 640px; } .tbl-compare.cmp-5, .tbl-compare.cmp-6 { min-width: 960px; }
.tbl-compare thead th { white-space: normal; font: 650 14px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.tbl-compare thead th a { color: inherit; }
.tbl-compare .cmp-by { display: block; font: 500 11.5px var(--mono); color: var(--ink-3); margin-top: 2px; }
.tbl-compare tbody th { width: 150px; font-size: 13.5px; color: var(--ink-2); }
.tbl-compare:is(.cmp-5, .cmp-6) :is(tbody th, thead th:first-child) { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.tbl-compare:is(.cmp-5, .cmp-6) thead th:first-child { z-index: 2; background: var(--raised); }
.tbl-compare td code { white-space: nowrap; }
@media (max-width: 600px) { .tbl-compare:is(.cmp-5, .cmp-6) tbody th { width: 112px; min-width: 112px; } .tbl-compare.cmp-6 { min-width: 1000px; } }
.tbl-compare.cmp-2 tbody th { width: 28%; }
.tbl-compare .cmp-us { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.tbl-compare td:is(.cmp-yes, .cmp-part, .cmp-no, .cmp-na)::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 7px; vertical-align: 1px; }
.tbl-compare td.cmp-yes::before { background: var(--ok); } .tbl-compare td.cmp-part::before { background: var(--warn); border-radius: 50%; }
.tbl-compare td.cmp-no::before { background: var(--bad); transform: rotate(45deg); } .tbl-compare td.cmp-na::before { background: var(--line-3); }
.cmp-src { margin: -.8rem 0 1.8rem; font-size: 13.5px; color: var(--ink-2); }
.cmp-src summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.cmp-src ul { margin: .5rem 0; padding-left: 1.2rem; } .cmp-src p { margin: .3rem 0 0; color: var(--ink-3); }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 1.2rem 0 1.8rem; }
.pick { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.pick h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.35; }
.pick p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.faq-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1.6rem; }
.faq-nav a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 560; text-decoration: none; }
.faq-nav a:hover { border-color: var(--line-2); color: var(--ink); }
.cmp-empty { padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--ink-2); font-size: 14.5px; }
