/* retrobar.dev — design system.
   A precise, editorial page (warm paper, ink, hairlines, one teal signal colour)
   set against authentic retro artefacts: taskbar replicas drawn from RetroBar's
   own theme files, and real screenshots. The site chrome never uses gradients;
   only the XP and Vista replicas do, because the originals did.
   Component structure ported from win11debloat.dev. */

@font-face { font-family: 'IBM Plex Sans'; src: url('/fonts/ibm-plex-sans-400-700-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/ibm-plex-mono-400-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/ibm-plex-mono-500-latin.woff2') format('woff2'); font-weight: 500 700; font-display: swap; }

:root {
  --bg: #f4f1ea; --bg-2: #ebe7dc; --surface: #fffdf8; --raised: #faf8f2;
  --ink: #15140f; --ink-2: #45433b; --ink-3: #6b685d; --ink-4: #9a968a;
  --line: #dfdacd; --line-2: #cbc5b5; --line-3: #b2ab98;
  --accent: #007b7a; --accent-ink: #005f5e; --accent-soft: #dcefeb; --on-accent: #ffffff;
  --ok: #1a7035; --ok-soft: #e1f1e4; --warn: #95600a; --warn-soft: #f7ecd6; --bad: #b42a22; --bad-soft: #f8e3df;
  --pol: #5d4bb5; --pol-soft: #ebe7f8; --info: #1d5aa8; --info-soft: #e3ecf8;
  --code-bg: #0f1615; --code-ink: #e3e6df; --code-line: #1f2a28; --code-3: #86918d;
  --c-key: #8fd3cf; --c-str: #d7e3a2; --c-num: #ffbf8a; --c-com: #8a9792; --c-var: #f0c86b; --c-flag: #f4a37a; --c-cmd: #ffffff;
  --viz: #007b7a; --viz-2: #15140f; --viz-track: rgba(21, 20, 15, .07);
  --shadow-s: 0 1px 0 rgba(21, 20, 15, .05), 0 1px 2px rgba(21, 20, 15, .06);
  --shadow: 0 1px 0 rgba(21, 20, 15, .05), 0 14px 30px -18px rgba(21, 20, 15, .28);
  --shadow-l: 0 2px 0 rgba(21, 20, 15, .04), 0 30px 70px -32px rgba(21, 20, 15, .38);
  --r: 6px; --r-s: 3px; --r-l: 10px;
  --sans: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex 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(21, 20, 15, .06);
  --logo-face: #c0c0c0; --logo-hi: #ffffff; --logo-sh: #404040; --logo-ink: #15140f;
  --desk: #008080;
  --dock-h: 30px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111413; --bg-2: #161a19; --surface: #191e1d; --raised: #1d2322;
    --ink: #ebe9e2; --ink-2: #b5b8b1; --ink-3: #8a8f88; --ink-4: #5f655f;
    --line: #262d2b; --line-2: #343c3a; --line-3: #4a5350;
    --accent: #4cc2bc; --accent-ink: #79d6d1; --accent-soft: #10302d; --on-accent: #06110f;
    --ok: #5cc97c; --ok-soft: #10261a; --warn: #e3ae55; --warn-soft: #2a2110; --bad: #f07b72; --bad-soft: #2d1614;
    --pol: #ab9dff; --pol-soft: #1d1a33; --info: #7fb0ff; --info-soft: #121d30;
    --code-bg: #0a0f0e; --code-line: #19221f;
    --viz: #4cc2bc; --viz-2: #ebe9e2; --viz-track: rgba(235, 233, 226, .08);
    --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(235, 233, 226, .05);
    --logo-face: #2b3331; --logo-hi: #5d6865; --logo-sh: #050707; --logo-ink: #ebe9e2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111413; --bg-2: #161a19; --surface: #191e1d; --raised: #1d2322;
  --ink: #ebe9e2; --ink-2: #b5b8b1; --ink-3: #8a8f88; --ink-4: #5f655f;
  --line: #262d2b; --line-2: #343c3a; --line-3: #4a5350;
  --accent: #4cc2bc; --accent-ink: #79d6d1; --accent-soft: #10302d; --on-accent: #06110f;
  --ok: #5cc97c; --ok-soft: #10261a; --warn: #e3ae55; --warn-soft: #2a2110; --bad: #f07b72; --bad-soft: #2d1614;
  --pol: #ab9dff; --pol-soft: #1d1a33; --info: #7fb0ff; --info-soft: #121d30;
  --code-bg: #0a0f0e; --code-line: #19221f;
  --viz: #4cc2bc; --viz-2: #ebe9e2; --viz-track: rgba(235, 233, 226, .08);
  --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(235, 233, 226, .05);
  --logo-face: #2b3331; --logo-hi: #5d6865; --logo-sh: #050707; --logo-ink: #ebe9e2;
  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); -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.1rem, 4.4vw, 3.4rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.05; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); font-weight: 620; margin: 3.2rem 0 1rem; position: relative; }
h3 { font-size: 1.16rem; font-weight: 600; margin: 2rem 0 .6rem; letter-spacing: -.015em; }
h4 { font-size: 1rem; font-weight: 600; 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: 600; }
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); }
.shot-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; align-items: start; }
.shot-row .shot { margin: 1rem 0; }
.shot-row .shot-frame { background: var(--bg-2); display: grid; place-items: center; }
.shot-row .shot img { width: auto; max-width: 100%; margin: 0 auto; }
.shot-row .shot-badge { font-size: 10px; }
.shot-win .shot-frame { background: var(--bg-2); padding: 14px; }
.code-tall pre { max-height: 480px; overflow: auto; }
.tbl-next th[scope=row] { white-space: nowrap; }
.tbl-next td:last-child { min-width: 260px; }
.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; }

