/* The hub's look is gethologram.ai's: the shell, header, controls, landing, catalogue and model page
   below are its chrome.css and styles.css (Hologram-Technologies, live site, copied 2026-11-13), trimmed
   to what this hub draws. Every value resolves to the brand kit (app/brand/hologram-warm.css, tokens.css).
   The hub's own parts (proof status, verification, signatures, docs, registry, apps, buckets) follow. */

/* ---- product aliases over the brand kit */
:root {
  /* product aliases: references only */
  --hh-ground: var(--background);
  --hh-surface: var(--card);
  --hh-popover: var(--popover);
  --hh-fill: var(--muted);
  --hh-line: var(--border);
  --hh-line-strong: var(--input);
  --hh-line-focus: var(--ring);
  --hh-text: var(--foreground);
  --hh-text-dim: var(--muted-foreground);
  --hh-text-faint: var(--muted-foreground-subtle);
  --hh-accent: var(--brand);
  --hh-accent-text: var(--brand-foreground);
  /* The kit accent is 4.11:1 on the warm dark card and 4.13:1 on white — under AA for a 14px label, which
     is why nothing on this site sets words in it. The selected section still has to read as orange, so it
     takes the accent warmed toward whichever foreground the theme is using: 5.08:1 dark, 5.36:1 light. */
  --hh-accent-legible: color-mix(in srgb, var(--hh-accent) 80%, var(--hh-text));
  --hh-primary: var(--primary);
  --hh-primary-text: var(--primary-foreground);
  --hh-shadow: color-mix(in srgb, var(--background) 60%, transparent);
  --hh-ok: var(--success);
  --hh-bad: var(--destructive);
  --hh-wash: color-mix(in srgb, var(--foreground) 3%, transparent);

  /* control system: two heights, one tag height */
  --hh-control: var(--space-8);
  --hh-field: var(--space-10);
  --hh-tag: var(--space-6);
  /* A facet chip. 28px, measured on huggingface.co/models 2026-11-16. */
  --hh-chip: 28px;
  --hh-avatar: var(--space-12);
  --hh-icon: var(--space-4);
  --hh-icon-small: var(--text-sm);
  --hh-ease: 150ms cubic-bezier(.4, 0, .2, 1);
  --hh-leading: 1.5;
  /* One size for every word on the site that is not a headline: the menu, the hero's line and
     its actions, the controls. The headlines are set in the display steps; everything else is this. */
  --hh-ui: var(--text-base);
  --hh-pad: var(--space-6);
  --hh-gutter: var(--space-6);
  /* The card mesh's box: src/card-art.mjs draws a viewBox of exactly this size, so one unit is one pixel
     and the facets match on every page. 260x200 composed from the kit's steps: 4x64+4, 3x64+8. */
  --hh-art-w: calc(var(--space-16) * 4 + var(--space-1));
  --hh-art-h: calc(var(--space-16) * 3 + var(--space-2));

  /* landing type: the kit's steps, sized by whichever of width or height is scarcer */
  --hh-display: clamp(var(--text-3xl), min(8.5vw, 11svh), calc(var(--text-6xl) * 1.3));
  /* The pinned strip: one mark plus the air above and below it. The landing reserves exactly this. */
  --hh-strip-mark: var(--space-10);
  --hh-strip-top: var(--space-6);
  --hh-strip-bottom: var(--space-10);
  --hh-strip-gap: var(--space-16);
  --hh-strip-label: var(--text-xl);
  --hh-strip: calc(var(--hh-strip-mark) + var(--hh-strip-top) + var(--hh-strip-bottom));
}
:root:not(.dark) { --hh-shadow: color-mix(in srgb, var(--foreground) 14%, transparent); --hh-wash: color-mix(in srgb, var(--foreground) 4%, transparent); }

/* ---- resets */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--hh-ground); }
body {
  margin: 0;
  background: var(--hh-ground);
  color: var(--hh-text);
  font-family: var(--font-sans);
  font-size: var(--hh-ui);
  font-weight: var(--weight-normal);
  line-height: var(--hh-leading);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--hh-text); color: var(--background); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, p, dl, dd { margin: 0; font-size: inherit; font-weight: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }
.i { width: var(--hh-icon); height: var(--hh-icon); flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--hh-line-focus); outline-offset: 2px; }

.shell { max-width: 120rem; margin: 0 auto; padding: var(--space-6) var(--hh-gutter) var(--space-16); }
@media (min-width: 992px) { :root { --hh-gutter: var(--space-8); } }
@media (max-width: 480px) { :root { --hh-gutter: var(--space-4); } }

/* ---- shared controls */
.control {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: var(--hh-control); padding: 0 var(--space-3);
  border: 1px solid var(--hh-line); border-radius: var(--radius-md);
  font-size: var(--text-sm); color: var(--hh-text-dim);
  transition: color var(--hh-ease), border-color var(--hh-ease), background var(--hh-ease), opacity var(--hh-ease);
}
.control:not(:disabled):hover { color: var(--hh-text); border-color: var(--hh-line-focus); }
.control:disabled { opacity: .45; }
.control.square { width: var(--hh-control); padding: 0; flex: none; }

.field {
  display: flex; align-items: center; gap: var(--space-3);
  height: var(--hh-field); padding: 0 var(--space-4);
  border: 1px solid var(--hh-line-strong); border-radius: var(--radius-md);
  color: var(--hh-text-dim);
  transition: border-color var(--hh-ease);
}
.field:hover, .field:focus-within { border-color: var(--hh-line-focus); }
.field input { flex: 1; min-width: 0; height: 100%; padding: 0; background: none; border: 0; outline: 0; color: var(--hh-text); }
.field input::placeholder { color: var(--hh-text-dim); }
.field input::-webkit-search-cancel-button { display: none; }
.field.compact { height: var(--hh-control); padding: 0 var(--space-3); gap: var(--space-2); font-size: var(--text-sm); }

.button {
  display: inline-flex; align-items: center; gap: var(--space-2);
  height: var(--hh-field); padding: 0 var(--space-4);
  border: 1px solid var(--hh-line-strong); border-radius: var(--radius-md);
  font-size: var(--hh-ui); white-space: nowrap;
  transition: border-color var(--hh-ease), opacity var(--hh-ease);
}
.button:hover { border-color: var(--hh-line-focus); }
.button.primary { background: var(--hh-primary); border-color: var(--hh-primary); color: var(--hh-primary-text); }
.button.primary .i { color: var(--hh-accent); stroke-width: 2.25; }
.button.primary:hover { opacity: .85; }
/* The brand kit's success pair: --success behind --success-foreground. Used for Download. */
.button.success { background: var(--success); border-color: var(--success); color: var(--success-foreground); }
.button.success .i { color: var(--success-foreground); stroke-width: 2.25; }
/* Hover adds a ring instead of dimming, so the fill is always exactly --success (the green of "Verified"). */
.button.success:hover, .button.success:focus-visible { border-color: var(--success); box-shadow: 0 0 0 var(--space-1) color-mix(in srgb, var(--success) 30%, transparent); }
.button:disabled { opacity: .5; }

.pill { display: inline-flex; align-items: center; height: var(--hh-control); padding: 0 var(--space-3); border-radius: var(--hh-control); background: var(--hh-fill); font-family: var(--font-mono); font-size: var(--text-sm); }

.panel { background: var(--hh-surface); border-radius: var(--radius-lg); padding: var(--hh-pad); }

/* ---- the lead: what a section page says first.
   One row above the columns on every catalogue page — Models, Registry, Spaces — in the same order and
   nothing else: the section's name, how many of its things are listed, and the address they are read from
   with a dot for whether it answered. Three pages, one row, so crossing between them moves nothing. Built
   pages write it in build.mjs; the pages that ship as their own files write the same markup, and
   qa/menu.mjs holds all three to it. */
/* The same air above the row as below it, on every page: what sits under the row is a sibling that follows
   it, not always the next one (the Models page keeps its hidden index control between), so the rule below
   in styles.css uses ~ and the row itself carries the whole of both margins. */
.lead { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding: var(--space-10) 0; }
.lead h1 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: var(--weight-medium); letter-spacing: var(--tracking-display); line-height: 1.2; }
/* The address. A chip the height of the count beside it, in the mono the address is written in. */
.endpoint { display: inline-flex; align-items: center; gap: var(--space-2); height: var(--hh-control); padding: 0 var(--space-3); border: 1px solid var(--hh-line-strong); border-radius: var(--radius-md); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--hh-text-dim); white-space: nowrap; }
/* Copy-to-clipboard, and the shell prompt in front of a line you are meant to run. Both live here rather
   than in styles.css because the pages that ship as their own files load this sheet and not that one. */
