/* Permanent portal shell — spatial materials.
   Source of truth: Figma "02 Approved Spatial Architecture Mapping" (full
   annotation text read, not just the filename) + the four canonical
   concept images (Spatial Landmark, Object Permanence, Table Operating
   Law, Compact Human Journey), all visually inspected before writing this
   file. Palette and type are NOT invented: every color below is one of the
   seven real HVI brand tokens already defined in web/landing.html
   (--green/--green-deep for the glass/environment tint, --heirloom for the
   warm gold, --warm for the "decision required" red, --paper/--khaki for
   text, --mono for tracked small-caps labels) — pushed dark and atmospheric
   to match the approved artwork, never swapped for an unrelated hue.

   Non-negotiable check used while writing every rule below: with the
   HEIRLOOM OS labels removed, this must not still read as a conventional
   light SaaS dashboard. Dark void, glass with real depth (layered shadows,
   backdrop blur), gold structural lines, no card grids, no sidebar driving
   the experience, no footer Boundary, no text-strip Horizon. */

:root {
  --hz-void: #07080a;
  --hz-void-deep: #030304;
  --hz-glass: rgba(79, 86, 60, 0.16);       /* --green at low alpha */
  --hz-glass-strong: rgba(63, 66, 48, 0.32); /* --green-deep at higher alpha */
  --hz-glass-border: rgba(186, 174, 150, 0.22); /* --khaki at low alpha */
  --hz-gold: #c2a06a;      /* lightened --heirloom for dark-ground legibility */
  --hz-gold-dim: #946C46;  /* --heirloom, as brand-defined */
  --hz-gold-glow: rgba(194, 160, 106, 0.35);
  --hz-ink: #e3dacc;       /* --paper, used as light text on dark ground */
  --hz-ink-muted: #a89c86; /* --khaki, brightened slightly for AA contrast on void */
  --hz-decision: #b1584f;     /* --warm, lightened for glow-on-black legibility */
  --hz-decision-deep: #664747; /* --warm, as brand-defined */
  --hz-decision-glow: rgba(177, 88, 79, 0.45);
  --hz-focus: #e4c988; /* gold-family focus ring, distinct from decision-red and body gold */
  --hz-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --hz-sans: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* The legacy header (pre-dates this shell: nav-toggle, an "HeirloomOS" h1,
   the server-status pill, the real header logout button) sits as a body
   sibling before this shell in the DOM. Its own light styling is still
   correct for it, but left unstyled here it renders a plain white bar
   above the shell's dark chrome -- exactly the "conventional SaaS
   dashboard" look this rebuild exists to end. Restyled dark and minimal;
   its h1 is redundant with the shell's own wordmark and is hidden, not the
   real, still-wired status pill and logout button. */
/* The document ground itself must be the void — a white body behind the
   shell reappears on overscroll and reads as exactly the pale dashboard
   canvas this rebuild forbids. Scoped with :has so the standalone jsdom
   harness (which never runs shell.js and so never mounts #heirloom-shell)
   keeps the legacy light ground its assertions were written against. */
body:has(#heirloom-shell) {
  background: var(--hz-void-deep);
}

body > header {
  background: var(--hz-void-deep);
  border-bottom: 1px solid var(--hz-glass-border);
  color: var(--hz-ink-muted);
  padding: 0.3rem 1.5rem;
  min-height: 0;
  /* The workstation depth layer is a fixed overlay; this header (status
     pill + the real logout control) must stay above it like the chrome
     does, or the layer's scrolling content shows through the top band. */
  position: relative;
  z-index: 55;
}
body > header h1 {
  /* Visually redundant with the shell's own wordmark, but it is the page's
     one <h1> — remove it from sight, never from assistive tech
     (axe: page-has-heading-one). */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
body > header .status-pill {
  background: transparent;
  color: var(--hz-ink-muted);
  font-family: var(--hz-mono);
  font-size: 0.68rem;
  border: none;
}
body > header .nav-toggle {
  color: var(--hz-ink);
  border-color: var(--hz-glass-border);
}
body > header .nav-toggle-bars {
  /* The legacy hamburger glyph draws its bars with absolutely positioned
     pseudo-elements that collide with the label at this font stack; the
     word "Menu" alone is the clearer control in this chrome. */
  display: none;
}
body > header #shell-logout {
  font-family: var(--hz-mono);
  font-size: 0.72rem;
  background: transparent;
  border: 1px solid var(--hz-glass-border);
  color: var(--hz-gold);
  border-radius: 3px;
}

/* loginForm() is shared, legacy-styled markup (inline styles, built for
   the light workstation area) -- when it renders inside the dark Table
   (the signed-out state), it needs real contrast, not a scoped rewrite of
   the shared component itself. */
.hz-table #login-form,
.hz-table #register-form,
.hz-table #redeem-form {
  color: var(--hz-ink);
}
.hz-table input,
.hz-table select,
.hz-table textarea {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid var(--hz-glass-border) !important;
  color: var(--hz-ink) !important;
}
.hz-table button[type="submit"],
.hz-table button[type="button"] {
  background: var(--hz-glass);
  border: 1px solid var(--hz-glass-border);
  color: var(--hz-gold);
  border-radius: 3px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}
