/*
 * Dash Design System — component layer.
 * Depends on tokens.css, which is generated. This file is authored.
 */

/* ---------------------------------------------------------------- base -- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--dash-ui-muted) var(--dash-ui-canvas);
}

body {
  margin: 0;
  background: var(--dash-ui-canvas);
  color: var(--dash-ui-ink);
  font-family: var(--dash-font-sans);
  font-size: var(--dash-text-base);
  line-height: var(--dash-leading-base);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

/* Browser surfaces carry the design too. */
::selection { background: var(--dash-ui-selection); color: var(--dash-ui-on-selection); }
:focus-visible {
  outline: var(--dash-border-default) solid var(--dash-ui-focus);
  outline-offset: var(--dash-border-default);
  border-radius: var(--dash-radius-sm);
}
::-webkit-scrollbar { width: var(--dash-space-3); height: var(--dash-space-3); }
::-webkit-scrollbar-track { background: var(--dash-ui-canvas); }
::-webkit-scrollbar-thumb {
  background: var(--dash-ui-border);
  border: calc(var(--dash-border-hairline) * 3) solid var(--dash-ui-canvas);
  border-radius: var(--dash-radius-full);
}
@media (hover: hover) { ::-webkit-scrollbar-thumb:hover { background: var(--dash-ui-muted); } }

a { color: var(--dash-ui-interactive); text-underline-offset: 0.2em; text-decoration-thickness: var(--dash-border-hairline); }
@media (hover: hover) { a:hover { color: var(--dash-ui-ink); } }

code, kbd, samp, pre { font-family: var(--dash-font-mono); font-feature-settings: "tnum" 1; }

/* Measured values and any figure that must align in a column. */
.dash-tabular { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* --------------------------------------------------------------- label -- */

.dash-label {
  font-size: var(--dash-text-xs);
  font-weight: var(--dash-weight-medium);
  letter-spacing: var(--dash-tracking-label);
  text-transform: uppercase;
  color: var(--dash-ui-muted);
}
.dash-label--specimen { letter-spacing: var(--dash-tracking-specimen); }
.dash-label--on-dark { color: var(--dash-on-forest-muted); }

/* -------------------------------------------------------------- button -- */

.dash-button {
  --_bg: var(--dash-ui-primary);
  --_fg: var(--dash-ui-on-primary);
  --_bd: var(--dash-ui-primary);
  display: inline-flex;
  min-block-size: var(--dash-space-7);
  align-items: center;
  justify-content: center;
  gap: var(--dash-space-2);
  padding: var(--dash-space-3) var(--dash-space-5);
  border: var(--dash-border-hairline) solid var(--_bd);
  border-radius: var(--dash-radius-sm);
  background: var(--_bg);
  color: var(--_fg);
  font: inherit;
  font-size: var(--dash-text-sm);
  font-weight: var(--dash-weight-medium);
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  transition: background var(--dash-duration-fast) var(--dash-ease-standard),
              border-color var(--dash-duration-fast) var(--dash-ease-standard),
              color var(--dash-duration-fast) var(--dash-ease-standard);
}
@media (hover: hover) { .dash-button:hover { --_bg: var(--dash-ui-primary-hover); --_fg: var(--dash-ui-on-primary-hover); --_bd: var(--dash-ui-primary-hover); } }
.dash-button:active { --_bg: var(--dash-ui-primary); --_fg: var(--dash-ui-on-primary); }

/* Size is independent from colour treatment, so a primary, accent, or ghost
   action can carry the same emphasis without a consumer restyling it. */
.dash-button--large {
  padding: var(--dash-space-4) var(--dash-space-7);
  border-radius: var(--dash-radius-xl);
  font-size: var(--dash-text-base);
}
.dash-button--display {
  padding: var(--dash-space-5) var(--dash-space-8);
  border-radius: var(--dash-radius-xl);
  font-size: var(--dash-text-lg);
}

/* Paired by surface: --dash-on-emerald is guaranteed to meet AA on emerald. */
.dash-button--accent { --_bg: var(--dash-color-emerald); --_fg: var(--dash-on-emerald); --_bd: var(--dash-color-emerald); }
@media (hover: hover) { .dash-button--accent:hover { --_bg: var(--dash-color-active); --_fg: var(--dash-color-paper); --_bd: var(--dash-color-active); } }

.dash-button--ghost { --_bg: transparent; --_fg: var(--dash-ui-interactive); --_bd: var(--dash-ui-control-border); }
@media (hover: hover) { .dash-button--ghost:hover { --_bg: var(--dash-ui-primary); --_fg: var(--dash-ui-on-primary); } }

/* Browser applications: a tonal alternative and a confirmed destructive action. */
.dash-button--secondary,
.dash-button--secondary:is(:hover, :active) { --_bg: var(--dash-ui-secondary); --_fg: var(--dash-ui-on-secondary); --_bd: transparent; }
@media (hover: hover) { .dash-button--secondary:hover { --_bg: var(--dash-ui-secondary-hover); } }
.dash-button--destructive,
.dash-button--destructive:active { --_bg: var(--dash-ui-destructive); --_fg: var(--dash-ui-on-destructive); --_bd: var(--dash-ui-destructive); }
@media (hover: hover) { .dash-button--destructive:hover { --_bg: var(--dash-ui-danger); --_fg: var(--dash-ui-on-destructive); --_bd: var(--dash-ui-danger); } }

.dash-button:disabled,
.dash-button[aria-disabled="true"] {
  --_bg: var(--dash-color-sage);
  --_fg: var(--dash-on-sage);
  --_bd: var(--dash-color-sage);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Loading: the label stays legible; the spinner is additive, never a replacement. */
.dash-button[data-loading="true"] { cursor: progress; }
.dash-button[data-loading="true"]::before {
  content: "";
  width: 0.85em; height: 0.85em;
  border: var(--dash-border-default) solid currentColor;
  border-top-color: transparent;
  border-radius: var(--dash-radius-full);
  animation: dash-spin var(--dash-duration-spin) linear infinite;
}
@keyframes dash-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- field -- */

.dash-field { display: grid; gap: var(--dash-space-2); }
.dash-field__label {
  font-size: var(--dash-text-sm);
  font-weight: var(--dash-weight-medium);
  color: var(--dash-ui-ink);
}
.dash-input {
  padding: var(--dash-space-3) var(--dash-space-4);
  border: var(--dash-border-hairline) solid var(--dash-ui-control-border);
  border-radius: var(--dash-radius-sm);
  background: var(--dash-ui-canvas);
  color: var(--dash-ui-ink);
  font: inherit;
  font-size: var(--dash-text-base);
  min-inline-size: 0;
  max-inline-size: 100%;
  min-block-size: var(--dash-space-7);
  transition: border-color var(--dash-duration-fast) var(--dash-ease-standard);
}
.dash-input::placeholder { color: var(--dash-ui-placeholder); }
@media (hover: hover) { .dash-input:hover { border-color: var(--dash-ui-muted); } }
.dash-input:focus-visible { border-color: var(--dash-ui-interactive); outline-offset: var(--dash-border-hairline); }
.dash-input[aria-invalid="true"] { border-color: var(--dash-ui-danger); }
.dash-input:disabled { background: color-mix(in srgb, var(--dash-color-sage) 30%, var(--dash-ui-canvas)); cursor: not-allowed; }

.dash-field__message { font-size: var(--dash-text-xs); color: var(--dash-ui-muted); }
/* Errors name the problem; the icon is not the only signal. */
.dash-field__message--error { color: var(--dash-ui-danger); font-weight: var(--dash-weight-medium); }
/* A count of characters against a limit. It never cuts the value: past the
   limit its numbers say so, and weight and colour repeat it. */
.dash-field__count {
  justify-self: end;
  max-inline-size: 100%;
  margin: 0;
  font-size: var(--dash-text-xs);
  font-variant-numeric: tabular-nums;
  color: var(--dash-ui-muted);
  text-align: end;
  overflow-wrap: anywhere;
}
.dash-field__count--over { color: var(--dash-ui-danger); font-weight: var(--dash-weight-medium); }
/* A group whose fields Enter moves through. It adds behaviour, not a box, so
   its children stay items of the stack or grid around it. */
.dash-traversal { display: contents; }

/* ---------------------------------------------------------------- card -- */

.dash-card {
  padding: var(--dash-space-6);
  border-radius: var(--dash-radius-lg);
  background: var(--dash-ui-canvas);
  border: var(--dash-border-hairline) solid var(--dash-ui-border);
}
.dash-card--forest { background: var(--dash-color-forest); color: var(--dash-on-forest); border-color: var(--dash-color-forest); }
.dash-card--active { background: var(--dash-color-active); color: var(--dash-on-active); border-color: var(--dash-color-active); }

/* A peer-card composition. Stretching is intentional: it makes cards in the
   same row share the tallest card's height. */
.dash-card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--dash-space-10), 1fr));
  gap: var(--dash-space-4);
  align-items: stretch;
}
.dash-card-row--content-height { align-items: start; }

/* ------------------------------------------------------------- sequence -- */

/* A timestamp-free ordered sequence. It communicates reading order and may
   identify one current step; it does not imply dates, completion, or status. */
.dash-sequence {
  position: relative;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dash-sequence::before {
  position: absolute;
  background: var(--dash-color-emerald);
  content: "";
}
.dash-sequence--horizontal {
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: var(--dash-space-7);
}
.dash-sequence--horizontal::before {
  top: calc(var(--dash-space-7) / 2);
  right: calc(var(--dash-space-7) / 2);
  left: calc(var(--dash-space-7) / 2);
  height: var(--dash-border-default);
}
.dash-sequence__step {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--dash-space-6);
  min-inline-size: 0;
  justify-items: start;
}
.dash-sequence__marker {
  position: relative;
  display: block;
  width: var(--dash-space-7);
  height: var(--dash-space-7);
  border: var(--dash-border-default) solid var(--dash-color-emerald);
  border-radius: var(--dash-radius-full);
  background: var(--dash-color-forest);
  box-shadow:
    0 0 0 var(--dash-space-2) var(--dash-ui-canvas),
    0 0 0 calc(var(--dash-space-2) + var(--dash-border-default)) var(--dash-color-emerald);
}
.dash-sequence__step--current .dash-sequence__marker::after {
  position: absolute;
  inset: calc(var(--dash-space-3) + var(--dash-space-1));
  border-top: var(--dash-border-default) solid var(--dash-on-forest);
  border-right: var(--dash-border-default) solid var(--dash-on-forest);
  content: "";
  transform: translateX(calc(var(--dash-space-1) * -1)) rotate(45deg);
}
.dash-sequence__label {
  margin: 0;
  color: var(--dash-ui-ink);
  font-size: var(--dash-text-display-sm);
  font-weight: var(--dash-weight-semibold);
  line-height: var(--dash-leading-display-sm);
  letter-spacing: var(--dash-tracking-tight);
}
.dash-sequence--vertical {
  gap: var(--dash-space-6);
  padding-left: var(--dash-space-3);
}
.dash-sequence--vertical::before {
  top: calc(var(--dash-space-7) / 2);
  bottom: calc(var(--dash-space-7) / 2);
  left: calc(var(--dash-space-3) + var(--dash-space-7) / 2);
  width: var(--dash-border-default);
}
.dash-sequence--vertical .dash-sequence__step {
  grid-template-columns: var(--dash-space-8) minmax(0, 1fr);
  align-items: center;
}
.dash-sequence--vertical .dash-sequence__label {
  font-size: var(--dash-text-xl);
  line-height: var(--dash-leading-xl);
}

@media (max-width: 60rem) {
  .dash-sequence--adaptive {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--dash-space-6);
    padding-left: var(--dash-space-3);
  }
  .dash-sequence--adaptive::before {
    top: calc(var(--dash-space-7) / 2);
    right: auto;
    bottom: calc(var(--dash-space-7) / 2);
    left: calc(var(--dash-space-3) + var(--dash-space-7) / 2);
    width: var(--dash-border-default);
    height: auto;
  }
  .dash-sequence--adaptive .dash-sequence__step {
    grid-template-columns: var(--dash-space-8) minmax(0, 1fr);
    align-items: center;
  }
  .dash-sequence--adaptive .dash-sequence__label {
    font-size: var(--dash-text-xl);
    line-height: var(--dash-leading-xl);
  }
}

/* ------------------------------------------------------------- timeline -- */

/* A read-only sequence of point-in-time events. The rail records order; the
   marker form distinguishes completed, current, and upcoming work without
   relying on colour alone. */
