/* ==========================================================================
   CENTAURI 0.5.0 — the base layer (authored; copied through)
   GENERATED by scripts/generate.mjs from scripts/tokens.source.mjs. Do not edit.
   A local edit is not a disagreement to adjudicate; it is a build that no
   longer reproduces, and scripts/check.mjs will say so.
   ========================================================================== */
/* -----------------------------------------------------------------------------
   CENTAURI — the base layer. Import after the spine and exactly one profile.
   Common to Centauri Console and Centauri Field (ADR-010).

   This file is where the eight invariants of ADR-004 stop being prose. Every
   rule here exists because something in the portfolio was measured getting it
   wrong, and the comment says which.
   -------------------------------------------------------------------------- */

/* THE THEME IS ONE INHERITED PROPERTY.
   light-dark() resolves against the element's used color-scheme, so setting it
   on :root switches the whole palette in one declaration and the dark values are
   written exactly once. A media query plus an attribute selector cannot share a
   block, which means writing every dark value twice, and the second copy is the
   one that drifts. Setting color-scheme rather than swapping variables also gets
   the parts of the page CSS does not paint: form-control internals, the UA
   scrollbar, and the canvas color used before the stylesheet arrives.

   No vendor system in the nineteen-system corpus prescribes this. Centauri does. */
:root { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }

/* `block-size: auto` becomes animatable, which is what lets a disclosure
   expand and collapse with one transition instead of a measured max-height. */
:root { interpolate-size: allow-keywords; }

