/* Catalog page v4. Colors carry meaning only: slate blue = ours / worth remembering, berry = a problem, osmanthus = a
   fill, grays = others or a baseline. Light only. The surfaces are one slate-blue tonal ramp (OKLCH tints of #4F6D80,
   hue 236.6): a tinted canvas, white cards, a deep slate hero and footer, dark code cards, a glass nav.
   Inter for text and numbers, Noto Sans SC for CJK, IBM Plex Mono for code. 8 px spacing grid. */
:root {
  color-scheme: light;
  /* surfaces (OKLCH L, C at hue 236.6 in the comments) */
  --canvas: #f2f7fa;      /* 97.2% 0.007 */
  --canvas-2: #e7eff4;    /* 94.8% 0.011 */
  --card: #ffffff;
  --line: #d9e1e7;        /* 90.5% 0.012 */
  --hero-a: #112532;      /* 25.5% 0.035 */
  --hero-b: #254152;      /* 36% 0.045 */
  --hero-c: #37576b;      /* 44% 0.05 */
  --code: #142027;        /* 23.5% 0.022 */
  --code-2: #223039;      /* 30% 0.025 */
  --foot: #0e191f;        /* 20.5% 0.02 */
  --on-dark: #f2f6f8;
  --on-dark-2: #bfcdd6;   /* 84% 0.02 */
  --on-dark-3: #9daeb9;   /* 74% 0.025 */
  /* ink and meaning */
  --ink: #1a1a1a;
  --ink-2: #4d4d4d;
  --ink-muted: #66707a;   /* 4.8:1 on the canvas */
  --ours: #4f6d80;
  --ours-wash: #eef3f6;
  --problem: #b98b86;
  --problem-text: #966a66;
  --fill-3: #d7cea3;
  --other: #8c8c8c;
  --other-light: #b3b3b3; /* beside slate blue: #8c8c8c is below the normal-vision floor there */
  /* not classified yet, in a stack beside the slate-blue steps: gray stripes, a texture no step of the ramp has */
  --unclassified: repeating-linear-gradient(135deg, #8c8c8c 0 3px, #c4c4c4 3px 6px);
  --link: #1d5ab0;
  --visited: #ab3276;
  --shadow: 0 1px 2px rgba(17, 37, 50, 0.06), 0 8px 24px -12px rgba(17, 37, 50, 0.18);
  --shadow-lift: 0 2px 4px rgba(17, 37, 50, 0.08), 0 18px 40px -16px rgba(17, 37, 50, 0.28);
  --sans: "Inter", "Noto Sans SC", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  /* type */
  --fs-small: 13px;
  --fs-body: 16px;
  --fs-sub: 20px;
  --fs-h2: clamp(28px, 1.2vw + 16px, 40px);
  --fs-h1: clamp(34px, 1vw + 24px, 44px);
  --fs-display: clamp(72px, 3.4vw + 30px, 96px);
  /* spacing and width */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px;
  --page: 1680px;
  --pad: clamp(16px, 3.6vw, 72px);
  --nav-h: 64px;
  --r: 16px;
  --t: 160ms;
}
@media (prefers-reduced-motion: reduce) { :root { --t: 0ms; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--nav-h) + 24px); background: var(--foot); }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--sans); font-size: var(--fs-body); line-height: 1.5;
  -webkit-text-size-adjust: 100%; font-feature-settings: "cv11", "ss01"; overflow-x: clip; }
a { color: var(--link); text-underline-offset: 2px; }
a:visited { color: var(--visited); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible, .site-foot :focus-visible, .code-card :focus-visible { outline-color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.mono, code, pre { font-family: var(--mono); font-weight: 500; }
.small { font-size: var(--fs-small); color: var(--ink-2); }
.muted { color: var(--ink-muted); }
.problem-text { color: var(--problem-text); }
.num, td.r, th.r, .bar-value, .scale .ticks, .col-top, .col-label, .cat-bar-val { font-variant-numeric: tabular-nums; }
.ico { flex: none; vertical-align: -0.2em; color: var(--ours); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: 1px; margin-right: 6px; flex: none; }
.dot.problem { background: var(--problem); }
.dot.ours { background: var(--ours); }
.dot.other { background: var(--other); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--ink-2); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 0 10px; line-height: 26px; white-space: nowrap; }
.mono-chip { font-family: var(--mono); font-weight: 500; font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ours); background: var(--card); color: var(--ours);
  border-radius: 10px; padding: 0 14px; cursor: pointer; font-size: 14px; font-weight: 600; min-height: 36px; text-decoration: none;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t); }
