/* photogimp.org — design system.
   "The canvas": the visual grammar of an image editor without copying any vendor's UI —
   graphite and paper, one raspberry signal colour, a transparency checkerboard, rulers,
   crop marks, marching ants and real keycaps. No colour gradients. Every colour is a token;
   dark mode redefines the tokens. */

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

:root {
  --bg: #f4f4f1; --bg-2: #eaeae6; --surface: #ffffff; --raised: #fafaf8;
  --ink: #131316; --ink-2: #44454c; --ink-3: #5f6068; --ink-4: #9a9ba2;
  --line: #e0e0db; --line-2: #cbcbc4; --line-3: #b2b2aa;
  --accent: #d0245f; --accent-ink: #a5164a; --accent-soft: #fbe6ee; --on-accent: #ffffff;
  --ok: #0d7a4f; --ok-soft: #e0f2e9; --warn: #9a5a04; --warn-soft: #faefd8; --bad: #bf2a2a; --bad-soft: #fae4e2;
  --pol: #5a48c2; --pol-soft: #ece9fb; --info: #1f5fbf; --info-soft: #e5eefb;
  --code-bg: #141417; --code-ink: #e6e5e0; --code-line: #26262b; --code-3: #8c8d96;
  --c-key: #a7c6ff; --c-str: #b9e29c; --c-num: #ffb18f; --c-com: #8f909b; --c-var: #f3c86f; --c-flag: #ff8fb6; --c-cmd: #ffffff;
  --viz: #d0245f; --viz-2: #131316; --viz-track: rgba(19, 19, 22, .06);
  --chk-a: #ffffff; --chk-b: #e7e7e3;
  --app: #2b2b30; --app-2: #232327; --app-3: #38383e; --app-ink: #d9d9de; --app-ink-2: #a8a8b0; --app-line: #45454c;
  --shadow-s: 0 1px 0 rgba(19, 19, 22, .04), 0 1px 3px rgba(19, 19, 22, .06);
  --shadow: 0 1px 0 rgba(19, 19, 22, .04), 0 12px 32px -16px rgba(19, 19, 22, .25);
  --shadow-l: 0 2px 0 rgba(19, 19, 22, .03), 0 30px 80px -30px rgba(19, 19, 22, .38);
  --r: 10px; --r-s: 6px; --r-l: 16px;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --w: 1240px; --w-text: 740px; --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --grid-line: rgba(19, 19, 22, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111113; --bg-2: #18181b; --surface: #1b1b1f; --raised: #1f1f23;
    --ink: #ececea; --ink-2: #b3b3b9; --ink-3: #8a8a93; --ink-4: #5e5e66;
    --line: #29292e; --line-2: #36363c; --line-3: #4a4a52;
    --accent: #ff4f8e; --accent-ink: #ff7aa9; --accent-soft: #2e1420; --on-accent: #16070d;
    --ok: #46c993; --ok-soft: #0f261c; --warn: #e5aa52; --warn-soft: #2a2010; --bad: #f2756f; --bad-soft: #2d1614;
    --pol: #ab9dff; --pol-soft: #1d1a33; --info: #7fb0ff; --info-soft: #121d30;
    --code-bg: #0b0b0d; --code-line: #1f1f24;
    --viz: #ff4f8e; --viz-2: #ececea; --viz-track: rgba(236, 236, 234, .07);
    --chk-a: #232327; --chk-b: #2c2c31;
    --shadow-s: 0 1px 0 rgba(0, 0, 0, .3); --shadow: 0 16px 40px -18px rgba(0, 0, 0, .7); --shadow-l: 0 30px 80px -30px rgba(0, 0, 0, .8);
    --grid-line: rgba(236, 236, 234, .05);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111113; --bg-2: #18181b; --surface: #1b1b1f; --raised: #1f1f23;
  --ink: #ececea; --ink-2: #b3b3b9; --ink-3: #8a8a93; --ink-4: #5e5e66;
  --line: #29292e; --line-2: #36363c; --line-3: #4a4a52;
  --accent: #ff4f8e; --accent-ink: #ff7aa9; --accent-soft: #2e1420; --on-accent: #16070d;
  --ok: #46c993; --ok-soft: #0f261c; --warn: #e5aa52; --warn-soft: #2a2010; --bad: #f2756f; --bad-soft: #2d1614;
  --pol: #ab9dff; --pol-soft: #1d1a33; --info: #7fb0ff; --info-soft: #121d30;
  --code-bg: #0b0b0d; --code-line: #1f1f24;
  --viz: #ff4f8e; --viz-2: #ececea; --viz-track: rgba(236, 236, 234, .07);
  --chk-a: #232327; --chk-b: #2c2c31;
  --shadow-s: 0 1px 0 rgba(0, 0, 0, .3); --shadow: 0 16px 40px -18px rgba(0, 0, 0, .7); --shadow-l: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --grid-line: rgba(236, 236, 234, .05);
  color-scheme: dark;
}

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

/* ── header ───────────────────────────────────────────────────────────── */
.site-h { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-h-in { max-width: var(--w); margin: 0 auto; padding: 0 var(--gut); height: 62px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.logo { color: var(--ink); }
.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); }
.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); }

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

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