.dash-timeline {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dash-timeline__event { position: relative; min-inline-size: 0; }
.dash-timeline__event::after { background: var(--dash-ui-border); content: ""; position: absolute; }
.dash-timeline__marker {
  display: block;
  z-index: 1;
  box-sizing: border-box;
  inline-size: var(--dash-space-4);
  block-size: var(--dash-space-4);
  border: var(--dash-border-default) solid var(--dash-ui-border);
  border-radius: 50%;
  background: var(--dash-ui-surface);
}
.dash-timeline__event--complete .dash-timeline__marker {
  border-color: var(--dash-ui-ink);
  background: var(--dash-ui-ink);
}
.dash-timeline__event--current .dash-timeline__marker {
  border-color: var(--dash-ui-ink);
  outline: var(--dash-border-hairline) solid var(--dash-ui-focus);
  outline-offset: var(--dash-space-1);
}
.dash-timeline__content { min-inline-size: 0; }
.dash-timeline__time { margin: 0; font-size: var(--dash-text-xs); font-weight: var(--dash-weight-medium); letter-spacing: var(--dash-tracking-label); text-transform: uppercase; white-space: nowrap; color: var(--dash-ui-interactive); }
.dash-timeline__title { margin: var(--dash-space-2) 0 0; font-size: var(--dash-text-base); font-weight: var(--dash-weight-semibold); color: var(--dash-ui-ink); }
.dash-timeline__state { color: var(--dash-ui-muted); }
.dash-timeline__detail { margin-block-start: var(--dash-space-3); }
.dash-timeline__detail-toggle { display: inline-flex; align-items: center; gap: var(--dash-space-1); color: var(--dash-ui-interactive); cursor: pointer; font-size: var(--dash-text-sm); font-weight: var(--dash-weight-medium); }
.dash-timeline__detail-toggle::-webkit-details-marker { display: none; }
.dash-timeline__detail-toggle::marker { content: ""; }
.dash-timeline__detail-indicator { display: inline-grid; inline-size: var(--dash-space-3); color: var(--dash-ui-interactive); font-size: var(--dash-text-base); line-height: var(--dash-leading-sm); place-items: center; }
.dash-timeline__detail-indicator > span { grid-area: 1 / 1; }
.dash-timeline__detail-indicator-open { display: none; }
.dash-timeline__description { margin: var(--dash-space-2) 0 0; color: var(--dash-ui-muted); }
.dash-timeline__detail-content {
  z-index: 2;
  max-inline-size: var(--dash-space-10);
  margin: var(--dash-space-3) 0 0;
  padding: var(--dash-space-3);
  border-radius: var(--dash-radius-md);
  background: var(--dash-color-forest);
  color: var(--dash-on-forest);
  font-size: var(--dash-text-sm);
}
.dash-timeline__detail[open] .dash-timeline__detail-indicator-closed { display: none; }
.dash-timeline__detail[open] .dash-timeline__detail-indicator-open { display: block; }
.dash-timeline__detail-toggle:focus-visible { outline: var(--dash-border-default) solid var(--dash-ui-focus); outline-offset: var(--dash-space-1); }

/* The vertical form is the application history: it lengthens naturally and
   may live in any scroll container while the application fetches older items. */
.dash-timeline--vertical { gap: var(--dash-space-5); }
.dash-timeline--vertical .dash-timeline__event {
  display: grid;
  grid-template-columns: var(--dash-space-5) minmax(0, 1fr);
  column-gap: var(--dash-space-3);
}
.dash-timeline--vertical .dash-timeline__marker { justify-self: center; margin-top: var(--dash-space-1); }
.dash-timeline--vertical .dash-timeline__event:not(:last-child)::after {
  inset-block-start: calc(var(--dash-space-1) + var(--dash-space-2));
  inset-block-end: calc(var(--dash-space-1) + var(--dash-space-2) - var(--dash-space-5));
  inset-inline-start: calc((var(--dash-space-5) - var(--dash-border-default)) / 2);
  inline-size: var(--dash-border-default);
}

/* The horizontal form is a compact, scrollable narrative for a fixed set of
   events in a summary, document, or presentation. */
.dash-timeline--horizontal {
  grid-auto-columns: minmax(calc(var(--dash-space-10) + var(--dash-space-5)), 1fr);
  grid-auto-flow: column;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
}
.dash-timeline--horizontal .dash-timeline__event {
  display: grid;
  grid-template-rows: var(--dash-space-5) auto;
  row-gap: var(--dash-space-2);
  padding-inline-end: var(--dash-space-5);
  scroll-snap-align: start;
}
.dash-timeline--horizontal .dash-timeline__marker { align-self: center; justify-self: start; }
.dash-timeline--horizontal .dash-timeline__event:not(:last-child)::after {
  inset-block-start: calc((var(--dash-space-5) - var(--dash-border-default)) / 2);
  inset-inline-start: calc(var(--dash-space-4) / 2);
  inset-inline-end: 0;
  block-size: var(--dash-border-default);
}

/* An entry may hold elements and one action. An unreviewed entry has a dashed
   marker and writes its own state word, so it survives greyscale. */
.dash-timeline__heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--dash-space-2); margin-block-start: var(--dash-space-2); }
.dash-timeline__heading > .dash-timeline__title { flex: 1 1 var(--dash-space-9); margin: 0; min-inline-size: 0; }
.dash-timeline__action { flex: none; margin-inline-start: auto; max-inline-size: 100%; }
.dash-timeline__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--dash-space-3); margin-block-start: var(--dash-space-3); min-inline-size: 0; }
.dash-timeline__event--unreviewed .dash-timeline__marker { border-style: dashed; border-color: var(--dash-ui-ink); }

/* --------------------------------------------------------------- badge -- */

.dash-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--dash-space-2);
  padding: var(--dash-space-1) var(--dash-space-3);
  border: var(--dash-border-hairline) solid currentColor;
  border-radius: var(--dash-radius-full);
  font-size: var(--dash-text-xs);
  font-weight: var(--dash-weight-medium);
  letter-spacing: var(--dash-tracking-label);
  text-transform: uppercase;
  color: var(--dash-ui-ink);
}

/* ---------------------------------------------------------------- icon -- */

/* Size and colour only. Paint (fill, stroke, stroke width) is baked into every
   symbol by scripts/build-icons.mjs from tokens/icon.json, so CSS, Gleam
   and Typst render the identical glyph. Colour is inherited: on a surface the
   icon takes that surface's declared ink, which is what makes one file serve
   light and dark surfaces. */
.dash-icon {
  inline-size: var(--dash-icon-size-md);
  block-size: var(--dash-icon-size-md);
  flex: none;
  vertical-align: -0.15em;
  color: inherit;
}
.dash-icon--sm  { inline-size: var(--dash-icon-size-sm);  block-size: var(--dash-icon-size-sm); }
.dash-icon--md  { inline-size: var(--dash-icon-size-md);  block-size: var(--dash-icon-size-md); }
.dash-icon--lg  { inline-size: var(--dash-icon-size-lg);  block-size: var(--dash-icon-size-lg); }
.dash-icon--xl  { inline-size: var(--dash-icon-size-xl);  block-size: var(--dash-icon-size-xl); }
.dash-icon--2xl { inline-size: var(--dash-icon-size-2xl); block-size: var(--dash-icon-size-2xl); }

/* Tones. Status tones are never the only signal: pair them with a word. */
.dash-icon--muted         { color: var(--dash-ui-muted); }
.dash-icon--on-dark-muted { color: var(--dash-on-forest-muted); }
.dash-icon--interactive, .dash-icon--accent { color: var(--dash-ui-interactive); }
.dash-badge--success, .dash-icon--success { color: var(--dash-ui-success); }
.dash-badge--warning, .dash-icon--warning { color: var(--dash-ui-warning); }
.dash-badge--danger, .dash-icon--danger { color: var(--dash-ui-danger); }

/* A rounded surface holding one icon, carrying that surface's declared ink. */
.dash-icon-tile {
  display: inline-grid;
  place-items: center;
  inline-size: calc(var(--dash-icon-size-lg) + 2 * var(--dash-space-4));
  block-size: calc(var(--dash-icon-size-lg) + 2 * var(--dash-space-4));
  border-radius: var(--dash-radius-md);
  background: var(--dash-color-sage);
  color: var(--dash-on-sage);
}
.dash-icon-tile--paper  { background: var(--dash-color-paper);  color: var(--dash-on-paper); }
.dash-icon-tile--forest { background: var(--dash-color-forest); color: var(--dash-on-forest); }
.dash-icon-tile--active { background: var(--dash-color-active); color: var(--dash-on-active); }
/* Category tiles take the category's surface and ink from the theme. */
.dash-icon-tile--emerald { background: var(--dash-ui-category-emerald-surface); color: var(--dash-ui-category-emerald-ink); }
.dash-icon-tile--ocean { background: var(--dash-ui-category-ocean-surface); color: var(--dash-ui-category-ocean-ink); }
.dash-icon-tile--clay { background: var(--dash-ui-category-clay-surface); color: var(--dash-ui-category-clay-ink); }
.dash-icon-tile--brass { background: var(--dash-ui-category-brass-surface); color: var(--dash-ui-category-brass-ink); }
.dash-icon-tile--plum { background: var(--dash-ui-category-plum-surface); color: var(--dash-ui-category-plum-ink); }
.dash-icon-tile--lagoon { background: var(--dash-ui-category-lagoon-surface); color: var(--dash-ui-category-lagoon-ink); }

/* --------------------------------------------------------------- image -- */

/* A figure keeps the visual, its alternative text, caption, and full-size
   source together. Browser images may be remote; documents use pinned files. */
.dash-image { position: relative; display: grid; gap: var(--dash-space-3); margin: 0; }
.dash-image__media {
  display: block;
  inline-size: 100%;
  max-inline-size: 100%;
  background: var(--dash-ui-canvas);
  border-radius: var(--dash-radius-lg);
}
.dash-image__media--cover { aspect-ratio: 16 / 9; object-fit: cover; }
.dash-image__media--contain { max-block-size: calc(var(--dash-space-10) * 5); object-fit: contain; }
.dash-image__caption { color: var(--dash-ui-muted); font-size: var(--dash-text-sm); }

/* --------------------------------------------------------------- table -- */

/* A table always has a viewport: wide data stays a table and scrolls on the
   inline axis instead of collapsing into an unreadable stack of labels. */
.dash-table-viewport {
  max-inline-size: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--dash-ui-interactive) var(--dash-ui-canvas);
}
.dash-table-viewport:focus-visible {
  outline: var(--dash-border-default) solid var(--dash-ui-focus);
  outline-offset: var(--dash-space-1);
}
.dash-table-viewport::-webkit-scrollbar { block-size: var(--dash-space-2); inline-size: var(--dash-space-2); }
.dash-table-viewport::-webkit-scrollbar-thumb { background: var(--dash-color-active); }
.dash-table-viewport::-webkit-scrollbar-track { background: var(--dash-ui-canvas); }
.dash-table-viewport--scrollable {
  max-block-size: calc(var(--dash-space-10) * 3);
  overflow: auto;
}
.dash-table { inline-size: 100%; border-collapse: collapse; font-size: var(--dash-text-sm); table-layout: auto; }
.dash-table__caption {
  margin-block-end: var(--dash-space-3);
  color: var(--dash-ui-muted);
  text-align: left;
}
.dash-table th {
  text-align: left;
  padding: var(--dash-space-3) var(--dash-space-3) var(--dash-space-2);
  border-bottom: var(--dash-border-hairline) solid var(--dash-ui-border);
  font-size: var(--dash-text-xs);
  font-weight: var(--dash-weight-medium);
  /* Tighter than a standalone label: a dense header row reads worse when the
     tracking opens up as far as an isolated caption can afford. */
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dash-ui-muted);
}
.dash-table td {
  padding: var(--dash-space-3);
  border-bottom: var(--dash-border-hairline) solid var(--dash-ui-border);
  vertical-align: middle;
}
.dash-table tbody tr:last-child td { border-bottom: 0; }
@media (hover: hover) { .dash-table tbody tr:hover td { background: var(--dash-ui-canvas); } }
.dash-table__column--fit,
.dash-table__column--numeric { inline-size: 1%; white-space: nowrap; }
.dash-table__column--text { inline-size: var(--dash-table-column-share); }
.dash-table__column--numeric {
  font-variant-numeric: tabular-nums;
  text-align: end;
}
.dash-table__align--start { text-align: start; }
.dash-table__align--center { text-align: center; }
.dash-table__align--end { text-align: end; }
.dash-table__wrap--wrap { white-space: normal; }
.dash-table__wrap--nowrap { white-space: nowrap; }

/* State reads as stroke and mark, never as colour alone. */
.dash-verdict { font-weight: var(--dash-weight-semibold); font-size: var(--dash-text-xs); letter-spacing: var(--dash-tracking-label); }
.dash-verdict--pass { color: var(--dash-ui-success); }
.dash-verdict--fail { color: var(--dash-ui-danger); }

.dash-dot {
  display: inline-block;
  width: 0.75em; height: 0.75em;
  border-radius: var(--dash-radius-full);
  border: var(--dash-border-hairline) solid var(--dash-ui-ink);
  vertical-align: -0.05em;
}

/* --------------------------------------------------- token leader rows -- */
/* A token's state is carried by the leader's stroke pattern, so it survives
   greyscale, colour-blindness, and a black-and-white printout. */

.dash-leader { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--dash-space-3); }
.dash-leader__rail { height: var(--dash-border-hairline); background: var(--dash-color-forest); }
.dash-leader--inherited  .dash-leader__rail { background: var(--dash-color-forest); }
.dash-leader--overridden .dash-leader__rail {
  height: calc(var(--dash-border-hairline) * 3);
  background: none;
  border-top: var(--dash-border-hairline) solid var(--dash-color-forest);
  border-bottom: var(--dash-border-hairline) solid var(--dash-color-forest);
}
.dash-leader--deprecated .dash-leader__rail {
  background: repeating-linear-gradient(to right,
    var(--dash-color-forest) 0 calc(var(--dash-space-3) / 2),
    transparent calc(var(--dash-space-3) / 2) var(--dash-space-3));
}

/* ------------------------------------------------------------- utility -- */

.dash-visually-hidden {
  position: absolute; width: var(--dash-border-hairline); height: var(--dash-border-hairline);
  padding: 0; margin: calc(var(--dash-border-hairline) * -1); overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: var(--dash-duration-instant) !important;
    animation-iteration-count: 1 !important;
    transition-duration: var(--dash-duration-instant) !important;
  }
}

/* Application compositions are browser-scoped. Use semantic HTML; routing,
   modal lifecycle and draft persistence belong to the consuming application. */