.btn:visited { color: var(--ours); }
.btn .ico { color: inherit; }
.btn:hover:not(:disabled), .btn[aria-pressed="true"] { background: var(--ours); color: #fff; }
.btn.solid, .btn.solid:visited { background: var(--ours); color: #fff; }
.btn.solid:hover { background: #3f5a6b; }
.btn:disabled { border-color: var(--line); color: var(--ink-muted); background: var(--canvas); cursor: default; }
.btn.on-dark { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, 0.28); }
.btn.on-dark:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn.small-btn { min-height: 32px; font-size: 13px; }
button.link { border: 0; background: none; color: var(--link); text-decoration: underline; cursor: pointer; padding: 4px 0; font-size: 14px; min-height: 28px; }
.copy-wrap { display: inline-flex; align-items: center; gap: var(--s1); }
.copy-state { font-size: var(--fs-small); color: var(--ink-2); min-width: 4.5em; }
.copy-state:empty { min-width: 0; }
.code-card .copy-state { color: var(--on-dark-2); }

/* ---- the glass nav with the four-part progress bar ---- */
.topnav { position: sticky; top: 0; z-index: 40; height: var(--nav-h); background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid rgba(17, 37, 50, 0.08); }
.nav-row { height: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s4); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand:visited { color: var(--ink); }
.brand .ico { color: var(--ours); }
.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); max-width: 760px; width: 100%; justify-self: center; }
.progress a { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 6px; text-decoration: none;
  color: var(--ink-muted); font-size: var(--fs-small); line-height: 1; padding: 6px 0; }
.progress a .ico { color: var(--other); }
.progress a .pl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress a:visited { color: var(--ink-muted); }
.progress a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.progress a[aria-current="true"] .ico { color: var(--ours); }
.progress .track { grid-column: 1 / -1; display: block; height: 3px; background: var(--line); margin-top: 8px; border-radius: 2px; overflow: hidden; }
.progress .fill { display: block; height: 100%; width: 0; background: var(--ours); border-radius: 2px; transition: width var(--t) linear; }
.nav-links { display: flex; align-items: center; gap: var(--s2); font-size: 14px; }
.nav-links a:not(.btn) { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--link); text-decoration: underline; }