.copy { display: inline-flex; align-items: center; gap: var(--space-2); color: inherit; transition: color var(--hh-ease); }
.copy .i { width: var(--hh-icon-small); height: var(--hh-icon-small); color: var(--hh-text-dim); }
.copy:hover, .copy:hover .i { color: var(--hh-text); }
.prompt { color: var(--hh-text-dim); margin-right: .5ch; }

/* The tag beside a section heading: the same control on all five sections. It is a button because it copies,
   and it wears .endpoint because what it shows is the section's address -- one look, whichever section you
   are in. Focus is the sheet-wide :focus-visible rule above; nothing here needs its own. */
.section-tag { background: none; cursor: pointer; font: inherit; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--hh-text-dim); transition: color var(--hh-ease), border-color var(--hh-ease); }
.section-tag:hover { color: var(--hh-text); border-color: var(--hh-text-faint); }
.section-tag.copied { color: var(--hh-ok); border-color: var(--hh-ok); }
/* The line is a fixed length -- it is a command, so it cannot be shortened or truncated without ceasing to be
   one. On the narrowest phones the full command is wider than the gutter allows, so the tag steps down a size
   rather than pushing the page sideways. */
@media (max-width: 420px) {
  .section-tag { font-size: var(--text-xs); padding: 0 var(--space-2); }
}
.dot { width: var(--space-2); height: var(--space-2); border-radius: 50%; background: var(--hh-text-faint); flex: none; }
.dot.ok { background: var(--hh-ok); }
.dot.bad { background: var(--hh-bad); }

/* ---- header */
.top {
  position: sticky; top: var(--space-6); z-index: 10;
  display: flex; align-items: center; gap: var(--space-8);
  height: var(--space-16); padding: 0 var(--space-6);
  background: var(--hh-surface); border-radius: var(--radius-xl);
}
/* Scroll veil: content dissolves before it reaches the header instead of sliding under it. */
.veil {
  position: fixed; z-index: 9; top: 0; left: 0; right: 0; height: calc(var(--space-6) * 2 + var(--space-16));
  pointer-events: none; background: var(--background);
  -webkit-mask-image: linear-gradient(var(--hh-text) 64%, transparent);
  mask-image: linear-gradient(var(--hh-text) 64%, transparent);
}
.brand { display: flex; align-items: center; gap: var(--space-3); flex: none; }
.brand img { width: auto; display: block; }
.brand .on-light { display: none; }
:root:not(.dark) .brand .on-dark { display: none; }
:root:not(.dark) .brand .on-light { display: block; }
.brand .mark { height: var(--space-8); }
/* The wordmark stands at 20px beside the 32px mark: the lockup's own proportion, and the row's cap height. */
.brand .word { height: var(--space-5); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: var(--space-6); font-family: var(--font-mono); font-size: var(--hh-ui); }

.status { display: flex; align-items: center; gap: var(--space-2); color: var(--hh-text-dim); transition: color var(--hh-ease); white-space: nowrap; }
.status:hover { color: var(--hh-text); }
.i.mark { fill: currentColor; stroke: none; }
.status::before { content: ""; width: var(--space-2); height: var(--space-2); border-radius: 50%; background: var(--hh-ok); }

@media (max-width: 720px) {
  .top { gap: var(--space-4); padding: 0 var(--space-4); }
  .brand .mark { height: var(--space-6); }
  .brand .word { height: var(--space-4); }
  .brand { gap: var(--space-2); }
  .top-end { gap: var(--space-2); }
}

/* The top-level menu. Sits at the end of the row, immediately before the icons. Each label carries a mark
   of its own: a grid for the catalogue, a chip for the Spaces, a pail for the buckets, a page for the
   guide. Four silhouettes that stay apart at 16px. */
.top-nav { display: flex; align-items: center; gap: var(--space-6); font-family: var(--font-mono); font-size: var(--hh-ui); }
.top-nav a { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--hh-text-dim); transition: color var(--hh-ease); }
.top-nav a:hover { color: var(--hh-text); }
/* The house 16px mark against the 16px label: the mark stands on the baseline and clears the cap height. */
.top-nav .i { width: var(--hh-icon); height: var(--hh-icon); }
/* Where you are, in the brand colour. aria-current carries the same fact to a screen reader, so the
   colour is a second telling and never the only one. */
.top-nav a[aria-current] { color: var(--hh-accent-legible); }

/* Everything after the brand is one group. Wide, the group is not a box at all: its children sit in the row
   exactly where they always did. The two icon controls keep the row's own spacing between them. */
.top-menu { display: contents; }
.top-tools { display: flex; align-items: center; gap: var(--space-6); }
/* The one control that stands in for the group on a narrow screen: the same circle as the theme switch, with
   three lines in it, and a cross once the sheet is open. It does not exist on a wide screen. */
.menu-button { display: none; place-items: center; width: var(--hh-control); height: var(--hh-control); border-radius: 50%; border: 1px solid var(--hh-line-strong); color: var(--hh-text); transition: border-color var(--hh-ease), transform var(--hh-ease); }
.menu-button:hover, .menu-button[aria-expanded="true"] { border-color: var(--hh-line-focus); }
.menu-button:active { transform: scale(.94); }
.menu-button .i { width: var(--hh-icon-small); height: var(--hh-icon-small); }
.menu-button .i + .i, .top.menu-open .menu-button .i:first-child { display: none; }
.top.menu-open .menu-button .i + .i { display: block; }
/* Folded, under 1100px: where the row had five sections and two controls it now has four and one, so it
   needs less than 1080px, but the fold stays here until that is measured rather than guessed.
   The group becomes the screen: a panel over the whole viewport, the brand and the close button
   still in their corners above it, the sections as a column of display type a thumb cannot miss, and the
   theme switch on a row at the foot. The button opens it; it, Escape, a tap on a section, or the window
   growing (chrome.js) closes it. The control's popover unfolds inside the panel rather than beside the
   control: a popover hung off a control at the left edge of a phone has nowhere to go. */
@keyframes sheet-in { from { opacity: 0; transform: translateY(var(--space-3)); } }
@media (max-width: 1100px) {
  .menu-button { display: grid; }
  .top-menu {
    display: none; position: fixed; inset: 0; z-index: 40;
    grid-template-rows: minmax(0, 1fr) auto; align-content: start;
    padding: calc(var(--space-6) + var(--space-16) + var(--space-8)) var(--hh-gutter) var(--space-8);
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--background); font-family: var(--font-sans); color: var(--hh-text);
  }
  .top.menu-open .top-menu { display: grid; animation: sheet-in 220ms cubic-bezier(.2, .8, .2, 1); }
  /* The header's own plate goes under the panel; its two corners stay on top of it. */
  .top.menu-open .brand, .top.menu-open .menu-button { position: relative; z-index: 41; }
  /* One thing scrolls while it is open, and it is the panel. */
  :root:has(.top.menu-open) body { overflow: hidden; }
  .top-nav { display: grid; align-content: start; gap: 0; font-family: var(--font-display); font-size: var(--text-3xl); font-weight: var(--weight-medium); letter-spacing: var(--tracking-display); line-height: 1.1; }
  .top-nav a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) 0; border-bottom: 1px solid var(--hh-line); color: var(--hh-text); transition: color var(--hh-ease), opacity var(--hh-ease); }
  .top-nav a:hover, .top-nav a:focus-visible { outline: 0; opacity: .7; }
  .top-nav .i { width: var(--space-6); height: var(--space-6); color: var(--hh-text-dim); stroke-width: 1.5; }
  .top-nav a[aria-current], .top-nav a[aria-current] .i { color: var(--hh-accent-legible); }
  .top-tools { flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-8); }
  .top-menu .appearance > button { width: var(--hh-field); height: var(--hh-field); }
  /* The theme control's popover unfolds inside the panel, on a full row under it. */
  .top-menu .appearance { display: contents; }
  .top-menu .menu { position: static; order: 3; flex-basis: 100%; width: auto; margin-top: var(--space-2); padding: var(--space-4) 0 0; background: none; border: 0; border-top: 1px solid var(--hh-line); border-radius: 0; box-shadow: none; animation: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---- theme switch */
.appearance { position: relative; }
.appearance > button { display: grid; place-items: center; width: var(--hh-control); height: var(--hh-control); border-radius: 50%; border: 1px solid var(--hh-line-strong); color: var(--hh-text); transition: border-color var(--hh-ease), transform var(--hh-ease); }
.appearance > button:hover, .appearance > button[aria-expanded="true"] { border-color: var(--hh-line-focus); }
.appearance > button:active { transform: scale(.94); }
.appearance > button .i { width: var(--hh-icon-small); height: var(--hh-icon-small); }
.appearance > button .i[data-for] { display: none; }
:root[data-theme="dark"] .appearance > button .i[data-for="dark"],
:root[data-theme="light"] .appearance > button .i[data-for="light"],
:root[data-theme="immersive"] .appearance > button .i[data-for="immersive"] { display: block; }
.menu {
  position: absolute; right: 0; top: calc(100% + var(--space-3)); z-index: 40; width: min(16.25rem, calc(100vw - 2 * var(--hh-gutter))); padding: var(--space-1);
  background: var(--hh-popover); border: 1px solid var(--hh-line-strong); border-radius: var(--radius-lg);
  box-shadow: 0 var(--space-4) var(--space-12) var(--hh-shadow);
  font-family: var(--font-sans); font-size: var(--text-sm); color: var(--hh-text);
  transform-origin: top right; animation: menu-in 160ms cubic-bezier(.2, .8, .2, 1);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(calc(-1 * var(--space-1))) scale(.97); } }