.hz-table .auth-error {
  color: #e0938c;
}

#heirloom-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--hz-void);
  color: var(--hz-ink);
  font-family: var(--hz-sans);
  /* Legacy content rendered INTO the shell (loginForm() on the signed-out
     Table, most of it inline-styled against the legacy tokens) must
     resolve those tokens to this environment, not to the light :root. */
  --bg: transparent;
  --fg: var(--hz-ink);
  --muted: var(--hz-ink-muted);
  --line: var(--hz-glass-border);
  --accent: #aeb383;
  --accent-bg: rgba(79, 86, 60, 0.28);
  --focus: var(--hz-focus);
  --danger: #e0938c;
  --warn: var(--hz-gold);
}

/* ---------------------------------------------------------------------- */
/* Persistent chrome — element #1-4 of the approved mapping.              */
/* ---------------------------------------------------------------------- */

.hz-chrome {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.7rem 1.5rem;
  /* Fully opaque: at 0.94 alpha, workstation text scrolling beneath the
     wrapped mobile chrome ghosted through on near-black (dark-adapted eyes
     resolve a 5% luminance bleed). The glass reading survives via the
     border and shadow. */
  background: linear-gradient(180deg, var(--hz-void-deep) 0%, #030304 100%);
  border-bottom: 1px solid var(--hz-glass-border);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.6);
}

.hz-wordmark {
  font-family: var(--hz-mono);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hz-ink);
  font-size: 0.92rem;
  white-space: nowrap;
}

.hz-tier {
  font-family: var(--hz-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hz-ink-muted);
  border-left: 1px solid var(--hz-glass-border);
  padding-left: 1rem;
  white-space: nowrap;
}

.hz-suite-btn,
.hz-return-btn {
  font-family: var(--hz-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--hz-glass-border);
  background: var(--hz-glass);
  color: var(--hz-gold);
  border-radius: 3px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hz-suite-btn:hover,
.hz-return-btn:hover {
  border-color: var(--hz-gold-glow);
  box-shadow: 0 0 0 1px var(--hz-gold-glow) inset;
}

.hz-summon {
  flex: 1 1 auto;
  max-width: 30rem;
}
.hz-summon input {
  width: 100%;
  padding: 0.45rem 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--hz-glass-border);
  border-radius: 3px;
  color: var(--hz-ink);
  font-family: var(--hz-sans);
}
.hz-summon input::placeholder {
  color: var(--hz-ink-muted);
}

.hz-authority {
  position: relative;
  margin-left: auto;
}
.hz-authority > button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--hz-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--hz-glass-border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--hz-ink);
  border-radius: 3px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}
.hz-authority > button::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6f9e7a;
  box-shadow: 0 0 6px 1px rgba(111, 158, 122, 0.7);
  flex: none;
}
.hz-context-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.4rem;
  background: var(--hz-void-deep);
  border: 1px solid var(--hz-glass-border);
  border-radius: 4px;
  min-width: 18rem;
  list-style: none;
  padding: 0.3rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
}
.hz-context-menu li button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  border-radius: 3px;
  color: var(--hz-ink);
  font-size: 0.85rem;
}
.hz-context-menu li button:hover,
.hz-context-menu li button:focus-visible {
  background: var(--hz-glass);
}