/* ── related, footer ──────────────────────────────────────────────────── */
.next { margin-top: 56px; padding-top: 6px; }
.next h2 { font-size: 1.15rem; margin: 1rem 0 .4rem; }
.site-f { border-top: 1px solid var(--line); background: var(--bg-2); }
.site-f-in { max-width: var(--w); margin: 0 auto; padding: 48px var(--gut) 30px; display: grid; grid-template-columns: minmax(240px, 1.6fr) repeat(auto-fit, minmax(130px, 1fr)); gap: 30px 26px; }
@media (max-width: 640px) { .site-f-in { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }
.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); }


/* ── photogimp.org identity ───────────────────────────────────────────── */
h1, h2, h3, .brand-n, .card-t, .stat-v, .hero-t, .faq-q, .step-t, .viz-title, .answer-q { font-family: var(--display); }
h1 { font-weight: 680; letter-spacing: -.035em; }
h2 { font-weight: 650; letter-spacing: -.025em; }
h3 { font-weight: 620; letter-spacing: -.012em; }
.logo { color: var(--ink); flex-shrink: 0; }
.logo-sel { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 3 2.2; }
@media (prefers-reduced-motion: no-preference) { .brand:hover .logo-sel { animation: ants .6s linear infinite; } }
@keyframes ants { to { stroke-dashoffset: -10.4; } }
.brand-n { font-weight: 650; font-size: 17.5px; letter-spacing: -.02em; }

/* transparency checkerboard (a pattern, not a gradient: hard stops only) */
.checker { background-color: var(--chk-a); background-image: conic-gradient(var(--chk-b) 25%, transparent 0 50%, var(--chk-b) 0 75%, transparent 0); background-size: 16px 16px; }

/* crop marks on figures */
.cropmarks { position: relative; }
.cropmarks::before, .cropmarks::after { content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none; border-color: var(--ink-3); border-style: solid; }
.cropmarks::before { left: -9px; top: -9px; border-width: 1.5px 0 0 1.5px; }
.cropmarks::after { right: -9px; bottom: -9px; border-width: 0 1.5px 1.5px 0; }
.shot .shot-frame { position: relative; }
.shot { position: relative; }
.shot::before, .shot::after { content: ''; position: absolute; width: 12px; height: 12px; border: 0 solid var(--line-3); pointer-events: none; }
.shot::before { left: -8px; top: -8px; border-width: 1.5px 0 0 1.5px; }
.shot::after { right: -8px; top: -8px; border-width: 1.5px 1.5px 0 0; }
.shot-badge { color: var(--ink-2); }
.shot-badge::before { background: var(--ok); }
.shot-meta { font: 500 11.5px var(--mono); color: var(--ink-3); }