/* ---- skeletons: shapes, never words ---- */
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, #e3eaef 0%, #f3f7f9 50%, #e3eaef 100%); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .sk { animation: shimmer 1.3s linear infinite; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.hero .sk { background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.08) 100%); background-size: 200% 100%; }
.sk-display { display: inline-block; width: 2.2ch; height: 0.82em; vertical-align: -0.06em; }
.sk-num { display: inline-block; width: 2.6ch; height: 0.9em; vertical-align: -0.1em; }
.sk-word { display: inline-block; width: 6.5em; height: 1em; vertical-align: -0.15em; }
.sk-line { display: inline-block; width: min(14em, 70vw); height: 0.9em; }
.sk-block { height: 240px; }
.sk-block.tall { height: 420px; }
.sk-row { height: 44px; margin: 12px 0; }
.sk-card { min-height: 236px; position: relative; overflow: hidden; }
.sk-card::before { content: ""; position: absolute; inset: 20px; border-radius: 10px; background: linear-gradient(90deg, #edf2f5 0%, #f7fafb 50%, #edf2f5 100%); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .sk-card::before { animation: shimmer 1.3s linear infinite; } }

/* ---- hero: deep slate band, the one big number, four facts ---- */
.hero { position: relative; color: var(--on-dark); overflow: hidden;
  background:
    radial-gradient(1100px 560px at 88% -12%, rgba(126, 168, 196, 0.32), transparent 62%),
    radial-gradient(900px 480px at -6% 112%, rgba(215, 206, 163, 0.12), transparent 60%),
    linear-gradient(160deg, var(--hero-a) 0%, var(--hero-b) 58%, var(--hero-c) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); }
.hero > .wrap { position: relative; z-index: 1; }
.hero .ico { color: #cfe0ea; }
.hero a { color: #e6eef3; }
.hero a:visited { color: #e6eef3; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s5) var(--s4); align-items: center;
  padding-top: clamp(48px, 6vw, 104px); padding-bottom: var(--s5); }
.hero-main { grid-column: 1 / span 7; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 var(--s2); font-size: 14px; font-weight: 500; color: var(--on-dark-2);
  padding: 4px 12px 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); }
.hero h1 { font-size: var(--fs-h1); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 var(--s4); color: #fff; max-width: 22ch; }
.hero-number { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s2); margin-bottom: var(--s4); }
.display { font-size: var(--fs-display); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; color: #fff;
  font-variant-numeric: proportional-nums; min-width: 2ch; }
.display-label { font-size: var(--fs-sub); color: var(--on-dark-2); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .hero-btn { min-height: 44px; padding: 0 20px; font-size: 15px; white-space: nowrap; background: #fff; color: var(--hero-a); border-color: #fff; }
.hero .hero-btn:visited { color: var(--hero-a); }
.hero .hero-btn .ico { color: var(--ours); }
.hero .hero-btn:hover:not(:disabled) { background: #e6eef3; color: var(--hero-a); }
.hero .hero-btn.ghost, .hero .hero-btn.ghost:visited { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.hero .hero-btn.ghost .ico { color: #cfe0ea; }
.hero .hero-btn.ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); color: #fff; }
.hero-facts { grid-column: 8 / span 5; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.fact-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 20px 22px; border-radius: var(--r); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fact-ico { grid-row: 1 / span 2; display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.09); }
.fact-num { justify-self: start; font-size: clamp(26px, 2.2vw, 32px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: #fff; font-variant-numeric: proportional-nums; white-space: nowrap; }
.fact-label { font-size: 14px; color: var(--on-dark-2); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s3); padding-bottom: var(--s4); font-size: 14px; color: var(--on-dark-2); }
.hero-pin a { font-weight: 600; }
.chip-dark { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: var(--on-dark); }
.notice { color: #f1d7d3; }

/* ---- bands: canvas and white, full width ---- */
.band { padding-block: clamp(56px, 5vw, 96px); }
.band-canvas { background: linear-gradient(180deg, var(--canvas-2) 0, var(--canvas) 160px, var(--canvas) 100%); }
.band-white { background: var(--card); }
.band-head { margin: 0 0 var(--s4); }
.band-head.row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s2) var(--s3); }
.band-head h2, .site-foot h2 { font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; margin: 0; min-height: 1.2em; }
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
  .js-reveal .reveal.in { opacity: 1; transform: none; }
}

/* ---- cards ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.chart-card { margin: 0; padding: var(--s3); }
.lift { transition: transform var(--t) ease, box-shadow var(--t) ease, border-color var(--t); }
.lift:hover, .lift:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #c5d2db; }
@media (prefers-reduced-motion: reduce) { .lift:hover, .lift:focus-within { transform: none; } }
.card-foot { margin-top: var(--s2); }

/* ---- 1. material for tasks: four "where" cards in one row, then the ten requested categories in two rows ---- */
/* Every row is one grid whose cells stretch, so both ends of a row are level at every width; the cards have a fixed
   least height (at most eight bars, one-line names) that their skeletons share, so nothing moves when the index arrives. */
.where-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.where-card { min-height: 674px; display: flex; flex-direction: column; }
.where-card > .sk-block { flex: 1; height: auto; }
.where-card .card-foot { margin-top: auto; padding-top: var(--s2); }
.where-card .bar-label .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.where-card .bar-label .ico { flex: none; }
.sub-head { margin-top: var(--s5); }
.sub-head h3 { font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 20px; }
.cat { display: flex; flex-direction: column; min-height: 369px; }
.cat.current { border-color: var(--ours); box-shadow: inset 0 0 0 2px var(--ours), var(--shadow); }
.cat-main { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 12px; border: 0; background: none; text-align: left; cursor: pointer; flex: 1; border-radius: var(--r) var(--r) 0 0; font: inherit; color: inherit; }
div.cat-main { cursor: default; }
.cat-main:focus-visible { outline-offset: -3px; }
.cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cat-ico { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center; background: var(--ours-wash); flex: none; }
.cat-name { font-size: 16px; font-weight: 600; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-check .ico { color: var(--ours); }
.cat-lead { display: flex; flex-direction: column; gap: 4px; }
.cat-num { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--ours); font-variant-numeric: proportional-nums; }
.cat-num-label { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-meta { display: flex; gap: 12px; font-size: 14px; color: var(--ink-2); min-height: 1.4em; white-space: nowrap; overflow: hidden; }
.cat-meta > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.cat-bars { display: grid; gap: 10px; margin-top: auto; }
.cat-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 8px; font-size: var(--fs-small); color: var(--ink-2); }
.cat-bar .meter { grid-column: 1 / -1; }
.cat-bar-val { color: var(--ink); font-weight: 600; }
.cat-foot { padding: 0 20px 20px; }
.cat.wanted { background: rgba(255, 255, 255, 0.45); border-style: dashed; border-color: #c3ced6; box-shadow: none; }
.cat.wanted .cat-ico { background: var(--canvas-2); }
.cat.wanted .cat-ico .ico { color: var(--ink-2); }
.wanted-art { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 72px; }
.wanted-art .ico { color: #b9c6cf; }
.cat-wanted { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.meter { display: block; height: 6px; background: var(--canvas-2); border-radius: 3px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--ours); border-radius: 3px; }
/* a number that changed after the first screen (main moved on): a brief highlight, no count */
@keyframes updated { from { background-color: rgba(215, 206, 163, 0.6); } to { background-color: rgba(215, 206, 163, 0); } }
.updated { animation: updated 1.6s ease-out; border-radius: 6px; }
@keyframes updated-dark { from { background-color: rgba(215, 206, 163, 0.22); box-shadow: 0 0 0 6px rgba(215, 206, 163, 0.22); } to { background-color: rgba(215, 206, 163, 0); box-shadow: 0 0 0 6px rgba(215, 206, 163, 0); } }
.hero .updated { animation-name: updated-dark; }

/* the split of task-ready and raw */
.split { margin: 0 0 var(--s2); }
.stack { display: flex; height: 12px; gap: 2px; margin: 0; }
.stack > span { display: block; height: 100%; min-width: 4px; transition: opacity var(--t); }
.stack > span:hover, .stack > span:focus-visible { opacity: 0.78; }
.stack > span:first-child { border-radius: 6px 0 0 6px; }
.stack > span:last-child { border-radius: 0 6px 6px 0; }
.stack > span:only-child { border-radius: 6px; }
.split-labels { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); margin-top: 10px; }
.split-labels > span { display: grid; grid-template-columns: auto auto; align-items: center; }
.split-labels b { font-weight: 600; font-size: 15px; }
.split-labels .small { grid-column: 2; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: var(--s1); vertical-align: -1px; }
.stack-labels { display: flex; flex-wrap: wrap; gap: 2px var(--s2); font-size: var(--fs-small); color: var(--ink-2); margin: 6px 0 var(--s1); }
.stack-labels b { color: var(--ink); font-weight: 600; }
.mini-title { display: flex; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--ink-2); margin: var(--s2) 0 6px; }
.mini-title.first { margin-top: 0; }
/* the four stacks of the task-ready card: labels in fixed rows (one for two parts, two for up to five), names on one line */
.split-labels.fixed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px var(--s2); }
.split-labels.fixed:not(.two-rows) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split-labels.fixed.two-rows { min-height: calc(2 * 2.6em + 8px); align-content: start; }
.split-labels.fixed > span { min-width: 0; grid-template-columns: auto minmax(0, 1fr); }
.split-labels.fixed b, .split-labels.fixed .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- chart chrome ---- */
figure.chart { margin: 0; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s2); align-items: center; margin-bottom: var(--s2); }
.chart-title { font-size: 15px; font-weight: 600; margin: 0 0 var(--s1); color: var(--ink); }
.chart-head .chart-title { margin: 0; }
.seg-wrap { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px var(--s1); }
.seg-label { font-size: var(--fs-small); color: var(--ink-muted); }
.seg-label:empty { display: none; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; background: var(--canvas); }
.seg button { border: 0; background: transparent; border-radius: 7px; padding: 0 12px; min-height: 30px; font-size: var(--fs-small); color: var(--ink-2); cursor: pointer; transition: background var(--t), color var(--t); }
.seg button[aria-pressed="true"] { background: var(--ours); color: #fff; font-weight: 600; box-shadow: 0 1px 2px rgba(17, 37, 50, 0.2); }
.seg button:hover:not([aria-pressed="true"]) { background: #fff; }
table.data { border-collapse: collapse; width: 100%; font-size: 14px; }
table.data caption { text-align: left; font-size: var(--fs-small); color: var(--ink-2); padding-bottom: var(--s1); }
table.data th, table.data td { text-align: left; padding: var(--s1) var(--s2) var(--s1) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-weight: 600; color: var(--ink-2); font-size: var(--fs-small); }
table.data td.r, table.data th.r { text-align: right; }
table.data tbody tr:hover { background: var(--canvas); }
.table-wrap { max-width: 100%; overflow-x: auto; }

/* thin bars with rounded data ends */
.bars { list-style: none; margin: 0; padding: 0; }
.bar-row { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 2px var(--s2); align-items: center; width: calc(100% + 8px); padding: 4px; margin: 0 -4px;
  border: 0; border-radius: 8px; background: none; text-align: left; min-height: 34px; font-size: 14px; transition: background var(--t); }
button.bar-row { cursor: pointer; }
button.bar-row:hover, button.bar-row:focus-visible { background: var(--ours-wash); }
.bar-label { display: flex; align-items: center; gap: var(--s1); color: var(--ink); line-height: 1.25; min-width: 0; }
.bar-label .caret { display: inline-block; width: 0.8em; color: var(--ink-muted); flex: none; }
.bar-track { display: flex; align-items: center; gap: var(--s1); min-width: 0; }
.bar { display: block; height: 10px; background: var(--ours); border-radius: 0 5px 5px 0; flex: none; }
.bar.muted { background: var(--other); }
.bar-value { font-size: var(--fs-small); color: var(--ink-2); white-space: nowrap; }
.bars .leaf .bar-row { padding-left: calc(4px + 1.4em); }
.bars .leaf .bar-label { color: var(--ink-2); }
.bar-row.current .bar-label { font-weight: 700; }

/* columns (history) */
.cols { display: flex; align-items: flex-end; gap: var(--s4); min-height: 176px; }
.col { display: grid; grid-template-rows: auto 120px auto auto; justify-items: center; width: 64px; outline-offset: 4px; border-radius: 8px; padding: 4px 0; transition: background var(--t); }
.col:hover { background: var(--ours-wash); }
.col-top { font-size: var(--fs-small); font-weight: 600; }
.col-track { display: flex; align-items: flex-end; height: 120px; width: 24px; }
.col-bar { display: block; width: 24px; background: var(--ours); border-radius: 6px 6px 0 0; }
.col-label { font-size: var(--fs-small); color: var(--ink-2); margin-top: 4px; border-top: 1px solid var(--line); width: 100%; text-align: center; padding-top: 4px; }
.col-sub { font-size: var(--fs-small); color: var(--ours); font-weight: 600; }

/* ---- 2. browse: filters beside results ---- */
.browse-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s5); align-items: start; }
.filters { position: sticky; top: calc(var(--nav-h) + var(--s3)); z-index: 20; }
.filter-toggle { display: none; }
.filter-row { display: grid; gap: 14px; padding: var(--s3); background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r); }
.filter-title { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-weight: 600; font-size: 15px; }
.filter-row label { display: flex; flex-direction: column; font-size: var(--fs-small); color: var(--ink-2); gap: 4px; }
.filter-row select, .filter-row input { min-height: 38px; border: 1px solid #c3ced6; border-radius: 10px; background: #fff; padding: 4px 10px; font-size: 14px; width: 100%;
  transition: border-color var(--t), box-shadow var(--t); }
.filter-row select:hover, .filter-row input:hover { border-color: var(--ours); }
.filter-row select:focus-visible, .filter-row input:focus-visible { box-shadow: 0 0 0 3px rgba(79, 109, 128, 0.25); }
.filter-row select:disabled { color: var(--ink-muted); background: var(--canvas-2); }
.filter-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s1); padding-top: 4px; border-top: 1px solid var(--line); }
.filter-row .count { font-size: var(--fs-small); color: var(--ink-2); font-weight: 600; }
.filter-row button.clear { border: 0; background: none; color: var(--link); text-decoration: underline; padding: 6px 0; cursor: pointer; font-size: var(--fs-small); }
.filter-row button.clear:disabled { color: var(--ink-muted); text-decoration: none; cursor: default; }
.browse-main { container-type: inline-size; min-width: 0; }
.map-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
/* the heatmap card and the bars card end level: the heat card stretches and its rows share the height */
@container (min-width: 1000px) { .map-cards { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; } }
#heat-fig { display: flex; flex-direction: column; }
#heat-fig > .heat-body { flex: 1; display: flex; flex-direction: column; }
.heat-body > .heat { flex: 1; }
.side-card .chart + .chart { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); }
#sources { margin-top: var(--s8); }
/* a narrow results column: the category moves into the detail, so the source name has room */
@container (max-width: 1150px) { .src-table th.col-domain, .src-table td.cat-cell { display: none; } }
@container (max-width: 1150px) and (min-width: 721px) { .src-table td.title { max-width: none; min-width: 16rem; } }