.menu [role="menuitemradio"] { display: flex; align-items: center; gap: var(--space-3); width: 100%; height: var(--hh-control); padding: 0 var(--space-3); border-radius: var(--radius-md); text-align: left; transition: background var(--hh-ease); }
.menu [role="menuitemradio"]:hover, .menu [role="menuitemradio"]:focus-visible { background: var(--hh-fill); outline: 0; }
.menu [role="menuitemradio"] .label { flex: 1; }
.menu [role="menuitemradio"] .i { color: var(--hh-text-dim); }
.menu [role="menuitemradio"] .tick { visibility: hidden; color: var(--hh-text); }
.menu [role="menuitemradio"][aria-checked="true"] { background: var(--hh-fill); }
.menu [role="menuitemradio"][aria-checked="true"] .i { color: var(--hh-text); }
.menu [role="menuitemradio"][aria-checked="true"] .tick { visibility: visible; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 280ms; }

/* ---- the header's search box, and the panel it opens.
   The box sits immediately after the lockup, which is where Hugging Face puts
   its own, read 2026-11-16. It is a button rather than an input: the input is
   in the panel, so there is one field to manage and the closed state can say
   which key opens it. */
.search-slot { flex: 1 1 auto; min-width: 0; max-width: 28rem; }
.search-open {
  display: flex; align-items: center; gap: var(--space-3);
  width: 100%; height: var(--hh-control); padding: 0 var(--space-3);
  background: var(--hh-surface); border: 1px solid var(--hh-line); border-radius: var(--radius-lg);
  font-family: var(--font-sans); font-size: var(--hh-ui); color: var(--hh-text-dim);
  cursor: text; transition: border-color var(--hh-ease), color var(--hh-ease);
}
.search-open:hover { border-color: var(--hh-text-dim); color: var(--hh-text); }
.search-open .i { width: var(--hh-icon-small); height: var(--hh-icon-small); flex: none; }
.search-open .say { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
:root[data-theme="immersive"] .search-open { -webkit-backdrop-filter: var(--hh-glass); backdrop-filter: var(--hh-glass); }
kbd {
  flex: none; padding: 0 var(--space-2); border: 1px solid var(--hh-line); border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.6; color: var(--hh-text-dim);
}

/* The panel. Over the page, anchored under the bar, and the only thing that
   scrolls while it is open. */
.search-panel { position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, var(--background) 55%, transparent); }
:root.searching body { overflow: hidden; }
.search-sheet {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 0;
  width: min(44rem, calc(100vw - 2 * var(--hh-gutter))); max-height: min(32rem, calc(100vh - 6rem));
  margin: calc(var(--space-6) + var(--hh-control)) auto 0;
  background: var(--hh-popover); border: 1px solid var(--hh-line-strong);
  border-radius: var(--radius-lg); box-shadow: 0 1.5rem 3rem rgb(0 0 0 / .35); overflow: hidden;
  animation: sheet-in 160ms cubic-bezier(.2, .8, .2, 1);
}
.search-field { border: 0; border-bottom: 1px solid var(--hh-line); border-radius: 0; height: var(--hh-field); }
.search-results { overflow-y: auto; overscroll-behavior: contain; padding: var(--space-2) 0; }
.search-group { padding: var(--space-2) 0; }
.search-group h2 {
  margin: 0; padding: var(--space-2) var(--space-4);
  font-family: var(--font-sans); font-size: var(--text-xs); font-weight: var(--weight-semibold);
  letter-spacing: .06em; text-transform: uppercase; color: var(--hh-text-dim);
}
.search-note { margin: 0; padding: var(--space-3) var(--space-4); font-size: var(--text-sm); color: var(--hh-text-dim); }
.search-row {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-2) var(--space-4); font-size: var(--hh-ui); color: var(--hh-text);
}
.search-row .avatar, .search-row .art { width: var(--space-5); height: var(--space-5); flex: none; border-radius: var(--radius-sm); object-fit: cover; }
.search-row .avatar.initials { display: grid; place-items: center; background: var(--hh-fill); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--hh-text-dim); }
.search-row .who { color: var(--hh-text-dim); white-space: nowrap; }
.search-row .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--weight-medium); }
.search-row .tag { margin-left: auto; }
.search-row.on, .search-row:hover { background: var(--hh-fill); }
.search-all {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  margin: var(--space-2) var(--space-2) 0; padding: var(--space-3) var(--space-3);
  border-top: 1px solid var(--hh-line); font-size: var(--text-sm); color: var(--hh-accent-legible);
}
.search-all.on, .search-all:hover { background: var(--hh-fill); }
.search-all .i { width: var(--hh-icon-small); height: var(--hh-icon-small); }
.search-feet {
  display: flex; gap: var(--space-5); padding: var(--space-2) var(--space-4);
  border-top: 1px solid var(--hh-line); font-size: var(--text-xs); color: var(--hh-text-dim);
}
.search-feet span { display: inline-flex; align-items: center; gap: var(--space-2); }

/* Narrow: the lockup and the box cannot share a row at phone width, so the
   box keeps its mark and loses its words. */
@media (max-width: 860px) {
  .search-open .say, .search-open kbd { display: none; }
  .search-slot { flex: 0 0 auto; width: var(--hh-control); }
  .search-open { justify-content: center; padding: 0; border-radius: 50%; width: var(--hh-control); }
}

/* ---- immersive: the wallpaper under everything, glass over it.
   --hh-wallpaper is set on <html> before the first paint (index.html) and
   again whenever a picture is chosen, so no stylesheet names an image. */
:root { --hh-wallpaper: url("wallpapers/alps.jpg"); }
:root[data-theme="immersive"] {
  --hh-ground: transparent;
  --hh-surface: color-mix(in srgb, var(--card) 86%, transparent);
  --hh-popover: var(--popover);
  --hh-fill: color-mix(in srgb, var(--muted) 84%, transparent);
  --hh-glass: blur(var(--space-6)) saturate(1.3);
  /* How much ground is laid over the wallpaper. qa/contrast.js reads it, so a page may ask for more. */
  --hh-veil: 22%;
}
:root[data-theme="immersive"] { background: var(--background); }
:root[data-theme="immersive"] body { background: transparent; }
:root[data-theme="immersive"] body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(color-mix(in srgb, var(--background) var(--hh-veil), transparent), color-mix(in srgb, var(--background) var(--hh-veil), transparent)), var(--hh-wallpaper) center / cover no-repeat, var(--background);
}
:root[data-theme="immersive"] .panel,
:root[data-theme="immersive"] .menu,
:root[data-theme="immersive"] .sort [role="listbox"],
:root[data-theme="immersive"] .sheet-footer { -webkit-backdrop-filter: var(--hh-glass); backdrop-filter: var(--hh-glass); }
/* Over a photograph the header draws no plate, on every page, as the landing has always done: the row sits
   on the picture and its words take a shadow instead, which costs the picture nothing. On the pages that
   scroll, the veil above the row is what keeps content from colliding with it. */
