/* Hachi component styles. Plain CSS, no build step, no JavaScript.
   Every colour, space and radius is a token from tokens.css; nothing here declares a value twice.
   Responsive rules are container queries on .h-app, so a component adapts to the column it is in. */

/* ---------- base ---------- */
.h-app { container-type: inline-size; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-variant-numeric: tabular-nums lining-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.h-app *, .h-app *::before, .h-app *::after { box-sizing: border-box; }
.h-app :where(h1,h2,h3,h4,p,ul,ol,dl,dd,figure,blockquote) { margin: 0; padding: 0; }
.h-app :where(ul,ol) { list-style: none; }
.h-app :where(a) { color: inherit; }
.h-app :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible, .h-focus { outline: var(--focus-width) solid var(--focus); outline-offset: 2px; }
.h-app :where(a,button,input,select,textarea) { transition: background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); }
@media (prefers-reduced-motion: reduce) { .h-app *, .h-app *::before, .h-app *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; } }
.h-wrap { max-width: calc(var(--container) + 2 * var(--space-7)); margin: 0 auto; padding: 0 var(--space-4); }
@container (min-width: 700px) { .h-wrap { padding: 0 var(--space-6); } }
@container (min-width: 1100px) { .h-wrap { padding: 0 var(--space-7); } }
.h-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
@container (min-width: 700px) { .h-grid { grid-template-columns: repeat(8, 1fr); gap: var(--space-5); } }
@container (min-width: 1100px) { .h-grid { gap: var(--space-6); } }
.h-rule { border: 0; border-top: var(--hairline-width) solid var(--hairline); margin: 0; }
.h-rule--heavy { border-top: var(--rule-width) solid var(--ink); }
.h-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.h-link:hover { text-decoration-thickness: 2px; }
.h-label { font: 600 12px/16px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.h-fig { font-family: var(--font-mono); font-weight: 500; font-size: 14px; }
.h-muted { color: var(--ink-muted); }
.h-prose { font: 400 18px/29px var(--font-serif); max-width: var(--measure); }
.h-prose p + p { margin-top: var(--space-4); }
.h-prose sup, .h-cite { font: 500 11px/1 var(--font-mono); vertical-align: super; color: var(--accent); }
.h-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- signature: probability ---------- */
/* One bar. Left part solid = it holds; right part hatched = it doesn't. Both are ink; neither is "empty". */
.h-odds { --p: 50; color: var(--ink); }
.h-odds__bar { display: flex; height: 10px; border: 1px solid currentColor; background: var(--surface-1); }
.h-odds__fill { width: calc(var(--p) * 1%); background: currentColor; }
.h-odds__rest { flex: 1; background-image: repeating-linear-gradient(-45deg, currentColor 0 1px, transparent 1px 4px); border-left: 1px solid currentColor; }
.h-odds__num { font: 500 14px/20px var(--font-mono); }
.h-odds--inline { display: inline-flex; align-items: center; gap: 6px; vertical-align: baseline; white-space: nowrap; }
.h-odds--inline .h-odds__bar { width: 40px; height: 8px; }
.h-odds--card .h-odds__top, .h-odds--card .h-odds__legend { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
.h-odds--card .h-odds__num { font-size: 22px; line-height: 28px; }
.h-odds--card .h-odds__words { font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }
.h-odds--card .h-odds__bar { margin: 6px 0; }
.h-odds__legend { font: 400 12px/16px var(--font-mono); color: var(--ink-muted); }
.h-odds--large { display: grid; gap: var(--space-4); max-width: 420px; }
.h-odds--large .h-odds__num { font: 600 56px/56px var(--font-serif); letter-spacing: -0.01em; }
.h-odds--large .h-odds__words { font: 400 18px/26px var(--font-serif); }
.h-odds--large .h-odds__bar { height: 16px; }
.h-odds--large .h-odds__legend { display: flex; justify-content: space-between; font-size: 14px; line-height: 20px; }
.h-odds__cells { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; width: 187px; }
.h-odds__cells i { aspect-ratio: 1; border: 1px solid currentColor; background-image: repeating-linear-gradient(-45deg, currentColor 0 1px, transparent 1px 4px); }
.h-odds__cells i.on { background: currentColor; }
.h-odds__caption { font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }

/* ---------- signature: verdict ---------- */
.h-mark { width: 12px; height: 12px; flex: none; fill: currentColor; stroke: currentColor; display: inline-block; vertical-align: -1px; }
.h-verdict { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: var(--radius-sm); font: 600 12px/16px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; border: 1px solid currentColor; }
.h-verdict--held { color: var(--held); background: var(--held-soft); }
.h-verdict--missed { color: var(--missed); background: var(--missed-soft); }
.h-verdict--inconclusive { color: var(--inconclusive); background: var(--inconclusive-soft); }
.h-verdict--open { color: var(--open); background: transparent; border-style: dashed; }
.h-verdict--lg { font-size: 16px; line-height: 20px; padding: 8px 14px; gap: 10px; }
.h-verdict--lg .h-mark { width: 18px; height: 18px; }
.h-c-held { color: var(--held); } .h-c-missed { color: var(--missed); } .h-c-inconclusive { color: var(--inconclusive); } .h-c-open { color: var(--open); }
.h-bynumber { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/16px var(--font-mono); color: var(--ink-muted); white-space: nowrap; }
.h-bynumber .h-mark { width: 14px; }

/* ---------- signature: date pair ---------- */
.h-dates { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font: 500 14px/20px var(--font-mono); }
.h-dates__k { font: 400 12px/20px var(--font-sans); color: var(--ink-muted); margin-right: 5px; }
.h-dates__arrow { flex: none; width: 22px; height: 1px; background: var(--line-strong); position: relative; align-self: center; }
.h-dates__arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); transform: rotate(45deg); }
.h-dates__rel { font-weight: 400; font-size: 12px; color: var(--ink-muted); border: 1px dashed var(--line-strong); padding: 0 6px; border-radius: var(--radius-sm); }
.h-dates__rel--soon { color: var(--ink); border-style: solid; border-color: var(--ink); }
.h-dates--checked .h-dates__arrow { background: var(--ink); } .h-dates--checked .h-dates__arrow::after { border-color: var(--ink); }
.h-dates--stack { flex-direction: column; gap: 0; } .h-dates--stack .h-dates__arrow { display: none; }