/* ══════════════════════════════════════════════════════════════════════
   Taskbar replicas (.tb) — every colour, gradient, height and font comes
   from css/skins.css, generated from RetroBar's own theme XAML. Families:
   classic (95/98, Me, 2000, XP Classic, Vista Classic, System),
   watercolor, xp, vista (Aero, Basic), longhorn.
   ══════════════════════════════════════════════════════════════════════ */
.tb { --tb-h: 28px; --face: #c0c0c0; --hi: #fff; --sh: #808080; --dk: #000; --fg: #000; --clock: #000; --tb-bg: var(--face); --tb-line: #fff; --tray-bg: transparent; --btn-bg: var(--face); --btn-bg-on: var(--face); --btn-fg-on: var(--fg); --tb-font: Tahoma, sans-serif; --tb-fs: 11px;
  position: relative; display: block; height: var(--tb-h); font: 400 var(--tb-fs)/1 var(--tb-font); color: var(--fg); zoom: var(--tb-scale, 1); user-select: none; -webkit-font-smoothing: none; text-align: left; letter-spacing: 0; }
.tb *, .tb *::before, .tb *::after { box-sizing: border-box; }
.tb-bar { display: flex; align-items: center; height: 100%; background: var(--tb-bg); gap: 2px; padding: 0 2px; overflow: hidden; }
.tb-start, .tb-task, .tb-tray, .tb-ql { flex: none; display: flex; align-items: center; color: inherit; font: inherit; border: 0; margin: 0; background: none; text-decoration: none; }
.tb button { cursor: pointer; }
.tb-tasks { flex: 1 1 auto; display: flex; gap: 3px; min-width: 0; height: 100%; align-items: center; padding: 0 2px; }
.tb-task { flex: 0 1 160px; min-width: 24px; height: 22px; gap: 4px; padding: 0 6px; overflow: hidden; white-space: nowrap; }
.tb-task span { overflow: hidden; text-overflow: ellipsis; }
.tb-clock { padding: 0 4px; white-space: nowrap; color: var(--clock); font-variant-numeric: tabular-nums; }
.tb-tray { height: 22px; gap: 3px; padding: 0 3px 0 4px; }
.tb-ql { gap: 1px; padding: 0 4px 0 6px; height: 22px; position: relative; }
.tb-ql a, .tb-ql > i { display: grid; place-items: center; width: 22px; height: 22px; color: inherit; }
/* Neutral glyphs, drawn with masks so they take the theme's text colour. No vendor logos. */
.tb .st-glyph, .tb .tk-ico, .tb .ql-a, .tb .ql-b, .tb .ql-c, .tb .tr-ico, .tb .orb-glyph { display: inline-block; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.tb .st-glyph { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 2h14v12H1z M2.5 5v7.5h11V5z' fill-rule='evenodd'/%3E%3Cpath d='M4 7h5v1.5H4zM4 9.5h7V11H4z'/%3E%3C/svg%3E"); }
.tb .tk-ico { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 1h7l3 3v11H3z M4.5 2.5v11h7V5H9V2.5z' fill-rule='evenodd'/%3E%3Cpath d='M6 7h4v1H6zM6 9h4v1H6zM6 11h3v1H6z'/%3E%3C/svg%3E"); }
.tb .ql-a { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1 1 7h2v8h4v-5h2v5h4V7h2z'/%3E%3C/svg%3E"); }
.tb .ql-b { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 3h5l1 2h8v9H1z M2.5 6.5v6h11v-6z' fill-rule='evenodd'/%3E%3C/svg%3E"); }
.tb .ql-c { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 2h12v12H2z M3.5 5v7.5h9V5z' fill-rule='evenodd'/%3E%3Cpath d='M5 7l2 1.5L5 10V8.8zM8 10h3v1H8z'/%3E%3C/svg%3E"); }
.tb .tr-vol { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 6h3l4-3v10L5 10H2z'/%3E%3Cpath d='M11 5.5c1.2 1.3 1.2 3.7 0 5M12.8 3.8c2 2.3 2 6.1 0 8.4' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E"); }
.tb .tr-net { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 2h9v6H1z M2.3 3.3v3.4h6.4V3.3z' fill-rule='evenodd'/%3E%3Cpath d='M6 8h3v1.5H6zM6 9.5h9v6H6z M7.3 10.8v3.4h6.4v-3.4z' fill-rule='evenodd'/%3E%3C/svg%3E"); }
.tb .tr-paint { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 2h12v7H2z M3.4 3.4v4.2h9.2V3.4z' fill-rule='evenodd'/%3E%3Cpath d='M7 9h2v2H7zM6 11h4l1 4H5z'/%3E%3C/svg%3E"); }
.tb .orb-glyph { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3.2'/%3E%3Cpath d='M8 1v2.5M8 12.5V15M1 8h2.5M12.5 8H15' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E"); }

/* classic: the 3D bevels of Windows 95–2000 (ButtonHighlight / ButtonShadow / ButtonDarkShadow) */
.tb-classic .tb-bar, .tb-watercolor .tb-bar { box-shadow: inset 0 1px var(--face), inset 0 2px var(--hi); padding-top: 2px; }
.tb-classic .tb-start, .tb-classic .tb-task { background: var(--face); box-shadow: inset -1px -1px var(--dk), inset 1px 1px var(--hi), inset -2px -2px var(--sh), inset 2px 2px var(--face); }
.tb-classic .tb-start { height: 22px; padding: 0 5px 0 4px; gap: 3px; font-weight: 700; }
.tb-classic .tb-start b { font-weight: 700; }
.tb-classic .tb-start[aria-expanded="true"], .tb-classic .tb-start:active, .tb-classic .tb-task.is-on { box-shadow: inset 1px 1px var(--dk), inset -1px -1px var(--hi), inset 2px 2px var(--sh), inset -2px -2px var(--face); padding-top: 2px; }
.tb-classic .tb-task.is-on { font-weight: 700; background-color: var(--face); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Crect width='1' height='1' fill='white'/%3E%3Crect x='1' y='1' width='1' height='1' fill='white'/%3E%3C/svg%3E"); }
.tb-classic .tb-tray, .tb-watercolor .tb-tray { box-shadow: inset 1px 1px var(--sh), inset -1px -1px var(--hi); }
.tb-classic .tb-ql::before, .tb-watercolor .tb-ql::before { content: ''; position: absolute; left: 1px; top: 2px; bottom: 2px; width: 3px; box-shadow: inset 1px 0 var(--sh), inset -1px 0 var(--hi), 2px 0 0 -1px var(--sh); border-left: 1px solid var(--hi); border-right: 1px solid var(--sh); }

/* watercolor: the flat Whistler beta look */
.tb-watercolor .tb-start { height: 22px; padding: 0 8px 0 5px; gap: 4px; background: var(--face); border: 1px solid var(--sh); border-radius: 0 9px 9px 0; font-weight: 700; font-style: italic; font-size: 13px; }
.tb-watercolor .tb-task { background: var(--face); border: 1px solid var(--sh); border-radius: 2px; }
.tb-watercolor .tb-task.is-on { background: var(--hi); font-weight: 700; }
.tb-watercolor .tb-tray { background: var(--tray-bg); align-self: stretch; height: auto; margin: -2px -2px 0 0; padding: 0 8px; box-shadow: inset 1px 0 var(--sh); }

/* xp: Luna-style gradients from TaskbarBackground, TaskButtonBackground and TrayBackground */
.tb-xp .tb-bar { padding: 0; gap: 0; box-shadow: inset 0 1px var(--tb-line); }
.tb-xp .tb-start { align-self: stretch; height: 100%; padding: 0 22px 1px 9px; gap: 5px; margin-right: 6px; color: #fff; background: var(--start-bg, #3c9c3c); border-radius: 0 12px 12px 0; box-shadow: inset 0 0 0 1px var(--start-edge, rgba(0, 0, 0, .3)), 2px 0 3px -1px rgba(0, 0, 0, .45); text-shadow: 1px 1px 2px rgba(0, 0, 0, .55); }
.tb-xp .tb-start b { font: italic 700 18px/1 'Franklin Gothic Medium', 'Trebuchet MS', Tahoma, sans-serif; letter-spacing: .01em; margin-top: -1px; }
.tb-xp .tb-start .st-glyph { width: 18px; height: 18px; filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, .5)); }
.tb-xp .tb-start:hover { background: var(--start-bg-hover, var(--start-bg)); }
.tb-xp .tb-start[aria-expanded="true"], .tb-xp .tb-start:active { background: var(--start-bg-on, var(--start-bg)); }
.tb-xp .tb-ql { padding: 0 6px 0 4px; }
.tb-xp .tb-ql a, .tb-xp .tb-ql > i { color: #fff; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35)); }
.tb-xp .tb-task { height: 24px; color: var(--fg); background: var(--btn-bg); border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .28), inset 1px 1px 0 1px rgba(255, 255, 255, .22); padding: 0 8px; }
.tb-xp .tb-task:hover { background: var(--btn-bg-hover); }
.tb-xp .tb-task.is-on { background: var(--btn-bg-on); color: var(--btn-fg-on); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4), inset 1px 1px 2px rgba(0, 0, 0, .45); }
.tb-xp .tb-tray { align-self: stretch; height: auto; background: var(--tray-bg); padding: 0 10px 0 12px; gap: 6px; box-shadow: inset 1px 0 var(--tray-line), inset 2px 0 rgba(255, 255, 255, .25); }
.tb-xp .tb-tray .tr-ico { color: #fff; }

/* vista + longhorn: translucent glass from TaskbarBackground; the orb is a neutral glass sphere */
.tb-vista .tb-bar, .tb-longhorn .tb-bar { padding: 0 2px 0 0; gap: 2px; box-shadow: inset 0 1px rgba(255, 255, 255, .35), inset 0 2px rgba(0, 0, 0, .25); overflow: visible; }
.tb-vista .tb-orb { width: 54px; justify-content: center; align-self: stretch; height: 100%; padding: 0; position: relative; }
.tb-vista .tb-orb::before { content: ''; position: absolute; left: 7px; top: -6px; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #bfe8ff 0 12%, #4aa3d8 38%, #10507e 70%, #062b47 100%); box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .35), 0 2px 6px rgba(0, 0, 0, .5); }
.tb-vista .tb-orb .orb-glyph { position: relative; color: #fff; width: 18px; height: 18px; margin-top: -2px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); }
.tb-longhorn .tb-orb { align-self: stretch; height: 100%; width: 70px; justify-content: center; margin-right: 4px; border-radius: 0 12px 12px 0; background: linear-gradient(180deg, #4a4a4a, #222 55%, #161616); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 0 0 1px rgba(0, 0, 0, .7); }
.tb-longhorn .tb-orb .orb-glyph { color: #9ef084; }
.tb-vista .tb-task, .tb-longhorn .tb-task { height: 24px; color: var(--fg); background: var(--btn-bg); border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .28); padding: 0 8px; text-shadow: 0 0 8px rgba(0, 0, 0, .9); }
.tb-vista .tb-task.is-on, .tb-longhorn .tb-task.is-on { background-color: rgba(255, 255, 255, .22); box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 0 12px rgba(255, 255, 255, .25); }
.tb-vista .tb-ql a, .tb-vista .tb-ql > i, .tb-longhorn .tb-ql > i, .tb-longhorn .tb-ql a { color: #fff; }
.tb-vista .tb-tray, .tb-longhorn .tb-tray { color: #fff; gap: 6px; padding: 0 8px; }
.tb-vista .tb-start:not(.tb-orb) { color: #fff; }

/* vertical edges (illustrations only) */
.tb-left .tb-bar, .tb-right .tb-bar { flex-direction: column; height: auto; }
.tb-left, .tb-right { height: auto; width: 140px; }

/* figure wrapper */
.tb-fig { margin: 1.6rem 0; padding: 28px 18px 18px; background: var(--desk); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tb-fig .tb { box-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.tb-fig figcaption { margin-top: 14px; font-size: 14px; color: #e9f4f3; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tb-fig-note { opacity: .75; font-size: 12.5px; }

/* ── The site's own taskbar (dock) and Start menu ────────────────────── */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; }
.js body { padding-bottom: 30px; }
.tb-dock { box-shadow: 0 -1px 0 rgba(0, 0, 0, .18); }
.tb-dock .tb-start { cursor: pointer; }
.tb-dock .tb-start:focus-visible, .tb-dock .tb-task:focus-visible, .tb-dock .tr-theme:focus-visible, .tb-dock .tb-ql a:focus-visible { outline: 1px dotted var(--fg); outline-offset: -4px; border-radius: 0; }
.tb-dock .tb-task { cursor: pointer; text-decoration: none; color: inherit; }
.tr-theme { display: flex; align-items: center; gap: 5px; height: 100%; border: 0; background: none; color: inherit; font: inherit; padding: 0 2px; }
.tr-theme-n { max-width: 15ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skin-list { position: absolute; right: 4px; bottom: calc(var(--tb-h) + 2px); margin: 0; padding: 3px; list-style: none; width: 230px; max-height: min(70vh, 520px); overflow: auto; background: #fff; color: #000; font: 400 11px/1 Tahoma, sans-serif; box-shadow: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf; border: 0; padding: 4px; }
.skin-list li { margin: 0; padding: 5px 8px; cursor: pointer; }
.skin-list li[aria-selected="true"] { font-weight: 700; }
.skin-list li:hover, .skin-list li:focus { background: #000080; color: #fff; outline: none; }

.sm { position: absolute; left: 0; bottom: var(--tb-h, 28px); display: flex; min-width: 250px; background: #c0c0c0; color: #000; font: 400 12px/1 Tahoma, 'Microsoft Sans Serif', sans-serif; box-shadow: inset -1px -1px #000, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #fff; padding: 3px; -webkit-font-smoothing: none; }
.sm[hidden] { display: none; }
.sm-side { width: 26px; background: #808080; color: #c0c0c0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }
.sm-side span { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 18px/1 Arial, sans-serif; letter-spacing: -.01em; color: #c0c0c0; }
.sm-side b { color: #fff; font-weight: 400; }
.sm-list, .sm-sub { list-style: none; margin: 0; padding: 0; }
.sm-list { flex: 1; padding-left: 2px; }
.sm-list > li, .sm-sub li { margin: 0; position: relative; }
.sm-b { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px 7px 6px; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.sm-b > span { flex: 1; }
.sm-ico { width: 24px; height: 24px; flex: none; background: #000080; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.sm-ico-start, .sm-ico-docs { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 2h10l4 4v16H5z M7 4v16h10V7h-3V4z' fill-rule='evenodd'/%3E%3Cpath d='M9 10h6v1.5H9zM9 13h6v1.5H9zM9 16h4v1.5H9z'/%3E%3C/svg%3E"); }
.sm-ico-themes { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 3h20v15H2z M4 5v11h16V5z' fill-rule='evenodd'/%3E%3Cpath d='M4 13h16v3H4zM9 19h6v2H9z'/%3E%3C/svg%3E"); }
.sm-ico-tools { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14.5 2a5.5 5.5 0 0 0-5.2 7.3L2 16.6 5.4 20l7.3-7.3A5.5 5.5 0 0 0 20 8.5l-3.3 3.3-3.5-1-1-3.5L15.5 4z'/%3E%3C/svg%3E"); }
.sm-ico-guides { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h7a3 3 0 0 1 2 1 3 3 0 0 1 2-1h7v15h-7a2 2 0 0 0-2 2 2 2 0 0 0-2-2H3z M5 6v11h5a3 3 0 0 1 1 .3V7a1 1 0 0 0-1-1z M13 7v10.3a3 3 0 0 1 1-.3h5V6h-5a1 1 0 0 0-1 1z' fill-rule='evenodd'/%3E%3C/svg%3E"); }
.sm-ico-compare { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h8v18H3z M5 5v14h4V5zM13 3h8v18h-8z M15 5v14h4V5z' fill-rule='evenodd'/%3E%3C/svg%3E"); }
.sm-ico-download { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 2h2v11l4-4 1.4 1.4L12 16.8 5.6 10.4 7 9l4 4z M3 18h18v3H3z'/%3E%3C/svg%3E"); background: #008000; }
.sm-ico-find { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3a7 7 0 0 1 5.6 11.2l5.6 5.6-1.4 1.4-5.6-5.6A7 7 0 1 1 10 3z M10 5a5 5 0 1 0 0 10 5 5 0 0 0 0-10z' fill-rule='evenodd'/%3E%3C/svg%3E"); }
.sm-arrow { width: 0; height: 0; border-left: 4px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.sm-sep { height: 0; margin: 3px 2px !important; border-top: 1px solid #808080; border-bottom: 1px solid #fff; }
.sm-gt { padding: 6px 10px 3px 30px; color: #404040; font-size: 11px; }
.sm-sub { position: absolute; left: calc(100% - 3px); bottom: -3px; min-width: 250px; background: #c0c0c0; padding: 3px; box-shadow: inset -1px -1px #000, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #fff; display: none; z-index: 2; }
.sm-sub a { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; color: #000; text-decoration: none; white-space: nowrap; }
.sm-doc { width: 16px; height: 16px; flex: none; background: #000; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 1h7l3 3v11H3z M4.5 2.5v11h7V5H9V2.5z' fill-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 1h7l3 3v11H3z M4.5 2.5v11h7V5H9V2.5z' fill-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat; }
.sm-has.is-open > .sm-sub { display: block; }
.sm-b:hover, .sm-b:focus-visible, .sm-has.is-open > .sm-b, .sm-sub a:hover, .sm-sub a:focus-visible { background: #000080; color: #fff; outline: none; }
.sm-b:hover .sm-ico, .sm-b:focus-visible .sm-ico, .sm-has.is-open > .sm-b .sm-ico, .sm-sub a:hover .sm-doc, .sm-sub a:focus-visible .sm-doc { background: #fff; }
.sm-sub a[aria-current="page"] { font-weight: 700; }
@media (max-width: 720px) {
  .tb-dock .tb-tasks, .tb-dock .tb-ql, .tr-theme-n { display: none; }
  .tb-dock .tb-bar { justify-content: space-between; }
  .sm { position: fixed; left: 0; right: 0; bottom: var(--tb-h, 28px); max-height: calc(100vh - 60px); overflow: auto; }
  .sm-sub { position: static; box-shadow: none; padding: 0 0 4px 24px; min-width: 0; }
  .sm-side { display: none; }
}
@media print { .dock { display: none; } }

/* ── Home ─────────────────────────────────────────────────────────────── */
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--gut); }
.home-hero { padding: clamp(22px, 3.5vw, 44px) 0 0; }
.home-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.home-hero h1 { max-width: 19ch; font-size: clamp(2.2rem, 4.8vw, 3.7rem); }
.home-hero .lede { max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-3); }
.hero-facts li { margin: 0; display: flex; gap: 6px; align-items: baseline; }
.hero-facts b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.tm { margin-top: clamp(26px, 4vw, 44px); }
.tm-screen { position: relative; height: clamp(300px, 42vw, 470px); background: var(--tm-bg); transition: background-color .5s var(--ease); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.tm-desk { flex: 1; position: relative; }
.tm-win { position: absolute; left: max(var(--gut), calc((100% - var(--w)) / 2 + var(--gut))); top: 12%; width: min(420px, 70vw); background: #c0c0c0; color: #000; font: 400 12px/1.4 Tahoma, 'Microsoft Sans Serif', sans-serif; box-shadow: inset -1px -1px #000, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #fff, 0 10px 30px -10px rgba(0, 0, 0, .45); padding: 3px; -webkit-font-smoothing: none; }
.tm-win-t { background: #000080; color: #fff; font-weight: 700; padding: 4px 6px; }
.tm-win-b { background: #fff; margin-top: 2px; padding: 10px 12px; min-height: 120px; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; }
.tm-bars { flex: none; }
.tm-slide .tb { --tb-scale: 1.45; }
@media (max-width: 720px) { .tm-slide .tb { --tb-scale: 1; } .tm-win { display: none; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
.tm-ctl { max-width: var(--w); margin: 0 auto; padding: 18px var(--gut) 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; align-items: center; }
.tm-now { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.tm-label { font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.tm-file code { font-size: 13px; }
.tm-range { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); margin: 4px 0 0; }
.tm-ticks { grid-column: 1 / -1; display: flex; justify-content: space-between; list-style: none; margin: -4px 0 0; padding: 0 2px; }
.tm-ticks li { margin: 0; }
.tm-ticks button { border: 0; background: none; color: var(--ink-3); font: 500 12px/1 var(--mono); padding: 4px 2px; cursor: pointer; }
.tm-ticks button[aria-current] { color: var(--accent-ink); font-weight: 700; }
.tm-go { grid-row: 1; grid-column: 2; }
@media (max-width: 720px) { .tm-go { grid-column: 1; grid-row: auto; } .tm-ticks .tm-y { font-size: 10px; } }
/* 14 year ticks do not fit a phone: show every other one there (the slider still reaches all) */
@media (max-width: 440px) { .tm-ticks li:nth-child(even) { display: none; } }

/* ── Settings reference ──────────────────────────────────────────────── */
.set-group { display: flex; align-items: baseline; gap: 10px; margin-top: 2.6rem; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.set-group span { font: 500 12px/1 var(--mono); color: var(--ink-3); }
.sets { display: grid; gap: 0; }
.set { padding: 18px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.set:target { background: var(--accent-soft); box-shadow: 0 0 0 10px var(--accent-soft); }
.set-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.set-t { margin: 0; font-size: 1.04rem; }
.set-k { font-size: 13px; color: var(--accent-ink); }
.set-w { margin: 6px 0 10px; color: var(--ink-2); }
.set-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px 20px; margin: 0; font-size: 14px; }
.set-meta div { min-width: 0; }
.set-meta dt { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.set-meta dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.set-enum { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.set-enum div { display: flex; gap: 6px; align-items: baseline; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); font-size: 13.5px; }
.set-enum dt, .set-enum dd { margin: 0; }
.meter { display: inline-block; vertical-align: middle; width: 70px; height: 6px; background: var(--viz-track); border-radius: 3px; overflow: hidden; margin-right: 8px; }
.meter i { display: block; height: 100%; width: var(--v); background: var(--viz); }
.meter-n { font-variant-numeric: tabular-nums; font-size: 13.5px; }
td.num, th.num { text-align: right; white-space: nowrap; }

/* ── Download chooser ────────────────────────────────────────────────── */
.dlc { margin: 1.6rem 0 2rem; padding: 20px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-s); }
.dlc-q { border: 0; margin: 0 0 14px; padding: 0; }
.dlc-q legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.dlc-detect { font-weight: 400; color: var(--ink-3); font-size: 13px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; display: inline-flex; align-items: center; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--raised); font-size: 14.5px; cursor: pointer; user-select: none; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.dlc-out { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.dlc-k { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 14px 0 6px; }
.dlc-k:first-child { margin-top: 0; }
.dlc-n { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.dlc-n span { font-size: 14px; color: var(--ink-3); }
.dlc-hash { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.dlc-warn { padding: 10px 12px; border-left: 3px solid var(--warn); background: var(--warn-soft); border-radius: 0 var(--r-s) var(--r-s) 0; font-size: 14.5px; }
code.hash { font-size: 12.5px; word-break: break-all; white-space: normal; }
.tbl-hash th[scope="row"] { font-weight: 400; }
.tbl-hash .hash-n { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.tbl-hash .hash-asset th, .tbl-hash .hash-asset td { background: var(--bg-2); }
.tag-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pkgs { display: grid; gap: 12px; }
.pkg { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.pkg-h { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.pkg p:last-child { margin-bottom: 0; }
.pkg .code { margin: 8px 0 10px; }

/* ── Settings Builder ────────────────────────────────────────────────── */
.l-tool .page-layout { max-width: 1240px; }
.sb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; margin: 1.4rem 0 2rem; }
@media (max-width: 980px) { .sb { grid-template-columns: 1fr; } }
.sb-form { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.sb-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); background: var(--raised); }
.sb-tab { border: 0; background: none; font: 500 13.5px/1 var(--sans); color: var(--ink-2); padding: 12px 14px; border-bottom: 2px solid transparent; cursor: pointer; }
.sb-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.sb-panel { padding: 6px 16px 14px; max-height: 70vh; overflow: auto; }
.sb-f { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sb-f:last-child { border-bottom: 0; }
.sb-chk { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; cursor: pointer; }
.sb-chk input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); }
.sb-l { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-weight: 600; font-size: 14.5px; }
.sb-key { font-size: 11.5px; color: var(--accent-ink); font-weight: 400; }
.sb-help { display: block; font-size: 13px; color: var(--ink-3); margin-top: 4px; line-height: 1.45; }
.sb-f select, .sb-f input[type="number"], .sb-f input[type="text"] { display: block; width: 100%; margin-top: 6px; padding: 7px 9px; font: 400 14px var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-s); }
.sb-f input[type="number"] { max-width: 140px; }
.sb-side { position: sticky; top: 76px; display: grid; gap: 14px; }
@media (max-width: 980px) { .sb-side { position: static; } }
.sb-prev { background: var(--desk); padding: 60px 0 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; }
.sb-prev.is-top { flex-direction: column-reverse; padding: 0 0 60px; }
.sb-prev .tb { --rows: 1; height: calc(var(--tb-h) * var(--rows) - (var(--rows) - 1) * 2px); }
.sb-prev .tb-bar { align-items: center; }
.sb-note { margin: 0; padding: 6px 10px; font-size: 12px; color: #fff; }
.sb-prev.is-top .sb-note { order: -1; }
.sb-sd { width: 9px; align-self: stretch; margin-left: 2px; box-shadow: inset 1px 1px var(--hi), inset -1px -1px var(--dk); }
.sb-lang { padding: 0 3px; font-weight: 700; }
.sb-out { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); padding: 14px; }
.sb-out-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.sb-out-h span { font-size: 13px; color: var(--ink-3); flex: 1; }
.sb-out .code pre { max-height: 330px; }
.sb-import { width: 100%; font: 13px/1.5 var(--mono); padding: 10px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--surface); color: var(--ink); }
.sb-exp td, .sb-exp th { font-size: 13.5px; }
.sb-exp .sb-bad td:last-child { color: var(--bad); }
.sb-exp .sb-warn td:last-child { color: var(--warn); }
.sb-bad { color: var(--bad); }
[hidden] { display: none !important; }
.sb-side, .sb-main, .sb-out, .sb-out .tabs, .sb-prev { min-width: 0; }
.kref { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin: 8px 0; }
.kref summary { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; cursor: pointer; }
.kref summary span { font: 500 12px var(--mono); color: var(--ink-3); }
.kref .table-wrap { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.kref-th { font-size: 13px; color: var(--ink-2); }
.tt ul { list-style: none; margin: 0; padding-left: 22px; border-left: 1px dashed var(--line-2); }
.tt > ul { padding-left: 0; border: 0; }
.tt li { margin: 6px 0; position: relative; }
.tt ul ul li::before { content: ''; position: absolute; left: -22px; top: 13px; width: 16px; border-top: 1px dashed var(--line-2); }
.tt-n { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tt-k, .tt-also { font-size: 12.5px; color: var(--ink-3); }

/* ── home: taskbar anatomy ───────────────────────────────────────────── */
.anat { display: grid; gap: 22px; }
.anat-stage { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 54px clamp(10px, 3vw, 28px) 18px; overflow: hidden; }
.anat-bar { position: relative; }
.anat .tb { --tb-scale: 1.5; box-shadow: 0 -1px 0 var(--tb-line); }
@media (max-width: 720px) { .anat .tb { --tb-scale: 1.15; } .anat .tb-task:first-child { display: none; } }
.anat-pins { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.anat-pin { position: absolute; top: -38px; width: 26px; height: 26px; margin-left: -13px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--bg); font: 600 13px/1 var(--mono); transition: background .15s, transform .15s; }
.anat-pin::after { content: ''; position: absolute; top: 26px; left: 50%; width: 1px; height: 12px; background: var(--ink); }
.anat-pin:not([style]) { display: none; }
.anat .tb [data-part] { transition: outline-color .15s; outline: 2px solid transparent; outline-offset: 1px; }
.anat[data-hl="start"] .tb-start, .anat[data-hl="ql"] .tb-ql, .anat[data-hl="tasks"] .tb-tasks, .anat[data-hl="tray"] .tb-tray, .anat[data-hl="clock"] .tb-clock { outline: 2px solid var(--accent); outline-offset: 1px; }
.anat[data-hl] .anat-pin { opacity: .35; }
.anat[data-hl="start"] .anat-pin-start, .anat[data-hl="ql"] .anat-pin-ql, .anat[data-hl="tasks"] .anat-pin-tasks, .anat[data-hl="tray"] .anat-pin-tray, .anat[data-hl="clock"] .anat-pin-clock { opacity: 1; background: var(--accent); transform: translateY(-2px); }
.anat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; counter-reset: anat; }
.anat-list > li { counter-increment: anat; position: relative; padding: 14px 14px 14px 46px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); transition: border-color .15s; outline: none; }
.anat-list > li::before { content: counter(anat); position: absolute; left: 14px; top: 14px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-2); font: 600 12px/1 var(--mono); }
.anat-list > li:hover, .anat-list > li:focus-within, .anat-list > li:focus { border-color: var(--accent); }
.anat-t { font-size: 1rem; margin: 0 0 4px; }
.anat-t a { color: inherit; text-decoration: none; }
.anat-list p { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
.anat-s { display: grid; gap: 5px; margin: 0 !important; }
.anat-s a { display: grid; gap: 1px; font-size: 12.5px; color: var(--ink-2); text-decoration: none; min-width: 0; }
.anat-s a code { font-size: 11.5px; width: fit-content; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--accent-ink, var(--accent)); }
.anat-s a:hover { color: var(--ink); }

/* ── home: sections ──────────────────────────────────────────────────── */
.home-sec { padding: clamp(44px, 7vw, 84px) 0 0; }
.home-sec h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin: 4px 0 10px; max-width: 30ch; }
.home-sec-alt { margin-top: clamp(44px, 7vw, 84px); padding-bottom: clamp(40px, 6vw, 72px); background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-lede { max-width: 64ch; color: var(--ink-2); margin: 0 0 22px; }
.wrap-narrow { max-width: 820px; }
.prob-list { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); column-gap: 36px; }
.prob-list li:nth-child(-n+3) { border-top: 1px solid var(--line); }
@media (max-width: 1100px) { .prob-list li:nth-child(3) { border-top: 0; } }
@media (max-width: 720px) { .prob-list li:nth-child(2) { border-top: 0; } }
.prob-list li { border-bottom: 1px solid var(--line); }
.prob-list a { display: grid; gap: 3px; padding: 14px 28px 14px 0; color: var(--ink); text-decoration: none; position: relative; }
.prob-list a::after { content: '→'; position: absolute; right: 6px; top: 14px; color: var(--ink-3, var(--ink-2)); transition: transform .15s; }
.prob-list a:hover::after { transform: translateX(3px); color: var(--accent); }
.prob-list b { font-weight: 600; }
.prob-list span { font-size: 14px; color: var(--ink-2); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); }
.check-list li::after { content: ''; position: absolute; left: 6px; top: 7px; width: 6px; height: 9px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.home-sec .faq { margin-top: 10px; max-width: 820px; }

/* Properties gallery: the dialog's own tabs switch the screenshot */
.pw-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 -6px; }
.pw-tabs button { font: 500 14px var(--sans, inherit); padding: 6px 12px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--bg); color: var(--ink-2); cursor: pointer; }
.pw-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.shot-win .shot-frame { display: grid; place-items: center; background: var(--bg-2); padding: clamp(10px, 3vw, 28px); }
.shot-win .shot-frame img { width: auto; max-width: 100%; height: auto; }

tr.is-target td, tr.is-target th { background: var(--accent-soft); transition: background .4s; }

/* ── custom themes: test table + Theme Checker ───────────────────────── */
.tbl-tests td.ok { color: var(--ok); }
.tbl-tests td.bad { color: var(--bad); }
.tbl-tests td.warn { color: var(--warn); }
.tbl-tests td q { color: var(--ink-2); font: 400 12.5px/1.5 var(--mono); quotes: none; overflow-wrap: anywhere; }
.tc { margin: 1.2rem 0 2rem; display: grid; gap: 16px; }
.tc-in { display: grid; gap: 10px; }
.tc-name { display: grid; gap: 4px; max-width: 360px; font-size: 13.5px; color: var(--ink-2); }
.tc-name input { font: 500 15px var(--sans); padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--bg); color: var(--ink); }
.tc-drop { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface, var(--bg)); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.tc-drop.is-over { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tc-drop textarea { display: block; width: 100%; min-height: 220px; resize: vertical; border: 0; padding: 14px 16px; background: transparent; color: var(--ink); font: 400 13px/1.55 var(--mono); tab-size: 4; }
.tc-drop textarea:focus { outline: none; }
.tc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--bg-2); font-size: 13.5px; }
.tc-file { cursor: pointer; }
.tc-or { color: var(--ink-2); }
.tc-s { border: 0; background: none; padding: 0; color: var(--accent-ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tc-verdict { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); }
.tc-verdict strong { font-size: 1.05rem; }
.tc-verdict span { font-size: 13.5px; color: var(--ink-2); }
.tc-verdict.tc-ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); } .tc-verdict.tc-ok strong { color: var(--ok); }
.tc-verdict.tc-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); } .tc-verdict.tc-warn strong { color: var(--warn); }
.tc-verdict.tc-bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); } .tc-verdict.tc-bad strong { color: var(--bad); }
.tc-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.tc-i { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.tc-ic { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font: 700 12px/1 var(--mono); }
.tc-err .tc-ic { background: var(--bad-soft); color: var(--bad); }
.tc-warn .tc-ic { background: var(--warn-soft); color: var(--warn); }
.tc-note .tc-ic { background: var(--bg-2); color: var(--ink-2); }
.tc-t { margin: 0; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.tc-d { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.tc-where { margin-top: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--bg-2); }
.tc-keys { margin-top: 12px; }
.tc-keys summary { cursor: pointer; font-weight: 600; }

/* two screenshots side by side on wide screens */
.shot-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 0 20px; }

/* ── /themes/: gallery ───────────────────────────────────────────────── */
.tg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 10px; }
.tg-chips button { font: 500 14px var(--sans); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink-2); cursor: pointer; }
.tg-chips button span { color: var(--ink-3, var(--ink-2)); font: 500 12px var(--mono); margin-left: 3px; }
.tg-chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tg-chips button[aria-pressed="true"] span { color: inherit; opacity: .7; }
.tg-badge { margin: 0 0 6px; }
.tg-fam { margin: 26px 0 0; }
.tg-fam[hidden] { display: none; }
.tg-ft { font-size: 1.15rem; margin: 0 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.tg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.tg-t { margin: 0 0 4px; font-size: 1.05rem; }
.tg-n { margin: 0 0 8px; font-size: 14.5px; color: var(--ink-2); }
.tg-f { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 13px; }
.tg-f div { display: flex; gap: 6px; }
.tg-f dt { color: var(--ink-3, var(--ink-2)); }
.tg-f dd { margin: 0; }
.tg-a { margin: 8px 0 0; font-size: 13.5px; }
.tg-shots { display: grid; gap: 8px; min-width: 0; }
.tg-shots img { display: block; height: auto; max-width: 100%; border-radius: var(--r-s); box-shadow: 0 0 0 1px var(--line); }
.tg-start { width: 100%; }
.tg-tray { width: min(100%, 420px); justify-self: end; }
@media (min-width: 980px) { .tg { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; } }
.steps-plain { padding-left: 1.3em; display: grid; gap: 8px; }
.tbl-measure th[scope="rowgroup"] { vertical-align: top; white-space: nowrap; }

/* /start-menu/: preset cards */
.preset-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin: 1rem 0 1.6rem; }
.preset { margin: 0; display: grid; gap: 8px; align-content: start; }
.preset .shot { margin: 0; }
.preset > figcaption { font-size: 14px; color: var(--ink-2); }
.preset > figcaption .btn { margin-top: 8px; }

.tray-compare { margin: 1rem 0; display: grid; gap: 0; }
.tray-compare .shot { margin: .4rem 0 1rem; }
.tray-compare .shot img { width: auto; max-width: 100%; }

.tc-fix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--accent); border-radius: var(--r); font-size: 13.5px; color: var(--ink-2); }
.tc-fixed { margin: 0 0 10px; color: var(--ok); }

/* ── /themes/gallery/: community themes ──────────────────────────────── */
.cg { margin: 26px 0 34px; padding-top: 18px; border-top: 2px solid var(--ink); }
.cg-t { margin: 0; font-size: 1.3rem; }
.cg-by { margin: 2px 0 10px; font-size: 14px; color: var(--ink-2); }
.cg-r { margin: 6px 0 0; font-size: 13px; font-weight: 500; }
.cg-r.ok { color: var(--ok); } .cg-r.bad { color: var(--bad); }
.cg-r.ok::before { content: '✓ '; }
.cg-how { margin: 14px 0 4px; font-size: 14.5px; }

/* ── Theme Studio ─────────────────────────────────────────────────────── */
.ts { margin: 1.4rem 0 2rem; display: grid; gap: 16px; }
.ts-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.ts-f { display: grid; gap: 4px; position: relative; }
.ts-l { font-size: 13px; color: var(--ink-2); }
.ts-l code { font-size: 11px; margin-left: 4px; }
.ts-f select, .ts-f input[type=text], .ts-f input[type=number], .ts-where input[type=text] { font: 500 15px var(--sans); padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--bg); color: var(--ink); }
.ts-f input[type=color] { width: 100%; height: 38px; padding: 2px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--bg); cursor: pointer; }
.ts-f.is-changed .ts-l { color: var(--accent-ink); font-weight: 600; }
.ts-reset { position: absolute; right: 0; top: 0; border: 0; background: none; color: var(--accent-ink); font: 500 12px var(--sans); text-decoration: underline; cursor: pointer; padding: 0; }
.ts-stage { padding: 40px clamp(10px, 3vw, 28px) 0; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(#3a6ea5, #3a6ea5) top / 100% calc(100% - 0px) no-repeat; overflow: hidden; }
.ts-stage .tb { --tb-scale: 1.4; }
@media (max-width: 720px) { .ts-stage .tb { --tb-scale: 1; } }
.ts-cols { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .ts-cols { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.ts-form { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); align-content: start; }
.ts-where { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; display: grid; gap: 6px; font-size: 14px; }
.ts-where legend { font-weight: 600; padding: 0 4px; }
.ts-note { font-size: 13.5px; color: var(--ink-2); margin: 10px 0; }
.ts-side .code pre { max-height: 360px; overflow: auto; }
.ts-actions { display: flex; flex-wrap: wrap; gap: 10px; }
[data-ts-dl][aria-disabled] { pointer-events: none; opacity: .45; }

/* Retro Makeover */
.mk { margin: 1.6rem 0 2.4rem; }
.mk-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.mk-chip { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; font: inherit; transition: border-color .15s, box-shadow .15s; }
.mk-chip:hover { border-color: var(--ink-3); }
.mk-chip[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.mk-mini { display: block; height: 30px; overflow: hidden; border-radius: 3px; pointer-events: none; }
.mk-mini .tb { --tb-scale: 1; }
.mk-mini-img img { height: 30px; width: auto; max-width: none; display: block; }
.mk-name { font-weight: 600; font-size: .95rem; }
.mk-shots figure { margin: 0 0 20px; }
.mk-shots img { width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); display: block; }
.mk-shots figcaption { font-size: .85rem; color: var(--ink-3); margin-top: 8px; }
.mk-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .mk-cols { grid-template-columns: minmax(0, 1fr); } }
.mk-cb { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; line-height: 1.45; }
.mk-cb input { margin-top: 4px; accent-color: var(--accent); }
.mk-sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.mk-h { font-size: 1.05rem; margin: 1.4rem 0 .5rem; }
.mk-steps { margin: 0; padding-left: 1.3rem; font-size: .93rem; }
.mk-steps li { margin-bottom: .45rem; }
.mk-steps .mk-why { list-style: none; margin-left: -1.3rem; color: var(--ink-3); font-size: .87rem; }
.mk-pre { max-height: 460px; overflow: auto; }
.mk-pending { padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--ink-2); }
.mk-res .ok { color: var(--ok); font-weight: 600; } .mk-res .bad { color: var(--bad); font-weight: 600; }
/* The theme key reference is long: let the browser skip rendering tables until they are near the screen */
.table-wrap:has(> .tbl-keys) { content-visibility: auto; contain-intrinsic-size: auto 900px; }