@layer base {
  *, ::before, ::after {
    border-color: color-mix(in oklab, var(--color-hairline) 65%, transparent);
  }

  html {
    -webkit-tap-highlight-color: transparent;
    /* INVARIANT 2 — ACHROMATIC FOCUS.
       The ring is a neutral, not the brand and not a status hue. The IT consoles
       give the reason and it is the right one: borrowing a semantic hue means
       "this control has keyboard focus" and "this reading is confirmed" arrive
       in the same color. It follows the theme for luminance only. */
    --centauri-ring: light-dark(var(--color-quartz-700), var(--color-quartz-100));
  }

  /* Border-box everywhere, so a layer's `inline-size: 100%` beside a padding
     means the same thing under Tailwind's Preflight and under no framework. */
  *, ::before, ::after { box-sizing: border-box; }

  /* Announced, never seen. A caption, the name of an icon-only control, a heading
   a layout does not draw: each is text a reader who cannot see the arrangement
   needs and a reader who can does not. `clip-path` rather than `display: none`,
   which would take it out of the accessibility tree along with the pixels. */
.centauri-vh {
  position: absolute;
  inline-size: 1px; block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body {
    /* The UA's 8px margin is a value nobody chose, and at 320px it is 5% of the
       viewport: measured 2026-09-10, it was 8 of the 6 pixels by which Field
       overflowed SC 1.4.10's 320px floor. Every other document default here is
       replaced by a Centauri step; this one was simply missed. */
    margin: 0;
    background-color: var(--color-surface);
    color: var(--color-prose);
    font-family: var(--font-sans);
    /* The document default is the profile's body step, not the UA's 16px.
       A base size that is not on your own scale is a step you did not choose. */
    font-size: var(--text-body);
    line-height: var(--text-body--line-height);
    text-rendering: optimizeLegibility;
  }

  /* A DENSITY SUBTREE HAS TO RE-DECLARE ITS OWN SIZE.
     `font-size` inherits as a COMPUTED pixel value, not as the var() that
     produced it, so a subtree that sets data-density gets the new tokens for
     everything that reads them and keeps the parent's body size, because
     nothing re-resolved --text-body there. Measured: a field-profile panel
     inside a console page rendered 14px body with correct 40px controls. */
  [data-density] {
    font-size: var(--text-body);
    line-height: var(--text-body--line-height);
  }

  :where(h1, h2, h3, h4) { font-family: var(--font-sans); text-wrap: balance; }

  /* Focus is a product requirement, not a nicety: an operator triaging a hundred
     rows uses the keyboard. Always visible, never removed, drawn OUTSIDE the
     element so it survives a row that has a background. */
  :where(a, button, [tabindex], summary, input, select, textarea):focus-visible {
    outline: var(--centauri-static-focus-width) solid var(--centauri-ring);
    outline-offset: var(--centauri-static-focus-offset);
    border-radius: var(--radius-chip);
  }

  /* Tailwind v4's Preflight sets buttons to cursor:default and nothing puts the
     pointer back, so every button in every console feels inert under a mouse.
     Measured in this portfolio by slop_scan.py; a one-rule fix that belongs
     here rather than in each of twenty applications. */
  button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; }
  :where(button, [role="button"], a):disabled, [aria-disabled="true"] {
    cursor: not-allowed;
    /* MD3's disabled is not a state layer: content at 38%. The reduced contrast
       IS the affordance, paired with the attribute so assistive tech knows. */
    opacity: 0.38;
  }

  table { border-collapse: separate; border-spacing: 0; }

  /* THE SURFACES THE BROWSER PAINTS AND A DESIGN SYSTEM USUALLY FORGETS.
     A project that defines color tokens and then ships the UA's selection
     highlight, caret and scrollbar is wearing three colors it did not choose.
     slop_scan.py names this "the cheapest signal that a page was built rather
     than assembled", and it is one block. */
/* THE SELECTION HIGHLIGHT IS A SOLVED PAIR, not a borrowed one.

     Until 2026-09-16 this reached for --color-tint, which is the wash under a
     hovered control: 5% on paper, 8% on near-black. Measured against the light
     ground that is 1.03:1 — so the system was painting a selection the reader
     could not see, and the rule that was meant to stop a page wearing the UA's
     colors was doing nothing at all. --color-selection is solved by palette.py
     to clear 2:1 against the worst ground in its theme, and --color-on-selection
     to clear 7:1 against THAT, so both halves of the obligation are measured.

     The other way this goes wrong is worth naming because a product hit it: an
     accent RAMP STEP is one value for both themes, so `background:
     var(--color-accent-100); color: var(--color-accent)` reads as ink on pale
     accent in light and pale accent on pale accent in dark. A painted surface
     takes a light-dark() role or it takes nothing. */
  ::selection {
    background: var(--color-selection);
    color: var(--color-on-selection);
  }
  :where(input, textarea) { caret-color: var(--color-accent); }
  :where(input[type="checkbox"], input[type="radio"], progress) {
    accent-color: var(--color-accent);
  }

  /* THE SELECT POPUP IS THE FOURTH SURFACE THE BROWSER PAINTS, and the one
     every system in the corpus leaves alone because it used to be unreachable.
     It is reachable now (the `base-select` appearance and `::picker`), and a
     product that styles the trigger and not the list ships a menu wearing the
     OS's highlight — which on a dark theme is the one place a light-mode blue
     survives. Same solved pair as the text selection, for the same reason: the
     highlighted row is a row somebody is reading. */
  option:checked, option:hover, option:focus {
    background-color: var(--color-selection);
    color: var(--color-on-selection);
  }

  /* AND THE ROW A PRODUCT DRAWS ITSELF, which is the same row and was the
     same defect twice over.

     Every product eventually draws the list the browser would not let it
     style -- a command palette, a combobox, an autocomplete, a menu -- and
     then has to decide what the current row looks like. Both answers the
     first adoption reached for are surfaces this system already ships, which
     is why nothing caught either:

       * A GROUND STEP as the highlight. Measured 2026-09-16 against that
         product's own palette, `surface-high` on a `surface-container` panel
         is 1.000:1, because the two are one declaration; on the other three
         grounds it spans 1.044 to 1.124. A highlight built out of two grounds
         is not a weak highlight, it is a token swap the reader cannot see,
         and it passes a token check because both halves are tokens. Grounds
         separate SURFACES; they were never a state.
       * The SELECTED STATE LAYER, 12% of the accent, at 1.185 to 1.293:1.
         Right for a control that is already bounded and wrong for a row in a
         list, where the fill is the only thing saying where the keyboard is.

     So the marked row takes the solved pair, exactly as `option:checked`
     does. `:where()` keeps the specificity at zero: this is the answer a
     product gets for free, never one it has to fight.

     HOVER IS DELIBERATELY NOT HERE. A pointer is already on the row, so hover
     confirms rather than finds, and `.centauri-state` (8%) is the mechanism.
     Marking a hovered row the way a selected one is marked would leave a
     reader unable to tell which row they are ON from which row is CHOSEN. */
  :where([role="option"], [role="menuitem"], [role="menuitemradio"],
         [role="menuitemcheckbox"])[aria-selected="true"] {
    background-color: var(--color-selection);
    color: var(--color-on-selection);
  }
  :where(a) { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
  * { scrollbar-color: var(--color-edge) transparent; scrollbar-width: thin; }
}

/* -----------------------------------------------------------------------------
   POINTER ACCOMMODATION — the mechanism that makes density and touch orthogonal.

   Primer is the only system in the corpus that does this, and it is the reason
   Centauri needs two density profiles rather than a separate mobile design: the
   control keeps its visual size and its hit area grows. A dense console opened
   on a tablet keeps its 13px rows and every control becomes reliably hittable.

   This changes NO visual dimension. If it does, it is a bug in the rule.
   -------------------------------------------------------------------------- */
@media (pointer: coarse) {
  /* OPT-IN, and that is a correction rather than a caution. A blanket
     `position: relative` on every <a> creates a containing block on elements
     that did not have one, and an `::after` overlay collides with the
     card-overlay link pattern (AssetTable.tsx:261 spans its row with
     `absolute inset-0`). So the expansion is asked for, on the control that
     wants it. */
  /* ::BEFORE, and that is the whole fix. The state layer below paints on
     ::after, and a control carrying both classes has ONE ::after: same
     specificity, state declared later, so `inset: 0` beats `top/left: 50%`
     and `pointer-events: none` comes along with it. The expansion ended up
     off-center and inert — a 44px token proving nothing about a 44px target.
     Reported 2026-09-10 against a 28px composed button, reproduced, and this
     is why the two mechanisms may never share a pseudo-element again. */
  .centauri-target { position: relative; }
  .centauri-target::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    translate: -50% -50%;
    min-inline-size: var(--centauri-static-target-coarse);
    min-block-size: var(--centauri-static-target-coarse);
    inline-size: 100%; block-size: 100%;
    /* A hit area that paints is a bug — and one that does not receive the
       pointer is not a hit area, so this stays explicit rather than relying on
       the initial value surviving whatever composes with it next. */
    pointer-events: auto;
  }

  /* An input below 16px makes iOS Safari zoom the viewport on focus. Universally
     reproduced, never documented by Apple, so it is treated as reliable folklore
     and honored. The one place a profile's scale is overridden, and it is
     overridden UP. */
  input, select, textarea { font-size: max(var(--text-body), 16px); }
}