:root[data-theme="immersive"] .top { background: none; }
:root[data-theme="immersive"] .top .brand, :root[data-theme="immersive"] .top-end, :root[data-theme="immersive"] .top-nav { text-shadow: 0 var(--space-1) var(--space-4) color-mix(in srgb, var(--background) 80%, transparent); }
@media (max-width: 1100px) {
  :root[data-theme="immersive"] .top-menu { background: color-mix(in srgb, var(--background) 78%, transparent); -webkit-backdrop-filter: var(--hh-glass); backdrop-filter: var(--hh-glass); }
}
:root[data-theme="immersive"] .veil {
  background: color-mix(in srgb, var(--background) 35%, transparent);
  -webkit-backdrop-filter: blur(var(--space-4)); backdrop-filter: blur(var(--space-4));
}

/* ---- the mesh behind every catalogue card (Models, Registry, Spaces) --------------------------------
   Fixed in CSS pixels on purpose: the box is 260x200 and src/card-art.mjs draws a 260x200 viewBox, so
   one unit is one pixel and the facets are the same size on all three pages, whatever the card height
   or the column count. A shorter card clips the bottom. Change one number and you change both files. */
.card { position: relative; overflow: hidden; isolation: isolate; }
.art {
  position: absolute; z-index: -1; top: 0; right: 0; width: min(55%, var(--hh-art-w)); height: var(--hh-art-h);
  pointer-events: none; opacity: .85;
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--hh-text) var(--space-16));
  mask-image: linear-gradient(90deg, transparent, var(--hh-text) var(--space-16));
  transition: opacity var(--hh-ease);
}
.art .facets { fill: var(--hh-text); }
.art .edges { fill: none; stroke: var(--hh-text); stroke-width: .5; opacity: .14; }
.card:hover .art { opacity: 1; }

/* ---- landing: one hero, one screen, no scroll.
   The shell becomes the viewport: header, hero, logo strip, and nothing below the fold to reach. */
:root[data-page="landing"], :root[data-page="landing"] body { height: 100%; overflow: hidden; }
/* The strip is pinned to the window, not laid out at the end of the shell. As a grid row it depended on the
   shell being exactly as tall as the window, and on a real browser it was not: anything that makes the shell
   taller pushes the strip past the bottom edge, where overflow: hidden then hides it. Fixed to the viewport
   it cannot be pushed anywhere, and the shell reserves its height so the hero still centres above it. */
:root[data-page="landing"] .shell {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
  height: 100%; padding-bottom: var(--hh-strip);
}


.land {
  position: relative; isolation: isolate; min-height: 0;
  display: grid; align-content: center; justify-items: center;
  padding: var(--space-6) 0; text-align: center;
}
/* The hub's own signature: the braille address cells from a model page, scaled up and masked off the type. */
.land-art { position: absolute; inset: calc(-1 * var(--space-12)) calc(-1 * var(--hh-gutter)); z-index: -1; color: var(--hh-text); opacity: .09; pointer-events: none; }
.land-art svg { display: block; width: 100%; height: 100%; }
.land-dots { animation: land-drift 90s linear infinite alternate; }
.land-planes { animation: land-drift 140s linear infinite alternate-reverse; }
@keyframes land-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(1.6%, -1.2%, 0); } }

.land-copy { display: grid; justify-items: center; }
/* The hero is never wider than the window (HK-34). An implicit grid column is as wide as its widest line, and a command does
   not wrap, so on a phone one long command widened the whole hero and pushed the headline off the right edge.
   With the columns bounded, the command shortens with an ellipsis instead, and its copy button still copies all of it. */
.land, .land-copy { grid-template-columns: minmax(0, 1fr); }
.land-copy > *, .land-second { max-width: 100%; }

/* ---- the star badge above the headline.
   The page's own capsule: the control language of every other button here, the count behind a hairline, and
   the star in brand orange. The accent fills a mark and never sits behind words, because white on it is
   4.14:1, under AA. The count is empty until it exists, so a build that could not reach GitHub shows the
   label and no hollow number; app.js fills it in and the tally appears. */
.land-badge {
  display: inline-flex; align-items: center; gap: var(--space-3);
  height: var(--hh-control); padding: 0 var(--space-4);
  border: 1px solid var(--hh-line); border-radius: var(--hh-control);
  font-family: var(--font-mono); font-size: var(--hh-ui); color: var(--hh-text-dim);
  transition: color var(--hh-ease), border-color var(--hh-ease);
  transform: translateY(calc(-1 * var(--space-3)));
}
.land-badge .lockup, .land-badge .tally { display: inline-flex; align-items: center; gap: var(--space-2); }
.land-badge .i { width: var(--hh-icon); height: var(--hh-icon); }
.land-badge .tally { padding-left: var(--space-3); border-left: 1px solid var(--hh-line); }
.land-badge .tally:has(.n:empty) { display: none; }
.land-badge .star { fill: var(--hh-accent); stroke: var(--hh-accent); }
.land-badge .n { font-weight: var(--weight-medium); color: var(--hh-text); }
.land-badge:hover { color: var(--hh-text); border-color: var(--hh-line-focus); }
.land-badge + .land-title { margin-top: var(--space-6); }
.land-title { font-family: var(--font-display); font-size: var(--hh-display); font-weight: var(--weight-medium); letter-spacing: var(--tracking-display); line-height: .95; }
.land-title span { display: block; }
/* The one exception to the site's single text size (--hh-ui): the line under the headline is the claim the
   page makes, not a control, and at the interface size it read as one. Two steps up on a wide screen, one on
   a phone, where the headline itself is already smaller. */
.land-sub { margin-top: var(--space-6); max-width: 52rem; font-size: var(--text-xl); color: var(--hh-text-dim); }
@media (max-width: 720px) { .land-sub { font-size: var(--text-lg); } }

.hl { font-family: inherit; font-weight: inherit; font-style: normal; color: var(--hh-text); }
.hl-seal { display: none; }

.hl-seal { display: inline-flex; margin-left: var(--space-2); vertical-align: middle; color: var(--hh-ok); }
.hl-seal .i { width: var(--hh-icon); height: var(--hh-icon); }

.land-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-4) var(--space-6); margin-top: calc(var(--space-8) + var(--space-2)); }
.prompt { color: var(--hh-text-dim); margin-right: .5ch; }
.land-second { font-family: var(--font-mono); font-size: var(--hh-ui); color: var(--hh-text); transition: opacity var(--hh-ease); position: relative; top: .18em; }
.land-second:hover { opacity: .65; }

/* The strip on the bottom edge: two identical runs, sliding exactly half the track, so the loop has no seam. */
.land-marquee {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 8;
  overflow: hidden; padding-block: var(--hh-strip-top) var(--hh-strip-bottom);
  -webkit-mask-image: linear-gradient(to right, transparent, var(--hh-text) 10%, var(--hh-text) 90%, transparent);
  mask-image: linear-gradient(to right, transparent, var(--hh-text) 10%, var(--hh-text) 90%, transparent);
}
.land-track { display: flex; width: max-content; animation: land-slide 64s linear infinite; }
.land-track ul { display: flex; align-items: center; gap: var(--hh-strip-gap); padding-right: var(--hh-strip-gap); }
.land-track li { display: flex; }
/* Each mark is a link into the catalogue, so it needs a target big enough to hit and a hover that says so. */
.land-track a { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-size: var(--hh-strip-label); font-weight: var(--weight-medium); letter-spacing: var(--tracking-display); white-space: nowrap; color: var(--hh-text-dim); transition: color var(--hh-ease); }
.land-track a:hover { color: var(--hh-text); }
.land-track a:hover img { opacity: 1; filter: none; }
/* A moving target is a bad target: the run stops while a pointer is over it, or while a link has focus. */
@media (hover: hover) { .land-marquee:hover .land-track { animation-play-state: paused; } }
.land-marquee:focus-within .land-track { animation-play-state: paused; }
/* The marks are the orgs' own avatars, and several are dark artwork on transparency: on the warm dark ground
   they would disappear. A light plate under each one, in the dark themes only, keeps the strip monochrome and
   readable the way the reference strip is. */
.land-track img { width: var(--hh-strip-mark); height: var(--hh-strip-mark); border-radius: 50%; object-fit: cover; filter: grayscale(1); opacity: .75; transition: opacity var(--hh-ease), filter var(--hh-ease); }
:root.dark .land-track img { background: var(--hh-text); }
@keyframes land-slide { to { transform: translateX(-50%); } }