/* heatmap: pictograms as column heads, horizontal row labels */
.heat { display: grid; gap: 2px; width: 100%; max-width: 760px; }
.heat .col-head { display: flex; align-items: flex-end; justify-content: center; padding: 0 0 6px; min-height: 32px; }
.heat .row-head { font-size: 14px; line-height: 1.15; color: var(--ink); align-self: center; padding-right: var(--s1); }
.heat .cell { border: 0; padding: 0; margin: 0; min-height: 34px; min-width: 0; border-radius: 4px; cursor: pointer; position: relative; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: transform var(--t); }
.heat .cell.empty { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.heat .cell:hover, .heat .cell:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; z-index: 1; transform: scale(1.06); }
.heat .cell.current { outline: 2px solid var(--ink); outline-offset: 1px; z-index: 1; }
.heat .cell .lab { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.icon-key { list-style: none; margin: var(--s2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px var(--s2); font-size: var(--fs-small); color: var(--ink-2); }
.icon-key li { display: inline-flex; align-items: center; gap: 6px; }
.scale { display: flex; align-items: center; gap: var(--s1) var(--s2); margin-top: var(--s2); font-size: var(--fs-small); color: var(--ink-2); flex-wrap: wrap; }
.scale .steps { display: grid; grid-template-columns: repeat(7, 32px); gap: 2px; }
.scale .steps span { display: block; height: 10px; border-radius: 3px; }
.scale .steps span.zero { box-shadow: inset 0 0 0 1px var(--line); }
.scale .ticks { display: grid; grid-template-columns: repeat(7, 32px); gap: 2px; font-size: 12px; color: var(--ink-2); }
.scale .ticks span { white-space: nowrap; }

/* ---- sources ---- */
.table-card { padding: var(--s2) var(--s3) var(--s3); }
.list-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s2); margin: 0 0 var(--s2); font-size: var(--fs-small); color: var(--ink-2); }
.fit-name { display: inline-flex; align-items: center; gap: 4px; }
.fit-key { display: inline-flex; flex-wrap: wrap; gap: 4px var(--s2); margin-left: auto; }
.fit-key > span { display: inline-flex; align-items: center; gap: 6px; }
.fit { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.fit-yes { background: var(--ours); }
.fit-part { background: linear-gradient(90deg, var(--ours) 50%, #fff 50%); box-shadow: inset 0 0 0 1.5px var(--ours); }
.fit-no { background: var(--problem); }
.fit-unknown { background: #fff; box-shadow: inset 0 0 0 1.5px var(--other); }
.fit-strip { display: inline-flex; gap: 4px; }
.src-table { border-collapse: collapse; width: 100%; font-size: 15px; }
.src-table th { font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); text-align: left; padding: 0; border-bottom: 1px solid var(--line); }
.src-table th button { border: 0; background: none; padding: var(--s1) var(--s2) var(--s1) 0; cursor: pointer; font-size: var(--fs-small); color: var(--ink-2); text-align: inherit; width: 100%; min-height: 36px; white-space: nowrap; font-weight: 600; }
.src-table th[aria-sort] button { color: var(--ink); }
.src-table th.r, .src-table td.r { text-align: right; white-space: nowrap; }
.src-table td { padding: 14px var(--s2) 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.src-table tbody tr.row { transition: background var(--t); }
.src-table tbody tr.row:hover, .src-table tbody tr.row:focus-within { background: var(--canvas); }
.src-table tbody tr.row.open { background: var(--ours-wash); }
.src-table td:first-child, .src-table th:first-child button { padding-left: 8px; }
.src-table td.title { max-width: 22rem; }
.src-table td.title button { border: 0; background: none; padding: 0; color: var(--ink); cursor: pointer; text-align: left; font-size: 15px; font-weight: 600; min-height: 24px; display: inline-flex; gap: 6px; }
.src-table td.title button:hover { color: var(--link); text-decoration: underline; }
.src-table td.title .caret { color: var(--ink-muted); width: 0.8em; flex: none; }
.ready-tag { display: inline-flex; align-items: center; gap: 2px; margin-left: var(--s1); font-size: 12px; color: var(--ours); font-weight: 600; }
.cat-cell { color: var(--ink-2); font-size: 14px; max-width: 16rem; }
.form-cell { white-space: nowrap; font-size: 14px; }
.form-cell .ico { margin-right: 6px; }
.unit-word { font-size: 12px; color: var(--ink-muted); }
.fit-cell { white-space: nowrap; padding-top: 18px !important; }
.src-table tr.open td { border-bottom-color: transparent; }
.src-table tr.detail-row > td { padding: 0 0 var(--s3); background: var(--ours-wash); }
.more { margin: var(--s2) 0 0; }

/* the detail, in the group's order */
.detail { padding: var(--s2) var(--s3) var(--s1); overflow-wrap: anywhere; }
.fit-row { list-style: none; margin: 0 0 var(--s3); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1); }
.fit-item { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--ink-2); background: #fff; border-radius: 999px; padding: 4px 10px 4px 8px; border: 1px solid var(--line); }
.fit-no-item { border-color: var(--problem); }
.d-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s2) var(--s5); margin: 0; }
.d-item { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: var(--s1); align-items: start; }
.d-item dt { display: flex; align-items: center; gap: var(--s1); font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); padding-top: 2px; }
.d-item dd { margin: 0; font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px var(--s1); align-items: center; }
.d-item dd details { width: 100%; }
.d-item dd summary { cursor: pointer; }
.d-item dd details p { margin: var(--s1) 0 0; font-size: 14px; color: var(--ink-2); }
.lic { display: flex; flex-wrap: wrap; gap: 4px var(--s1); align-items: baseline; width: 100%; }
.lic-bars { width: 100%; max-width: 360px; }
.lic-bars .mini-title { margin-top: 4px; }
.cmd-inline { display: block; width: 100%; font-size: 12px; background: var(--code); color: var(--on-dark); border-radius: 10px; padding: 10px 12px; }
.example a { overflow-wrap: anywhere; }
.strip { position: relative; height: 44px; margin: var(--s1) 0 0; width: 100%; max-width: 360px; }
.strip-axis { position: absolute; left: 0; right: 0; top: 20px; height: 1px; background: var(--line); }
.strip-band { position: absolute; top: 16px; height: 8px; background: #b0bdc6; border-radius: 4px; }
.strip-dot { position: absolute; top: 14px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--ours); box-shadow: 0 0 0 2px #fff; }
.strip-limit { position: absolute; top: 12px; width: 2px; height: 16px; background: var(--problem); }
.strip-lab { position: absolute; top: 30px; font-size: 12px; color: var(--ink-2); white-space: nowrap; transform: translateX(-50%); }
.strip-lab.limit { top: -4px; color: var(--problem-text); }
.d-more { margin-top: var(--s3); }
.d-more summary { cursor: pointer; color: var(--link); font-size: 14px; }
.d-more[open] summary { margin-bottom: var(--s1); }
.sample td { font-family: var(--mono); font-weight: 500; font-size: 12px; word-break: break-all; }

/* ---- 3. get the data: dark code cards beside the folder ---- */
#get-body { min-height: 360px; }
.pick-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); margin-bottom: var(--s3); }
.pick-row .seg-wrap { margin-left: auto; }
.fact-line { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; margin: 0; }
.fact-line b { font-weight: 700; font-variant-numeric: tabular-nums; }
/* the two commands share the height of the folder card, so both columns end level */
.get-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s4); align-items: stretch; }
.cmd-steps { display: grid; gap: var(--s3); grid-auto-rows: 1fr; }
.cmd-steps > .code-card { display: flex; flex-direction: column; }
.cmd-steps > .code-card > pre.code { flex: 1; }
.code-card { border-radius: var(--r); overflow: hidden; color: var(--on-dark); background: linear-gradient(180deg, var(--code-2) 0, var(--code) 64px);
  border: 1px solid rgba(255, 255, 255, 0.06); box-shadow: 0 2px 4px rgba(17, 37, 50, 0.12), 0 18px 40px -20px rgba(17, 37, 50, 0.5); }