/* -----------------------------------------------------------------------------
   THE STATE LAYER — MD3's mechanism, and the four pointer states as one rule.

   The CONTENT color is painted over the component at a token opacity, so hover,
   focus, pressed and selected work on every ground without a second palette.
   craft_lint.py reports the hover-with-no-:active most generated UI ships; this
   is the pair, plus the two a keyboard and a selection produce. Arriving takes
   the enter timing; leaving takes the exit timing, which is what makes a hover
   feel responsive rather than sticky.
   -------------------------------------------------------------------------- */
.centauri-state { position: relative; isolation: isolate; }
.centauri-state::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--centauri-static-exit-fast) var(--ease-in);
}
.centauri-state:hover::after { opacity: var(--centauri-static-state-hover); transition-duration: var(--centauri-static-enter-fast); transition-timing-function: var(--ease-standard); }
.centauri-state:focus-visible::after { opacity: var(--centauri-static-state-focus); }
.centauri-state:active::after { opacity: var(--centauri-static-state-pressed); transition-duration: var(--centauri-static-duration-instant); }
.centauri-state[aria-selected="true"]::after,
.centauri-state[aria-current]::after,
.centauri-state[aria-pressed="true"]::after { opacity: var(--centauri-static-state-selected); }

/* -----------------------------------------------------------------------------
   THE CONTROL. One button, two emphases, and the primary one is spent once per
   screen. Height and horizontal padding come from the profile; the radius, the
   stroke and the states are static.
   -------------------------------------------------------------------------- */