/* ---------------------------------------------------------------------- */
/* The void — everything below chrome lives on this dark stage.           */
/* ---------------------------------------------------------------------- */

#hz-landmarks {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(79, 86, 60, 0.22) 0%, transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0px, transparent 1px, transparent 48px),
    var(--hz-void);
}

.hz-landmark-label {
  font-family: var(--hz-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hz-gold);
  margin: 0 0 0.75rem;
  padding-left: 0.6rem;
  border-left: 2px solid var(--hz-gold-dim);
}

/* ---------------------------------------------------------------------- */
/* Horizon — element #5-9. A forward-looking arc, not a text strip.       */
/* ---------------------------------------------------------------------- */

.hz-horizon {
  position: relative;
  padding: 2rem 2.5rem 2.5rem;
  overflow: hidden;
}
.hz-horizon::before {
  /* the terrain glow — a low, wide arc of light suggesting distant peaks,
     aria-hidden by construction (a ::before pseudo-element carries no
     text and is never focusable) so the real semantics live in the
     forecast items themselves, never this line. */
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: -18rem;
  height: 20rem;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 100%, rgba(111, 158, 122, 0.16) 0%, transparent 70%);
  border-top: 1px solid rgba(194, 160, 106, 0.18);
  pointer-events: none;
}

.hz-horizon-body,
.hz-horizon-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.25rem;
}
.hz-horizon-list li {
  padding: 1rem 1.1rem;
  background: var(--hz-glass);
  border: 1px solid var(--hz-glass-border);
  border-top: 2px solid var(--hz-gold-dim);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--hz-ink);
}

/* ---------------------------------------------------------------------- */
/* Continuity Field — other resumable matters. A reachable row of small   */
/* glass chips above the Table, never a tab bar (doctrine, verbatim).     */
/* ---------------------------------------------------------------------- */

.hz-continuity {
  position: relative;
  padding: 0 2.5rem;
  margin-top: 0.5rem;
}
.hz-continuity-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.hz-continuity-list li {
  flex: none;
}
.hz-continuity-list button {
  font-family: var(--hz-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.9rem;
  background: rgba(79, 86, 60, 0.22);
  border: 1px solid var(--hz-glass-border);
  border-radius: 4px;
  color: var(--hz-ink-muted);
  cursor: pointer;
  max-width: 16rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hz-continuity-list button:hover,
.hz-continuity-list button:focus-visible {
  color: var(--hz-ink);
  border-color: var(--hz-gold-glow);
}

/* ---------------------------------------------------------------------- */
/* The Table — element #10. A real dimensional plane, not a card.         */
/* ---------------------------------------------------------------------- */

.hz-table-stage {
  position: relative;
  padding: 3rem 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.hz-table {
  position: relative;
  max-width: 58rem;
  width: 100%;
  padding: 2.5rem 2.5rem 2rem;
  background:
    linear-gradient(155deg, rgba(79, 86, 60, 0.22) 0%, rgba(63, 66, 48, 0.08) 55%, rgba(0, 0, 0, 0.15) 100%);
  border: 1px solid var(--hz-glass-border);
  border-radius: 10px;
  box-shadow:
    0 1px 0 rgba(227, 218, 204, 0.08) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.8),
    0 0 80px -30px rgba(111, 158, 122, 0.25);
  backdrop-filter: blur(6px);
}
.hz-table h2 {
  margin: 0 0 1.5rem;
  font-family: var(--hz-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hz-gold);
  font-weight: 500;
}

.oc-title {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--hz-ink);
  background: linear-gradient(160deg, var(--hz-decision) 0%, var(--hz-decision-deep) 100%);
  padding: 0.9rem 1.4rem;
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 14px 30px -10px var(--hz-decision-glow),
    0 0 0 1px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.75rem;
}
.oc-status {
  font-weight: 400;
  font-family: var(--hz-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hz-ink);
  border: 1px solid rgba(227, 218, 204, 0.4);
  border-radius: 1rem;
  padding: 0.15rem 0.6rem;
  margin-left: 0.6rem;
  vertical-align: middle;
}

.hz-table-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.oc-dim {
  margin: 0;
  padding: 1rem 1.2rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--hz-glass-border);
  border-radius: 6px;
}
.oc-dim h4 {
  margin: 0 0 0.4rem;
  font-family: var(--hz-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hz-gold);
}
.oc-dim-empty {
  color: var(--hz-ink-muted);
  font-style: italic;
  margin: 0;
  font-size: 0.88rem;
}
.oc-dim ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--hz-ink);
  font-size: 0.88rem;
}

