/* Welvets component library.
   Reusable families built only from tokens.css roles. Screens and component
   pages compose from these classes. Each family names its component page in
   design-system/components/.

   Order matters: families are listed in cascade order, and a later family may
   refine an earlier one on the same element.

   Screen styles copied from Paper are not here. They live in
   screens/_shared/<flow>.css, one file per flow, and are replaced by these
   families as each flow is next changed. Do not add page-specific classes to
   this file: add a family (with its component page) or a few lines of layout
   in the screen's own <style>. */

/* Base -------------------------------------------------------------------- */
/* The dark ground, the body font and border-box sizing everywhere. */

html {
  background: var(--color-ground);
  color: var(--color-ink);
}
body {
  margin: 0;
  font-family: var(--font-body);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Text utilities ---------------------------------------------------------- */
/* Mono figures for data, and the soft and mute ink shortcuts. */

.mono,
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.num {
  font-weight: var(--font-weight-regular);
}
.soft {
  color: var(--color-ink-soft);
}
.mute {
  color: var(--color-ink-mute);
}
.wm {
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-title);
}

/* Buttons ----------------------------------------------------------------- */
/* Kinds: primary (48 px, accent), secondary (velvet), quiet (outline),
   destructive (rowan outline). States, as static classes for the component
   page: default, hover, focus, pressed, disabled, loading. Page:
   components/buttons.html. */

.button-primary {
  align-items: center;
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  border-radius: var(--radius-control);
  border-style: solid;
  border-width: 1px;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  gap: 10px;
  height: 48px;
  justify-content: center;
  padding-inline: 20px;
  color: var(--color-on-accent);
  font-size: var(--text-body);
  line-height: 18px;
}
.button-secondary {
  align-items: center;
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  border-radius: var(--radius-control);
  border-style: solid;
  border-width: 1px;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  height: 44px;
  justify-content: center;
  padding-inline: 18px;
  color: var(--color-on-secondary);
  font-size: var(--text-body);
  line-height: 18px;
}
.button-quiet {
  align-items: center;
  border-color: var(--color-line-strong);
  border-radius: var(--radius-control);
  border-style: solid;
  border-width: 1px;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: var(--font-weight-medium);
  height: 44px;
  justify-content: center;
  padding-inline: 18px;
  color: var(--color-ink);
  font-size: var(--text-body);
  line-height: 18px;
}
.button-destructive {
  align-items: center;
  border-color: var(--color-status-danger);
  border-radius: var(--radius-control);
  border-style: solid;
  border-width: 1px;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: var(--font-weight-medium);
  height: 44px;
  justify-content: center;
  padding-inline: 18px;
  color: var(--color-status-danger);
  font-size: var(--text-body);
  line-height: 18px;
}
.button-default {
  align-items: center;
  background-color: var(--color-accent);
  border-radius: var(--radius-control);
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-body);
  height: 48px;
  justify-content: center;
  color: var(--color-on-accent);
  font-size: var(--text-body);
  line-height: 18px;
}
.button-hover {
  align-items: center;
  background-color: var(--color-accent);
  border-color: var(--color-ink);
  border-radius: var(--radius-control);
  border-style: solid;
  border-width: 2px;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-body);
  height: 48px;
  justify-content: center;
  color: var(--color-on-accent);
  font-size: var(--text-body);
  line-height: 18px;
}

/* Focus ring -------------------------------------------------------------- */
/* The 2 px accent ring around a focused control. Page:
   components/accessibility.html. */

.focus-ring {
  border-color: var(--color-accent);
  border-radius: var(--radius-focus-ring);
  border-style: solid;
  border-width: 2px;
  box-sizing: border-box;
  padding: 3px;
}
.button-focus {
  align-items: center;
  background-color: var(--color-surface-raised);
  border-radius: var(--radius-control);
  box-sizing: border-box;
  display: flex;
  font-family: var(--font-body);
  height: 40px;
  justify-content: center;
  color: var(--color-ink);
  font-size: var(--text-body);
  line-height: 18px;
}
.button-pressed {
  align-items: center;
  background-color: var(--color-accent-press);
  border-radius: var(--radius-control);
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-body);
  height: 48px;
  justify-content: center;
  color: var(--color-on-accent);
  font-size: var(--text-body);
  line-height: 18px;
}
.button-disabled {
  align-items: center;
  background-color: var(--color-surface-high);
  border-color: var(--color-line);
  border-radius: var(--radius-control);
  border-style: solid;
  border-width: 1px;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-body);
  height: 48px;
  justify-content: center;
  color: var(--color-ink-mute);
  font-size: var(--text-body);
  line-height: 18px;
}
.button-loading {
  align-items: center;
  background-color: var(--color-accent-tint);
  border-color: var(--color-accent);
  border-radius: var(--radius-control);
  border-style: solid;
  border-width: 1px;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-body);
  gap: 10px;
  height: 48px;
  justify-content: center;
  color: var(--color-ink);
  font-size: var(--text-body);
  line-height: 18px;
}

/* Fields ------------------------------------------------------------------ */
/* Text field (48 px), invalid, search, select and inherited (read-only).
   Labels and hints are in "Field parts" below. Page: components/forms.html. */

.field {
  align-items: center;
  background-color: var(--color-ground);
  border-color: var(--color-line-strong);
  border-radius: var(--radius-control);
  border-style: solid;
  border-width: 1px;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-body);
  height: 48px;
  padding-inline: 14px;
}
.field-invalid {
  align-items: center;
  background-color: var(--color-ground);
  border-color: var(--color-status-danger);
  border-radius: var(--radius-control);
  border-style: solid;
  border-width: 1px;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-body);
  height: 48px;
  padding-inline: 14px;
}
.field-search {
  align-items: center;
  background-color: var(--color-ground);
  border-color: var(--color-line-strong);
  border-radius: var(--radius-control);
  border-style: solid;
  border-width: 1px;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  height: 48px;
  padding-inline: 14px;
}
.field-select {
  align-items: center;
  background-color: var(--color-ground);
  border-color: var(--color-line-strong);
  border-radius: var(--radius-control);
  border-style: solid;
  border-width: 1px;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  height: 48px;
  justify-content: space-between;
  padding-inline: 14px;
}
.field-inherited {
  align-items: center;
  background-color: var(--color-surface-high);
  border-color: var(--color-line);
  border-radius: var(--radius-control);
  border-style: solid;
  border-width: 1px;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  height: 48px;
  justify-content: space-between;
  padding-inline: 14px;
}

/* Multi-line and entry fields (Activity, 2026-10-18) ----------------------- */
/* .field--multiline is a field for a few lines of text (a message): the text
   starts at the top and the field is 88 px tall, growing with its content.
   .field--entry marks a field the person types into on this screen: on
   phones its text is 16 px so phones do not zoom. Combine with .field and
   the field parts (.field-value, .field-value--mono). Page:
   components/forms.html. */
.field--multiline {
  align-items: flex-start;
  height: auto;
  min-height: 88px;
  padding-block: 13px;
}
@media (max-width: 767px) {
  .field--entry .field-value,
  .field--entry .field-placeholder { font-size: 16px; line-height: 20px; }
}
/* Value list (Habitats, 2026-10-18) ---------------------------------------- */
/* A value that is a list (the repositories a welvet may read), drawn as a
   read-only field of one row per item: .value-list on the ground with the
   strong frame, each .value-list-item a mono line led by its number
   (.value-list-index). Use it in a configuration row's control column where
   a single-line field would hide the items. Page: components/forms.html. */
.value-list {
  background-color: var(--color-ground);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-control);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.value-list-item {
  align-items: center;
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  color: var(--color-ink);
  display: flex;
  font-family: var(--font-mono);
  font-size: 12px;
  gap: 8px;
  line-height: 16px;
  min-height: 40px;
  overflow-wrap: anywhere;
  padding: 0 14px;
}
.value-list-item:first-child { border-top: 0; }
.value-list-index { color: var(--color-ink-mute); flex-shrink: 0; }

/* Compact controls --------------------------------------------------------- */
/* A 36 px size for the quiet and primary buttons and the select, for dense
   rows of settings inside a pane (the Settings flow). Text drops to 13 px.
   On phones the control grows back to the 44 px touch target, and select
   text to 16 px so phones do not zoom. Combine with the button state classes
   (.button-hover, .button-pressed, .button-disabled, .button-loading). Page:
   components/buttons.html. */

.control--compact {
  font-size: 13px;
  height: 36px;
  line-height: 16px;
  padding-inline: 14px;
}
.field-select.control--compact { padding-inline: 12px; }
.control--compact .field-value {
  font-size: 13px;
  line-height: 16px;
}
@media (max-width: 767px) {
  .control--compact { height: var(--space-touch-min); }
  .control--compact .field-value { font-size: 16px; line-height: 20px; }
}
/* Medium controls (Library, 2026-10-18): a 40 px size for page-level buttons
   and the back link where the drawing has them (the library head, the welvet
   detail bar). Text keeps its size. On phones the control grows back to the
   44 px touch target. Page: components/buttons.html. */
.control--medium {
  gap: 10px;
  height: 40px;
  padding-inline: 16px;
}
@media (max-width: 767px) {
  .control--medium { height: var(--space-touch-min); }
}

/* Regular controls (Activity, 2026-10-18): .control--regular is the 44 px
   size of the primary button where the drawing has it beside 44 to 48 px
   fields (a form inside a pane), instead of the 48 px page-level primary.
   Text keeps its size. Page: components/buttons.html. */
.control--regular {
  height: var(--space-touch-min);
  padding-inline: 18px;
}
/* Large controls (Queens, 2026-10-18): .control--large gives a fill button
   the 48 px primary size (--space-touch-primary) where the drawing has it,
   such as the rowan "force handover" beside a 44 px
   quiet button. Text keeps its size. Page: components/buttons.html. */
.control--large { height: var(--space-touch-primary); }
/* Draft field states (Queens, 2026-10-18) ------------------------------------ */
/* How a field in a table of settings says where its value stands. A plain
   .field is a value that matches what is active. .field--changed is a draft
   that differs from the active value: berry edge and tint. .field--attention
   is a value that needs the reader: rowan edge and tint, for a value the host
   rejected or one that waits for a restart; its words say which. A field
   that cannot be edited for now (the host is not answering) is
   .field-inherited with .field-value--mute. Combine with .field, .field-select
   or .field-inherited, .control--regular (44 px) and .field--entry (16 px
   text on phones). Page: components/draft-fields.html. */
.field--changed {
  background-color: var(--color-accent-tint);
  border-color: var(--color-accent);
}
.field--attention {
  background-color: color-mix(in srgb, var(--color-status-danger) 18%, transparent);
  border-color: var(--color-status-danger);
}
.field-value--mute { color: var(--color-ink-mute); }
/* Checkbox ---------------------------------------------------------------- */
/* The selected checkbox. Page: components/forms.html. */

.checkbox-selected {
  align-items: center;
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  border-radius: var(--radius-control);
  border-style: solid;
  border-width: 1px;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  height: 20px;
  justify-content: center;
  width: 20px;
}

/* Inventory rows ---------------------------------------------------------- */
/* A 56 px row with a 44 px action. Page: components/panels-and-rows.html. */

.inventory-row {
  align-items: center;
  background-color: var(--color-ground);
  border-color: var(--color-line);
  border-style: solid;
  border-width: 1px;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  height: 56px;
  padding-inline: 12px;
  width: 100%;
}
.inventory-action {
  align-items: center;
  border-color: var(--color-line-strong);
  border-style: solid;
  border-width: 1px;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  height: 44px;
  justify-content: center;
  width: 44px;
}

/* Panels ------------------------------------------------------------------ */
/* A flat surface with a hairline edge. Corners stay square. Page:
   components/panels-and-rows.html. */

.panel {
  background-color: var(--color-surface);
  border-color: var(--color-line);
  border-style: solid;
  border-width: 1px;
  box-sizing: border-box;
  display: flex;
  flex-basis: 0%;
  flex-direction: column;
  flex-grow: 1;
  gap: 22px;
  padding: 28px;
}

/* Specimens --------------------------------------------------------------- */
/* Scaffolding for component and brand pages only, never product screens. */

.specimen-section {
  background-color: var(--color-surface);
  border-color: var(--color-line);
  border-style: solid;
  border-width: 1px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  width: 100%;
}
.specimen-section-head {
  align-items: flex-start;
  box-sizing: border-box;
  display: flex;
  gap: 48px;
  justify-content: space-between;
}
.specimen-eyebrow {
  box-sizing: border-box;
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  line-height: var(--leading-label);
}
.specimen-title {
  box-sizing: border-box;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-panel);
  font-weight: var(--font-weight-semibold);
  line-height: 26px;
}
.specimen-body {
  box-sizing: border-box;
  color: var(--color-ink-soft);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  max-width: 520px;
}
.specimen-caption {
  box-sizing: border-box;
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 12px;
}

/* Status pills ------------------------------------------------------------ */
/* A square and a mono label: claimed (neutral), working and shipped (pine),
   failed (rowan). Status is never shown by colour alone. Page:
   components/status.html. */

.inline-state {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  gap: 10px;
}
.pill-claimed {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: 14px;
  letter-spacing: 0.08em;
  color: var(--color-ink-soft);
}
.pill-working {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: 14px;
  letter-spacing: 0.08em;
  color: var(--color-status-positive);
}
.pill-shipped {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: 14px;
  letter-spacing: 0.08em;
  color: var(--color-status-positive);
}
.pill-failed {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: 14px;
  letter-spacing: 0.08em;
  color: var(--color-status-danger);
}

/* Text styles ------------------------------------------------------------- */
/* Shared type roles drawn across the product. Mono for data, Grotesk for
   prose. */

.text-body-strong {
  box-sizing: border-box;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  white-space: pre-wrap;
}
.text-body-soft {
  box-sizing: border-box;
  color: var(--color-ink-soft);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 18px;
  white-space: pre-wrap;
}
.text-meta {
  box-sizing: border-box;
  color: var(--color-ink-mute);
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  white-space: pre-wrap;
}

/* Layout and icons -------------------------------------------------------- */
/* A flex filler, and the 24 px line icons: they never shrink, and draw in
   soft ink unless a state says otherwise. */

.icon {
  flex-shrink: 0;
}
.icon-stroke-soft {
  stroke: var(--color-ink-soft);
}
.fill {
  box-sizing: border-box;
  flex-basis: 0%;
  flex-grow: 1;
}
.icon-fill-soft {
  fill: var(--color-ink-soft);
}
.icon-stroke-ink {
  stroke: var(--color-ink);
}

/* Navigation rail --------------------------------------------------------- */
/* The 236 px desktop rail: brand lockup, sections, items (one current), the
   account block. The Betalgo endorsement is the page's corner endorsement
   (below). Page: components/navigation.html. */

.nav-rail--tall {
  align-self: stretch;
  background-color: var(--color-ground);
  border-right-color: var(--color-line);
  border-right-style: solid;
  border-right-width: 1px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 1033px;
  padding-bottom: 18px;
  padding-inline: 16px;
  padding-top: 20px;
  width: 236px;
}
.nav-brand {
  align-items: start;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  height: 28px;
  padding-inline: 8px;
  position: relative;
}
.nav-brand-mark {
  flex-shrink: 0;
  position: absolute;
  left: 8px;
  top: 0px;
  width: 28px;
  height: 28px;
}
.nav-brand-wordmark {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 20px;
  left: 47px;
  position: absolute;
  top: 4px;
}
.nav-brand-name {
  box-sizing: border-box;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 20px;
  white-space: pre-wrap;
}
.nav-brand-tagline {
  box-sizing: border-box;
  color: var(--color-ink-mute);
  display: none;
  flex: 1;
  flex-basis: 0%;
  flex-grow: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  height: 12px;
  left: 8px;
  letter-spacing: 0.16em;
  line-height: 16px;
  position: absolute;
  text-transform: uppercase;
  top: 35px;
  width: max-content;
}
.nav-list {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-top: 26px;
}
.nav-section {
  box-sizing: border-box;
  flex-shrink: 0;
  font-family: var(--font-mono);
  height: 28px;
  padding-inline: 8px;
}
.nav-section-label {
  box-sizing: border-box;
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 16px;
  text-transform: uppercase;
  white-space: pre-wrap;
}
.nav-item--current {
  align-items: center;
  background-color: var(--color-surface-raised);
  border-left-color: var(--color-accent);
  border-left-style: solid;
  border-left-width: 2px;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  height: 48px;
  padding-left: 10px;
  padding-right: 12px;
}
.nav-item {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  height: 48px;
  padding-inline: 12px;
}
.nav-spacer {
  box-sizing: border-box;
  display: flex;
  flex-basis: 0%;
  flex-grow: 1;
}
.nav-account {
  border-top-color: var(--color-line);
  border-top-style: solid;
  border-top-width: 1px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-inline: 8px;
  padding-top: 16px;
}
.nav-account-row {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  gap: 10px;
  height: 48px;
}
.nav-account-avatar {
  align-items: center;
  background-color: var(--color-surface-high);
  border-color: var(--color-line-strong);
  border-style: solid;
  border-width: 1px;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-mono);
  height: 32px;
  justify-content: center;
  width: 32px;
}
.nav-account-initials {
  box-sizing: border-box;
  color: var(--color-ink-soft);
  display: flex;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 14px;
  white-space: pre-wrap;
}
.nav-account-text {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-account-name {
  box-sizing: border-box;
  color: var(--color-ink);
  display: inline-block;
  font-family: var(--font-symbol);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  white-space: pre-wrap;
}
.nav-live-marker {
  background-color: var(--color-status-positive);
  box-sizing: border-box;
  display: none;
  flex-shrink: 0;
  height: 10px;
  width: 3px;
}
/* .nav-endorsement and .public-foot are kept only for the sign-in pages
   (screens/system/sign-in--*), until they move to the corner endorsement. */
.nav-endorsement {
  box-sizing: border-box;
  color: var(--color-ink-mute);
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 16px;
  width: max-content;
  white-space: pre-wrap;
}
.nav-rail {
  background-color: var(--color-ground);
  border-right-color: var(--color-line);
  border-right-style: solid;
  border-right-width: 1px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 900px;
  padding-bottom: 18px;
  padding-inline: 16px;
  padding-top: 20px;
  width: 236px;
}

/* Tablet and phone bars --------------------------------------------------- */
/* The compact navigation drawn for fixed tablet (64 px) and phone (98 px)
   frames, the phone status bar and the menu trigger. New responsive screens
   use .app-topbar below. Page: components/navigation.html. */

.app-bar {
  align-items: center;
  background-color: var(--color-ground);
  border-bottom-color: var(--color-line);
  border-bottom-style: solid;
  border-bottom-width: 1px;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-body);
  height: 64px;
  justify-content: space-between;
  padding-inline: 30px;
  width: 100%;
}
.app-bar-brand {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  gap: 10px;
  height: 24px;
  width: 92px;
}
.app-bar-mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.app-bar-name {
  box-sizing: border-box;
  color: var(--color-ink);
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  height: 20px;
  letter-spacing: -0.02em;
  line-height: 20px;
  width: 58px;
  white-space: pre-wrap;
}
.app-bar-section {
  align-items: center;
  background-color: var(--color-surface-raised);
  border-left-color: var(--color-accent);
  border-left-style: solid;
  border-left-width: 2px;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-mono);
  height: 44px;
  padding-inline: 14px;
  width: max-content;
}
.app-bar-section-label {
  box-sizing: border-box;
  color: var(--color-ink);
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  height: 16px;
  letter-spacing: 0.12em;
  line-height: 16px;
  width: max-content;
}
.app-bar-actions {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  height: 44px;
  width: max-content;
}
.app-bar-avatar {
  align-items: center;
  background-color: var(--color-surface-high);
  border-color: var(--color-line-strong);
  border-style: solid;
  border-width: 1px;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-mono);
  height: 44px;
  justify-content: center;
  width: 44px;
}
.app-bar-initials {
  box-sizing: border-box;
  color: var(--color-ink-soft);
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  height: 16px;
  line-height: 16px;
  width: max-content;
}
.phone-chrome {
  background-color: var(--color-ground);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: fit-content;
  width: 390px;
}
.status-bar {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  gap: 154px;
  padding-bottom: 19px;
  padding-inline: 24px;
  padding-top: 21px;
}
.status-bar-slot {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-basis: 0%;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
}
.status-bar-time {
  box-sizing: border-box;
  color: var(--color-ink);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-symbol);
  font-size: 17px;
  font-weight: 600;
  justify-content: center;
  line-height: 22px;
  text-align: center;
  width: fit-content;
}
.status-bar-icons {
  opacity: 0.35;
}
.phone-topbar {
  border-bottom-color: var(--color-line);
  border-bottom-style: solid;
  border-bottom-width: 1px;
  box-sizing: border-box;
  display: none;
  flex-shrink: 0;
  height: 54px;
  padding-inline: 18px;
  width: 390px;
}
.menu-trigger {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}
.menu-trigger-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.menu-trigger-label {
  box-sizing: border-box;
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 16px;
  white-space: pre-wrap;
}
.app-bar-mark--phone {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}
.app-bar-name--small {
  box-sizing: border-box;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 20px;
  white-space: pre-wrap;
}
.phone-topbar-section {
  box-sizing: border-box;
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 16px;
  text-transform: uppercase;
  white-space: pre-wrap;
}
.app-bar--phone {
  background-color: var(--color-ground);
  border-bottom-color: var(--color-line);
  border-bottom-style: solid;
  border-bottom-width: 1px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  font-family: var(--font-body);
  height: 98px;
  padding-bottom: 8px;
  padding-inline: 18px;
  padding-top: 6px;
  width: 390px;
}
.app-bar-row--phone {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  height: 40px;
  justify-content: space-between;
  width: 354px;
}
.app-bar-brand--phone {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  gap: 9px;
  height: 22px;
  width: 89px;
}
.app-bar-menu-row--phone {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  height: 44px;
  justify-content: space-between;
  width: 354px;
}
.app-bar-section--phone {
  align-items: center;
  border-left-color: var(--color-accent);
  border-left-style: solid;
  border-left-width: 2px;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-mono);
  height: 44px;
  padding-left: 8px;
  width: 120px;
}
.app-bar-section-label--phone {
  box-sizing: border-box;
  color: var(--color-ink);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  height: 16px;
  letter-spacing: 0.12em;
  line-height: 16px;
  width: max-content;
}

/* ------------------------------------------------------------------------
   Responsive product layer (welvet-0063, 2026-10-16).
   Content-driven containers and components for responsive product screens:
   the shell (236 px rail, 1040/1396 content, 82/48/32/30/18 insets), page
   header, inventory panes, key-value rows, notices, steppers, fields, agent
   identity and overlays. The rail and compact top bar compose the
   navigation families above. Component pages: components/responsive-shell.html,
   components/agents.html, components/agent-setup.html.
   ------------------------------------------------------------------------ */
/* Shell ------------------------------------------------------------------ */
.app-shell {
  background-color: var(--color-ground);
  box-sizing: border-box;
  color: var(--color-ink);
  display: flex;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-wrap: anywhere;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
.app-rail {
  align-self: stretch;
  border-right: 1px solid var(--color-line);
  box-sizing: border-box;
  flex-shrink: 0;
  width: 236px;
}
.app-rail-inner {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 620px;
  padding: 20px 16px 18px;
  position: sticky;
  top: 0;
}
.app-main {
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  min-width: 0;
}
.app-statusbar,
.app-topbar {
  display: none;
}
.app-topbar {
  border-bottom: 1px solid var(--color-line);
  box-sizing: border-box;
  flex-direction: column;
  gap: 12px;
  padding: 16px var(--space-inset-tablet);
}
.app-topbar-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.app-topbar-brand {
  align-items: center;
  display: flex;
  gap: 10px;
}
.app-content {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-inline: auto;
  max-width: calc(var(--container-content-desktop) + 2 * var(--space-inset-desktop));
  padding: 40px var(--space-inset-desktop) var(--space-8);
  width: 100%;
}
@media (min-width: 1728px) {
  .app-content {
    max-width: calc(var(--container-content-wide) + 2 * var(--space-inset-wide));
    padding-inline: var(--space-inset-wide);
  }
}
@media (max-width: 1439px) {
  .app-content { padding-inline: var(--space-6); }
}
@media (max-width: 1023px) {
  .app-shell { flex-direction: column; }
  .app-rail { display: none; }
  .app-topbar { display: flex; }
  .app-content { padding: var(--space-5) var(--space-inset-tablet) var(--space-8); }
}
@media (max-width: 767px) {
  .app-statusbar { display: flex; }
  .app-topbar { padding-inline: var(--space-inset-phone); }
  .app-content { padding-inline: var(--space-inset-phone); }
}
/* Shell variants (Settings, 2026-10-18).
   .app-shell--rail-desktop kept the rail only from 1440 up (tablet-landscape
   got the compact top bar). Retired (founder pick, 2026-10-18): every screen
   has the rail from 1024 up; the class stays for the app's current pin.
   .app-topbar--one-row draws the top bar as one 64 px row from 768 up
   (lockup, current page, avatar); phones keep the two rows.
   Page: components/responsive-shell.html. */
@media (max-width: 1439px) {
  .app-shell--rail-desktop { flex-direction: column; }
  .app-shell--rail-desktop .app-rail { display: none; }
  .app-shell--rail-desktop .app-topbar { display: flex; }
  .app-shell--rail-desktop .app-content {
    padding: var(--space-5) var(--space-inset-tablet) var(--space-7);
  }
}
@media (max-width: 767px) {
  .app-shell--rail-desktop .app-content { padding-inline: var(--space-inset-phone); }
}
@media (min-width: 768px) {
  .app-topbar--one-row {
    align-items: center;
    flex-direction: row;
    min-height: 64px;
    padding-block: 0;
  }
  .app-topbar--one-row .app-topbar-row { display: contents; }
  .app-topbar--one-row .app-topbar-brand { order: 1; }
  .app-topbar--one-row .app-bar-section { margin-left: auto; order: 2; }
  .app-topbar--one-row .app-bar-avatar { order: 4; }
}
/* Fluid content (Dashboard, 2026-10-18): .app-content--fluid lets a live view
   use the width at desktop: from 1440 to 1727 the content fills the main area
   with 32 px insets instead of the 1040 px column, so its lanes (four running
   tiles across) keep their room. Below 1440 and from 1728 up it is the normal
   content. Page: components/responsive-shell.html. */
@media (min-width: 1440px) and (max-width: 1727px) {
  .app-content--fluid {
    max-width: none;
    padding-inline: var(--space-6);
  }
}
/* Detail column (Activity, 2026-10-18): .app-content--detail is the page of
   one record, such as a run: its head and panes in one 820 px column, centred
   in the content area at every width from 1440 up, 18 px between panes.
   Below 1440 the column fills the content as usual. Page:
   components/responsive-shell.html. */
.app-content--detail {
  gap: 18px;
  max-width: calc(820px + 2 * var(--space-inset-desktop));
}
@media (min-width: 1728px) {
  .app-content--detail { max-width: calc(820px + 2 * var(--space-inset-wide)); }
}
/* Breadcrumb bar and navigation sheet (System, 2026-10-18) ------------------ */
/* .app-crumbs is the 60 px bar above the page on the desktop rail layout
   (1024 and up): where you are, as mono crumbs. Below 1024 the top bar names
   the page, so the crumbs hide.
   .nav-sheet is the open navigation under the compact top bar (phone and
   tablet portrait): 360 px wide over the dimmed page. Put the page and the
   sheet inside .nav-sheet-host and add .app-content--dimmed to the page.
   Hidden from 1024, where the rail is the navigation.
   Page: components/responsive-shell.html. */
.app-crumbs {
  align-items: center;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-ink-mute);
  display: none;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  gap: 7px;
  height: 60px;
  letter-spacing: 0.1em;
  line-height: var(--leading-label);
  padding-inline: 26px;
  text-transform: uppercase;
}
.app-crumbs-current { color: var(--color-ink-soft); }
@media (min-width: 1024px) {
  .app-crumbs { display: flex; }
}
.nav-sheet-host {
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  min-width: 0;
  position: relative;
}
.nav-sheet-host > .app-content { flex: 1 1 0%; }
.app-content--dimmed { opacity: 0.45; }
.nav-sheet {
  background-color: var(--color-surface);
  border-right: 1px solid var(--color-line-strong);
  bottom: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  left: 0;
  max-width: 100%;
  padding: 24px 16px;
  position: absolute;
  top: 0;
  width: 360px;
}
.nav-sheet .nav-list { padding-top: 0; }
@media (min-width: 1024px) {
  .nav-sheet { display: none; }
}
/* Site frame (Website, 2026-10-18) ----------------------------------------- */
/* The public website (welvets.com) has its own frame, not the app's rail or
   top bar: a page column (.site-page), the site header, the main area and
   the site footer. .site-page--fill makes the page at least one screen tall,
   for a page whose content sits in the middle of the screen.
   .site-header is 76 px with 18 px insets on phones, 88 px with 30 px insets
   from 768 and 64 px insets from 1440. It holds .site-brand (the claim mark,
   .site-mark, and the wordmark, .site-wordmark; --sm is the 20 px wordmark,
   and .site-brand-tagline adds "agents with habits" under it), an optional
   .site-nav, and .site-header-actions at the end. From 1024 the nav sits in
   the middle of the bar; below 1024 it drops to a second row of 44 px links
   under the brand, so no link is lost on a phone. --current is the page you
   are on, with a berry line under it. --wide shows the nav only from 1024, on a
   page whose tabs carry the same links below that (.site-help-tab--narrow).
   .site-link is a mono text link (12 px, --sm 11 px); on phones it is a
   44 px tap target.
   .site-footer is the foot of the page: mono notes from the left, stacked
   on phones, in one row from 768; its right end stays free for the corner
   endorsement.
   .site-footer--stage is the 54 px foot under a full screen diagram, with a
   scroll cue and a summary.
   Page: components/site-frame.html. */