.dash-app {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  block-size: var(--dash-viewport-height, 100dvh);
  overflow: hidden;
  color: var(--dash-ui-ink);
  background: var(--dash-ui-canvas);
  padding-block-start: env(safe-area-inset-top);
  transform: translateY(var(--dash-viewport-top, 0));
}
.dash-app__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--dash-space-3);
  padding: var(--dash-space-4);
  padding-inline-start: max(var(--dash-space-4), env(safe-area-inset-left));
  padding-inline-end: max(var(--dash-space-4), env(safe-area-inset-right));
  border-block-end: var(--dash-border-hairline) solid var(--dash-ui-border);
}
.dash-app__main {
  position: relative;
  min-block-size: 0;
  overflow: auto;
  overscroll-behavior-block: contain;
  scrollbar-gutter: stable;
  padding: var(--dash-space-5);
  padding-inline-start: max(var(--dash-space-5), env(safe-area-inset-left));
  padding-inline-end: max(var(--dash-space-5), env(safe-area-inset-right));
  scroll-padding-block: var(--dash-space-5);
}
.dash-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--dash-space-5); align-content: start; min-inline-size: 0; }
.dash-cluster { display: flex; flex-wrap: wrap; gap: var(--dash-space-3); align-items: center; }
.dash-cluster--tight, .dash-grid--tight { gap: var(--dash-space-1); }
.dash-cluster--related, .dash-grid--related { gap: var(--dash-space-2); }
.dash-cluster--group, .dash-grid--group { gap: var(--dash-space-3); }
.dash-cluster--section, .dash-grid--section { gap: var(--dash-space-5); }
.dash-cluster--start { justify-content: flex-start; }
.dash-cluster--center { justify-content: center; }
.dash-cluster--end { justify-content: flex-end; }
.dash-cluster--between { justify-content: space-between; }
.dash-split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--dash-space-2) var(--dash-space-3); min-inline-size: 0; }
.dash-spacer { flex: 1 1 0; min-inline-size: 0; }
.dash-grid { display: grid; grid-template-columns: repeat(var(--_dash-columns, 1), minmax(0, 1fr)); gap: var(--dash-space-3); min-inline-size: 0; }
.dash-grid--2 { --_dash-columns: 2; }
.dash-grid--3 { --_dash-columns: 3; }
.dash-grid--4 { --_dash-columns: 4; }
.dash-grid--fit-sm { grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--dash-space-9)), 1fr)); }
.dash-grid--fit-md { grid-template-columns: repeat(auto-fit, minmax(min(100%, calc(var(--dash-space-10) + var(--dash-space-6))), 1fr)); }
.dash-grid--fit-lg { grid-template-columns: repeat(auto-fit, minmax(min(100%, calc(var(--dash-space-10) * 2)), 1fr)); }
.dash-sidebar { display: flex; flex-wrap: wrap; gap: var(--dash-space-3); min-inline-size: 0; }
.dash-sidebar__aside { flex: 1 1 calc(var(--dash-space-10) * 2); min-inline-size: 0; }
.dash-sidebar__main { flex: 999 1 0; min-inline-size: min(100%, 50%); }
.dash-switcher { display: flex; flex-wrap: wrap; gap: var(--dash-space-3); min-inline-size: 0; }
.dash-switcher > * { flex: 1 1 calc((calc(var(--dash-space-10) * 4) - 100%) * 999); min-inline-size: 0; }
.dash-center { inline-size: 100%; max-inline-size: calc(var(--dash-space-10) * 5); margin-inline: auto; min-inline-size: 0; }
.dash-center--narrow { max-inline-size: calc(var(--dash-space-10) * 3); }
.dash-center--wide { max-inline-size: calc(var(--dash-space-10) * 8); }
.dash-inset { padding: var(--dash-space-4); }
.dash-inset--snug { padding: var(--dash-space-2); }
.dash-inset--roomy { padding: var(--dash-space-6); }
.dash-cover {
  display: flex; flex-direction: column; justify-content: center;
  gap: var(--dash-space-5); min-block-size: 100%; min-inline-size: 0;
  inline-size: 100%; max-inline-size: calc(var(--dash-space-10) * 5);
  margin-inline: auto;
  padding: var(--dash-space-6) var(--dash-space-5);
  padding-inline-start: max(var(--dash-space-5), env(safe-area-inset-left));
  padding-inline-end: max(var(--dash-space-5), env(safe-area-inset-right));
  padding-block-end: max(var(--dash-space-6), env(safe-area-inset-bottom));
}
.dash-frame { display: grid; inline-size: 100%; aspect-ratio: var(--dash-layout-aspect-square); overflow: hidden; border-radius: var(--dash-radius-md); }
.dash-frame--photo { aspect-ratio: var(--dash-layout-aspect-photo); }
.dash-frame--wide { aspect-ratio: var(--dash-layout-aspect-wide); }
.dash-frame > * { min-inline-size: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.dash-reel { display: flex; gap: var(--dash-space-3); overflow-x: auto; padding-block-end: var(--dash-space-2); scroll-snap-type: x proximity; min-inline-size: 0; }
.dash-reel > * { flex: 0 0 auto; max-inline-size: 100%; scroll-snap-align: start; }
.dash-reel:focus-visible { outline: var(--dash-border-default) solid var(--dash-ui-focus); outline-offset: var(--dash-space-1); }
.dash-divider { margin: 0; border: 0; border-block-start: var(--dash-border-hairline) solid var(--dash-ui-border); }
.dash-divider--labelled { display: flex; align-items: center; gap: var(--dash-space-3); border: 0; color: var(--dash-ui-muted); font-size: var(--dash-text-xs); line-height: var(--dash-leading-xs); font-weight: var(--dash-weight-medium); letter-spacing: var(--dash-tracking-label); text-transform: uppercase; }
.dash-divider--labelled::before, .dash-divider--labelled::after { content: ""; flex: 1 1 0; border-block-start: var(--dash-border-hairline) solid var(--dash-ui-border); }
.dash-divider__label { flex: 0 1 auto; min-inline-size: 0; text-align: center; overflow-wrap: anywhere; }
.dash-align--center { text-align: center; }
.dash-align--end { text-align: end; }
.dash-text { margin: 0; font-size: var(--dash-text-base); line-height: var(--dash-leading-base); overflow-wrap: anywhere; }
.dash-text--secondary { color: var(--_dash-secondary, var(--dash-ui-muted)); }
.dash-text--small { font-size: var(--dash-text-sm); line-height: var(--dash-leading-sm); }
.dash-text--strong { font-weight: var(--dash-weight-semibold); color: var(--_dash-strong, var(--dash-ui-ink-strong)); }
.dash-text--lead { font-size: var(--dash-text-lg); line-height: var(--dash-leading-lg); }
.dash-text--display { font-size: var(--dash-text-display-lg); line-height: var(--dash-leading-display-lg); font-weight: var(--dash-weight-bold); letter-spacing: var(--dash-tracking-tight); color: var(--_dash-strong, var(--dash-ui-ink-strong)); }
.dash-text--code { font-family: var(--dash-font-mono); font-size: var(--dash-text-sm); line-height: var(--dash-leading-sm); }
/* A key cap. It sets its own surface and ink, so it reads on any ground. */
.dash-key {
  display: inline-block;
  min-inline-size: var(--dash-space-5);
  padding: 0 var(--dash-space-1);
  border: var(--dash-border-hairline) solid var(--dash-ui-border-strong);
  border-block-end-width: var(--dash-border-default);
  border-radius: var(--dash-radius-sm);
  background: var(--dash-ui-surface);
  color: var(--dash-ui-ink);
  font-family: var(--dash-font-mono);
  font-size: var(--dash-text-xs);
  line-height: var(--dash-leading-sm);
  text-align: center;
  white-space: nowrap;
}
.dash-link { color: var(--dash-ui-interactive); text-decoration: underline; text-underline-offset: var(--dash-space-1); overflow-wrap: anywhere; }
.dash-list { margin: 0; padding-inline-start: var(--dash-space-5); display: grid; gap: var(--dash-space-2); }
.dash-heading { margin: 0; font-weight: var(--dash-weight-semibold); letter-spacing: var(--dash-tracking-tight); text-wrap: balance; overflow-wrap: anywhere; color: var(--_dash-strong, var(--dash-ui-ink-strong)); }
.dash-heading--display { font-size: var(--dash-text-display-sm); line-height: var(--dash-leading-display-sm); }
.dash-heading--large { font-size: var(--dash-text-xl); line-height: var(--dash-leading-xl); }
.dash-heading--title { font-size: var(--dash-text-lg); line-height: var(--dash-leading-lg); }
.dash-heading--item { font-size: var(--dash-text-base); line-height: var(--dash-leading-base); }
.dash-grid > *, .dash-split > *, .dash-cluster > *, .dash-switcher > * { max-inline-size: 100%; }
.dash-grid > *, .dash-split > * { min-inline-size: 0; overflow-wrap: anywhere; }
.dash-app-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dash-space-1);
  padding: var(--dash-space-2);
  padding-block-end: max(var(--dash-space-2), env(safe-area-inset-bottom));
  padding-inline-start: max(var(--dash-space-2), env(safe-area-inset-left));
  padding-inline-end: max(var(--dash-space-2), env(safe-area-inset-right));
  border-block-start: var(--dash-border-hairline) solid var(--dash-ui-border);
  background: var(--dash-ui-surface);
}
.dash-app-nav__item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-block-size: var(--dash-space-7);
  padding: var(--dash-space-2) var(--dash-space-3);
  gap: var(--dash-space-1);
  color: var(--dash-ui-muted);
  font-size: var(--dash-text-sm);
  text-align: center;
  text-decoration: none;
  border-radius: var(--dash-radius-sm);
  overflow-wrap: anywhere;
}
@media (hover: hover) { .dash-app-nav__item:hover { color: var(--dash-ui-interactive); } }
.dash-app-nav__item[aria-current="page"] {
  color: var(--dash-ui-ink);
  font-weight: var(--dash-weight-semibold);
  text-decoration: underline;
  text-underline-offset: var(--dash-space-1);
}
/* Native radios provide one tab stop, arrow keys, checked state and form data. */
.dash-segmented {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dash-space-1);
  padding: var(--dash-space-1);
  margin: 0;
  min-inline-size: 0;
  border: var(--dash-border-hairline) solid var(--dash-ui-control-border);
  border-radius: var(--dash-radius-sm);
}
.dash-segmented legend { padding-inline: var(--dash-space-2); color: var(--dash-ui-muted); font-size: var(--dash-text-sm); }
.dash-segmented__choice {
  display: flex;
  flex: 1 1 auto;
  gap: var(--dash-space-2);
  align-items: center;
  justify-content: center;
  min-block-size: var(--dash-space-7);
  padding: var(--dash-space-2) var(--dash-space-3);
  border-radius: var(--dash-radius-sm);
  color: var(--dash-ui-ink);
  cursor: pointer;
}
.dash-segmented__choice input { accent-color: var(--dash-ui-interactive); }
.dash-segmented__choice:has(:checked) { background: var(--dash-ui-primary); color: var(--dash-ui-on-primary); }
.dash-segmented__choice:has(:checked) input { accent-color: var(--dash-ui-on-primary); }
.dash-segmented__choice:has(:focus-visible) { outline: var(--dash-border-default) solid var(--dash-ui-focus); outline-offset: var(--dash-space-1); }
.dash-segmented__choice:has(:disabled) { cursor: not-allowed; color: var(--dash-ui-muted); }
.dash-sheet {
  padding: 0;
  margin: auto auto 0;
  inline-size: 100%;
  max-inline-size: calc(var(--dash-space-10) * 6);
  max-block-size: calc(100dvh - env(safe-area-inset-top) - var(--dash-space-4));
  border: var(--dash-border-hairline) solid var(--dash-ui-border);
  border-radius: var(--dash-radius-lg) var(--dash-radius-lg) 0 0;
  color: var(--dash-ui-ink);
  background: var(--dash-ui-raised);
  overflow: hidden;
}
.dash-sheet[open] { display: flex; flex-direction: column; }
.dash-sheet::backdrop { background: var(--dash-ui-backdrop); }
.dash-sheet__header, .dash-sheet__footer {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--dash-space-3);
  padding: var(--dash-space-4);
  padding-inline-start: max(var(--dash-space-4), env(safe-area-inset-left));
  padding-inline-end: max(var(--dash-space-4), env(safe-area-inset-right));
}
.dash-sheet__header { border-block-end: var(--dash-border-hairline) solid var(--dash-ui-border); }
.dash-sheet__footer { border-block-start: var(--dash-border-hairline) solid var(--dash-ui-border); padding-block-end: max(var(--dash-space-4), env(safe-area-inset-bottom)); }
.dash-sheet__body {
  min-block-size: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: var(--dash-space-4);
  scroll-padding-block: var(--dash-space-4);
}
/* Containment supplements the native modal's inert background. Applications
   freeze their primary scroller for the entire modal stack, preserving offset. */
.dash-app[data-modal-open="true"] .dash-app__main { overflow: hidden; }

/* Compact browser applications. Opt-in preserves document/deck typography.
   These compositions adapt semantic HTML; they do not supply business behavior. */