/* ---------------------------------------------------------------------- */
/* Threshold — element #17-20. A distinct vertical apparatus beside the   */
/* Table, never a form panel or modal.                                    */
/* ---------------------------------------------------------------------- */

.hz-threshold {
  position: relative;
  width: 16rem;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(79, 86, 60, 0.1) 100%);
  border: 1px solid var(--hz-glass-border);
  border-radius: 10px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}
.hz-threshold h2 {
  margin: 0 0 1.25rem;
  font-family: var(--hz-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hz-gold);
  font-weight: 500;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--hz-glass-border);
}

.oc-action {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(186, 174, 150, 0.12);
}
.oc-action:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.oc-action > button {
  width: 100%;
  text-align: left;
  font-family: var(--hz-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 0.6rem 0.8rem;
  background: rgba(194, 160, 106, 0.12);
  border: 1px solid var(--hz-gold-dim);
  border-radius: 4px;
  color: var(--hz-gold);
  cursor: pointer;
}
.oc-action > button:disabled {
  color: var(--hz-ink-muted);
  border-color: var(--hz-glass-border);
  background: transparent;
  cursor: not-allowed;
}
.oc-action-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.oc-action-form[hidden] {
  display: none;
}
.oc-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--hz-ink-muted);
}
.oc-field input {
  padding: 0.4rem 0.55rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--hz-glass-border);
  border-radius: 3px;
  color: var(--hz-ink);
}
.oc-action-reason,
.oc-notice {
  color: var(--hz-ink-muted);
  font-size: 0.78rem;
}

/* ---------------------------------------------------------------------- */
/* Foundation — element #21-25. Five plaques on a recessed shelf.         */
/* ---------------------------------------------------------------------- */

.hz-foundation {
  position: relative;
  margin: 2.5rem 2.5rem 0;
  padding: 1.75rem 2rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.12) 100%);
  border: 1px solid var(--hz-glass-border);
  border-top: 1px solid rgba(194, 160, 106, 0.15);
  border-radius: 8px;
  box-shadow: 0 -1px 0 rgba(227, 218, 204, 0.05) inset;
}

.hz-foundation-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.hz-foundation .oc-dim {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  text-align: center;
  padding: 1.1rem 0.8rem;
}
.hz-foundation .oc-dim h4 {
  color: var(--hz-gold);
}

/* ---------------------------------------------------------------------- */
/* Boundary — element #26-29. The outer edge, never a footer.             */
/* ---------------------------------------------------------------------- */

.hz-boundary {
  margin-top: auto;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  border-top: 1px solid var(--hz-glass-border);
}
.hz-boundary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.5rem 1.5rem;
}
.hz-boundary-item {
  font-family: var(--hz-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hz-ink-muted);
}
.hz-boundary-item strong {
  color: var(--hz-gold);
  display: block;
  margin-bottom: 0.15rem;
}

/* ---------------------------------------------------------------------- */
/* The depth layer — a workstation open on top of the permanent shell.    */
/* ---------------------------------------------------------------------- */

#workstation-layer {
  position: fixed;
  inset: 0;
  top: 0;
  z-index: 40;
  background: var(--bg);
  overflow: auto;
  /* --hz-top-inset is MEASURED by shell.js (header + chrome real height,
     kept current by a ResizeObserver) — never a per-breakpoint guess. */
  padding-top: var(--hz-top-inset, 7.8rem);
}
#workstation-layer[hidden] {
  display: none;
}

/* Plain links inside the shell. Nothing styled them, so every <a> a
   workstation or the sign in form rendered fell back to the browser's
   default blue: about 2:1 against the void, under half the 4.5:1 AA floor.
   axe cannot catch it here because the ground is a gradient, so it reports
   the contrast as undeterminable rather than failing it. --hz-gold is the
   token already defined for text on this ground (about 8:1). A link that
   sets its own class or colour keeps it. */