.centauri-button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--centauri-static-gap-icon);
  min-block-size: var(--centauri-scaled-control-height);
  padding-inline: var(--centauri-scaled-control-x);
  border: var(--centauri-static-stroke-edge) solid var(--color-edge);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--color-strong);
  font: inherit; font-size: var(--text-datum); line-height: var(--text-datum--line-height);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: scale var(--centauri-static-exit-fast) var(--ease-in);
}
/* Scale on :active, never on :hover — tactile feedback at the moment of the
   action, not decoration applied to the moment before it. */
.centauri-button:active { scale: 0.98; transition-duration: var(--centauri-static-duration-instant); }
.centauri-button--primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  /* The one foreground that is not a text role: on a light accent (dark theme)
     the readable color is the ground; on a deep accent (light theme) it is the
     card. Both are roles, so both flip with the theme. */
  color: light-dark(var(--color-card), var(--color-surface));
}
.centauri-button--quiet { border-color: transparent; color: var(--color-accent); }

/* -----------------------------------------------------------------------------
   THE SIGNATURE UTILITIES. The ones that survive at 11px.
   -------------------------------------------------------------------------- */

/* INVARIANT 8 — the tracked-caps micro label with a leading rule.
   11px, never 10.42px. Uppercase and tracked 0.14em is the setting that can
   least afford to be small. Confine it to LABELS: uppercase defeats sentence-case
   copy rules for anything longer, and 0.14em costs ~14% width.
   The tracking is --centauri-static-label-tracking rather than a literal,
   because a consumer that draws its own glyphs cannot read this class and still
   has to set the same number (cusa-native, ADR-023 D8). */
.centauri-label {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  line-height: var(--text-micro--line-height);
  letter-spacing: var(--centauri-static-label-tracking);
  text-transform: uppercase;
  color: var(--color-muted);
}
.centauri-label--ruled { display: inline-flex; align-items: center; gap: var(--centauri-static-rule-gap); }
.centauri-label--ruled::before {
  content: "";
  inline-size: var(--centauri-static-rule-length);
  block-size: var(--centauri-static-stroke-hairline);
  background: currentColor;
  flex: none;
}

/* INVARIANT 4 — tabular numerals PER CELL, never global.
   Tabular figures give every digit the width of a zero, which is what makes a
   column compare. It also makes a large standalone figure look loose, which is
   why this is a class and not a body rule. */
.centauri-value {
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: var(--centauri-static-value-tracking);
  font-size: var(--text-datum);
  line-height: var(--text-datum--line-height);
}
.centauri-value--mono { font-family: var(--font-mono); }

/* INVARIANT 5 — rules, not boxes.
   A hairline separates; a box contains something that is genuinely a container.
   direction_check.py measured 121 card-shaped containers against 102 sections on
   the marketing site and reported card-monoculture. */
.centauri-rows > * + * { border-top: var(--centauri-static-stroke-hairline) solid var(--color-hairline); }

/* AND THE ROW'S INSET IS THE CELL'S INSET.
   `.centauri-rows` gave the rule and said nothing about padding, which sounds
   like restraint and is not: a list row and a table row are the same row to a
   reader, and when the system supplies one number and not the other, every
   list invents the missing one. Measured on a Console product 2026-09-16 --
   one list at `px-4 py-3`, another at `px-5 py-4`, and the scheduler's at
   `py-3` with no horizontal inset at all, so its text ran edge to edge against
   the card while the identical list two files away did not. Three insets, none
   of them chosen, on one screen each.

   So it is the SAME token the table cell takes, and a row beside a table lines
   up with it by construction. Opt-in per row rather than `.centauri-rows > *`,
   because a descendant selector at that specificity ties with a utility class
   and the winner is whichever stylesheet came last. */
.centauri-row {
  padding-inline: var(--centauri-scaled-cell-x);
  padding-block: var(--centauri-scaled-cell-y);
  min-block-size: var(--centauri-scaled-row-height);
}

/* INVARIANT 7 — THE DIMENSION LINE, the signature object (ADR-009).
   A quantity drawn to a stated domain: a hairline whose LENGTH is the value,
   terminated at both ends by a tick, so a column ranks without being sorted and
   survives print, greyscale and every color-vision deficiency. Set --value and
   --domain on the element; the length is the fraction of --centauri-dimension-length.
   An earlier draft capped the bar rather than the domain and drew 9.8 and 9.1 at
   the same length, which is the defect this rule forbids: the domain is fixed
   across rows and stated on the sheet. */