@media (max-height: 820px) {
  :root { --hh-strip-mark: var(--space-8); --hh-strip-top: var(--space-4); --hh-strip-bottom: var(--space-6); --hh-strip-gap: var(--space-12); --hh-strip-label: var(--text-lg); }
  .land { padding: var(--space-4) 0; }
  .land-sub, .land-badge + .land-title { margin-top: var(--space-4); }
.land-actions { margin-top: calc(var(--space-6) + var(--space-2)); }
}
@media (max-height: 620px) {
  :root { --hh-strip-mark: var(--space-6); --hh-strip-top: var(--space-3); --hh-strip-bottom: var(--space-4); --hh-strip-gap: var(--space-10); --hh-strip-label: var(--text-sm); }
  .land { padding: var(--space-3) 0; }
  .land-sub, .land-badge + .land-title { margin-top: var(--space-3); }
  .land-actions { margin-top: var(--space-4); }
}
/* Below this there is no room for a hero and a strip both; the hero is the page, so the strip goes. */
@media (max-height: 460px) {
  :root[data-page="landing"] .shell { padding-bottom: 0; }
  .land-marquee { display: none; }
}
@media (max-width: 480px) { .land-track ul { gap: var(--space-10); padding-right: var(--space-10); } }
@media (prefers-reduced-motion: reduce) { .land-dots, .land-planes, .land-track { animation: none; } }

/* ---- a phone.
   The headline is the page, so it takes the width: the two halves wrap as one line of text rather than as
   two fixed lines, which lets the type grow past what the wide layout's vw rule allows. The primary action
   gets a little more air above it, and the strip, whose run is shorter here, keeps its pace by taking less
   time per loop. */
@media (max-width: 720px) {
  :root { --hh-display: clamp(var(--text-4xl), 12vw, var(--text-5xl)); }
  .land-title span { display: inline; }
  .land-actions { margin-top: var(--space-8); }
  .land-track { animation-duration: 40s; }
}
@media (max-width: 720px) and (max-height: 820px) { .land-actions { margin-top: var(--space-6); } }
@media (max-width: 720px) and (max-height: 620px) { .land-actions { margin-top: var(--space-4); } }

/* Over a photo the figure only adds noise, and floating text loses its ground: the hero takes the glass every
   other surface already uses in Immersive, and the strip steps back further. */
:root[data-theme="immersive"] .land-art { display: none; }
/* Nothing is drawn around the hero in Immersive and the photograph is not dimmed: no slab, the wallpaper at
   the same strength the application shows it. Legibility comes from a shadow under the type, which costs the
   picture nothing. (The header draws no plate either, on every page now: chrome.css.) The strip keeps a
   band, the one thing that makes it read over a bright sky. */
:root[data-theme="immersive"] .land-copy { text-shadow: 0 var(--space-1) var(--space-4) color-mix(in srgb, var(--background) 80%, transparent); }
:root[data-theme="immersive"] .land-sub { color: var(--hh-text); }
:root[data-theme="immersive"] .land-marquee { background: color-mix(in srgb, var(--background) 45%, transparent); }
:root[data-theme="immersive"] .land-track img { opacity: .4; }
:root:not(.dark) .land-art { opacity: .13; }


/* ---- browse: filters | results */
.browse { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin-top: var(--space-6); align-items: start; }
@media (min-width: 1024px) { .browse { grid-template-columns: minmax(18.75rem, 23.75rem) minmax(0, 1fr); } }
/* Under the lead row the columns start where the row's own air ends, the same distance the Registry and
   Spaces pages keep; the margin above is for the panels that open with no row (404, signing in). */
.lead ~ .browse { margin-top: 0; }

.filters { padding: var(--space-4) var(--space-4) var(--space-12); position: sticky; top: calc(var(--space-16) + var(--space-12)); max-height: calc(100vh - var(--space-16) - var(--space-16)); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--hh-fill) transparent; }
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-1); padding-bottom: var(--space-4); border-bottom: 1px solid var(--hh-line); }
.tab {
  display: flex; align-items: center; justify-content: center; gap: var(--space-1);
  height: var(--hh-chip); padding: 0 var(--space-2);
  border: 1px solid transparent; border-radius: var(--radius-md);
  font-size: var(--text-sm); color: var(--hh-text-dim);
  transition: color var(--hh-ease), background var(--hh-ease), border-color var(--hh-ease);
}
.tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab:hover { color: var(--hh-text); }
.tab[aria-selected="true"] { color: var(--hh-text); background: var(--hh-fill); border-color: var(--hh-line-strong); }
.sections { display: grid; gap: var(--space-6); padding-top: var(--space-4); }
.facet { display: grid; gap: var(--space-3); }
.facet header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.facet h2 { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--hh-text-dim); }
.facet-tools { display: flex; gap: var(--space-2); }
.facet-tools .field { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); overflow: hidden; transition: max-height 200ms cubic-bezier(.4, 0, .2, 1); }
.chips.clamped { max-height: calc(var(--hh-chip) * 4 + var(--space-2) * 3); }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2); max-width: 100%;
  height: var(--hh-chip); padding: 0 var(--space-2);
  border: 1px solid var(--hh-line-strong); border-radius: var(--radius-md);
  font-size: var(--text-sm); color: var(--hh-text);
  transition: border-color var(--hh-ease), background var(--hh-ease), color var(--hh-ease);
}
.chip .i { color: var(--hh-text-dim); }
.chip .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip:hover { border-color: var(--hh-line-focus); }
.chip[aria-pressed="true"] { background: var(--hh-text); color: var(--background); border-color: var(--hh-text); }
.chip[aria-pressed="true"] .i { color: var(--background); }
.more {
  height: var(--hh-chip); padding: 0 var(--space-2); border-radius: var(--radius-md);
  font-size: var(--text-sm); color: var(--hh-text-dim);
}
.more:hover { color: var(--hh-text); }
.none { font-size: var(--text-sm); color: var(--hh-text-dim); }

/* ---- results */
.head { display: flex; align-items: center; gap: var(--space-3); }
/* The index control sits with the thing it describes — the catalog this page is showing — rather than in the
   header, which is for the product. It opens the row on the browse page, and follows the back link on a model
   page, so it is on the same side of the page either way. */
/* The menu hangs from the right of its control, which is what the header wanted. In a content row the control
   sits near the start, so the menu hangs from the left instead and opens into the room the row has — otherwise it
   reaches back across the filters beside it. */
.back-row { margin-bottom: var(--space-4); }
.back-row .back { margin: 0; }
.head h1, .hero h1 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: var(--weight-medium); letter-spacing: var(--tracking-display); line-height: 1.2; }
/* Wraps: the sort control cannot shrink past its own words, and without this the whole page scrolls
   sideways on a laptop narrow enough to put the filter rail beside a two-column grid. */
.bar { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--space-3); margin: var(--space-4) 0 var(--space-6); }
/* The search takes the row, as it does on the Registry and Spaces pages: it is the one control here that
   rewards being wide, and the sort keeps its own width at the end. */
.bar .search { flex: 1; min-width: 0; }
/* The results stand on the ground, as they do on the Registry and Spaces pages: no slab behind them. The
   search and the sort are surfaces of their own, the height and radius the other two pages give theirs. */
.results-head .bar { margin: 0 0 var(--space-4); }
/* The search and the sort are one row of controls and stand the same height, 48px, on every catalogue page.
   (The sort button's own rule below carries the height too: it comes later and would otherwise win.) */