/* ---------- signature: horizon ---------- */
.h-horizon { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/16px var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.h-horizon__scale { display: inline-flex; gap: 2px; align-items: flex-end; }
.h-horizon__scale i { width: 4px; border: 1px solid var(--ink); height: 4px; }
.h-horizon__scale i:nth-child(2) { height: 6px; } .h-horizon__scale i:nth-child(3) { height: 8px; } .h-horizon__scale i:nth-child(4) { height: 10px; } .h-horizon__scale i:nth-child(5) { height: 12px; }
.h-horizon[data-h="1"] i:nth-child(1), .h-horizon[data-h="2"] i:nth-child(2), .h-horizon[data-h="3"] i:nth-child(3), .h-horizon[data-h="4"] i:nth-child(4), .h-horizon[data-h="5"] i:nth-child(5) { background: var(--ink); }

/* ---------- signature: the eight streams ---------- */
.h-streams { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font: 400 12px/16px var(--font-mono); letter-spacing: 0.04em; color: var(--ink-muted); }
.h-streams__cells { display: inline-grid; grid-template-columns: repeat(8, 7px); gap: 2px; }
.h-streams__cells i { height: 7px; border: 1px solid var(--line-strong); }
.h-streams__cells i.on { background: var(--ink); border-color: var(--ink); }
.h-streams--list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--hairline); border-left: 1px solid var(--hairline); max-width: 420px; }
.h-streams--list li { padding: 8px 10px; border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 2px; color: var(--ink-muted); }
.h-streams--list li b { font-weight: 500; }
.h-streams--list li span { font: 400 12px/16px var(--font-sans); letter-spacing: 0; }
.h-streams--list li.on { color: var(--ink); background: var(--surface-1); box-shadow: inset 0 3px 0 var(--ink); }
.h-streams--list li:not(.on) span { text-decoration: line-through; text-decoration-color: var(--line-strong); }