/* ── home hero ────────────────────────────────────────────────────────── */
.main-home { overflow-x: clip; }
.hero { position: relative; max-width: var(--w); margin: 0 auto; padding: 46px var(--gut) 30px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
.hero-k { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hero-k b { color: var(--accent-ink); font-weight: 600; }
.hero-t { margin: 0; font-size: clamp(2.5rem, 6.4vw, 5.2rem); font-weight: 650; letter-spacing: -.045em; line-height: .98; max-width: 15ch; }
.hero-t em { font-style: normal; position: relative; white-space: nowrap; }
.hero-t em::after { content: ''; position: absolute; inset: .12em -.08em -.02em; border: 2px dashed var(--accent); border-radius: 3px; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .hero-t em::after { animation: antsBorder 1.2s steps(6) infinite; } }
@keyframes antsBorder { 50% { border-color: color-mix(in srgb, var(--accent) 55%, var(--bg)); } }
.hero-l { margin: 22px 0 0; max-width: 60ch; font-size: clamp(1.06rem, 1.6vw, 1.22rem); line-height: 1.55; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.hero-note { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-3); }
.hero-note a { color: var(--ink-3); }

/* the transform stage: a real screenshot with rulers, a toggle and a toolbox that rearranges */
.tf { position: relative; margin: 8px 0 0; }
.tf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 12px; }
.tf-switch { display: inline-flex; padding: 3px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg-2); }
.tf-switch button { height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: none; font: 600 14px var(--sans); color: var(--ink-3); cursor: pointer; }
.tf-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); }
.tf-switch button[aria-pressed="true"].is-pg { background: var(--accent); color: var(--on-accent); }
.tf-meta { font: 500 12px var(--mono); color: var(--ink-3); }
.tf-stage { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: 22px auto; }
.ruler { position: relative; overflow: hidden; color: var(--ink-4); background: var(--bg); }
.ruler-x { grid-column: 2; border-bottom: 1px solid var(--line-2); background-image: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 10px); background-size: 100% 6px; background-position: 0 100%; background-repeat: repeat-x; }
.ruler-y { grid-row: 2; border-right: 1px solid var(--line-2); background-image: repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px 10px); background-size: 6px 100%; background-position: 100% 0; background-repeat: repeat-y; }
.ruler-c { border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--bg); }
.ruler span { position: absolute; font: 500 9px var(--mono); color: var(--ink-3); }
.ruler-x span { top: 2px; transform: translateX(3px); }
.ruler-y span { left: 2px; writing-mode: vertical-rl; transform: rotate(180deg) translateY(-3px); }
.ruler-m { position: absolute; background: var(--accent); opacity: 0; transition: opacity .2s; }
.ruler-x .ruler-m { top: 0; bottom: 0; width: 1px; }
.ruler-y .ruler-m { left: 0; right: 0; height: 1px; }
.tf-stage.is-hover .ruler-m { opacity: 1; }
.tf-shot { position: relative; grid-column: 2; grid-row: 2; aspect-ratio: 1600 / 1000; overflow: hidden; background: var(--app); }
.tf-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .55s var(--ease); }
.tf-shot img.is-off { opacity: 0; }
.tf-tools { position: absolute; inset: 0; pointer-events: none; }
.tf-tool { position: absolute; width: var(--tw); height: var(--th); background-size: cover; border-radius: 3px; will-change: transform; }
.tf-tool[data-hl] { outline: 2px solid var(--accent); outline-offset: 1px; }
.tf-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 10px 0 0 22px; font-size: 13.5px; color: var(--ink-3); }
.tf-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0 22px; }
.tf-legend button { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px 0 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: 500 13px var(--sans); color: var(--ink-2); cursor: pointer; }
.tf-legend button:hover, .tf-legend button.is-on { border-color: var(--ink); color: var(--ink); }
.tf-legend kbd { min-width: 22px; text-align: center; }
@media (max-width: 700px) { .tf-stage { grid-template-columns: 0 minmax(0, 1fr); grid-template-rows: 0 auto; } .ruler { display: none; } .tf-cap, .tf-legend { margin-left: 0; } }

/* status strip under the hero */
.status { max-width: var(--w); margin: 0 auto; padding: 0 var(--gut); }
.status-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); overflow: hidden; }
.status-c { padding: 16px 18px; border-right: 1px solid var(--line); margin-right: -1px; border-bottom: 1px solid var(--line); margin-bottom: -1px; }
.status-k { margin: 0 0 6px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.status-v { margin: 0; font: 650 1.25rem/1.2 var(--display); letter-spacing: -.02em; }
.status-d { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-3); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--ink-4); }
.dot-ok { background: var(--ok); } .dot-warn { background: var(--warn); } .dot-bad { background: var(--bad); }