.centauri-dimension {
  --value: 0; --domain: 100;
  --centauri-dimension-length: 120px;
  display: inline-block; vertical-align: middle;
  position: relative;
  inline-size: calc(var(--value) / var(--domain) * var(--centauri-dimension-length));
  min-inline-size: var(--centauri-static-stroke-hairline);
  block-size: var(--centauri-static-tick-length);
  border-block-end: var(--centauri-static-stroke-hairline) solid currentColor;
  color: var(--color-edge-strong);
}
.centauri-dimension::before, .centauri-dimension::after {
  content: "";
  position: absolute; inset-block: 0;
  inline-size: var(--centauri-static-stroke-hairline);
  background: currentColor;
}
.centauri-dimension::before { inset-inline-start: 0; }
.centauri-dimension::after { inset-inline-end: 0; }

/* THE MARK — a status drawn rather than written (ADR-008). The fill is pastel
   and owes only greyscale rank; the 3:1 obligation is carried by the edge it
   is drawn with, in both themes. Square, because a drawing has no discs. */
.centauri-mark {
  display: inline-block; vertical-align: middle;
  inline-size: 10px; block-size: 10px;
  border-radius: var(--radius-chip);
  background: var(--color-mark-inert);
  box-shadow: inset 0 0 0 var(--centauri-static-stroke-edge) var(--color-edge);
}
.centauri-mark[data-status="critical"] { background: var(--color-mark-critical); }
.centauri-mark[data-status="warning"]  { background: var(--color-mark-warning); }
.centauri-mark[data-status="success"]  { background: var(--color-mark-success); }
.centauri-mark[data-status="notice"]   { background: var(--color-mark-notice); }
/* A person, never a measurement: the one pill in the system. */
.centauri-mark--person { border-radius: var(--radius-pill); }

/* -----------------------------------------------------------------------------
   MOTION — one animation per verb (ADR-010 §10).

   Every surface that arrives, leaves, expands or collapses does so with the
   same transition as every other, because these are the only implementations.
   Enter and exit are not symmetric: the exit is shorter and travels less,
   because the user has already moved on. Nothing here animates a value.
   -------------------------------------------------------------------------- */
@keyframes centauri-enter { from { opacity: 0; translate: 0 4px; } }
@keyframes centauri-exit  { to   { opacity: 0; translate: 0 2px; } }
.centauri-enter { animation: centauri-enter var(--centauri-static-enter-base) var(--ease-out) both; }
.centauri-exit  { animation: centauri-exit  var(--centauri-static-exit-base)  var(--ease-in)  both; }

/* EXPAND / COLLAPSE — a <details> is the disclosure. Collapse takes the exit
   timing, expand the enter timing, and `content-visibility` transitions
   discretely so the content stays interactive until the box has closed. */
.centauri-disclosure::details-content {
  block-size: 0; overflow: clip;
  transition: block-size var(--centauri-static-exit-base) var(--ease-in),
              content-visibility var(--centauri-static-exit-base) allow-discrete;
}
.centauri-disclosure[open]::details-content {
  block-size: auto;
  transition-duration: var(--centauri-static-enter-base);
  transition-timing-function: var(--ease-out);
}
.centauri-disclosure > summary { cursor: pointer; list-style: none; }
.centauri-disclosure > summary::-webkit-details-marker { display: none; }