/* ---------- call card ---------- */
.h-cards { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@container (min-width: 700px) { .h-cards { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); } }
@container (min-width: 1100px) { .h-cards { grid-template-columns: repeat(4, 1fr); } .h-cards--5 { grid-template-columns: repeat(5, 1fr); gap: var(--space-4); } }
.h-card { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); background: var(--surface-1); border: 1px solid var(--hairline); border-top: var(--rule-width) solid var(--ink); border-radius: var(--radius-none); min-width: 0; }
@container (min-width: 700px) { .h-card { padding: var(--space-5) var(--space-4); } }
.h-card__meta { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.h-card__place { font: 600 12px/16px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.h-card__title { font: 600 20px/26px var(--font-serif); text-wrap: balance; }
.h-card__title a { text-decoration: none; }
.h-card__title a::after { content: ""; position: absolute; inset: 0; }
.h-card:hover, .h-card.is-hover { border-color: var(--line-strong); border-top-color: var(--ink); background: var(--paper); }
.h-card:hover .h-card__title a, .h-card.is-hover .h-card__title a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.h-card:has(a:focus-visible), .h-card.is-focus { outline: var(--focus-width) solid var(--focus); outline-offset: 2px; }
.h-card:has(a:focus-visible) a { outline: none; }
.h-card__thesis { font: 400 16px/25px var(--font-serif); }
.h-card__ready { font: 400 14px/20px var(--font-sans); padding-top: var(--space-3); border-top: 1px solid var(--hairline); }
.h-card__ready b { display: block; font: 600 12px/16px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 2px; }
.h-card__foot { margin-top: auto; display: grid; gap: var(--space-3); padding-top: var(--space-3); }
.h-card__status { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.h-card.is-disabled { opacity: 1; color: var(--ink-muted); border-top-color: var(--line-strong); background: transparent; }
.h-card.is-disabled .h-odds { color: var(--ink-muted); }
.h-skel { display: block; background: var(--surface-2); height: 14px; }
.h-skel--title { height: 22px; } .h-skel--w60 { width: 60%; } .h-skel--w80 { width: 80%; } .h-skel--w40 { width: 40%; }
.h-empty { border: 1px dashed var(--line-strong); padding: var(--space-6) var(--space-5); text-align: left; }
.h-empty__title { font: 600 20px/26px var(--font-serif); margin-bottom: var(--space-2); }
.h-empty p { color: var(--ink-muted); max-width: var(--measure-narrow); margin-bottom: var(--space-4); }

/* ---------- call page blocks ---------- */
.h-parts { border-top: var(--rule-width) solid var(--ink); }
.h-part { display: grid; gap: var(--space-2); padding: var(--space-5) 0; border-bottom: 1px solid var(--hairline); }
@container (min-width: 700px) { .h-part { grid-template-columns: 176px minmax(0, 1fr); gap: var(--space-6); } }
.h-part__k { font: 600 12px/16px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); padding-top: 7px; }
.h-part__k span { font-family: var(--font-mono); font-weight: 400; margin-right: 6px; }
.h-wrong { border: 1px solid var(--ink); padding: var(--space-5); background: var(--surface-1); position: relative; }
.h-wrong::before { content: ""; position: absolute; inset: 3px; border: 1px solid var(--hairline); pointer-events: none; }
.h-wrong > * { position: relative; }
.h-wrong__k { margin-bottom: var(--space-2); color: var(--ink); }
.h-wrong ul { margin-top: var(--space-3); display: grid; gap: var(--space-2); font: 400 16px/25px var(--font-serif); }
.h-wrong li { padding-left: 22px; position: relative; }
.h-wrong li::before { content: "×"; position: absolute; left: 2px; font-family: var(--font-mono); }
.h-ruling { border-top: 4px double currentColor; border-bottom: 1px solid currentColor; padding: var(--space-5) 0; }
.h-ruling > * { color: var(--ink); }
.h-ruling__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-bottom: var(--space-4); }
.h-ruling__title { font: 600 30px/36px var(--font-serif); margin-bottom: var(--space-3); text-wrap: balance; }
.h-ruling__cols { display: grid; gap: var(--space-4); margin: var(--space-5) 0; }
@container (min-width: 700px) { .h-ruling__cols { grid-template-columns: 1fr 1fr; gap: 0; } .h-ruling__cols > div + div { border-left: 1px solid var(--hairline); padding-left: var(--space-5); } .h-ruling__cols > div:first-child { padding-right: var(--space-5); } }
.h-ruling__cols dt { margin-bottom: 4px; }
.h-ruling__cols dd { font: 600 20px/26px var(--font-serif); }
.h-ruling__cols dd small { display: block; font: 400 14px/20px var(--font-sans); color: var(--ink-muted); margin-top: 4px; }
.h-evidence { display: grid; gap: var(--space-5); }
@container (min-width: 700px) { .h-evidence { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
.h-evidence__h { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: var(--space-2); border-bottom: var(--rule-width) solid var(--ink); font: 600 12px/16px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; }
.h-evidence__h span { font: 400 12px/16px var(--font-mono); color: var(--ink-muted); letter-spacing: 0; }
.h-evidence li { padding: var(--space-3) 0; border-bottom: 1px solid var(--hairline); display: grid; grid-template-columns: 20px 1fr; gap: 0 var(--space-2); }
.h-evidence li > i { font: 500 16px/24px var(--font-mono); font-style: normal; }
.h-evidence li a { font: 400 16px/24px var(--font-serif); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.h-evidence li a:hover { text-decoration-color: var(--ink); }
.h-evidence li small { grid-column: 2; font: 400 12px/18px var(--font-mono); color: var(--ink-muted); }

/* ---------- reader note ---------- */
.h-note { padding: var(--space-4) 0; border-top: 1px solid var(--hairline); display: grid; gap: var(--space-2); max-width: var(--measure); }
.h-note__head { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; font: 400 14px/20px var(--font-sans); }
.h-note__head b { font-weight: 600; }
.h-note__head time { font: 400 12px/16px var(--font-mono); color: var(--ink-muted); }
.h-note p { font: 400 16px/25px var(--font-serif); }
.h-stance { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/16px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px 2px 4px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.h-stance i { font: 500 12px/14px var(--font-mono); font-style: normal; width: 14px; height: 14px; text-align: center; background: var(--ink); color: var(--surface-1); }
.h-stance--against i { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.h-stance--context i { background: var(--surface-2); color: var(--ink); }

/* ---------- stat block ---------- */
.h-stats { display: grid; grid-template-columns: 1fr; border-top: var(--rule-width) solid var(--ink); }
@container (min-width: 700px) { .h-stats { grid-template-columns: repeat(3, 1fr); } .h-stats .h-stat + .h-stat { border-left: 1px solid var(--hairline); padding-left: var(--space-5); } .h-stats .h-stat { border-bottom: 0; } }
.h-stat { padding: var(--space-4) var(--space-4) var(--space-4) 0; border-bottom: 1px solid var(--hairline); }
.h-stat__n { font: 600 40px/40px var(--font-serif); letter-spacing: -0.01em; }
@container (min-width: 700px) { .h-stat__n { font-size: 56px; line-height: 56px; } }
.h-stat__n sup { font: 500 12px/1 var(--font-mono); vertical-align: top; margin-left: 2px; color: var(--ink-muted); position: relative; top: 6px; }
.h-stat__l { font: 400 16px/24px var(--font-sans); margin-top: var(--space-2); }
.h-footnote { font: 400 12px/18px var(--font-sans); color: var(--ink-muted); margin-top: var(--space-3); max-width: var(--measure); }
.h-footnote sup, .h-footnote b { font: 500 11px/1 var(--font-mono); margin-right: 4px; }

/* ---------- buttons ---------- */
.h-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--control-height); padding: 10px 18px; font: 500 16px/24px var(--font-sans); border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; background: transparent; color: var(--ink); }
.h-btn--primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.h-btn--primary:hover, .h-btn--primary.is-hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.h-btn--secondary { border-color: var(--line-strong); background: var(--surface-1); }
.h-btn--secondary:hover, .h-btn--secondary.is-hover { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.h-btn--quiet { padding-left: 4px; padding-right: 4px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.h-btn--quiet:hover, .h-btn--quiet.is-hover { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }
.h-btn:disabled, .h-btn.is-disabled { background: var(--surface-2); border-color: var(--hairline); color: var(--ink-muted); cursor: not-allowed; text-decoration: none; box-shadow: none; }
.h-btn--sm { min-height: 32px; padding: 3px 12px; font-size: 14px; line-height: 20px; }
.h-btn--block { width: 100%; }

/* ---------- fields ---------- */
.h-field { display: grid; gap: 6px; min-width: 0; }
.h-field__label { font: 500 14px/20px var(--font-sans); }
.h-field__hint { font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }
.h-field__error { font: 500 14px/20px var(--font-sans); color: var(--error); }
.h-input, .h-textarea, .h-select { width: 100%; min-height: var(--control-height); padding: 9px 12px; font: 400 16px/24px var(--font-sans); color: var(--ink); background: var(--surface-1); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); appearance: none; }
.h-textarea { min-height: 112px; resize: vertical; display: block; }
.h-input::placeholder, .h-textarea::placeholder { color: var(--ink-muted); opacity: 1; }
.h-input:hover, .h-textarea:hover, .h-select:hover, .h-input.is-hover { border-color: var(--ink); }
.h-input:disabled, .h-textarea:disabled, .h-select:disabled { background: var(--surface-2); color: var(--ink-muted); border-color: var(--hairline); cursor: not-allowed; }
.h-input[aria-invalid="true"], .h-textarea[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.h-selectwrap { position: relative; }
.h-selectwrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.h-select { padding-right: 40px; }
.h-search { display: flex; }
.h-search .h-input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: 0; }
.h-search .h-btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.h-inlineform { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.h-inlineform .h-input { flex: 1 1 220px; }

/* ---------- chips ---------- */
.h-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); border: 0; padding: 0; margin: 0; min-width: 0; }
.h-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 5px 14px; font: 500 14px/20px var(--font-sans); border: 1px solid var(--line-strong); border-radius: var(--radius-full); background: var(--surface-1); color: var(--ink); cursor: pointer; white-space: nowrap; }
.h-chip::after { content: ""; position: absolute; inset: -4px 0; }
.h-chip:hover, .h-chip.is-hover { border-color: var(--ink); }
.h-chip__count { font: 400 12px/16px var(--font-mono); color: var(--ink-muted); }
.h-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.h-chip[aria-pressed="true"], .h-chip:has(input:checked), .h-chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.h-chip[aria-pressed="true"] .h-chip__count, .h-chip.is-on .h-chip__count, .h-chip:has(input:checked) .h-chip__count { color: inherit; }
.h-chip[aria-pressed="true"]::before, .h-chip:has(input:checked)::before, .h-chip.is-on::before { content: ""; width: 9px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px); }
.h-chip:has(input:focus-visible) { outline: var(--focus-width) solid var(--focus); outline-offset: 2px; }
.h-chip:disabled, .h-chip.is-disabled { background: var(--surface-2); color: var(--ink-muted); border-color: var(--hairline); cursor: not-allowed; }

/* ---------- tabs, pagination ---------- */
.h-tabs { display: flex; gap: var(--space-5); border-bottom: 1px solid var(--hairline); overflow-x: auto; }
.h-tab { padding: 10px 0; min-height: var(--target-min); font: 500 16px/24px var(--font-sans); color: var(--ink-muted); text-decoration: none; border: 0; border-bottom: var(--rule-width) solid transparent; background: none; cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.h-tab:hover, .h-tab.is-hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.h-tab[aria-selected="true"], .h-tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.h-tab:disabled { color: var(--ink-muted); text-decoration: line-through; cursor: not-allowed; border-bottom-color: transparent; }
.h-pager { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font: 500 14px/20px var(--font-mono); }
.h-pager a, .h-pager span { min-width: var(--target-min); min-height: var(--target-min); display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; text-decoration: none; border: 1px solid transparent; border-radius: var(--radius-sm); }
.h-pager a { border-color: var(--hairline); background: var(--surface-1); }
.h-pager a:hover, .h-pager a.is-hover { border-color: var(--ink); }
.h-pager [aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.h-pager .is-disabled { color: var(--ink-muted); border-color: var(--hairline); background: var(--surface-2); }
.h-pager__sum { margin-left: auto; font-weight: 400; color: var(--ink-muted); border: 0 !important; }

/* ---------- message, tooltip, modal ---------- */
.h-msg { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid currentColor; border-radius: var(--radius-sm); background: var(--surface-1); font: 400 16px/24px var(--font-sans); }
.h-msg > * { color: var(--ink); }
.h-msg__k { font: 600 12px/24px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: inherit; display: inline-flex; gap: 6px; align-items: center; }
.h-msg--success { color: var(--success); } .h-msg--error { color: var(--error); } .h-msg--info { color: var(--info); }
.h-msg--success .h-msg__k, .h-msg--error .h-msg__k, .h-msg--info .h-msg__k { color: inherit; }
.h-tip { position: relative; display: inline-block; }
.h-tip__trigger { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: help; text-decoration: underline dotted var(--line-strong); text-underline-offset: 3px; }
.h-tip__body { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: var(--z-tooltip); width: max-content; max-width: 280px; padding: var(--space-2) var(--space-3); background: var(--ink); color: var(--paper); font: 400 14px/20px var(--font-sans); border-radius: var(--radius-sm); box-shadow: var(--shadow-float); opacity: 0; visibility: hidden; transition: opacity var(--duration-base) var(--ease-standard); }
.h-tip:hover .h-tip__body, .h-tip:focus-within .h-tip__body, .h-tip.is-open .h-tip__body { opacity: 1; visibility: visible; }
.h-scrim { background: rgba(21, 22, 20, 0.55); padding: var(--space-5); display: grid; place-items: center; }
.h-modal { width: min(520px, 100%); background: var(--surface-1); color: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius-sm); box-shadow: var(--shadow-float); padding: var(--space-5); display: grid; gap: var(--space-4); }
.h-modal__title { font: 600 20px/26px var(--font-serif); }
.h-modal__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; }

/* ---------- forms ---------- */
.h-form { display: grid; gap: var(--space-4); }
.h-form__row { display: grid; gap: var(--space-4); }
@container (min-width: 700px) { .h-form__row { grid-template-columns: 1fr 1fr; } }
.h-form__note { font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }

/* ---------- navigation ---------- */
.h-header { border-bottom: var(--rule-width) solid var(--ink); background: var(--paper); }
.h-header__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 64px; }
.h-header__date { font: 400 12px/16px var(--font-mono); color: var(--ink-muted); display: none; }
.h-nav { display: none; gap: var(--space-5); font: 500 16px/24px var(--font-sans); }
.h-nav a { text-decoration: none; padding: 20px 0 18px; border-bottom: var(--rule-width) solid transparent; margin-bottom: -2px; }
.h-nav a:hover, .h-nav a.is-hover { border-bottom-color: var(--line-strong); }
.h-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.h-header__menu { display: inline-flex; }
@container (min-width: 900px) { .h-nav { display: flex; } .h-header__menu { display: none; } .h-header__date { display: block; } }
.h-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 28px/32px var(--font-serif); letter-spacing: -0.01em; }
.h-logo__mark { display: grid; grid-template-columns: repeat(3, 5px); gap: 2.5px; }
.h-logo__mark i { width: 5px; height: 5px; background: currentColor; }
.h-logo__mark i:nth-child(5) { background: transparent; }
.h-logo__by { font: 400 12px/16px var(--font-sans); letter-spacing: 0; color: var(--ink-muted); align-self: flex-end; padding-bottom: 4px; }
.h-crumb { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; font: 500 14px/20px var(--font-sans); min-height: var(--target-min); }
.h-crumb a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; padding: 12px 0; }
.h-crumb a:hover { text-decoration-color: var(--ink); }
.h-crumb span { color: var(--ink-muted); }
.h-footer { border-top: var(--rule-width) solid var(--ink); padding: var(--space-6) 0 var(--space-7); font: 400 14px/22px var(--font-sans); }
.h-footer__grid { display: grid; gap: var(--space-5); }
@container (min-width: 700px) { .h-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-6); } }
.h-footer h3 { font: 600 12px/16px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-2); }
.h-footer li a { display: inline-block; padding: 4px 0; text-decoration: none; }
.h-footer li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.h-footer__base { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--hairline); color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); justify-content: space-between; font: 400 12px/18px var(--font-mono); }