.bar .search, .sort > button { height: var(--space-12); background: var(--hh-surface); border-color: var(--hh-line-strong); border-radius: var(--radius-lg); }
.bar .search { padding: 0 var(--space-4); }
.open-filters { display: none; }
.results-head { position: relative; z-index: 5; }
.sort { position: relative; margin-left: auto; }
.sort > button { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); height: var(--space-12); min-width: 11.25rem; padding: 0 var(--space-4); border: 1px solid var(--hh-line-strong); border-radius: var(--radius-lg); background: var(--hh-surface); transition: border-color var(--hh-ease); }
.sort > button:hover, .sort > button[aria-expanded="true"] { border-color: var(--hh-line-focus); }
.sort > button .i { color: var(--hh-text-dim); transition: transform 200ms cubic-bezier(.2, .8, .2, 1); }
.sort > button[aria-expanded="true"] .i { transform: rotate(180deg); }
.sort [role="listbox"] { position: absolute; left: 0; right: 0; top: calc(100% + var(--space-2)); z-index: 20; padding: var(--space-1); transform-origin: top; animation: menu-in 160ms cubic-bezier(.2, .8, .2, 1); background: var(--hh-popover); border: 1px solid var(--hh-line-strong); border-radius: var(--radius-md); box-shadow: 0 var(--space-4) var(--space-12) var(--hh-shadow); }
.sort [role="option"] { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); height: var(--hh-control); padding: 0 var(--space-3); border-radius: var(--radius-sm); font-size: var(--text-sm); color: var(--hh-text-dim); cursor: pointer; white-space: nowrap; transition: background var(--hh-ease), color var(--hh-ease); }
.sort [role="option"]:hover, .sort [role="option"].hot, .sort [role="option"][aria-selected="true"] { color: var(--hh-text); }
.sort [role="option"]:hover, .sort [role="option"].hot { background: var(--hh-fill); }
.sort [role="option"] .i { visibility: hidden; }
.sort [role="option"][aria-selected="true"] .i { visibility: visible; }

@media (max-width: 1023px) {
  .filters { display: none; }
  .open-filters { display: inline-flex; align-items: center; gap: var(--space-2); height: var(--hh-field); padding: 0 var(--space-4); border: 1px solid var(--hh-line-strong); border-radius: var(--radius-md); }
  body.sheet { overflow: hidden; }
  body.sheet .filters { display: block; position: fixed; inset: 0; z-index: 30; max-height: none; border-radius: 0; padding: var(--space-16) var(--space-4) calc(var(--space-16) + var(--space-8)); }
  .close-filters { position: fixed; top: var(--space-4); right: var(--space-4); z-index: 31; }
  .sheet-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; padding: var(--space-3) var(--space-4); background: var(--hh-surface); border-top: 1px solid var(--hh-line); }
  .sheet-footer .button { width: 100%; justify-content: center; }
}
@media (min-width: 1024px) { .close-filters, .sheet-footer { display: none; } }
@media (max-width: 720px) {
  :root { --hh-pad: var(--space-4); }
  .bar { flex-wrap: wrap; }
  .bar .search { flex-basis: 100%; min-width: 0; }
  .sort { margin-left: 0; flex: 1; }
  .sort > button { width: 100%; min-width: 0; }
}

/* ---- grid + card */
.grid { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--hh-avatar); grid-template-rows: var(--hh-tag) auto auto;
  column-gap: var(--space-4); row-gap: var(--space-2);
  padding: var(--space-4);
  background: var(--hh-surface);
  border: 1px solid var(--hh-line); border-radius: var(--radius-lg);
  transition: border-color var(--hh-ease), background var(--hh-ease);
}
.card:hover { border-color: var(--hh-line-strong); }
.card .tags { grid-area: 1 / 1; }
.card .title { grid-area: 2 / 1; font-family: var(--font-mono); font-size: var(--text-lg); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta { grid-area: 3 / 1; }
.card .avatar { grid-area: 1 / 2 / 4 / 3; align-self: center; }

.tags { display: flex; flex-wrap: wrap; align-content: flex-start; gap: var(--space-6) var(--space-2); height: var(--hh-tag); overflow: hidden; min-width: 0; }
.tag {
  display: inline-flex; align-items: center; max-width: 100%;
  height: var(--hh-tag); padding: 0 var(--space-2);
  border: 1px solid var(--hh-line); border-radius: var(--radius-sm);
  background: var(--hh-fill);
  font-family: var(--font-mono); font-size: var(--text-sm); line-height: 1; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tag.state.addressed, .tag.new { color: var(--hh-ok); border-color: color-mix(in srgb, var(--success) 45%, transparent); background: color-mix(in srgb, var(--success) 12%, transparent); }
.tag.new { background: transparent; }
.tag.state.pending { color: var(--hh-text-dim); background: transparent; border-color: var(--hh-line-strong); }
/* A row another host listed and this hub has not checked: neither a pass
   nor a failure, so it is marked rather than coloured like either. */
.tag.state.listed { color: var(--hh-text-dim); background: transparent; border-color: var(--hh-line-strong); border-style: dashed; }
.tag.state.skipped { color: var(--hh-bad); border-color: color-mix(in srgb, var(--destructive) 45%, transparent); background: color-mix(in srgb, var(--destructive) 10%, transparent); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6) var(--space-2); height: var(--space-5); min-width: 0; font-size: var(--text-sm); color: var(--hh-text-dim); white-space: nowrap; overflow: hidden; }
.meta > span { display: inline-flex; align-items: center; gap: var(--space-1); }
/* The middle dot as an escape, not a character: the literal was saved double-encoded once and every card's
   meta line showed two characters for it, on the live site too. An escape survives any editor and any charset. */
.meta > span + span::before { content: "\00B7"; margin-right: var(--space-1); color: var(--hh-text-faint); }
.meta .i { width: var(--hh-icon-small); height: var(--hh-icon-small); }

.avatar { width: var(--hh-avatar); height: var(--hh-avatar); border-radius: 50%; object-fit: cover; background: var(--hh-fill); box-shadow: 0 0 0 1px var(--hh-line); }
.avatar.initials { display: grid; place-items: center; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--hh-text); }

.empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-16) var(--space-4); color: var(--hh-text-dim); }
.link { color: var(--hh-text); text-decoration: underline; text-underline-offset: var(--space-1); text-decoration-color: var(--hh-line-focus); }

.pager { display: flex; justify-content: center; align-items: center; gap: var(--space-1); margin-top: var(--space-6); font-family: var(--font-mono); font-size: var(--text-sm); }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: var(--hh-control); height: var(--hh-control); padding: 0 var(--space-2); border-radius: var(--radius-md); border: 1px solid transparent; }
.pager a { color: var(--hh-text-dim); transition: color var(--hh-ease), border-color var(--hh-ease); }
.pager a:hover { color: var(--hh-text); border-color: var(--hh-line-strong); }
.pager .now { border-color: var(--hh-line-strong); background: var(--hh-fill); }
.pager .off { color: var(--hh-text-faint); opacity: .5; }
.pager .gap { color: var(--hh-text-dim); }

/* ---- model page */
.back { display: inline-flex; align-items: center; gap: var(--space-1); margin: var(--space-6) 0 var(--space-3); height: var(--hh-control); font-size: var(--text-sm); color: var(--hh-text-dim); transition: color var(--hh-ease); }
.back:hover { color: var(--hh-text); }
.hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-4) var(--space-6); }
.hero .avatar { width: var(--space-16); height: var(--space-16); }
.hero .who { display: grid; gap: var(--space-2); min-width: 0; }
.hero .org { font-size: var(--text-sm); color: var(--hh-text-dim); }
.hero h1 { overflow-wrap: anywhere; }
.title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-5); min-width: 0; }
.stats { display: inline-flex; align-items: center; gap: var(--space-3); font-size: var(--hh-ui); color: var(--hh-text-dim); white-space: nowrap; }
.stats > span:not(.dot) { display: inline-flex; align-items: center; gap: var(--space-1); }
.stats b { font-weight: inherit; font-variant-numeric: tabular-nums; color: var(--hh-text); }
.stats .i { width: 1em; height: 1em; color: var(--hh-text-dim); }
.stats .dot { width: calc(var(--space-1) - 1px); height: calc(var(--space-1) - 1px); border-radius: 50%; background: currentColor; opacity: .7; color: transparent; overflow: hidden; }
.hero .tags { height: auto; gap: var(--space-2); }
.actions { display: flex; gap: var(--space-3); }
@media (max-width: 720px) { .hero { grid-template-columns: auto minmax(0, 1fr); } .actions { grid-column: 1 / -1; } }
.verdict { display: flex; align-items: center; min-height: var(--hh-field); margin-top: var(--space-4); padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--hh-line-strong); font-size: var(--text-sm); color: var(--hh-text-dim); }
.verdict.ok { color: var(--hh-ok); border-color: color-mix(in srgb, var(--success) 45%, transparent); background: color-mix(in srgb, var(--success) 8%, transparent); }
.verdict.bad { color: var(--hh-bad); border-color: color-mix(in srgb, var(--destructive) 45%, transparent); }

.detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin-top: var(--space-3); align-items: start; }
@media (min-width: 1024px) { .detail { grid-template-columns: minmax(18.75rem, 23.75rem) minmax(0, 1fr); } }
.section-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.section-head h2 { font-weight: var(--weight-medium); }
.facts div { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--hh-field); border-bottom: 1px solid var(--hh-line); font-size: var(--text-sm); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--hh-text-dim); flex: none; }
.facts dd { font-family: var(--font-mono); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.facts .ok { color: var(--hh-ok); }
.facts .dim { color: var(--hh-text-dim); }
.facts .bad { color: var(--hh-bad); }

.scroll { overflow-x: auto; margin: 0 calc(-1 * var(--hh-pad)); padding: 0 var(--hh-pad); }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
th { height: var(--hh-field); text-align: left; font-weight: var(--weight-normal); color: var(--hh-text-dim); border-bottom: 1px solid var(--hh-line-strong); white-space: nowrap; }
th button { display: inline-flex; align-items: center; gap: var(--space-1); color: inherit; transition: color var(--hh-ease); }
th button .i { width: var(--hh-icon-small); height: var(--hh-icon-small); opacity: 0; }
th button:hover, th button[aria-sort] { color: var(--hh-text); }
th button[aria-sort] .i { opacity: 1; }
th button[aria-sort="descending"] .i { transform: rotate(180deg); }
td { height: var(--hh-field); border-bottom: 1px solid var(--hh-line); font-family: var(--font-mono); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
th + th, td + td { padding-left: var(--space-6); }
.size { text-align: right; }
th.size button { flex-direction: row-reverse; }
td.path { max-width: 24rem; overflow: hidden; text-overflow: ellipsis; }
td.addr { color: var(--hh-text-dim); }
/* What the kernel said about one tensor, beside the button that asked it. */
.checked { font-size: var(--text-sm); color: var(--hh-text-dim); }
.checked.ok { color: var(--hh-ok); }
.checked.bad { color: var(--hh-bad); }
section.uor h3 { margin: var(--space-6) 0 var(--space-2); font-size: var(--text-sm); }
.note { font-size: var(--text-sm); color: var(--hh-text-dim); max-width: 38rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ---- themes: Dark (kit .dark), Light (kit :root), Immersive (dark over a photo, glass panels) */
:root:not(.dark) .tag.state.addressed { background: color-mix(in srgb, var(--success) 6%, transparent); }
:root:not(.dark) .tag.state.skipped { background: transparent; }
:root[data-theme="immersive"] .tag.state.skipped { background: color-mix(in srgb, var(--destructive) 10%, var(--card)); }
/* Immersive browse: the search, the sort, the cards and the pager each carry their own glass. */
:root[data-theme="immersive"] .bar .search,
:root[data-theme="immersive"] .sort > button,
:root[data-theme="immersive"] .card,
:root[data-theme="immersive"] .empty,
:root[data-theme="immersive"] .pager {
  background: var(--hh-surface);
  -webkit-backdrop-filter: blur(var(--space-3)) saturate(1.3); backdrop-filter: blur(var(--space-3)) saturate(1.3);
}
:root[data-theme="immersive"] .card { border-color: var(--hh-line-strong); }
:root[data-theme="immersive"] .card:hover { background: color-mix(in srgb, var(--card) 92%, transparent); }
:root[data-theme="immersive"] .empty { border-radius: var(--radius-lg); }
:root[data-theme="immersive"] .pager { width: fit-content; margin-inline: auto; padding: var(--space-1); border-radius: var(--radius-lg); }
:root[data-theme="immersive"] .back { padding: 0 var(--space-3); border-radius: var(--hh-control); background: var(--hh-surface); color: var(--hh-text); -webkit-backdrop-filter: var(--hh-glass); backdrop-filter: var(--hh-glass); }

/* ======================================================================================================
   The hub's own parts, in the same tokens and controls.
   ====================================================================================================== */

.boot { padding: 30vh 0; text-align: center; font-family: var(--font-mono); color: var(--hh-text-dim); }
.note-panel { margin-top: var(--space-6); color: var(--hh-text-dim); }
.dim { color: var(--hh-text-dim); }
code { font-family: var(--font-mono); font-size: var(--text-sm); }

/* The proof: the kernel's own examples, replayed in this page. A dot and a word, like any header status. */
.status.wait::before { background: var(--hh-text-faint); }
.status.bad::before { background: var(--hh-bad); }
@media (min-width: 1101px) and (max-width: 1419px) { #proof .label { display: none; } #proof { min-width: var(--hh-control); justify-content: center; } }

/* A line under a section's lead row, and where a copied list came from. */
.intro { max-width: 52rem; margin: calc(-1 * var(--space-6)) 0 var(--space-8); color: var(--hh-text-dim); }
.copied-from { margin-top: var(--space-6); font-size: var(--text-xs); font-family: var(--font-mono); color: var(--hh-text-faint); overflow-wrap: anywhere; }
.lead-end { margin-left: auto; }
.lead-end .sort > button { height: var(--hh-field); }

/* Registry and apps entries: the catalogue card without an avatar, room for a description and actions. */
.card.entry { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; align-content: start; }
.card.entry > * { grid-area: auto; }
.card.entry .title { white-space: normal; overflow-wrap: anywhere; }
.card .desc { font-size: var(--text-sm); color: var(--hh-text-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.entry .meta { height: auto; }
.entry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.entry-actions .endpoint { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.grid.spaces { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
:root[data-theme="immersive"] .lead .endpoint, :root[data-theme="immersive"] .lead .pill { background: var(--hh-surface); -webkit-backdrop-filter: var(--hh-glass); backdrop-filter: var(--hh-glass); }

/* ---- model page */
.model-head { display: grid; gap: var(--space-6); }
.hero .org { font-size: var(--text-sm); color: var(--hh-text-dim); }
.rows { display: grid; gap: 0; }
.rows > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: var(--space-4); align-items: start; padding: var(--space-3) 0; border-top: 1px solid var(--hh-line); }
.rows dt { font-size: var(--text-sm); color: var(--hh-text-dim); padding-top: var(--space-1); }
.rows dd { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.rows .addr { color: var(--hh-text-dim); }
.held .pill { gap: var(--space-2); background: transparent; border: 1px solid var(--hh-line-strong); font-family: var(--font-sans); }
.held .pill .i { width: var(--hh-icon-small); height: var(--hh-icon-small); color: var(--hh-ok); }
@media (max-width: 720px) { .rows > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); } }

/* Segmented tabs: the tools on a model page, and its Overview, Files and Tensors. */
.ptabs { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.ptabs button { height: var(--hh-control); padding: 0 var(--space-3); border: 1px solid transparent; border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--hh-text-dim); transition: color var(--hh-ease), background var(--hh-ease), border-color var(--hh-ease); }
.ptabs button:hover { color: var(--hh-text); }
.ptabs button[aria-selected="true"] { color: var(--hh-text); background: var(--hh-fill); border-color: var(--hh-line-strong); }
.body .ptabs { margin-bottom: var(--space-4); }

/* A command to run: one line, copied whole, scrolled rather than cut. */
.get { width: 100%; }
.command { display: flex; align-items: center; gap: var(--space-3); width: 100%; max-width: 48rem; min-height: var(--hh-field); padding: 0 var(--space-4); border: 1px solid var(--hh-line-strong); border-radius: var(--radius-md); background: color-mix(in srgb, var(--background) 30%, transparent); font-family: var(--font-mono); font-size: var(--text-sm); text-align: left; overflow-x: auto; white-space: nowrap; }
.command .i { margin-left: auto; }
.command:hover { border-color: var(--hh-line-focus); }
.copied, .copied .i { color: var(--hh-ok); }

.detail .facts { padding-block: var(--space-2); }
.body { min-width: 0; }
.body h2 { margin: var(--space-6) 0 var(--space-2); font-weight: var(--weight-medium); }
.body .tags { height: auto; gap: var(--space-2); }
.body .note { margin-bottom: var(--space-3); }

/* Verify: one row per source the copy came from, and the kernel's verdict over all of them. */
.verdict { display: grid; gap: var(--space-2); margin-top: 0; padding: var(--space-3) var(--space-4); }
.verdict p { margin: 0; }
.verdict.ok strong { color: var(--hh-ok); }
.verdict.bad strong { color: var(--hh-bad); }
.verdict ul { display: grid; gap: var(--space-1); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--hh-text); }
.verdict li { display: flex; justify-content: space-between; gap: var(--space-4); }
.verdict li.r20 span:last-child { color: var(--hh-ok); }
.verdict li.r21 span:last-child { color: var(--hh-bad); }
.verdict li.r0 span:last-child { color: var(--hh-text-dim); }
.verdict .note { color: var(--hh-text-dim); max-width: none; }

/* Signatures: the kernel's label first, then each check the page made. */
.rows dd.signed { display: grid; gap: var(--space-2); }
.signed strong { font-weight: var(--weight-medium); }
.signed.s1 strong, .signed.s2 strong { color: var(--hh-ok); }
.signed.s3 strong { color: var(--hh-bad); }
.signed p { font-size: var(--text-sm); color: var(--hh-text-dim); max-width: 48rem; }
.signed .checks { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); font-size: var(--text-sm); }
.signed .checks li { display: inline-flex; align-items: center; gap: var(--space-1); }
.signed .checks li.ok { color: var(--hh-ok); }
.signed .checks li.no { color: var(--hh-bad); }
.signed .checks .i { width: var(--hh-icon-small); height: var(--hh-icon-small); }

/* ---- docs and buckets: a reading column, with its contents beside it on a wide screen */
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); align-items: start; }
@media (min-width: 1024px) { .doc-grid:has(.toc) { grid-template-columns: 15rem minmax(0, 1fr); } }
.toc { position: sticky; top: calc(var(--space-16) + var(--space-12)); display: grid; gap: var(--space-1); padding: var(--space-3); }
.toc a { padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--hh-text-dim); transition: color var(--hh-ease), background var(--hh-ease); }
.toc a:hover { color: var(--hh-text); background: var(--hh-fill); }
@media (max-width: 1023px) { .toc { position: static; display: flex; flex-wrap: wrap; } }
.doc { display: grid; gap: var(--space-4); max-width: 64rem; }
.doc .intro { margin: 0; }
.doc section { display: grid; gap: var(--space-3); padding-top: var(--space-4); scroll-margin-top: calc(var(--space-16) + var(--space-12)); }
.doc h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: var(--weight-medium); letter-spacing: var(--tracking-display); }
.doc p { color: var(--hh-text-dim); max-width: 48rem; }
.doc td.prose { font-family: var(--font-sans); white-space: normal; min-width: 16rem; }
.check { display: flex; flex-wrap: wrap; gap: var(--space-3); max-width: 48rem; }
.check .field { flex: 1; min-width: 16rem; height: var(--hh-field); background: color-mix(in srgb, var(--background) 30%, transparent); }
.doc .link { justify-self: start; font-size: var(--text-sm); }

