/* HEND design system, light paper world (single theme by choice: the brand imagery is printed on paper).
   Layout: a quiet editorial landing that hands off to a two-column analysis workspace with a plum sidebar. */
:root {
  color-scheme: light;
  --surface-000: #f6f1f1; --surface-100: #fcfafb; --surface-200: #ffffff; --surface-tint: #f1e8f3; --surface-inverse: #32103a;
  --ink: #2a0a35; --ink-muted: #5f5068; --ink-subtle: #6f6176; --ink-inverse: #f6eef7; --ink-inverse-muted: #c9b6cf;
  --primary: #3e0f4f; --primary-hover: #55186a; --on-primary: #ffffff; --accent: #5b1a86;
  --mauve: #744d7b; --lilac: #a888b0; --lavender: #ddd0e1; --earth: #8a6c52; --earth-tint: #e8ddd2;
  --line: #e6dce5; --line-strong: #8f7f96; --focus: #5b1a86;
  --success: #2c6e45; --success-tint: #e3f1e7; --warning: #8a5a00; --warning-tint: #f8ecd2; --danger: #a2263a; --danger-tint: #f8e1e4;
  --font-serif: "Newsreader", "Iowan Old Style", "Times New Roman", Georgia, serif;
  --font-sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(42,10,53,.04), 0 8px 24px rgba(42,10,53,.06);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--surface-000); color: var(--ink); font: 400 16px/1.5 var(--font-serif); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Contour texture behind heroes */
.contours { position: fixed; left: 0; top: var(--tb, 78px); width: 100vw; height: calc(100vh - var(--tb, 78px)); z-index: -1; pointer-events: none; display: block; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--space-8); height: 76px; box-sizing: border-box;
  padding: 0 var(--space-12); background: rgba(246,241,241,.86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.brand { text-align: left; display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; }
.brand img { width: 40px; height: 40px; display: block; }
.brand:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.brand-sep { display: none; }
.brand { position: relative; }
.brand .brand-logo { width: auto; height: 28px; overflow: visible; display: block; }
.brand-hit { position: absolute; left: 0; top: 0; height: 100%; width: 100%; }
.brand:hover .brand-hit, .brand:focus-visible .brand-hit { width: 790px; }
.topnav { transition: opacity .3s ease; }
.topbar.logo-open .topnav { opacity: 0; pointer-events: none; }
.foot-brand .foot-logo { width: auto; height: 22px; }
.brand-word { display: block; font: 600 29px/1 var(--font-sans); letter-spacing: .05em; color: var(--ink); }
.descriptor { display: block; margin-top: 5px; font: 500 9.5px/1.2 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-muted); }
.topnav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.topnav button { position: relative; background: none; border: 0; padding: 8px 14px; cursor: pointer; font: 400 15px/20px var(--font-sans); color: var(--ink-muted); border-radius: var(--radius-pill); transition: color .15s, background-color .15s; }
.topnav button:hover { color: var(--ink); background: rgba(91,26,134,.06); }
.topnav button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.topnav button[aria-current="page"] { color: var(--primary); font-weight: 500; }
.topnav button[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.topbar-sep { display: none; }
.topbar #launch { height: 38px; padding: 0 18px; font: 500 13.5px/1 var(--font-sans); letter-spacing: .04em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 24px;
  border-radius: 2px; border: 1px solid transparent; font: 500 14px/1 var(--font-sans); letter-spacing: .04em; cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn:focus-visible, .link-btn:focus-visible, .toggle button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; flex: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--ink); }