/* ---------- table ---------- */
.h-tablewrap { overflow-x: auto; border-top: var(--rule-width) solid var(--ink); }
.h-table { width: 100%; border-collapse: collapse; font: 400 14px/20px var(--font-sans); }
.h-table th { font: 600 12px/16px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); text-align: left; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.h-table th[aria-sort] { color: var(--ink); }
.h-table th[aria-sort]::after { content: " ↓"; font-family: var(--font-mono); }
.h-table td { padding: 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.h-table td.num, .h-table th.num { text-align: right; }
.h-table td.fig { font: 500 13px/20px var(--font-mono); white-space: nowrap; }
.h-table td.call { font: 600 16px/22px var(--font-serif); min-width: 260px; }
.h-table td.call a { text-decoration: none; }
.h-table td.call small { display: block; font: 400 12px/18px var(--font-sans); color: var(--ink-muted); margin-top: 2px; }
.h-table tbody tr:hover, .h-table tr.is-hover { background: var(--surface-1); }
.h-table tbody tr:hover td.call a, .h-table tr.is-hover td.call a { text-decoration: underline; text-underline-offset: 3px; }
.h-table tr.is-selected { background: var(--accent-soft); }
.h-table--compact td { padding: 5px 10px; vertical-align: middle; }
.h-table--compact th { padding: 6px 10px; }
.h-table--compact td.call { font: 500 14px/20px var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.h-table--compact .h-verdict { padding: 0 6px; border: 0; background: none; }

/* ---------- charts (inline SVG) ---------- */
.h-chart { display: block; width: 100%; height: auto; font-family: var(--font-mono); overflow: visible; }
.h-chart text { fill: var(--ink-muted); font-size: 11px; }
.h-chart .t-ink { fill: var(--ink); } .h-chart .t-sans { font-family: var(--font-sans); font-size: 12px; } .h-chart .t-b { font-weight: 600; } .h-chart .t-lg { font-size: 13px; }
.h-chart .grid { stroke: var(--grid); stroke-width: 1; fill: none; }
.h-chart .axis { stroke: var(--line-strong); stroke-width: 1; fill: none; }
.h-chart .threshold { stroke: var(--threshold); stroke-width: 1.5; stroke-dasharray: 6 4; fill: none; }
.h-chart .checkline { stroke: var(--ink); stroke-width: 1; fill: none; }
.h-chart .future { fill: var(--surface-2); }
.h-chart .series { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.h-chart .ref { stroke-dasharray: 2 3; }
.h-chart .s1 { stroke: var(--chart-1); } .h-chart .s2 { stroke: var(--chart-2); } .h-chart .s3 { stroke: var(--chart-3); } .h-chart .s4 { stroke: var(--chart-4); } .h-chart .s5 { stroke: var(--chart-5); } .h-chart .s6 { stroke: var(--chart-6); } .h-chart .sink { stroke: var(--ink); }
.h-chart .f1 { fill: var(--chart-1); } .h-chart .f2 { fill: var(--chart-2); } .h-chart .f3 { fill: var(--chart-3); } .h-chart .f4 { fill: var(--chart-4); } .h-chart .f5 { fill: var(--chart-5); } .h-chart .f6 { fill: var(--chart-6); } .h-chart .fink { fill: var(--ink); } .h-chart .fpaper { fill: var(--paper); }
.h-chart .r1 { fill: var(--ramp-1); } .h-chart .r2 { fill: var(--ramp-2); } .h-chart .r3 { fill: var(--ramp-3); } .h-chart .r4 { fill: var(--ramp-4); } .h-chart .r5 { fill: var(--ramp-5); }
.h-chart .v-held { fill: var(--held); stroke: var(--held); } .h-chart .v-missed { fill: none; stroke: var(--missed); stroke-width: 2; } .h-chart .v-inconclusive { fill: var(--inconclusive); stroke: var(--inconclusive); } .h-chart .v-open { fill: none; stroke: var(--open); stroke-width: 1.5; }
.h-chart .t-held { fill: var(--held); } .h-chart .t-missed { fill: var(--missed); } .h-chart .t-inconclusive { fill: var(--inconclusive); }
.h-chart .annot { stroke: var(--ink); stroke-width: 1; fill: none; }
.h-chart .dot { stroke: var(--paper); stroke-width: 2; }
.h-chart .band { fill: var(--surface-2); }
.h-chart .hatch { stroke: var(--line-strong); stroke-width: 1; }
.h-figure { display: grid; gap: var(--space-3); }
.h-figure__title { font: 600 20px/26px var(--font-serif); }
.h-figure__sub { font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }
.h-figure__src { font: 400 12px/18px var(--font-mono); color: var(--ink-muted); border-top: 1px solid var(--hairline); padding-top: var(--space-2); }
.h-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font: 400 12px/16px var(--font-sans); color: var(--ink); }
.h-legend li { display: inline-flex; align-items: center; gap: 6px; }
.h-legend i { width: 16px; height: 0; border-top: 2px solid; }
.h-legend i.dash { border-top-style: dashed; } .h-legend i.dot { border-top-style: dotted; }
.h-legend i.sq { height: 10px; width: 10px; border: 0; }
.h-strip { display: flex; flex-wrap: wrap; gap: 3px; }
.h-strip i { width: 12px; height: 12px; display: block; }
.h-strip .held { background: var(--held); }
.h-strip .missed { box-shadow: inset 0 0 0 2px var(--missed); background: linear-gradient(45deg, transparent 43%, var(--missed) 43% 57%, transparent 57%); }
.h-strip .inconclusive { background: linear-gradient(90deg, var(--inconclusive) 50%, transparent 50%); box-shadow: inset 0 0 0 1px var(--inconclusive); }
.h-strip .open { box-shadow: inset 0 0 0 1px var(--open); }

/* ---------- page furniture used by the applications ---------- */
.h-section { padding: var(--space-7) 0; }
@container (min-width: 1100px) { .h-section { padding: var(--space-8) 0; } }
.h-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2) var(--space-4); padding-bottom: var(--space-3); margin-bottom: var(--space-5); border-bottom: 1px solid var(--hairline); }
.h-h1 { font: 600 36px/40px var(--font-serif); letter-spacing: -0.005em; text-wrap: balance; }
@container (min-width: 900px) { .h-h1 { font-size: 56px; line-height: 60px; letter-spacing: -0.01em; } }
.h-h2 { font: 600 26px/32px var(--font-serif); text-wrap: balance; }
@container (min-width: 900px) { .h-h2 { font-size: 30px; line-height: 36px; } }
.h-h3 { font: 600 20px/26px var(--font-serif); }
.h-lede { font: 400 18px/29px var(--font-serif); max-width: var(--measure-narrow); }
.h-steps { display: grid; gap: 0; counter-reset: s; border-top: var(--rule-width) solid var(--ink); }
@container (min-width: 900px) { .h-steps { grid-template-columns: repeat(3, 1fr); } .h-steps li + li { border-left: 1px solid var(--hairline); padding-left: var(--space-5); } }
.h-steps li { counter-increment: s; padding: var(--space-4) var(--space-5) var(--space-5) 0; border-bottom: 1px solid var(--hairline); }
.h-steps li::before { content: counter(s) " / 3"; font: 400 12px/16px var(--font-mono); color: var(--ink-muted); display: block; margin-bottom: var(--space-2); }
.h-steps p { margin-top: var(--space-2); color: var(--ink-muted); max-width: var(--measure-narrow); }
.h-quote { font: 400 22px/32px var(--font-serif); font-style: italic; border-left: 0; padding: 0; }
.h-quote footer { font: 400 14px/20px var(--font-sans); font-style: normal; color: var(--ink-muted); margin-top: var(--space-3); }
.h-split { display: grid; gap: var(--space-6); }
@container (min-width: 900px) { .h-split { grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; } .h-split--side { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-7); } .h-split--filters { grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-6); } }
.h-stack { display: grid; gap: var(--space-4); align-content: start; min-width: 0; }
.h-stack--lg { gap: var(--space-6); } .h-stack--sm { gap: var(--space-2); }
.h-row { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); align-items: center; }
.h-panel { background: var(--surface-1); border: 1px solid var(--hairline); padding: var(--space-5); }
.h-device { border: 1px solid var(--line-strong); overflow: hidden; }
.h-card .h-dates__arrow { display: none; }
.h-card .h-dates { gap: 0 14px; }
@container (min-width: 900px) { .h-split--side > .h-aside { order: 2; } }
.h-aside { display: grid; gap: var(--space-5); align-content: start; }
.h-kicker { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; }