.code-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.code-ico { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.08); }
.code-ico .ico { color: #cfe0ea; }
.code-head .step-n { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--hero-a); background: var(--on-dark-2); }
.code-title { font-size: 16px; font-weight: 600; flex: 1; }
.code-card pre.code { margin: 0; padding: 18px 20px 20px; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: #dfe8ee; max-height: 22rem; overflow: auto; }
.tree-fig { margin: 0; padding: var(--s3); }
.tree { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.tree li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--s1); align-items: start; }
.tree-name { display: flex; flex-wrap: wrap; gap: 0 var(--s1); align-items: baseline; overflow-wrap: anywhere; }
.tree .small { color: var(--ink-muted); }
.tree-note { margin: var(--s1) 0 0; color: var(--ink-muted); }
.profile-title { margin-top: var(--s3); }
ul.profile { list-style: none; margin: 0; padding: 0; }
.agent-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin: var(--s2) 0 0; }
.csv-card { display: flex; align-items: center; gap: var(--s2); padding: var(--s3); flex-wrap: wrap; max-width: 720px; }
.agents-card { margin-top: var(--s5); display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2) var(--s3); padding: var(--s3) var(--s4); }
.agents-ico { display: inline-flex; width: 64px; height: 64px; border-radius: 18px; align-items: center; justify-content: center; background: var(--ours-wash); }
.agents-text { flex: 1; min-width: 14rem; }
.agents-text h3 { margin: 0 0 4px; font-size: var(--fs-sub); }
.agents-text p { margin: 0; }
.agents-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- 4. not included and history ---- */
.end-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s4); align-items: stretch; }
#history-fig { display: flex; flex-direction: column; }
#history-fig > .cols { flex: 1; }
details.long > summary { cursor: pointer; color: var(--link); margin-top: var(--s2); font-size: 14px; }
details.long[open] > summary { margin-bottom: var(--s1); }