.btn-primary:disabled { background: var(--line-strong); cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--surface-tint); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 13.5px; }
.btn-xs { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); display: inline-flex; gap: var(--space-2); align-items: center; font: 500 14px/1 var(--font-sans); letter-spacing: .04em; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.link-btn:hover { color: var(--accent); }
.link-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ---------- Landing ---------- */
.eyebrow { font: 500 14px/20px var(--font-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--primary); }
.rule { width: 48px; height: 3px; background: var(--primary); border: 0; margin: 0; }
.hero { position: relative; overflow-x: clip; overflow-y: visible; min-height: calc(100vh - var(--tb, 78px)); min-height: calc(100svh - var(--tb, 78px)); display: flex; flex-direction: column; justify-content: center; }
.hero-inner { width: 100%; box-sizing: border-box; }
.hero-inner { position: relative; max-width: 1320px; margin: 0 auto; padding: var(--space-4) var(--space-12) var(--space-6);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-8); align-items: center; }
.hero-copy { display: grid; gap: var(--space-6); justify-items: start; }
.hero h1 { font-size: clamp(44px, 5.6vw, 76px); line-height: .98; letter-spacing: -.02em; font-weight: 400; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 22px; line-height: 1.45; color: var(--ink-muted); max-width: 30em; }
.hero-actions { display: flex; gap: var(--space-6); align-items: center; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art { position: relative; z-index: 1; }
.hero-note { margin: var(--space-3) 0 0; text-align: center; font: 400 13px/18px var(--font-sans); letter-spacing: .04em; color: var(--ink-muted); }
.hero-inner { align-items: start; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6); padding-top: 60px; }
.hero-actions { min-height: 48px; }
.hero-art { display: flex; flex-direction: column; }
.hero-note { flex-direction: column; gap: 2px; }
.hero-hint { position: absolute; left: 0; right: 0; top: calc(50% + 14px); text-align: center; font-size: 12.5px; color: var(--ink-muted); opacity: .8; }
.hero-note { pointer-events: none; position: relative; margin: var(--space-6) 0 0; min-height: 48px; display: flex; align-items: center; justify-content: center; font: 400 14px/20px var(--font-sans); letter-spacing: .02em; color: var(--ink-muted); }
.hero-stats { display: grid; gap: var(--space-2); font-family: var(--font-sans); }
.hero-stats .hs-label { font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--primary); }
.hero-stats .hs-row { display: flex; gap: var(--space-8); flex-wrap: wrap; }
.hs { position: relative; display: grid; gap: 2px; }
.hs-name { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--ink-muted); }
.hs-val { font-size: 22px; line-height: 28px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.hs-val small { font-size: 14px; line-height: 20px; font-weight: 400; color: var(--ink-muted); margin-left: 4px; }
.hs-i { all: unset; box-sizing: border-box; cursor: pointer; width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--ink-subtle); }
.hs-i svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.hs-i:hover, .hs-i:focus-visible { color: var(--accent); }
.hs-i:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hs-tip { position: absolute; left: 0; bottom: calc(100% + 8px); width: 260px; padding: 10px 12px; background: var(--surface-inverse); color: var(--ink-inverse); border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  font: 400 14px/20px var(--font-sans); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none; z-index: 5; }
.hs-tip b { font-weight: 500; display: block; margin-bottom: 2px; }
.hs.open .hs-tip { opacity: 1; visibility: visible; transform: none; }
@media (prefers-reduced-motion: reduce) { .hs-tip { transition: none; } }
.flow-fig{contain:inline-size;}
.hend-pipeline{--plum:#3d1259;position:relative;width:min(calc(100vw - 48px),1560px);margin-left:calc(50% - min(calc(100vw - 48px),1560px) / 2);aspect-ratio:1600/376;background:transparent;cursor:pointer;outline:none;-webkit-tap-highlight-color:transparent}
.hend-pipeline canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.hend-pipeline canvas.gl{pointer-events:none}
.hend-pipeline:focus-visible{outline:2px solid var(--plum);outline-offset:4px}
.flow-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.flow { display: block; width: 100%; min-width: 900px; height: auto; font-family: var(--font-sans); }
.fl-lane path { stroke: var(--line-strong); stroke-opacity: .35; stroke-width: 1; stroke-dasharray: 3 6; }
.fl-lab text { font: 500 12.5px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; fill: var(--primary); text-anchor: middle; }
.fl-ln path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; }
.fl-head { fill: var(--accent); }
.fl-node rect, .fl-node path { fill: var(--surface-tint); stroke: var(--lilac); stroke-width: 1; }
.fl-nn circle { fill: var(--surface-200); stroke: var(--accent); stroke-width: 1.4; }
.fl-q rect { fill: var(--surface-200); stroke: var(--lilac); stroke-width: 1; }
.fl-q .fl-q50 { fill: var(--primary); stroke: var(--primary); }
.fl-tx text { font-size: 14.5px; fill: var(--ink); text-anchor: middle; }
.fl-tx .fl-b { font-weight: 500; }
.fl-tx .fl-s { font-size: 12px; fill: var(--ink-muted); }
.fl-tx .fl-sm { font-size: 13px; }
.fl-tx .fl-inv { fill: var(--on-primary); }
.fl-sub { font-size: 10.5px; }
.fl-tag text { font: 500 11px var(--font-sans); letter-spacing: .14em; fill: var(--accent); text-anchor: middle; paint-order: stroke; stroke: var(--surface-000); stroke-width: 8px; stroke-linejoin: round; }