.site-page {
  background-color: var(--color-ground);
  display: flex;
  flex-direction: column;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
}
.site-page--fill { min-height: 100vh; }
.site-main {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  min-width: 0;
}
.site-header {
  align-items: center;
  border-bottom: 1px solid var(--color-line);
  column-gap: var(--space-4);
  display: grid;
  flex-shrink: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: 75px; /* 76 px with the hairline */
  padding-inline: var(--space-inset-phone);
}
.site-brand {
  align-items: center;
  color: var(--color-ink);
  display: flex;
  gap: 13px;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  text-decoration: none;
}
.site-mark {
  display: block;
  flex-shrink: 0;
  height: 32px;
  width: 32px;
}
.site-brand-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-wordmark {
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: var(--font-weight-semibold);
  line-height: 28px;
  white-space: nowrap;
}
.site-wordmark--sm {
  font-size: 20px;
  letter-spacing: var(--tracking-title);
  line-height: 22px;
}
.site-brand-tagline {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: var(--tracking-label);
  line-height: 12px;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav {
  align-items: center;
  border-top: 1px solid var(--color-line);
  display: flex;
  gap: var(--space-5);
  grid-column: 1 / -1;
  grid-row: 2;
  margin-inline: calc(var(--space-inset-phone) * -1);
  overflow-x: auto;
  padding-inline: var(--space-inset-phone);
}
.site-nav-link {
  align-items: center;
  color: var(--color-ink-soft);
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  line-height: var(--leading-label);
  min-height: var(--space-touch-min);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav-link--lead { color: var(--color-ink); }
.site-nav-link--current {
  color: var(--color-ink);
  text-decoration: underline 2px var(--color-accent);
  text-underline-offset: 6px;
}
.site-nav-link:hover,
.site-nav-link.is-hover { color: var(--color-ink); }
.site-header-actions {
  align-items: center;
  display: flex;
  gap: var(--space-5);
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
.site-link {
  align-items: center;
  color: var(--color-ink-soft);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
}
.site-link--sm {
  font-size: var(--text-label);
  letter-spacing: 0.04em;
  line-height: var(--leading-label);
}
.site-link:hover,
.site-link.is-hover { color: var(--color-ink); }
.site-link:focus-visible,
.site-link.is-focus,
.site-nav-link:focus-visible,
.site-nav-link.is-focus {
  border-radius: var(--radius-control);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
@media (max-width: 767px) {
  .site-brand,
  .site-link { min-height: var(--space-touch-min); }
}
@media (min-width: 768px) {
  .site-header {
    grid-template-rows: 87px;
    padding-inline: var(--space-inset-tablet);
  }
  .site-nav {
    margin-inline: calc(var(--space-inset-tablet) * -1);
    padding-inline: var(--space-inset-tablet);
  }
}
@media (max-width: 1023px) {
  .site-nav--wide { display: none; }
}
@media (min-width: 1024px) {
  .site-nav {
    border-top: 0;
    gap: var(--space-6);
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    margin-inline: 0;
    overflow: visible;
    padding-inline: 0;
  }
  .site-nav-link { min-height: 0; }
}
@media (min-width: 1440px) {
  .site-header { padding-inline: var(--space-8); }
}
.site-footer {
  align-items: flex-start;
  border-top: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: var(--space-3);
  justify-content: flex-start;
  padding: var(--space-5) var(--space-inset-phone);
}
.site-footer-note {
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
}
.site-footer--stage {
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  min-height: 54px;
  padding-block: var(--space-3);
}
.site-footer--stage .site-footer-note {
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 14px;
}
.site-footer-note--mute { color: var(--color-ink-mute); }
@media (min-width: 768px) {
  .site-footer {
    align-items: center;
    flex-direction: row;
    gap: var(--space-5);
    padding-inline: var(--space-inset-tablet);
  }
}
@media (min-width: 1440px) {
  .site-footer { padding-inline: var(--space-8); }
  .site-footer--stage { padding-block: 0; }
}
/* Site buttons (Website, 2026-10-18) --------------------------------------- */
/* The website's buttons are mono and bold, unlike the app's Grotesk buttons.
   .site-button is 46 px (the hero); --sm is 40 px (the header, 44 px on
   phones); --lg is 52 px (beside the sign-up field). Kinds: --primary (the
   berry fill, one per view) and --quiet (an outline in soft ink). --glow adds
   the berry glow to a primary button that stands alone (header, hero).
   States, with static classes for the component page: hover (.is-hover),
   focus (.is-focus), disabled (.is-disabled or [disabled]) and sending
   (.is-loading). Page: components/site-frame.html. */
.site-button {
  align-items: center;
  border: 0;
  border-radius: var(--radius-control);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  gap: var(--space-2);
  height: 46px;
  justify-content: center;
  letter-spacing: 0.04em;
  line-height: 16px;
  padding-inline: 22px;
  text-decoration: none;
  transition: box-shadow var(--motion-fast) var(--motion-ease);
  white-space: nowrap;
}
.site-button--primary {
  background-color: var(--color-accent);
  color: var(--color-on-accent);
}
.site-button--glow { box-shadow: var(--glow-accent); }
.site-button--quiet {
  background-color: transparent;
  border: 1px solid var(--color-line-strong);
  color: var(--color-ink-soft);
  font-weight: var(--font-weight-regular);
  letter-spacing: 0;
  padding-inline: var(--space-5);
}
.site-button--sm {
  font-size: var(--text-label);
  height: 40px;
  padding-inline: 18px;
}
.site-button--lg {
  height: 52px;
  letter-spacing: 0;
  line-height: 18px;
  padding-inline: 20px;
}
.site-button--primary:hover,
.site-button--primary.is-hover { box-shadow: var(--glow-accent-hover); }
.site-button--quiet:hover,
.site-button--quiet.is-hover {
  background-color: var(--color-surface-hover);
  color: var(--color-ink);
}
.site-button:focus-visible,
.site-button.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.site-button--primary:active,
.site-button--primary.is-pressed { background-color: var(--color-accent-press); }
.site-button[disabled],
.site-button.is-disabled {
  background-color: var(--color-surface-high);
  border-color: var(--color-line);
  box-shadow: inset 0 0 0 1px var(--color-line);
  color: var(--color-ink-mute);
  cursor: default;
}
.site-button.is-loading {
  background-color: var(--color-accent-tint);
  box-shadow: inset 0 0 0 1px var(--color-accent);
  color: var(--color-ink);
}
@media (max-width: 767px) {
  .site-button--sm { height: var(--space-touch-min); }
}
@media (prefers-reduced-motion: reduce) {
  .site-button { transition: none; }
}
/* Site hero and sign-up (Website, 2026-10-18) ------------------------------ */
/* .site-hero is the first screen of a site page: the copy (.site-hero-copy)
   and one panel beside it (.site-hero-aside). Phones: one column, at most
   390 px, 48 px from the top. 768: one column up to 708 px. From 1024 the
   two sit side by side, the panel 420 px (480 from 1440, 520 from 1728,
   where the whole hero stops at 1524 px and centres). .site-hero-aside--wide
   is 520 px from 1440, for a panel with rows.
   Copy parts: .site-eyebrow (a berry rule and an 11 px berry label),
   .site-display (the headline: 40 px on phones, 60 at 768, 54 at 1024,
   72 from 1440), .site-lede (17 px soft text, 16 on phones, at most 560 px),
   .site-actions (a row of site buttons), .site-trust (what it connects, over
   a hairline). .site-hero-copy--intro spaces them for a hero with buttons
   rather than a form.
   .site-hero-start is the hero's way in once sign-up is open: a row of site
   buttons, then one quiet line.
   .site-signup is the early-access form: a title, the mono label, the email
   field and the 52 px button (one row at 768 and from 1440; stacked on
   phones and at 1024, where the copy column is narrow), a note, and the
   result message (--done in pine, --error in rowan). The field's text is
   16 px on phones. States: default, focus, sent, error.
   Page: components/site-hero.html. */
.site-hero {
  align-self: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--space-7);
  max-width: 390px;
  padding: var(--space-7) var(--space-inset-phone);
  width: 100%;
}
.site-hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}
/* --intro is the rhythm of a hero with buttons instead of a form: the
   eyebrow, 24; the headline, 28; the lede, 32; the buttons, 48; the trust
   strip. */
.site-hero-copy--intro { gap: 0; }
.site-hero-copy--intro > .site-eyebrow { margin-bottom: var(--space-5); }
.site-hero-copy--intro > .site-display { margin-bottom: 28px; }
.site-hero-copy--intro > .site-lede { margin-bottom: var(--space-6); }
.site-hero-copy--intro > .site-actions { margin-bottom: var(--space-7); }
.site-hero-aside {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-width: 0;
  width: 100%;
}
.site-eyebrow {
  align-items: center;
  color: var(--color-accent);
  display: flex;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--font-weight-bold);
  gap: var(--space-3);
  letter-spacing: var(--tracking-label);
  line-height: var(--leading-label);
  margin: 0;
  text-transform: uppercase;
}
.site-eyebrow::before {
  background-color: var(--color-accent);
  box-shadow: var(--glow-panel);
  content: "";
  flex-shrink: 0;
  height: 2px;
  width: 28px;
}
.site-eyebrow[hidden] { display: none; }
.site-display {
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 40px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.035em;
  line-height: 42px;
  margin: 0;
}
.site-lede {
  color: var(--color-ink-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 25px;
  margin: 0;
  max-width: 560px;
}
.site-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.site-trust {
  align-items: center;
  border-top: 1px solid var(--color-line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) 20px;
  max-width: 560px;
  padding-top: 20px;
}
.site-trust-label {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 16px;
  text-transform: uppercase;
}
.site-trust-item {
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
}
.site-trust-item + .site-trust-item::before {
  background-color: var(--color-line-strong);
  content: "";
  display: inline-block;
  height: 3px;
  margin-right: 20px;
  vertical-align: middle;
  width: 3px;
}
.site-hero-start {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.site-signup {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
  padding-top: var(--space-2);
}
.site-signup-title {
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-panel);
  font-weight: var(--font-weight-medium);
  line-height: 26px;
  margin: 0;
}
.site-signup-label {
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
}
.site-signup-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.site-signup-field {
  align-items: center;
  background-color: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-control);
  color: var(--color-ink);
  display: flex;
  font-family: var(--font-body);
  font-size: 16px;
  height: 52px;
  line-height: 22px;
  min-width: 0;
  padding-inline: var(--space-4);
  width: 100%;
}
.site-signup-field::placeholder {
  color: var(--color-ink-soft);
  opacity: 1;
}
.site-signup-field:focus-visible,
.site-signup-field.is-focus {
  border-color: var(--color-accent);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.site-signup-field.is-invalid { border-color: var(--color-status-danger); }
.site-signup-note,
.site-signup-message {
  color: var(--color-ink-soft);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 20px;
  margin: 0;
}
.site-signup-message--done { color: var(--color-status-positive); }
.site-signup-message--error { color: var(--color-status-danger); }
@media (max-width: 767px) {
  .site-signup-row .site-button { width: 100%; }
  .site-hero-start .site-button { height: var(--space-touch-primary); }
}
@media (min-width: 768px) {
  .site-hero {
    max-width: 708px;
    padding: var(--space-8) var(--space-inset-tablet);
  }
  .site-lede {
    font-size: 17px;
    line-height: 27px;
  }
  .site-display {
    font-size: 60px;
    line-height: 60px;
  }
  .site-signup-row { flex-direction: row; }
  .site-signup-field {
    flex: 1 1 0%;
    font-size: var(--text-body);
    width: auto;
  }
}
@media (min-width: 1024px) {
  .site-hero {
    align-items: center;
    flex-direction: row;
    gap: var(--space-6);
    max-width: none;
  }
  .site-hero-copy { flex: 1 1 0%; }
  .site-hero-aside { width: 420px; }
  .site-display {
    font-size: 54px;
    line-height: 54px;
  }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .site-signup-row { flex-direction: column; }
  .site-signup-field { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 1440px) {
  .site-hero {
    gap: 72px;
    padding: var(--space-9) var(--space-8);
  }
  .site-hero-aside { width: 480px; }
  .site-hero-aside--wide { width: 520px; }
  .site-display {
    font-size: var(--text-display);
    line-height: var(--leading-display);
  }
}
@media (min-width: 1728px) {
  .site-hero { max-width: 1524px; }
  .site-hero-aside { width: 520px; }
}
/* Site run panel (Website, 2026-10-18) ------------------------------------- */
/* A ticket moving through welvets, drawn for the website: a .pane with a
   raised head (.pane-head--raised, a .pane-label and a .site-live reading),
   .site-run-ticket (where it came from, its age, its title and state), the
   steps (.site-run-steps, one .site-run-step per welvet: avatar, name over a
   mono line, and a .site-status box; --current is the step working now) and
   .site-panel-foot. .site-run is at least 596 px tall.
   .site-avatar is the website's 34 px welvet tile: a raised square with a
   strong hairline. With --mark it holds the welvet's single glyph, the same
   .welvet-glyph--<welvet> the app uses (founder pick, 2026-10-18); the
   two-bar .site-glyph is retired and kept for the app's current pin. The
   jewel stays inside the avatar.
   .site-status is a status word in a 78 by 24 px box: --done (shipped, pine
   frame), --live (working, pine frame and glow), --waiting (queued, mute).
   .site-live is the live reading: a 7 px pine square with its glow and a mono
   word (--caps for uppercase, --quiet for soft ink).
   .site-meta is the 10 px mono line used for times, counts and sources
   (--soft, --caps). .site-panel-foot is the foot of a site panel: on the
   ground, under a hairline, two notes apart. Page: components/site-panels.html. */
.site-run { min-height: 596px; }
.site-run-ticket {
  border-bottom: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-5) 20px 22px;
}
.site-run-ticket-title {
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-panel);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-title);
  line-height: 26px;
  margin: 0;
}
.site-run-ticket-state {
  color: var(--color-ink-soft);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 20px;
  margin: 0;
}
.site-run-steps {
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: var(--space-3) 20px;
}
.site-run-step {
  align-items: center;
  border-bottom: 1px solid var(--color-line);
  display: flex;
  gap: var(--space-3);
  min-height: 80px;
}
.site-run-step:last-child { border-bottom: 0; }
.site-run-step--current { background-color: color-mix(in srgb, var(--color-ink) 2%, transparent); }
.site-run-step-text {
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.site-run-step-name {
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  line-height: 18px;
}
.site-avatar {
  align-items: flex-start;
  background-color: var(--color-surface-raised);
  border: 1px solid var(--color-line-strong);
  display: flex;
  flex-shrink: 0;
  height: 34px;
  justify-content: center;
  padding-top: 8px;
  width: 34px;
}
.site-glyph {
  align-items: flex-start;
  display: flex;
  gap: 5px;
}
.site-glyph::before,
.site-glyph::after {
  background-color: currentColor;
  content: "";
  height: 16px;
  width: 5px;
}
.site-glyph::after { height: 10px; }
.site-glyph--iris { color: var(--color-identity-iris); }
.site-glyph--orchid { color: var(--color-identity-orchid); }
.site-glyph--teal { color: var(--color-identity-teal); }
.site-glyph--mauve { color: var(--color-identity-mauve); }
.site-status {
  align-items: center;
  border: 1px solid var(--color-line-strong);
  color: var(--color-ink-mute);
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: var(--font-weight-bold);
  height: 24px;
  justify-content: center;
  letter-spacing: 0.08em;
  line-height: 12px;
  text-transform: uppercase;
  width: 78px;
}
.site-status--done {
  border-color: color-mix(in srgb, var(--color-status-positive) 35%, transparent);
  color: var(--color-status-positive);
}
.site-status--live {
  border-color: color-mix(in srgb, var(--color-status-positive) 55%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--color-status-positive) 12%, transparent);
  color: var(--color-status-positive);
}
.site-live {
  align-items: center;
  color: var(--color-status-positive);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  gap: var(--space-2);
  line-height: var(--leading-label);
  white-space: nowrap;
}
.site-live::before {
  background-color: var(--color-status-positive);
  box-shadow: var(--glow-working);
  content: "";
  flex-shrink: 0;
  height: 7px;
  width: 7px;
}
.site-live--caps {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-live--quiet { color: var(--color-ink-soft); }
.site-meta {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 14px;
}
.site-meta--soft { color: var(--color-ink-soft); }
.site-meta--caps {
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-panel-foot {
  align-items: center;
  background-color: var(--color-ground);
  border-top: 1px solid var(--color-line);
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  min-height: 48px;
  padding: var(--space-3) 20px;
}
/* Site example (Website, 2026-10-18) --------------------------------------- */
/* "a habit in action": one example run of a habit, always labelled
   "example run". Head (.site-example-head: berry label, soft tag), the
   trigger (.site-example-trigger: "when" and the tool, the event, "your
   agent", the action; fixed heights keep the panel one height across
   examples), the run (.site-example-run: the welvet's .site-avatar and name,
   and its state, .site-example-state, --waiting in soft ink), the progress
   line (.site-example-progress with a pine bar; its width is data), two
   activity lines (.site-example-step: a mark, pine for done and soft for
   waiting, and a mono line) and the controls (.site-example-foot: the
   counter, pause or play, next; 44 px controls).
   Phones: 20 px padding, 10 px head words, 11 px lines, 32 px avatar. From
   768: 24 px padding, 11 px head words, 12 px lines, 36 px avatar.
   Page: components/site-panels.html. */
.site-example {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  display: flex;
  flex-direction: column;
  width: 100%;
}
.site-example-head {
  align-items: center;
  background-color: var(--color-surface-raised);
  border-bottom: 1px solid var(--color-line);
  display: flex;
  flex-shrink: 0;
  height: 50px;
  justify-content: space-between;
  padding-inline: 20px;
}
.site-example-label,
.site-example-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 16px;
}
.site-example-label { color: var(--color-accent); }
.site-example-tag { color: var(--color-ink-soft); }
.site-example-trigger {
  border-bottom: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.site-example-keys {
  display: flex;
  justify-content: space-between;
}
.site-example-key {
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
}
.site-example-key--agent { margin-top: 20px; }
.site-example-event {
  color: var(--color-ink);
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: var(--font-weight-semibold);
  height: 60px;
  letter-spacing: var(--tracking-title);
  line-height: 30px;
  margin: var(--space-3) 0 0;
}
.site-example-action {
  color: var(--color-ink);
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 17px;
  height: 78px;
  line-height: 26px;
  margin: var(--space-2) 0 0;
}
.site-example-run {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: var(--space-2);
  height: 64px;
  justify-content: space-between;
  padding: 20px 20px 0;
}
.site-example-who {
  align-items: center;
  display: flex;
  gap: var(--space-3);
}
.site-example .site-avatar {
  align-items: center;
  height: 32px;
  padding-top: 0;
  width: 32px;
}
.site-example-name {
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  line-height: 20px;
}
.site-example-state {
  align-items: center;
  border: 1px solid var(--color-line-strong);
  color: var(--color-status-positive);
  display: flex;
  font-family: var(--font-mono);
  font-size: 10px;
  justify-content: center;
  line-height: 14px;
  min-height: 28px;
  padding: 5px var(--space-2);
}
.site-example-state--waiting { color: var(--color-ink-soft); }
.site-example-progress {
  background-color: var(--color-line-strong);
  display: flex;
  flex-shrink: 0;
  height: 3px;
  margin: var(--space-4) 20px 0;
}
.site-example-progress-bar {
  background-color: var(--color-status-positive);
  height: 3px;
}
.site-example-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 20px;
}
.site-example-step {
  display: flex;
  gap: var(--space-3);
  min-height: 40px;
}
.site-example-mark {
  color: var(--color-status-positive);
  flex-shrink: 0;
  font-family: var(--font-mono-symbols);
  font-size: var(--text-label);
  line-height: 20px;
  width: 12px;
}
.site-example-mark--waiting { color: var(--color-ink-soft); }
.site-example-line {
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: 20px;
}
.site-example-foot {
  align-items: center;
  background-color: var(--color-ground);
  border-top: 1px solid var(--color-line);
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
  padding: var(--space-3) 20px;
}
.site-example-controls {
  display: flex;
  gap: var(--space-2);
}
.site-example-control {
  align-items: center;
  background-color: transparent;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-control);
  color: var(--color-ink-soft);
  cursor: pointer;
  display: flex;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  height: var(--space-touch-min);
  justify-content: center;
  line-height: var(--leading-label);
  padding-inline: var(--space-3);
}
.site-example-control:hover,
.site-example-control.is-hover { color: var(--color-ink); }
.site-example-control:focus-visible,
.site-example-control.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
@media (min-width: 768px) {
  .site-example-label,
  .site-example-tag { font-size: var(--text-label); }
  .site-example-trigger { padding: var(--space-5); }
  .site-example-action { height: 52px; }
  .site-example-run {
    gap: var(--space-3);
    padding-inline: var(--space-5);
  }
  .site-example .site-avatar {
    height: 36px;
    width: 36px;
  }
  .site-example-name { font-size: var(--text-panel-title); }
  .site-example-progress { margin-inline: var(--space-5); }
  .site-example-steps { padding: 20px var(--space-5) var(--space-5); }
  .site-example-step { min-height: 0; }
  .site-example-mark,
  .site-example-line { font-size: 12px; }
  .site-example-foot { padding-inline: var(--space-5); }
}
/* Site event graph (Website, 2026-10-18) ----------------------------------- */
/* A full-screen diagram of events coming into the hive and what it does with
   them, drawn on a fixed 1312 by 758 px canvas (.site-graph, centred; desktop
   and wide only). .site-graph-readout runs along the top: a mono title and a
   .site-live reading. The screen places its nodes and wires (page layout).
   Nodes are panes: .pane, plus .site-node--faint (a hairline frame, for
   sources and what was not claimed) or .site-node--glow (the berry panel glow,
   for the hive). .site-node--edge is a source drawn only as two hairlines.
   Node parts: .site-node-body (rows in the middle; --tight 8 px apart,
   --log 10 px), .site-node-source (a source's name and its square),
   .site-node-name (15 px semibold), .site-node-figure (26 px; --xl 42 px),
   .site-node-row (two mono words apart; .site-node-value --accent, --ink,
   --live), .site-node-id (avatar, name and mono line; --ruled under a
   hairline). .site-token is an event id or verb sitting on a wire: high fill
   and hairline; --accent in berry; --active in berry with the glow (the event
   moving now). .site-wires is the SVG of wires, 1 px in the strong line, 2 px
   in berry for the claimed path. Where each part sits is data: the screen
   gives every child of .site-graph its left, top, width and height inline.
   Page: components/site-graph.html. */
.site-stage {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding-inline: var(--space-8);
}
.site-graph {
  flex-shrink: 0;
  height: 758px;
  margin-inline: auto;
  max-width: 1312px;
  position: relative;
  width: 100%;
}
.site-graph > * { position: absolute; }
.site-graph-readout {
  align-items: center;
  display: flex;
  height: 24px;
  justify-content: space-between;
  left: 0;
  right: 0;
  top: 32px;
}
.site-graph-title {
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}
.site-wires {
  overflow: visible;
  pointer-events: none;
}
.pane.site-node--faint { border-color: var(--color-line); }
.site-node--glow { box-shadow: var(--glow-panel); }
.site-node--source {
  justify-content: space-between;
  padding: 18px 20px;
}
.pane.site-node--edge {
  background-color: transparent;
  border-inline: 0;
  border-color: var(--color-line);
  gap: 7px;
  justify-content: center;
}
.site-node--hub {
  justify-content: space-between;
  padding: 22px;
}
.site-node-source {
  align-items: center;
  display: flex;
  justify-content: space-between;
}
.site-node-source::after {
  background-color: var(--color-ink-soft);
  content: "";
  flex-shrink: 0;
  height: 8px;
  width: 8px;
}
.site-node--edge .site-node-source::after {
  height: 6px;
  width: 6px;
}
.site-node-name {
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-panel-title);
  font-weight: var(--font-weight-semibold);
  line-height: var(--leading-panel-title);
}
.site-node-body {
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  padding-inline: 18px;
}
.site-node-body--tight { gap: var(--space-2); }
.site-node-body--log { gap: 10px; }
.site-node-figure {
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-title);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-title);
  line-height: var(--leading-title);
}
.site-node-figure--xl {
  font-size: 42px;
  letter-spacing: -0.03em;
  line-height: 44px;
}
.site-node-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.site-node-row,
.site-node-line {
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
}
.site-node-row {
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
}
.site-node-value--accent { color: var(--color-accent); }
.site-node-value--ink { color: var(--color-ink); }
.site-node-value--live { color: var(--color-status-positive); }
.site-node-id {
  align-items: center;
  display: flex;
  gap: 14px;
}
.site-node-id--ruled {
  border-bottom: 1px solid var(--color-line);
  flex-shrink: 0;
  height: 86px;
  padding-inline: 18px;
}
.site-node-id-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.site-token {
  background-color: var(--color-surface-high);
  border: 1px solid var(--color-line);
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 14px;
  padding: 3px 6px;
}
.site-token--accent,
.site-token--active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
}
.site-token--active { box-shadow: var(--glow-panel); }
/* Site reveal (Website, 2026-10-18) ---------------------------------------- */
/* A full-screen illustration with the product's screen set into it, for the
   story sections of the site. .site-reveal fills the screen; its scene
   (.site-reveal-scene, the illustration at 16:10) covers it, cropped like a
   cover image and centred; a screen whose inset sits off centre moves the
   scene in its own layout style so the inset stays in view on phones. The inset
   screen (.site-reveal-screen) is placed in percent of the scene, so it stays
   on the drawing at every size (its left, top, width and turn are data,
   inline): a 16:10 frame on the ground with a faint ink
   hairline, a soft shadow and the 2 px control radius. The illustration and
   the inset are images (.site-reveal-image). Page: components/site-graph.html. */
.site-reveal {
  background-color: var(--color-ground);
  container-type: size;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.site-reveal-scene {
  height: max(100cqh, 62.5cqw);
  left: calc((100cqw - max(100cqw, 160cqh)) / 2);
  position: absolute;
  top: calc((100cqh - max(100cqh, 62.5cqw)) / 2);
  width: max(100cqw, 160cqh);
}
.site-reveal-image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.site-reveal-screen {
  aspect-ratio: 16 / 10;
  background-color: var(--color-ground);
  border: 1px solid color-mix(in srgb, var(--color-ink) 16%, transparent);
  border-radius: var(--radius-control);
  box-shadow: 0 0 16px color-mix(in srgb, var(--color-ground) 70%, transparent);
  overflow: hidden;
  position: absolute;
  transform-origin: 0 0;
}
/* Page header ------------------------------------------------------------ */
.page-head {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  justify-content: space-between;
}
.page-head-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}
.page-head-id {
  align-items: center;
  display: flex;
  gap: 18px;
  min-width: 0;
}
.page-eyebrow,
.pane-label {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-label);
  line-height: var(--leading-label);
  text-transform: uppercase;
}
.page-title {
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 58px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-display);
  line-height: 58px;
  margin: 0;
}
.page-title--detail {
  font-size: 38px;
  line-height: 42px;
}
.page-lede {
  color: var(--color-ink-soft);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  margin: 0;
  max-width: 640px;
}
.page-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.page-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
}
.back-link {
  align-items: center;
  border: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  color: var(--color-ink);
  display: inline-flex;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  gap: 10px;
  height: 44px;
  line-height: 18px;
  padding-inline: 14px;
  width: max-content;
}
.text-link {
  color: var(--color-accent);
  white-space: nowrap;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  line-height: 18px;
}
@media (max-width: 767px) {
  .page-title { font-size: 38px; line-height: 42px; }
  .page-title--detail { font-size: 30px; line-height: 34px; }
  .page-actions { width: 100%; }
  .page-actions > * { flex: 1 1 0%; }
}
/* .text-link--tap makes a text link in a row of its own a 44 px tap target on
   phones (the text stays 13 px). Page: components/responsive-shell.html.
   Every other .text-link gets an invisible 44 px tap area on phones (a
   pseudo-element above and below the text), so nothing around it moves
   (founder pick, 2026-10-18). */
@media (max-width: 767px) {
  .text-link { position: relative; }
  .text-link::after {
    content: "";
    height: var(--space-touch-min);
    left: 0;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
}
@media (max-width: 767px) {
  .text-link--tap { align-items: center; display: inline-flex; min-height: var(--space-touch-min); }
}
/* Page head figure and rule (Library, 2026-10-18) -------------------------- */
/* .page-head--rule closes the head with a hairline (a detail page's identity
   head). .page-head-figure is one key figure beside the title: a mono label,
   the value, and a status under it; right-aligned at the top from 1024 up,
   one line under the identity below. Page: components/definition-rows.html. */
.page-head--rule {
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 20px;
}
.page-head-figure {
  align-items: flex-end;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 18px;
}
.page-head-figure-value {
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 23px;
  font-weight: var(--font-weight-bold);
  line-height: 28px;
}
@media (max-width: 1023px) {
  .page-head-figure { align-items: center; flex-direction: row; gap: var(--space-3); padding-top: 0; width: 100%; }
  .page-head-figure-value { font-size: 20px; line-height: 24px; }
}
/* Page head additions (Dashboard, 2026-10-18) ------------------------------ */
/* .page-title--compact is the 26 px title role (--text-title) for a working
   view whose head carries controls, such as the dashboard; it keeps its size
   on phones. .page-head-title-row puts the title and one control beside it on
   a line that wraps. .page-eyebrow--live is the eyebrow of a live view: the
   berry eyebrow with the 8 px pine live square ("live · updated 2s ago");
   pine stays on the square only (founder pick, 2026-10-18). Page:
   components/responsive-shell.html. */
.page-title--compact {
  font-size: var(--text-title);
  letter-spacing: var(--tracking-title);
  line-height: var(--leading-title);
}
.page-head-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
}
.page-eyebrow--live {
  align-items: center;
  display: inline-flex;
  gap: var(--space-2);
}
.page-eyebrow--live::before {
  background-color: var(--color-status-positive);
  content: "";
  flex-shrink: 0;
  height: 8px;
  width: 8px;
}
/* .page-eyebrow--danger is the eyebrow of a result with a problem in it
   ("setup completed with 1 issue"): rowan. Page: components/responsive-shell.html. */
.page-eyebrow--danger { color: var(--color-status-danger); }
/* Text actions (Settings, 2026-10-18) -------------------------------------- */
/* A mono label that acts: copy, manage, back to a parent page. Berry by
   default, rowan for a destructive action (revoke). The label stays small
   but the target is 44 px tall. States: hover, focus, disabled. Page:
   components/list-rows.html. */
.text-action {
  align-items: center;
  background: none;
  border: 0;
  box-sizing: border-box;
  color: var(--color-accent);
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
  min-height: var(--space-touch-min);
  padding: 0;
  text-decoration: none;
  white-space: nowrap;
}
.text-action:hover,
.text-action.is-hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-action:focus-visible,
.text-action.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.text-action--danger { color: var(--color-status-danger); }
.text-action--danger:focus-visible,
.text-action--danger.is-focus { outline-color: var(--color-status-danger); }
.text-action.is-disabled,
.text-action[aria-disabled="true"] {
  color: var(--color-ink-mute);
  text-decoration: none;
}
/* Strong text action (Dashboard, 2026-10-18): .text-action--strong is a bold,
   uppercase text action for the one hand-off at the foot of a pane ("see what
   is happening now") and for hiding a panel. Page: components/attention.html. */