.dash-app--operational .dash-app__main { padding: var(--dash-space-4); padding-inline-start: max(var(--dash-space-4), env(safe-area-inset-left)); padding-inline-end: max(var(--dash-space-4), env(safe-area-inset-right)); }
.dash-app__content { inline-size: 100%; max-inline-size: calc(var(--dash-space-10) * 8); margin-inline: auto; }
.dash-app__brand { font-size: var(--dash-text-xl); font-weight: var(--dash-weight-bold); letter-spacing: var(--dash-tracking-tight); }
.dash-app__title { margin: 0; font-size: var(--dash-text-xl); line-height: var(--dash-leading-xl); letter-spacing: var(--dash-tracking-tight); color: var(--_dash-strong, var(--dash-ui-ink-strong)); }
.dash-app--operational :is(h1, h2, h3, p, dl, dd) { margin: 0; }
.dash-stack--tight { gap: var(--dash-space-1); }
.dash-stack--related { gap: var(--dash-space-2); }
.dash-stack--group { gap: var(--dash-space-3); }
.dash-stack--section { gap: var(--dash-space-5); }
.dash-panel {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--dash-space-3); min-inline-size: 0;
  padding: var(--dash-space-4); border-radius: var(--dash-radius-lg);
  background: var(--dash-ui-surface); color: var(--dash-ui-ink);
}
.dash-panel--quiet { background: var(--dash-ui-canvas); }
/* The one featured panel in a region: forest in light, active green in dark. */
.dash-panel--emphasis {
  --_dash-secondary: var(--dash-ui-on-featured-muted);
  --_dash-strong: var(--dash-ui-on-featured);
  background: var(--dash-ui-featured); color: var(--dash-ui-on-featured);
}
.dash-panel--emphasis :focus-visible { outline-color: var(--dash-ui-on-featured); }
.dash-panel--emphasis a:not(.dash-button), .dash-panel--emphasis .dash-record--interactive:hover { color: inherit; }
.dash-panel__header, .dash-panel__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--dash-space-3); }
.dash-panel__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--dash-space-2); min-inline-size: 0; }
.dash-panel__footer { padding-block-start: var(--dash-space-2); }
.dash-record-list {
  display: grid; padding: 0 var(--dash-space-4); margin: 0;
  list-style: none; background: var(--dash-ui-surface);
  border-radius: var(--dash-radius-lg); min-inline-size: 0;
}
.dash-record {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--dash-space-3);
  min-inline-size: 0; padding-block: var(--dash-space-3); color: inherit;
}
.dash-record-list > :not(:last-child) { border-block-end: var(--dash-border-hairline) solid var(--dash-ui-border-subtle); }
.dash-record-list > li > .dash-record { inline-size: 100%; }
.dash-record__leading { flex: none; display: flex; align-items: center; max-inline-size: 100%; }
.dash-record__body { display: grid; gap: var(--dash-space-1); flex: 1 1 var(--dash-space-9); min-inline-size: 0; }
.dash-record__title { font-size: var(--dash-text-base); line-height: var(--dash-leading-sm); font-weight: var(--dash-weight-semibold); overflow-wrap: anywhere; color: var(--_dash-strong, var(--dash-ui-ink-strong)); }
.dash-record__meta { color: var(--_dash-secondary, var(--dash-ui-muted)); font-size: var(--dash-text-sm); line-height: var(--dash-leading-sm); overflow-wrap: anywhere; }
.dash-record__trailing { display: grid; gap: var(--dash-space-1); justify-items: end; text-align: end; min-inline-size: 0; max-inline-size: 100%; flex: 0 1 auto; margin-inline-start: auto; }
.dash-record--wrap-trailing { flex-wrap: wrap; }
.dash-record--wrap-trailing .dash-record__body { flex-basis: calc(var(--dash-space-10) * 1.5); }
.dash-record--wrap-trailing .dash-record__trailing { margin-inline-start: auto; max-inline-size: 100%; }
.dash-record--interactive {
  text-decoration: none; text-align: start; font: inherit; cursor: pointer;
  border: 0; background: transparent; inline-size: 100%; min-block-size: var(--dash-space-7);
}
@media (hover: hover) { .dash-record--interactive:hover { color: var(--dash-ui-interactive); } }
.dash-record--interactive:disabled { color: var(--dash-ui-muted); cursor: not-allowed; }
.dash-record--interactive[aria-busy="true"] { cursor: progress; }
.dash-record--interactive:active { background: var(--dash-ui-surface-pressed); }
.dash-date-block {
  display: grid; justify-items: center; align-content: center; flex: none;
  min-inline-size: var(--dash-space-7); padding: var(--dash-space-2);
  border-radius: var(--dash-radius-md); background: var(--dash-color-sage);
  color: var(--dash-on-sage); font-variant-numeric: tabular-nums;
}
.dash-date-block__weekday { font-size: var(--dash-text-xs); line-height: var(--dash-leading-xs); font-weight: var(--dash-weight-semibold); text-transform: uppercase; }
.dash-date-block__date { font-size: var(--dash-text-sm); line-height: var(--dash-leading-sm); font-weight: var(--dash-weight-bold); }
.dash-amount { display: grid; gap: var(--dash-space-1); font-variant-numeric: tabular-nums; }
.dash-amount__value { overflow-wrap: anywhere; font-size: var(--dash-text-base); line-height: var(--dash-leading-sm); font-weight: var(--dash-weight-bold); color: var(--_dash-strong, var(--dash-ui-ink-strong)); }
.dash-amount__unit { font-size: var(--dash-text-sm); font-weight: var(--dash-weight-medium); }
.dash-amount__label { color: var(--_dash-secondary, var(--dash-ui-muted)); font-size: var(--dash-text-sm); line-height: var(--dash-leading-sm); }
.dash-amount--summary .dash-amount__value { overflow-wrap: anywhere; font-size: var(--dash-text-display-sm); line-height: var(--dash-leading-display-sm); letter-spacing: var(--dash-tracking-tight); }
.dash-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--dash-space-2); }
.dash-section-heading__title { margin: 0; font-size: var(--dash-text-lg); line-height: var(--dash-leading-lg); font-weight: var(--dash-weight-semibold); color: var(--_dash-strong, var(--dash-ui-ink-strong)); }
.dash-section-heading__action { flex: none; }
.dash-eyebrow { font-size: var(--dash-text-xs); line-height: var(--dash-leading-xs); font-weight: var(--dash-weight-semibold); letter-spacing: var(--dash-tracking-normal); text-transform: uppercase; color: var(--_dash-secondary, var(--dash-ui-muted)); }
.dash-category, .dash-status, .dash-owner {
  display: inline-flex; justify-self: start; align-items: center; gap: var(--dash-space-1);
  max-inline-size: 100%; padding: var(--dash-space-1) var(--dash-space-2);
  border-radius: var(--dash-radius-full); font-size: var(--dash-text-xs);
  line-height: var(--dash-leading-xs); font-weight: var(--dash-weight-semibold);
}
/* A status is a filled pill: its word in the status text on the status surface.
   A category organises by hue, never by state. Without a modifier both are neutral. */
.dash-category, .dash-status, .dash-owner { border: var(--dash-border-hairline) solid transparent; background: var(--dash-ui-neutral-surface); color: var(--dash-ui-muted); }
.dash-status--success { background: var(--dash-ui-success-surface); color: var(--dash-ui-success); }
.dash-status--warning { background: var(--dash-ui-warning-surface); color: var(--dash-ui-warning); }
.dash-status--danger { background: var(--dash-ui-danger-surface); color: var(--dash-ui-danger); }
.dash-status--info { background: var(--dash-ui-info-surface); color: var(--dash-ui-info); }
.dash-category--emerald { background: var(--dash-ui-category-emerald-surface); color: var(--dash-ui-category-emerald-ink); }
.dash-category--ocean { background: var(--dash-ui-category-ocean-surface); color: var(--dash-ui-category-ocean-ink); }
.dash-category--clay { background: var(--dash-ui-category-clay-surface); color: var(--dash-ui-category-clay-ink); }
.dash-category--brass { background: var(--dash-ui-category-brass-surface); color: var(--dash-ui-category-brass-ink); }
.dash-category--plum { background: var(--dash-ui-category-plum-surface); color: var(--dash-ui-category-plum-ink); }
.dash-category--lagoon { background: var(--dash-ui-category-lagoon-surface); color: var(--dash-ui-category-lagoon-ink); }
/* Inside the featured panel, pills keep their word and outline in the featured ink. */
.dash-panel--emphasis :is(.dash-status, .dash-category, .dash-owner) { border-color: currentColor; background: transparent; color: var(--dash-ui-on-featured); }
.dash-badge { justify-self: start; max-inline-size: 100%; }
.dash-app--operational .dash-button { border-radius: var(--dash-radius-md); font-weight: var(--dash-weight-semibold); padding-inline: var(--dash-space-4); }
.dash-button--text { --_bg: transparent; --_bd: transparent; --_fg: var(--dash-ui-interactive); }
@media (hover: hover) { .dash-button--text:hover { --_bg: var(--dash-ui-surface-hover); --_bd: transparent; --_fg: var(--dash-ui-ink); } }
.dash-button--on-emphasis { --_bg: var(--dash-color-sage); --_bd: var(--dash-color-sage); --_fg: var(--dash-on-sage); }
@media (hover: hover) { .dash-button--on-emphasis:hover { --_bg: var(--dash-color-paper); --_bd: var(--dash-color-paper); --_fg: var(--dash-on-paper); } }
.dash-panel--emphasis .dash-button--ghost, .dash-panel--emphasis .dash-button--text { --_bg: transparent; --_fg: var(--dash-ui-on-featured); --_bd: var(--dash-ui-on-featured-muted); }
.dash-panel--emphasis .dash-button--text { --_bd: transparent; }
@media (hover: hover) { .dash-panel--emphasis .dash-button--ghost:hover, .dash-panel--emphasis .dash-button--text:hover { --_bg: var(--dash-ui-on-featured); --_fg: var(--dash-ui-featured); } }
.dash-action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--dash-space-10)), 1fr)); gap: var(--dash-space-2); }
.dash-action-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--dash-space-2); min-block-size: var(--dash-space-7); padding: var(--dash-space-3);
  font: inherit; font-size: var(--dash-text-sm); font-weight: var(--dash-weight-semibold);
  text-decoration: none; text-align: center; border: var(--dash-border-hairline) solid var(--dash-ui-control-border);
  border-radius: var(--dash-radius-md); background: var(--dash-ui-surface); color: var(--dash-ui-ink); cursor: pointer;
}
@media (hover: hover) { .dash-action-tile:hover { background: var(--dash-ui-canvas); color: var(--dash-ui-interactive); } }
.dash-action-tile:active { border-color: var(--dash-ui-interactive); }
.dash-action-tile:disabled { color: var(--dash-ui-muted); cursor: not-allowed; }
.dash-action-tile[aria-busy="true"] { cursor: progress; }
.dash-panel--emphasis .dash-action-tile { background: var(--dash-ui-featured); color: var(--dash-ui-on-featured); border-color: var(--dash-ui-on-featured-muted); }
@media (hover: hover) { .dash-panel--emphasis .dash-action-tile:hover { background: var(--dash-ui-on-featured); color: var(--dash-ui-featured); } }
.dash-choice-row {
  display: flex; align-items: center; gap: var(--dash-space-3); min-block-size: var(--dash-space-7);
  padding: var(--dash-space-3); border: var(--dash-border-hairline) solid var(--dash-ui-control-border);
  border-radius: var(--dash-radius-md); background: var(--dash-ui-surface); cursor: pointer;
}
.dash-choice-row > input { flex: none; accent-color: var(--dash-ui-interactive); inline-size: var(--dash-icon-size-sm); block-size: var(--dash-icon-size-sm); }
.dash-choice-row__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--dash-space-1); min-inline-size: 0; }
.dash-choice-row__title { font-size: var(--dash-text-base); font-weight: var(--dash-weight-semibold); }
.dash-choice-row__description { font-size: var(--dash-text-sm); color: var(--dash-ui-muted); }
@media (hover: hover) { .dash-choice-row:hover { border-color: var(--dash-ui-interactive); } }
.dash-choice-row:has(:checked) { border-color: var(--dash-ui-interactive); background: var(--dash-ui-selection); color: var(--dash-ui-on-selection); }
.dash-choice-row:has(:checked) .dash-choice-row__description { color: inherit; }
.dash-choice-row:has(:checked) > input { accent-color: var(--dash-ui-on-selection); }
.dash-choice-row:has(:focus-visible) { outline: var(--dash-border-default) solid var(--dash-ui-focus); outline-offset: var(--dash-space-1); }
.dash-choice-row:has(:disabled) { cursor: not-allowed; color: var(--dash-ui-muted); background: var(--dash-ui-canvas); border-color: var(--dash-ui-control-border); }
.dash-choice-row:has([aria-invalid="true"]) { border-color: var(--dash-ui-danger); }
.dash-identity { display: flex; flex-wrap: wrap; gap: var(--dash-space-3); align-items: center; min-inline-size: 0; }
.dash-identity__avatar { display: grid; place-items: center; flex: none; inline-size: var(--dash-space-7); block-size: var(--dash-space-7); border-radius: var(--dash-radius-full); background: var(--dash-color-sage); color: var(--dash-on-sage); object-fit: cover; font-weight: var(--dash-weight-semibold); }
.dash-identity__body { display: grid; grid-template-columns: minmax(0, 1fr); flex: 1 1 var(--dash-space-10); gap: var(--dash-space-1); min-inline-size: 0; }
.dash-identity__name { font-size: var(--dash-text-lg); line-height: var(--dash-leading-lg); font-weight: var(--dash-weight-semibold); overflow-wrap: anywhere; color: var(--_dash-strong, var(--dash-ui-ink-strong)); }
.dash-identity__meta { font-size: var(--dash-text-sm); color: var(--_dash-secondary, var(--dash-ui-muted)); }
.dash-definition-list { display: grid; margin: 0; }
.dash-definition-list__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--dash-space-2); padding-block: var(--dash-space-3); }
.dash-definition-list__row + .dash-definition-list__row { border-block-start: var(--dash-border-hairline) solid var(--dash-ui-border-subtle); }
.dash-definition-list__term { font-size: var(--dash-text-sm); color: var(--_dash-secondary, var(--dash-ui-muted)); }
.dash-definition-list__value { min-inline-size: 0; max-inline-size: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: var(--dash-space-2); margin: 0; font-size: var(--dash-text-base); text-align: end; overflow-wrap: anywhere; color: var(--_dash-strong, var(--dash-ui-ink-strong)); }
.dash-definition-list__action { display: inline-flex; }
.dash-notice, .dash-empty { display: grid; gap: var(--dash-space-2); padding: var(--dash-space-4); border-radius: var(--dash-radius-md); background: var(--dash-ui-surface); color: var(--dash-ui-ink); }
.dash-notice { border: var(--dash-border-hairline) solid currentColor; }
.dash-notice--success { background: var(--dash-ui-success-surface); color: var(--dash-ui-success); }
.dash-notice--warning { background: var(--dash-ui-warning-surface); color: var(--dash-ui-warning); }
.dash-notice--danger { background: var(--dash-ui-danger-surface); color: var(--dash-ui-danger); }
.dash-notice--info { background: var(--dash-ui-info-surface); color: var(--dash-ui-info); }

/* Responsibility: who acts next and by when. Write the separator in the markup. */
.dash-owner--you { --_dash-owner-mark: var(--dash-ui-warning-mark); background: var(--dash-ui-warning-surface); color: var(--dash-ui-warning); }
.dash-owner--dash { --_dash-owner-mark: var(--dash-color-emerald); background: var(--dash-ui-brand-surface); color: var(--dash-ui-ink); }
.dash-owner::before { content: ""; flex: none; inline-size: var(--dash-space-2); block-size: var(--dash-space-2); border-radius: var(--dash-radius-full); background: var(--_dash-owner-mark, currentColor); }
.dash-owner__due { font-weight: var(--dash-weight-medium); }
.dash-panel--emphasis .dash-owner { --_dash-owner-mark: currentColor; }