/* ---------- print: A4 report sheet ---------- */
.h-sheet { container-type: inline-size; width: 794px; height: 1123px; padding: 72px 72px 64px; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; position: relative; overflow: hidden; font-family: var(--font-sans); }
.h-sheet__run { display: flex; justify-content: space-between; font: 400 11px/16px var(--font-mono); color: var(--ink-muted); padding-bottom: 10px; border-bottom: 1px solid var(--hairline); margin-bottom: 40px; }
.h-sheet__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; font: 400 11px/16px var(--font-mono); color: var(--ink-muted); padding-top: 10px; border-top: 1px solid var(--hairline); }
.h-sheet .h-prose { font-size: 15px; line-height: 24px; max-width: none; }
.h-sheet .h-prose p + p { margin-top: 12px; }
.h-refs { font: 400 12px/18px var(--font-sans); color: var(--ink-muted); counter-reset: r; display: grid; gap: 4px; border-top: var(--rule-width) solid var(--ink); padding-top: 12px; }
.h-refs li { counter-increment: r; padding-left: 24px; position: relative; }
.h-refs li::before { content: counter(r); position: absolute; left: 0; font: 500 11px/18px var(--font-mono); color: var(--accent); }
.h-watch { border-top: var(--rule-width) solid var(--ink); }
.h-watch li { display: grid; grid-template-columns: 1fr 150px; gap: 8px 24px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.h-watch h3 { font: 600 17px/23px var(--font-serif); }
.h-watch p { font: 400 13px/19px var(--font-sans); color: var(--ink-muted); margin-top: 4px; }

/* ---------- slides: 16:9 ---------- */
.h-slide { container-type: inline-size; width: 960px; height: 540px; padding: 48px 56px 40px; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; position: relative; overflow: hidden; font-family: var(--font-sans); border: 1px solid var(--hairline); }
.h-slide__k { font: 600 12px/16px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; }
.h-slide__t { font: 600 34px/40px var(--font-serif); letter-spacing: -0.005em; max-width: 22em; text-wrap: balance; }
.h-slide__body { margin-top: 28px; flex: 1; min-height: 0; }
.h-slide__foot { display: flex; justify-content: space-between; align-items: center; font: 400 11px/16px var(--font-mono); color: var(--ink-muted); padding-top: 10px; border-top: 1px solid var(--hairline); }
.h-slide .h-logo { font-size: 18px; line-height: 20px; gap: 7px; }
.h-slide .h-logo__mark { grid-template-columns: repeat(3, 3px); gap: 1.5px; } .h-slide .h-logo__mark i { width: 3px; height: 3px; }
.h-2x2 { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; height: 100%; border: 1px solid var(--ink); }
.h-2x2 > div { padding: 14px 18px; }
.h-2x2 > div:nth-child(odd) { border-right: 1px solid var(--ink); }
.h-2x2 > div:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
.h-2x2 h3 { font: 600 18px/24px var(--font-serif); margin: 4px 0; }
.h-2x2 p { font: 400 13px/19px var(--font-sans); color: var(--ink-muted); }
.h-octet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12.5%; aspect-ratio: 1; }
.h-octet i { background: currentColor; } .h-octet i:nth-child(5) { background: transparent; }

/* ---------- admin density ---------- */
.h-admin { font-size: 14px; line-height: 20px; }
.h-admin .h-header__in { min-height: 44px; }
.h-admin .h-logo { font-size: 18px; line-height: 20px; gap: 7px; }
.h-admin .h-logo__mark { grid-template-columns: repeat(3, 3px); gap: 1.5px; } .h-admin .h-logo__mark i { width: 3px; height: 3px; }
.h-admin .h-tab { font-size: 14px; line-height: 20px; padding: 6px 0; min-height: 32px; }
.h-admin .h-chip { min-height: 28px; padding: 2px 10px; font-size: 13px; }
.h-check { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; vertical-align: middle; }
.h-kbd { font: 500 11px/16px var(--font-mono); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: var(--radius-sm); padding: 0 5px; background: var(--surface-1); }