@media (prefers-reduced-motion: reduce) {
  /* Shortened, not removed. `transition: none` means no transitionend ever
     fires, and anything unmounting on that event stays on screen. 0.01ms still
     completes and still fires. */
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0.01ms !important;
    transition-duration: 0.01ms !important;
    /* A delay left standing is the shortening undone: a 300ms delay under this
       setting is 300ms of nothing, then an instant change. The verb must still
       start, complete and fire its event -- see references/motion.md § The
       lifecycle contract -- and a delay defers all three. */
    transition-delay: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -----------------------------------------------------------------------------
   THE HEAD OF A SURFACE — the home of an action, and of the label that says
   what you are looking at.

   A PAGE ACTION BINDS TO THE SMALLEST THING IT CHANGES.

   This is the mechanism for a defect the system had no answer to, and the
   absence showed: measured across a twenty-module Console product on
   2026-09-16, eighteen pages drew their primary action as the only child of a
   right-aligned header row. Where the page also suppressed its own title —
   because the navigation had already said the word, which is the right call —
   the row had nothing on its leading edge at all, so the action floated in a
   band of whitespace ~110px tall, bound to nothing, above content it may or may
   not have acted on. The same band was collecting the labels that had nowhere
   else to go: a calendar's month sat in it, 340px above the grid it named, with
   an unrelated filter panel in between.

   Neither is a spacing bug. Both are one missing slot, and the rule that fills
   it has to answer WHICH slot rather than merely reserving one:

     - An action that changes ONE surface — a list, a table, a panel, a grid —
       belongs to that surface's own head. `.centauri-panelhead`.
     - Only an action that changes the WHOLE PAGE gets a page-level rail.
       `.centauri-pagerail`.
     - Context sits on the leading edge, actions on the trailing edge, one
       hairline underneath (invariant 5: a rule separates, a box contains).

   AND A HEAD WITH NOTHING ON ITS LEADING EDGE IS NOT A HEAD. That is the part
   that has to be mechanical rather than advisory, because "put something on the
   left" is exactly the instruction the eighteen pages were already failing. The
   refusal below strips the rule, the height and the block padding from a head
   that has no context slot, and drops the `auto` margin that was pushing the
   actions to the far edge — so a head somebody gets wrong collapses to the
   controls themselves on the leading edge, which is harmless, instead of
   reserving an empty band, which is the defect. `screen_probe.py` reports it as
   HEAD001 so it is fixed rather than tolerated.
   -------------------------------------------------------------------------- */
.centauri-panelhead,
.centauri-pagerail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--centauri-scaled-3);
  min-block-size: var(--centauri-scaled-row-height);
  padding-block: var(--centauri-scaled-2);
  border-block-end: var(--centauri-static-stroke-hairline) solid var(--color-hairline);
}

/* A panel head is inside a container and takes the container's own inset, so it
   lines up with the cells below it. A page rail has no container: its leading
   edge IS the content column's. */
.centauri-panelhead { padding-inline: var(--centauri-scaled-cell-x); }
.centauri-pagerail  { padding-inline: 0; margin-block-end: var(--centauri-scaled-4); }

.centauri-head__context {
  display: flex;
  align-items: center;
  gap: var(--centauri-scaled-2);
  /* A long title truncates rather than wrapping the actions off the row --
     the same defect the nav rail had (roadmap 2026-09-10), and the same fix:
     `text-overflow` does nothing without `white-space`, and a flex child needs
     `min-inline-size: 0` before it will shrink below its content at all. */
  min-inline-size: 0;
}
.centauri-head__title {
  font-size: var(--text-datum);
  line-height: var(--text-datum--line-height);
  font-weight: 600;
  color: var(--color-strong);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-inline-size: 0;
}
.centauri-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--centauri-scaled-2);
  margin-inline-start: auto;
}

/* THE REFUSAL. See the note above: an actions-only head is the defect itself,
   so the mechanism declines to draw the band that makes it look deliberate. */
.centauri-panelhead:not(:has(> .centauri-head__context)),
.centauri-pagerail:not(:has(> .centauri-head__context)) {
  min-block-size: 0;
  padding-block: 0;
  border-block-end: 0;
}
.centauri-panelhead:not(:has(> .centauri-head__context)) > .centauri-head__actions,
.centauri-pagerail:not(:has(> .centauri-head__context)) > .centauri-head__actions {
  margin-inline-start: 0;
}

/* Under 600px the head stacks: a row that has to hold a title and two controls
   on a phone either wraps into something unreadable or truncates the title to
   nothing. Stacked, the context keeps its line and the actions keep theirs, and
   the actions stretch so a single primary action is full-width and hittable. */
@media (max-width: 599px) {
  .centauri-panelhead,
  .centauri-pagerail {
    align-items: stretch;
    flex-direction: column;
    gap: var(--centauri-scaled-2);
  }
  .centauri-head__actions { margin-inline-start: 0; }
}