/* home sections */
.home-sec { max-width: var(--w); margin: 0 auto; padding: 64px var(--gut) 8px; }
.home-sec > h2 { margin-top: 0; font-size: clamp(1.7rem, 3.2vw, 2.5rem); max-width: 24ch; }
.home-sec > .lede { margin-bottom: 26px; }
.sec-k { margin: 0 0 12px; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.os-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.os-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s var(--ease); }
.os-card:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.os-card b { font: 650 1.2rem var(--display); letter-spacing: -.02em; }
.os-card code { width: fit-content; font-size: 12px !important; }
.os-card span { font-size: 14px; color: var(--ink-3); }

/* ── keyboard (shortcuts) ─────────────────────────────────────────────── */
.kb-wrap { margin: 1.4rem 0 2rem; }
.kb-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); }
.seg button { height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: none; font: 600 13px var(--sans); color: var(--ink-3); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); }
.kb { --u: clamp(26px, 5.6vw, 54px); display: grid; gap: calc(var(--u) * .1); padding: calc(var(--u) * .22); width: fit-content; max-width: 100%; overflow-x: auto; border-radius: 14px; background: var(--app-2); border: 1px solid var(--app-line); user-select: none; }
.kb-row { display: flex; gap: calc(var(--u) * .1); }
.kb-k { position: relative; flex: 0 0 calc(var(--u) * var(--w, 1)); height: var(--u); padding: 4px 5px; border: 0; border-radius: 6px; background: var(--app-3); color: var(--app-ink); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35); text-align: left; font: 600 11px var(--mono); cursor: pointer; overflow: hidden; }
.kb-k .kb-l { display: block; font-size: 10.5px; color: var(--app-ink-2); }
.kb-k .kb-a { position: absolute; left: 5px; right: 4px; bottom: 5px; font: 600 9px/1.15 var(--sans); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-k.has { background: color-mix(in srgb, var(--accent) 34%, var(--app-3)); }
.kb-k.has-ps { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35), inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 70%, transparent); }
.kb-k.is-mod { background: #4a4a52; }
.kb-k.is-down, .kb-k:focus-visible { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .35); background: var(--accent); color: var(--on-accent); }
.kb-k.is-down .kb-l, .kb-k.is-down .kb-a { color: var(--on-accent); }
.kb-k.is-dim { background: var(--app-2); color: #b9b9c0; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); } .kb-k.is-dim .kb-l { color: #a3a3ab; }
@media (max-width: 760px) { .kb-k .kb-a { display: none; } }
.kb-out { margin-top: 14px; min-height: 92px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.kb-out-k { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 8px; }
.kb-out-t { font: 650 1.15rem var(--display); }
.kb-cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 10px 0 0; }
.kb-cmp div { padding: 10px 12px; border-radius: 9px; background: var(--bg-2); }
.kb-cmp p { margin: 0; font-size: 13.5px; }
.kb-cmp p:first-child { font: 600 10.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.kb-hint { font-size: 13px; color: var(--ink-3); margin: 8px 0 0; }

/* shortcut search */
.sc-find { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.sc-find:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.sc-find input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 16px var(--sans); color: var(--ink); }
.tbl-sc td:nth-child(2), .tbl-sc td:nth-child(3), .tbl-sc td:nth-child(4) { white-space: nowrap; }
.tbl-sc .sc-note { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.k-same { color: var(--ink-3); }
.k-new { color: var(--accent-ink); font-weight: 600; }

/* ── path finder / repair / uninstall builders ───────────────────────── */
.tool { margin: 1.4rem 0 2rem; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); overflow: hidden; }
.tool-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--raised); }
.tool-h b { font: 650 1rem var(--display); }
.tool-h span { margin-left: auto; font: 500 11.5px var(--mono); color: var(--ink-3); }
.tool-b { padding: 16px; }
.q { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.q legend { margin: 0 0 8px; padding: 0; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); font: 560 14px var(--sans); color: var(--ink-2); cursor: pointer; transition: border-color .12s, background .12s; }
.opt span small { font: 500 11px var(--mono); color: var(--ink-3); }
.opt input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.opt input:checked + span small { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.result { margin-top: 6px; padding: 16px; border-radius: var(--r); background: var(--bg-2); border: 1px dashed var(--line-2); }
.result > :last-child { margin-bottom: 0; }
.result h3 { margin-top: 0; }
.result .code { margin: .8rem 0 1rem; }
.verdict { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 14px 16px; border-radius: var(--r); margin: 0 0 14px; background: var(--surface); border: 1px solid var(--line); }
.verdict-i { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: var(--ok); }
.verdict.is-warn .verdict-i { background: var(--warn); } .verdict.is-bad .verdict-i { background: var(--bad); }
.verdict p { margin: 0; } .verdict p + p { margin-top: 4px; color: var(--ink-2); font-size: 14.5px; }

/* compatibility matrix */
.matrix td, .matrix th { text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.cell { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.cell::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.cell-ok { color: var(--ok); } .cell-part { color: var(--warn); } .cell-bad { color: var(--bad); } .cell-na { color: var(--ink-3); }

/* before / after compare */
.cmp { position: relative; margin: 1.6rem 0 2rem; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); line-height: 0; user-select: none; touch-action: pan-y; }
.cmp img { width: 100%; display: block; }
.cmp-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0); }
.cmp-top img { height: 100%; object-fit: cover; }
.cmp-h { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; margin-left: -1px; background: var(--accent); }
.cmp-h::after { content: ''; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.cmp input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.cmp-l { position: absolute; top: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, .66); color: #fff; font: 600 11.5px/1.3 var(--mono); }
.cmp-l.l { left: 10px; } .cmp-l.r { right: 10px; }
.cmp + figcaption, .cmp-cap { margin: -1.2rem 0 2rem; font-size: 14px; color: var(--ink-2); }

/* terminal / log output */
.term { margin: 1.2rem 0 1.6rem; border-radius: var(--r); background: var(--code-bg); color: var(--code-ink); border: 1px solid var(--code-line); overflow: hidden; }
.term pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 13px/1.6 var(--mono); }
.term .w { color: #ffcf7a; } .term .e { color: #ff8b8b; } .term .ok { color: #8fe0b0; } .term .d { color: var(--code-3); }

/* file tree */
.tree { margin: 1.2rem 0 1.8rem; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font: 13.5px/1.75 var(--mono); }
.tree ul { list-style: none; margin: 0; padding-left: 18px; border-left: 1px dashed var(--line-2); }
.tree > ul { padding-left: 0; border: 0; }
.tree li { margin: 0; }
.tree .dir { font-weight: 600; }
.tree .note { font-family: var(--sans); font-size: 13px; color: var(--ink-3); margin-left: 8px; }
.tree .pg { color: var(--accent-ink); }

/* toolbox comparison strip */
.tbx { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; margin: 1.4rem 0 2rem; }
.tbx figure { margin: 0; }
.tbx img { display: block; border-radius: 6px; border: 1px solid var(--line-2); }
.tbx figcaption { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); max-width: 190px; }