.text-action--strong {
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Quiet text action (Activity, 2026-10-18): .text-action--quiet is a text
   action in soft ink with a little tracking, for a way out that is not the
   page's next step, such as opening a linked pull request ("open ↗").
   Hover underlines it; focus is the berry ring. Page: components/list-rows.html. */
.text-action--quiet {
  color: var(--color-ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* Section navigation (Settings, 2026-10-18) -------------------------------- */
/* An index for a set of short pages that share one page head (Settings), or
   for the sections of one long page. From 1440 up a vertical list beside the
   content; from 768 to 1439 a row of tabs above it; on phones a picker that
   names the current item. Exactly one item is current. .section-layout places
   the index and the content; .section-block is one numbered section of a long
   page (its label, then its pane). States: hover, focus, current. Page:
   components/section-nav.html. */
.section-layout {
  align-items: start;
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 176px minmax(0, 1fr);
}
.section-layout-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  min-width: 0;
}
.section-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  scroll-margin-top: var(--space-5);
}
.section-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-top: var(--space-1);
}
.section-nav-item {
  align-items: center;
  border-left: 2px solid transparent;
  box-sizing: border-box;
  color: var(--color-ink-soft);
  display: flex;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 18px;
  min-height: var(--space-touch-min);
  padding-inline: 10px 12px;
  text-decoration: none;
}
.section-nav-item:hover,
.section-nav-item.is-hover {
  background-color: var(--color-surface-hover);
  color: var(--color-ink);
}
.section-nav-item:focus-visible,
.section-nav-item.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}
.section-nav-item--current {
  background-color: var(--color-surface-raised);
  border-left-color: var(--color-accent);
  color: var(--color-ink);
  font-weight: var(--font-weight-semibold);
}
.section-nav-picker {
  align-items: center;
  background-color: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  display: none;
  gap: var(--space-3);
  justify-content: space-between;
  min-height: var(--space-touch-primary);
  padding: 6px 14px;
}
.section-nav-picker:focus-visible,
.section-nav-picker.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.section-nav-picker-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.section-nav-picker-value {
  color: var(--color-ink);
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  line-height: 20px;
}
.section-nav-picker-count {
  color: var(--color-accent);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
}
@media (min-width: 1728px) {
  .section-layout {
    gap: var(--space-7);
    grid-template-columns: 220px minmax(0, var(--container-content-desktop));
  }
}
@media (max-width: 1439px) {
  .section-layout { gap: var(--space-5); grid-template-columns: minmax(0, 1fr); }
  .section-nav {
    background-color: var(--color-surface);
    border: 1px solid var(--color-line);
    flex-direction: row;
    gap: 0;
    padding-top: 0;
  }
  .section-nav-item {
    border-bottom: 2px solid transparent;
    border-left: 0;
    flex: 1 1 auto;
    font-size: 13px;
    justify-content: center;
    line-height: 16px;
    min-height: 42px;
    padding-inline: var(--space-2);
    text-align: center;
    white-space: nowrap;
  }
  .section-nav-item--current { border-bottom-color: var(--color-accent); }
}
@media (max-width: 767px) {
  .section-layout-main { gap: var(--space-5); }
  .section-nav { display: none; }
  .section-nav-picker { display: flex; }
}
/* View switch (Dashboard, 2026-10-18) -------------------------------------- */
/* Two or three views of the same page in one joined control, such as the
   dashboard's summary and now. Each item is a mono number and a mono word;
   exactly one is current: raised fill, ink word, berry number and a 2 px berry
   edge under it. --live marks the current view as live; since the founder's
   colour picks (2026-10-18) it stays berry like any current view, and the
   pine live square in the page eyebrow says it is live. Items are 42 px inside the frame. On phones the switch takes the full
   width, the items share it and each is 44 px. States: hover, focus, current.
   Page: components/section-nav.html. */
.view-switch {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  display: inline-flex;
  flex-shrink: 0;
}
.view-switch-item {
  align-items: center;
  border-bottom: 2px solid transparent;
  border-top: 2px solid transparent;
  box-sizing: border-box;
  color: var(--color-ink-soft);
  display: flex;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--font-weight-bold);
  gap: 6px;
  justify-content: center;
  letter-spacing: 0.08em;
  line-height: var(--leading-label);
  min-height: 42px;
  padding-inline: var(--space-3);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.view-switch-num { color: var(--color-ink-mute); }
.view-switch-item:hover,
.view-switch-item.is-hover {
  background-color: var(--color-surface-hover);
  color: var(--color-ink);
}
.view-switch-item:focus-visible,
.view-switch-item.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}
.view-switch-item--current {
  background-color: var(--color-surface-raised);
  border-bottom-color: var(--color-accent);
  color: var(--color-ink);
}
.view-switch-item--current .view-switch-num { color: var(--color-accent); }
.view-switch-item--live { border-bottom-color: var(--color-accent); }
.view-switch-item--live .view-switch-num { color: var(--color-accent); }
@media (max-width: 767px) {
  .view-switch { display: flex; width: 100%; }
  .view-switch-item { flex: 1 1 0%; min-height: var(--space-touch-min); }
}
/* View switch, full width (Queens, 2026-10-18) ----------------------------- */
/* .view-switch--block makes the switch fill its line, each item an equal
   part: a choice of two or three kinds inside a form pane, such as the install
   profile or the operating system of a command. Same look and states as the
   view switch. Page: components/section-nav.html. */
.view-switch--block {
  display: flex;
  flex: 1 1 0%;
  min-width: 0;
}
.view-switch--block .view-switch-item {
  flex: 1 1 0%;
  min-width: 0;
  padding-inline: var(--space-2);
}
/* Search and filter toolbar (Library, 2026-10-18) -------------------------- */
/* The row above a list: a search field on the left (.toolbar-search, up to
   500 px) and filter tabs on the right. Below 1024 both take the full width,
   search first. Filter tabs are one joined group; each tab is a word and a
   mono count, exactly one is current (raised fill, berry count). A count that
   needs attention is rowan (--attention). States: hover, focus, current. On
   phones each tab is 44 px tall. Page: components/filter-tabs.html. */
.toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  justify-content: space-between;
}
.toolbar-search { flex: 0 1 500px; min-width: 0; }
.filter-tabs {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  box-sizing: border-box;
  display: inline-flex;
  flex-shrink: 0;
}
.filter-tab {
  align-items: center;
  border-left: 1px solid var(--color-line);
  box-sizing: border-box;
  color: var(--color-ink-soft);
  display: flex;
  font-family: var(--font-body);
  font-size: 13px;
  gap: 8px;
  justify-content: center;
  line-height: 18px;
  min-height: 34px;
  padding-inline: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.filter-tab:first-child { border-left: 0; }
.filter-tab:hover,
.filter-tab.is-hover {
  background-color: var(--color-surface-hover);
  color: var(--color-ink);
}
.filter-tab:focus-visible,
.filter-tab.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}
.filter-tab--current {
  background-color: var(--color-surface-raised);
  color: var(--color-ink);
  font-weight: var(--font-weight-semibold);
}
.filter-tab-count {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-variant-numeric: tabular-nums;
  line-height: var(--leading-label);
}
.filter-tab--current .filter-tab-count {
  color: var(--color-accent);
  font-weight: var(--font-weight-bold);
}
.filter-tab-count--attention { color: var(--color-status-danger); }
@media (max-width: 1023px) {
  .toolbar { align-items: stretch; flex-direction: column; gap: var(--space-2); }
  .toolbar-search { flex: 0 0 auto; }
  .filter-tabs { display: flex; width: 100%; }
  .filter-tab { flex: 1 1 0%; }
}
@media (max-width: 767px) {
  .filter-tab { min-height: var(--space-touch-min); }
  .toolbar-search .field-placeholder,
  .toolbar-search .field-value { font-size: 16px; }
}
/* Filter bar and filter panel (Activity, 2026-10-18) ----------------------- */
/* For a list narrowed by several facets at once (runs by habitat, welvet,
   status and source).
   .filter-bar is the row above the list: the .filter-toggle (a filter icon,
   the word and a mono count of active filters), a mono summary of what is
   shown (.filter-bar-summary) and the sort order at the end
   (.filter-bar-sort, from 1024 up). The toggle is 44 px; --active (filters
   applied) and open (aria-expanded="true") put it on the raised fill.
   States: hover, focus, active, open.
   The filter panel is a .pane that opens under the bar: .filter-groups holds one
   .filter-group per facet (a mono .filter-group-label, then .filter-options
   that wrap), then a .pane-foot with a .filter-check and "clear filters". A
   .filter-option is a 44 px mono word; --selected (or aria-pressed="true")
   is on the high fill with a bold ink word. States: hover, focus, selected,
   disabled. Below 768 each group stacks its label above its options and
   hairlines split the groups. Page: components/filter-tabs.html. */
.filter-bar {
  align-items: center;
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
  min-height: var(--space-touch-min);
}
.filter-bar-main {
  align-items: center;
  display: flex;
  gap: var(--space-3);
  min-width: 0;
}
.filter-toggle {
  align-items: center;
  background-color: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-control);
  box-sizing: border-box;
  color: var(--color-ink);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--font-weight-medium);
  gap: 9px;
  height: var(--space-touch-min);
  line-height: 18px;
  padding-inline: 13px;
  text-decoration: none;
  width: max-content;
}
.filter-toggle:hover,
.filter-toggle.is-hover { background-color: var(--color-surface-hover); }
.filter-toggle:focus-visible,
.filter-toggle.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.filter-toggle--active,
.filter-toggle[aria-expanded="true"] { background-color: var(--color-surface-raised); }
.filter-toggle-count {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-variant-numeric: tabular-nums;
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-label);
}
.filter-bar-summary,
.filter-bar-sort {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
}
.filter-bar-summary {
  color: var(--color-ink-mute);
  min-width: 0;
}
.filter-bar-sort {
  color: var(--color-ink-soft);
  flex-shrink: 0;
  white-space: nowrap;
}
.filter-groups {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 14px;
}
.filter-group {
  align-items: center;
  display: flex;
  gap: 14px;
  min-height: var(--space-touch-min);
}
.filter-group-label {
  color: var(--color-ink-mute);
  flex: 0 0 64px;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}
.filter-options {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.filter-option {
  align-items: center;
  background: none;
  border: 1px solid var(--color-line);
  box-sizing: border-box;
  color: var(--color-ink-soft);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  gap: 6px;
  height: var(--space-touch-min);
  line-height: 14px;
  padding-inline: 10px;
  white-space: nowrap;
  width: max-content;
}
.filter-option:hover,
.filter-option.is-hover {
  background-color: var(--color-surface-hover);
  color: var(--color-ink);
}
.filter-option:focus-visible,
.filter-option.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}
.filter-option--selected,
.filter-option[aria-pressed="true"] {
  background-color: var(--color-surface-high);
  border-color: var(--color-line-strong);
  color: var(--color-ink);
  font-weight: var(--font-weight-bold);
}
.filter-option:disabled,
.filter-option.is-disabled {
  background: none;
  color: var(--color-ink-mute);
  cursor: default;
}
.filter-check {
  align-items: center;
  color: var(--color-ink-soft);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  gap: 10px;
  line-height: 14px;
  min-height: var(--space-touch-min);
}
@media (max-width: 1023px) {
  .filter-bar-sort { display: none; }
}
@media (max-width: 767px) {
  .filter-groups { gap: 0; padding: 0; }
  .filter-group {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
  }
  .filter-group + .filter-group { border-top: 1px solid var(--color-line); }
  .filter-group-label { flex-basis: auto; }
}
/* Layout helpers ---------------------------------------------------------- */
.split {
  align-items: start;
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr) 340px;
}
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (min-width: 1728px) {
  .split { grid-template-columns: minmax(0, 1fr) 440px; }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 1279px) {
  .split, .split--even { grid-template-columns: minmax(0, 1fr); }
}
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}
.stack--tight { gap: var(--space-3); }
.stack--end { align-items: flex-end; gap: var(--space-2); text-align: right; }
@media (max-width: 767px) {
  .stack--end { align-items: flex-start; text-align: left; }
}
.cluster {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.cluster--end { justify-content: flex-end; }
.cluster--between { justify-content: space-between; }
/* Gaps, wrapping and rules (Agents leftovers, 2026-10-18): the spacings the
   agents screens drew inline. A cluster or stack with a tighter gap than the
   default 12 px (24 px for a stack), a cluster that never wraps, a hairline
   above a block, and a stack set off by a hairline. Page:
   components/responsive-shell.html. */
.cluster--gap-6 { gap: 6px; }
.cluster--gap-8 { gap: var(--space-2); }
.cluster--gap-10 { gap: 10px; }
.cluster--nowrap { flex-wrap: nowrap; }
.stack--gap-6 { gap: 6px; }
.stack--gap-10 { gap: 10px; }
.stack--ruled {
  border-top: 1px solid var(--color-line);
  padding-top: var(--space-4);
}
.rule-top { border-top: 1px solid var(--color-line); }
.stack--measure { max-width: 640px; }
@media (max-width: 767px) {
  .cluster--stretch { width: 100%; }
  .cluster--stretch > * { flex: 1 1 100%; }
}
/* Start rule (Queens, 2026-10-18): .rule-start sets a group apart from the
   one before it on the same line with a hairline on its left (a second set
   of actions in a row). Page: components/responsive-shell.html. */
.rule-start {
  border-left: 1px solid var(--color-line);
  padding-left: var(--space-5);
}
/* Phone swaps: a short label or a shorter list on phones only. Keep the
   information model; swap small pieces, never whole layouts. */
@media (min-width: 768px) {
  .phone-only { display: none !important; }
}
@media (max-width: 767px) {
  .phone-hide { display: none !important; }
}
/* Compact swaps (Queens, 2026-10-18): the same idea as the phone swaps, for
   everything below 1024 (tablet portrait and phone), where a pane head or a
   table row has less room: a shorter label, or two cells read as one line. */
@media (min-width: 1024px) {
  .compact-only { display: none !important; }
}
@media (max-width: 1023px) {
  .compact-hide { display: none !important; }
}
/* Panes (inventory panel recipe) ------------------------------------------ */
.pane {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pane-head {
  align-items: center;
  border-bottom: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  min-height: 52px;
  padding: 14px 18px;
}
.pane-head--flush { border-bottom: 0; }
.pane-meta,
.col-label {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}
.col-label { font-weight: var(--font-weight-bold); }
.pane-meta--danger { color: var(--color-status-danger); }
.pane-body {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: 18px;
}
.pane-body--raised { background-color: var(--color-surface-raised); }
.pane-title {
  color: var(--color-ink);
  font-size: var(--text-panel);
  font-weight: var(--font-weight-semibold);
  line-height: 26px;
  margin: 0;
}
.pane-text {
  color: var(--color-ink-soft);
  font-size: 13px;
  line-height: 20px;
  margin: 0;
}
.pane-text--measure { max-width: 460px; }
.pane-foot {
  align-items: center;
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  padding: 14px 18px;
}
.pane--danger { border-color: var(--color-status-danger); }
.pane--danger .pane-label { color: var(--color-status-danger); }
.pane--quiet { background-color: var(--color-ground); }
/* Pane widths (System, 2026-10-18): a pane that stops at 640 px (.pane--narrow,
   one message) or 720 px (.pane--medium, one specimen) instead of filling
   the page, and .pane--centered to centre it. They never exceed the page. */
.pane--narrow,
.pane--medium {
  width: 100%;
}
.pane--narrow { max-width: 640px; }
.pane--medium { max-width: 720px; }
.pane--centered { margin-inline: auto; }
/* Raised head and the panel-title size (Settings, 2026-10-18): a head on the
   raised surface whose title is the 15 px panel title, not a berry label. */
.pane-head--raised { background-color: var(--color-surface-raised); }
.pane-title--sm {
  font-size: var(--text-panel-title);
  line-height: var(--leading-panel-title);
}
/* Slim head and quiet text (Library, 2026-10-18): a 40 px head for the
   stacked panes of a detail page, and a mute second paragraph in a pane body.
   Page: components/definition-rows.html. */
.pane-head--slim { min-height: 40px; padding-block: var(--space-2); }
.pane-text--quiet { color: var(--color-ink-mute); }
/* Split pane (Settings, 2026-10-18): a 320 px directory beside the detail
   of what is selected, in one frame. The directory sits on the ground with a
   hairline; below 1024 it stacks above the detail. */
.pane-split {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
}
.pane-split-aside {
  background-color: var(--color-ground);
  border-right: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pane-split-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
@media (max-width: 1023px) {
  .pane-split { grid-template-columns: minmax(0, 1fr); }
  .pane-split-aside { border-bottom: 1px solid var(--color-line); border-right: 0; }
}
@media (max-width: 767px) {
  .pane-foot > .cluster { width: 100%; }
  .pane-foot > .cluster > * { flex: 1 1 0%; }
  .pane-foot > .pane-meta { width: 100%; }
  .pane-foot > .button-primary,
  .pane-foot > .button-quiet,
  .pane-foot > .button-destructive { flex: 1 1 0%; }
}
/* Pane label tones and accent foot (Dashboard, 2026-10-18): .pane-label--live
   puts a pane's label in pine for a list that is live now (running now);
   .pane-label--danger in rowan for a list of problems whose frame stays
   neutral (queue stuck). .pane-foot--accent is the raised foot that hands
   the reader on to the next view ("caught up? see what is happening now"):
   a neutral fill with berry only on its link (founder pick, 2026-10-18; it
   was berry-tinted). Page: components/responsive-shell.html. */
.pane-label--live { color: var(--color-status-positive); }
.pane-label--danger { color: var(--color-status-danger); }
/* Signal and pending labels (Queens work recovery, 2026-10-18):
   .pane-label--signal is a pane label in the signal colour for a part that
   reports what the server is doing or keeps safe (safety boundary, atomic
   execution, retry-safe results); .pane-label--pending is the pending colour
   for a part about waiting work (empty). Page: components/signal-tone.html. */
.pane-label--signal { color: var(--event-summary-signal); }
.pane-label--pending { color: var(--event-summary-pending); }
/* .pane-columns splits a pane's body into the main part and a 280 px side
   part on one hairline; below 1024 the side drops under the main. */
.pane-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
}
.pane-columns > * + * { border-left: 1px solid var(--color-line); }
@media (max-width: 1023px) {
  .pane-columns { grid-template-columns: minmax(0, 1fr); }
  .pane-columns > * + * { border-left: 0; border-top: 1px solid var(--color-line); }
}
/* .pane-columns--even gives the two parts the same width (what was made and
   what was not; the old step and the new). .pane-columns--wide makes the
   side part 340 px (a summary with a head and a button). Page:
   components/responsive-shell.html. */
.pane-columns--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pane-columns--wide { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 1023px) {
  .pane-columns--even,
  .pane-columns--wide { grid-template-columns: minmax(0, 1fr); }
}
.pane-foot--accent {
  background-color: var(--color-surface-raised);
  border-top-color: var(--color-line-strong);
  min-height: var(--space-touch-primary);
  padding-block: 0;
}
/* Pane states (Activity, 2026-10-18) --------------------------------------- */
/* What a list pane shows instead of its rows: empty, filtered to nothing,
   could not load, loading. .pane--state gives the pane a minimum height and
   lets the part after the head fill it.
   .pane-state is the centred message: a .pane-state-title, one line of what
   happened or what to do (.pane-state-text), and at most one quiet action
   (at least 128 px wide).
   .skeleton-list is the loading body: a mono line naming what loads, then
   .skeleton-row placeholders that keep a row's shape: .skeleton-avatar, two
   bars in .skeleton-lines (.skeleton-bar; --strong for the title line; the
   screen sets each bar's width as data), .skeleton-pill (hidden on phones)
   and .skeleton-go. Nothing moves, so reduced motion needs no change.
   Since the founder's picks (2026-10-18) the pane fits its message: at
   least 330 px from 768 up and 280 px on phones (the short state pane's
   size), never a fixed page of rows. Page: components/pane-states.html. */
.pane--state { min-height: 330px; }
.pane--state > :last-child { flex: 1 1 auto; }
.pane-state {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  justify-content: center;
  padding: 36px;
  text-align: center;
}
.pane-state-title {
  color: var(--color-ink);
  font-size: 24px;
  font-weight: var(--font-weight-semibold);
  line-height: 30px;
  margin: 0;
}
.pane-state-text {
  color: var(--color-ink-soft);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  margin: 0;
  max-width: 440px;
}
.pane-state .button-quiet { min-width: 128px; }
.skeleton-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 14px;
}
.skeleton-row {
  align-items: center;
  border: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  gap: 14px;
  min-height: 82px;
  padding: 14px;
}
.skeleton-avatar,
.skeleton-pill,
.skeleton-go {
  box-sizing: border-box;
  flex-shrink: 0;
}
.skeleton-avatar {
  background-color: var(--color-surface-raised);
  border: 1px solid var(--color-line-strong);
  height: 34px;
  width: 34px;
}
.skeleton-lines {
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.skeleton-bar {
  background-color: var(--color-surface-raised);
  height: 7px;
}
.skeleton-bar--strong {
  background-color: var(--color-surface-hover);
  height: 9px;
}
.skeleton-pill,
.skeleton-go {
  background-color: var(--color-ground);
  border: 1px solid var(--color-line);
}
.skeleton-pill { height: 24px; width: 74px; }
.skeleton-go { height: 38px; width: 38px; }
@media (max-width: 767px) {
  .pane--state { min-height: 280px; }
  .pane-state { padding: var(--space-5) var(--space-4); }
  .skeleton-pill { display: none; }
}
/* Short state pane (Activity, 2026-10-18): .pane--state-short is a state
   pane for one record rather than a list (a run that is not there): 330 px
   tall from 768 up instead of a page of rows, 280 px on phones. Use it with
   .pane-state. Since .pane--state fits its message at the same minimum
   (2026-10-18) the two match; this stays for the app's current pin. Page:
   components/pane-states.html. */
.pane--state-short { min-height: 330px; }
.pane--state-short > :last-child { flex: 1 1 auto; }
@media (max-width: 767px) {
  .pane--state-short { min-height: 280px; }
}
/* Large pane label and positive meta (Queens, 2026-10-18) ------------------ */
/* .pane-label--lg is the 15 px label (the panel-title size) at the head of a
   pane that is one part of a long process page, such as a queen's
   lifecycle, or one part of a written specification. .pane-meta--positive is
   a head note in pine for a reading that is live and fine ("live · checked
   08s ago"). Page: components/fact-tiles.html. */
.pane-label--lg {
  font-size: var(--text-panel-title);
  line-height: var(--leading-panel-title);
}
.pane-meta--positive { color: var(--color-status-positive); }
/* Pane tones and form columns (Queens, 2026-10-18) -------------------------- */
/* .pane--positive is the pine edge of a pane that holds a finished, good
   outcome (a recovery that completed); the sibling of .pane--danger.
   .pane-label--soft and --mute quiet a pane label for a state that is
   waiting or closed. .pane-columns--aside gives the side part of a pane
   360 px (440 from 1728) for a form beside its guidance; below 1024 it
   drops under the main part. .pane-body--roomy is the generous body of a
   form pane: 40 px from 1024, 32 px on tablets and 18 px on phones.
   Page: components/panels-and-rows.html. */
.pane--positive { border-color: var(--color-status-positive); }
.pane-label--soft { color: var(--color-ink-soft); }
.pane-label--mute { color: var(--color-ink-mute); }
.pane-columns--aside { grid-template-columns: minmax(0, 1fr) 360px; }
@media (min-width: 1728px) {
  .pane-columns--aside { grid-template-columns: minmax(0, 1fr) 440px; }
}
@media (max-width: 1023px) {
  .pane-columns--aside { grid-template-columns: minmax(0, 1fr); }
}
.pane-body--roomy {
  gap: var(--space-5);
  padding: 40px;
}
@media (max-width: 1023px) {
  .pane-body--roomy { padding: var(--space-6); }
}
@media (max-width: 767px) {
  .pane-body--roomy { padding: var(--space-inset-phone); }
}
/* Key-value rows ----------------------------------------------------------- */
.kv-item {
  align-items: center;
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 170px minmax(0, 1fr) auto;
  min-height: 52px;
  padding: 12px 18px;
}
.kv-item:first-child { border-top: 0; }
.kv-item--action { grid-template-columns: minmax(0, 1fr) auto; }
.kv-key {
  color: var(--color-ink-soft);
  font-size: 13px;
  line-height: 18px;
}
.kv-val {
  color: var(--color-ink);
  font-size: var(--text-body);
  line-height: 20px;
  min-width: 0;
}
.kv-val--mono {
  font-family: var(--font-mono);
  font-size: 12px;
}
/* Tones for a figure at the end of a row (Habitats, 2026-10-18): --positive
   (pine, a count that is fine), --danger (rowan, a count that needs a hand),
   --mute (a count of nothing yet). The row's label says it too. Page:
   components/responsive-shell.html. */
.kv-val--positive { color: var(--color-status-positive); }
.kv-val--danger { color: var(--color-status-danger); }
.kv-val--mute { color: var(--color-ink-mute); }
.kv-note {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
}
.kv-note--end { text-align: right; }
.pane--aside .kv-item { gap: 4px 14px; grid-template-columns: 92px minmax(0, 1fr); }
.pane--aside .kv-note { grid-column: 2; }
@media (max-width: 767px) {
  .kv-item { gap: 6px 12px; grid-template-columns: minmax(0, 1fr) auto; }
  .kv-key { grid-column: 1 / -1; }
}
/* Mark stage (System, 2026-10-18) ------------------------------------------ */
/* A square of ground, edged by a hairline, that shows the claim mark large:
   an 80 grid drawn into at most 320 px, centred. Used inside a pane body. The size
   check beneath it is a .cluster of the same mark at 40, 24 and 16 px.
   Page: components/mark-stage.html. */
.mark-stage {
  align-items: center;
  aspect-ratio: 1;
  background-color: var(--color-ground);
  border: 1px solid var(--color-line);
  display: flex;
  justify-content: center;
  margin-inline: auto;
  max-width: 320px;
  width: 100%;
}
.mark-stage > svg { display: block; height: 100%; width: 100%; }

/* Definition rows (Library, 2026-10-18) ------------------------------------ */
/* A declared list read row by row: what a thing needs, the shape of its
   configuration, where it came from. Up to four slots in fixed columns so
   rows line up: .def-row-key (a mono kind label), .def-row-term (the name),
   .def-row-desc (what it is), .def-row-end (a token chip or a note, right).
   Variants: default (key, term, description, end), --term (no key: a mono
   name, description, end), --pair (key and value only; add --stack to
   put the description under the key on phones, for a legend). On phones the
   description drops under the term. Read-only: no states. Page:
   components/definition-rows.html. */
.def-row {
  align-items: center;
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  column-gap: var(--space-3);
  display: grid;
  grid-template-areas: "key term desc end";
  grid-template-columns: 98px 138px minmax(0, 1fr) auto;
  min-height: 52px;
  padding: 8px 16px;
}
.def-row:first-child,
.pane-head + .def-row { border-top: 0; }
.def-row-key {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  grid-area: key;
  letter-spacing: 0.1em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}
.def-row-term {
  color: var(--color-ink);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  grid-area: term;
  line-height: 18px;
  min-width: 0;
}
.def-row-term--mono {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--font-weight-regular);
  line-height: 14px;
}
.def-row-desc {
  color: var(--color-ink-soft);
  font-size: 12px;
  grid-area: desc;
  line-height: 18px;
  min-width: 0;
}
.def-row-end {
  grid-area: end;
  justify-self: end;
}
.def-row--term {
  grid-template-areas: "term desc end";
  grid-template-columns: 178px minmax(0, 1fr) auto;
  min-height: 42px;
}
.def-row--pair {
  grid-template-areas: "key desc";
  grid-template-columns: 138px minmax(0, 1fr);
  min-height: 36px;
  padding-block: 6px;
}
@media (max-width: 767px) {
  .def-row {
    align-items: start;
    grid-template-areas: "key term end" ". desc desc";
    grid-template-columns: 84px minmax(0, 1fr) auto;
    padding: 11px 14px;
    row-gap: 6px;
  }
  .def-row--term { grid-template-areas: "term end" "desc desc"; grid-template-columns: minmax(0, 1fr) auto; }
  .def-row--pair { align-items: center; grid-template-areas: "key desc"; grid-template-columns: 126px minmax(0, 1fr); padding-block: 6px; }
  .def-row--pair.def-row--stack { align-items: start; grid-template-areas: "key" "desc"; grid-template-columns: minmax(0, 1fr); padding-block: 10px; row-gap: 4px; }
}
/* Change rows and diff lists (Habitats, 2026-10-18) -------------------- */
/* What changes when something moves from one version to the next, read row by
   row. .change-head names the columns; each .change-row is one thing:
   its name (.change-term, with an optional .change-desc), the current value
   (.change-cell--current holding .change-value, or a .diff-list), an arrow
   (.change-arrow), the new value (.change-cell--new), and the result at the end
   (.change-result holding a status word: preserved pine, required or added
   rowan, optional or unavailable neutral, changed soft). Values are body text;
   --mono for names and ids, --empty (a dash) for nothing. A cell's
   .change-label ("current", "new") only shows on phones, where the row
   becomes one column read top to bottom, the arrow turning down.
   .diff-summary counts the kinds of change on one hairline row
   (.diff-summary-item: a mono figure, --positive or --danger, over its label),
   four across and two by two on phones; --thirds keeps three across (figures that
   read as one short row, with --mute for a count of nothing). .diff-list lists the items of a
   declared list with their number; --added marks the one that is new.
   Read-only, except that a cell may hold a field for a value that is still
   needed. Page: components/change-rows.html. */
.change-head,
.change-row {
  column-gap: var(--space-4);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) 20px minmax(0, 1.3fr) 124px;
  padding-inline: 18px;
}
.change-head {
  align-items: center;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  line-height: var(--leading-label);
  min-height: 44px;
  text-transform: uppercase;
}
.change-head > :last-child,
.change-row > .change-result { justify-self: end; text-align: right; }
.change-row {
  align-items: start;
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  min-height: 64px;
  padding-block: 14px;
}
.change-head + .change-row,
.pane-head + .change-row,
.diff-summary + .change-row { border-top: 0; }
.change-term {
  color: var(--color-ink);
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  gap: 4px;
  line-height: 16px;
  min-width: 0;
}
.change-desc {
  color: var(--color-ink-soft);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--font-weight-regular);
  line-height: 18px;
}
.change-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.change-label { display: none; }
.change-value {
  color: var(--color-ink);
  font-size: 13px;
  line-height: 18px;
  overflow-wrap: anywhere;
}
.change-value--mono { font-family: var(--font-mono); font-size: 12px; }
.change-value--empty { color: var(--color-ink-mute); }
.change-arrow {
  color: var(--color-ink-mute);
  font-family: var(--font-symbol);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}