/* Filters: native radios or checkboxes as pills. Two to four exclusive views use .dash-segmented. */
.dash-chip-group { display: flex; flex-wrap: wrap; gap: var(--dash-space-2); min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.dash-chip-group > legend { padding: 0; margin-block-end: var(--dash-space-2); font-size: var(--dash-text-sm); color: var(--_dash-secondary, var(--dash-ui-muted)); }
.dash-chip {
  position: relative; display: inline-flex; align-items: center; gap: var(--dash-space-2);
  min-block-size: var(--dash-space-7); max-inline-size: 100%; padding: var(--dash-space-2) var(--dash-space-4);
  border: var(--dash-border-hairline) solid var(--dash-ui-control-border); border-radius: var(--dash-radius-full);
  color: var(--dash-ui-ink); font-size: var(--dash-text-sm); line-height: var(--dash-leading-sm); font-weight: var(--dash-weight-semibold);
  cursor: pointer; overflow-wrap: anywhere;
}
.dash-chip > input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; opacity: 0; cursor: pointer; }
@media (hover: hover) { .dash-chip:hover { border-color: var(--dash-ui-interactive); } }
.dash-chip:has(:checked) { border-color: var(--dash-ui-primary); background: var(--dash-ui-primary); color: var(--dash-ui-on-primary); }
.dash-chip:has(:focus-visible) { outline: var(--dash-border-default) solid var(--dash-ui-focus); outline-offset: var(--dash-space-1); }
.dash-chip:has(:disabled) { cursor: not-allowed; color: var(--dash-ui-muted); border-color: var(--dash-ui-border); }
.dash-chip:has(:disabled) > input { cursor: not-allowed; }
.dash-chip__count { min-inline-size: var(--dash-space-5); padding-inline: var(--dash-space-2); border-radius: var(--dash-radius-full); background: var(--dash-ui-neutral-surface); color: var(--dash-ui-muted); font-size: var(--dash-text-xs); line-height: var(--dash-leading-xs); text-align: center; font-variant-numeric: tabular-nums; }
.dash-chip:has(:checked) .dash-chip__count { background: transparent; color: inherit; }
.dash-chip__mark { flex: none; inline-size: var(--dash-space-2); block-size: var(--dash-space-2); border-radius: var(--dash-radius-full); background: var(--_dash-series, currentColor); }
@media (forced-colors: active) {
  .dash-chip:has(:checked), .dash-switch:has(:checked) .dash-switch__track { border-width: var(--dash-border-default); }
}

/* A setting that applies at once: a native checkbox with role="switch" covering its label. */
.dash-switch { position: relative; display: flex; align-items: center; gap: var(--dash-space-3); min-block-size: var(--dash-space-7); min-inline-size: 0; cursor: pointer; }
.dash-switch > input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; opacity: 0; cursor: pointer; }
.dash-switch__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--dash-space-1); flex: 1 1 auto; min-inline-size: 0; }
.dash-switch__title { font-size: var(--dash-text-base); font-weight: var(--dash-weight-semibold); overflow-wrap: anywhere; }
.dash-switch__description { font-size: var(--dash-text-sm); color: var(--_dash-secondary, var(--dash-ui-muted)); overflow-wrap: anywhere; }
.dash-switch__track {
  --_dash-thumb: calc(var(--dash-space-5) - var(--dash-space-1));
  flex: none; display: flex; align-items: center;
  inline-size: calc(var(--dash-space-6) + var(--dash-space-3)); block-size: calc(var(--dash-space-5) + var(--dash-space-1));
  padding-inline: var(--dash-border-default);
  border: var(--dash-border-hairline) solid var(--dash-ui-control-border); border-radius: var(--dash-radius-full);
  background: var(--dash-ui-sunken);
  transition: background var(--dash-duration-fast) var(--dash-ease-standard), border-color var(--dash-duration-fast) var(--dash-ease-standard);
}
.dash-switch__track::after { content: ""; inline-size: var(--_dash-thumb); block-size: var(--_dash-thumb); border-radius: var(--dash-radius-full); background: var(--dash-ui-control-border); transition: translate var(--dash-duration-fast) var(--dash-ease-standard); }
.dash-switch:has(:checked) .dash-switch__track { border-color: var(--dash-ui-primary); background: var(--dash-ui-primary); }
.dash-switch:has(:checked) .dash-switch__track::after { background: var(--dash-ui-on-primary); translate: calc(var(--dash-space-6) + var(--dash-space-3) - var(--_dash-thumb) - 2 * var(--dash-border-default) - 2 * var(--dash-border-hairline)) 0; }
.dash-switch:has(:focus-visible) .dash-switch__track { outline: var(--dash-border-default) solid var(--dash-ui-focus); outline-offset: var(--dash-border-default); }
.dash-switch:has(:disabled) { cursor: not-allowed; color: var(--dash-ui-muted); }
.dash-switch:has(:disabled) > input { cursor: not-allowed; }

/* A short status after an action, on the inverse surface. As the last child of .dash-app it overlays
   the bottom of the main area, above the navigation. No shadow, no motion; the application times it. */
.dash-toast { display: flex; flex-wrap: wrap; align-items: center; gap: var(--dash-space-1) var(--dash-space-3); max-inline-size: calc(var(--dash-space-10) * 4); padding: var(--dash-space-2) var(--dash-space-2) var(--dash-space-2) var(--dash-space-4); border-radius: var(--dash-radius-md); background: var(--dash-ui-inverse); color: var(--dash-ui-on-inverse); font-size: var(--dash-text-sm); line-height: var(--dash-leading-sm); font-weight: var(--dash-weight-semibold); overflow-wrap: anywhere; }
.dash-toast__text { flex: 1 1 var(--dash-space-9); min-inline-size: 0; }
.dash-toast .dash-button--text, .dash-toast .dash-button--text:is(:hover, :active) { --_bg: transparent; --_bd: transparent; --_fg: currentColor; text-decoration: underline; text-underline-offset: var(--dash-space-1); }
/* Positioned over the main row without joining the grid's auto-placement. */
.dash-app:has(> .dash-toast) { position: relative; }
.dash-app > .dash-toast { position: absolute; grid-row: 2 / 3; grid-column: 1 / 2; inset-block-end: var(--dash-space-4); inset-inline: var(--dash-space-4); inline-size: fit-content; margin-inline: auto; }
.dash-app:is(.dash-app--focused, .dash-app--welcome) > .dash-toast { grid-area: main; }

/* Loading keeps the shape of the content it replaces: static, aria-hidden, inside a region marked aria-busy. */
.dash-skeleton { display: block; inline-size: 100%; block-size: 1em; block-size: 1lh; border-radius: var(--dash-radius-sm); background: var(--dash-ui-neutral-surface); }
.dash-skeleton--title { inline-size: calc(var(--dash-space-10) * 1.5); max-inline-size: 100%; }
.dash-skeleton--short { inline-size: var(--dash-space-10); max-inline-size: 100%; }
.dash-skeleton--tile { flex: none; inline-size: calc(var(--dash-icon-size-lg) + 2 * var(--dash-space-4)); block-size: calc(var(--dash-icon-size-lg) + 2 * var(--dash-space-4)); border-radius: var(--dash-radius-md); }
.dash-skeleton--circle { flex: none; inline-size: var(--dash-space-7); block-size: var(--dash-space-7); border-radius: var(--dash-radius-full); }
.dash-skeleton--block { block-size: var(--dash-space-9); border-radius: var(--dash-radius-lg); }

/* A hidden value: the application writes the currency, an aria-hidden mask and a visually hidden word. */
.dash-amount__mask { letter-spacing: var(--dash-tracking-label); }

/* Series colours for application-drawn charts, their legends and chip marks. Every series has a legend entry. */
.dash-series--strong { --_dash-series: var(--_dash-strong, var(--dash-ui-ink-strong)); }
.dash-series--emerald { --_dash-series: var(--dash-ui-category-emerald); }
.dash-series--ocean { --_dash-series: var(--dash-ui-category-ocean); }
.dash-series--clay { --_dash-series: var(--dash-ui-category-clay); }
.dash-series--brass { --_dash-series: var(--dash-ui-category-brass); }
.dash-series--plum { --_dash-series: var(--dash-ui-category-plum); }
.dash-series--lagoon { --_dash-series: var(--dash-ui-category-lagoon); }
.dash-series--success { --_dash-series: var(--dash-ui-success-mark); }
.dash-series--warning { --_dash-series: var(--dash-ui-warning-mark); }
.dash-series--danger { --_dash-series: var(--dash-ui-danger-mark); }
.dash-series--info { --_dash-series: var(--dash-ui-info-mark); }
.dash-chart { display: block; inline-size: 100%; block-size: auto; overflow: visible; color: var(--_dash-secondary, var(--dash-ui-muted)); font-size: var(--dash-text-xs); }
.dash-chart__grid { stroke: var(--dash-ui-border-subtle); stroke-width: var(--dash-border-hairline); vector-effect: non-scaling-stroke; }
.dash-chart__axis { fill: currentColor; font-variant-numeric: tabular-nums; }
.dash-chart__series { fill: none; stroke: var(--_dash-series, currentColor); stroke-width: var(--dash-border-default); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dash-chart__series--projected { stroke-dasharray: var(--dash-space-1) var(--dash-space-1); }
.dash-chart__point { fill: var(--_dash-series, currentColor); }
.dash-legend { display: flex; flex-wrap: wrap; gap: var(--dash-space-2) var(--dash-space-4); margin: 0; padding: 0; list-style: none; color: var(--_dash-secondary, var(--dash-ui-muted)); font-size: var(--dash-text-xs); line-height: var(--dash-leading-xs); }
.dash-legend__item { display: inline-flex; align-items: center; gap: var(--dash-space-2); }
.dash-legend__key { flex: none; inline-size: var(--dash-space-4); block-size: var(--dash-border-default); border-radius: var(--dash-radius-full); background: var(--_dash-series, currentColor); }
.dash-legend__key--dashed { background: repeating-linear-gradient(90deg, var(--_dash-series, currentColor) 0 var(--dash-space-1), transparent var(--dash-space-1) calc(var(--dash-space-1) * 2)); }
.dash-legend__key--dot { inline-size: var(--dash-space-2); block-size: var(--dash-space-2); }
.dash-filter-summary { border: var(--dash-border-hairline) solid var(--dash-ui-control-border); border-radius: var(--dash-radius-md); padding: var(--dash-space-3); background: var(--dash-ui-surface); }
.dash-sheet--compact .dash-sheet__body { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--dash-space-3); }
.dash-sheet--compact .dash-sheet__header h2 { margin: 0; font-size: var(--dash-text-lg); line-height: var(--dash-leading-lg); }
.dash-app--operational .dash-segmented { border-radius: var(--dash-radius-md); background: var(--dash-ui-surface); }
.dash-app--operational .dash-segmented__choice { position: relative; border-radius: var(--dash-radius-sm); font-size: var(--dash-text-sm); font-weight: var(--dash-weight-semibold); }
.dash-app--operational .dash-app-nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; padding-inline-start: max(var(--dash-space-1), env(safe-area-inset-left)); padding-inline-end: max(var(--dash-space-1), env(safe-area-inset-right)); }
.dash-app--operational .dash-app-nav__item { font-size: var(--dash-text-xs); min-inline-size: 0; padding-inline: 0; overflow-wrap: anywhere; }
.dash-app--operational .dash-app-nav__label { white-space: normal; }
.dash-app--operational .dash-segmented__choice input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; opacity: 0; margin: 0; cursor: pointer; }
.dash-app--operational .dash-segmented__choice input:disabled { cursor: not-allowed; }
.dash-app--operational .dash-segmented__choice:has(:checked) { font-weight: var(--dash-weight-bold); }
@media (forced-colors: active) {
  .dash-app--operational .dash-segmented__choice:has(:checked) { border: var(--dash-border-default) solid currentColor; }
}
.dash-app__context { font-size: var(--dash-text-sm); line-height: var(--dash-leading-sm); color: var(--_dash-secondary, var(--dash-ui-muted)); font-weight: var(--dash-weight-medium); letter-spacing: var(--dash-tracking-normal); }
.dash-app__avatar { display: grid; place-items: center; flex: none; inline-size: var(--dash-space-7); min-block-size: var(--dash-space-7); padding: var(--dash-space-2); border: var(--dash-border-hairline) solid var(--dash-ui-control-border); border-radius: var(--dash-radius-full); background: var(--dash-ui-surface); color: var(--dash-ui-ink); font: inherit; font-weight: var(--dash-weight-semibold); cursor: pointer; }
@media (hover: hover) { .dash-app__avatar:hover { background: var(--dash-ui-primary); color: var(--dash-ui-on-primary); } }
.dash-app__header--emphasis, .dash-virtual-card { --_dash-strong: var(--dash-on-forest); }
.dash-app__header--emphasis { --_dash-secondary: var(--dash-on-forest-muted); background: var(--dash-color-forest); color: var(--dash-on-forest); border-block-end-color: var(--dash-color-forest); }
.dash-app__header--emphasis .dash-app__avatar { background: var(--dash-color-active); color: var(--dash-on-active); border-color: var(--dash-on-forest-muted); }
@media (hover: hover) { .dash-app__header--emphasis .dash-app__avatar:hover { background: var(--dash-color-sage); color: var(--dash-on-sage); } }
.dash-app__header--emphasis :focus-visible { outline-color: var(--dash-on-forest); }
.dash-app-nav__label { font-size: inherit; }
/* Semantic visibility must survive display declarations on compositions. */
.dash-app [hidden], .dash-sheet [hidden] { display: none !important; }
.dash-button--on-emphasis:disabled, .dash-button--on-emphasis[aria-disabled="true"] { --_bg: var(--dash-color-sage); --_bd: var(--dash-color-sage); --_fg: var(--dash-on-sage); }
@media (hover: hover) { .dash-action-tile:disabled:hover { background: var(--dash-ui-surface); color: var(--dash-ui-muted); } }
.dash-panel--emphasis .dash-action-tile:disabled { background: var(--dash-ui-featured); color: var(--dash-ui-on-featured-muted); }