/* feature map */
.fm-row td:first-child { font-weight: 620; }
.fit { display: inline-flex; height: 21px; align-items: center; padding: 0 7px; border-radius: 5px; font: 600 11px var(--mono); }
.fit-same { color: var(--ok); background: var(--ok-soft); } .fit-close { color: var(--info); background: var(--info-soft); }
.fit-work { color: var(--warn); background: var(--warn-soft); } .fit-none { color: var(--bad); background: var(--bad-soft); }

/* misc */
.badge-ind { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; border: 1px dashed var(--line-3); font-size: 13px; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 1.2rem 0 1.8rem; }
.kv > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.kv b { display: block; font: 650 1.2rem var(--display); letter-spacing: -.02em; }
.kv span { font-size: 13px; color: var(--ink-3); }
.ind-note { margin: 0 auto; max-width: var(--w); padding: 10px var(--gut) 0; font-size: 12.5px; color: var(--ink-3); }
.cheat-t { font: 600 13px var(--mono); color: var(--ink-3); margin: 0 0 8px; }
.cheat table { font-size: 13px; } .cheat td, .cheat th { padding: 5px 10px; }
@media print {
  body.print-cheat * { visibility: hidden; }
  body.print-cheat .cheat, body.print-cheat .cheat * { visibility: visible; }
  body.print-cheat .cheat { position: absolute; left: 0; top: 0; width: 100%; }
  body.print-cheat .table-wrap { border: 0; overflow: visible; }
  body.print-cheat kbd { border: 1px solid #999; }
}
.btn-mini { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.kb-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 16px; }

/* feature map (Photoshop → GIMP) */
.fm { margin: 1.4rem 0 2rem; }
.fm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0 1.2rem; }
.fm-chips button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: 500 13px var(--sans); cursor: pointer; }
.fm-chips button small { font: 500 11.5px var(--mono); color: var(--ink-3); }
.fm-chips button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.fm-chips .fit { height: 19px; }
.fit-plugin { color: var(--pol); background: var(--pol-soft); }
.fm-head, .fm-item { display: grid; grid-template-columns: minmax(0, 15rem) 6.5rem minmax(0, 1fr); gap: 14px; align-items: start; }
.fm-head { padding: 0 12px 6px; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line-2); }
.fm-cat h3 { margin: 1.6rem 0 .4rem; font-size: 1.05rem; }
.fm-item { padding: 12px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.fm-item:target { background: var(--accent-soft, color-mix(in srgb, var(--accent) 8%, transparent)); border-radius: 8px; }
.fm-ps b { display: block; font-weight: 620; line-height: 1.35; }
.fm-psk { display: inline-block; margin-top: 5px; }
.fm-gimp p { margin: .3rem 0 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.fm-cmds { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fm-cmds li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mpath { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 5px; font: 500 13.5px var(--sans); color: var(--ink); }
.mpath i { font-style: normal; color: var(--ink-3); }
.mpath span:last-child { font-weight: 640; }
.fm-ks { font-size: 12.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 5px; }
.fm-plug { font-weight: 600; }
.fm-empty { padding: 1rem 12px; color: var(--ink-3); }
@media (max-width: 720px) {
  .fm-head { display: none; }
  .fm-item { grid-template-columns: 1fr auto; gap: 6px 10px; }
  .fm-gimp { grid-column: 1 / -1; }
}
.page-article p a, .page-article li a, .step-b a { overflow-wrap: anywhere; }

/* review verdict */
.verdict-box { margin: 1.4rem 0 2rem; padding: 20px 22px; border: 1px solid var(--line-2); border-left: 4px solid var(--accent); border-radius: var(--r-l); background: var(--surface); }
.vb-t { margin: 0 0 4px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.vb-main { margin: 0 0 12px; font-size: 1.12rem; }
.verdict-box ul { margin: 0; font-size: 14.5px; }
.verdict-box li { margin-bottom: 6px; }

/* fit bar */
.fitbar { margin: 1.4rem 0 1.8rem; }
.fb-bar { display: flex; height: 18px; border-radius: 6px; overflow: hidden; gap: 2px; }
.fb-bar span { display: block; min-width: 4px; }
.fb-same { background: var(--ok); } .fb-close { background: var(--info); } .fb-work { background: var(--warn); } .fb-plugin { background: var(--pol); } .fb-none { background: var(--bad); }
.fb-legend { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.fb-legend small { color: var(--ink-3); font-family: var(--mono); }
.fitbar figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-3); }

/* config checker */
.drop { display: grid; gap: 4px; padding: 22px; margin: 6px 0 16px; border: 1.5px dashed var(--line-3); border-radius: var(--r-l); background: var(--raised); cursor: pointer; text-align: center; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop b { font-size: 15px; } .drop span { font-size: 13.5px; color: var(--ink-3); }
.drop:hover, .drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.ck-sum { font: 650 1.05rem var(--display); margin: 0 0 4px; color: var(--ok); } .ck-sum.is-bad { color: var(--bad); }
.verdict.is-info .verdict-i { background: var(--info); }
.kb-k.has .kb-l { color: #f3e3ea; }
.kb-k.is-mod .kb-l { color: #cfcfd5; }
.matrix .sc-note { display: block; margin-top: 3px; font-weight: 400; font-size: 13px; color: var(--ink-3); }
/* Other-setups table: one card per row on phones */
@media (max-width: 640px) {
  .setups thead { display: none; }
  .setups, .setups tbody, .setups tr, .setups td { display: block; width: 100%; }
  .setups tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .setups tr:last-child { border-bottom: 0; }
  .setups td, .setups td:first-child { padding: 3px 0; border: 0; text-align: left; }
  .setups td[data-l]::before { content: attr(data-l) ": "; color: var(--ink-3); font-size: 13px; }
  .setups td[data-l] code { white-space: normal; overflow-wrap: anywhere; }
}