body:has(#heirloom-shell) main a:not([class]),
body:has(#heirloom-shell) main a:not([class]):visited {
  color: var(--hz-gold);
}
body:has(#heirloom-shell) main a:not([class]):hover {
  color: var(--hz-focus);
}

/* ---------------------------------------------------------------------- */
/* Accessibility and motion.                                              */
/* ---------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--hz-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .hz-suite-btn,
  .hz-return-btn,
  .hz-continuity-list button {
    transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  }
}

/* ---------------------------------------------------------------------- */
/* Tablet — 768–1024. Threshold moves under the Table; density tightens.  */
/* ---------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hz-chrome {
    flex-wrap: wrap;
  }
  .hz-summon {
    order: 5;
    max-width: none;
    flex-basis: 100%;
  }
  .hz-table-stage {
    grid-template-columns: 1fr;
  }
  .hz-threshold {
    width: 100%;
  }
  .hz-foundation-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------------------------------------------------------------------- */
/* Mobile — up to 640px. Sequential spatial stages, not a stacked         */
/* dashboard: Continuity Field becomes a swipeable strip (already is,     */
/* via overflow-x), the Table/Foundation/Threshold each remain distinct,  */
/* self-shadowed objects the visitor moves between, never flattened into  */
/* one plain list.                                                       */
/* ---------------------------------------------------------------------- */

@media (max-width: 640px) {
  .hz-chrome {
    flex-wrap: wrap;
    padding: 0.6rem 1rem;
  }
  .hz-tier {
    display: none;
  }
  .hz-summon {
    order: 3;
    max-width: none;
    flex-basis: 100%;
  }
  .hz-authority {
    margin-left: 0;
  }

  .hz-horizon,
  .hz-continuity,
  .hz-foundation,
  .hz-boundary {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
  .hz-table-stage {
    padding: 2rem 1.1rem 1.5rem;
    gap: 1.5rem;
  }
  .hz-table {
    padding: 1.75rem 1.25rem 1.5rem;
    scroll-margin-top: 1rem;
  }
  .hz-table-grid {
    grid-template-columns: 1fr;
  }
  .hz-foundation {
    margin: 2rem 1.1rem 0;
  }
  .hz-foundation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .oc-title {
    font-size: 1.1rem;
    display: block;
  }
}

/* ---------------------------------------------------------------------- */
/* The dimensional Table — approved production geometry via the approved  */
/* @hvi/table-renderer (web/tableStage.js). The stage band sits inside    */
/* the Table section above the Current Matter; the semantic UI below it   */
/* is untouched. The fallback image IS the loading / no-WebGL /           */
/* reduced-transparency / save-data state, per the component's contract.  */
/* ---------------------------------------------------------------------- */

.hz-table-visual {
  position: relative;
  width: 100%;
  height: 300px;
  margin: 0 0 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--hz-glass-border);
  background: var(--hz-void-deep);
}
.hz-table-visual-fallback,
.hz-table-visual-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hz-table-visual-canvas {
  opacity: 0;
}
.hz-table-visual-canvas[data-ready="true"] {
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .hz-table-visual-canvas {
    transition: opacity 0.6s ease;
  }
}
@media (max-width: 1024px) {
  .hz-table-visual { height: 240px; }
}
@media (max-width: 640px) {
  .hz-table-visual { height: 200px; }
}

/* ── Search & Summon type-ahead (web/summon.js) ─────────────────────── */
.hz-summon-anchored { position: relative; }
.hz-summon-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0;
  padding: 0.25rem;
  list-style: none;
  background: var(--hz-void-deep, #0a0b0d);
  border: 1px solid var(--hz-glass-border, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  max-height: 21rem;
  overflow-y: auto;
}
.hz-summon-opt {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
}
.hz-summon-opt.is-active { background: rgba(255, 255, 255, 0.08); }
.hz-summon-opt-meta { color: var(--hz-ink-muted); font-size: 0.78rem; white-space: nowrap; }
.hz-summon-opt-workstation .hz-summon-opt-label { letter-spacing: 0.02em; }