/* A knowledge entry: a kind, a monospace topic key and the text, with an
   optional trailing toggle for the messages it cites. A retired entry strikes
   its text and writes a state word beside its kind. */
.dash-knowledge { display: flex; flex-wrap: wrap; align-items: start; gap: var(--dash-space-2) var(--dash-space-3); padding-block: var(--dash-space-3); min-inline-size: 0; }
.dash-knowledge__body { display: grid; gap: var(--dash-space-1); flex: 1 1 calc(var(--dash-space-10) * 1.5); min-inline-size: 0; }
.dash-knowledge__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--dash-space-1) var(--dash-space-2); margin: 0; }
.dash-knowledge__kind { color: var(--dash-ui-interactive); font-size: var(--dash-text-xs); line-height: var(--dash-leading-xs); font-weight: var(--dash-weight-medium); letter-spacing: var(--dash-tracking-label); text-transform: uppercase; }
.dash-knowledge__key { font-family: var(--dash-font-mono); font-size: var(--dash-text-xs); line-height: var(--dash-leading-xs); color: var(--dash-ui-muted); overflow-wrap: break-word; }
.dash-knowledge__state { font-size: var(--dash-text-xs); line-height: var(--dash-leading-xs); font-weight: var(--dash-weight-semibold); color: var(--dash-ui-muted); }
.dash-knowledge__text { margin: 0; font-size: var(--dash-text-base); line-height: var(--dash-leading-base); color: var(--dash-ui-ink); overflow-wrap: anywhere; }
.dash-knowledge--retired .dash-knowledge__text { color: var(--dash-ui-muted); }
.dash-knowledge__text del { text-decoration-thickness: var(--dash-border-hairline); }
.dash-knowledge__sources { flex: none; margin-inline-start: auto; max-inline-size: 100%; }
.dash-knowledge__sources[aria-pressed="true"] { text-decoration: underline; text-underline-offset: var(--dash-space-1); }

/* A replacement: the field, the old value struck through and the new one, an
   optional line naming what it updates, and a decision on this item alone.
   The decision is a written status, shown before the undo control whichever
   slot holds it. */
.dash-replacement { display: flex; flex-wrap: wrap; align-items: start; gap: var(--dash-space-2) var(--dash-space-3); padding-block: var(--dash-space-3); min-inline-size: 0; }
.dash-replacement__body { display: grid; gap: var(--dash-space-1); flex: 1 1 calc(var(--dash-space-10) * 1.5); min-inline-size: 0; }
.dash-replacement__field { margin: 0; color: var(--dash-ui-interactive); font-size: var(--dash-text-xs); line-height: var(--dash-leading-xs); font-weight: var(--dash-weight-medium); letter-spacing: var(--dash-tracking-label); text-transform: uppercase; }
.dash-replacement__change { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--dash-space-1) var(--dash-space-2); margin: 0; overflow-wrap: anywhere; }
.dash-replacement__old { color: var(--dash-ui-muted); text-decoration-thickness: var(--dash-border-hairline); }
.dash-replacement__arrow { display: inline-flex; align-self: center; color: var(--dash-ui-muted); }
.dash-replacement__new { color: var(--dash-ui-ink-strong); font-weight: var(--dash-weight-semibold); text-decoration: none; }
.dash-replacement__source { margin: 0; color: var(--dash-ui-muted); font-size: var(--dash-text-sm); line-height: var(--dash-leading-sm); overflow-wrap: anywhere; }
.dash-replacement__key { font-family: var(--dash-font-mono); font-size: var(--dash-text-xs); }
.dash-replacement__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--dash-space-2); flex: none; margin-inline-start: auto; max-inline-size: 100%; }
.dash-replacement__decision { order: -1; }
.dash-replacement--confirmed .dash-replacement__old { text-decoration-thickness: var(--dash-border-default); }
.dash-replacement--discarded .dash-replacement__new { color: var(--dash-ui-muted); font-weight: var(--dash-weight-regular); }
.dash-record__meta .dash-icon { inline-size: var(--dash-icon-size-sm); block-size: var(--dash-icon-size-sm); vertical-align: text-bottom; }

/* Panel inset already separates its immediate record from neighboring content. */
.dash-panel > .dash-record { padding-block: 0; }
.dash-amount--rate .dash-amount__value { overflow-wrap: anywhere; font-size: var(--dash-text-xl); line-height: var(--dash-leading-xl); }
.dash-inline-value { display: inline-flex; align-items: center; gap: var(--dash-space-1); white-space: nowrap; }

/* Browser layout contracts: retain DOM reading order and control targets. */
.dash-sheet__header > :first-child { flex: 1 1 calc(var(--dash-space-10) * 1.5); min-inline-size: 0; overflow-wrap: anywhere; }
.dash-sheet__header > .dash-button { flex: 0 1 auto; max-inline-size: 100%; margin-inline-start: auto; }
.dash-sheet__feedback { flex: 1 0 100%; min-inline-size: 0; }
.dash-sheet__footer--single, .dash-sheet__footer--multiple { justify-content: end; }
.dash-sheet__footer--single > .dash-button { inline-size: 100%; }
.dash-sheet__footer--multiple > .dash-button { flex: 1 1 var(--dash-space-10); }
/* Use the existing wide-layout boundary, shared with the sidebar composition. */
@media (min-width: 60rem) {
  .dash-sheet__footer--single > .dash-button { inline-size: auto; }
  .dash-sheet__footer--multiple > .dash-button { flex: 0 1 auto; }
}
.dash-record__actions { display: flex; flex-wrap: wrap; flex: 1 0 100%; gap: var(--dash-space-2); min-inline-size: 0; }
.dash-record__actions > .dash-button { flex: 1 1 var(--dash-space-10); }
.dash-record--opportunity { align-items: start; }
.dash-record--opportunity > .dash-record__leading { align-self: start; }
.dash-record--opportunity > .dash-record__body { min-inline-size: 0; flex-basis: var(--dash-space-10); }
.dash-record__pair { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--dash-space-1) var(--dash-space-3); min-inline-size: 0; }
.dash-record__pair > :first-child { flex: 1 1 var(--dash-space-9); min-inline-size: 0; }
.dash-record__pair > :last-child { margin-inline-start: auto; max-inline-size: 100%; text-align: end; overflow-wrap: anywhere; }
.dash-app__header--compact { display: flex; flex-wrap: wrap; gap: var(--dash-space-2); }
.dash-app__header--compact > * { min-inline-size: 0; max-inline-size: 100%; overflow-wrap: anywhere; }
.dash-app__header--compact > :nth-child(2) { flex: 1 0 auto; }
.dash-app__header--compact > :last-child { margin-inline-start: auto; }
.dash-app__header--emphasis :is(.dash-button--ghost, .dash-button--text) { --_bg: transparent; --_fg: var(--dash-on-forest); --_bd: var(--dash-on-forest-muted); }
.dash-app__header--emphasis .dash-button--text { --_bd: transparent; }
@media (hover: hover) { .dash-app__header--emphasis :is(.dash-button--ghost, .dash-button--text):hover { --_bg: var(--dash-color-active); --_fg: var(--dash-on-active); } }

/* Native, browser-only copy disclosure. The application owns clipboard effects. */
.dash-copy { min-inline-size: 0; max-inline-size: 100%; text-align: start; }
.dash-copy__value { display: flex; align-items: center; gap: var(--dash-space-2); min-block-size: var(--dash-space-7); min-inline-size: 0; cursor: pointer; list-style: none; overflow-wrap: anywhere; border-radius: var(--dash-radius-sm); }
.dash-copy__value::-webkit-details-marker { display: none; }
.dash-copy__value > :first-child { min-inline-size: 0; }
.dash-copy__value > .dash-icon { flex: none; }
@media (hover: hover) { .dash-copy__value:hover { color: var(--dash-ui-interactive); } }
.dash-copy[open] > .dash-copy__value { text-decoration: underline; text-underline-offset: var(--dash-space-1); }
.dash-copy__bubble { inline-size: fit-content; max-inline-size: 100%; margin-inline-start: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--dash-space-2); margin-block-start: var(--dash-space-1); padding: var(--dash-space-2); border: var(--dash-border-hairline) solid var(--dash-ui-control-border); border-radius: var(--dash-radius-md); background: var(--dash-ui-surface); color: var(--dash-ui-ink); }
.dash-copy__status { min-inline-size: 0; font-size: var(--dash-text-sm); color: var(--dash-ui-muted); overflow-wrap: anywhere; }
.dash-copy--block { padding: var(--dash-space-3); background: var(--dash-ui-sunken); color: var(--dash-ui-ink); border-radius: var(--dash-radius-md); }
.dash-copy--block > .dash-copy__value { align-items: start; white-space: pre-wrap; }
.dash-copy--block > .dash-copy__value > :first-child { flex: 1; }
/* At most two peers; intrinsic minimum grows with the reader's text size. */
.dash-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(calc(var(--dash-space-10) + var(--dash-space-6)), calc((100% - var(--dash-space-2)) / 2))), 1fr)); gap: var(--dash-space-2); min-inline-size: 0; }
.dash-choice-grid > .dash-choice-row { min-inline-size: 0; overflow-wrap: anywhere; }
/* Headings receive programmatic reading focus, never interactive affordance. */
:is(.dash-app, .dash-sheet) :is(h1, h2)[tabindex="-1"]:not([role]):not([contenteditable]):focus { outline: none; }

.dash-choice-fieldset { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.dash-choice-fieldset > legend { padding: 0; margin-block-end: var(--dash-space-2); font-size: var(--dash-text-base); font-weight: var(--dash-weight-semibold); }

/* Grid children and clustered controls may shrink within an inset panel. */
.dash-panel > *, .dash-panel .dash-cluster > * { min-inline-size: 0; max-inline-size: 100%; overflow-wrap: anywhere; }

/* Intrinsic browser content must fit the available track at enlarged text. */
.dash-stack > *, .dash-sheet__body > *, .dash-identity__body > *, .dash-choice-row__body > * { min-inline-size: 0; max-inline-size: 100%; overflow-wrap: anywhere; }
.dash-choice-row { min-inline-size: 0; max-inline-size: 100%; }
.dash-range { display: block; inline-size: 100%; min-inline-size: 0; min-block-size: var(--dash-space-7); margin: 0; padding: 0; accent-color: var(--dash-ui-interactive); background: transparent; cursor: pointer; }
.dash-range:disabled { cursor: not-allowed; }
.dash-range__value { font-size: var(--dash-text-base); font-variant-numeric: tabular-nums; }
.dash-disclosure { min-inline-size: 0; max-inline-size: 100%; }
.dash-disclosure__summary { display: list-item; min-block-size: var(--dash-space-7); padding-block: var(--dash-space-3); cursor: pointer; font-weight: var(--dash-weight-semibold); overflow-wrap: anywhere; }
.dash-disclosure__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--dash-space-3); padding-block: var(--dash-space-2); min-inline-size: 0; }
.dash-disclosure__body > * { min-inline-size: 0; max-inline-size: 100%; overflow-wrap: anywhere; }
.dash-app__header--minimal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--dash-space-2); padding-block: var(--dash-space-2); }
.dash-app__header--minimal > * { min-inline-size: 0; overflow-wrap: anywhere; }
.dash-app__header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: var(--dash-space-2); }

/* Direct copy is one native action; successful feedback has no layout cost. */
.dash-copy-control { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--dash-space-1); min-inline-size: 0; max-inline-size: 100%; }
.dash-copy-action { display: flex; align-items: center; justify-content: space-between; gap: var(--dash-space-2); min-block-size: var(--dash-space-7); min-inline-size: min(100%, var(--dash-space-7)); max-inline-size: 100%; padding: var(--dash-space-2) 0; border: 0; border-radius: var(--dash-radius-sm); background: transparent; color: var(--dash-ui-ink); font: inherit; text-align: start; cursor: pointer; }
.dash-copy-action__value { min-inline-size: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.dash-copy-action > .dash-icon { flex: none; }
@media (hover: hover) { .dash-copy-action:hover { color: var(--dash-ui-interactive); } }
.dash-copy-action:disabled { color: var(--dash-ui-muted); cursor: not-allowed; }
.dash-copy-action--block { padding: var(--dash-space-3); background: var(--dash-ui-sunken); border-radius: var(--dash-radius-md); align-items: start; }
.dash-copy-feedback { position: absolute; inline-size: var(--dash-border-hairline); block-size: var(--dash-border-hairline); overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dash-copy-feedback--error { position: static; inline-size: auto; block-size: auto; overflow: visible; clip-path: none; white-space: normal; font-size: var(--dash-text-sm); line-height: var(--dash-leading-sm); color: var(--dash-ui-danger); text-align: start; overflow-wrap: anywhere; }
/* A virtual identity card, not a financial instrument or wallet pass. */
.dash-virtual-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: var(--dash-space-3); inline-size: 100%; max-inline-size: calc(var(--dash-space-10) * 4); aspect-ratio: var(--dash-layout-virtual-card-aspect); padding: var(--dash-space-5); border-radius: var(--dash-radius-xl); background: var(--dash-color-forest); color: var(--dash-on-forest); border: var(--dash-border-hairline) solid var(--dash-on-forest-muted); }
.dash-virtual-card > * { min-inline-size: 0; overflow-wrap: anywhere; }
.dash-virtual-card__header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--dash-space-2); font-size: var(--dash-text-sm); color: var(--dash-on-forest-muted); }
.dash-virtual-card__header .dash-app__brand { color: var(--dash-on-forest); }
.dash-virtual-card__identity { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center; gap: var(--dash-space-2); text-align: center; }
.dash-virtual-card__name { margin: 0; font-size: var(--dash-text-lg); line-height: var(--dash-leading-lg); font-weight: var(--dash-weight-semibold); overflow-wrap: anywhere; }
.dash-virtual-card__credential { margin: 0; font-size: var(--dash-text-sm); color: var(--dash-on-forest-muted); overflow-wrap: anywhere; }
.dash-virtual-card__footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--dash-space-2); font-size: var(--dash-text-xs); line-height: var(--dash-leading-xs); color: var(--dash-on-forest-muted); text-align: center; }
/* The visible row and native file control share one full-size hit rectangle. */
.dash-file-picker { position: relative; display: flex; align-items: center; gap: var(--dash-space-3); min-block-size: var(--dash-space-7); min-inline-size: 0; padding: var(--dash-space-3); border: var(--dash-border-hairline) solid var(--dash-ui-control-border); border-radius: var(--dash-radius-md); background: var(--dash-ui-surface); color: var(--dash-ui-ink); cursor: pointer; }
.dash-file-picker > input[type="file"] { position: absolute; inset: calc(var(--dash-border-hairline) * -1); inline-size: calc(100% + var(--dash-border-hairline) * 2); block-size: calc(100% + var(--dash-border-hairline) * 2); opacity: 0; margin: 0; cursor: pointer; }
.dash-file-picker > .dash-icon { flex: none; }
.dash-file-picker__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--dash-space-1); min-inline-size: 0; }
.dash-file-picker__label { font-size: var(--dash-text-base); font-weight: var(--dash-weight-semibold); overflow-wrap: anywhere; }
.dash-file-picker__status { font-size: var(--dash-text-sm); color: var(--dash-ui-muted); overflow-wrap: anywhere; }
@media (hover: hover) { .dash-file-picker:hover { border-color: var(--dash-ui-interactive); } }
.dash-file-picker:has(:focus-visible) { outline: var(--dash-border-default) solid var(--dash-ui-focus); outline-offset: var(--dash-space-1); }
.dash-file-picker:has(:disabled), .dash-file-picker > input:disabled { cursor: not-allowed; }
.dash-file-picker:has(:disabled) { color: var(--dash-ui-muted); }