/* A copied line: the prompt, the line itself, the mark. Where the row is
   narrower than the line, an entry's chip ends in an ellipsis and a command
   scrolls, because a command cut short is no longer the command. */
.copy .line { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command .line { overflow: visible; text-overflow: clip; }
.command { scrollbar-width: thin; scrollbar-color: var(--hh-line-strong) transparent; }

/* The footer: what this page proved, and a link to the proof. One line on
   every page, under the content, where the header's row is for the product. */
.foot { display: flex; justify-content: center; padding: var(--space-8) 0 var(--space-4); }
.foot .status { font-family: var(--font-mono); font-size: var(--text-sm); }
:root[data-page="landing"] .foot { display: none; }
:root[data-theme="immersive"] .foot .status { text-shadow: 0 var(--space-1) var(--space-4) color-mix(in srgb, var(--background) 80%, transparent); }

/* ---- parameter count: one bar, two handles.
   The stops are evenly spaced, so each common size gets the same room; the
   two inputs lie over the rail and only their handles take the pointer, which
   is what lets one bar carry two of them. */
.facet.range { gap: var(--space-2); }
.facet.range .marks { position: relative; height: var(--hh-tag); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--hh-text-dim); }
.facet.range .stop { position: absolute; left: var(--at); transform: translateX(-50%); white-space: nowrap; transition: color var(--hh-ease); }
.facet.range .stop:first-child { transform: none; left: 0; }
.facet.range .stop:last-child { transform: none; left: auto; right: 0; }
/* The two chosen stops are read first, so they wear the chip the rest do not. */
.facet.range .stop.on { color: var(--hh-text); padding: 0 var(--space-2); border: 1px solid var(--hh-line-strong); border-radius: var(--radius-sm); background: var(--hh-fill); line-height: var(--hh-tag); }
.bar-track { position: relative; height: var(--hh-control); }
.bar-track .rail, .bar-track .span { position: absolute; top: 50%; height: var(--space-1); border-radius: var(--space-1); transform: translateY(-50%); }
.bar-track .rail { left: 0; right: 0; background: var(--hh-fill); box-shadow: inset 0 0 0 1px var(--hh-line); }
.bar-track .span { left: var(--from); right: calc(100% - var(--to)); background: var(--hh-text); }
.bar-track .handle { position: absolute; left: 0; width: 100%; top: 0; height: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.bar-track .handle:focus-visible { outline: none; }
.bar-track .handle::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: var(--space-5); height: var(--space-5); border-radius: 50%; border: 1px solid var(--hh-line-strong); background: var(--hh-surface); box-shadow: 0 var(--space-1) var(--space-3) var(--hh-shadow); cursor: grab; transition: border-color var(--hh-ease), transform var(--hh-ease); }
.bar-track .handle::-moz-range-thumb { pointer-events: auto; width: var(--space-5); height: var(--space-5); border-radius: 50%; border: 1px solid var(--hh-line-strong); background: var(--hh-surface); box-shadow: 0 var(--space-1) var(--space-3) var(--hh-shadow); cursor: grab; }
.bar-track .handle:hover::-webkit-slider-thumb, .bar-track .handle:focus-visible::-webkit-slider-thumb { border-color: var(--hh-line-focus); transform: scale(1.08); }
.bar-track .handle:hover::-moz-range-thumb, .bar-track .handle:focus-visible::-moz-range-thumb { border-color: var(--hh-line-focus); }
.bar-track .handle:active::-webkit-slider-thumb { cursor: grabbing; }

/* ---- the theme panel: the three looks, a search of Unsplash, nine pictures
   and the photographer's line. The same panel the Prism frame shows, in this
   site's own tokens; the pictures come through the frame's worker, so no page
   here carries a key. */
/* Wide enough for the longest mode name. At 21rem the segmented control cut
   "Immersive" to "Immer..", which is the one word in the panel a reader has
   to be able to read: it names what the pictures below are for. */
.theme-panel { width: min(26rem, calc(100vw - 2 * var(--hh-gutter))); padding: var(--space-4); display: grid; gap: var(--space-3); }
.panel-head { margin: 0; font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--weight-medium); letter-spacing: var(--tracking-display); }
.seg { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--space-1); padding: var(--space-1); border: 1px solid var(--hh-line); border-radius: var(--radius-lg); }
.seg .mode { display: flex; align-items: center; justify-content: center; gap: var(--space-2); height: var(--hh-control); padding: 0 var(--space-3); border: 1px solid transparent; border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--hh-text-dim); transition: color var(--hh-ease), background var(--hh-ease), border-color var(--hh-ease); }
.seg .mode span { white-space: nowrap; }
.seg .mode:hover { color: var(--hh-text); }
.seg .mode[aria-checked="true"] { color: var(--hh-text); background: var(--hh-fill); border-color: var(--hh-line-strong); }
.photos-part { display: grid; gap: var(--space-3); }
.find { height: var(--hh-field); }
/* Six, three to a row. The tiles are the only thing here that may shrink. */
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.photo { aspect-ratio: 1.6; border-radius: var(--radius-md); background-size: cover; background-position: center; outline: 1px solid var(--hh-line-strong); outline-offset: 0; transition: outline-color var(--hh-ease), transform var(--hh-ease); }
.photo:hover { transform: translateY(-1px); outline-color: var(--hh-line-focus); }
.photo[aria-selected="true"] { outline: 2px solid var(--hh-text); outline-offset: 2px; }
.photos .none { grid-column: 1 / -1; font-size: var(--text-sm); color: var(--hh-text-dim); }
.credit { margin: 0; font-size: var(--text-sm); line-height: 1.5; color: var(--hh-text-dim); }
.credit a { color: var(--hh-text); text-decoration: underline; text-underline-offset: var(--space-1); text-decoration-color: var(--hh-line-focus); }