.change-result {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.diff-summary {
  border-bottom: 1px solid var(--color-line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.diff-summary-item {
  border-left: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 18px;
}
.diff-summary-item:first-child { border-left: 0; }
.diff-summary-figure {
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  line-height: 24px;
}
.diff-summary-figure--positive { color: var(--color-status-positive); }
.diff-summary-figure--danger { color: var(--color-status-danger); }
.diff-summary-figure--mute { color: var(--color-ink-mute); }
.diff-summary-label {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}
.diff-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.diff-item {
  align-items: baseline;
  display: grid;
  gap: 8px;
  grid-template-columns: 20px minmax(0, 1fr) auto;
}
.diff-item-index {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: 18px;
}
.diff-item-text {
  color: var(--color-ink);
  font-size: 13px;
  line-height: 18px;
  min-width: 0;
}
.diff-item--added .diff-item-text { font-weight: var(--font-weight-semibold); }
@media (max-width: 767px) {
  .change-head { display: none; }
  .change-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 16px 14px;
    row-gap: 10px;
  }
  .change-term { grid-column: 1; grid-row: 1; }
  .change-result { grid-column: 2; grid-row: 1; }
  .change-cell--current { grid-column: 1 / -1; grid-row: 2; }
  .change-arrow { grid-column: 1 / -1; grid-row: 3; text-align: left; }
  .change-cell--new { grid-column: 1 / -1; grid-row: 4; }
  .change-label {
    color: var(--color-ink-mute);
    display: block;
    font-family: var(--font-mono);
    font-size: var(--text-label);
    letter-spacing: 0.08em;
    line-height: var(--leading-label);
    text-transform: uppercase;
  }
  .diff-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diff-summary-item { padding: 10px 14px; }
  .diff-summary-item:nth-child(odd) { border-left: 0; }
  .diff-summary-item:nth-child(n + 3) { border-top: 1px solid var(--color-line); }
  .diff-summary--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .diff-summary--thirds .diff-summary-item { padding: 10px 12px; }
  .diff-summary--thirds .diff-summary-item:nth-child(odd) { border-left: 1px solid var(--color-line); }
  .diff-summary--thirds .diff-summary-item:first-child { border-left: 0; }
  .diff-summary--thirds .diff-summary-item:nth-child(n + 3) { border-top: 0; }
}

/* Key figures (Dashboard, 2026-10-18) -------------------------------------- */
/* A period's numbers at a glance, inside a pane after its head.
   .figure-row is a row of .figure tiles split by strong hairlines: all on one
   line from 1440 up; below, three on the first line and the rest sharing the
   second. A .figure is a mono label, the value (25 px mono, 24 px below 1440)
   and a .figure-delta (soft; --up pine for a rise; --peak in bold for a
   best). --highlight puts the label in ink for the one figure meant to be
   read first. Berry stays off both (founder pick, 2026-10-18).
   .figure-lead is a period's headline: one big figure (64 px, 36 px below
   1440) and its caption, then a sentence and the facts behind it beside a
   strong rule. Below 1024 the caption hides; the sentence names the figure.
   Page: components/key-figures.html. */
.figure-row {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}
.figure {
  border-left: 1px solid var(--color-line-strong);
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  gap: 2px;
  margin: -1px 0 0 -1px;
  min-width: 0;
  padding: 9px 14px 8px;
}
.figure-label {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}
.figure--highlight .figure-label { color: var(--color-ink); }
.figure-value {
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  font-weight: var(--font-weight-bold);
  line-height: 28px;
}
.figure-delta {
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
}
.figure-delta--up { color: var(--color-status-positive); }
.figure-delta--peak { color: var(--color-ink); font-weight: var(--font-weight-bold); }
.figure-lead {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  gap: var(--space-3);
  min-height: 132px;
  padding: 18px 20px;
}
.figure-lead + .list-label,
.figure-lead + .list-row { border-top: 1px solid var(--color-line); }
.figure-lead-value {
  color: var(--color-ink);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 64px;
  font-variant-numeric: tabular-nums;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.04em;
  line-height: 64px;
}
.figure-lead-caption {
  color: var(--color-ink-mute);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}
.figure-lead-text {
  border-left: 1px solid var(--color-line-strong);
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-3);
  margin-left: var(--space-2);
  min-width: 0;
  padding-left: 20px;
}
.figure-lead-sentence {
  color: var(--color-ink);
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  line-height: 24px;
  margin: 0;
}
.figure-lead-facts {
  color: var(--color-ink-soft);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  gap: var(--space-1) 18px;
  line-height: var(--leading-label);
}
@media (max-width: 1439px) {
  .figure-lead { gap: var(--space-4); min-height: 0; padding: 16px 18px; }
  .figure-lead-value { font-size: 36px; letter-spacing: 0; line-height: 40px; }
  .figure-lead-text { gap: var(--space-1); margin-left: 0; padding-left: var(--space-4); }
  .figure-lead-sentence { font-size: var(--text-panel-title); line-height: 19px; }
  .figure-lead-facts { column-gap: var(--space-3); }
}
@media (max-width: 1439px) {
  .figure { flex: 1 1 30%; }
  .figure-value { font-size: 24px; line-height: 27px; }
}
@media (max-width: 1023px) {
  .figure-lead-caption { display: none; }
}
/* Figure tones (Queens work recovery, 2026-10-18) -------------------------- */
/* A count coloured by the kind of work it counts, as in the queen's work
   health: .figure-value--pending (waiting, in the pending colour the event
   summary uses: mute ink), --soft (held by a claim: the neutral attention
   tone, soft ink), --positive (running now) and --danger (a problem). There
   is no amber: attention that is not a problem is soft ink, never rowan
   (founder pick, 2026-10-18).
   The label always names the count; the colour only repeats it. A short
   status word in a figure (7 reviewable) is an .agent-status. Page:
   components/key-figures.html. */
.figure-value--pending { color: var(--event-summary-pending); }
.figure-value--danger { color: var(--color-status-danger); }
.figure-value--soft { color: var(--color-ink-soft); }
.figure-value--positive { color: var(--color-status-positive); }
.figure .agent-status { min-height: 28px; white-space: normal; }
/* Status tiles (Habitats, 2026-10-18) -------------------------------------- */
/* Retired (founder pick, 2026-10-18): a habitat's readings beside its title
   now use the framed fact tiles (.facts--framed), the same as a queen's.
   Kept for the app's current pin; do not use. Before that: three short readings of one thing beside its title (a habitat's
   readiness, current activity and last outcome): .status-tiles is a framed
   row of .status-tile, each a mono label (.status-tile-label) over a status
   word (.status-tile-value) in a 150 px tile (the middle one 160 px). Named
   signal tiles until 2026-10-18; renamed so they are not confused with the
   signal tone (.agent-status--signal and friends). The
   value is pine by default; --danger is rowan and --quiet is soft ink, and the
   word names the state too. On phones the tiles become rows of a 354 px
   frame: the label at the start, the value at the end, 48 px high. It is a
   different look from the key figures (.figure-row: 25 px numbers), so it
   is its own component. Read-only. Page: components/key-figures.html. */
.status-tiles {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
}
.status-tile {
  border-right: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 6px;
  padding: 12px 14px;
  width: 150px;
}
.status-tile:nth-child(2) { width: 160px; }
.status-tile:last-child { border-right: 0; }
.status-tile-label {
  box-sizing: border-box;
  color: var(--color-ink-mute);
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  white-space: pre-wrap;
}
.status-tile-value {
  box-sizing: border-box;
  color: var(--color-status-positive);
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  white-space: pre-wrap;
}
.status-tile-value--danger { color: var(--color-status-danger); }
.status-tile-value--quiet { color: var(--color-ink-soft); }
@media (max-width: 767px) {
  .status-tiles {
    border-color: var(--color-line-strong);
    flex-direction: column;
    width: 100%;
  }
  .status-tile {
    align-items: center;
    border-bottom: 1px solid var(--color-line);
    border-right: 0;
    flex-direction: row;
    gap: 0;
    height: 48px;
    justify-content: space-between;
    padding: 0 14px;
    width: auto;
  }
  .status-tile:nth-child(2) { width: auto; }
  .status-tile:last-child { border-bottom: 0; }
  .status-tile-label { font-family: var(--font-mono-symbols); }
  .status-tile-value:not(.status-tile-value--danger):not(.status-tile-value--quiet) {
    font-family: var(--font-mono-symbols);
    font-weight: 400;
  }
}
/* Fact tiles (Queens, 2026-10-18) ------------------------------------------ */
/* A few facts about one thing, read across: a mono label over a mono value,
   tiles split by hairlines, no value bigger than the rest (key figures are
   for a period's numbers; fact tiles say what a thing is now).
   .facts sits inside a pane after its head: the tiles share the width, two
   to a line on phones. .facts--framed is the boxed set beside a detail
   page's title (a queen's status, OS and version): on the surface with a
   hairline frame, tiles at least 150 px from 768 up; from 1024 up it sits at
   the right of the head, below 1024 it takes the full width under the title.
   Parts: .fact, .fact-label, .fact-value (11 px bold, soft) and
   .fact-value--lg (14 px, ink). A status inside a tile is .agent-status, so
   it keeps its square. Read-only: no states. Page: components/fact-tiles.html. */
.facts {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  overflow: hidden;
}
.fact {
  border-left: 1px solid var(--color-line);
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  gap: 6px;
  margin: -1px 0 0 -1px;
  min-width: 0;
  padding: 15px 16px;
}
.fact-label {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  line-height: var(--leading-label);
  text-transform: uppercase;
  white-space: nowrap;
}
.fact-value {
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-variant-numeric: tabular-nums;
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-label);
  text-transform: uppercase;
  white-space: nowrap;
}
.fact-value--lg {
  color: var(--color-ink);
  font-size: var(--text-body);
  line-height: 22px;
}
.facts--framed {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  flex-wrap: nowrap;
}
.facts--framed .fact {
  flex: 1 1 auto;
  padding: 12px 14px;
}
@media (min-width: 768px) {
  .facts--framed .fact { min-width: 150px; }
}
@media (max-width: 1023px) {
  .facts--framed { width: 100%; }
}
@media (max-width: 767px) {
  .fact { flex-basis: 50%; }
  .facts--framed .fact { flex-basis: auto; }
}
/* Side-by-side readings (Queens, 2026-10-18) ------------------------------- */
/* Two readings of one question inside a pane, such as what a queen sees
   locally against what Hive says about stopping it. .compare holds two or
   more .compare-cell split by a hairline; --raised marks the reading that
   decides. Parts: .compare-label (a mono label; --danger in rowan for the
   authority), .compare-title (20 px; --positive, --danger or --soft by what
   it says, always in words) and .compare-text (the reason). Below 768 the
   cells stack. Read-only. Page: components/fact-tiles.html. */
.compare {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
}
.compare-cell {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: var(--space-4);
}
.compare-cell + .compare-cell { border-left: 1px solid var(--color-line); }
.compare-cell--raised { background-color: var(--color-surface-raised); }
.compare-label {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  line-height: var(--leading-label);
  text-transform: uppercase;
}
.compare-label--danger { color: var(--color-status-danger); }
.compare-title {
  color: var(--color-ink);
  font-size: var(--text-panel);
  font-weight: var(--font-weight-semibold);
  line-height: 24px;
  margin: 0;
}
.compare-title--positive { color: var(--color-status-positive); }
.compare-title--danger { color: var(--color-status-danger); }
.compare-title--soft { color: var(--color-ink-soft); }
.compare-text {
  color: var(--color-ink-soft);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  margin: 0;
}
@media (max-width: 767px) {
  .compare { grid-auto-flow: row; }
  .compare-cell + .compare-cell { border-left: 0; border-top: 1px solid var(--color-line); }
}
/* Recovery readings (Queens, 2026-10-18) ------------------------------------ */
/* What the reading of a recovery needs beyond the side-by-side readings and
   fact tiles. .compare--lead makes the first cell the narrow one (a thing's
   identity) beside a wide explanation, from 768 up. .compare-label--accent
   is the berry label of the cell that speaks to the reader,
   .compare-text--ink the lead sentence in full ink, .compare-code a mono id
   under a title. .facts--raised puts the tiles on the raised surface and the
   value tones .fact-value--positive, --danger and --mute say what a step has
   reached, in words. Page: components/fact-tiles.html. */
@media (min-width: 768px) {
  .compare--lead {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 5fr) minmax(0, 9fr);
  }
}
.compare-label--accent { color: var(--color-accent); }
.compare-text--ink { color: var(--color-ink); }
.compare-code {
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
}
.facts--raised .fact { background-color: var(--color-surface-raised); }
.fact-value--positive { color: var(--color-status-positive); }
.fact-value--danger { color: var(--color-status-danger); }
.fact-value--mute { color: var(--color-ink-mute); }
/* List rows (Settings, 2026-10-18) ----------------------------------------- */
/* Rows of a list inside a pane: text on the left (a title, a sub line),
   actions, a status or a control on the right, hairlines between rows.
   Variants: --group (a group head inside the pane), --raised, --current (the
   selected item of a directory, with a berry edge), --link (the whole row
   opens something: hover and focus), --more (a centred "view all" row),
   --block (full-width content such as a meter), --end (actions only, at the
   end), --stack-phone (the control drops under the text on phones).
   Parts: .list-row-text, -heading, -sub, -value, -actions, -control, -end,
   -icon, -go, and .list-label (a small label above a group of rows). Titles use
   .text-body-strong and mono sub lines .text-meta. .tag below is the
   read-only label used in rows. Page: components/list-rows.html. */
.list-row {
  align-items: center;
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  color: var(--color-ink);
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
  min-height: 64px;
  padding: 10px 18px;
  text-decoration: none;
}
.list-row:first-child,
.pane-head + .list-row,
.list-label + .list-row { border-top: 0; }
.list-row + .list-label { border-top: 1px solid var(--color-line); }
.list-row--group { min-height: 52px; padding-block: var(--space-2); }
.list-row--raised { background-color: var(--color-surface-raised); }
.list-row--current {
  background-color: var(--color-surface-raised);
  box-shadow: inset 2px 0 0 var(--color-accent);
}
.list-row--link:hover,
.list-row--link.is-hover { background-color: var(--color-surface-hover); }
.list-row--link:focus-visible,
.list-row--link.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}
.list-row--more { justify-content: center; min-height: var(--space-touch-primary); padding-block: 0; }
.list-row--block {
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.list-row--end { justify-content: flex-end; }
/* Check row (founder pick, 2026-10-18): .list-row--check is a row whose one
   job is a checkbox, such as allowing a version. The whole row is the
   control (role="checkbox" on the row; the box inside is drawn only), so on
   phones the target is the full row, never the 20 px box. It looks the same
   as a plain row; hover and focus are those of a link row. Page:
   components/list-rows.html. */
.list-row--check { cursor: pointer; min-height: max(64px, var(--space-touch-min)); }
.list-row--check:hover,
.list-row--check.is-hover { background-color: var(--color-surface-hover); }
.list-row--check:focus-visible,
.list-row--check.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}
.list-row-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}
.list-row-heading {
  color: var(--color-ink-soft);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  line-height: 16px;
}
.list-row-sub {
  color: var(--color-ink-mute);
  font-size: 12px;
  line-height: 16px;
}
.list-row-value {
  color: var(--color-ink);
  font-size: var(--text-panel-title);
  font-weight: var(--font-weight-semibold);
  line-height: var(--leading-panel-title);
}
.list-row-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: var(--space-4);
}
.list-row-control { min-width: 200px; }
.list-row-end {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: var(--space-1);
}
.list-row-go {
  color: var(--color-ink-mute);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 16px;
}
.list-row--current .list-row-go { color: var(--color-accent); }
.list-row-icon {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  height: 24px;
  justify-content: center;
  width: 24px;
}
.list-label { padding: 14px 18px var(--space-2); }
@media (max-width: 767px) {
  .list-row--stack-phone { align-items: stretch; flex-direction: column; gap: 10px; }
  .list-row--stack-phone .list-row-control { min-width: 0; width: 100%; }
}
/* List row additions (Library, 2026-10-18): .list-row-code is a mono title
   (a version or an id); .list-row-icon--box puts the row's icon in a 44 px
   framed box (a way to start something); .list-row--disabled is a row that
   cannot be used yet (planned): raised fill, dimmed text, no action. Page:
   components/list-rows.html. */
.list-row-code {
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  line-height: 17px;
}
.list-row-icon--box {
  background-color: var(--color-ground);
  border: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  height: 44px;
  width: 44px;
}
.list-row--disabled { background-color: var(--color-surface-raised); }
.list-row--disabled .text-body-strong { color: var(--color-ink-soft); }
.list-row--disabled .pane-text { color: var(--color-ink-mute); }
/* Tag: a read-only mono label on the high fill, such as a member's role or
   a connection's state word. Never a status colour; status uses
   .agent-status. Page: components/list-rows.html. */
.tag {
  align-items: center;
  background-color: var(--color-surface-high);
  box-sizing: border-box;
  color: var(--color-ink-soft);
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  height: 24px;
  line-height: var(--leading-label);
  padding-inline: var(--space-2);
  white-space: nowrap;
}
/* Outline tag (Library, 2026-10-18): a name the row points to, such as a
   habitat a welvet is used in. A hairline frame instead of the fill, and the
   body font because it is a name, not data. Page: components/list-rows.html. */
.tag--outline {
  background-color: transparent;
  border: 1px solid var(--color-line);
  font-family: var(--font-body);
  height: 26px;
}
/* Activation rows (Habitats, 2026-10-18) ----------------------------------- */
/* One welvet at work in a habitat (an activation), as a row of the crew pane.
   .activation-row stacks three parts with hairlines between rows:
   .activation-row-head (.activation-row-id: the welvet's avatar, then its
   name, .activation-row-name, over a mono package line; and one compact
   control at the end), the habit's rules (.habit-rules), and
   .activation-row-foot (its status, an optional .activation-row-note, and
   its recent activity at the end; --danger notes are rowan). The foot wraps
   on phones.
   .habit-rules reads the habit as sentences: each .habit-rule is a key
   (.habit-rule-key: "when", "does", "runs with") in a 56 px column and a
   sentence (.habit-rule-text) that wraps beside it.
   .source-value is a value inside a sentence with where it comes from: the
   value framed on the ground and its source tag (.source-value-tag: PRODUCT,
   ORG, HAB or ACT) on the raised fill. Long values wrap inside the frame.
   Read-only: no states. Page: components/activation-rows.html. */
.activation-row {
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 12px 18px 13px;
}
.activation-row:first-child,
.pane-head + .activation-row { border-top: 0; }
.activation-row-head {
  align-items: center;
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
}
.activation-row-id {
  align-items: center;
  display: flex;
  gap: var(--space-3);
  min-width: 0;
}
.activation-row-name {
  color: var(--color-ink);
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  line-height: 20px;
}
.activation-row-foot {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  justify-content: space-between;
}
.activation-row-note {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
}
.activation-row-note--danger { color: var(--color-status-danger); }
.habit-rules {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.habit-rule {
  align-items: start;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
}
.habit-rule-key {
  color: var(--color-ink);
  font-size: var(--text-label);
  font-weight: var(--font-weight-bold);
  line-height: 18px;
}
.habit-rule-text {
  align-items: center;
  color: var(--color-ink-soft);
  display: flex;
  flex-wrap: wrap;
  font-size: var(--text-label);
  gap: 2px 4px;
  line-height: 18px;
  min-width: 0;
}
.source-value {
  background-color: var(--color-ground);
  border: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
  max-width: 100%;
}
.source-value-text {
  color: var(--color-ink-soft);
  min-width: 0;
  overflow-wrap: anywhere;
  padding-inline: 6px;
}
.source-value-tag {
  background-color: var(--color-surface-raised);
  border-left: 1px solid var(--color-line);
  color: var(--color-ink-mute);
  flex-shrink: 0;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.03em;
  padding-inline: 4px;
}
/* Notices and banners ------------------------------------------------------ */
.notice {
  background-color: var(--color-ground);
  border: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  display: flex;
  gap: 12px;
  padding: 14px 16px;
}
.notice-icon {
  flex-shrink: 0;
  height: 18px;
  margin-top: 1px;
  width: 18px;
}
.notice-body {
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.notice-title {
  color: var(--color-ink);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  line-height: 18px;
}
.notice-text {
  color: var(--color-ink-soft);
  font-size: 13px;
  line-height: 20px;
}
.notice--guard { border-left: 2px solid var(--color-accent); }
.notice--guard .notice-title { color: var(--color-ink); }
.notice--attention { border-color: var(--color-status-danger); }
.notice--attention .notice-title { color: var(--color-status-danger); }
.notice--pass { border-color: var(--color-status-positive); }
.notice--pass .notice-title { color: var(--color-status-positive); }
.notice--banner { align-items: center; background-color: var(--color-surface); padding: 16px 18px; }
/* Shown once (Settings, 2026-10-18): a new secret or link, inside a list,
   that cannot be shown again. A rowan edge, the value in a read-only field
   with a copy action, and one way out. Page: components/list-rows.html. */
.notice--once {
  border: 0;
  border-left: 3px solid var(--color-status-danger);
  border-top: 1px solid var(--color-line);
  flex-direction: column;
  gap: var(--space-3);
  padding: 16px 18px;
}
.notice--once .pane-label { color: var(--color-status-danger); }
.notice--once > .cluster { align-items: flex-start; }
@media (max-width: 767px) {
  .notice--banner { align-items: flex-start; flex-wrap: wrap; }
  .notice--banner > .cluster { width: 100%; }
  .notice--banner > .cluster > * { flex: 1 1 0%; }
}
/* Save bar (Habitats, 2026-10-18) ------------------------------------------ */
/* The bar under a page of editable values that says there is something to
   keep or throw away: a berry edge on the raised surface, a berry square and
   the count ("1 unsaved change", .save-bar-text), and a discard and a save
   button at the end. On phones the buttons drop under the text and share the
   width. It sits after the panes, never inside one (.pane-foot is for a
   form in a pane). Page: components/forms.html. */
.save-bar {
  align-items: center;
  background-color: var(--color-surface-raised);
  border: 1px solid var(--color-accent);
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 18px;
}
.save-bar-text {
  align-items: center;
  color: var(--color-ink);
  display: flex;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  gap: 10px;
  line-height: 18px;
}
.save-bar-text::before {
  background-color: var(--color-accent);
  content: "";
  flex-shrink: 0;
  height: 8px;
  width: 8px;
}
@media (max-width: 767px) {
  .save-bar { align-items: stretch; flex-direction: column; }
  .save-bar > .cluster > * { flex: 1 1 0%; }
}
/* Attention (Dashboard, 2026-10-18) ---------------------------------------- */
/* What needs a person now, kept apart from the period's numbers.
   .attention-toggle shows or hides the list from the page head: a rowan
   bell, the rowan word, a .count-badge and a chevron that turns up while the
   list is open (aria-expanded="true"). 34 px; 44 px on phones. States: hover,
   focus, open.
   The list is a .pane: .attention-head (the rowan label, a short summary, the
   scope note and the hide action) and one .attention-row per item (a rowan
   edge, the item's number, its title and meta, a rowan text action). On
   phones the summary and the scope note give way to the count badge. Page:
   components/attention.html. */
.attention-toggle {
  align-items: center;
  background-color: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  color: var(--color-status-danger);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--font-weight-bold);
  gap: var(--space-2);
  height: 34px;
  letter-spacing: 0.06em;
  line-height: var(--leading-label);
  padding-inline: 10px;
  text-transform: uppercase;
  white-space: nowrap;
}
.attention-toggle:hover,
.attention-toggle.is-hover { background-color: var(--color-surface-hover); }
.attention-toggle:focus-visible,
.attention-toggle.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.attention-toggle[aria-expanded="true"] .attention-toggle-chevron { transform: rotate(180deg); }
.count-badge {
  align-items: center;
  background-color: var(--color-status-danger);
  box-sizing: border-box;
  color: var(--color-ground);
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-variant-numeric: tabular-nums;
  font-weight: var(--font-weight-bold);
  height: 18px;
  justify-content: center;
  letter-spacing: 0;
  line-height: var(--leading-label);
  min-width: 18px;
  padding-inline: var(--space-1);
}
.attention-head {
  align-items: center;
  border-bottom: 1px solid var(--color-line);
  border-left: 3px solid var(--color-status-danger);
  box-sizing: border-box;
  display: flex;
  gap: var(--space-3);
  min-height: 46px;
  padding: 0 14px 0 12px;
}
.attention-label {
  color: var(--color-status-danger);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}
.attention-summary {
  border-left: 1px solid var(--color-line-strong);
  color: var(--color-ink-soft);
  font-size: 13px;
  line-height: 18px;
  min-width: 0;
  padding-left: var(--space-3);
}
.attention-scope {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  line-height: var(--leading-label);
  margin-left: auto;
  text-align: right;
  text-transform: uppercase;
}
.attention-row {
  align-items: center;
  border-left: 3px solid var(--color-status-danger);
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  gap: var(--space-3);
  min-height: 52px;
  padding: 6px 14px 6px 12px;
}
.attention-head + .attention-row { border-top: 0; }
.attention-index {
  color: var(--color-status-danger);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 16px;
}
.attention-row .list-row-text { flex: 1 1 auto; }
@media (max-width: 767px) {
  .attention-toggle { height: var(--space-touch-min); }
  .attention-head .attention-summary,
  .attention-head .attention-scope { display: none; }
  .attention-head .text-action { margin-left: auto; }
}
/* Issue (Activity, 2026-10-18) --------------------------------------------- */
/* One open problem inside a pane, such as a delivery that failed: .issue-head
   (a boxed rowan status, a mono .issue-meta of where and when, and a text
   action that opens the event), .issue-message (what the other side said,
   mono) and .issue-actions (compact quiet buttons: the fix first, then the
   way out). Issues stack with hairlines between.
   An issue the person fixes somewhere else, such as a welvet version that an
   update check could not add, says so in plain words (.pane-text) instead
   of a mono .issue-message, then lists each place to fix in
   .issue-details: one .issue-detail per line, the place in mono
   (.issue-detail-field, such as githubAccess.reasons.contents) and, after a
   colon, why in plain words. A line with no place, such as what to rebuild
   in a package the Hive can't read, is the plain words alone. Long places
   wrap anywhere; a check lists at most twenty lines. Read-only.
   .pane-disclosure is a closed section at the foot of a pane, such as the
   resolved history: a mono uppercase label after a triangle, and its count.
   Open (aria-expanded="true") turns the triangle down. States: hover, focus,
   open. Page: components/attention.html. */
.issue {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}
.issue + .issue { border-top: 1px solid var(--color-line); }
.issue-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
}
.issue-meta,
.issue-message {
  font-family: var(--font-mono);
  font-size: var(--text-label);
}
.issue-meta {
  color: var(--color-ink-mute);
  flex: 1 1 200px;
  line-height: 14px;
  min-width: 0;
}
.issue-message {
  color: var(--color-ink-soft);
  line-height: var(--leading-label);
  margin: 0;
}
.issue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.issue-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.issue .pane-text + .issue-details { margin-top: -4px; }
.issue-detail {
  color: var(--color-ink-soft);
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.issue-detail-field {
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 12px;
}
.pane-disclosure {
  align-items: center;
  background-color: var(--color-surface);
  border: 0;
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  color: var(--color-ink-mute);
  cursor: pointer;
  display: flex;
  font-family: var(--font-mono-symbols);
  font-size: var(--text-label);
  gap: var(--space-3);
  justify-content: space-between;
  letter-spacing: 0.08em;
  line-height: var(--leading-label);
  min-height: var(--space-touch-min);
  padding: 14px 20px;
  text-align: left;
  text-transform: uppercase;
  width: 100%;
}
.pane-disclosure-count { letter-spacing: 0; }
.pane-disclosure-label::before {
  content: "\25B8";
  display: inline-block;
  margin-right: var(--space-2);
}
.pane-disclosure[aria-expanded="true"] .pane-disclosure-label::before { transform: rotate(90deg); }
.pane-disclosure:hover,
.pane-disclosure.is-hover {
  background-color: var(--color-surface-hover);
  color: var(--color-ink-soft);
}
.pane-disclosure:focus-visible,
.pane-disclosure.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}
@media (max-width: 767px) {
  .issue-actions > * { flex: 1 1 0%; }
}
/* Folded pane (Activity, 2026-10-18): .pane-fold is a closed section that is
   a pane of its own at the foot of a detail page ("details · show"): one
   40 px raised row in the pane frame, the berry .pane-label and a soft mono
   .pane-fold-state that says what a click does. Open (aria-expanded="true"),
   the row moves into a .pane as its head and the body follows it. 44 px on
   phones. States: hover, focus,
   open. Page: components/attention.html. */
.pane-fold {
  align-items: center;
  background-color: var(--color-surface-raised);
  border: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  color: var(--color-ink-soft);
  cursor: pointer;
  display: flex;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  gap: var(--space-3);
  line-height: var(--leading-label);
  min-height: 40px;
  padding: 0 14px;
  text-align: left;
  text-transform: uppercase;
  width: 100%;
}
.pane-fold-state { letter-spacing: 0; }
.pane-fold:hover,
.pane-fold.is-hover { background-color: var(--color-surface-hover); }
.pane-fold:focus-visible,
.pane-fold.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}
.pane > .pane-fold {
  border: 0;
  border-bottom: 1px solid var(--color-line);
}
@media (max-width: 767px) {
  .pane-fold { min-height: var(--space-touch-min); }
}
/* Numbered explainer tiles (connections "after add workspace" recipe) ------ */
.info-tiles {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.info-tile {
  background-color: var(--color-ground);
  border: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
}
.info-tile-num {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
}
.info-tile-title {
  color: var(--color-ink);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  line-height: 18px;
}
.info-tile-text {
  color: var(--color-ink-soft);
  font-size: 12px;
  line-height: 18px;
}
@media (max-width: 767px) {
  .info-tiles { grid-template-columns: minmax(0, 1fr); }
}
/* Empty state (Habitats, 2026-10-18) ---------------------------------------- */
/* What a list shows before it has anything, inside a pane after its head:
   one sentence that says what the thing is (.empty-state-title) and what
   you can do with it (a .page-lede), beside the steps to make the first one
   (.empty-state-steps: a .col-label, then numbered .empty-step items with a
   faint-ink number, a title and a line of help). The message sits in the middle
   of a 420 px panel; the steps take a 400 px column after a hairline. Below
   1024 the steps drop under the message; on phones the insets shrink.
   Read-only: no states. Page: components/empty-state.html. */
.empty-state {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
}
.empty-state-message {
  border-right: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  justify-content: center;
  min-height: 420px;
  min-width: 0;
  padding: var(--space-7);
}
.empty-state-title {
  color: var(--color-ink);
  font-size: 28px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-title);
  line-height: 34px;
  margin: 0;
}
.empty-state-steps {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
  padding: 40px var(--space-6);
}
.empty-step {
  display: grid;
  gap: 4px 14px;
  grid-template-columns: max-content minmax(0, 1fr);
}
.empty-step-num {
  color: var(--color-ink-faint);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  grid-row: span 2;
  line-height: 14px;
  padding-top: 2px;
}
.empty-step-title {
  color: var(--color-ink);
  font-size: var(--text-panel-title);
  font-weight: var(--font-weight-semibold);
  line-height: var(--leading-panel-title);
}
.empty-step-text {
  color: var(--color-ink-soft);
  font-size: 13px;
  line-height: 20px;
}
@media (max-width: 1023px) {
  .empty-state { grid-template-columns: minmax(0, 1fr); }
  .empty-state-message { border-bottom: 1px solid var(--color-line); border-right: 0; min-height: 0; padding: 40px var(--space-6); }
}
@media (max-width: 767px) {
  .empty-state-message,
  .empty-state-steps { padding: var(--space-5) 18px; }
  .empty-state-title { font-size: 24px; line-height: 30px; }
}
/* Field parts for the shared .field recipes -------------------------------- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field-label {
  color: var(--color-ink-soft);
  display: flex;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--font-weight-bold);
  gap: 12px;
  justify-content: space-between;
  letter-spacing: 0.12em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}
.field-label-tag {
  color: var(--color-ink-mute);
  font-weight: var(--font-weight-regular);
}
.field-label--invalid { color: var(--color-status-danger); }
.field-value {
  color: var(--color-ink);
  flex: 1 1 0%;
  font-size: var(--text-body);
  line-height: 20px;
  min-width: 0;
}
.field-value--mono {
  font-family: var(--font-mono);
  font-size: 13px;
}
.field-placeholder {
  color: var(--color-ink-mute);
  flex: 1 1 0%;
  font-size: var(--text-body);
  line-height: 20px;
}
.field-help {
  color: var(--color-ink-mute);
  font-size: 12px;
  line-height: 18px;
}
.field-error {
  color: var(--color-status-danger);
  font-size: 12px;
  line-height: 18px;
}
.field--focus {
  border-color: var(--color-accent);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
/* Status chip for agents --------------------------------------------------- */
.agent-status {
  align-items: center;
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--font-weight-bold);
  gap: 8px;
  letter-spacing: 0.08em;
  line-height: var(--leading-label);
  text-transform: uppercase;
  white-space: nowrap;
}
.agent-status::before {
  box-sizing: border-box;
  content: "";
  flex-shrink: 0;
  height: 8px;
  width: 8px;
}
.agent-status--ready { color: var(--color-status-positive); }
.agent-status--ready::before { background-color: var(--color-status-positive); }
.agent-status--approval { color: var(--color-ink-soft); }
.agent-status--approval::before { border: 1.5px solid var(--color-ink-soft); }
.agent-status--incomplete { color: var(--color-ink-mute); }
.agent-status--incomplete::before { background-color: var(--color-ink-mute); height: 3px; }
.agent-status--disconnected { color: var(--color-status-danger); }
.agent-status--disconnected::before {
  content: "×";
  font-size: 14px;
  height: auto;
  line-height: 14px;
  width: auto;
}
/* Tones for any status word (Library, 2026-10-18): --neutral (a mute square:
   not tracked, planned, or an agent waiting for its first event, BET-1293,
   on components/agents.html) and --danger (a rowan square: a problem to act
   on, such as an update available or a webhook not verified; it replaced the
   identical --webhook on 2026-10-18). Pine stays --ready. Page:
   components/data-table.html. */