/* ---- the dark footer ---- */
.site-foot { color: var(--on-dark); padding: clamp(56px, 5vw, 88px) 0 var(--s5);
  background: radial-gradient(900px 400px at 90% 0%, rgba(126, 168, 196, 0.18), transparent 60%), linear-gradient(180deg, var(--hero-a), var(--foot)); }
.site-foot .ico { color: #cfe0ea; }
.foot-grid { display: grid; gap: var(--s4); }
.foot-cta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2) var(--s3); padding-bottom: var(--s4); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.foot-cta > div { flex: 1; min-width: 14rem; }
.foot-cta h2 { color: #fff; }
.foot-cta p { margin: 4px 0 0; color: var(--on-dark-2); }
.foot-ico { display: inline-flex; width: 64px; height: 64px; border-radius: 18px; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.08); }
.btn.on-dark-solid, .btn.on-dark-solid:visited { background: #fff; color: var(--hero-a); border-color: #fff; min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn.on-dark-solid:hover { background: #e6eef3; color: var(--hero-a); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); list-style: none; margin: 0; padding: 0; }
.foot-links a, .foot-links a:visited { color: var(--on-dark-2); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.foot-pin { margin: 0; font-size: 12px; color: var(--on-dark-3); }

/* tooltip: value first, label second */
.tip { position: fixed; z-index: 60; pointer-events: none; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: var(--s1) 12px;
  box-shadow: var(--shadow-lift); font-size: var(--fs-small); max-width: 280px; }
.tip .v { display: block; font-size: var(--fs-body); font-weight: 700; font-variant-numeric: tabular-nums; }
.tip .k { display: block; color: var(--ink-2); }
.tip .k::before { content: ""; display: inline-block; width: 10px; height: 2px; background: var(--ours); vertical-align: 3px; margin-right: 6px; }

/* view transitions: brief, and none without motion */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---- below 1280 px: one column per section ---- */
@media (max-width: 1279px) {
  .hero-main, .hero-facts { grid-column: 1 / -1; }
  .hero-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .browse-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .filters { top: var(--nav-h); margin-inline: calc(-1 * var(--pad)); padding: 10px var(--pad); background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .filter-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s1) 10px; padding: 0; background: none; border: 0; border-radius: 0; }
  .filter-title { display: none; }
  .filter-row label { gap: 2px; }
  .filter-row select, .filter-row input { min-height: 34px; width: auto; min-width: 6rem; max-width: 10rem; }
  .filter-foot { border: 0; padding: 0; gap: var(--s2); }
  .get-grid, .end-grid { grid-template-columns: minmax(0, 1fr); }
  .d-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1099px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links a:not(.btn) { display: none; }
}
/* phone: every size one notch down; tiles two to a row */
@media (max-width: 720px) {
  :root { --fs-small: 12px; --fs-body: 15px; --fs-sub: 18px; --fs-h2: 26px; --fs-h1: 28px; --nav-h: 56px; --r: 14px; }
  .nav-row { grid-template-columns: auto minmax(0, 1fr); gap: var(--s2); }
  .brand, .nav-links { display: none; }
  .nav-row { grid-template-columns: minmax(0, 1fr); }
  .progress { gap: 6px; }
  .progress a { font-size: 11px; column-gap: 3px; }
  .hero-grid { padding-top: var(--s5); gap: var(--s4); }
  .hero h1 { margin-bottom: var(--s3); }
  .display-label { font-size: 16px; }
  .hero .hero-btn { flex: 1; justify-content: center; padding: 0 12px; font-size: 14px; }
  .fact-tile { grid-template-columns: minmax(0, 1fr); padding: 14px; row-gap: 2px; }
  .fact-ico { grid-row: auto; width: 34px; height: 34px; margin-bottom: 6px; }
  .fact-num { font-size: 24px; }
  .fact-label { font-size: 13px; }
  .band { padding-block: var(--s6); }
  .band-head { margin-bottom: var(--s3); }
  /* tiles two to a row, compact: pictogram, name, big number, one bar */
  .cat-grid { gap: 10px; }
  .cat { min-height: 222px; }
  .cat-main { padding: 14px 12px 12px; gap: 8px; }
  .cat-ico { width: 32px; height: 32px; border-radius: 10px; }
  .cat-name { font-size: 14px; }
  .cat-num { font-size: 30px; }
  .cat-num-label { font-size: 12px; }
  .cat-meta, .cat-bar + .cat-bar, .cat:not(.wanted) .cat-foot { display: none; }
  .cat-bar { font-size: 11px; gap: 4px 6px; }
  .cat-foot { padding: 0 12px 12px; }
  .cat-foot .btn { width: 100%; justify-content: center; }
  .where-grid { grid-template-columns: minmax(0, 1fr); }
  #ready-card { min-height: 780px; }
  #where-src { min-height: 663px; }
  .split-labels.fixed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-labels.fixed.two-rows { min-height: calc(3 * 2.6em + 16px); }
  .split-labels.fixed:not(.two-rows) .small { white-space: normal; }
  .chart-card { padding: var(--s2); }
  .filters { padding: var(--s1) var(--pad); }
  .filter-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid #c3ced6; background: #fff; border-radius: 10px; padding: 6px 12px; min-height: 42px; cursor: pointer; font-size: 14px; font-weight: 600; }
  .filter-toggle > span:first-of-type { flex: 1; text-align: left; }
  .filter-toggle .state { color: var(--ink-2); font-size: 13px; font-weight: 400; }
  .filters .filter-row { display: none; margin-top: var(--s1); }
  .filters.open .filter-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s1); max-height: 70vh; overflow-y: auto; }
  .filters.open .filter-row .wide, .filters.open .filter-row .filter-foot { grid-column: 1 / -1; }
  .filter-row select, .filter-row input { max-width: none; width: 100%; }
  .bar-row { grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); font-size: 13px; }
  .heat .row-head { font-size: 12px; }
  .scale .steps, .scale .ticks { grid-template-columns: repeat(7, 30px); }
  .cols { gap: var(--s2); }
  .table-card { padding: var(--s1) var(--s2) var(--s2); }
  .fit-key { margin-left: 0; }
  .src-table, .src-table > thead, .src-table > tbody, .src-table > tbody > tr, .src-table > tbody > tr > td { display: block; width: 100%; }
  .src-table > thead { border-bottom: 1px solid var(--line); }
  .src-table > thead > tr { display: flex; flex-wrap: wrap; gap: 0 var(--s2); }
  .src-table > thead > tr > th { border: 0; width: auto; }
  .src-table > thead > tr > th button { padding: 4px 0; }
  .src-table > tbody > tr.row { padding: 12px 4px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px var(--s2); }
  .src-table > tbody > tr.row > td { border: 0; padding: 0 !important; width: auto; font-size: 13px; color: var(--ink-2); }
  .src-table > tbody > tr.row > td.title, .src-table > tbody > tr.row > td.cat-cell { width: 100%; max-width: none; }
  .src-table > tbody > tr.row > td.r { text-align: left; }
  .src-table .unit-word { display: none; }
  .src-table > tbody > tr.row > td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-muted); }
  .src-table > tbody > tr.row > td.cat-cell::before { content: none; }
  .detail { padding: var(--s2) var(--s1); }
  .d-item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pick-row .seg-wrap { margin-left: 0; }
  .code-card pre.code { font-size: 12.5px; padding: 14px 14px 16px; }
  .code-head { padding: 12px 14px; flex-wrap: wrap; }
  .agents-card { padding: var(--s3); }
}