.dash-virtual-card__identity > * { min-inline-size: 0; max-inline-size: 100%; }

/* Focused browser tasks keep every action in the primary scroller. The shell
   does not reserve a navigation row or sidebar, including at enlarged text. */
.dash-app.dash-app--focused {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "header" "main";
}
.dash-app--focused > .dash-app__header { grid-area: header; }
.dash-app--focused > .dash-app__main {
  grid-area: main;
  min-inline-size: 0;
  padding-block-end: max(var(--dash-space-5), env(safe-area-inset-bottom));
}
.dash-app.dash-app--focused > .dash-app-nav { display: none; }
.dash-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: var(--dash-space-5);
  inline-size: 100%;
  max-inline-size: calc(var(--dash-space-10) * 5);
  min-inline-size: 0;
  margin-inline: auto;
}
.dash-flow > * { min-inline-size: 0; max-inline-size: 100%; overflow-wrap: anywhere; }
.dash-flow__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dash-space-3);
  padding-block-start: var(--dash-space-3);
}
.dash-flow__actions > .dash-button { flex: 1 1 var(--dash-space-10); min-inline-size: 0; max-inline-size: 100%; }
.dash-chat {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--dash-space-4);
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dash-chat__message {
  display: grid;
  gap: var(--dash-space-2);
  min-inline-size: 0;
  max-inline-size: 100%;
  padding: var(--dash-space-4);
  border-radius: var(--dash-radius-md);
  background: var(--dash-ui-surface);
  color: var(--dash-ui-ink);
  overflow-wrap: anywhere;
}
.dash-chat__message--assistant, .dash-chat__message--inbound { justify-self: start; }
.dash-chat__message--user, .dash-chat__message--outbound { justify-self: end; background: var(--dash-ui-selection); color: var(--dash-ui-on-selection); }
.dash-chat__author { font-size: var(--dash-text-sm); font-weight: var(--dash-weight-semibold); }
.dash-chat__content { margin: 0; white-space: pre-wrap; }
/* A conversation told by sides, for an operator answering a customer. The
   facts, quote and citations inherit the message's ink, because muted text is
   not paired with the outbound surface; on an inbound message they are muted.
   A highlighted message is outlined and carries aria-current, so it is not
   colour alone. */
.dash-chat__message--highlighted { outline: var(--dash-border-default) solid var(--dash-ui-interactive); outline-offset: var(--dash-space-1); }
.dash-chat__meta, .dash-chat__citations { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--dash-space-1); margin: 0; font-size: var(--dash-text-xs); line-height: var(--dash-leading-xs); overflow-wrap: anywhere; }
.dash-chat__message--inbound :is(.dash-chat__meta, .dash-chat__citations-label, .dash-chat__quote-meta) { color: var(--dash-ui-muted); }
.dash-chat__key { font-family: var(--dash-font-mono); font-size: var(--dash-text-xs); }
/* A message that did not reach its reader turns to the danger pair and
   names its state in words, with a warning mark, so it is not colour alone. */
.dash-chat__message--failed { background: var(--dash-ui-danger-surface); color: var(--dash-ui-ink); box-shadow: inset var(--dash-space-1) 0 0 var(--dash-ui-danger); }
.dash-chat__message--failed :is(.dash-chat__meta, .dash-chat__citations-label, .dash-chat__quote-meta) { color: var(--dash-ui-muted); }
.dash-chat__failure { display: flex; align-items: center; gap: var(--dash-space-1); margin: 0; color: var(--dash-ui-danger); font-size: var(--dash-text-sm); font-weight: var(--dash-weight-semibold); }
/* A quiet info mark whose explanation shows on hover and keyboard focus;
   the same words are its accessible name. */
.dash-hint { position: relative; display: inline-flex; vertical-align: middle; color: var(--dash-ui-muted); cursor: help; border-radius: var(--dash-radius-full); font-weight: var(--dash-weight-regular); }
.dash-hint:focus-visible { outline: var(--dash-border-default) solid var(--dash-ui-interactive); outline-offset: var(--dash-border-default); }
.dash-hint::after {
  content: attr(data-hint);
  position: absolute;
  inset-block-end: calc(100% + var(--dash-space-1));
  inset-inline-start: 50%;
  translate: -50% 0;
  z-index: 20;
  inline-size: max-content;
  max-inline-size: min(18rem, 80vw);
  padding: var(--dash-space-2) var(--dash-space-3);
  border-radius: var(--dash-radius-sm);
  background: var(--dash-ui-ink);
  color: var(--dash-ui-surface);
  font-size: var(--dash-text-xs);
  line-height: var(--dash-leading-xs);
  font-weight: var(--dash-weight-regular);
  letter-spacing: normal;
  text-transform: none;
  text-align: start;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dash-duration-fast) var(--dash-ease-standard);
}
.dash-hint:is(:hover, :focus-visible)::after { opacity: 1; visibility: visible; }
/* Where anchor positioning exists, the explanation is fixed to its mark, so
   a scrolling container (a dock, a pane) does not clip it, and it flips
   below or across when there is no room. */
@supports (anchor-name: --a) {
  .dash-hint { anchor-name: --dash-hint; anchor-scope: --dash-hint; }
  .dash-hint::after {
    position: fixed;
    position-anchor: --dash-hint;
    position-area: top span-all;
    justify-self: anchor-center;
    position-try-fallbacks: flip-block, flip-inline;
    inset: auto;
    translate: none;
    margin: var(--dash-space-1);
  }
}
@media (prefers-reduced-motion: reduce) { .dash-hint::after { transition: none; } }
.dash-chat__quote {
  display: grid;
  gap: var(--dash-space-1);
  inline-size: 100%;
  margin: 0;
  padding: var(--dash-space-1) 0 var(--dash-space-1) var(--dash-space-3);
  border: 0;
  border-inline-start: var(--dash-border-default) solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.dash-chat__quote:focus-visible { outline: var(--dash-border-default) solid var(--dash-ui-focus); outline-offset: var(--dash-space-1); }
.dash-chat__quote-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--dash-space-1); font-size: var(--dash-text-xs); line-height: var(--dash-leading-xs); }
.dash-chat__quote-author { font-weight: var(--dash-weight-semibold); }
.dash-chat__quote-text { font-size: var(--dash-text-sm); line-height: var(--dash-leading-sm); white-space: pre-wrap; overflow-wrap: anywhere; }
.dash-composer { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--dash-space-3); min-inline-size: 0; }
.dash-composer textarea { resize: vertical; inline-size: 100%; }
/* A followed log: the log, a status for a pending reply and, while a reply is
   unread, a control back to it. The status stays in the document so its first
   words are heard; empty, it leaves the flow. The control sticks to the
   bottom of the one scroller only while the reader is above the log's end and
   a reply waits; it is confined to the thread, so it never covers the
   composer that follows. */
.dash-chat-thread { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--dash-space-4); min-inline-size: 0; }
.dash-chat__pending { display: flex; align-items: center; gap: var(--dash-space-2); margin: 0; color: var(--dash-ui-muted); font-size: var(--dash-text-sm); overflow-wrap: anywhere; }
.dash-chat__pending:empty, .dash-recorder__status:empty { position: absolute; }
.dash-chat__pending:not(:empty)::before {
  content: "";
  flex: none;
  inline-size: 0.85em; block-size: 0.85em;
  border: var(--dash-border-default) solid currentColor;
  border-top-color: transparent;
  border-radius: var(--dash-radius-full);
  animation: dash-spin var(--dash-duration-spin) linear infinite;
}
.dash-chat__latest { position: sticky; inset-block-end: var(--dash-space-3); justify-self: center; }
/* An audio recorder renders the state the application gives it; capture,
   levels and playback URLs stay with the application. */
.dash-recorder { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--dash-space-2); min-inline-size: 0; }
.dash-recorder__status { margin: 0; color: var(--dash-ui-muted); font-size: var(--dash-text-sm); overflow-wrap: anywhere; }
.dash-recorder__status--error { color: var(--dash-ui-danger); font-weight: var(--dash-weight-medium); }
.dash-recorder__media { display: flex; flex-wrap: wrap; align-items: center; gap: var(--dash-space-2) var(--dash-space-3); min-inline-size: 0; }
.dash-recorder__level {
  flex: 1 1 var(--dash-space-9);
  min-inline-size: 0;
  block-size: var(--dash-space-2);
  appearance: none;
  border: 0;
  border-radius: var(--dash-radius-full);
  background: var(--dash-ui-border);
  overflow: hidden;
}
.dash-recorder__level::-webkit-meter-bar { block-size: var(--dash-space-2); border: 0; border-radius: var(--dash-radius-full); background: var(--dash-ui-border); }
.dash-recorder__level::-webkit-meter-optimum-value { background: var(--dash-ui-interactive); }
.dash-recorder__level::-moz-meter-bar { background: var(--dash-ui-interactive); }
.dash-recorder__time { flex: none; font-size: var(--dash-text-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-recorder__playback { flex: 1 1 var(--dash-space-10); min-inline-size: 0; max-inline-size: 100%; }
.dash-field__error { font-size: var(--dash-text-sm); color: var(--dash-ui-danger); font-weight: var(--dash-weight-medium); overflow-wrap: anywhere; }

/* Editable browser summaries separate the label from its value and action. */
.dash-definition-list--editable .dash-definition-list__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--dash-space-2);
  align-items: start;
}
.dash-definition-list--editable .dash-definition-list__value {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: var(--dash-space-3);
  inline-size: 100%;
  text-align: start;
}
.dash-definition-list--editable .dash-definition-list__value > :first-child {
  flex: 1 1 var(--dash-space-10);
  min-inline-size: 0;
  overflow-wrap: anywhere;
}
.dash-definition-list--editable .dash-definition-list__action {
  flex: 0 0 auto;
  margin-inline-start: auto;
  max-inline-size: 100%;
}