.agent-status--neutral { color: var(--color-ink-mute); }
.agent-status--neutral::before { background-color: var(--color-ink-mute); }
.agent-status--danger { color: var(--color-status-danger); }
.agent-status--danger::before { background-color: var(--color-status-danger); }
/* Soft tone (Queens, 2026-10-18): --soft (a soft-ink square: still there but
   gone quiet, such as a stale queen not heard from lately). Brighter than
   --neutral; never pine or rowan. Page: components/data-table.html. */
.agent-status--soft { color: var(--color-ink-soft); }
.agent-status--soft::before { background-color: var(--color-ink-soft); }
/* Signal tone (Queens work recovery, 2026-10-18): --signal (a square and a
   word in the signal colour the event summary uses: a step the server is
   doing now, such as validating a set or looking up a result). Neither pine
   nor rowan: it has not succeeded or failed yet. Page:
   components/signal-tone.html. */
.agent-status--signal { color: var(--event-summary-signal); }
.agent-status--signal::before { background-color: var(--event-summary-signal); }
/* Boxed status (Activity, 2026-10-18): .agent-status--boxed frames a status
   word in a 24 px box on the ground with a hairline and a 6 px square, for a
   status that sits in a column of rows (the activity feed, an open delivery
   issue). Combine with any tone. Page: components/feed.html. */
.agent-status--boxed {
  background-color: var(--color-ground);
  border: 1px solid var(--color-line);
  box-sizing: border-box;
  gap: 7px;
  height: 24px;
  letter-spacing: 0;
  padding-inline: 9px;
  width: max-content;
}
.agent-status--boxed::before { height: 6px; width: 6px; }
/* Agent identity: neutral avatar + provider badge. Never an identity jewel. */
.agent-id {
  align-items: center;
  display: flex;
  gap: 16px;
  min-width: 0;
}
.agent-id-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.agent-avatar {
  align-items: center;
  background-color: var(--color-surface-high);
  border: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  color: var(--color-ink);
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  height: 44px;
  justify-content: center;
  line-height: 16px;
  position: relative;
  width: 44px;
}
.agent-avatar--lg {
  font-size: 18px;
  height: 64px;
  width: 64px;
}
.agent-avatar-provider {
  align-items: center;
  background-color: var(--color-ground);
  border: 1px solid var(--color-line-strong);
  bottom: -7px;
  box-sizing: border-box;
  display: flex;
  height: 22px;
  justify-content: center;
  position: absolute;
  right: -7px;
  width: 22px;
}
.agent-avatar--lg .agent-avatar-provider {
  bottom: -8px;
  height: 28px;
  right: -8px;
  width: 28px;
}
.agent-name {
  color: var(--color-ink);
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  line-height: 20px;
}
.agent-name--md { font-size: 14px; }
.agent-sub {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
}
/* Agent inventory rows ----------------------------------------------------- */
.agent-table-head,
.agent-row {
  align-items: center;
  box-sizing: border-box;
  display: grid;
  gap: var(--space-4);
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.25fr) minmax(0, 1.7fr) minmax(0, 1fr) 44px;
  padding-inline: 18px;
}
.agent-table-head {
  border-bottom: 1px solid var(--color-line);
  height: 42px;
}
.agent-row {
  border-top: 1px solid var(--color-line);
  min-height: 88px;
  padding-block: 18px;
}
.agent-row:first-of-type { border-top: 0; }
.agent-row-test {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
}
.agent-row-test--pass { color: var(--color-status-positive); }
.agent-row-test--fail { color: var(--color-status-danger); }
.agent-row-hint {
  color: var(--color-ink-mute);
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--font-weight-regular);
  letter-spacing: 0;
  line-height: var(--leading-label);
  margin-top: 4px;
  text-transform: none;
}
/* A long status word in a row (waiting for first event, BET-1293) wraps in
   its column instead of running into used by. Page: components/agents.html. */
.agent-cell-status .agent-status { white-space: normal; }
.row-go {
  align-items: center;
  border: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  color: var(--color-ink);
  display: flex;
  font-family: var(--font-mono);
  height: 44px;
  justify-content: center;
  width: 44px;
}
@media (min-width: 1728px) {
  .agent-table-head, .agent-row {
    grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.2fr) minmax(0, 2.2fr) minmax(0, 1.1fr) 44px;
  }
}
@media (max-width: 1439px) {
  .agent-table-head, .agent-row {
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.3fr) minmax(0, 1.6fr) 44px;
  }
  .agent-cell-test { display: none; }
}
@media (max-width: 767px) {
  .agent-table-head { display: none; }
  .agent-row {
    gap: 14px 12px;
    grid-template-areas: "id go" "status status" "used used";
    grid-template-columns: minmax(0, 1fr) 44px;
  }
  .agent-cell-id { grid-area: id; }
  .agent-cell-status { grid-area: status; }
  .agent-cell-used { grid-area: used; }
  .agent-cell-go { grid-area: go; align-self: start; }
}
/* Data table (Library, 2026-10-18) ------------------------------------------ */
/* A table of things inside a pane, after its .pane-head: a head of column
   labels (.col-label) on the ground, then rows with hairlines between. The
   screen sets the columns (grid-template-columns, and grid areas for the
   compact layout) for .data-table-head and .data-table-row in its own
   <style>: that is page layout. Below 1024 the head hides and rows reflow
   into two lines (the screen places the cells).
   Cell parts: .data-table-cell (a stacked cell), .data-table-id (an avatar
   beside a name and a description), .data-table-name, .data-table-desc,
   .data-table-value (mono data), .data-table-sub (a mono line under a
   value), .data-table-empty (no value). The last cell is usually
   .row-go.row-go--compact: a 36 px square from 1024 up, 44 px below.
   Variants: --link rows open something (hover, focus). Page:
   components/data-table.html. */
.data-table-head,
.data-table-row {
  align-items: center;
  box-sizing: border-box;
  column-gap: var(--space-3);
  display: grid;
  padding-inline: 18px;
}
.data-table-head {
  background-color: var(--color-ground);
  border-bottom: 1px solid var(--color-line);
  min-height: 34px;
}
.data-table-row {
  border-top: 1px solid var(--color-line);
  color: var(--color-ink);
  min-height: 96px;
  padding-block: 14px;
  text-decoration: none;
}
.data-table-head + .data-table-row,
.pane-head + .data-table-row { border-top: 0; }
.data-table-row--link:hover,
.data-table-row--link.is-hover { background-color: var(--color-surface-hover); }
.data-table-row--link:focus-visible,
.data-table-row--link.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}
.data-table-cell {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.data-table-id {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}
.data-table-name {
  color: var(--color-ink);
  font-size: var(--text-panel-title);
  font-weight: var(--font-weight-semibold);
  line-height: 20px;
}
.data-table-desc {
  color: var(--color-ink-soft);
  font-size: 12px;
  line-height: 17px;
}
.data-table-value {
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 18px;
}
.data-table-sub {
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
}
.data-table-empty {
  color: var(--color-ink-mute);
  font-size: 12px;
  line-height: 18px;
}
.data-table-row .agent-status { white-space: normal; }
.row-go--compact { height: 36px; width: 36px; }
@media (max-width: 1439px) {
  .data-table-name { font-size: var(--text-body); line-height: 18px; }
  .data-table-desc { font-size: var(--text-label); line-height: var(--leading-label); }
  .data-table-value { font-size: 12px; line-height: 16px; }
  .data-table-sub { color: var(--color-ink-mute); }
}
@media (max-width: 1023px) {
  .data-table-head { display: none; }
  .data-table-row { min-height: 0; padding: 14px; row-gap: var(--space-2); }
  .data-table-id { align-items: flex-start; gap: var(--space-3); }
  .data-table-value { font-size: var(--text-label); }
  .data-table-empty { font-size: var(--text-label); line-height: var(--leading-label); }
  .row-go--compact { height: 44px; width: 44px; }
}
/* Activity feed (Activity, 2026-10-18) ------------------------------------- */
/* A time-ordered list of what happened, inside a .pane after its head: the
   runs of the activity page, and later a queen's work log. One .feed-group
   per period: .feed-group-head (a mono .feed-group-label such as "today" and
   its count, on the ground), then .feed-item entries. A .feed-item is a
   welvet avatar (.welvet-avatar--md), .feed-item-text (a one-line
   .feed-item-title and a mono .feed-item-meta: where, which source, which
   ticket), its status (.feed-item-status holding a boxed .agent-status), how
   long ago (.feed-item-time) and a .row-go--compact that opens it.
   .feed-foot closes the list: .feed-more (load more, 36 px, the smallest
   control size; 44 px on phones) and a mono count of what is shown.
   From 768 to 1023 the time moves into the meta line (.feed-item-when) and
   the go square is 44 px. On phones the title and meta wrap and the status
   drops under them. States: the go square's hover and focus; .feed-more
   hover and focus. Loading uses .skeleton-list (Pane states). Page:
   components/feed.html. */
.feed-group + .feed-group { border-top: 1px solid var(--color-line); }
.feed-group-head {
  align-items: center;
  background-color: var(--color-ground);
  border-bottom: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
  min-height: 30px;
  padding-inline: var(--space-4);
}
.feed-group-label {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  line-height: var(--leading-label);
}
.feed-item {
  align-items: center;
  border-bottom: 1px solid var(--color-line);
  box-sizing: border-box;
  column-gap: var(--space-4);
  display: grid;
  grid-template-areas: "avatar text status time go";
  grid-template-columns: 32px minmax(0, 1fr) 88px 72px auto;
  min-height: 72px;
  padding: 10px var(--space-4);
}
.feed-item > .welvet-avatar { grid-area: avatar; }
.feed-item > .row-go { grid-area: go; }
.feed-item-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  grid-area: text;
  min-width: 0;
}
.feed-item-title,
.feed-item-meta {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.feed-item-title {
  color: var(--color-ink);
  font-size: var(--text-body);
  font-weight: var(--font-weight-medium);
  line-height: 20px;
}
.feed-item-meta,
.feed-item-time {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
}
.feed-item-status {
  display: flex;
  grid-area: status;
  min-width: 0;
}
.feed-item-time {
  grid-area: time;
  white-space: nowrap;
}
.feed-item-when { display: none; }
.feed-foot {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  min-height: var(--space-7);
  padding: var(--space-2) var(--space-4);
}
.feed-more {
  align-items: center;
  background: none;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-control);
  box-sizing: border-box;
  color: var(--color-accent);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  gap: var(--space-2);
  height: 36px;
  line-height: var(--leading-label);
  padding-inline: 10px;
  text-decoration: none;
  width: max-content;
}
.feed-more:hover,
.feed-more.is-hover { border-color: var(--color-line-strong); }
.feed-more:focus-visible,
.feed-more.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
@media (max-width: 1023px) {
  .feed-item {
    grid-template-areas: "avatar text status go";
    grid-template-columns: 32px minmax(0, 1fr) 88px auto;
  }
  .feed-item-time { display: none; }
  .feed-item-when { display: inline; }
}
@media (max-width: 767px) {
  .feed-item {
    align-items: start;
    grid-template-areas: "avatar text go" "avatar status go";
    grid-template-columns: 32px minmax(0, 1fr) auto;
    padding-block: 14px;
    row-gap: var(--space-3);
  }
  .feed-item > .row-go { align-self: center; }
  .feed-item-title,
  .feed-item-meta { display: block; }
  .feed-more { height: var(--space-touch-min); padding-inline: var(--space-3); }
}
/* Timeline (Activity, 2026-10-18) ------------------------------------------ */
/* The stages of one run or piece of work, in order, inside a .pane after its
   head: an ordered list (.timeline) of .timeline-stage items. Each stage is
   a square on a vertical line (the line joins it to the next stage), then
   .timeline-body: .timeline-text (a mono uppercase .timeline-label and a
   .timeline-detail line) and, at the end, .timeline-time.
   Stage states, by shape as well as colour: --done (filled pine square,
   pine line), --current (a larger hollow pine square, pine label: running
   now), --waiting (hollow square in the strong line, soft label: not reached
   yet), --failed (filled rowan square, rowan label). A stage without a state
   is --done. The last stage has no line.
   On phones the time drops under the text. Built for a run's stages on
   activity; a queen's work recovery steps are the same list. Page:
   components/timeline.html. */
.timeline {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 12px 20px 14px;
}
.timeline-stage {
  display: flex;
  min-height: 72px;
  position: relative;
}
.timeline-stage::before,
.timeline-stage::after {
  box-sizing: border-box;
  content: "";
  position: absolute;
}
.timeline-stage::before {
  background-color: var(--color-status-positive);
  height: 8px;
  left: 9px;
  top: 18px;
  width: 8px;
}
.timeline-stage::after {
  background-color: color-mix(in srgb, var(--color-status-positive) 28%, transparent);
  bottom: 0;
  left: 13px;
  top: 26px;
  width: 1px;
}
.timeline-stage:last-child::after { display: none; }
.timeline-body {
  align-items: center;
  border-bottom: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  flex: 1 1 0%;
  gap: var(--space-3);
  justify-content: space-between;
  margin-left: 26px;
  min-width: 0;
  padding: 12px 0 12px 12px;
}
.timeline-stage:last-child .timeline-body { border-bottom: 0; }
.timeline-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.timeline-label {
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  line-height: 15px;
  text-transform: uppercase;
}
.timeline-detail {
  color: var(--color-ink-mute);
  font-size: 13px;
  line-height: 18px;
}
.timeline-time {
  color: var(--color-ink-soft);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
  text-transform: uppercase;
  white-space: nowrap;
}
.timeline-stage--done .timeline-label { color: var(--color-ink); }
.timeline-stage--current::before {
  background-color: color-mix(in srgb, var(--color-status-positive) 8%, transparent);
  border: 1px solid var(--color-status-positive);
  height: 10px;
  left: 8px;
  width: 10px;
}
.timeline-stage--current::after { top: 28px; }
.timeline-stage--current .timeline-label { color: var(--color-status-positive); }
.timeline-stage--current .timeline-detail,
.timeline-stage--failed .timeline-detail { color: var(--color-ink-soft); }
.timeline-stage--waiting::before {
  background-color: transparent;
  border: 1px solid var(--color-line-strong);
}
.timeline-stage--waiting::after { background-color: var(--color-line); }
.timeline-stage--waiting .timeline-label { color: var(--color-ink-soft); }
.timeline-stage--failed::before { background-color: var(--color-status-danger); }
.timeline-stage--failed::after { background-color: color-mix(in srgb, var(--color-status-danger) 28%, transparent); }
.timeline-stage--failed .timeline-label { color: var(--color-status-danger); }
@media (max-width: 767px) {
  .timeline { padding: 12px 14px 14px; }
  .timeline-stage { min-height: 90px; }
  .timeline-body {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
  }
}
/* Log view (Activity, 2026-10-18) ------------------------------------------ */
/* A snapshot of what a run printed, inside a .pane-body: .log-view is a box
   on the ground with a hairline, holding .log-chunk blocks in the order they
   were uploaded. A chunk opens with .log-chunk-head (its stream and number,
   such as "stdout · 01", and when it was uploaded), then .log-lines: one
   .log-line per printed line, a faint .log-line-no and the mono
   .log-line-text, which wraps rather than scrolls. .log-line--error is a
   line on the error stream (rowan text). While nothing has arrived, one
   chunk says so ("waiting" and "waiting for output").
   .log-refresh is the quiet control in the log pane's head that fetches the
   latest chunks: a soft mono word over a soft rule, 30 px tall (44 px on
   phones). States: hover, focus.
   Built for a run's logs on activity; a queen's work recovery reads the same
   way. Page: components/log-view.html. */
.log-view {
  background-color: var(--color-ground);
  border: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.log-chunk + .log-chunk { border-top: 1px solid var(--color-line); }
.log-chunk-head {
  align-items: center;
  background-color: var(--color-surface-raised);
  border-bottom: 1px solid var(--color-line);
  box-sizing: border-box;
  color: var(--color-ink-soft);
  display: flex;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  gap: var(--space-3);
  justify-content: space-between;
  letter-spacing: 0.08em;
  line-height: var(--leading-label);
  min-height: 34px;
  padding-inline: var(--space-3);
  text-transform: uppercase;
}
.log-chunk-time { letter-spacing: 0; }
.log-lines {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 24px 14px;
}
.log-line {
  align-items: baseline;
  display: flex;
  gap: 14px;
  min-width: 0;
}
.log-line-no {
  color: var(--color-ink-faint);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
  min-width: 2ch;
}
.log-line-text {
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  min-width: 0;
  white-space: pre-wrap;
}
.log-line--error .log-line-text { color: var(--color-status-danger); }
.log-refresh {
  align-items: center;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--color-ink-soft);
  box-sizing: border-box;
  color: var(--color-ink-soft);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  height: 30px;
  justify-content: center;
  line-height: var(--leading-label);
  padding-inline: var(--space-2);
  text-transform: uppercase;
}
.log-refresh:hover,
.log-refresh.is-hover {
  border-bottom-color: var(--color-ink);
  color: var(--color-ink);
}
.log-refresh:focus-visible,
.log-refresh.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
@media (max-width: 767px) {
  .log-refresh { height: var(--space-touch-min); }
}
/* Event summary (Activity, 2026-10-18) ------------------------------------- */
/* One event pinned above a list, so the reader sees what happened before the
   runs: a queen lifecycle event, a work-health check. .event-summary is a
   framed card: .event-summary-head (the berry .event-summary-title, an
   optional .event-summary-tag naming the case, and a mono meta of when at
   the end), then .event-summary-body: labelled .event-summary-col columns
   side by side on hairlines, and an .event-summary-action block that fills
   the end (the one way on, in berry). An optional .event-summary-foot holds
   a short note and a mono meta.
   In a column, the label is a .pane-meta (mute) or a .col-label with a tone
   (.event-summary-label--pending, --soft, --danger, --positive); the value is plain
   text, a .pane-title (a name), a .list-row-code (an id) or .pane-text.
   .event-summary-col--wide takes half as much room again.
   Variants: --danger (rowan frame and tag: something went wrong) and
   --signal (no side frame, a 2 px top edge and tag in the signal colour, a
   flat head, columns read from the top: a check that reports a state rather
   than a problem). The signal and pending colours are component tokens:
   soft and mute ink since the founder's colour picks (2026-10-18), which
   keep identity jewels inside avatars.
   Below 1280 the columns sit two across and the action takes a full
   row; on phones the columns stack and the action is a 48 px row. Built for
   activity's evidence screens; queen detail and work recovery reuse it.
   Page: components/event-summary.html. */
.event-summary {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.event-summary-head {
  align-items: center;
  background-color: var(--color-surface-raised);
  border-bottom: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  justify-content: space-between;
  min-height: 48px;
  padding: var(--space-2) var(--space-4);
}
.event-summary-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  min-width: 0;
}
.event-summary-title {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: var(--text-panel-title);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.14em;
  line-height: var(--leading-panel-title);
  margin: 0;
  text-transform: uppercase;
}
.event-summary-tag {
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-label);
  text-transform: uppercase;
}
.event-summary-body {
  display: flex;
  min-width: 0;
}
.event-summary-col {
  border-right: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  min-width: 0;
  padding: var(--space-4);
}
.event-summary-col--wide { flex-grow: 1.5; }
.event-summary-label--pending { color: var(--event-summary-pending); }
.event-summary-label--danger { color: var(--color-status-danger); }
.event-summary-label--soft { color: var(--color-ink-soft); }
.event-summary-label--positive { color: var(--color-status-positive); }
.event-summary-action {
  border: 0;
  border-radius: 0;
  flex: 0 0 auto;
  height: auto;
  min-height: 106px;
  min-width: 180px;
  padding-inline: var(--space-6);
  text-decoration: none;
}
.event-summary-foot {
  align-items: center;
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  justify-content: space-between;
  padding: 11px var(--space-4);
}
.event-summary-note {
  color: var(--color-ink-soft);
  flex: 1 1 320px;
  font-size: var(--text-label);
  line-height: 17px;
  margin: 0;
  min-width: 0;
}
.event-summary--danger { border-color: var(--color-status-danger); }
.event-summary--danger .event-summary-tag { color: var(--color-status-danger); }
.event-summary--signal {
  border: 0;
  border-top: 2px solid var(--event-summary-signal);
}
.event-summary--signal .event-summary-head {
  background-color: transparent;
  border-bottom-color: var(--color-line);
}
.event-summary--signal .event-summary-tag { color: var(--event-summary-signal); }
.event-summary--signal .event-summary-col {
  border-right-color: var(--color-line);
  justify-content: flex-start;
}
.event-summary--signal .event-summary-body { border-bottom: 1px solid var(--color-line); }
.event-summary--signal .event-summary-foot { border-top: 0; }
@media (max-width: 1279px) {
  .event-summary-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .event-summary-col {
    border-bottom: 1px solid var(--color-line);
    border-right: 0;
  }
  .event-summary-col:nth-child(odd):not(.event-summary-col--wide) { border-right: 1px solid var(--color-line); }
  .event-summary-col--wide { grid-column: 1 / -1; }
  .event-summary-action {
    grid-column: 1 / -1;
    min-height: var(--space-touch-primary);
  }
}
@media (max-width: 767px) {
  .event-summary-body { grid-template-columns: minmax(0, 1fr); }
  .event-summary-col:nth-child(odd):not(.event-summary-col--wide) { border-right: 0; }
}
/* Subject head (Activity, 2026-10-18) -------------------------------------- */
/* Who and what one record is about, as the first thing in its pane (a run):
   .subject-head holds the welvet avatar (.welvet-avatar--head), then
   .subject-head-text (a .subject-head-title and a mono .text-meta of who and
   where), and its status at the end (a boxed .agent-status). On phones the
   parts stack: avatar, title, meta, status. Page: components/timeline.html. */
.subject-head {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  gap: 18px;
  min-height: 126px;
  padding: 22px var(--space-5);
}
.subject-head-text {
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.subject-head-title {
  color: var(--color-ink);
  font-size: 23px;
  font-weight: var(--font-weight-semibold);
  line-height: 29px;
  margin: 0;
}
@media (max-width: 767px) {
  .subject-head {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-3);
    padding: 18px;
  }
  .subject-head-text { flex: 0 0 auto; }
  .subject-head-title { font-size: 19px; line-height: 24px; }
}
/* Dense table and group rows (Queens, 2026-10-18) -------------------------- */
/* .data-table--dense is a table of many short rows read line by line (a
   machine's capabilities, the claims a queen owns): 44 px rows, mono values
   at the 11 px label size. .data-table-group is a group head between rows
   ("available · 04"): a 32 px band on the raised surface with a bold mono
   label, soft by default; --positive draws it in pine, --muted in mute ink.
   .data-table-head--keep keeps the column labels below 1024 for a table
   whose rows keep their columns there (the screen places the labels as it
   places the cells). Value tones: .data-table-value--strong (bold),
   --positive, --danger, --soft and --mute; a state word in a tone keeps its
   word. .data-table-text is a reading in the body font ("running step 5").
   Page: components/data-table.html. */
.data-table--dense .data-table-row {
  min-height: 44px;
  padding-block: var(--space-2);
}
.data-table--dense .data-table-value {
  font-size: var(--text-label);
  line-height: var(--leading-label);
}
.data-table-group {
  align-items: center;
  background-color: var(--color-surface-raised);
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  color: var(--color-ink-soft);
  display: flex;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--font-weight-bold);
  gap: var(--space-2);
  letter-spacing: 0.1em;
  line-height: var(--leading-label);
  min-height: 32px;
  padding-inline: 18px;
  text-transform: uppercase;
}
.data-table-head + .data-table-group,
.pane-head + .data-table-group { border-top: 0; }
.data-table-group--positive { color: var(--color-status-positive); }
.data-table-group--muted { color: var(--color-ink-mute); }
.data-table-value--strong { font-weight: var(--font-weight-bold); }
.data-table-value--positive { color: var(--color-status-positive); }
.data-table-value--danger { color: var(--color-status-danger); }
.data-table-value--soft { color: var(--color-ink-soft); }
.data-table-value--mute { color: var(--color-ink-mute); }
/* Status value (founder pick, 2026-10-18): .data-table-value--status puts
   the 8 px status square before a state word in a table cell (AVAILABLE,
   NOT FOUND), in the value's tone, as the queens list does with
   .agent-status. Combine with --positive, --soft, --mute or --danger. */
.data-table-value--status {
  align-items: center;
  display: inline-flex;
  gap: var(--space-2);
}
.data-table-value--status::before {
  background-color: currentColor;
  content: "";
  flex-shrink: 0;
  height: 8px;
  width: 8px;
}
/* Signal and next values (Queens work recovery, 2026-10-18):
   .data-table-value--signal is a state word the server is still working on
   (VALIDATING), in the neutral signal colour; .data-table-value--accent is
   berry for a value that is itself a link. The column that says what happens
   to a row next (include, refresh, lookup) is plain ink, and --mute when
   nothing happens yet (waiting, unchanged): founder pick, 2026-10-18.
   Page: components/signal-tone.html. */
.data-table-value--signal { color: var(--event-summary-signal); }
.data-table-value--accent { color: var(--color-accent); }
.data-table-text {
  color: var(--color-ink-soft);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  min-width: 0;
}
@media (max-width: 1023px) {
  .data-table-head--keep {
    display: grid;
    padding: var(--space-2) 14px;
    row-gap: var(--space-1);
  }
}
/* Check rows in a table (Queens work recovery, BET-873) ---------------------- */
/* .data-table-row--check is a table row whose one job is to be picked, such
   as a run to close. Its first cell is the box (.checkbox-empty or
   .checkbox-selected), drawn only: as with .list-row--check the whole row is
   the control (role="checkbox" and aria-checked on the row), so on phones
   the target is the full row, at least 44 px. Hover and focus are those of a
   link row; a picked row sits on the raised surface. A row that can't be
   picked is a plain .data-table-row with an empty first cell, and says why
   in its own words. .checkbox-empty--disabled is a box that can't be ticked
   for now (the set already holds the most it may): the high fill and a
   hairline, on a row marked aria-disabled, with the reason said beside the
   action. States: hover, focus, picked, unavailable. Page:
   components/data-table.html. */
.data-table-row--check { cursor: pointer; }
.data-table-row--check:hover,
.data-table-row--check.is-hover { background-color: var(--color-surface-hover); }
.data-table-row--check:focus-visible,
.data-table-row--check.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}
.data-table-row--check[aria-checked="true"] { background-color: var(--color-surface-raised); }
.data-table-row--check[aria-disabled="true"] { cursor: not-allowed; }
.data-table-row--check[aria-disabled="true"]:hover { background-color: transparent; }
.checkbox-empty--disabled {
  background-color: var(--color-surface-high);
  border-color: var(--color-line);
}
@media (max-width: 767px) {
  .data-table-row--check { min-height: var(--space-touch-min); }
}
/* Charts (Dashboard, 2026-10-18) ------------------------------------------- */
/* Static charts drawn with HTML and CSS, no scripts. Colours come from the
   data roles, never identity jewels. The values a chart shows are data, so
   their sizes are set inline on the screen (a bar's height, a square's
   width); everything else is here.
   .chart-field holds a chart on the ground. --textured and .chart-texture
   (a still texture behind a ground veil) are retired: no decorative imagery
   (founder pick, 2026-10-18). They stay defined for the app's current pin;
   do not use them.
   .heat-strip shows days in lanes, one lane per series: --primary (data
   primary) and --secondary (data secondary). A lane is a .heat-strip-head
   (label, total, range) and one .heat-strip-day per day: its date, a box
   whose .heat-strip-square grows with the day's level on the lane's own
   scale (width inline, as a share of the box), and the value. --peak frames
   the best day and names it (.heat-strip-note). .heat-strip-legend says how to
   read it. Below 1440 the head narrows and the range and the long words
   (.heat-strip-long: the month, "successful") hide.
   .spark-bars is a run of thin bars on a baseline for recent volume (each
   bar an <i> with its height inline); --sm is the 18 px line for a row.
   Page: components/charts.html. */
.chart-field {
  background-color: var(--color-ground);
  overflow: clip;
  position: relative;
}
.chart-texture {
  height: 100%;
  left: 0;
  object-fit: cover;
  opacity: 0.52;
  position: absolute;
  top: 0;
  width: 100%;
}
.chart-field--textured::before {
  background-color: color-mix(in srgb, var(--color-ground) 60%, transparent);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}
.chart-field > :not(.chart-texture) {
  position: relative;
  z-index: 2;
}
@media (max-width: 1439px) {
  .chart-texture,
  .chart-field--textured::before { display: none; }
}
.heat-strip {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: var(--space-3);
}
.heat-strip-lane {
  display: grid;
  gap: 5px;
  grid-template-columns: 120px repeat(7, minmax(0, 1fr));
}
.heat-strip-head {
  background-color: color-mix(in srgb, var(--color-surface) 88%, transparent);
  border-bottom: 1px solid var(--color-line);
  border-left: 3px solid var(--color-data-primary);
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-right: 2px;
  min-height: 104px;
  min-width: 0;
  padding: 4px 10px 4px 12px;
}
.heat-strip-lane--primary .heat-strip-head { border-left-color: var(--color-data-primary); }
.heat-strip-lane--secondary .heat-strip-head { border-left-color: var(--color-data-secondary); }
.heat-strip-label {
  color: var(--color-data-primary);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}