.props-label { font: 500 12px/16px var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mauve); }
.props { list-style: none; margin: 0; padding: 0; display: grid; }
.props li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--space-4); padding: 6px 0; border-bottom: 1px solid var(--line); font: 400 16px/22px var(--font-serif); color: var(--ink); }
.props li i { font: italic 400 18px/24px var(--font-serif); color: var(--accent); white-space: nowrap; }
.props li i sub { font-style: normal; font-size: 12px; }
.props li.more { border-bottom: 0; color: var(--ink-muted); font-size: 14px; padding-top: 8px; }
.about-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-16); align-items: center; }
.about-props { display: grid; gap: var(--space-3); }
@media (max-width: 1100px) { .about-top { grid-template-columns: 1fr; gap: var(--space-6); } }
.fig { margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.section.section-wide { max-width: 1320px; }
.perf-head { display: flex; align-items: baseline; gap: var(--space-6); flex-wrap: wrap; }
.perf-head h2 { font-size: 40px; line-height: 1.05; letter-spacing: -.01em; font-weight: 400; }
#about .about-top { min-height: 0; }
#about .section-head h2 { font-size: 40px; }
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }
.fig-toggle button { font-family: var(--font-sans); font-size: 14px; }
.fig-bar { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; }
.fig-img { text-align: center; }
.fig-frame { position: relative; display: inline-block; max-width: 100%; padding-top: 28px; vertical-align: top; background: var(--surface-000); }
.fig-img img { mix-blend-mode: multiply; }
.fig-heads { position: absolute; left: 0; right: 0; top: 0; height: 24px; z-index: 10; }
.fig-heads > span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; font: 500 15px/22px var(--font-sans); color: var(--ink); }
.fig-heads > .hs { display: inline-block; }
.fig-heads .hs-name { display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; }
.fig-heads .hs-tip { bottom: auto; top: calc(100% + 6px); left: 50%; margin-left: -130px; text-align: left; white-space: normal; transform: translateY(-4px); }
.fig-heads .hs.open .hs-tip { transform: none; }
@media (max-width: 860px) { .fig-heads > span { font-size: 11px; } }
.fig-img img { display: block; width: 100%; height: auto; }
.fig figcaption { display: grid; gap: var(--space-4); }
@media (min-width: 1101px) { #perf figcaption { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-8); align-items: start; } #perf .stat-row { gap: var(--space-6); } }
.fig-cap { font-size: 16px; line-height: 1.5; color: var(--ink-muted); max-width: 62em; }
.cap-stack { display: grid; }
.cap-stack > .fig-cap { grid-area: 1 / 1; }
.cap-stack > [data-off] { visibility: hidden; }
.fig-cap b { font-weight: 500; color: var(--ink); }
.stat-row { display: flex; flex-wrap: wrap; gap: var(--space-8); font-family: var(--font-sans); }
.facts { margin: 0; display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.meth-top .section-head p { font-size: 17px; }
.facts > div { border-top: 2px solid var(--primary); padding-top: var(--space-2); display: grid; gap: 2px; }
.facts dt { font: 500 12px/16px var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mauve); }
.facts dd { margin: 0; font: 400 24px/1.2 var(--font-serif); color: var(--ink); }
.facts > div { grid-template-columns: auto 1fr; column-gap: var(--space-4); align-items: baseline; }
.facts dt { grid-column: 1 / -1; }
.facts dd.sub { font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }
.res-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-12); align-items: start; }
.res-col { display: grid; gap: var(--space-3); align-content: start; }
.res-col h3 { font: 500 12px/16px var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mauve); margin-top: var(--space-3); }
.res-col h3:first-child { margin-top: 0; }
.refs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.refs li { display: grid; gap: var(--space-2); padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.refs li:first-child { border-top: 0; padding-top: 0; }
.refs p { font-size: 17px; line-height: 1.5; color: var(--ink); }
.ref-tag { justify-self: start; font: 500 11px/16px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--on-primary); background: var(--primary); border-radius: var(--radius-pill); padding: 3px 10px; }
.doi { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font: 400 14px/20px var(--font-sans); color: var(--accent); text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 4px 12px 4px 4px; background: var(--surface-200); }
.doi span { font-weight: 500; font-size: 11px; letter-spacing: .08em; color: var(--on-primary); background: #fcb425; color: #2a0a35; border-radius: var(--radius-pill); padding: 2px 8px; }
.doi:hover { border-color: var(--accent); }
.doi:focus-visible, .mail:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.res-aff { color: var(--ink-muted); font-size: 16px; }
.authors { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.authors li { display: flex; align-items: center; gap: var(--space-2); font-size: 17px; color: var(--ink); }
.orcid { display: inline-grid; width: 18px; height: 18px; }
.orcid svg { width: 18px; height: 18px; }
.orcid svg circle { fill: #a6ce39; }
.orcid svg path { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.orcid.is-pending { opacity: .35; filter: grayscale(1); cursor: help; }
.mail { color: var(--accent); font-size: 17px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .app { padding: 32px 20px 48px; }
  .app-grid { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .facts, .res-grid { grid-template-columns: 1fr; }
}
.hero-mtn { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 180px; object-fit: cover; object-position: center bottom; pointer-events: none; }
.hero-inner { z-index: 1; }
.features { padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.feature { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-4); padding: var(--space-2) var(--space-8); border-left: 1px solid var(--line-strong); }
.feature:first-child { border-left: 0; padding-left: 0; }
.feature svg { width: 52px; height: 52px; stroke: var(--primary); fill: none; stroke-width: 1.2; }
.feature h3 { font-size: 21px; color: var(--ink); }
.feature p { color: var(--ink-muted); font-size: 16px; line-height: 1.4; margin-top: var(--space-1); }

.section { max-width: 1120px; margin: 0 auto; padding: var(--space-8) var(--space-12); display: grid; gap: var(--space-8); scroll-margin-top: 80px; box-sizing: border-box; align-content: center; min-height: calc(100vh - var(--tb, 78px)); min-height: calc(100svh - var(--tb, 78px)); }
@media (max-width: 860px) { .section { min-height: 0; } }
.section + .section { border-top: 1px solid var(--line); }
@media (min-width: 861px) {
  .section { padding-top: var(--space-6); padding-bottom: var(--space-6); gap: var(--space-6); }
  #perf .fig-img img { width: auto; max-width: 100%; }
  .meth-top .section-head h2 { font-size: 40px; }
  .flow { min-width: 0; }
  .fig-cap { font-size: 15px; line-height: 1.45; }
}
.section-head { display: grid; gap: var(--space-3); max-width: 44em; }
.section-head h2 { font-size: 40px; line-height: 1.05; letter-spacing: -.01em; font-weight: 400; }
.section-head p { font-size: 19px; color: var(--ink-muted); line-height: 1.5; }
.io { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.panel { background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-6); }
.panel h3 { font-size: 22px; margin-bottom: var(--space-4); }
.spec { list-style: none; margin: 0; padding: 0; display: grid; }
.spec li { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.spec li:first-child { border-top: 0; }
.spec span:last-child { color: var(--ink-muted); text-align: right; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); counter-reset: s; }
.steps li { display: grid; gap: var(--space-3); align-content: start; padding-top: var(--space-4); border-top: 3px solid var(--primary); counter-increment: s; }
.steps li::before { content: "0" counter(s); font: 500 13px/1 var(--font-sans); letter-spacing: .2em; color: var(--mauve); }
.steps h3 { font-size: 22px; }
.steps p { color: var(--ink-muted); font-size: 16px; }
.eq { font-style: italic; font-size: 16px; color: var(--ink); background: var(--surface-tint); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); overflow-x: auto; white-space: nowrap; }
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.app-card { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); align-items: start; }
.app-card svg { width: 40px; height: 40px; stroke: var(--mauve); fill: none; stroke-width: 1.3; }
.app-card h3 { font-size: 21px; margin: 0 0 var(--space-1); }
.app-card p { color: var(--ink-muted); }
.card-table { width: 100%; border-collapse: collapse; }
.card-table th, .card-table td { text-align: left; padding: var(--space-3) var(--space-4) var(--space-3) 0; border-top: 1px solid var(--line); vertical-align: top; }
.card-table th { font-weight: 500; width: 34%; }
.card-table td { color: var(--ink-muted); }
.card-table tr:first-child th, .card-table tr:first-child td { border-top: 0; }
.placeholder { min-height: 32px; }
.site-foot { border-top: 1px solid var(--line); background: var(--surface-000); }
.foot-inner { max-width: 1120px; margin: 0 auto; padding: var(--space-8) var(--space-12) var(--space-12); display: grid; grid-template-columns: auto 1fr; gap: var(--space-8); align-items: center; }
.foot-copy { justify-self: end; }
.foot-brand { display: flex; gap: var(--space-3); align-items: center; }
.foot-brand img { width: 26px; height: 26px; }
.foot-note { color: var(--ink-muted); font-size: 15px; max-width: 46em; }
.foot-copy { color: var(--ink-subtle); font-size: 14px; white-space: nowrap; }
@media (max-width: 860px) { .foot-inner { grid-template-columns: 1fr; gap: var(--space-4); padding: var(--space-8) var(--space-4); } }
.closing { position: relative; overflow: hidden; background: var(--surface-inverse); color: var(--ink-inverse); }
.closing-inner { position: relative; max-width: 1120px; margin: 0 auto; padding: var(--space-16) var(--space-12); display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; }
.closing h2 { font-size: 40px; font-weight: 400; }
.closing .tagline { margin-top: var(--space-3); font: 400 12px/1.6 var(--font-sans); letter-spacing: .32em; text-transform: uppercase; color: var(--ink-inverse-muted); }
.closing .btn-primary { background: var(--surface-200); color: var(--primary); }
.closing .btn-primary:hover { background: var(--surface-tint); }
.closing :focus-visible { outline-color: var(--ink-inverse); }

/* ---------- Analysis app ---------- */
.app { position: relative; min-height: calc(100vh - var(--tb, 78px)); padding: 56px 48px 72px; }
.app-wrap { max-width: 1180px; margin: 0 auto; }
.app-title { font: 400 40px/1.05 var(--font-serif); letter-spacing: -.01em; margin: 0 0 28px; }
.app-grid { display: grid; grid-template-columns: minmax(340px, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.apanel { background: rgba(252,250,251,.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: 2px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line); min-height: 56px; }
.panel-head h2 { font: 500 12px/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mauve); }
.panel-body { padding: 24px; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line); }
.panel-foot.tiny { font: 400 12px/1 var(--font-sans); letter-spacing: .06em; color: var(--ink-subtle); padding: 12px 24px; }
.seg { display: inline-flex; gap: 20px; }
.seg button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 6px 0; cursor: pointer; font: 500 14px/20px var(--font-sans); color: var(--ink-muted); }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.acts { display: flex; gap: 8px; }
.app .btn { border-radius: 2px; }
.app .btn:disabled { opacity: .4; cursor: default; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.fld { position: relative; display: grid; gap: 6px; min-width: 0; }
.fld.wide { grid-column: 1 / -1; }
.lbl, .fld label { font: 500 13px/1.2 var(--font-sans); color: var(--ink-muted); }
.fld input, .fld select, #json { width: 100%; height: 42px; padding: 0 56px 0 12px; background: #fff; border: 1px solid var(--line-strong); border-radius: 2px; font: 400 17px/1 var(--font-serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.fld select { padding-right: 12px; }
.fld input:focus, .fld select:focus, #json:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
#json::placeholder, .fld input::placeholder { color: #b9adbe; opacity: 1; }
.fld .u { position: absolute; right: 12px; top: 22px; height: 42px; display: flex; align-items: center; font: 400 13px/1 var(--font-sans); color: var(--ink-subtle); pointer-events: none; }
.fld .e { min-height: 0; font: 400 12px/1.3 var(--font-sans); color: var(--danger); }
.fld.invalid input { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
#json { height: 320px; padding: 14px; margin-top: 6px; font: 400 13px/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace; resize: vertical; display: block; }
#json.drag { border-color: var(--ink); background: var(--surface-tint); }
.row { display: flex; gap: 8px; margin-top: 12px; }
.keys { margin-top: 14px; font: 400 13px/1.55 var(--font-sans); color: var(--ink-subtle); }
.keys b { font-weight: 500; color: var(--ink-muted); }
.err { margin-top: 8px; min-height: 0; font: 400 13px/1.4 var(--font-sans); color: var(--danger); white-space: pre-wrap; }
.err:empty { display: none; }
.empty { font: 400 16px/1.4 var(--font-sans); color: var(--ink-subtle); padding: 8px 0; }
.kv { margin: 0; }
.kv > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt, .kv dd { margin: 0; }
.kv dt { font: 500 12px/1.2 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mauve); }
.kv dd { font: 400 34px/1 var(--font-serif); text-align: right; font-variant-numeric: tabular-nums; }
.kv dd small { font: 400 14px/1 var(--font-sans); color: var(--ink-subtle); margin-left: 6px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: right; font: 500 11px/1.3 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mauve); padding: 0 12px 12px; border-bottom: 1px solid var(--ink); }
.tbl td { padding: 12px; text-align: right; border-bottom: 1px solid var(--line); font: 400 17px/1.2 var(--font-serif); font-variant-numeric: tabular-nums; }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 0; }
.tbl td.bad { color: var(--danger); text-align: left; font: 400 14px/1.3 var(--font-sans); }
.tbl-wrap { overflow-x: auto; max-height: 520px; overflow-y: auto; }
.o-meta { font: 400 13px/1.3 var(--font-sans); color: var(--ink-subtle); margin-bottom: 14px; }
.toast { position: fixed; bottom: var(--space-6); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--ink-inverse); padding: var(--space-3) var(--space-6); border-radius: var(--radius-pill); font-size: 15px; z-index: 60; }

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: var(--space-6); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .topnav { gap: var(--space-6); }
}
@media (max-width: 860px) {
  .topnav, .topbar-sep { display: none; }
  .topbar { padding: 0 var(--space-4); height: 60px; }
  .features, .io, .apps { grid-template-columns: 1fr; }
  .feature { border-left: 0; padding: 0; }
  .features { gap: var(--space-6); padding: 0 var(--space-4) var(--space-12); }
  .section, .hero-inner, .closing-inner { padding-left: var(--space-4); padding-right: var(--space-4); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .brand-word { font-size: 24px; }
  .brand .brand-logo { height: 24px; width: auto; }
  .descriptor { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
/* ===== HEND subsurface block (3D, three.js) ===== */
.hend-block{--plum:#3d1259;--ink-2:#6d5c78;position:relative;width:110%;margin:-25px -5% 0;aspect-ratio:6/5;background:transparent;cursor:pointer;outline:none;-webkit-tap-highlight-color:transparent}
.hend-block canvas{position:absolute;inset:0;width:100%;height:100%;display:block;-webkit-mask-image:linear-gradient(to right,#000 90%,transparent),linear-gradient(to bottom,#000 88%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(to right,#000 90%,transparent),linear-gradient(to bottom,#000 88%,transparent);mask-composite:intersect}
.hend-block .loss{position:absolute;left:3%;bottom:9%;width:132px;opacity:0;pointer-events:none;font:11px/1.3 ui-monospace,"SF Mono",Menlo,Consolas,monospace;color:#3d1259;font-variant-numeric:tabular-nums}
.hend-block .loss svg{display:block;width:120px;height:44px;overflow:visible}
.hend-block .loss .ax{fill:none;stroke:#b9a6c9;stroke-width:1}
.hend-block .loss .cv{fill:none;stroke:#3d1259;stroke-width:1.6}
.hend-block .loss circle{fill:#fff;stroke:#3d1259;stroke-width:1.6}
.hend-block .loss span{display:block;margin-top:5px;white-space:nowrap}
.hend-block .callout{position:absolute;left:0;top:0;opacity:0;pointer-events:none;transition:opacity .18s;display:flex;align-items:baseline;gap:11px;background:rgba(255,255,255,.96);border:1px solid #ddd3e2;border-left:3px solid #1f5fb0;border-radius:2px;padding:5px 12px 6px 10px;white-space:nowrap;box-shadow:0 4px 14px rgba(46,15,71,.12);color:#2a1038;font-family:Georgia,"Times New Roman",serif}
.hend-block .callout small{font:600 9px/1 ui-sans-serif,system-ui,"Segoe UI",sans-serif;letter-spacing:.13em;text-transform:uppercase;color:#6d5c78}
.hend-block .callout b{font-weight:400;font-size:15px;line-height:1.2}
.hend-block .callout span{font-size:12.5px;color:#6d5c78;border-left:1px solid #ddd3e2;padding-left:11px}
.hend-block .info{position:absolute;left:0;top:0;opacity:0;pointer-events:none;transition:opacity .18s;min-width:186px;background:#fff;border:1px solid #ddd3e2;border-top:3px solid #3d1259;border-radius:2px;padding:6px 10px 7px;box-shadow:0 8px 22px rgba(46,15,71,.15);color:#2a1038;font-family:Georgia,"Times New Roman",serif;z-index:3}
.hend-block .info{display:block;width:auto;height:auto;place-items:normal;cursor:default;font-weight:400;font-size:14px;line-height:1.3;letter-spacing:0}
.hend-block .info::after{display:none!important}
.hend-block .info h3{margin:0 0 5px;font-weight:400;font-size:14px}
.hend-block .info dl{margin:0;display:grid;grid-template-columns:auto auto;gap:3px 13px;align-items:baseline}
.hend-block .info dt{font:600 7.5px/1.2 ui-sans-serif,system-ui,"Segoe UI",sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#6d5c78}
.hend-block .info dd{margin:0;text-align:right;font-size:11.5px;white-space:nowrap}
.hend-block:focus-visible{outline:2px solid var(--plum);outline-offset:4px}
.hend-block .nogl{position:absolute;inset:0;display:none;align-items:center;justify-content:center;text-align:center;padding:24px;color:var(--ink-2)}

#view-home{overflow-x:clip}
#about{position:relative}
#about .about-top{position:relative;z-index:1}

/* ===== Mobile v2 (full-bleed panels, 20px gutter, 8px rhythm) ===== */
.menu-btn, .menu-sheet { display: none; }
@media (max-width: 860px) {
  :root { --gut: max(20px, env(safe-area-inset-left)); }
  html { -webkit-text-size-adjust: 100%; }
  body { font-size: 16px; line-height: 1.55; overflow-x: hidden; }
  /* header */
  .topbar { height: 56px; padding: 0 var(--gut); gap: 12px; }
  .topbar .btn-sm { display: none; }
  .brand .brand-logo { height: 24px; }
  .menu-btn { display: inline-flex; margin-left: auto; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -12px; background: none; border: 0; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .menu-btn .m-close { display: none; }
  .menu-btn[aria-expanded="true"] .m-open { display: none; }
  .menu-btn[aria-expanded="true"] .m-close { display: block; }
  .menu-sheet:not([hidden]) { display: flex; flex-direction: column; position: fixed; z-index: 19; top: 56px; left: 0; right: 0; max-height: calc(100dvh - 56px); overflow-y: auto; background: #fcfafb; border-bottom: 2px solid var(--ink); padding: 4px var(--gut) 20px; }
  .menu-sheet button:not(.btn) { background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; min-height: 56px; padding: 0; font: 400 22px/1.2 var(--font-serif); color: var(--ink); cursor: pointer; }
  .menu-sheet .btn { margin-top: 16px; width: 100%; }
  /* hero */
  .hero { min-height: 0; }
  .hero-inner { padding: 32px var(--gut) 8px; gap: 28px; }
  .hero h1 { font-size: 42px; line-height: 1.04; }
  .hero-inner p, .hero-lede { font-size: 18px; line-height: 1.5; }
  .hero-stats .hs-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 8px; min-height: 0; width: 100%; align-self: stretch; justify-self: stretch; }
  .hero-actions .btn, .hero-actions > * { width: 100%; box-sizing: border-box; }
  .hero-actions .link-btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
  .hero-art { margin: 0 calc(var(--gut) * -1); }
  .hend-block { max-width: 100vw; }
  .hero-note { margin-top: 8px; padding: 0 var(--gut) 24px; }
  /* sections: full-bleed panels with the HEND ink rule */
  .section { margin: 0; padding: 40px var(--gut) 44px; gap: 24px; max-width: none; background: rgba(252,250,251,.92); border: 0; border-top: 2px solid var(--ink); border-radius: 0; }
  .section + .section { border-top: 2px solid var(--ink); }
  .section-head { gap: 12px; }
  .section-head h2, .perf-head h2, #about .section-head h2, .meth-top .section-head h2, .closing h2 { font-size: 30px; line-height: 1.12; letter-spacing: -.015em; }
  .section-head p, .section p { font-size: 17px; line-height: 1.55; }
  .features { margin: 0; padding: 32px var(--gut); gap: 24px; background: rgba(252,250,251,.92); border: 0; border-top: 2px solid var(--ink); border-radius: 0; }
  /* about list */
  .about-props { gap: 0; }
  /* performance */
  .perf-head { display: grid; gap: 12px; }
  .fig-bar { display: grid; gap: 12px; justify-content: stretch; }
  .fig-toggle { display: flex; overflow-x: auto; white-space: nowrap; scrollbar-width: none; gap: 20px; }
  .fig-toggle::-webkit-scrollbar { display: none; }
  .fig-toggle button { min-height: 44px; flex: none; }
  .fig-img { margin: 0 calc(var(--gut) * -1); overflow-x: auto; -webkit-overflow-scrolling: touch; text-align: left; scrollbar-width: thin; }
  .fig-frame { display: block; min-width: 780px; width: 780px; max-width: none; margin: 0 var(--gut); }
  .fig-frame img { width: 100%; height: auto; }
  .fig-heads > span { font-size: 13px; }
  .fig .stat-row, .stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .fig figcaption { gap: 16px; }
  .hs-i { position: relative; }
  .hs-i::after { content: ""; position: absolute; inset: -13px; }
  /* methodology */
  .pipe-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); scrollbar-width: thin; }
  .pipe-scroll .hend-pipeline { width: 980px !important; max-width: none !important; margin-left: 0 !important; }
  sub, sup { line-height: 0; }
  .facts { gap: 20px; }
  .facts > div { grid-template-columns: 1fr; row-gap: 2px; }
  .facts dd { font-size: 24px; }
  .facts dd.sub { font-size: 15px; }
  .flow-wrap { margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); }
  .flow { min-width: 760px; }
  /* applications */
  .apps { gap: 28px; }
  .app-card { grid-template-columns: 40px 1fr; gap: 16px; }
  .app-card h3 { font-size: 20px; line-height: 1.2; }
  .app-card p { font-size: 16px; line-height: 1.5; }
  /* research */
  .refs p, .authors li { font-size: 17px; line-height: 1.5; }
  .authors { gap: 4px; }
  .authors li { min-height: 36px; }
  .mail { display: inline-block; padding: 8px 0; }
  /* footer */
  .site-foot { margin-top: 0; border-top: 2px solid var(--ink); }
  .foot-inner { padding: 24px var(--gut) calc(24px + env(safe-area-inset-bottom)); gap: 12px; justify-items: start; }
  .foot-copy { justify-self: start; white-space: normal; }
  .foot-brand .foot-logo { height: 32px; }
  .btn { height: 48px; border-radius: 2px; }
  /* app view */
  #view-analysis .app, .app { padding: 0 0 32px !important; min-height: 0; }
  .fld > label, .fld .lblrow { min-height: 32px; display: flex; align-items: flex-end; }
  .fld .lblrow { justify-content: space-between; }
  .fld .u { top: 38px; height: 48px; }
  .panel-foot { padding: 16px; }
  .panel-head { padding: 8px 16px; }
  .hero-actions .btn, .hero-actions > * { width: 100% !important; }
  .app-grid { gap: 0; grid-template-columns: minmax(0,1fr); }
  .app-col, .apanel { min-width: 0; }
  .app-grid .apanel { margin: 0; border-left: 0; border-right: 0; border-radius: 0; border-top: 2px solid var(--ink); }
  .app-grid .app-col { display: grid; }
  input, select, textarea { min-height: 48px; font-size: 18px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 38px; }
  .section-head h2, .perf-head h2, #about .section-head h2, .meth-top .section-head h2 { font-size: 27px; }
}
/* ---- Analysis app v2 ---- */
.fld .lblrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 2px; overflow: hidden; }
.tg button { border: 0; background: #fff; width: 30px; padding: 2px 0; text-align: center; cursor: pointer; font: 500 12px/18px var(--font-serif); color: var(--ink-muted); }
.tg button[aria-pressed="true"] { background: var(--ink); color: var(--ink-inverse); }
.silt { grid-column: 1 / -1; font: 400 13px/1 var(--font-sans); color: var(--ink-subtle); margin-top: -6px; }
.exs{grid-column:1/-1;display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:2px 0 0;font:400 13px/1 var(--font-sans);color:var(--ink-subtle)}
.silt b { font-weight: 500; color: var(--ink-muted); }
.fld.sel .u { display: none; }
#data { width: 100%; height: 280px; padding: 14px; margin-top: 6px; background: #fff; border: 1px solid var(--line-strong); border-radius: 2px; font: 400 13px/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--ink); resize: vertical; display: block; }
#data:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
#data.drag { border-color: var(--ink); background: var(--surface-tint); }
#data::placeholder { color: #b9adbe; }
.fam { padding: 4px 0 18px; }
.fam + .fam { border-top: 1px solid var(--line); padding-top: 18px; }
.fam h3 { font: 500 12px/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mauve); margin: 0 0 4px; }
.fam .kv > div { padding: 12px 0; }
.fam .kv dt { color: var(--ink-muted); letter-spacing: .08em; font-size: 11px; }
.fam .kv dd { font-size: 24px; }
.fam .kv dd .bd { display: block; font: 400 12px/1.4 var(--font-sans); color: var(--ink-subtle); margin-top: 6px; }
.fam .kv dd .bd i { font-style: normal; letter-spacing: .06em; margin-right: 6px; }
.fam .kv dd small { font-size: 12px; }
.plots { display: grid; gap: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.plot h4 { font: 500 12px/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mauve); margin: 0 0 8px; }
.plot svg { width: 100%; height: auto; display: block; overflow: visible; }
.plot .cap { font: 400 12px/1.5 var(--font-sans); color: var(--ink-subtle); margin-top: 4px; }
.pl-ax { stroke: var(--line-strong); stroke-width: 1; }
.pl-tx { font: 400 11px var(--font-sans); fill: var(--ink-subtle); }
.pl-tx.b { fill: var(--ink); font-weight: 500; }
.pl-b1 { fill: var(--mauve); opacity: .16; } .pl-b2 { fill: var(--mauve); opacity: .34; } .pl-b3 { fill: var(--mauve); opacity: .62; }
.pl-md { stroke: var(--ink); stroke-width: 2; }
.pl-cv { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.pl-ar { fill: var(--mauve); opacity: .18; }
.notes { margin-top: 14px; font: 400 13px/1.5 var(--font-sans); color: var(--ink-subtle); }
.tbl tbody tr.clk { cursor: pointer; }
.tbl tbody tr.clk:hover td { background: var(--surface-tint); }
.tbl th:nth-child(5), .tbl td:nth-child(5) { text-align: left; }
.back { margin-bottom: 14px; }
.tbl-wrap { max-height: 560px; }
@media (max-width: 960px) { .app-grid { grid-template-columns: 1fr; } .app { padding: 32px 16px 56px; } }
.fam .kv dt { text-transform: none; letter-spacing: .01em; font: 500 13px/1.3 var(--font-sans); color: var(--ink-muted); }
.tbl th { text-transform: none; letter-spacing: .02em; font-size: 12px; }

/* ---- journal layout ---- */
.app .panel-head { justify-content: flex-end; }
.doclinks { margin-left: auto; display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.doclink { margin-left: 0; background: none; border: 0; padding: 0; font: 400 13px/1 var(--font-sans); letter-spacing: .04em; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.doclink:hover { color: var(--ink); }
.doclink:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.cap1 { font: 400 15px/22px var(--font-serif); color: var(--ink-muted); margin: 10px 0 0; }
.cap1 b { font-weight: 600; color: var(--ink); }
.t1-wrap { overflow-x: auto; margin-top: 8px; }
.t1 { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.t1 th { padding: 10px 14px; text-align: right; border-bottom: 1.5px solid var(--ink); font: 500 12px/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-subtle); white-space: nowrap; }
.t1 th:first-child, .t1 td:first-child { text-align: left; padding-left: 0; }
.t1 th:last-child, .t1 td:last-child { padding-right: 0; }
.t1 th.l, .t1 td.l { text-align: left; }
.t1 td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--line); font: 400 16px/1.3 var(--font-serif); color: var(--ink-muted); white-space: nowrap; }
.t1 tr.sep td { border-bottom-color: var(--line-strong); }
.t1 tr:last-child td { border-bottom: 0; }
.t1 td:first-child { font-size: 17px; color: var(--ink); white-space: normal; }
.t1 td.v { font-size: 19px; font-weight: 500; color: var(--ink); }
.t1 td.u { font: 400 14px var(--font-sans); color: var(--ink-subtle); }
.figs { margin-top: 44px; display: flex; flex-direction: column; gap: 40px; }
.figs svg { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--font-sans); }

.foot-brand .foot-logo { height: 58px; width: auto; }
.foot-inner { padding-top: 16px; padding-bottom: 16px; }
.foot-brand .foot-logo { height: 38px; }
.toggle { display: inline-flex; gap: 22px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: none; }
.toggle button { border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--ink-muted); font: 400 14px/20px var(--font-sans); padding: 6px 0; border-radius: 0; cursor: pointer; transition: color .15s, border-color .15s; }
.toggle button:hover { color: var(--ink); }
.toggle button[aria-pressed="true"] { background: none; color: var(--primary); font-weight: 500; border-bottom-color: var(--primary); }

.panel-foot { flex-wrap: wrap; justify-content: flex-start; }
.panel-foot .doclinks { margin-left: auto; }

.app-col { min-width: 0; }
.doclinks.out { display: flex; gap: 22px; flex-wrap: wrap; margin: 14px 2px 0; }
.doclinks.out { margin-left: 2px; justify-content: flex-start; }
@media (max-width: 860px) {
  .t1 thead { display: none; }
  .t1, .t1 tbody { display: block; }
  .t1 tr { display: grid; grid-template-columns: minmax(0,1fr) auto auto; column-gap: 6px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .t1 tr:last-child { border-bottom: 0; }
  .t1 td { display: block; padding: 0; border: 0; white-space: normal; text-align: left; }
  .t1 td:first-child { font-size: 16px; line-height: 1.25; }
  .t1 td.v { text-align: right; white-space: nowrap; }
  .t1 td.u { min-width: 0; white-space: nowrap; }
  .t1 td:nth-child(4), .t1 td:nth-child(5) { grid-row: 2; font-size: 13px; color: var(--ink-subtle); margin-top: 3px; text-align: left; }
  .t1 td:nth-child(4) { grid-column: 1; }
  .t1 td:nth-child(5) { grid-column: 2 / 4; text-align: right; }
  .t1 td:nth-child(4)::before { content: "Q10 "; } .t1 td:nth-child(5)::before { content: "Q90 "; }
  .t1 td:nth-child(4):empty, .t1 td:nth-child(5):empty { display: none; }
}
@media (max-width: 860px) {
  .panel-head { padding: 10px 16px; min-height: 48px; }
  .panel-body { padding: 16px; }
  .figs { margin-top: 28px; gap: 28px; }
  .figs > * { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .figs svg { min-width: 500px; }
  .fld input, .fld select { font-size: 18px; }
  .doclinks { padding: 12px 16px 16px; }
}

.stamp { margin: 0; padding: 0 24px 16px; font: 400 12px/1.3 var(--font-sans); letter-spacing: .04em; color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .stamp { padding: 0 16px 16px; } }