/* Compact controls retain the application's token-backed minimum touch target. */
.dash-app--operational .dash-button--compact, .dash-button--compact {
  padding: var(--dash-space-2) var(--dash-space-3);
  flex: 0 1 auto;
  inline-size: auto;
}
.dash-app--operational .dash-button--icon, .dash-button--icon {
  flex: none;
  min-inline-size: var(--dash-space-7);
  padding: var(--dash-space-2);
}
.dash-button--text:is(:disabled, [aria-disabled="true"]),
.dash-button--text:is(:disabled, [aria-disabled="true"]):is(:hover, :active) {
  --_bg: transparent;
  --_bd: transparent;
  --_fg: var(--dash-ui-muted);
  opacity: 1;
}
.dash-button--ghost:is(:disabled, [aria-disabled="true"]),
.dash-button--ghost:is(:disabled, [aria-disabled="true"]):is(:hover, :active) {
  --_bg: transparent;
  --_bd: var(--dash-ui-control-border);
  --_fg: var(--dash-ui-muted);
  opacity: 1;
}
.dash-app__header--emphasis .dash-button--text:is(:disabled, [aria-disabled="true"]),
.dash-app__header--emphasis .dash-button--ghost:is(:disabled, [aria-disabled="true"]) {
  --_fg: var(--dash-on-forest-muted);
}
.dash-panel--emphasis .dash-button--text:is(:disabled, [aria-disabled="true"]),
.dash-panel--emphasis .dash-button--ghost:is(:disabled, [aria-disabled="true"]) {
  --_fg: var(--dash-ui-on-featured-muted);
}
.dash-app__header--task {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dash-space-2);
  padding-block: var(--dash-space-2);
  padding-inline: max(var(--dash-space-3), env(safe-area-inset-left)) max(var(--dash-space-3), env(safe-area-inset-right));
}
.dash-app__task-title {
  flex: 1 1 var(--dash-space-8);
  min-inline-size: 0;
  margin: 0;
  font-size: var(--dash-text-base);
  line-height: var(--dash-leading-sm);
  font-weight: var(--dash-weight-semibold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Exactly one transcript scroller and an ordinary grid-row composer. */
.dash-app.dash-app--conversation > .dash-app__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
  scrollbar-gutter: auto;
}
.dash-conversation {
  --dash-conversation-min-transcript: var(--dash-space-9);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  min-block-size: 0;
  min-inline-size: 0;
  inline-size: 100%;
  max-inline-size: calc(var(--dash-space-10) * 5);
  margin-inline: auto;
  overflow: hidden;
}
.dash-conversation__transcript {
  min-block-size: 0;
  min-inline-size: 0;
  overflow: auto;
  overscroll-behavior-block: contain;
  padding: var(--dash-space-4);
  padding-inline: max(var(--dash-space-4), env(safe-area-inset-left)) max(var(--dash-space-4), env(safe-area-inset-right));
  scroll-padding-block: var(--dash-space-4);
}
.dash-composer--docked {
  padding: var(--dash-space-3) var(--dash-space-4);
  padding-inline: max(var(--dash-space-4), env(safe-area-inset-left)) max(var(--dash-space-4), env(safe-area-inset-right));
  padding-block-end: max(var(--dash-space-3), env(safe-area-inset-bottom));
  gap: var(--dash-space-2);
  border-block-start: var(--dash-border-hairline) solid var(--dash-ui-border);
  background: var(--dash-ui-canvas);
}
.dash-composer__row { display: flex; align-items: end; flex-wrap: wrap; gap: var(--dash-space-2); min-inline-size: 0; }
.dash-composer__row > :first-child { flex: 1 1 var(--dash-space-10); min-inline-size: 0; }
.dash-composer__row > .dash-button { flex: 0 0 auto; margin-inline-start: auto; }
.dash-composer .dash-composer__input { min-block-size: var(--dash-space-7); max-block-size: calc(var(--dash-space-7) * 2); resize: none; overflow-y: auto; }
.dash-composer__hint { margin: 0; color: var(--dash-ui-muted); font-size: var(--dash-text-xs); line-height: var(--dash-leading-xs); }
/* The runtime compares measured composer height plus the declared minimum
   transcript space with available height. Enlarged text can trigger this too. */
.dash-conversation[data-short-height="true"] { display: block; overflow: auto; overscroll-behavior-block: contain; scroll-padding-block: var(--dash-space-4); }
.dash-conversation[data-short-height="true"] .dash-conversation__transcript { overflow: visible; }
.dash-summary { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--dash-space-3); min-inline-size: 0; }
.dash-summary .dash-definition-list__row { padding-block: var(--dash-space-2); }
/* Whole-dialog scrolling keeps long headings and actions reachable at any size. */
.dash-sheet--flow[open] { display: block; overflow: auto; overscroll-behavior: contain; scroll-padding-block: var(--dash-space-4); }
.dash-sheet--flow > .dash-sheet__body { overflow: visible; }
.dash-sheet--flow .dash-sheet__header > :first-child { flex: 1 1 var(--dash-space-10); }
.dash-sheet--flow .dash-sheet__header, .dash-sheet--flow .dash-sheet__footer { gap: var(--dash-space-2); }
/* Calendar semantics, selection and date arithmetic remain application-owned. */
.dash-week { display: flex; gap: var(--dash-space-2); overflow-x: auto; min-inline-size: 0; padding-block: var(--dash-space-1); scroll-padding-inline: var(--dash-space-2); }
.dash-date-choice {
  display: flex;
  flex-direction: column;
  flex: 1 0 var(--dash-space-7);
  align-items: center;
  justify-content: center;
  gap: var(--dash-space-1);
  min-inline-size: var(--dash-space-7);
  min-block-size: var(--dash-space-7);
  padding: var(--dash-space-2) var(--dash-space-1);
  border: var(--dash-border-hairline) solid var(--dash-ui-control-border);
  border-radius: var(--dash-radius-sm);
  background: var(--dash-ui-surface);
  color: var(--dash-ui-ink);
  font: inherit;
  cursor: pointer;
}
@media (hover: hover) { .dash-date-choice:hover { border-color: var(--dash-ui-interactive); } }
.dash-date-choice[aria-current="date"] .dash-date-choice__day { text-decoration: underline; text-underline-offset: var(--dash-space-1); }
.dash-date-choice[aria-pressed="true"] { background: var(--dash-ui-primary); color: var(--dash-ui-on-primary); border-color: var(--dash-ui-primary); font-weight: var(--dash-weight-bold); }
.dash-date-choice:disabled { background: var(--dash-ui-canvas); color: var(--dash-ui-muted); border-color: var(--dash-ui-border); cursor: not-allowed; }
.dash-date-choice__weekday, .dash-date-choice__count { font-size: var(--dash-text-xs); line-height: var(--dash-leading-xs); }
.dash-date-choice__day { font-size: var(--dash-text-base); line-height: var(--dash-leading-base); font-variant-numeric: tabular-nums; }
.dash-calendar-viewport { max-inline-size: 100%; overflow-x: auto; padding: var(--dash-space-1); }
.dash-calendar { min-inline-size: calc((var(--dash-space-7) - var(--dash-space-1)) * 7 + var(--dash-space-1) * 6); display: grid; gap: var(--dash-space-2); }
.dash-calendar__header { display: flex; align-items: center; gap: var(--dash-space-2); }
.dash-calendar__header > :nth-child(2) { flex: 1; text-align: center; min-inline-size: 0; overflow-wrap: anywhere; font-size: var(--dash-text-base); margin: 0; }
.dash-calendar__weekdays, .dash-calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--dash-space-1); }
.dash-calendar__weekdays { text-align: center; font-size: var(--dash-text-xs); color: var(--dash-ui-muted); }
.dash-calendar__grid > .dash-date-choice { min-inline-size: 0; }

/* Server-rendered access pages: document flow, no application viewport shell. */
.dash-access { padding: var(--dash-space-6) var(--dash-space-4); overflow-wrap: anywhere; }
.dash-access > :is(header, main, footer) { inline-size: 100%; max-inline-size: calc(var(--dash-space-10) * 5); margin-inline: auto; min-inline-size: 0; }
.dash-access > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--dash-space-3); padding-block-end: var(--dash-space-4); border-block-end: var(--dash-border-hairline) solid var(--dash-ui-border); margin-block-end: var(--dash-space-6); }
.dash-access > header a { display: inline-flex; align-items: center; min-block-size: var(--dash-space-7); }
.dash-access > header > a { font-size: var(--dash-text-xl); font-weight: var(--dash-weight-bold); text-decoration: none; }
.dash-access :is(h1,h2,h3,p,ul,ol,dl,form,fieldset,details) { margin: 0; }
.dash-access main > * + *, .dash-access section > * + *, .dash-access details > * + * { margin-block-start: var(--dash-space-4); }
.dash-access :is(h1,h2,h3) { line-height: var(--dash-leading-xl); font-weight: var(--dash-weight-semibold); }
.dash-access h1 { font-size: var(--dash-text-display-sm); line-height: var(--dash-leading-display-sm); text-wrap: balance; }
.dash-access h1 + p { color: var(--dash-ui-muted); }
.dash-access :is(h2,h3) { font-size: var(--dash-text-lg); }
.dash-access section + section { margin-block-start: var(--dash-space-6); padding-block-start: var(--dash-space-6); border-block-start: var(--dash-border-hairline) solid var(--dash-ui-border); }
.dash-access form { display: grid; grid-template-columns: minmax(0,1fr); gap: var(--dash-space-3); }
.dash-access :is(label,fieldset) { display: grid; grid-template-columns: minmax(0,1fr); gap: var(--dash-space-2); min-inline-size: 0; }
.dash-access fieldset { padding: var(--dash-space-4); border: var(--dash-border-hairline) solid var(--dash-ui-border); }
.dash-access input:not([type=hidden]):not([type=checkbox]):not([type=radio]), .dash-access :is(select,textarea) { inline-size: 100%; min-inline-size: 0; min-block-size: var(--dash-space-7); padding: var(--dash-space-3); border: var(--dash-border-hairline) solid var(--dash-ui-control-border); border-radius: var(--dash-radius-md); background: var(--dash-ui-surface); color: var(--dash-ui-ink); font: inherit; }
.dash-access :is(input,select,textarea)[aria-invalid=true] { border-color: var(--dash-ui-danger); }
.dash-access :is(input,select,textarea):disabled { color: var(--dash-ui-muted); background: var(--dash-ui-canvas); cursor: not-allowed; }
.dash-access label:has(> :is([type=checkbox],[type=radio])) { display: flex; align-items: center; min-block-size: var(--dash-space-7); }
.dash-access :is([type=checkbox],[type=radio]) { accent-color: var(--dash-ui-interactive); flex-shrink: 0; }
.dash-access button:not(.dash-button) { justify-self: start; min-block-size: var(--dash-space-7); max-inline-size: 100%; padding: var(--dash-space-2) var(--dash-space-3); border: var(--dash-border-hairline) solid var(--dash-ui-control-border); border-radius: var(--dash-radius-md); background: transparent; color: var(--dash-ui-interactive); font: inherit; font-weight: var(--dash-weight-medium); overflow-wrap: anywhere; cursor: pointer; }
@media (hover: hover) { .dash-access button:not(.dash-button):hover:not(:disabled) { background: var(--dash-ui-surface); color: var(--dash-ui-ink); } }
.dash-access button:not(.dash-button):disabled { color: var(--dash-ui-muted); cursor: not-allowed; }
.dash-access .dash-button { justify-self: start; max-inline-size: 100%; line-height: var(--dash-leading-sm); text-decoration: none; }
.dash-access :is(ul,ol) { padding-inline-start: var(--dash-space-5); }
.dash-access li + li { margin-block-start: var(--dash-space-4); padding-block-start: var(--dash-space-4); border-block-start: var(--dash-border-hairline) solid var(--dash-ui-border); }
.dash-access li > form { margin-block-start: var(--dash-space-2); }
.dash-access :is(code,pre,.dash-access__meta) { overflow-wrap: anywhere; white-space: pre-wrap; min-inline-size: 0; }
.dash-access details { border-block: var(--dash-border-hairline) solid var(--dash-ui-border); padding-block: var(--dash-space-2); }
.dash-access summary { min-block-size: var(--dash-space-7); padding-block: var(--dash-space-3); font-weight: var(--dash-weight-medium); cursor: pointer; }
.dash-access__actions { display: flex; flex-wrap: wrap; gap: var(--dash-space-2); align-items: center; }
.dash-access__meta, .dash-access small { color: var(--dash-ui-muted); font-size: var(--dash-text-sm); }
.dash-access > footer { margin-block-start: var(--dash-space-6); }

/* Browser flow compositions: native semantics and content stay with the app. */
.dash-app.dash-app--cover {
  --_dash-strong: var(--dash-on-forest);
  --_dash-secondary: var(--dash-on-forest-muted);
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "main";
  background: var(--dash-color-forest);
  color: var(--dash-on-forest);
}
.dash-app--cover > .dash-app__main { grid-area: main; padding: 0; }
.dash-app--cover :focus-visible { outline-color: var(--dash-on-forest); }
.dash-app--cover .dash-button--ghost, .dash-app--cover .dash-button--text { --_bg: transparent; --_fg: var(--dash-on-forest); --_bd: var(--dash-on-forest-muted); }
.dash-app--cover .dash-button--text { --_bd: transparent; }
@media (hover: hover) { .dash-app--cover .dash-button--ghost:hover:not(:disabled), .dash-app--cover .dash-button--text:hover:not(:disabled) { --_bg: var(--dash-color-active); --_fg: var(--dash-on-active); } }
.dash-metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--dash-space-9)), 1fr)); gap: var(--dash-space-3); min-inline-size: 0; }
.dash-field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, calc(var(--dash-space-10) + var(--dash-space-6))), 1fr)); gap: var(--dash-space-3); min-inline-size: 0; }
.dash-metric-grid > *, .dash-field-grid > * { min-inline-size: 0; max-inline-size: 100%; overflow-wrap: anywhere; }
.dash-disclosure--quiet > .dash-disclosure__summary { font-size: var(--dash-text-sm); font-weight: var(--dash-weight-medium); color: var(--dash-ui-interactive); }
.dash-disclosure--quiet > .dash-disclosure__body { font-size: var(--dash-text-sm); line-height: var(--dash-leading-sm); color: var(--dash-ui-muted); }
.dash-progress { display: block; appearance: none; inline-size: 100%; block-size: var(--dash-space-2); border: 0; border-radius: var(--dash-radius-full); background: var(--dash-ui-border); color: var(--dash-ui-interactive); overflow: hidden; }
.dash-progress::-webkit-progress-bar { background: var(--dash-ui-border); }
.dash-progress::-webkit-progress-value { background: var(--dash-ui-interactive); }
.dash-progress::-moz-progress-bar { background: var(--dash-ui-interactive); }
.dash-sequence--compact.dash-sequence--horizontal { gap: var(--dash-space-3); }
.dash-sequence--compact.dash-sequence--horizontal::before { top: calc(var(--dash-space-3) / 2); left: calc(var(--dash-space-3) / 2); right: calc(var(--dash-space-3) / 2); background: var(--dash-ui-border); }
.dash-sequence--compact .dash-sequence__step { gap: var(--dash-space-2); }
.dash-sequence--compact .dash-sequence__marker { inline-size: var(--dash-space-3); block-size: var(--dash-space-3); border-color: var(--dash-ui-control-border); background: var(--dash-ui-surface); box-shadow: none; }
.dash-sequence--compact .dash-sequence__step--current .dash-sequence__marker { background: var(--dash-ui-interactive); border-color: var(--dash-ui-interactive); }
.dash-sequence--compact .dash-sequence__step--current .dash-sequence__marker::after { content: none; }
.dash-sequence--compact .dash-sequence__label { font-size: var(--dash-text-xs); line-height: var(--dash-leading-xs); font-weight: var(--dash-weight-medium); letter-spacing: var(--dash-tracking-normal); overflow-wrap: anywhere; }
.dash-sequence--compact .dash-sequence__step--current .dash-sequence__label { font-weight: var(--dash-weight-bold); text-decoration: underline; text-underline-offset: var(--dash-space-1); }
.dash-app-nav__item--locked { color: var(--dash-ui-muted); }
.dash-app-nav__lock { display: inline-flex; align-items: center; gap: var(--dash-space-1); }
.dash-app-nav__lock .dash-icon { inline-size: var(--dash-icon-size-sm); block-size: var(--dash-icon-size-sm); }