.heat-strip-lane--secondary .heat-strip-label { color: var(--color-data-secondary); }
.heat-strip-total {
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  font-weight: var(--font-weight-bold);
  line-height: 27px;
}
.heat-strip-range {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.05em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}
.heat-strip-day {
  align-items: center;
  background-color: color-mix(in srgb, var(--color-surface) 76%, transparent);
  border: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  justify-content: space-between;
  min-height: 104px;
  min-width: 0;
  padding: 7px var(--space-1);
}
.heat-strip-date,
.heat-strip-note {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.04em;
  line-height: var(--leading-label);
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}
.heat-strip-note { display: block; }
.heat-strip-box {
  align-items: center;
  aspect-ratio: 38 / 34;
  background-color: color-mix(in srgb, var(--color-ground) 52%, transparent);
  border: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  max-width: 38px;
  width: 100%;
}
.heat-strip-square {
  aspect-ratio: 1;
  background-color: var(--color-data-primary);
  flex-shrink: 0;
}
.heat-strip-lane--secondary .heat-strip-square { background-color: var(--color-data-secondary); }
.heat-strip-value {
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: var(--font-weight-bold);
  line-height: 14px;
}
.heat-strip-day--peak {
  background-color: color-mix(in srgb, var(--color-data-primary) 13%, transparent);
  border-color: var(--color-data-primary);
}
.heat-strip-day--peak .heat-strip-date,
.heat-strip-day--peak .heat-strip-note { color: var(--color-data-primary); }
.heat-strip-legend {
  color: var(--color-ink-mute);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  gap: var(--space-1) var(--space-4);
  justify-content: space-between;
  letter-spacing: 0.06em;
  line-height: var(--leading-label);
  padding-top: var(--space-1);
  text-transform: uppercase;
}
.heat-strip-legend > :last-child { color: var(--color-ink-soft); }
@media (max-width: 1439px) {
  .heat-strip-lane { gap: var(--space-1); grid-template-columns: 92px repeat(7, minmax(0, 1fr)); }
  .heat-strip-head { gap: 2px; justify-content: center; min-height: 84px; padding-inline: 10px 8px; }
  .heat-strip-total { font-size: 18px; line-height: 22px; }
  .heat-strip-range,
  .heat-strip-long { display: none; }
  .heat-strip-day { min-height: 84px; padding: 6px 2px; }
}
@media (max-width: 767px) {
  .heat-strip { padding: var(--space-2); }
  .heat-strip-lane { gap: 3px; grid-template-columns: 70px repeat(7, minmax(0, 1fr)); }
  .heat-strip-head { padding-inline: 8px 4px; }
  .heat-strip-label { letter-spacing: 0.04em; }
  .heat-strip-total { font-size: var(--text-panel-title); line-height: 18px; }
  .heat-strip-value { font-size: var(--text-label); }
}
.spark-bars {
  align-items: flex-end;
  border-bottom: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  display: flex;
  flex: 1 1 auto;
  gap: 2px;
  height: 34px;
  justify-content: space-between;
  min-width: 0;
}
.spark-bars > i {
  background-color: var(--color-data-neutral);
  flex: 0 1 5px;
  min-width: 2px;
}
.spark-bars--sm { flex: 0 0 auto; height: 18px; width: 74px; }
.spark-bars--sm > i { flex-basis: 3px; }
/* Framed spark bars and bar tones (Queens, 2026-10-18): --framed is the
   72 by 26 px signal box in a table row (a queen's last five minutes): the
   ground inside a hairline frame, 3 px bars from the left, no baseline.
   --positive (data positive) and --attention (data attention) colour the
   bars when the series is a health signal; the row's status word still
   says it. Heights stay inline as a share of the box. Page:
   components/charts.html. */
.spark-bars--framed {
  background-color: var(--color-ground);
  border: 1px solid var(--color-line);
  flex: 0 0 auto;
  gap: 3px;
  height: 26px;
  justify-content: flex-start;
  padding: 5px;
  width: 72px;
}
.spark-bars--framed > i { flex: 0 0 3px; }
.spark-bars--positive > i { background-color: var(--color-data-positive); }
.spark-bars--attention > i { background-color: var(--color-data-attention); }
/* Strip spark bars (founder pick, 2026-10-18): --strip is the 118 by 16 px
   run of 4 px bars inside an .activity-strip (a habitat's last 60 minutes,
   one bar per 3 minutes, its height the share of the busiest bin). Same
   bars, baseline and tones as the dashboard; it replaced the stacked
   squares. Page: components/charts.html. */
.spark-bars--strip {
  flex: 0 0 auto;
  height: 16px;
  justify-content: flex-start;
  width: 118px;
}
.spark-bars--strip > i { flex: 0 0 4px; }
/* Activity strips (Habitats, 2026-10-18) ----------------------------------- */
/* Since the founder's picks (2026-10-18) the strip's chart is the dashboard's
   spark bars (.spark-bars.spark-bars--strip, --positive while work runs,
   --attention when blocked). The stacked squares below are retired and kept
   for the app's current pin. Before that:
   concurrent work over the last 60 minutes, drawn as stacked squares:
   .spark-bars--squares is a 118 px run of .spark-column bins, one per
   3 minutes, each bin a stack of 4 by 3 px squares (<i>) from the baseline,
   one square per task running in it. A bin with nothing in it is
   .spark-column--empty (one 1 px line, a single <i>). The squares are pine
   (the default: working), --idle (dim pine: finished work), --paused (mute) or
   --blocked (rowan); the strip's word says it too. This is a different look
   from the thin bars of .spark-bars, so it is its own variant.
   .activity-strip is the whole line a crew row or habitat row carries: the
   status word (.activity-strip-state holding an .activity-strip-word, tone
   --live, --paused or --blocked, soft by default), the "-60" edge, the
   squares and the "NOW" edge (.activity-strip-edge). --roomy widens the word
   column from 76 to 84 px for the long words (paused, blocked, unavailable).
   The tasks a bin holds are data, so each bin lists its squares in the
   screen. Page: components/charts.html. */
.spark-bars--squares {
  align-items: flex-end;
  border-bottom: 0;
  flex: 0 0 auto;
  gap: 2px;
  height: 16px;
  justify-content: flex-start;
  width: 118px;
}
.spark-column {
  box-sizing: border-box;
  display: flex;
  flex-direction: column-reverse;
  flex-shrink: 0;
  gap: 1px;
  height: 16px;
  width: 4px;
}
.spark-column > i {
  background-color: var(--color-status-positive);
  box-sizing: border-box;
  flex-shrink: 0;
  height: 3px;
  width: 4px;
}
.spark-column--idle > i { background-color: var(--color-status-positive-dim); }
.spark-column--paused > i { background-color: var(--color-ink-mute); }
.spark-column--blocked > i { background-color: var(--color-status-danger); }
.spark-column--empty > i { background-color: var(--color-line-strong); height: 1px; }
.activity-strip {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  gap: 4px;
  height: 20px;
  width: 260px;
}
.activity-strip--roomy { width: 268px; }
.activity-strip-state {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-mono);
  height: 16px;
  width: 76px;
}
.activity-strip--roomy .activity-strip-state { width: 84px; }
.activity-strip-word {
  box-sizing: border-box;
  color: var(--color-ink-soft);
  display: flex;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 16px;
  white-space: pre-wrap;
  width: max-content;
}
.activity-strip-word--live { color: var(--color-status-positive); }
.activity-strip-word--paused { color: var(--color-ink-mute); }
.activity-strip-word--blocked { color: var(--color-status-danger); }
.activity-strip-edge {
  align-content: center;
  box-sizing: border-box;
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  height: 16px;
  line-height: 16px;
  white-space: pre-wrap;
  width: max-content;
}
/* Live work and health (Dashboard, 2026-10-18) ----------------------------- */
/* What is running now, what is stuck, and whether the inputs are healthy.
   .work-grid lays .work-card tiles on hairlines: four across from 1440, two
   from 768, one on phones. A .work-card is one running piece of work: a pine
   edge (running), the welvet's avatar, the title and its running time
   (.work-card-time), then where and who (.work-card-meta) and the linked
   tickets (.work-card-links, berry).
   .work-row is one piece of work across the full width: avatar, title and
   links, its facts (.work-row-fact: a mono label over a value) and its state
   at the end. --stuck gives it the rowan edge and a rowan state.
   .source-grid lays .source-tile cards, two across (one on phones): an event
   source's mark, name and last event, its status, then the recent count
   beside .spark-bars.
   .state-row is one part of the system: a status square (--positive,
   --danger; neutral by default), the name, a mono meta and, optionally, a
   small .spark-bars--sm. Page: components/live-status.html. */
.work-grid {
  background-color: var(--color-line);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.work-card {
  background-color: var(--color-surface);
  border-left: 2px solid var(--color-status-positive);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-height: 96px;
  min-width: 0;
  padding: 10px;
}
.work-card-head {
  align-items: center;
  display: flex;
  gap: var(--space-2);
  min-width: 0;
}
.work-card-title {
  color: var(--color-ink);
  flex: 1 1 auto;
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  line-height: 20px;
  min-width: 0;
}
.work-card-time {
  color: var(--color-status-positive);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: var(--font-weight-bold);
  line-height: 16px;
}
.work-card-meta,
.work-card-links {
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
}
.work-card-links { color: var(--color-accent); }
@media (max-width: 1439px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .work-card { min-height: 0; }
}
/* Who is working on what (founder, 2026-10-21) ----------------------------- */
/* .work-card--who replaces the tile's welvet-first layout. The picture
   (.work-card-who) is the agent doing the work: its robot avatar with the
   platform badge bottom right and the welvet's avatar as a badge bottom left
   (.agent-avatar-welvet), because one agent can serve several welvets. With
   no agent bound, the welvet's avatar is the picture and keeps the platform
   badge. Beside it: the ticket or pull request (.work-card-ref) and its
   title, at most two lines, with the running time top right (it holds room
   on the title's first line only, so the second line runs under it). Under
   it, the agent's name in the reading face (.work-card-agent), then the
   facts (.work-card-fact) as icon and value, spaced and never joined by
   words or middots: the pull request, then the machine (the queens icon).
   No habitat, status word, last activity or progress line (founder,
   2026-10-21). .work-card-links is retired; it stays for the app's current
   pin. Page: components/live-status.html. */
.work-card--who {
  align-items: start;
  column-gap: var(--space-3);
  display: grid;
  grid-template-areas:
    "who title"
    "who agent"
    "who meta";
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 0;
  padding: var(--space-3) var(--space-3) 14px;
  position: relative;
  row-gap: var(--space-1);
}
.work-card-who {
  display: flex;
  flex-shrink: 0;
  grid-area: who;
  height: 44px;
  position: relative;
  width: 44px;
}
.work-card-who > .welvet-avatar { height: 44px; width: 44px; }
.work-card--who > .work-card-title {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  grid-area: title;
  line-clamp: 2;
  overflow: hidden;
}
.work-card--who > .work-card-title::before {
  content: "";
  float: right;
  height: 18px;
  width: 60px;
}
.work-card--who > .work-card-time {
  padding-top: 2px;
  position: absolute;
  right: var(--space-3);
  top: var(--space-3);
}
.work-card--who > .work-card-meta {
  column-gap: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  grid-area: meta;
  row-gap: 2px;
}
.work-card-agent {
  color: var(--color-ink-soft);
  font-size: 13px;
  grid-area: agent;
  line-height: 18px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-card-ref {
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: var(--font-weight-regular);
  margin-right: 6px;
}
.work-card-fact {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  white-space: nowrap;
}
.agent-avatar-welvet {
  border-color: var(--color-line-strong);
  bottom: -7px;
  height: 22px;
  left: -7px;
  position: absolute;
  width: 22px;
}
.work-row {
  align-items: center;
  border-left: 3px solid var(--color-line-strong);
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) 14px;
  min-height: 68px;
  padding: 12px 16px 12px 14px;
}
.work-row--stuck { border-left-color: var(--color-status-danger); }
.work-row-text {
  display: flex;
  flex: 1 1 240px;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}
.work-row-title {
  color: var(--color-ink);
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  line-height: 20px;
}
.work-row-links {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
}
.work-row-fact {
  display: flex;
  flex: 0 0 144px;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.work-row-fact-value {
  color: var(--color-ink);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  line-height: 16px;
}
.work-row-state {
  color: var(--color-ink-soft);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-label);
  margin-left: auto;
  text-align: right;
}
.work-row--stuck .work-row-state { color: var(--color-status-danger); }
@media (max-width: 767px) {
  .work-row { align-items: flex-start; }
  .work-row-text { flex-basis: calc(100% - 46px); }
  .work-row-fact { flex-basis: calc(50% - 7px); }
  .work-row-state { margin-left: 0; text-align: left; width: 100%; }
}
.source-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.source-tile {
  background-color: var(--color-surface-raised);
  border: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  padding: 10px 12px;
}
.source-tile-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) 10px;
  min-width: 0;
}
.source-tile-mark {
  color: var(--color-ink);
  flex-shrink: 0;
  height: 22px;
  width: 22px;
}
.source-tile-text {
  display: flex;
  flex: 1 1 120px;
  flex-direction: column;
  min-width: 0;
}
.source-tile-name {
  color: var(--color-ink);
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  line-height: 16px;
}
.source-tile-sub,
.source-tile-caption {
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
}
.source-tile-body {
  align-items: flex-end;
  border-top: 1px solid var(--color-line);
  display: flex;
  gap: var(--space-3);
  padding-top: var(--space-1);
}
.source-tile-figure {
  display: flex;
  flex: 0 0 74px;
  flex-direction: column;
}
.source-tile-count {
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: var(--text-panel);
  font-variant-numeric: tabular-nums;
  font-weight: var(--font-weight-bold);
  line-height: 22px;
}
@media (max-width: 767px) {
  .source-grid { grid-template-columns: minmax(0, 1fr); }
}
.state-list {
  display: flex;
  flex-direction: column;
}
.state-row {
  align-items: center;
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  column-gap: 10px;
  display: grid;
  grid-template-columns: 8px 56px minmax(0, 1fr) auto;
  min-height: 37px;
  padding-block: 6px;
}
.state-row::before {
  background-color: var(--color-ink-mute);
  content: "";
  height: 8px;
  width: 8px;
}
.state-row--positive::before { background-color: var(--color-status-positive); }
.state-row--danger::before { background-color: var(--color-status-danger); }
.state-row-name {
  color: var(--color-ink);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  line-height: 18px;
}
/* Welvet chips: identity jewel stays inside the avatar --------------------- */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.welvet-chip {
  align-items: center;
  max-width: 100%;
  background-color: var(--color-ground);
  border: 1px solid var(--color-line);
  box-sizing: border-box;
  color: var(--color-ink);
  display: inline-flex;
  font-size: 13px;
  gap: 8px;
  height: 32px;
  line-height: 16px;
  padding: 0 10px 0 3px;
  white-space: nowrap;
}
.welvet-chip-habitat {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
}
.chip-empty {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
}
.welvet-avatar {
  align-items: center;
  background-color: var(--color-surface-high);
  border: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  height: 24px;
  justify-content: center;
  width: 24px;
}
.welvet-avatar--lg { height: 40px; width: 40px; }
.welvet-glyph { display: block; flex-shrink: 0; }
.welvet-glyph--planner { background-color: var(--color-identity-iris); height: 12px; width: 3px; }
.welvet-glyph--engineer { background-color: var(--color-identity-orchid); height: 3px; width: 12px; }
.welvet-glyph--reviewer { background-color: var(--color-identity-teal); height: 8px; width: 8px; }
.welvet-glyph--qa { background-color: var(--color-identity-mauve); height: 3px; width: 12px; }
.welvet-glyph--triage { background-color: var(--color-identity-slate); height: 8px; width: 8px; }
.welvet-avatar--lg .welvet-glyph--planner { height: 20px; width: 5px; }
.welvet-avatar--lg .welvet-glyph--engineer,
.welvet-avatar--lg .welvet-glyph--qa { height: 5px; width: 20px; }
.welvet-avatar--lg .welvet-glyph--reviewer,
.welvet-avatar--lg .welvet-glyph--triage { height: 13px; width: 13px; }
/* Extra large (Library, 2026-10-18): the 72 px avatar at the head of a
   welvet's own page, 64 px on phones. Page: components/definition-rows.html. */
.welvet-avatar--xl { height: 72px; width: 72px; }
.welvet-avatar--xl .welvet-glyph--planner { height: 28px; width: 8px; }
.welvet-avatar--xl .welvet-glyph--engineer,
.welvet-avatar--xl .welvet-glyph--qa { height: 8px; width: 28px; }
.welvet-avatar--xl .welvet-glyph--reviewer,
.welvet-avatar--xl .welvet-glyph--triage { height: 18px; width: 18px; }
@media (max-width: 767px) {
  .welvet-avatar--xl { height: 64px; width: 64px; }
}
/* Medium avatar, bars mark and one more glyph (Dashboard, 2026-10-18):
   .welvet-avatar--md is the 32 px avatar of a list row. .welvet-mark (three
   bars in the jewel) was how the dashboard drew a welvet; it is retired in
   favour of the single glyph (see "One welvet mark everywhere") and kept for
   the app's current pin. .welvet-glyph--draft-resolver adds the single-bar glyph for the
   draft-resolver welvet (rose). Identity stays inside the avatar. Page:
   components/live-status.html. */
.welvet-avatar--md { height: 32px; width: 32px; }
.welvet-mark {
  align-items: flex-end;
  display: flex;
  gap: 2px;
  height: 17px;
  justify-content: center;
}
.welvet-mark > i { background-color: currentColor; flex: 0 0 2px; }
.welvet-avatar--md .welvet-mark,
.welvet-avatar--lg .welvet-mark { gap: 3px; height: 16px; }
.welvet-avatar--md .welvet-mark > i,
.welvet-avatar--lg .welvet-mark > i { flex-basis: 3px; }
.welvet-mark--planner { color: var(--color-identity-iris); }
.welvet-mark--planner > i:nth-child(1) { height: 82%; }
.welvet-mark--planner > i:nth-child(2) { height: 53%; }
.welvet-mark--planner > i:nth-child(3) { height: 100%; }
.welvet-mark--engineer { color: var(--color-identity-orchid); }
.welvet-mark--engineer > i:nth-child(1) { height: 53%; }
.welvet-mark--engineer > i:nth-child(2) { height: 82%; }
.welvet-mark--engineer > i:nth-child(3) { height: 100%; }
.welvet-mark--reviewer { color: var(--color-identity-teal); }
.welvet-mark--reviewer > i:nth-child(1) { height: 100%; }
.welvet-mark--reviewer > i:nth-child(2) { height: 65%; }
.welvet-mark--reviewer > i:nth-child(3) { height: 41%; }
.welvet-mark--qa { color: var(--color-identity-mauve); }
.welvet-mark--qa > i:nth-child(1) { height: 50%; }
.welvet-mark--qa > i:nth-child(2) { height: 100%; }
.welvet-mark--qa > i:nth-child(3) { height: 75%; }
.welvet-mark--review-resolver { color: var(--color-identity-indigo); }
.welvet-mark--review-resolver > i:nth-child(1) { height: 100%; }
.welvet-mark--review-resolver > i:nth-child(2) { height: 53%; }
.welvet-mark--review-resolver > i:nth-child(3) { height: 80%; }
.welvet-mark--pre-review { color: var(--color-identity-plum); }
.welvet-mark--pre-review > i:nth-child(1) { height: 80%; }
.welvet-mark--pre-review > i:nth-child(2) { height: 47%; }
.welvet-mark--pre-review > i:nth-child(3) { height: 100%; }
.welvet-mark--copilot-assigner { color: var(--color-identity-slate); }
.welvet-mark--copilot-assigner > i:nth-child(1) { height: 63%; }
.welvet-mark--copilot-assigner > i:nth-child(2) { height: 100%; }
.welvet-mark--copilot-assigner > i:nth-child(3) { height: 50%; }
.welvet-mark--draft-resolver { color: var(--color-identity-rose); }
.welvet-mark--draft-resolver > i:nth-child(1) { height: 100%; }
.welvet-mark--draft-resolver > i:nth-child(2) { height: 63%; }
.welvet-mark--draft-resolver > i:nth-child(3) { height: 38%; }
.welvet-glyph--draft-resolver { background-color: var(--color-identity-rose); height: 3px; width: 12px; }
/* One welvet mark everywhere (founder pick, 2026-10-18) -------------------- */
/* A welvet is drawn one way in the app and on the website: its single rect
   glyph (.welvet-glyph--<welvet>) in its jewel from the identity page
   (components/identity.html): planner iris, engineer orchid, reviewer teal,
   qa mauve, review-resolver indigo. Three shapes: a tall bar (planner,
   copilot-assigner), a wide bar (engineer, qa, draft-resolver) and a square
   (reviewer, triage, review-resolver, pre-review). The three bars
   (.welvet-mark), the activity mosaics and the website's two bars
   (.site-glyph) are retired; their classes stay for the app's current pin.
   The glyph scales with its avatar: 24 px (default), 32 px (--md), 34 px
   (.site-avatar--mark), 40 px (--lg), 48 px (--head), 72 px (--xl). Pages:
   components/identity.html, components/live-status.html. */
.welvet-glyph--review-resolver { background-color: var(--color-identity-indigo); height: 8px; width: 8px; }
.welvet-glyph--pre-review { background-color: var(--color-identity-plum); height: 8px; width: 8px; }
.welvet-glyph--copilot-assigner { background-color: var(--color-identity-slate); height: 12px; width: 3px; }
.welvet-avatar--md .welvet-glyph--planner,
.welvet-avatar--md .welvet-glyph--copilot-assigner,
.site-avatar--mark .welvet-glyph--planner { height: 16px; width: 4px; }
.welvet-avatar--md .welvet-glyph--engineer,
.welvet-avatar--md .welvet-glyph--qa,
.welvet-avatar--md .welvet-glyph--draft-resolver,
.site-avatar--mark .welvet-glyph--engineer,
.site-avatar--mark .welvet-glyph--qa { height: 4px; width: 16px; }
.welvet-avatar--md .welvet-glyph--reviewer,
.welvet-avatar--md .welvet-glyph--triage,
.welvet-avatar--md .welvet-glyph--review-resolver,
.welvet-avatar--md .welvet-glyph--pre-review,
.site-avatar--mark .welvet-glyph--reviewer { height: 11px; width: 11px; }
.welvet-avatar--lg .welvet-glyph--copilot-assigner { height: 20px; width: 5px; }
.welvet-avatar--lg .welvet-glyph--draft-resolver { height: 5px; width: 20px; }
.welvet-avatar--lg .welvet-glyph--review-resolver,
.welvet-avatar--lg .welvet-glyph--pre-review { height: 13px; width: 13px; }
.welvet-avatar--head .welvet-glyph--planner,
.welvet-avatar--head .welvet-glyph--copilot-assigner { height: 22px; width: 6px; }
.welvet-avatar--head .welvet-glyph--engineer,
.welvet-avatar--head .welvet-glyph--qa,
.welvet-avatar--head .welvet-glyph--draft-resolver { height: 6px; width: 22px; }
.welvet-avatar--head .welvet-glyph--reviewer,
.welvet-avatar--head .welvet-glyph--triage,
.welvet-avatar--head .welvet-glyph--review-resolver,
.welvet-avatar--head .welvet-glyph--pre-review { height: 14px; width: 14px; }
.site-avatar--mark { align-items: center; padding-top: 0; }
/* Head avatar (Activity, 2026-10-18): .welvet-avatar--head is the 48 px
   avatar at the start of a .subject-head, with the welvet's single glyph and
   the avatar's own hairline like every other avatar (the jewel-framed mosaic
   is retired, 2026-10-18). Page: components/timeline.html. */
.welvet-avatar--head {
  height: 48px;
  width: 48px;
}
/* Provider tiles and choice cards ----------------------------------------- */
.provider-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.provider-tile,
.choice {
  background-color: var(--color-ground);
  border: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  color: var(--color-ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  position: relative;
}
.provider-tile { min-height: 168px; }
.provider-tile--selected,
.choice--selected {
  background-color: var(--color-surface-raised);
  border-color: var(--color-accent);
}
.provider-tile--disabled {
  border-color: var(--color-line);
  border-style: dashed;
  color: var(--color-ink-mute);
}
.provider-tile-logo {
  align-items: center;
  background-color: var(--color-surface-raised);
  border: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  display: flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}
.provider-tile--disabled .provider-tile-logo {
  background-color: var(--color-ground);
  border-color: var(--color-line);
  border-style: dashed;
}
.provider-tile-name,
.choice-name {
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  line-height: 20px;
}
.provider-tile-desc,
.choice-desc {
  color: var(--color-ink-soft);
  font-size: 13px;
  line-height: 19px;
}
.provider-tile--disabled .provider-tile-desc { color: var(--color-ink-mute); }
.provider-tile-tag {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  line-height: var(--leading-label);
  margin-top: auto;
  text-transform: uppercase;
}
.provider-tile--selected .provider-tile-tag { color: var(--color-accent); }
.tile-check {
  color: var(--color-on-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  position: absolute;
  right: 14px;
  top: 14px;
}
.tile-check--corner { right: 6px; top: 6px; }
.choice-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.choice { gap: 10px; min-height: 132px; padding: 16px; }
@media (max-width: 1023px) {
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .provider-grid, .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .provider-tile { min-height: 0; }
  .choice { min-height: 0; }
}
/* Stepper (DS05 stepper specimen as a component) -------------------------- */
.steps {
  display: flex;
  margin: 0;
  padding: 0;
  width: 100%;
}
.step {
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.step-track {
  align-items: center;
  display: flex;
}
.step-node {
  align-items: center;
  background-color: var(--color-ground);
  border: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  color: var(--color-ink-mute);
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  height: 22px;
  justify-content: center;
  line-height: 12px;
  width: 22px;
}
.step-line {
  background-color: var(--color-line-strong);
  flex: 1 1 0%;
  height: 1px;
  margin-inline: 6px;
}
.step:last-child .step-line { visibility: hidden; }
.step-label {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  line-height: var(--leading-label);
  padding-right: 12px;
  text-transform: uppercase;
}
.step--done .step-node {
  background-color: var(--color-status-positive);
  border-color: var(--color-status-positive);
  color: var(--color-on-accent);
}
.step--done .step-line { background-color: var(--color-status-positive); }
.step--done .step-label { color: var(--color-ink-soft); }
.step--current .step-node {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
}
.step--current .step-label {
  color: var(--color-ink);
  font-weight: var(--font-weight-bold);
}
.step--blocked .step-node {
  border-color: var(--color-status-danger);
  color: var(--color-status-danger);
}
.step--blocked .step-label { color: var(--color-status-danger); font-weight: var(--font-weight-bold); }
.steps-compact {
  display: none;
  flex-direction: column;
  gap: 10px;
}
.steps-compact-label {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  line-height: var(--leading-label);
  text-transform: uppercase;
}
.steps-compact-label--blocked { color: var(--color-status-danger); }
.progress {
  background-color: var(--color-line);
  height: 3px;
  width: 100%;
}
.progress-fill {
  background-color: var(--color-accent);
  height: 100%;
}
@media (max-width: 767px) {
  .steps { display: none; }
  .steps-compact { display: flex; }
}
/* Phase strip (Queens, 2026-10-18) ----------------------------------------- */
/* The stepper's tiled variant, for a process the user reads rather than
   walks: an ordered list (<ol>) of phases inside a pane, after its head.
   Each .phase is a tile with a .phase-label (a mono "02 · intake stopped")
   and a .phase-text (what it means now). Label tones: --done (pine: passed)
   and --active (a berry label and ink text: the phase doing the work); the
   rest stay mute. Where the process stands now is a fill on one tile, with
   aria-current="step": --here (berry tint), --here-danger (rowan tint: it
   stopped on a problem) or --here-positive (pine tint: it reached a safe
   end). Four across from 1024 up, two by two from 768, one column on phones.
   Read-only. Page: components/phase-strip.html. */
.phase-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.phase {
  border-left: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  min-height: 82px;
  min-width: 0;
  padding: 12px 16px;
}
.phase:first-child { border-left: 0; }
.phase-label {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-label);
  text-transform: uppercase;
}
.phase-text {
  color: var(--color-ink-soft);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}
.phase--done .phase-label { color: var(--color-status-positive); }
.phase--active .phase-label { color: var(--color-accent); }
.phase--active .phase-text { color: var(--color-ink); }
.phase--here { background-color: var(--color-accent-tint); }
.phase--here-danger { background-color: color-mix(in srgb, var(--color-status-danger) 12%, transparent); }
.phase--here-positive { background-color: color-mix(in srgb, var(--color-status-positive) 14%, transparent); }
@media (max-width: 1023px) {
  .phase-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase { min-height: 76px; }
  .phase:nth-child(odd) { border-left: 0; }
  .phase:nth-child(n+3) { border-top: 1px solid var(--color-line); }
}
@media (max-width: 767px) {
  .phase-strip { grid-template-columns: minmax(0, 1fr); }
  .phase { border-left: 0; min-height: 70px; }
  .phase + .phase { border-top: 1px solid var(--color-line); }
}
/* Copy rows: non-secret values to carry into a provider ------------------- */
.copy-list {
  border: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.copy-row {
  align-items: center;
  background-color: var(--color-ground);
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  display: grid;
  gap: 16px;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  min-height: 68px;
  padding: 12px 14px;
}
.copy-row:first-child { border-top: 0; }
.copy-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.copy-label-name {
  color: var(--color-ink);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  line-height: 18px;
}
.copy-label-hint {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
}
.copy-value {
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.copy-button {
  align-items: center;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-control);
  box-sizing: border-box;
  color: var(--color-ink-soft);
  display: flex;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  height: 44px;
  justify-content: center;
  letter-spacing: 0.12em;
  line-height: var(--leading-label);
  min-width: 84px;
  padding-inline: 12px;
  text-transform: uppercase;
}
.copy-button--done {
  border-color: var(--color-status-positive);
  color: var(--color-status-positive);
}
.token-chip {
  border: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  color: var(--color-ink);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  padding: 3px 7px;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .copy-row { gap: 8px 12px; grid-template-columns: minmax(0, 1fr) auto; }
  .copy-label { grid-column: 1 / -1; }
}
/* Command block (Queens, 2026-10-18) ----------------------------------------- */
/* A command to run on a machine, shown as it will be copied: a head with the
   label of what it is for (a .pane-label) and a state note (a .pane-meta,
   --danger when the command is locked by an error), then the lines in mono
   on the ground. The block keeps its height while the command is locked or
   ready, so the page does not jump; long lines wrap. The copy action sits
   below it in the form, never inside. The token itself is never shown:
   the command carries a placeholder. Page: components/registration.html. */
.command {
  background-color: var(--color-ground);
  border: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 144px;
  padding: var(--space-4);
}
.command-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  justify-content: space-between;
}
.command-code {
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: 14px;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
/* Machine help (Queens, BET-1401) ------------------------------------------- */
/* What to type on a queen's own machine to bring it back, inside a recovery
   or repair pane after its readings. .machine-help is the block, set off by
   a hairline: a head (.machine-help-head) with a soft .pane-label and the
   install-type .view-switch (windows, macos, linux, docker; the one for the
   queen's reported os is current, and docker is always offered because a
   container reports linux on any host), the queen's name (.machine-name),
   numbered steps (.machine-steps) and the notes that apply (.machine-notes).
   A step (.machine-step) has a faint number, a title, a line that says when
   and what to look for, and where it has one its command: .machine-command,
   the lines in mono on the ground with a .copy-button beside them (the
   pane's one primary button instead when that step is the pane's main
   action). --first drops the hairline when the block sits right under the
   pane's head. Every command carries the queen's name and the program's full
   path; a name the page could not read from the queen is a
   .machine-placeholder. A flag (.machine-flag, such as --instance) never
   breaks across lines. .machine-output is what the step says to look for,
   read-only; .machine-outcomes pairs what the machine prints with what to do
   next. Long lines wrap; nothing scrolls sideways. The Windows administrator
   note is a visible .notice--guard. Phones: the switch takes the full width,
   a step's number sits above its title, and the copy action drops under its
   command at full width (44 px). States: the switch's current, hover and
   focus; copy and copied. Page: components/machine-help.html. */
.machine-help {
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: 18px;
}
.machine-help--first { border-top: 0; }
.machine-help-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
}
.machine-name {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 4px var(--space-3);
}
.machine-name-value {
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  line-height: 20px;
  overflow-wrap: anywhere;
}
.machine-code {
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.machine-placeholder {
  border-bottom: 1px dashed var(--color-ink-soft);
  color: var(--color-ink);
  font-style: normal;
}
.machine-steps {
  border: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}
.machine-step {
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 24px minmax(0, 1fr);
  padding: 14px 16px;
}
.machine-step:first-child { border-top: 0; }
.machine-step-num {
  color: var(--color-ink-faint);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--font-weight-bold);
  line-height: 20px;
}
.machine-step-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.machine-step-title {
  color: var(--color-ink);
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  line-height: 20px;
}
.machine-step-text {
  color: var(--color-ink-soft);
  font-size: 13px;
  line-height: 20px;
  margin: 0;
}
.machine-command {
  align-items: center;
  background-color: var(--color-ground);
  border: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 10px 10px 14px;
}
.machine-command-code {
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.machine-flag { white-space: nowrap; }
.machine-output {
  border-left: 2px solid var(--color-line-strong);
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 2px 0 2px var(--space-3);
  white-space: pre-wrap;
}
.machine-outcomes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.machine-outcome {
  color: var(--color-ink-soft);
  display: grid;
  font-size: 13px;
  gap: var(--space-3);
  grid-template-columns: 176px minmax(0, 1fr);
  line-height: 20px;
}
.machine-outcome-state {
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.machine-notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.machine-note {
  color: var(--color-ink-soft);
  font-size: 12px;
  line-height: 18px;
  margin: 0;
}
@media (max-width: 767px) {
  .machine-help { padding: var(--space-inset-phone); }
  .machine-step { gap: 6px; grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .machine-command { grid-template-columns: minmax(0, 1fr); }
  .machine-command > .copy-button,
  .machine-command > .button-primary { width: 100%; }
  .machine-outcome { gap: 2px; grid-template-columns: minmax(0, 1fr); }
}
/* Secret fields: write-only, masked, never echoed ------------------------- */
.secret-lock {
  flex-shrink: 0;
  height: 16px;
  width: 16px;
}
.secret-mask {
  color: var(--color-ink);
  flex: 1 1 0%;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  line-height: 20px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.secret-tag {
  color: var(--color-ink-mute);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 12px;
  text-transform: uppercase;
}
.field-row-gap { gap: 12px; }
.sealed-item {
  align-items: center;
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  display: grid;
  gap: 12px;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  min-height: 52px;
  padding: 12px 18px;
}
.sealed-item:first-child { border-top: 0; }
.sealed-name {
  color: var(--color-ink);
  font-size: 13px;
  line-height: 18px;
}
.sealed-state {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
  text-align: right;
}
.sealed-state--danger { color: var(--color-status-danger); }
/* Test checklist ----------------------------------------------------------- */
.checklist {
  display: flex;
  flex-direction: column;
}
.check-item {
  align-items: start;
  border-top: 1px solid var(--color-line);
  display: grid;
  gap: 12px;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  padding: 12px 0;
}
.check-item:first-child { border-top: 0; padding-top: 0; }
.check-mark {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  font-family: var(--font-mono);
  font-size: 10px;
  height: 18px;
  justify-content: center;
  line-height: 12px;
  margin-top: 1px;
  width: 18px;
}
.check-mark--pass { background-color: var(--color-status-positive); color: var(--color-on-accent); }
.check-mark--fail { border: 1px solid var(--color-status-danger); color: var(--color-status-danger); }
.check-mark--wait { border: 1px solid var(--color-line-strong); color: var(--color-ink-mute); }
.check-mark--running { border: 1px solid var(--color-accent); color: var(--color-accent); }
.check-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.check-title {
  color: var(--color-ink);
  font-size: 13px;
  line-height: 18px;
}
.check-title--fail { color: var(--color-status-danger); }
.check-detail,
.check-time {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: var(--leading-label);
}
/* Selectable rows (agent setup choices) ----------------------------------- */
.select-row {
  align-items: center;
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  display: grid;
  gap: 14px;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  min-height: 72px;
  padding: 14px 18px;
}
.select-row:first-child { border-top: 0; }
.select-row--selected { background-color: var(--color-surface-raised); }
.select-row--check { grid-template-columns: 20px minmax(0, 1fr); }
.select-row--action { grid-template-columns: minmax(0, 1fr) auto; }
.checkbox-empty {
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-control);
  box-sizing: border-box;
  height: 20px;
  width: 20px;
}
.radio {
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-status-dot);
  box-sizing: border-box;
  flex-shrink: 0;
  height: 20px;
  width: 20px;
}
.radio--on { border: 6px solid var(--color-accent); }
.checkbox-selected .tick {
  color: var(--color-on-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 12px;
}
/* Picker (binding select, open) -------------------------------------------- */
/* The list a select opens, drawn in the page under its field, as wide as it:
   the binding picker, the Linear workspace and the GitHub organization
   ("create in", BET-1283). Never the browser's own list. What follows the
   field, such as its hint, moves down while the list shows. The open field
   has the focus edge (.field--focus) and ▴. */
.picker {
  background-color: var(--color-surface-raised);
  border: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.picker-group {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 12px;
  padding: 12px 14px 6px;
  text-transform: uppercase;
}
.picker-option {
  align-items: center;
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 60px;
  padding: 10px 14px;
}
.picker-option--selected {
  background-color: var(--color-surface-hover);
  box-shadow: inset 2px 0 0 var(--color-accent);
}
.picker-option--action { grid-template-columns: minmax(0, 1fr) auto; }
.picker-option--muted .agent-name { color: var(--color-ink-soft); }
.picker .agent-status { white-space: normal; }
.picker-option--add {
  color: var(--color-accent);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  grid-template-columns: 20px minmax(0, 1fr) auto;
  min-height: 52px;
}
/* Activation configuration rows (habitats manage recipe, responsive) ------ */
.config-row {
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 100px;
  padding: 18px;
}
.config-row:first-child { border-top: 0; }
.config-row--focus { background-color: var(--color-surface-raised); }
.config-name {
  align-items: center;
  color: var(--color-ink);
  display: flex;
  font-family: var(--font-mono);
  font-size: 12px;
  gap: 10px;
  line-height: 16px;
}
.config-req {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 12px;
  text-transform: uppercase;
}
.config-req--optional { color: var(--color-ink-mute); }
.config-desc {
  color: var(--color-ink-soft);
  font-size: 13px;
  line-height: 19px;
  margin-top: 6px;
}
.config-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.config-origin {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 14px;
  padding-top: 16px;
  text-align: right;
  text-transform: uppercase;
}
@media (max-width: 767px) {
  .config-row { gap: 12px; grid-template-columns: minmax(0, 1fr); }
  .config-origin { padding-top: 0; text-align: left; }
}
/* Destructive dialog (overlay specimen, responsive) ----------------------- */
.scrim {
  align-items: flex-start;
  background-color: color-mix(in srgb, var(--color-scrim) 74%, transparent);
  box-sizing: border-box;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 180px var(--space-inset-phone) var(--space-inset-phone);
  position: absolute;
  z-index: 10;
}
.dialog {
  background-color: var(--color-surface);
  border: 1px solid var(--color-status-danger);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  max-width: 540px;
  width: 100%;
}
.dialog .pane-label { color: var(--color-status-danger); }
.dialog-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 18px;
}
.dialog-title {
  color: var(--color-ink);
  font-size: 22px;
  font-weight: var(--font-weight-semibold);
  line-height: 28px;
  margin: 0;
}
.button-danger-fill {
  align-items: center;
  background-color: var(--color-status-danger);
  border: 1px solid var(--color-status-danger);
  border-radius: var(--radius-control);
  box-sizing: border-box;
  color: var(--color-on-accent);
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  height: 44px;
  justify-content: center;
  line-height: 18px;
  padding-inline: 18px;
}
@media (max-width: 767px) {
  .scrim { padding: 120px 0 0; }
  .dialog { max-width: none; }
}
/* Positive fill (Queens, 2026-10-18) --------------------------------------- */
/* .button-positive-fill is the pine twin of .button-danger-fill: the one
   action that finishes something Hive has confirmed safe ("review exact
   set" once the server has bound it). "Stop queen" is the berry primary
   (founder pick, 2026-10-18: pine is a status colour). Use it only where the status is already said in
   words beside it; never as a second accent. States: hover, focus (disabled is .button-disabled).
   Page: components/buttons.html. */
.button-positive-fill {
  align-items: center;
  background-color: var(--color-status-positive);
  border: 1px solid var(--color-status-positive);
  border-radius: var(--radius-control);
  box-sizing: border-box;
  color: var(--color-on-accent);
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  height: 44px;
  justify-content: center;
  line-height: 18px;
  padding-inline: 18px;
}
.button-positive-fill:hover,
.button-positive-fill.is-hover { border-color: var(--color-ink); }
.button-positive-fill:focus-visible,
.button-positive-fill.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
/* Signal fill (Queens work recovery, 2026-10-18) ------------------------------- */
/* .button-signal-fill was the teal busy button. Since the founder's colour
   picks (2026-10-18) a busy action is the standard loading button
   (.button-primary.button-loading, with .control--regular for 44 px): use that. This class
   stays for the app's current pin and now draws the same loading look. */
.button-signal-fill {
  align-items: center;
  background-color: var(--color-accent-tint);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-control);
  box-sizing: border-box;
  color: var(--color-ink);
  cursor: default;
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  height: 44px;
  justify-content: center;
  line-height: 18px;
  padding-inline: 18px;
}
.button-signal-fill:focus-visible,
.button-signal-fill.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
/* Disabled buttons (Agents, BET-1283) ---------------------------------------- */
/* A disabled control looks disabled. A real button that can't be used
   ([disabled] or aria-disabled="true") takes the .button-disabled look,
   whatever its kind or size: the high fill, a hairline edge, mute ink, no
   glow and no hover. Mute ink is the disabled-text role (SKILL.md, colour
   roles); WCAG's contrast minimum does not apply to an inactive control. The
   reason it can't be used is said in words beside it. Page:
   components/buttons.html. */
.button-primary:disabled,
.button-primary[aria-disabled="true"],
.button-secondary:disabled,
.button-secondary[aria-disabled="true"],
.button-quiet:disabled,
.button-quiet[aria-disabled="true"],
.button-destructive:disabled,
.button-destructive[aria-disabled="true"],
.button-danger-fill:disabled,
.button-danger-fill[aria-disabled="true"],
.button-positive-fill:disabled,
.button-positive-fill[aria-disabled="true"] {
  background-color: var(--color-surface-high);
  border-color: var(--color-line);
  box-shadow: none;
  color: var(--color-ink-mute);
  cursor: not-allowed;
}
/* Wide dialog (Queens, 2026-10-18): .dialog--wide is a 680 px dialog for a
   confirmation that lists the exact things it acts on (the claims a forced
   handover interrupts). Its head can carry the label over the title. Page:
   components/overlays-and-menus.html. */
.dialog--wide { max-width: 680px; }
/* Plain dialog (Library, 2026-10-18) ---------------------------------------- */
/* A dialog that is not destructive: the strong line instead of rowan, 620 px
   wide, a head with the title and a close control (.dialog-head), then its
   content (rows, a table head). .scrim--page-phone turns the overlay into the
   page itself on phones: no scrim, the dialog sits in the content below the
   top bar, and the page behind it is hidden (.phone-hide). The phone swaps
   close for back. Page: components/overlays-and-menus.html. */
.dialog--plain {
  border-color: var(--color-line-strong);
  max-width: 620px;
}
.dialog--plain .pane-label { color: var(--color-accent); }
.dialog-head {
  align-items: flex-start;
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
}
.dialog-head-title {
  align-items: center;
  display: flex;
  gap: var(--space-3);
  min-width: 0;
}
@media (max-width: 767px) {
  .scrim--page-phone { background-color: transparent; padding: 0; position: static; }
}
/* Confirmation sections (Queens work recovery, 2026-10-18) ----------------- */
/* A confirmation that lays out exactly what it will do, part by part, before
   the one action: what is included, what is excluded, what changes, what is
   kept, and the risk. .dialog--sections is a plain dialog 720 px wide on the
   raised surface. Inside, after the head (.pane-head: a label and a mono
   meta) and the title block (.dialog-body), .dialog-sections is a grid of
   .dialog-section cells two across on hairlines; --full takes the whole
   width; --danger is the rowan-tinted cell for the risk. Each cell has a
   .dialog-section-label (berry; --positive, --danger, --signal by what it
   lists), its content (a .list-row-code line or a .dialog-section-text
   statement in ink) and a .dialog-section-note (soft; --quiet in mute). The foot is a
   .pane-foot: a quiet note (at most 340 px) and the actions. On phones the cells stack and
   the actions stack full width. Page: components/overlays-and-menus.html. */
.dialog--sections {
  background-color: var(--color-surface-raised);
  max-width: 720px;
}
.dialog-sections {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
.dialog-section {
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-4) 20px;
}
.dialog-section:nth-child(odd):not(.dialog-section--full) { border-right: 1px solid var(--color-line); }
.dialog-section--full { grid-column: 1 / -1; }
.dialog-section--danger {
  background-color: color-mix(in srgb, var(--color-status-danger) 8%, transparent);
  gap: 5px;
  padding-block: 14px;
}
.dialog-section-label {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}
.dialog-section-label--positive { color: var(--color-status-positive); }
.dialog-section-label--danger { color: var(--color-status-danger); }
.dialog-section-label--signal { color: var(--event-summary-signal); }
.dialog-section-note {
  color: var(--color-ink-soft);
  font-size: var(--text-label);
  line-height: 17px;
  margin: 0;
}
.dialog-section-note--quiet { color: var(--color-ink-mute); }
.dialog-section-text {
  color: var(--color-ink);
  font-size: 12px;
  line-height: 18px;
  margin: 0;
}
.dialog--sections .pane-foot > .dialog-section-note {
  flex: 1 1 260px;
  max-width: 340px;
}
.dialog-sections .list-row-code {
  font-size: var(--text-label);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-label);
}
@media (max-width: 767px) {
  .dialog-sections { grid-template-columns: minmax(0, 1fr); }
  .dialog-section:nth-child(odd):not(.dialog-section--full) { border-right: 0; }
  .dialog--sections .pane-foot > .cluster > * { flex-basis: 100%; }
}
/* Sheet on phones (Habitats, 2026-10-18): .scrim--sheet-phone keeps the
   dialog over the page but moves it to the bottom of the screen on phones,
   as a sheet across the full width (the scrim is fixed to the screen, like
   the action menu's). Use it for a short confirmation, such as deleting a
   habitat. From 768 up it is the usual dialog over the scrim. Since the
   founder's pick (2026-10-18) every confirmation dialog on phones is this
   sheet. A sheet taller than the screen stops 48 px below its top and
   scrolls inside, with its foot (the actions) kept at the bottom. Page:
   components/overlays-and-menus.html. */
@media (max-width: 767px) {
  .scrim--sheet-phone { align-items: flex-end; padding: 0; position: fixed; z-index: 30; }
  .scrim--sheet-phone .dialog { border-width: 1px 0 0; max-height: calc(100vh - var(--space-7)); overflow-y: auto; }
  .scrim--sheet-phone .dialog > * { flex-shrink: 0; }
  .scrim--sheet-phone .dialog > .pane-foot { background-color: var(--color-surface); bottom: 0; position: sticky; }
}
/* Action menu (Library, 2026-10-18) ----------------------------------------- */
/* The menu a compact control opens (a page's "actions"). From 768 up a
   286 px dropdown under its control, right-aligned; on phones a bottom sheet
   over a scrim, with a grabber and an optional footnote (.menu-foot). Parts:
   .menu-anchor (wraps the control and the menu), .menu-head (a mono title and
   a tag), .menu-item with .menu-item-title, .menu-item-sub and .menu-item-end.
   Variants: --danger items (rowan title and end word). States: hover, focus,
   unavailable ([aria-disabled]: mute title, no hover; its end word says why);
   the control that opened it keeps a berry edge (.is-open). Page:
   components/overlays-and-menus.html. */
.menu-anchor { position: relative; }
.button-quiet.is-open,
.row-go.is-open { border-color: var(--color-accent); }
.menu {
  background-color: var(--color-surface-raised);
  border: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 286px;
  z-index: 20;
}
.menu-grabber,
.menu-scrim { display: none; }
.menu-head {
  align-items: center;
  border-bottom: 1px solid var(--color-line);
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
  min-height: 38px;
  padding: 0 12px 0 14px;
}
.menu-title {
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}
.menu-item {
  align-items: center;
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  color: var(--color-ink-soft);
  display: grid;
  gap: var(--space-3);
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 54px;
  padding: 8px 12px 8px 14px;
  text-decoration: none;
}
.menu-head + .menu-item { border-top: 0; }
.menu-item:hover,
.menu-item.is-hover { background-color: var(--color-surface-hover); }
.menu-item:focus-visible,
.menu-item.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}
.menu-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.menu-item-title {
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  line-height: 15px;
}
.menu-item-sub,
.menu-item-end {
  color: var(--color-ink-mute);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.04em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}
.menu-item-end { letter-spacing: 0.08em; }
.menu-item--danger .menu-item-title,
.menu-item--danger .menu-item-end { color: var(--color-status-danger); }
.menu-item[aria-disabled="true"] { cursor: default; }
.menu-item[aria-disabled="true"]:hover,
.menu-item[aria-disabled="true"].is-hover { background-color: transparent; }
.menu-item[aria-disabled="true"] .menu-item-title { color: var(--color-ink-mute); }
.menu-foot {
  border-top: 1px solid var(--color-line);
  color: var(--color-ink-soft);
  font-size: var(--text-label);
  line-height: var(--leading-label);
  padding: 14px 18px 18px;
}
@media (max-width: 767px) {
  .menu {
    border-width: 1px 0 0;
    bottom: 0;
    left: 0;
    position: fixed;
    top: auto;
    width: auto;
    z-index: 30;
  }
  .menu-grabber {
    background-color: var(--color-line-strong);
    display: block;
    height: 3px;
    margin: 11px auto 9px;
    width: 40px;
  }
  .menu-scrim {
    background-color: color-mix(in srgb, var(--color-scrim) 74%, transparent);
    display: block;
    inset: 0;
    position: fixed;
    z-index: 25;
  }
  .menu-head { min-height: 44px; padding-inline: 18px; }
  .menu-item { min-height: 68px; padding-inline: 18px; }
  .menu-item-title { font-size: 13px; line-height: 17px; }
}
/* Write-only file field (GitHub private key upload) ----------------------- */
.file-drop {
  align-items: center;
  background-color: var(--color-ground);
  border: 1px dashed var(--color-line-strong);
  border-radius: var(--radius-control);
  box-sizing: border-box;
  display: flex;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
}
.file-drop--ready { border-style: solid; }
.file-name {
  color: var(--color-ink);
  flex: 1 1 0%;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  min-width: 0;
  overflow-wrap: anywhere;
}
/* Agent avatar · pink cube robot face crop (brand character, 2026-10-16).
   The only place the mascot appears on working surfaces. */
.agent-avatar--mascot {
  border-radius: var(--radius-agent-avatar);
  padding: 0;
}
.agent-avatar-img {
  border-radius: var(--radius-agent-avatar);
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.agent-avatar--xl { height: 72px; width: 72px; }
.avatar-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.avatar-grid--later { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.avatar-option {
  align-items: center;
  background-color: var(--color-ground);
  border: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  color: var(--color-ink-soft);
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  gap: 8px;
  line-height: var(--leading-label);
  min-height: 44px;
  padding: 10px 6px;
  position: relative;
}
.avatar-option--selected {
  background-color: var(--color-surface-raised);
  border-color: var(--color-accent);
  color: var(--color-ink);
}
.avatar-option--later {
  border-color: var(--color-line);
  border-style: dashed;
  color: var(--color-ink-mute);
}
.avatar-later {
  align-items: center;
  border: 1px dashed var(--color-line-strong);
  border-radius: var(--radius-agent-avatar);
  box-sizing: border-box;
  color: var(--color-ink-mute);
  display: flex;
  font-family: var(--font-mono);
  font-size: 10px;
  height: 44px;
  justify-content: center;
  width: 44px;
}
@media (max-width: 767px) {
  .avatar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .avatar-grid--later { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* GitHub access (welvet-0064): access levels and missing-access rows ------ */
.access-row {
  align-items: center;
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 10px 18px;
}
.seg {
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-control);
  box-sizing: border-box;
  display: inline-flex;
}
.seg-option {
  align-items: center;
  border-left: 1px solid var(--color-line);
  box-sizing: border-box;
  color: var(--color-ink-soft);
  display: flex;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  height: 44px;
  line-height: var(--leading-label);
  padding-inline: 12px;
  white-space: nowrap;
}
.seg-option:first-child { border-left: 0; }
.seg-option--on {
  background-color: var(--color-surface-raised);
  box-shadow: inset 0 -2px 0 var(--color-accent);
  color: var(--color-ink);
  font-weight: var(--font-weight-bold);
}
.seg--locked { border-style: dashed; }
.seg--locked .seg-option { color: var(--color-ink-mute); }
.seg--locked .seg-option--on { box-shadow: none; color: var(--color-ink-soft); }
.access-diff {
  align-items: center;
  border-top: 1px solid var(--color-line);
  box-sizing: border-box;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 90px 130px;
  min-height: 56px;
  padding: 10px 14px;
}
.access-diff--head { border-top: 0; min-height: 36px; }
@media (max-width: 767px) {
  .access-row { grid-template-columns: minmax(0, 1fr); }
  .seg { width: 100%; }
  .seg-option { flex: 1 1 0%; justify-content: center; padding-inline: 6px; white-space: normal; text-align: center; }
  .access-diff { grid-template-columns: minmax(0, 1fr) auto auto; }
}
/* Linear form rows revealed by a toggle, and the public card (BET-1194) --- */
.copy-row--nested {
  box-shadow: inset 2px 0 0 var(--color-line-strong);
  padding-left: 30px;
}
.public-shell {
  align-items: center;
  background-color: var(--color-ground);
  box-sizing: border-box;
  color: var(--color-ink);
  display: grid;
  font-family: var(--font-body);
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-wrap: anywhere;
  padding: 40px var(--space-5);
  place-items: center;
  -webkit-font-smoothing: antialiased;
}
.public-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 440px;
  width: 100%;
}
.public-lockup {
  align-items: center;
  display: flex;
  gap: 13px;
  margin-bottom: 6px;
}
.public-mark { flex-shrink: 0; height: 34px; width: 34px; }
.public-wordmark {
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-title);
  line-height: 28px;
}
.public-title {
  color: var(--color-ink);
  font-size: var(--text-panel);
  font-weight: var(--font-weight-semibold);
  line-height: 26px;
  margin: 0;
}
/* Kept only for the sign-in pages, with .nav-endorsement. */
.public-foot {
  border-top: 1px solid var(--color-line);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
}
@media (max-width: 767px) {
  .public-shell { align-items: start; padding: var(--space-7) var(--space-inset-phone); }
  .copy-row--nested { padding-left: 22px; }
}
.public-card .kv-item { gap: 6px 14px; grid-template-columns: 150px minmax(0, 1fr); }
.public-card .kv-item > :nth-child(3):empty { display: none; }
@media (max-width: 767px) {
  .public-card .kv-item { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------------
   Flow diagram · design/flow-diagram (2026-10-17).
   Nodes joined by square ports and 1 px wires, for showing work moving from
   a tool to a welvet. Status is a word plus a shape. Brightness says what is
   current: ink is happening now, soft is normal, mute is settled. Motion is
   state change only, and reduced motion keeps every state readable.
   Tokens only. Component page: components/flow-diagram.html.
   ------------------------------------------------------------------------ */

.flow {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Node ---------------------------------------------------------------------- */
.flow-node {
  background-color: var(--flow-node-fill);
  border: 1px solid var(--flow-node-line);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}
.flow-node__frame {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
/* Outside things and machines (event sources, queens) get a double frame. */
.flow-node--source {
  padding: 3px;
}
.flow-node--source .flow-node__frame {
  border: 1px solid var(--flow-bezel-line);
}
/* A node that takes no part in this run. */
.flow-node--dormant {
  background-color: var(--color-ground);
  border-color: var(--color-line);
}
.flow-node__head {
  align-items: center;
  background-color: var(--flow-node-head-fill);
  border-bottom: 1px solid var(--color-line);
  box-sizing: border-box;
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
  min-height: 40px;
  padding: 8px 14px;
}
.flow-node--dormant .flow-node__head {
  background-color: transparent;
}
.flow-node__id {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}
.flow-node__mark {
  display: block;
  flex-shrink: 0;
  height: 14px;
  width: 14px;
}
.flow-node__title {
  color: var(--flow-text-now);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 20px;
}
.flow-node__meta {
  color: var(--flow-text-settled);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
}
.flow-node__body {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px 14px;
}
.flow-node__lede {
  color: var(--flow-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}
.flow-node--dormant .flow-node__title,
.flow-node--dormant .flow-node__lede {
  color: var(--flow-text-settled);
}
.flow-node--settled .flow-node__lede {
  color: var(--flow-text-settled);
}

/* Status corner: a word plus a square ---------------------------------------- */
.flow-state {
  align-items: center;
  color: var(--flow-text-settled);
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  gap: 8px;
  letter-spacing: 0.12em;
  line-height: 16px;
  text-transform: uppercase;
  white-space: nowrap;
}
.flow-state::after {
  border: 1px solid var(--color-line-strong);
  box-sizing: border-box;
  content: "";
  height: 7px;
  width: 7px;
}
.flow-state--working {
  color: var(--flow-text-now);
}
.flow-state--working::after {
  animation: flow-pulse 1800ms var(--motion-ease) infinite;
  background-color: var(--flow-signal);
  border-color: var(--flow-signal);
  box-shadow: var(--flow-signal-glow);
}
.flow-state--done {
  color: var(--flow-text);
}
.flow-state--done::after {
  background-color: var(--flow-done);
  border-color: var(--flow-done);
}
.flow-state--failed {
  color: var(--flow-failed);
}
.flow-state--failed::after {
  border: 0;
  color: var(--flow-failed);
  content: "×";
  font-size: 13px;
  height: auto;
  letter-spacing: 0;
  line-height: 16px;
  width: auto;
}

/* Activity row --------------------------------------------------------------- */
.flow-row {
  align-items: start;
  color: var(--flow-text);
  display: grid;
  font-family: var(--font-mono);
  font-size: 12px;
  gap: 10px;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  line-height: 20px;
}
.flow-row__end {
  color: var(--flow-text-settled);
  font-size: 11px;
}
.flow-row--working {
  color: var(--flow-text-now);
}
.flow-row--done,
.flow-row--queued {
  color: var(--flow-text-settled);
}
.flow-row--failed {
  color: var(--flow-text-now);
}

/* Row marks: the shape carries the state without colour ----------------------- */
.flow-mark {
  align-items: center;
  display: flex;
  height: 20px;
  justify-content: center;
  width: 14px;
}
.flow-mark::before {
  box-sizing: border-box;
  content: "";
  display: block;
}
.flow-mark--queued::before {
  border: 1px solid var(--color-line-strong);
  height: 8px;
  width: 8px;
}
/* Working: a square outline that never closes. Three sides' worth of berry
   travels round it without stopping, and one side's worth always stays dark,
   so the square reads as a loop. It runs anticlockwise: left, bottom, right,
   top. The ring is drawn by sweeping the outline with the orbit angle and
   masking out its middle. */
@property --flow-orbit-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 45deg;
}
.flow-mark--working::before {
  animation: flow-orbit var(--flow-orbit-duration) linear infinite;
  background: conic-gradient(
    from var(--flow-orbit-angle),
    var(--flow-signal) 0deg 270deg,
    var(--flow-wire) 270deg 360deg
  );
  height: 10px;
  -webkit-mask:
    linear-gradient(var(--color-ink) 0 0) content-box,
    linear-gradient(var(--color-ink) 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(var(--color-ink) 0 0) content-box exclude,
    linear-gradient(var(--color-ink) 0 0);
  padding: 1.5px;
  width: 10px;
}
.flow-mark--done::before {
  border-bottom: 1.5px solid var(--flow-done);
  border-left: 1.5px solid var(--flow-done);
  height: 5px;
  transform: translateY(-2px) rotate(-45deg);
  width: 9px;
}
.flow-mark--failed::before {
  color: var(--flow-failed);
  content: "×";
  font-size: 14px;
  line-height: 20px;
}
/* Static positions of the working mark, so a page can show where the dark
   side travels: top, then left, bottom and right. */
.flow-mark--working.is-gap-top::before,
.flow-mark--working.is-gap-left::before,
.flow-mark--working.is-gap-bottom::before,
.flow-mark--working.is-gap-right::before {
  animation: none;
}
.flow-mark--working.is-gap-top::before { --flow-orbit-angle: 45deg; }
.flow-mark--working.is-gap-left::before { --flow-orbit-angle: 315deg; }
.flow-mark--working.is-gap-bottom::before { --flow-orbit-angle: 225deg; }
.flow-mark--working.is-gap-right::before { --flow-orbit-angle: 135deg; }

/* Ports and wires -------------------------------------------------------------- */
.flow-port {
  background-color: var(--color-ground);
  border: 1px solid var(--flow-wire);
  box-sizing: border-box;
  height: 7px;
  left: calc(var(--flow-lane) - 5px);
  position: absolute;
  width: 7px;
  z-index: 1;
}
.flow-port--out {
  bottom: -4px;
}
.flow-port--in {
  top: -4px;
}
.flow-port--lit {
  background-color: var(--flow-signal);
  border-color: var(--flow-signal);
  box-shadow: var(--flow-signal-glow);
}
/* The receiving port flares as the signal arrives. */
.flow-port--receiving {
  animation: flow-arrive var(--flow-travel-duration) var(--motion-ease) infinite;
}
.flow-wire {
  background-color: var(--flow-wire);
  height: 40px;
  margin-left: calc(var(--flow-lane) - 1px);
  position: relative;
  width: 1px;
}
.flow-wire--short {
  height: 24px;
}
.flow-wire--active::after {
  animation: flow-travel var(--flow-travel-duration) var(--motion-ease) infinite;
  background-color: var(--flow-signal);
  box-shadow: var(--flow-signal-glow);
  content: "";
  height: 12px;
  left: -1px;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 3px;
}

@keyframes flow-travel {
  0% { opacity: 0; top: -6px; }
  6% { opacity: 1; }
  34% { opacity: 1; top: calc(100% - 6px); }
  46%, 100% { opacity: 0; top: calc(100% - 6px); }
}
@keyframes flow-arrive {
  0%, 30% { background-color: var(--color-ground); border-color: var(--flow-wire); box-shadow: none; }
  36%, 70% { background-color: var(--flow-signal); border-color: var(--flow-signal); box-shadow: var(--flow-signal-glow); }
  100% { background-color: var(--flow-signal); border-color: var(--flow-signal); box-shadow: none; }
}
/* Anticlockwise: the angle falls, so the lit run and its dark side move
   left, bottom, right, top. */
@keyframes flow-orbit {
  from { --flow-orbit-angle: 405deg; }
  to { --flow-orbit-angle: 45deg; }
}
@keyframes flow-pulse {
  50% { box-shadow: none; }
}

/* Reduced motion: no travel, no loop, no pulse. The lit wire, the lit port,
   the words and the shapes still say what is happening; the working mark
   holds as an open square, its top side dark. */
@media (prefers-reduced-motion: reduce) {
  .flow-wire--active { background-color: var(--flow-signal); }
  .flow-wire--active::after { display: none; }
  .flow-port--receiving {
    animation: none;
    background-color: var(--flow-signal);
    border-color: var(--flow-signal);
  }
  .flow-mark--working::before {
    animation: none;
    --flow-orbit-angle: 45deg;
  }
  .flow-state--working::after { animation: none; }
}

/* Narrow panels: the status corner drops under the name, so a node keeps the
   same height whatever its status word. */
@media (max-width: 479px) {
  .flow-node__head { flex-wrap: wrap; row-gap: 2px; }
  .flow-node__head > .flow-state { width: 100%; }
}

/* The website's example panel: the flow sits between the panel head and its
   progress line. Two lines are reserved for the action so the panel keeps one
   height across the six examples. */
.site-example-flow {
  padding: 20px 20px 4px;
}
.site-example-flow + .site-example-progress {
  margin-bottom: 20px;
}
.site-example-flow-action {
  min-height: 44px;
}
@media (min-width: 768px) {
  .site-example-flow { padding-inline: 24px; }
}
/* Credit bar (Billing, 2026-11-06) ----------------------------------------- */
/* One bar for a workspace's credits this period. The whole track is every
   credit it has. The parts are what used them, in the legend's order, and what
   is left stays empty. Parts use the data roles, with a gap between them and
   the legend's words and numbers, so it reads without colour. .credit-bar-mark
   is a tick where monthly credits end and top-ups begin; leave it out when
   there are no top-ups. Part widths and the mark's position are inline, as a
   share of the track. Read-only. Page: components/credit-bar.html. */
.credit-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}
.credit-bar-track {
  background-color: var(--credit-bar-track);
  display: flex;
  gap: 2px;
  height: 14px;
  position: relative;
}
.credit-bar-part { flex: 0 1 auto; min-width: 2px; }
.credit-bar-part--events { background-color: var(--credit-bar-events); }
.credit-bar-part--runs { background-color: var(--credit-bar-runs); }
.credit-bar-part--storage { background-color: var(--credit-bar-storage); }
.credit-bar-mark {
  background-color: var(--credit-bar-mark);
  bottom: -4px;
  position: absolute;
  top: -4px;
  width: 1px;
}
.credit-bar-legend {
  color: var(--color-ink-soft);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  gap: var(--space-1) var(--space-5);
  line-height: var(--leading-label);
}
.credit-bar-key {
  align-items: center;
  display: inline-flex;
  gap: var(--space-2);
}
.credit-bar-key::before {
  content: "";
  flex: 0 0 auto;
  height: 8px;
  width: 8px;
}
.credit-bar-key--events::before { background-color: var(--credit-bar-events); }
.credit-bar-key--runs::before { background-color: var(--credit-bar-runs); }
.credit-bar-key--storage::before { background-color: var(--credit-bar-storage); }
.credit-bar-key--mark {
  color: var(--color-ink-mute);
  margin-left: auto;
}
.credit-bar-key--mark::before {
  background-color: var(--credit-bar-mark);
  height: 12px;
  width: 1px;
}
/* Quantity (Billing, 2026-11-06) ------------------------------------------- */
/* A whole number set with two buttons, such as how many packages to buy. The
   value sits between them in mono. The minus button is disabled at the lowest
   number. Buttons are 44 px square at every size. States: hover, focus,
   disabled. Page: components/quantity.html. */
.quantity {
  background-color: var(--color-surface-raised);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-control);
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 auto;
}
.quantity-button {
  appearance: none;
  background-color: transparent;
  border: 0;
  color: var(--color-ink);
  cursor: pointer;
  font-family: var(--font-mono-symbols);
  font-size: 18px;
  height: var(--space-touch-min);
  line-height: 1;
  padding: 0;
  width: var(--space-touch-min);
}
.quantity-button:hover,
.quantity-button.is-hover { background-color: var(--color-surface-hover); }
.quantity-button:focus-visible,
.quantity-button.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}
.quantity-button:disabled,
.quantity-button.is-disabled {
  background-color: transparent;
  color: var(--color-ink-mute);
  cursor: not-allowed;
}
.quantity-value {
  align-items: center;
  border-inline: 1px solid var(--color-line);
  color: var(--color-ink);
  display: flex;
  font-family: var(--font-mono);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  justify-content: center;
  min-width: 64px;
}
@media (max-width: 767px) {
  .credit-bar-key--mark { margin-left: 0; }
}
/* Attention row, neutral (Billing, 2026-11-06): .attention-row--soft is an item
   in the needs you list that is not a problem yet, such as credits at 80%. Soft
   ink instead of rowan, with a plain text action. Page: components/attention.html. */
.attention-row--soft { border-left-color: var(--color-ink-soft); }
.attention-row--soft .attention-index { color: var(--color-ink-soft); }
/* Banner with an action (Billing, 2026-11-06): .notice--action is a banner with
   one button at its end, such as buying more credits. On phones the button
   drops under the text and takes the full width. Page: components/attention.html. */
@media (max-width: 767px) {
  .notice--action { align-items: flex-start; flex-wrap: wrap; }
  .notice--action .notice-body { flex: 1 1 calc(100% - 30px); }
  .notice--action > [class*="button-"] { flex: 1 1 100%; }
}
/* Information list (Billing, 2026-11-07) ------------------------------------ */
/* What someone reads, kept apart from where they choose (founder, 2026-11-07).
   It has no frame and no fill: it sits on the ground, below the pane that holds
   the controls. Each item is a short term and plain sentences, in body text, with
   a hairline between items. No big numbers, no buttons. On phones the term sits
   above its text. Read-only. Page: components/info-list.html. */
.info-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.info-list-title {
  color: var(--color-ink-soft);
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  line-height: var(--leading-body);
  margin: 0;
  padding-bottom: var(--space-3);
}
.info-item {
  border-top: 1px solid var(--color-line);
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 152px minmax(0, 1fr);
  padding-block: var(--space-3);
}
.info-item-term,
.info-item-text {
  color: var(--color-ink-soft);
  font-size: 13px;
  line-height: 20px;
}
.info-item-term { font-weight: var(--font-weight-medium); }
@media (max-width: 767px) {
  .info-item { gap: var(--space-1); grid-template-columns: minmax(0, 1fr); }
}
/* Quantity slider (Billing, 2026-11-07) ------------------------------------- */
/* Goes with .quantity when the number can be large, such as 100 packages: the
   slider gets near it, and the plus and minus set it exactly. Both show the same
   number. The filled part of the track follows the number, through --quantity-fill
   set inline as a share of the range. The thumb is square and soft ink, ink on
   hover and while dragging; the accent stays off it. The input is 44 px tall at
   every size, and a tap anywhere on the track moves the thumb. The scale under it
   names both ends. A number above the range is still allowed, with the thumb at the
   end. States: hover, focus. Page: components/quantity.html. */
.quantity-slider {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.quantity-slider-input {
  appearance: none;
  background-color: transparent;
  cursor: pointer;
  display: block;
  height: var(--space-touch-min);
  margin: 0;
  width: 100%;
}
.quantity-slider-input::-webkit-slider-runnable-track {
  background: linear-gradient(to right, var(--color-ink-soft) var(--quantity-fill), var(--color-line-strong) var(--quantity-fill));
  height: 4px;
}
.quantity-slider-input::-moz-range-track {
  background: linear-gradient(to right, var(--color-ink-soft) var(--quantity-fill), var(--color-line-strong) var(--quantity-fill));
  height: 4px;
}
.quantity-slider-input::-webkit-slider-thumb {
  appearance: none;
  background-color: var(--color-ink-soft);
  border: 0;
  border-radius: var(--radius-control);
  height: 28px;
  margin-top: -12px;
  width: 16px;
}
.quantity-slider-input::-moz-range-thumb {
  background-color: var(--color-ink-soft);
  border: 0;
  border-radius: var(--radius-control);
  height: 28px;
  width: 16px;
}
.quantity-slider-input:hover::-webkit-slider-thumb,
.quantity-slider-input:active::-webkit-slider-thumb,
.quantity-slider-input.is-hover::-webkit-slider-thumb { background-color: var(--color-ink); }
.quantity-slider-input:hover::-moz-range-thumb,
.quantity-slider-input:active::-moz-range-thumb,
.quantity-slider-input.is-hover::-moz-range-thumb { background-color: var(--color-ink); }
.quantity-slider-input:focus-visible,
.quantity-slider-input.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.quantity-slider-scale {
  color: var(--color-ink-mute);
  display: flex;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  justify-content: space-between;
  line-height: var(--leading-label);
}
/* Guide (Help, 2026-11-07) -------------------------------------------------- */
/* A personal help page that shows one thing to do at a time, the onboarding page
   first (founder pick, 2026-11-07). Text on these pages is content, so every part
   takes any length: agents change the words without a design page.
   .guide is the page: its head (.guide-head), the skip control (.guide-skip), an
   optional .steps row, the step, and plain text below it. .guide-step is one step
   on a .pane: the picture and what to do (.guide-step-body, .guide-step-picture,
   .guide-step-side, .guide-step-actions), then the live line (.guide-step-foot).
   The steps row appears only from two steps up; a step never changes shape.
   .prompt-block is the prompt to give an AI agent, readable like a sentence, unlike
   the machine .command. The one-time code is never shown: .prompt-block-slot says
   when it is added. .guide-waiting is a status with the working mark, while the
   page waits for something it can see. .guide-found lists what was found.
   .guide-steps holds the .steps row. .guide-asks lists things to ask an AI agent,
   each with a copy action (.guide-ask, .guide-ask-text).
   .guide-or is a label with a hairline above it, for a second way inside a step.
   .guide-more is a row that opens more on the same page. .guide-slot marks where
   a later step goes while steps are undecided. .guide-hint is a short instruction
   next to an action, .guide-note a quiet note, .guide-learn links to public pages.
   .illustration is the robot picture, on help and onboarding only.
   Phones: one column, the picture on top, a full-width primary action, and the skip
   control moves to the end of the page. States: .guide-more hover, focus and open.
   Page: components/guide.html. */
.illustration {
  display: block;
  height: auto;
  max-width: 100%;
}
.guide {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr) auto;
}
.guide > * { grid-column: 1 / -1; min-width: 0; }
.guide > .guide-head { grid-column: 1; }
.guide > .guide-skip { align-self: end; grid-column: 2; grid-row: 1; }
.guide-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}
.guide-step-body {
  align-items: center;
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 380px minmax(0, 1fr);
  padding: var(--space-6) 40px var(--space-6) var(--space-6);
}
.guide-step-picture {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.guide-step-picture .illustration { max-height: 300px; width: auto; }
.guide-step-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}
.guide-step-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
}
.guide-step-foot {
  align-items: center;
  border-top: 1px solid var(--color-line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  justify-content: space-between;
  padding: 14px var(--space-6);
}
.guide-computer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  justify-content: space-between;
}
.guide-waiting::before { display: none; }
.guide-found {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.prompt-block {
  background-color: var(--color-ground);
  border: 1px solid var(--color-line-strong);
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 24px;
  margin: 0;
  overflow-wrap: anywhere;
  padding: var(--space-4) 18px;
  white-space: pre-wrap;
}
.prompt-block-slot { color: var(--color-ink-mute); }
.guide-hint {
  color: var(--color-ink-soft);
  font-size: 13px;
  line-height: 20px;
  margin: 0;
}
.guide-note {
  color: var(--color-ink-mute);
  font-size: 13px;
  line-height: 20px;
  margin: 0;
}
.guide-steps { min-width: 0; }
.guide-or {
  border-top: 1px solid var(--color-line);
  padding-top: var(--space-4);
}
.guide-asks {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}
.guide-ask {
  align-items: center;
  border-top: 1px solid var(--color-line);
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
  min-height: var(--space-touch-min);
}
.guide-ask:last-child { border-bottom: 1px solid var(--color-line); }
.guide-ask-text {
  color: var(--color-ink);
  font-size: var(--text-body);
  line-height: 20px;
  min-width: 0;
}
.guide-more { border-top: 1px solid var(--color-line); }
.guide-more > summary {
  align-items: center;
  color: var(--color-ink-soft);
  cursor: pointer;
  display: flex;
  font-size: var(--text-body);
  gap: var(--space-3);
  justify-content: space-between;
  line-height: var(--leading-body);
  list-style: none;
  min-height: var(--space-touch-min);
}
.guide-more > summary::-webkit-details-marker { display: none; }
.guide-more > summary::after {
  content: "↓";
  font-family: var(--font-symbol);
}
.guide-more[open] > summary::after { content: "↑"; }
.guide-more > summary:hover,
.guide-more > summary.is-hover { color: var(--color-ink); }
.guide-more > summary:focus-visible,
.guide-more > summary.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.guide-more-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-block: var(--space-2) var(--space-5);
}
.guide-slot {
  align-items: center;
  border: 1px dashed var(--color-line-strong);
  color: var(--color-ink-mute);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  gap: var(--space-2) var(--space-3);
  justify-content: space-between;
  letter-spacing: 0.08em;
  line-height: var(--leading-label);
  min-height: 52px;
  padding: var(--space-2) 18px;
  text-transform: uppercase;
}
.guide-learn {
  align-items: center;
  border-top: 1px solid var(--color-line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding-top: var(--space-4);
}
@media (max-width: 1023px) {
  .guide-step-body {
    gap: var(--space-5);
    grid-template-columns: 240px minmax(0, 1fr);
    padding: var(--space-5);
  }
  .guide-step-foot { padding-inline: var(--space-5); }
}
@media (max-width: 767px) {
  .guide { gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
  .guide > .guide-head { grid-column: 1; }
  .guide > .guide-skip { align-self: stretch; grid-column: 1; grid-row: auto; order: 10; }
  .guide > .guide-skip > [class*="button-"] { height: var(--space-touch-min); width: 100%; }
  .guide-step-body {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--space-inset-phone);
  }
  .guide-step-picture .illustration { max-height: 150px; }
  .guide-step-actions > .button-primary,
  .guide-step-actions > .site-button--primary { height: var(--space-touch-primary); width: 100%; }
  .guide-step-foot { padding-inline: var(--space-inset-phone); }
  .guide-learn { align-items: flex-start; flex-direction: column; }
  .guide-learn .text-link { align-items: center; display: inline-flex; min-height: var(--space-touch-min); }
}
/* Site pricing (Website, 2026-11-07) ---------------------------------------- */
/* The pricing page on welvets.com, on the help pages' column (.site-help-page) and
   with their parts: a .pane with .guide-step-body for the price, a .site-strip for what
   uses credits and an .info-list for the rest.
   .site-pricing-head is the page's head with the link to its plain version for AI
   agents beside it, or under it on phones. .site-price is the page's one big number.
   .site-pricing-section is a title (.site-pricing-section-title) over a row of pictures.
   Page: components/site-pricing.html. */
.site-pricing-head {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  justify-content: space-between;
}
.site-price {
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 40px;
  font-variant-numeric: tabular-nums;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.03em;
  line-height: 44px;
  margin: 0;
}
.site-pricing-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.site-pricing-section-title {
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-title);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-title);
  line-height: 29px;
  margin: 0;
}
@media (min-width: 768px) {
  .site-price { font-size: 48px; line-height: 52px; }
}
/* Site help (Website, 2026-11-07) ------------------------------------------- */
/* The public help pages on welvets.com, in the site frame. Text on them is content:
   agents change it, and add a page from these same parts, without a design page.
   .site-help-bar sits under the site header: the pages (.site-help-tabs,
   .site-help-tab, --current) and a quiet link to the page's plain version for AI
   agents (.site-help-agent-link). .site-help-page is the column: the head
   (.site-help-head, .site-help-title, .site-help-lede), a row of pictures, and the
   next page (.site-help-next, .site-help-line).
   .site-strip holds any number of pictures, three to a row, or four with --four. A card
   (.site-strip-card) is a picture (.site-strip-picture), a few words
   (.site-strip-title) and one sentence (.site-strip-text). .guide-step, .prompt-block
   and .guide-more are shared with the app's onboarding page.
   Phones: the tabs scroll sideways inside their own row, 44 px tall, the agent link
   drops under them, and cards stack with the picture on top. --narrow is a tab shown
   only below 1024, where it stands in for the site nav's link. States: tab hover,
   focus, current. Page: components/site-help.html. */
.site-help-bar {
  align-items: center;
  border-bottom: 1px solid var(--color-line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-6);
  justify-content: space-between;
  padding: var(--space-2) var(--space-inset-phone);
}
.site-help-tabs {
  display: flex;
  gap: var(--space-5);
  margin-inline: calc(var(--space-inset-phone) * -1);
  max-width: 100vw;
  overflow-x: auto;
  padding-inline: var(--space-inset-phone);
  scrollbar-width: none;
}
.site-help-tab {
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--color-ink-soft);
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 20px;
  min-height: var(--space-touch-min);
  text-decoration: none;
  white-space: nowrap;
}
.site-help-tab:hover,
.site-help-tab.is-hover { color: var(--color-ink); }
.site-help-tab:focus-visible,
.site-help-tab.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}
.site-help-tab--current {
  border-bottom-color: var(--color-accent);
  color: var(--color-ink);
  font-weight: var(--font-weight-semibold);
}
@media (min-width: 1024px) {
  .site-help-tab--narrow { display: none; }
}
.site-help-agent-link {
  align-items: center;
  color: var(--color-ink-mute);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.04em;
  line-height: var(--leading-label);
  min-height: var(--space-touch-min);
  overflow-wrap: anywhere;
  text-decoration: none;
}
.site-help-agent-link:hover,
.site-help-agent-link.is-hover { color: var(--color-ink); }
.site-help-agent-link:focus-visible,
.site-help-agent-link.is-focus {
  border-radius: var(--radius-control);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.site-help-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-inline: auto;
  max-width: 1120px;
  padding: var(--space-6) var(--space-inset-phone) var(--space-7);
  width: 100%;
}
.site-help-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 760px;
}
.site-help-title {
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 38px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-display);
  line-height: 42px;
  margin: 0;
}
.site-help-lede {
  color: var(--color-ink-soft);
  font-family: var(--font-body);
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 28px;
  margin: 0;
}
.site-strip {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: minmax(0, 1fr);
}
.site-strip-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}
.site-strip-picture {
  align-items: flex-end;
  display: flex;
  height: 220px;
  justify-content: center;
  margin-bottom: var(--space-3);
}
.site-strip-picture .illustration { max-height: 100%; width: auto; }
.site-strip-title {
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-panel);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-title);
  line-height: 26px;
  margin: 0;
}
.site-strip-text,
.site-help-line {
  color: var(--color-ink-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 25px;
  margin: 0;
}
.site-help-next {
  align-items: center;
  border-top: 1px solid var(--color-line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  padding-top: var(--space-5);
}
@media (max-width: 767px) {
  .site-help-next .site-link { min-height: var(--space-touch-min); }
}
@media (min-width: 768px) {
  .site-help-bar { padding-inline: var(--space-inset-tablet); }
  .site-help-tabs {
    margin-inline: 0;
    max-width: none;
    overflow: visible;
    padding-inline: 0;
  }
  .site-help-tab { min-height: 36px; }
  .site-help-agent-link { min-height: 0; }
  .site-help-page {
    gap: var(--space-7);
    padding: var(--space-7) var(--space-inset-tablet) var(--space-8);
  }
  .site-help-title { font-size: 56px; line-height: 60px; }
  .site-help-lede { font-size: 22px; line-height: 32px; }
  .site-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); }
  .site-strip-picture { height: 170px; }
  .site-strip--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .site-strip { gap: var(--space-7) var(--space-6); }
  .site-strip-picture { height: 240px; }
  .site-strip--four { gap: var(--space-5); grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-strip--four .site-strip-picture { height: 170px; }
}
@media (min-width: 1440px) {
  .site-help-bar { padding-inline: var(--space-8); }
  .site-help-page { padding-inline: var(--space-8); }
  .site-strip-picture { height: 260px; }
}
/* Site prose (Website, 2026-11-12) ----------------------------------------- */
/* Long text on welvets.com, such as the terms of service and the privacy policy,
   on the help pages' column (.site-help-page) under their head (.site-help-head,
   .site-help-title). The text is content: the site renders it from its own files
   into plain elements, so .site-prose styles the elements inside it, with no class
   on each one.
   .site-prose-updated is the mono date line under the title. .site-prose is the
   text, at most 680 px wide: paragraphs in soft ink, h2 for numbered sections, h3
   for a part of one, bulleted lists with a square marker, strong for a bold lead-in
   ("Credits."), code for names and values, and links. A link is ink with an
   underline, so it reads without colour; the accent stays for focus. On phones it
   keeps its size and gets an invisible 44 px tap area, as .text-link does. A link
   that leaves welvets.com carries rel="external" and gets the leaving arrow, as a
   button that leaves welvets does. Every h2 and h3 has an id made of its words
   without the number (12. Cancelling and refunds becomes cancelling-and-refunds),
   so /terms#cancelling-and-refunds lands on it.
   .site-prose-table holds each table: it scrolls sideways inside its own box, and
   is a focusable region (tabindex="0", role="region" and an aria-label) so it
   scrolls from the keyboard. Columns are at least 144 px, so a table with three
   or more columns scrolls on phones, where the box reaches the screen's edges.
   States: link hover and focus, table box focus.
   Page: components/site-prose.html. */
.site-prose-updated {
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  margin: 0;
}
.site-prose {
  color: var(--color-ink-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 25px;
  max-width: 680px;
  min-width: 0;
}
.site-prose > * { margin-block: 0; }
.site-prose > * + * { margin-top: var(--space-4); }
.site-prose h2,
.site-prose h3 {
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-title);
  scroll-margin-top: var(--space-5);
}
.site-prose h2 {
  font-size: var(--text-title);
  line-height: var(--leading-title);
}
.site-prose h3 {
  font-size: var(--text-panel);
  line-height: 26px;
}
.site-prose > h2 { margin-top: var(--space-7); }
.site-prose > h3 { margin-top: var(--space-6); }
.site-prose > h2 + h3 { margin-top: var(--space-5); }
.site-prose > h2 + :not(h3),
.site-prose > h3 + * { margin-top: var(--space-3); }
.site-prose > :first-child { margin-top: 0; }
.site-prose strong {
  color: var(--color-ink);
  font-weight: var(--font-weight-semibold);
}
.site-prose ul,
.site-prose ol { padding-left: 22px; }
.site-prose ul { list-style-type: square; }
.site-prose li + li { margin-top: var(--space-2); }
.site-prose li::marker { color: var(--color-ink-mute); }
.site-prose a {
  border-radius: var(--radius-control);
  color: var(--color-ink);
  text-decoration-color: var(--color-ink-mute);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.site-prose a:hover,
.site-prose a.is-hover {
  text-decoration-color: var(--color-ink);
  text-decoration-thickness: 2px;
}
.site-prose a:focus-visible,
.site-prose a.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.site-prose a[rel~="external"]::after {
  content: "↗";
  font-family: var(--font-body-symbols);
  margin-left: 2px;
}
.site-prose code {
  background-color: var(--color-surface-raised);
  border-radius: var(--radius-control);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 1px 4px;
}
.site-prose hr {
  border: 0;
  border-top: 1px solid var(--color-line);
  margin-block: var(--space-7);
}
.site-prose-table {
  margin-inline: calc(var(--space-inset-phone) * -1);
  overflow-x: auto;
  padding: var(--space-1) var(--space-inset-phone);
  scrollbar-color: var(--color-line-strong) transparent;
  scrollbar-width: thin;
}
.site-prose-table:focus-visible,
.site-prose-table.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}
.site-prose table {
  border-collapse: collapse;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  overflow-wrap: break-word;
  width: 100%;
}
.site-prose th,
.site-prose td {
  min-width: 144px;
  padding: var(--space-3) var(--space-5) var(--space-3) 0;
  text-align: left;
}
.site-prose th:last-child,
.site-prose td:last-child { padding-right: 0; }
.site-prose th {
  border-bottom: 1px solid var(--color-line-strong);
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  line-height: var(--leading-label);
  padding-top: 0;
  text-transform: uppercase;
  vertical-align: bottom;
}
.site-prose td {
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
}
.site-prose td:first-child { color: var(--color-ink); }
@media (max-width: 767px) {
  .site-prose a { position: relative; }
  .site-prose a::before {
    content: "";
    height: var(--space-touch-min);
    left: 0;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  .site-prose h2 { font-size: 22px; line-height: 28px; }
  .site-prose h3 { font-size: 18px; line-height: 24px; }
  .site-prose > h2 { margin-top: var(--space-6); }
}
@media (min-width: 768px) {
  .site-prose-table {
    margin-inline: 0;
    padding: 0;
  }
  .site-prose-table:focus-visible,
  .site-prose-table.is-focus { outline-offset: 4px; }
}

/* Betalgo endorsement (BET-1639) ------------------------------------------ */
/* The endorsement line and the star, copied as they are from
   betalgo-system-design components.css at fbedc73 (unchanged there since
   274683d), from its "endorsement" banner to the end of its "star" section.
   Do not edit these lines here: copy them again when Betalgo changes them.
   They use Betalgo's token names, from the Betalgo block at the end of
   tokens.css. Welvets places the animated line with the corner endorsement
   below. Page: components/endorsement.html. */

/* ============================================================= endorsement */

/* The line that says a product comes from Betalgo: one word, then the logo
   at its small size. It goes under a product's own name or in its footer,
   and is never bigger than the product's name. */
.endorsement { align-items: baseline; color: var(--color-text-soft); display: inline-flex; font-family: var(--font-text); font-size: var(--text-small); gap: var(--space-2); line-height: 1; }
.star-ground--inverse .endorsement, .star-ground--brand .endorsement { color: var(--color-text-inverse); }

/* Animated: only the star at rest. On hover or keyboard focus the star
   turns once and "by" and "betalgo" slide out of it; on leaving, the words
   slide back in while the star turns back. The star looks the same every
   quarter turn, so it always stops as it started. Use the still line above
   wherever nothing can move: print, email, video. */
.endorsement--animated { border-radius: var(--radius-control); cursor: pointer; gap: 0; padding: var(--space-2); text-decoration: none; }
.endorsement--animated .star-lockup { gap: 0; }
.endorsement__star { transition: transform 760ms var(--motion-ease); }
.endorsement__reveal { display: grid; grid-template-columns: 0fr; transition: grid-template-columns 420ms var(--motion-ease-in); }
/* The clipping box reaches past the line so the g keeps its tail. */
.endorsement__reveal > * { margin-block: -0.3em; min-width: 0; overflow: hidden; padding-block: 0.3em; white-space: nowrap; }
.endorsement__word { display: inline-block; opacity: 0; transform: translateX(-60%); transition: opacity 240ms var(--motion-ease-in), transform 420ms var(--motion-ease-in); }
.endorsement__word--by { padding-right: var(--space-2); transform: translateX(60%); }
.endorsement__word--name { padding-left: 0.28em; }
.endorsement--animated:hover .endorsement__star, .endorsement--animated:focus-visible .endorsement__star, .endorsement--animated.is-open .endorsement__star { transform: rotate(-360deg); }
.endorsement--animated:hover .endorsement__reveal, .endorsement--animated:focus-visible .endorsement__reveal, .endorsement--animated.is-open .endorsement__reveal { grid-template-columns: 1fr; transition: grid-template-columns 600ms var(--motion-ease-out) 140ms; }
.endorsement--animated:hover .endorsement__word, .endorsement--animated:focus-visible .endorsement__word, .endorsement--animated.is-open .endorsement__word { opacity: 1; transform: none; transition: opacity 420ms var(--motion-ease-out) 220ms, transform 600ms var(--motion-ease-out) 140ms; }
.endorsement--animated:focus-visible, .endorsement--animated.is-focus { background-color: var(--color-focus); outline: none; }
/* With motion turned off the star stays still and the words fade in place. */
@media (prefers-reduced-motion: reduce) {
  .endorsement__star, .endorsement__reveal { transition-delay: 0ms; transition-duration: 1ms; }
  .endorsement__word { transform: none; transition: opacity 200ms linear; }
  .endorsement--animated:hover .endorsement__star, .endorsement--animated:focus-visible .endorsement__star, .endorsement--animated.is-open .endorsement__star { transform: none; }
  .endorsement--animated:hover .endorsement__word, .endorsement--animated:focus-visible .endorsement__word, .endorsement--animated.is-open .endorsement__word { transition: opacity 200ms linear; }
}

/* ==================================================================== star */

/* The Selbu star, inlined from assets/betalgo-star.svg or
   assets/betalgo-star-one-colour.svg. Never redrawn. */
.star { display: block; flex-shrink: 0; }

/* Grounds. Light grounds show the star as drawn. On an inverse ground the
   diagonal points turn light and the axis points turn brand tint. On the
   brand ground the whole star is light. */
.star-ground--inverse { background-color: var(--color-ground-inverse); --star-point: var(--color-brand-tint); --star-point-alt: var(--color-text-inverse); --star-seam: var(--color-ground-inverse); }
.star-ground--brand { background-color: var(--color-brand); --star-point: var(--color-text-inverse); --star-point-alt: var(--color-text-inverse); --star-seed: var(--color-text-inverse); --star-seam: var(--color-brand); }
.star-ground--inverse .label, .star-ground--brand .label { color: var(--color-brand-tint); }

/* Lockup: the star, then the name. The star stands on the baseline and
   reaches the top of the b, so it is never taller than the name. Size a
   lockup with font-size, or with the s and l sizes. */
.star-lockup { align-items: baseline; display: flex; font-size: 46px; gap: 0.28em; }
.star-lockup--s { font-size: 24px; }
.star-lockup--l { font-size: 64px; }
.star-lockup__star { height: 0.76em; margin-bottom: -0.012em; width: 0.76em; }
.star-lockup__name { color: var(--color-text); font-family: var(--font-wordmark); font-weight: 600; letter-spacing: -0.025em; line-height: 1; white-space: nowrap; }
.star-lockup--stacked { align-items: center; flex-direction: column; gap: 0.3em; }
.star-lockup--stacked .star-lockup__star { height: 1.3em; margin-bottom: 0; width: 1.3em; }
.star-ground--inverse .star-lockup__name, .star-ground--brand .star-lockup__name { color: var(--color-text-inverse); }

/* Corner endorsement (BET-1639) --------------------------------------------- */
/* Where Welvets shows the Betalgo endorsement: once per page, in the bottom
   right corner of the page's frame (.app-shell, .public-shell or .site-page),
   16 px from its bottom and right edges. It is the frame's last child and
   wraps the copied animated line:
   <div class="corner-endorsement star-ground--inverse"><a class="endorsement
   endorsement--animated" href="…">…</a></div>. The link goes to
   www.betalgo.com (design files use "#"); its words, "by betalgo", are its
   name for screen readers.
   - Placement: in the frame's empty foot, after the content, so it never
     covers a control. On a page shorter than the screen that is the screen's
     corner; on a longer page it is the end of the page, and it does not float.
   - Colours: the inverse star, as Welvets is dark-only, straight on the
     page's ground: the inverse ground's own fill is dropped.
   - Focus: Welvets' 2 px berry ring, like every Welvets link, in place of
     Betalgo's soft fill.
   - Layering: above the page, under every scrim, dialog, menu and phone
     sheet (z-index 5 against their 10 to 30). While the navigation is open
     over a dimmed page, it hides.
   - Room: the frame keeps 64 px clear at its foot. The app content's bottom
     padding is 64 px at every size, the public card's frame gets 64 px on
     phones, and a site footer keeps its right end free.
   - Phones have no hover: the star shows alone, and a tap opens the link.
   Page: components/endorsement.html. */
.corner-endorsement {
  --motion-ease: var(--motion-betalgo-ease);
  background-color: transparent;
  bottom: var(--space-4);
  position: absolute;
  right: var(--space-4);
  z-index: 5;
}
.corner-endorsement .endorsement--animated:focus-visible,
.corner-endorsement .endorsement--animated.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.public-shell:has(> .corner-endorsement),
.site-page:has(> .corner-endorsement) { position: relative; }
.app-shell:has(.app-content--dimmed) > .corner-endorsement { visibility: hidden; }
@media (max-width: 767px) {
  .public-shell:has(> .corner-endorsement) { padding-bottom: var(--space-8); }
}
