/* GENERATED by npm run build from design-system/ (foundation.css and component.css files) and designup/runtime/specimen.css; do not edit */

/* ---- design-system/foundations/fdn-color/foundation.css ---- */
/* Color foundation. Setting: theme (light | dark | contrast). Default: light.
   Every theme block defines every token (parity). Values are hex so contrast can be computed.
   Raw colour values live only here; components and screens use var(--ds-color-*).
   The palette is Pipeup's own, shared with the website and the library: white paper with a warm grey, dark grey ink,
   violet for the one action, and quiet status tones. Dark is Pipeup's dark look. */

.ds-root,
.ds-root[data-ds-theme="light"] {
  color-scheme: light;
  /* surfaces: Pipeup's paper */
  --ds-color-surface-default: #FFFFFF;
  --ds-color-surface-raised: #FFFFFF;
  --ds-color-surface-sunken: #F7F6F3;
  --ds-color-surface-canvas: #F1EFE8;
  --ds-color-surface-strong: #2F3437;
  --ds-color-neutral-surface: #ECEBE6;
  /* text: Pipeup's ink */
  --ds-color-text-default: #2F3437;
  --ds-color-text-muted: #5F5E5A;
  --ds-color-text-on-accent: #FFFFFF;
  --ds-color-text-on-strong: #FFFFFF;
  --ds-color-text-on-strong-muted: #C4C2B9;
  /* lines */
  --ds-color-border-default: #E5E3DA;
  --ds-color-border-strong: #2F3437;
  /* action: Pipeup's violet */
  --ds-color-accent: #534AB7;
  --ds-color-accent-hover: #463EA3;
  --ds-color-accent-pressed: #3A3390;
  --ds-color-focus-ring: #534AB7;
  --ds-color-accent-surface: #ECE9FB;
  /* the AI ring: decoration only, never text */
  --ds-color-ai-1: #534AB7;
  --ds-color-ai-2: #1264A3;
  --ds-color-ai-3: #2E7D4F;
  --ds-color-ai-4: #9A6A12;
  --ds-color-ai-5: #8F5FD6;
  /* window controls, for a drawn browser window */
  --ds-color-window-close: #FF5F57;
  --ds-color-window-minimise: #FEBC2E;
  --ds-color-window-zoom: #28C840;
  /* status: quiet tones, each beside a word */
  --ds-color-neutral-mark: #8F8D84;
  --ds-color-status-info: #1B4F7A;
  --ds-color-status-info-surface: #EAF2F9;
  --ds-color-status-info-mark: #1264A3;
  --ds-color-status-success: #2A5C3B;
  --ds-color-status-success-surface: #EAF4EC;
  --ds-color-status-success-mark: #2E7D4F;
  --ds-color-status-warning: #6E4A0A;
  --ds-color-status-warning-surface: #FBF3DB;
  --ds-color-status-warning-mark: #B9800F;
  --ds-color-status-danger: #8A2E22;
  --ds-color-status-danger-surface: #FBEBE8;
  --ds-color-status-danger-mark: #B4432F;
}

.ds-root[data-ds-theme="dark"] {
  color-scheme: dark;
  /* surfaces: Pipeup's dark look */
  --ds-color-surface-default: #1B1B19;
  --ds-color-surface-raised: #22221F;
  --ds-color-surface-sunken: #161614;
  --ds-color-surface-canvas: #111110;
  --ds-color-surface-strong: #ECEBE6;
  --ds-color-neutral-surface: #2C2C29;
  /* text */
  --ds-color-text-default: #ECEBE6;
  --ds-color-text-muted: #B4B2A9;
  --ds-color-text-on-accent: #1B1B19;
  --ds-color-text-on-strong: #1B1B19;
  --ds-color-text-on-strong-muted: #5F5E5A;
  /* lines */
  --ds-color-border-default: #3A3936;
  --ds-color-border-strong: #ECEBE6;
  /* action: the violet, lifted for dark */
  --ds-color-accent: #9A92EE;
  --ds-color-accent-hover: #ACA5F3;
  --ds-color-accent-pressed: #8A82E0;
  --ds-color-focus-ring: #9A92EE;
  --ds-color-accent-surface: #2B2840;
  /* the AI ring */
  --ds-color-ai-1: #9A92EE;
  --ds-color-ai-2: #6FB3E6;
  --ds-color-ai-3: #6FC394;
  --ds-color-ai-4: #D9A94A;
  --ds-color-ai-5: #B9A4F0;
  /* window controls */
  --ds-color-window-close: #FF5F57;
  --ds-color-window-minimise: #FEBC2E;
  --ds-color-window-zoom: #28C840;
  /* status */
  --ds-color-neutral-mark: #9A9892;
  --ds-color-status-info: #9CCBF0;
  --ds-color-status-info-surface: #1A2A38;
  --ds-color-status-info-mark: #6FB3E6;
  --ds-color-status-success: #9FD9B3;
  --ds-color-status-success-surface: #1B2E22;
  --ds-color-status-success-mark: #6FC394;
  --ds-color-status-warning: #E9C877;
  --ds-color-status-warning-surface: #332A14;
  --ds-color-status-warning-mark: #D9A94A;
  --ds-color-status-danger: #F0A08E;
  --ds-color-status-danger-surface: #3A1F1A;
  --ds-color-status-danger-mark: #E8826F;
}

.ds-root[data-ds-theme="contrast"] {
  color-scheme: light;
  /* surfaces */
  --ds-color-surface-default: #FFFFFF;
  --ds-color-surface-raised: #FFFFFF;
  --ds-color-surface-sunken: #F2F2F2;
  --ds-color-surface-canvas: #E6E6E6;
  --ds-color-surface-strong: #000000;
  --ds-color-neutral-surface: #EBEBEB;
  /* text */
  --ds-color-text-default: #000000;
  --ds-color-text-muted: #2E2E33;
  --ds-color-text-on-accent: #FFFFFF;
  --ds-color-text-on-strong: #FFFFFF;
  --ds-color-text-on-strong-muted: #D6D6D6;
  /* lines */
  --ds-color-border-default: #6B6B6B;
  --ds-color-border-strong: #000000;
  /* action */
  --ds-color-accent: #3A3390;
  --ds-color-accent-hover: #2E2873;
  --ds-color-accent-pressed: #231E59;
  --ds-color-focus-ring: #0038C7;
  --ds-color-accent-surface: #E3E0F7;
  /* the AI ring */
  --ds-color-ai-1: #3A3390;
  --ds-color-ai-2: #0038C7;
  --ds-color-ai-3: #064F22;
  --ds-color-ai-4: #663000;
  --ds-color-ai-5: #3A3390;
  /* window controls */
  --ds-color-window-close: #C62828;
  --ds-color-window-minimise: #9A6A12;
  --ds-color-window-zoom: #2E7D32;
  /* status */
  --ds-color-neutral-mark: #4D4D4D;
  --ds-color-status-info: #0A3594;
  --ds-color-status-info-surface: #EEF3FF;
  --ds-color-status-info-mark: #0A3594;
  --ds-color-status-success: #064F22;
  --ds-color-status-success-surface: #ECF7F0;
  --ds-color-status-success-mark: #064F22;
  --ds-color-status-warning: #663000;
  --ds-color-status-warning-surface: #FFF3E3;
  --ds-color-status-warning-mark: #663000;
  --ds-color-status-danger: #8A1600;
  --ds-color-status-danger-surface: #FFEFEA;
  --ds-color-status-danger-mark: #8A1600;
}

/* ---- design-system/foundations/fdn-typography/foundation.css ---- */
/* Typography foundation. No setting. Print type: an old-style serif for everything, a typewriter face for code and meta.
   Also the root of every design island: a scoped reset, then font, colour and background from tokens.
   Element styles and the text classes below apply only inside the design root. */

.ds-root {
  /* families */
  --ds-font-family-base: "Geist", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --ds-font-family-mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, monospace;
  /* size scale: interface sizes, then display sizes */
  --ds-text-size-xs: 13px;
  --ds-text-size-sm: 15px;
  --ds-text-size-md: 16px;
  --ds-text-size-lg: 19px;
  --ds-text-size-xl: 23px;
  --ds-text-size-2xl: 34px;
  --ds-text-size-3xl: 48px;
  --ds-text-size-4xl: 64px;
  --ds-text-size-5xl: 84px;
  /* weights */
  --ds-text-weight-regular: 400;
  --ds-text-weight-medium: 500;
  --ds-text-weight-strong: 700;
  /* leading */
  --ds-text-leading-display: 1.06;
  --ds-text-leading-tight: 1.25;
  --ds-text-leading-body: 1.55;
  /* tracking */
  --ds-text-tracking-display: -0.015em;
  --ds-text-tracking-tight: -0.005em;
  --ds-text-tracking-normal: 0em;
  --ds-text-tracking-caps: 0.12em;

  /* the island itself: inherit nothing from the page around it */
  font-family: var(--ds-font-family-base);
  font-size: var(--ds-text-size-md);
  font-weight: var(--ds-text-weight-regular);
  font-style: normal;
  font-variant: normal;
  line-height: var(--ds-text-leading-body);
  letter-spacing: var(--ds-text-tracking-normal);
  word-spacing: normal;
  text-align: start;
  text-indent: 0;
  text-transform: none;
  text-decoration: none;
  white-space: normal;
  color: var(--ds-color-text-default);
  background-color: var(--ds-color-surface-default);
  accent-color: var(--ds-color-accent);
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* scoped reset */
.ds-root *,
.ds-root *::before,
.ds-root *::after {
  box-sizing: border-box;
  margin: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

.ds-root [hidden] {
  display: none !important;
}

/* element styles */
.ds-root h1 {
  font-size: var(--ds-text-size-2xl);
  font-weight: var(--ds-text-weight-strong);
  line-height: var(--ds-text-leading-tight);
  letter-spacing: var(--ds-text-tracking-tight);
  text-wrap: balance;
}

.ds-root h2 {
  font-size: var(--ds-text-size-xl);
  font-weight: var(--ds-text-weight-strong);
  line-height: var(--ds-text-leading-tight);
  letter-spacing: var(--ds-text-tracking-tight);
  text-wrap: balance;
}

.ds-root h3 {
  font-size: var(--ds-text-size-lg);
  font-weight: var(--ds-text-weight-strong);
  line-height: var(--ds-text-leading-tight);
  text-wrap: balance;
}

.ds-root p {
  line-height: var(--ds-text-leading-body);
}

.ds-root small {
  font-size: var(--ds-text-size-xs);
}

.ds-root strong,
.ds-root b,
.ds-root th {
  font-weight: var(--ds-text-weight-strong);
}

.ds-root em,
.ds-root i {
  font-style: italic;
}

.ds-root a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--ds-color-border-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color var(--ds-motion-quick) var(--ds-motion-ease);
}

.ds-root a:hover {
  text-decoration-color: currentColor;
}

.ds-root ul,
.ds-root ol {
  padding-inline-start: var(--ds-space-5);
}

.ds-root table {
  border-collapse: collapse;
  border-spacing: 0;
}

.ds-root th {
  text-align: start;
}

.ds-root img {
  max-width: 100%;
}

.ds-root ::placeholder {
  color: var(--ds-color-text-muted);
  opacity: 1;
}

.ds-root :focus-visible {
  outline: var(--ds-focus-width, 2px) solid var(--ds-color-focus-ring);
  outline-offset: var(--ds-focus-offset, 2px);
}

/* text classes: interface */
.ds-root .ds-text-caption {
  font-size: var(--ds-text-size-xs);
  line-height: var(--ds-text-leading-tight);
  color: var(--ds-color-text-muted);
}

.ds-root .ds-text-body {
  font-size: var(--ds-text-size-lg);
  line-height: var(--ds-text-leading-body);
  text-wrap: pretty;
}

.ds-root .ds-text-lede {
  font-size: var(--ds-text-size-xl);
  font-weight: var(--ds-text-weight-regular);
  line-height: 1.5;
  color: var(--ds-color-text-muted);
  text-wrap: pretty;
}

.ds-root .ds-text-title {
  font-size: var(--ds-text-size-xl);
  font-weight: var(--ds-text-weight-strong);
  line-height: var(--ds-text-leading-tight);
  letter-spacing: var(--ds-text-tracking-tight);
  text-wrap: balance;
}

.ds-root .ds-text-eyebrow {
  font-size: var(--ds-text-size-xs);
  font-weight: var(--ds-text-weight-strong);
  line-height: var(--ds-text-leading-tight);
  letter-spacing: var(--ds-text-tracking-caps);
  text-transform: uppercase;
  color: var(--ds-color-text-muted);
}

/* text classes: display (page titles and marketing headlines) */
.ds-root .ds-text-display,
.ds-root .ds-text-display-md,
.ds-root .ds-text-display-lg,
.ds-root .ds-text-display-xl {
  font-weight: var(--ds-text-weight-strong);
  text-wrap: balance;
}

.ds-root .ds-text-display {
  font-size: var(--ds-text-size-2xl);
  line-height: 1.15;
  letter-spacing: var(--ds-text-tracking-tight);
}

.ds-root .ds-text-display-md {
  font-size: var(--ds-text-size-3xl);
  line-height: 1.1;
  letter-spacing: var(--ds-text-tracking-display);
}

.ds-root .ds-text-display-lg {
  font-size: var(--ds-text-size-4xl);
  line-height: var(--ds-text-leading-display);
  letter-spacing: var(--ds-text-tracking-display);
}

.ds-root .ds-text-display-xl {
  font-size: var(--ds-text-size-5xl);
  line-height: var(--ds-text-leading-display);
  letter-spacing: var(--ds-text-tracking-display);
}

/* text helpers */
.ds-root .ds-text-muted {
  color: var(--ds-color-text-muted);
}

.ds-root .ds-text-strong {
  font-weight: var(--ds-text-weight-strong);
}

.ds-root .ds-text-mono {
  font-family: var(--ds-font-family-mono);
  font-size: 0.93em;
  letter-spacing: var(--ds-text-tracking-normal);
}

.ds-root .ds-text-center {
  text-align: center;
}

/* display sizes step down when the screen they sit in is narrow (see fdn-layout: the screen container) */
@container ds-screen (max-width: 720px) {
  .ds-root .ds-text-display-xl,
  .ds-root .ds-text-display-lg {
    font-size: var(--ds-text-size-3xl);
    line-height: 1.1;
  }

  .ds-root .ds-text-display-md {
    font-size: var(--ds-text-size-2xl);
    line-height: 1.15;
    letter-spacing: var(--ds-text-tracking-tight);
  }

  .ds-root .ds-text-lede {
    font-size: var(--ds-text-size-lg);
  }
}

/* ---- design-system/foundations/fdn-icons/foundation.css ---- */
/* Icons foundation. Setting: icons (outline | solid). Default: outline.
   Every preset defines every token (parity). Glyphs live in outline.svg and solid.svg under the same names;
   the page shows the set named by the design root's icons setting. Declares the ds-icon foundation class.
   The sets are Phosphor Icons (MIT, LICENSE-phosphor.txt): filled shapes that set fill="currentColor" stroke="none"
   themselves, so the stroke and fill below apply only to a stroked glyph such as the logo. */

.ds-root,
.ds-root[data-ds-icons="outline"] {
  --ds-icon-size: 18px;
  --ds-icon-size-sm: 16px;
  --ds-icon-size-lg: 24px;
  --ds-icon-stroke: 1.75;
  --ds-icon-fill: none;
}

.ds-root[data-ds-icons="solid"] {
  --ds-icon-size: 18px;
  --ds-icon-size-sm: 16px;
  --ds-icon-size-lg: 24px;
  --ds-icon-stroke: 2;
  --ds-icon-fill: currentColor;
}

.ds-root .ds-icon {
  display: inline-block;
  flex: none;
  width: var(--ds-icon-size);
  height: var(--ds-icon-size);
  vertical-align: -0.2em;
  color: inherit;
  fill: var(--ds-icon-fill);
  stroke: currentColor;
  stroke-width: var(--ds-icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.ds-root .ds-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ds-root .ds-icon--sm {
  width: var(--ds-icon-size-sm);
  height: var(--ds-icon-size-sm);
}

.ds-root .ds-icon--lg {
  width: var(--ds-icon-size-lg);
  height: var(--ds-icon-size-lg);
}

/* ---- design-system/foundations/fdn-motion/foundation.css ---- */
/* Motion foundation. Setting: motion (still | subtle | lively). Default: subtle.
   Every preset defines every token (parity). Reduced motion forces the still values. */

/* --ds-motion-turn: the angle a slow decorative turn animates (the AI ring). Registered as an angle so it can be
   animated; every preset starts it at 0deg, and only the ring changes it, over --ds-motion-ambient.
   --ds-motion-ease-steady: the constant timing of a slow, endless decoration (the AI ring, a spinner). It is linear in
   every preset: still and reduced motion already stop that motion through a 0 duration (--ds-motion-ambient: 0s). */
@property --ds-motion-turn {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.ds-root,
.ds-root[data-ds-motion="subtle"] {
  --ds-motion-quick: 120ms;
  --ds-motion-settle: 180ms;
  --ds-motion-ease: cubic-bezier(0.2, 0, 0, 1);
  --ds-motion-lift: -2px;
  --ds-motion-ambient: 9s;
  --ds-motion-ease-steady: linear;
  --ds-motion-turn: 0deg;
}

.ds-root[data-ds-motion="still"] {
  --ds-motion-quick: 0ms;
  --ds-motion-settle: 0ms;
  --ds-motion-ease: linear;
  --ds-motion-lift: 0px;
  --ds-motion-ambient: 0s;
  --ds-motion-ease-steady: linear;
  --ds-motion-turn: 0deg;
}

.ds-root[data-ds-motion="lively"] {
  --ds-motion-quick: 160ms;
  --ds-motion-settle: 320ms;
  --ds-motion-ease: cubic-bezier(0.34, 1.5, 0.64, 1);
  --ds-motion-lift: -4px;
  --ds-motion-ambient: 6s;
  --ds-motion-ease-steady: linear;
  --ds-motion-turn: 0deg;
}

/* Wins over any chosen preset, so a system request for reduced motion is honoured even without script. */
@media (prefers-reduced-motion: reduce) {
  .ds-root,
  .ds-root[data-ds-motion] {
    --ds-motion-quick: 0ms;
    --ds-motion-settle: 0ms;
    --ds-motion-ease: linear;
    --ds-motion-lift: 0px;
    --ds-motion-ambient: 0s;
  }
}

/* ---- design-system/foundations/fdn-density/foundation.css ---- */
/* Density foundation. Setting: density (compact | regular | roomy). Default: regular.
   Every preset defines every token (parity). Spacing steps run 1 (smallest) to 8 (largest). */

.ds-root,
.ds-root[data-ds-density="regular"] {
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 24px;
  --ds-space-6: 32px;
  --ds-space-7: 48px;
  --ds-space-8: 64px;
  --ds-control-height: 36px;
  --ds-target-min: 32px;
  --ds-target-touch: 44px;
}

.ds-root[data-ds-density="compact"] {
  --ds-space-1: 3px;
  --ds-space-2: 6px;
  --ds-space-3: 8px;
  --ds-space-4: 12px;
  --ds-space-5: 16px;
  --ds-space-6: 24px;
  --ds-space-7: 32px;
  --ds-space-8: 48px;
  --ds-control-height: 30px;
  --ds-target-min: 24px;
  --ds-target-touch: 44px;
}

.ds-root[data-ds-density="roomy"] {
  --ds-space-1: 5px;
  --ds-space-2: 10px;
  --ds-space-3: 16px;
  --ds-space-4: 20px;
  --ds-space-5: 32px;
  --ds-space-6: 40px;
  --ds-space-7: 56px;
  --ds-space-8: 80px;
  --ds-control-height: 44px;
  --ds-target-min: 44px;
  --ds-target-touch: 48px;
}

/* ---- design-system/foundations/fdn-radius/foundation.css ---- */
/* Radius foundation. Setting: radius (square | soft | round). Default: soft.
   Every preset defines every token (parity). Soft is Pipeup's own: 8 px controls, 14 px surfaces, round pills. */

.ds-root[data-ds-radius="square"] {
  --ds-radius-control: 1px;
  --ds-radius-surface: 2px;
  --ds-radius-pill: 2px;
  --ds-radius-avatar: 22%;
}

.ds-root,
.ds-root[data-ds-radius="soft"] {
  --ds-radius-control: 8px;
  --ds-radius-surface: 14px;
  --ds-radius-pill: 999px;
  --ds-radius-avatar: 30%;
}

.ds-root[data-ds-radius="round"] {
  --ds-radius-control: 999px;
  --ds-radius-surface: 22px;
  --ds-radius-pill: 999px;
  --ds-radius-avatar: 34%;
}

/* ---- design-system/foundations/fdn-layout/foundation.css ---- */
/* Layout foundation. No setting.
   The page grid, section rhythm, stacks and the screen root, plus the shared sizes, lines and depth
   that components draw with. Declares the layout foundation classes used directly in screens. */

.ds-root {
  /* page grid */
  --ds-layout-max-width: 1440px;
  --ds-layout-columns: 12;
  --ds-layout-gutter: 24px;
  --ds-layout-margin: 32px;
  --ds-layout-margin-narrow: 20px;
  --ds-layout-measure: 900px;
  --ds-layout-sidebar: 232px;
  --ds-layout-panel: 352px;
  /* section rhythm */
  --ds-layout-section: 64px;
  --ds-layout-section-lg: 96px;
  --ds-layout-section-narrow: 40px;
  /* lines */
  --ds-border-width: 1px;
  --ds-border-width-strong: 2px;
  --ds-focus-width: 2px;
  --ds-focus-offset: 2px;
  /* depth */
  --ds-shadow-raised: 0 1px 2px rgba(47, 52, 55, 0.08), 0 4px 12px rgba(47, 52, 55, 0.06);
  --ds-shadow-lifted: 0 8px 28px rgba(47, 52, 55, 0.14);
  --ds-shadow-overlay: 0 12px 36px rgba(47, 52, 55, 0.18);
  --ds-shadow-frame: 0 24px 60px rgba(47, 52, 55, 0.16);
  --ds-opacity-disabled: 0.45;
  --ds-opacity-glow: 0.5;
  --ds-blur-glow: 10px;
  /* sizes */
  --ds-size-dot: 8px;
  --ds-size-avatar-sm: 24px;
  --ds-size-avatar-md: 32px;
  --ds-size-avatar-lg: 56px;
  --ds-size-portrait: 120px;
}

/* stacks: one direction, one gap */
.ds-root .ds-stack {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-4);
  min-width: 0;
}

/* the root of every screen: fills its frame, paints the page, and is the size container for narrow rules */
.ds-root .ds-stack--screen {
  width: 100%;
  min-height: 100%;
  gap: 0;
  color: var(--ds-color-text-default);
  background-color: var(--ds-color-surface-default);
  container-type: inline-size;
  container-name: ds-screen;
}

.ds-root .ds-stack--horizontal {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.ds-root .ds-stack--tight {
  gap: var(--ds-space-2);
}

.ds-root .ds-stack--loose {
  gap: var(--ds-space-6);
}

.ds-root .ds-stack--start {
  align-items: flex-start;
}

.ds-root .ds-stack--center {
  align-items: center;
}

.ds-root .ds-stack--between {
  justify-content: space-between;
}

.ds-root .ds-stack--end {
  justify-content: flex-end;
}

/* fill: takes the height left in the screen root and centres its content (one-screen pages) */
.ds-root .ds-stack--fill {
  flex: 1 0 auto;
  justify-content: center;
}

/* split: a fixed side column and a fluid main column (app screens with a sidebar) */
.ds-root .ds-split {
  display: grid;
  grid-template-columns: var(--ds-layout-sidebar) minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 100%;
}

.ds-root .ds-split > * {
  min-width: 0;
}

/* split, end: a fluid main column and a fixed panel at the end (a comments panel beside a page) */
.ds-root .ds-split--end {
  grid-template-columns: minmax(0, 1fr) var(--ds-layout-panel);
}

/* container: centres content at the page width with side margins */
.ds-root .ds-container {
  width: 100%;
  max-width: calc(var(--ds-layout-max-width) + 2 * var(--ds-layout-margin));
  margin-inline: auto;
  padding-inline: var(--ds-layout-margin);
}

.ds-root .ds-container--narrow {
  max-width: calc(var(--ds-layout-measure) + 2 * var(--ds-layout-margin));
}

/* sections: the vertical rhythm of a page */
.ds-root .ds-section {
  padding-block: var(--ds-layout-section);
}

.ds-root .ds-section--lg {
  padding-block: var(--ds-layout-section-lg);
}

.ds-root .ds-section--tight {
  padding-block: var(--ds-space-7);
}

.ds-root .ds-section--sunken {
  background-color: var(--ds-color-surface-sunken);
}

.ds-root .ds-section--raised {
  background-color: var(--ds-color-surface-raised);
}

.ds-root .ds-section--divided {
  border-top: var(--ds-border-width) solid var(--ds-color-border-default);
}

/* grid: twelve columns; children span the full row unless given a span */
.ds-root .ds-grid {
  display: grid;
  grid-template-columns: repeat(var(--ds-layout-columns), minmax(0, 1fr));
  gap: var(--ds-layout-gutter);
}

.ds-root .ds-grid > * {
  grid-column: 1 / -1;
  min-width: 0;
}

.ds-root .ds-grid--center {
  align-items: center;
}

.ds-root .ds-span-1 { grid-column: span 1; }
.ds-root .ds-span-2 { grid-column: span 2; }
.ds-root .ds-span-3 { grid-column: span 3; }
.ds-root .ds-span-4 { grid-column: span 4; }
.ds-root .ds-span-5 { grid-column: span 5; }
.ds-root .ds-span-6 { grid-column: span 6; }
.ds-root .ds-span-7 { grid-column: span 7; }
.ds-root .ds-span-8 { grid-column: span 8; }
.ds-root .ds-span-9 { grid-column: span 9; }
.ds-root .ds-span-10 { grid-column: span 10; }
.ds-root .ds-span-11 { grid-column: span 11; }
.ds-root .ds-span-12 { grid-column: 1 / -1; }

/* helpers */
.ds-root .ds-measure {
  max-width: var(--ds-layout-measure);
}

.ds-root .ds-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* medium screens (721 to 960 px wide): four-up rows become two-up */
@container ds-screen (min-width: 721px) and (max-width: 960px) {
  .ds-root .ds-span-1,
  .ds-root .ds-span-2,
  .ds-root .ds-span-3 {
    grid-column: span 6;
  }
}

/* narrow screens (720 px wide or less): one column, tighter rhythm and margins */
@container ds-screen (max-width: 720px) {
  .ds-root .ds-section,
  .ds-root .ds-section--lg {
    padding-block: var(--ds-layout-section-narrow);
  }

  .ds-root .ds-section--tight {
    padding-block: var(--ds-space-6);
  }

  .ds-root .ds-container {
    padding-inline: var(--ds-layout-margin-narrow);
  }

  .ds-root .ds-grid > * {
    grid-column: 1 / -1;
  }

  .ds-root .ds-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* on a narrow screen an end split shows only its panel: the page waits beneath it */
@container ds-screen (max-width: 720px) {
  .ds-root .ds-split--end {
    grid-template-columns: minmax(0, 1fr);
  }

  .ds-root .ds-split--end > :first-child {
    display: none;
  }
}

/* ---- designup/runtime/specimen.css ---- */
/* Designup runtime helpers for design islands: device frames and the auto-generated foundation specimens.
   The build places this file in site/assets/ds.css after the foundations and before the components.
   - Every selector starts with .ds-root, so nothing here can touch the shell.
   - Colours, type, spacing, radius and motion come only from design-system tokens (var(--ds-*)), so every
     preset in Design settings restyles these displays too. Raw values appear only for frame sizes, hairline
     widths and the fixed geometry of demo shapes (swatch, dot and tile sizes).
   - Class names use the reserved ds-frame and ds-spec- prefixes. They are runtime classes for generated pages,
     not foundation classes: mocks and authored specimens never use them.
   - Helper custom properties are set inline by the build on one element: --ds-spec-color, --ds-spec-fg,
     --ds-spec-bg, --ds-spec-size, --ds-spec-weight, --ds-spec-leading, --ds-spec-length, --ds-spec-radius,
     --ds-spec-duration. Their values are always var(--ds-...) references, never raw values. */

.ds-root [hidden] {display:none!important}
.ds-root .ds-icon>svg {display:block;width:100%;height:100%;overflow:visible}

/* ---------- device frames (keep sizes in step with designup/runtime/shell.css [data-frame]) ---------- */
.ds-root.ds-frame {position:relative;display:block;box-sizing:border-box;width:var(--ds-frame-w);height:var(--ds-frame-h);max-width:none;margin:0;overflow:auto;scrollbar-width:thin}
/* a screen that scrolls hands the wheel on to the page at its end, so the guidance below is reached without leaving the frame */
.ds-root.ds-frame--phone {--ds-frame-w:390px;--ds-frame-h:760px}
.ds-root.ds-frame--tablet {--ds-frame-w:820px;--ds-frame-h:1180px}
.ds-root.ds-frame--desktop {--ds-frame-w:1440px;--ds-frame-h:900px}
.ds-root.ds-frame>[data-state] {display:flex;flex-direction:column;min-height:100%}
.ds-root.ds-frame>[data-state]>.ds-stack--screen {flex:1 0 auto}
.ds-root.ds-frame[inert] {overflow:hidden}

/* ---------- specimen island: the live design on the specimen canvas ---------- */
.ds-root.ds-spec {box-sizing:border-box;padding:var(--ds-space-6);border-radius:var(--ds-radius-surface)}
.ds-root.ds-spec [data-variant] {display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--ds-space-5)}
/* A whole screen in a specimen: laid out at the desktop frame width and scaled to the canvas by the runtime
   (app.js fitSpecScreen), so its container queries see a desktop at any window size. */
.ds-root.ds-spec [data-variant]:has(>.ds-stack--screen) {display:block;overflow:hidden}
.ds-root.ds-spec [data-variant]>.ds-stack--screen {box-sizing:border-box;width:1440px;transform-origin:0 0}
.ds-root.ds-spec [data-variant]>[data-state] {display:flex;flex:1 1 auto;flex-direction:column;align-items:flex-start;gap:var(--ds-space-2);min-width:0}
/* "All" (a Basic's overview): the variants flow side by side, each under its name; a lone state needs no label. */
.ds-root.ds-spec[data-spec-all] {display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--ds-space-6) var(--ds-space-7)}
.ds-root.ds-spec[data-spec-all]>:not([data-variant]) {flex-basis:100%}
.ds-root.ds-spec[data-spec-all] [data-variant]>[data-state]:only-child::before {content:none}
.ds-root.ds-spec[data-spec-all] [data-variant]::before {content:attr(data-variant);flex-basis:100%;font-family:var(--ds-font-family-base);font-size:var(--ds-text-size-sm);font-weight:var(--ds-text-weight-strong);line-height:var(--ds-text-leading-tight);color:var(--ds-color-text-default)}
.ds-root.ds-spec [data-variant]>[data-state]::before {content:attr(data-state);font-family:var(--ds-font-family-base);font-size:var(--ds-text-size-xs);font-weight:var(--ds-text-weight-regular);line-height:var(--ds-text-leading-tight);color:var(--ds-color-text-muted)}
.ds-root.ds-spec [data-sample] {display:grid;grid-template-columns:max-content minmax(0,1fr);gap:var(--ds-space-1) var(--ds-space-4);margin:var(--ds-space-5) 0 0;padding-top:var(--ds-space-4);border-top:1px solid var(--ds-color-border-default);font-size:var(--ds-text-size-sm);color:var(--ds-color-text-default)}
.ds-root.ds-spec [data-sample] dt {color:var(--ds-color-text-muted)}
.ds-root.ds-spec [data-sample] dd {margin:0}
.ds-root.ds-spec [data-hint] {margin:var(--ds-space-4) 0 0;font-size:var(--ds-text-size-sm);color:var(--ds-color-text-muted)}
/* One line; the whole hint shows in the shell's tooltip on hover and focus (FR-195). */
.ds-root.ds-spec [data-hint][data-tip] {overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:help}
.ds-root.ds-spec [data-table-alt] {margin-top:var(--ds-space-4)}

/* ---------- shared pieces of the auto specimens ---------- */
.ds-root .ds-spec-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(132px,100%),1fr));gap:var(--ds-space-4)}
.ds-root .ds-spec-stack {display:flex;flex-direction:column;align-items:flex-start;gap:var(--ds-space-5)}
.ds-root .ds-spec-stack>:is(div,section,dl,table,.ds-spec-motion) {align-self:stretch}
.ds-root .ds-spec-label {display:block;font-family:var(--ds-font-family-base);font-size:var(--ds-text-size-xs);line-height:var(--ds-text-leading-tight);color:var(--ds-color-text-muted)}
.ds-root .ds-spec-name {display:block;font-family:var(--ds-font-family-base);font-size:var(--ds-text-size-sm);font-weight:var(--ds-text-weight-strong);color:var(--ds-color-text-default);overflow-wrap:anywhere}
.ds-root .ds-spec-value {display:block;font-family:var(--ds-font-family-mono);font-size:var(--ds-text-size-xs);color:var(--ds-color-text-muted);overflow-wrap:anywhere}
.ds-root .ds-spec-group {margin:0 0 var(--ds-space-3);font-size:var(--ds-text-size-sm);font-weight:var(--ds-text-weight-strong);color:var(--ds-color-text-default)}

/* Color: swatches with live values; contrast pairs as text on its surface */
.ds-root .ds-spec-swatch {display:flex;flex-direction:column;gap:var(--ds-space-1);min-width:0}
.ds-root .ds-spec-swatch__chip {display:block;height:64px;border-radius:var(--ds-radius-control);background:var(--ds-spec-color);box-shadow:inset 0 0 0 1px var(--ds-color-border-default);margin-bottom:var(--ds-space-1)}
.ds-root .ds-spec-pair {display:inline-flex;align-items:center;gap:var(--ds-space-2);padding:var(--ds-space-1) var(--ds-space-3);border-radius:var(--ds-radius-control);background:var(--ds-spec-bg);color:var(--ds-spec-fg);box-shadow:inset 0 0 0 1px var(--ds-color-border-default);font-family:var(--ds-font-family-base);font-size:var(--ds-text-size-sm);font-weight:var(--ds-text-weight-strong);white-space:nowrap}
.ds-root.ds-spec-chip {display:inline-block;padding:var(--ds-space-1) var(--ds-space-3);border-radius:var(--ds-radius-control);background:var(--ds-spec-bg);color:var(--ds-spec-fg);box-shadow:inset 0 0 0 1px var(--ds-color-border-default);font-family:var(--ds-font-family-base);font-size:var(--ds-text-size-sm);font-weight:var(--ds-text-weight-strong);white-space:nowrap}

/* Typography: the scale on real copy */
.ds-root .ds-spec-type {display:grid;grid-template-columns:minmax(0,9rem) minmax(0,1fr);align-items:baseline;gap:var(--ds-space-2) var(--ds-space-5);padding:var(--ds-space-3) 0;border-bottom:1px solid var(--ds-color-border-default)}
.ds-root .ds-spec-type:last-child {border-bottom:0}
.ds-root .ds-spec-type__sample {font-family:var(--ds-font-family-base);font-size:var(--ds-spec-size,var(--ds-text-size-md));font-weight:var(--ds-spec-weight,var(--ds-text-weight-regular));line-height:var(--ds-spec-leading,var(--ds-text-leading-tight));color:var(--ds-color-text-default);overflow-wrap:anywhere;min-width:0}

/* Icons: every name in the current set, with a search field (app.js, initIconSearch) */
.ds-root .ds-spec-icons {display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:var(--ds-space-4)}
.ds-root .ds-spec-icon {display:flex;flex-direction:column;align-items:center;gap:var(--ds-space-2);padding:var(--ds-space-4) var(--ds-space-2);border-radius:var(--ds-radius-control);background:var(--ds-color-surface-sunken);color:var(--ds-color-text-default);text-align:center;min-width:0}
.ds-root .ds-spec-icon .ds-icon {width:calc(var(--ds-icon-size) * 1.5);height:calc(var(--ds-icon-size) * 1.5)}
.ds-root .ds-spec-icon[hidden] {display:none}
.ds-root .ds-spec-icon .ds-spec-label {overflow-wrap:anywhere;min-width:0}
.ds-root .ds-spec-icon-search {max-width:360px;margin-bottom:var(--ds-space-4)}

/* Motion: a dot that travels its track with the quick or settle timing; Play toggles data-on on the track */
.ds-root .ds-spec-motion {position:relative;height:56px;border-radius:var(--ds-radius-surface);background:var(--ds-color-surface-sunken);box-shadow:inset 0 0 0 1px var(--ds-color-border-default)}
.ds-root .ds-spec-motion__dot {position:absolute;top:12px;left:12px;width:32px;height:32px;border-radius:var(--ds-radius-pill);background:var(--ds-color-accent);transition:left var(--ds-spec-duration,var(--ds-motion-settle)) var(--ds-motion-ease)}
.ds-root .ds-spec-motion[data-on] .ds-spec-motion__dot {left:calc(100% - 44px)}
.ds-root .ds-spec-curve {display:block;width:100%;max-width:240px;height:auto;color:var(--ds-color-accent)}
.ds-root .ds-spec-curve path {fill:none;stroke:currentColor;stroke-width:2}
.ds-root .ds-spec-curve line {stroke:var(--ds-color-border-default);stroke-width:1}

/* Density: spacing bars at the current preset */
.ds-root .ds-spec-space {display:grid;grid-template-columns:minmax(0,9rem) minmax(0,1fr);align-items:center;gap:var(--ds-space-4);padding:var(--ds-space-2) 0;border-bottom:1px solid var(--ds-color-border-default)}
.ds-root .ds-spec-space:last-child {border-bottom:0}
.ds-root .ds-spec-space__bar {display:block;width:var(--ds-spec-length);height:var(--ds-spec-length);min-width:2px;min-height:2px;max-width:100%;background:var(--ds-color-accent)}

/* Radius: shapes at the current preset */
.ds-root .ds-spec-radius {display:flex;flex-direction:column;align-items:flex-start;gap:var(--ds-space-2)}
.ds-root .ds-spec-radius__tile {width:96px;height:64px;border-radius:var(--ds-spec-radius);background:var(--ds-color-surface-raised);box-shadow:inset 0 0 0 1px var(--ds-color-border-strong)}

/* Small foundation samples in grouping tiles */
.ds-root.ds-spec-mini,.ds-root .ds-spec-mini {display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--ds-space-2);padding:var(--ds-space-4);border-radius:var(--ds-radius-surface)}
.ds-root.ds-spec-mini--stack {flex-direction:column;gap:var(--ds-space-3)}
.ds-root .ds-spec-mini__row {display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--ds-space-2)}
.ds-root.ds-spec-mini .ds-spec-swatch__chip,.ds-root .ds-spec-mini .ds-spec-swatch__chip {display:block;flex:none;width:32px;height:32px;margin:0}

@media (prefers-reduced-motion:reduce){
  .ds-root .ds-spec-motion__dot {transition:none}
}

/* Phone-width readers: the specimen island stands in for the screen, so page-wide composites take their
   narrow layout (their @container ds-screen rules) instead of scrolling sideways inside the canvas.
   Wider windows keep the island out of container queries, so desktop specimens are unchanged. */
@media (max-width: 720px){.ds-root.ds-spec {container-type:inline-size;container-name:ds-screen}}
/* The Workspace's Design tile (FR-307): one row of small swatches and the type, left-aligned. */
.ds-root.ds-spec-mini--swatches {display:block;min-height:0;padding:0;background:none;box-shadow:none}
.ds-root.ds-spec-mini--swatches .ds-spec-mini__row {justify-content:flex-start;flex-wrap:nowrap;gap:6px}
.ds-root.ds-spec-mini--swatches .ds-spec-swatch__chip {width:24px;height:24px}
.ds-root.ds-spec-mini--swatches .ds-spec-type__sample {flex:none;margin-left:4px;line-height:1;white-space:nowrap}

/* ---- design-system/components/basic/cmp-avatar/component.css ---- */
/* Avatar (Basic · display). A person's portrait over their initials, so the initials show when there is no image.
   Values come only from foundation tokens. Not interactive. */

.ds-root .ds-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--ds-size-avatar-md);
  height: var(--ds-size-avatar-md);
  overflow: hidden;
  border-radius: var(--ds-radius-avatar);
  corner-shape: squircle;
  background-color: var(--ds-color-neutral-surface);
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-xs);
  font-weight: var(--ds-text-weight-strong);
  line-height: 1;
  letter-spacing: var(--ds-text-tracking-normal);
  vertical-align: middle;
  user-select: none;
}

.ds-root .ds-avatar__initials {
  display: block;
  text-transform: uppercase;
}

/* the portrait covers the initials; photos are cropped to the face, SVG portraits use their #avatar view */
.ds-root .ds-avatar__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

.ds-root .ds-avatar--sm {
  width: var(--ds-size-avatar-sm);
  height: var(--ds-size-avatar-sm);
  font-size: var(--ds-text-size-xs);
}

.ds-root .ds-avatar--md {
  width: var(--ds-size-avatar-md);
  height: var(--ds-size-avatar-md);
}

.ds-root .ds-avatar--lg {
  width: var(--ds-size-avatar-lg);
  height: var(--ds-size-avatar-lg);
  font-size: var(--ds-text-size-lg);
}

/* ring: separates the avatar from an overlapping neighbour or a picture underneath */
.ds-root .ds-avatar--ring {
  box-shadow: 0 0 0 var(--ds-border-width-strong) var(--ds-color-surface-raised);
}

/* ---- design-system/components/basic/cmp-browser-chrome/component.css ---- */
/* Browser chrome (Basic · display). A Mac browser window as Safari draws one: the three window dots at the left,
   back and forward, the address in a capsule in the middle of the bar, Pipeup's toolbar button at the end, and the
   page below. Values come only from foundation tokens; the build scopes every rule under
   .ds-root. States: the button's :hover/.is-hover, :focus-visible/.is-focus and [aria-expanded="true"] (open). */

.ds-root .ds-browser-chrome {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  border: var(--ds-border-width) solid var(--ds-color-border-strong);
  border-radius: var(--ds-radius-surface);
  background-color: var(--ds-color-surface-default);
  box-shadow: var(--ds-shadow-frame);
}

.ds-root .ds-browser-chrome__bar {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  padding: var(--ds-space-2) var(--ds-space-3);
  border-bottom: var(--ds-border-width) solid var(--ds-color-border-default);
  border-radius: var(--ds-radius-surface) var(--ds-radius-surface) 0 0;
  background-color: var(--ds-color-surface-sunken);
}

/* the window's dots and the back and forward arrows, as Safari lays them */
.ds-root .ds-browser-chrome__dots {
  flex: none;
  display: inline-flex;
  gap: var(--ds-space-2);
  margin-inline-end: var(--ds-space-2);
}

.ds-root .ds-browser-chrome__dot {
  width: var(--ds-space-3);
  height: var(--ds-space-3);
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-color-window-close);
}

.ds-root .ds-browser-chrome__dot:nth-child(2) { background-color: var(--ds-color-window-minimise); }
.ds-root .ds-browser-chrome__dot:nth-child(3) { background-color: var(--ds-color-window-zoom); }

.ds-root .ds-browser-chrome__nav {
  flex: none;
  display: inline-flex;
  gap: var(--ds-space-1);
  color: var(--ds-color-text-muted);
}

.ds-root .ds-browser-chrome__nav > .ds-icon {
  width: var(--ds-target-min);
  height: var(--ds-target-min);
  padding: var(--ds-space-1);
  box-sizing: border-box;
}

.ds-root .ds-browser-chrome__space {
  flex: 1 1 0;
  min-width: 0;
}

/* the address: a capsule in the middle of the bar, as wide as Safari's */
.ds-root .ds-browser-chrome__address {
  flex: 0 1 46%;
  min-width: 0;
  overflow: hidden;
  padding: 0 var(--ds-space-3);
  border: var(--ds-border-width) solid var(--ds-color-border-default);
  border-radius: var(--ds-radius-control);
  background-color: var(--ds-color-surface-raised);
  color: var(--ds-color-text-default);
  font-family: var(--ds-font-family-base);
  font-size: var(--ds-text-size-sm);
  line-height: var(--ds-target-min);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-root .ds-browser-chrome__button {
  position: relative;
  flex: none;
  display: inline-grid;
  place-items: center;
  width: var(--ds-target-min);
  height: var(--ds-target-min);
  padding: 0;
  border: var(--ds-border-width) solid transparent;
  border-radius: var(--ds-radius-control);
  background-color: transparent;
  color: var(--ds-color-accent);
  cursor: pointer;
  transition:
    background-color var(--ds-motion-quick) var(--ds-motion-ease),
    border-color var(--ds-motion-quick) var(--ds-motion-ease);
}

.ds-root .ds-browser-chrome__button > .ds-icon {
  width: var(--ds-target-min);
  height: var(--ds-target-min);
  padding: var(--ds-space-1);
  box-sizing: border-box;
}

.ds-root .ds-browser-chrome__button:hover,
.ds-root .ds-browser-chrome__button.is-hover {
  background-color: var(--ds-color-neutral-surface);
}

.ds-root .ds-browser-chrome__button:focus-visible,
.ds-root .ds-browser-chrome__button.is-focus {
  outline: var(--ds-focus-width) solid var(--ds-color-focus-ring);
  outline-offset: var(--ds-focus-offset);
}

.ds-root .ds-browser-chrome__button:active,
.ds-root .ds-browser-chrome__button.is-pressed,
.ds-root .ds-browser-chrome__button[aria-expanded="true"] {
  background-color: var(--ds-color-neutral-surface);
}

/* the badge: open comments on this page, or "on" */
.ds-root .ds-browser-chrome__badge {
  position: absolute;
  top: calc(var(--ds-space-1) * -1);
  right: calc(var(--ds-space-1) * -1);
  display: inline-grid;
  place-items: center;
  min-width: var(--ds-space-4);
  height: var(--ds-space-4);
  padding: 0 var(--ds-space-1);
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-color-accent);
  color: var(--ds-color-text-on-accent);
  font-family: var(--ds-font-family-mono);
  font-size: var(--ds-text-size-xs);
  font-weight: var(--ds-text-weight-strong);
  line-height: 1;
  transition: opacity var(--ds-motion-quick) var(--ds-motion-ease);
}

.ds-root .ds-browser-chrome__page {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: var(--ds-space-8);
  border-radius: 0 0 var(--ds-radius-surface) var(--ds-radius-surface);
}

/* what drops from the toolbar button (Safari's permission popover): over the page, at its top end, right under the
   button; the page does not move. The part only places it: what it holds keeps its own look. */
.ds-root .ds-browser-chrome__popover {
  position: absolute;
  top: var(--ds-space-2);
  right: var(--ds-space-2);
  z-index: 1;
  width: min(calc(100% - var(--ds-space-4)), calc(var(--ds-space-8) * 6));
}

/* ---- design-system/components/basic/cmp-button/component.css ---- */
/* Button (Basic · actions). Values come only from foundation tokens; the build scopes every rule under .ds-root.
   States: :hover/.is-hover, :focus-visible/.is-focus, :active/.is-pressed, [disabled]/[aria-disabled], [aria-busy]. */

.ds-root .ds-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  min-height: var(--ds-control-height);
  min-width: var(--ds-target-min);
  padding: 0 var(--ds-space-4);
  border: var(--ds-border-width) solid transparent;
  border-radius: var(--ds-radius-control);
  background-color: transparent;
  color: var(--ds-color-text-default);
  font-family: var(--ds-font-family-base);
  font-size: var(--ds-text-size-md);
  font-weight: var(--ds-text-weight-medium);
  line-height: var(--ds-text-leading-tight);
  letter-spacing: var(--ds-text-tracking-normal);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  transition:
    background-color var(--ds-motion-quick) var(--ds-motion-ease),
    border-color var(--ds-motion-quick) var(--ds-motion-ease),
    color var(--ds-motion-quick) var(--ds-motion-ease),
    filter var(--ds-motion-quick) var(--ds-motion-ease);
}

/* icons inside a button use the small size, so the label leads */
.ds-root .ds-button .ds-icon {
  width: var(--ds-icon-size-sm);
  height: var(--ds-icon-size-sm);
}

/* primary: the one obvious next action */
.ds-root .ds-button--primary {
  background-color: var(--ds-color-accent);
  border-color: var(--ds-color-accent);
  color: var(--ds-color-text-on-accent);
}

.ds-root .ds-button--primary:hover:not(:disabled):not([aria-disabled="true"]),
.ds-root .ds-button--primary.is-hover {
  background-color: var(--ds-color-accent-hover);
  border-color: var(--ds-color-accent-hover);
}

.ds-root .ds-button--primary:active:not(:disabled):not([aria-disabled="true"]),
.ds-root .ds-button--primary.is-pressed {
  background-color: var(--ds-color-accent-pressed);
  border-color: var(--ds-color-accent-pressed);
}

/* secondary: an outlined raised surface */
.ds-root .ds-button--secondary {
  background-color: var(--ds-color-surface-raised);
  border-color: var(--ds-color-border-strong);
  color: var(--ds-color-text-default);
}

.ds-root .ds-button--secondary:hover:not(:disabled):not([aria-disabled="true"]),
.ds-root .ds-button--secondary.is-hover {
  background-color: var(--ds-color-surface-sunken);
}

.ds-root .ds-button--secondary:active:not(:disabled):not([aria-disabled="true"]),
.ds-root .ds-button--secondary.is-pressed {
  background-color: var(--ds-color-surface-sunken);
  border-color: var(--ds-color-text-muted);
}

/* quiet: no fill or outline until hovered */
.ds-root .ds-button--quiet {
  background-color: transparent;
  border-color: transparent;
  color: var(--ds-color-text-default);
}

.ds-root .ds-button--quiet:hover:not(:disabled):not([aria-disabled="true"]),
.ds-root .ds-button--quiet.is-hover {
  background-color: var(--ds-color-surface-sunken);
}

.ds-root .ds-button--quiet:active:not(:disabled):not([aria-disabled="true"]),
.ds-root .ds-button--quiet.is-pressed {
  background-color: var(--ds-color-surface-sunken);
  border-color: var(--ds-color-border-strong);
}

/* link: words that read as a link, flush with the text around them (back links, small links in a strip) */
.ds-root .ds-button--link {
  min-width: 0;
  padding: 0;
  background-color: transparent;
  border-color: transparent;
  color: var(--ds-color-text-muted);
}

.ds-root .ds-button--link:hover:not(:disabled):not([aria-disabled="true"]),
.ds-root .ds-button--link.is-hover {
  color: var(--ds-color-text-default);
  text-decoration-line: underline;
  text-underline-offset: var(--ds-space-1);
}

.ds-root .ds-button--link:active:not(:disabled):not([aria-disabled="true"]),
.ds-root .ds-button--link.is-pressed {
  color: var(--ds-color-text-default);
}

/* danger: a solid danger fill; hover and press darken the same fill (a colour shift, never a size change) */
.ds-root .ds-button--danger {
  background-color: var(--ds-color-status-danger);
  border-color: var(--ds-color-status-danger);
  color: var(--ds-color-text-on-accent);
}

.ds-root .ds-button--danger:hover:not(:disabled):not([aria-disabled="true"]),
.ds-root .ds-button--danger.is-hover {
  filter: brightness(0.92);
}

.ds-root .ds-button--danger:active:not(:disabled):not([aria-disabled="true"]),
.ds-root .ds-button--danger.is-pressed {
  filter: brightness(0.84);
}

/* lg: the ways to start on a public page's opening screen; combines with a tone variant */
.ds-root .ds-button--lg {
  min-height: calc(var(--ds-control-height) + var(--ds-space-2));
  padding: 0 var(--ds-space-5);
  font-size: var(--ds-text-size-lg);
}

.ds-root .ds-button--lg .ds-icon {
  width: var(--ds-icon-size);
  height: var(--ds-icon-size);
}

/* focus: the shared ring, on every variant */
.ds-root .ds-button:focus-visible,
.ds-root .ds-button.is-focus {
  outline: var(--ds-focus-width) solid var(--ds-color-focus-ring);
  outline-offset: var(--ds-focus-offset);
}

/* disabled: still readable, never interactive */
.ds-root .ds-button:disabled,
.ds-root .ds-button[aria-disabled="true"] {
  opacity: var(--ds-opacity-disabled);
  cursor: not-allowed;
}

/* busy: keeps its height and place; the spinner takes the icon's place and the label says what is happening */
.ds-root .ds-button[aria-busy="true"] {
  cursor: progress;
}

/* The spinner is a glyph, like an icon, so it stays round under every radius preset. Its duration comes from the
   motion tokens: under the still preset and reduced motion it stands still as an open ring beside the words.
   The ring is drawn and turned on ::before, so the span's own box never changes while it spins (layout and
   review tools that measure the page see a still element). */
.ds-root .ds-button__spinner {
  position: relative;
  flex: none;
  width: var(--ds-icon-size-sm);
  height: var(--ds-icon-size-sm);
}

.ds-root .ds-button__spinner::before {
  content: "";
  position: absolute;
  inset: 0;
  border: var(--ds-border-width-strong) solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ds-button-spin calc(var(--ds-motion-settle) * 4) var(--ds-motion-ease-steady) infinite;
}

.ds-root .ds-button--lg .ds-button__spinner {
  width: var(--ds-icon-size);
  height: var(--ds-icon-size);
}

@keyframes ds-button-spin {
  to {
    transform: rotate(1turn);
  }
}

/* join-start / join-end: two buttons set side by side as one control, a main action and the chevron that opens
   its menu. The touching corners are square and the borders overlap, so the pair reads as one split button. */
.ds-root .ds-button--join-start {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}

.ds-root .ds-button--join-end {
  margin-inline-start: calc(var(--ds-border-width) * -1);
  padding-inline: var(--ds-space-2);
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}

.ds-root .ds-button--join-start:focus-visible,
.ds-root .ds-button--join-end:focus-visible {
  z-index: 1;
}

/* ringed: inside a ring that draws the control's edge (cmp-prompt-card's ring variant), so it has no outline of its
   own in any state; the second half of a split button keeps its divider */
.ds-root .ds-button.ds-button--ringed,
.ds-root .ds-button.ds-button--ringed:hover:not(:disabled):not([aria-disabled="true"]),
.ds-root .ds-button.ds-button--ringed:active:not(:disabled):not([aria-disabled="true"]),
.ds-root .ds-button.ds-button--ringed.is-hover,
.ds-root .ds-button.ds-button--ringed.is-pressed {
  border-color: transparent;
}

.ds-root .ds-button.ds-button--ringed.ds-button--join-end {
  border-inline-start-color: var(--ds-color-border-strong);
}

/* with-copy: the one copy pattern. The check replaces the copy glyph while cmp-code-block's script has set
   data-copied; the label sits over invisible sizers holding every label it can show, so the widest one sets the
   width and the button never changes size while it says Copied or how to copy. */
/* The check sits on top of the copy glyph (pulled back over it by the glyph's width and the gap), so the two
   cross-fade over --ds-motion-settle and the button never changes size. The copy glyph comes first in the markup. */
.ds-root .ds-button__copy-icon,
.ds-root .ds-button__done-icon {
  transition:
    opacity var(--ds-motion-settle) var(--ds-motion-ease),
    transform var(--ds-motion-settle) var(--ds-motion-ease);
}

.ds-root .ds-button__done-icon {
  margin-inline-start: calc((var(--ds-icon-size-sm) + var(--ds-space-2)) * -1);
  opacity: 0;
  transform: scale(0.5);
}

.ds-root .ds-button--lg .ds-button__done-icon {
  margin-inline-start: calc((var(--ds-icon-size) + var(--ds-space-2)) * -1);
}

.ds-root .ds-button[data-copied] .ds-button__copy-icon {
  opacity: 0;
  transform: scale(0.5);
}

.ds-root .ds-button[data-copied] .ds-button__done-icon {
  opacity: 1;
  transform: none;
}

/* the new words (Copied, or how to copy) fade in where the old ones were; going back to the label is at once */
.ds-root .ds-button[data-copied] [data-ds-copy-label] {
  animation: ds-button-word-in var(--ds-motion-settle) var(--ds-motion-ease);
}

@keyframes ds-button-word-in {
  from {
    opacity: 0;
  }
}

.ds-root .ds-button__label {
  display: inline-grid;
}

.ds-root .ds-button__label > * {
  grid-area: 1 / 1;
}

.ds-root .ds-button__sizer {
  visibility: hidden;
}

/* ---- design-system/components/basic/cmp-card/component.css ---- */
/* Card (Basic · surfaces). A raised surface that groups content. Values come only from foundation tokens.
   States: :hover/.is-hover and :focus-visible/.is-focus (cards that are links or buttons). */

.ds-root .ds-card {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
  min-width: 0;
  padding: var(--ds-space-5);
  border: var(--ds-border-width) solid var(--ds-color-border-default);
  border-radius: var(--ds-radius-surface);
  background-color: var(--ds-color-surface-raised);
  box-shadow: var(--ds-shadow-raised);
  color: var(--ds-color-text-default);
  font-size: var(--ds-text-size-md);
  text-align: start;
  text-decoration: none;
  transition:
    border-color var(--ds-motion-quick) var(--ds-motion-ease),
    background-color var(--ds-motion-quick) var(--ds-motion-ease),
    box-shadow var(--ds-motion-settle) var(--ds-motion-ease),
    transform var(--ds-motion-settle) var(--ds-motion-ease);
}

/* a card that is a link or button shows its edge on hover */
.ds-root .ds-card:is(a, button) {
  cursor: pointer;
}

.ds-root .ds-card:is(a, button):hover,
.ds-root .ds-card.is-hover {
  border-color: var(--ds-color-border-strong);
}

.ds-root .ds-card:focus-visible,
.ds-root .ds-card.is-focus {
  outline: var(--ds-focus-width) solid var(--ds-color-focus-ring);
  outline-offset: var(--ds-focus-offset);
}

.ds-root .ds-card__title {
  color: var(--ds-color-text-default);
  font-size: var(--ds-text-size-lg);
  font-weight: var(--ds-text-weight-strong);
  line-height: var(--ds-text-leading-tight);
}

.ds-root .ds-card__meta {
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-sm);
  line-height: var(--ds-text-leading-tight);
}

.ds-root .ds-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
  min-width: 0;
}

/* interactive: a tile that lifts toward the pointer (no lift under the still preset or reduced motion) */
.ds-root .ds-card--interactive {
  cursor: pointer;
}

.ds-root .ds-card--interactive:hover,
.ds-root .ds-card--interactive.is-hover {
  border-color: var(--ds-color-border-strong);
  box-shadow: var(--ds-shadow-lifted);
  transform: translateY(var(--ds-motion-lift));
}

/* flush: no inner padding; each body section brings its own, with a hairline between sections */
.ds-root .ds-card--flush {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.ds-root .ds-card--flush .ds-card__body {
  padding: var(--ds-space-5);
}

.ds-root .ds-card--flush .ds-card__body + .ds-card__body {
  border-top: var(--ds-border-width) solid var(--ds-color-border-default);
}

/* empty: a dashed outline on no fill, for a slot that has nothing in it yet */
.ds-root .ds-card--empty {
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  border: calc(var(--ds-border-width) * 1.5) dashed var(--ds-color-border-strong);
  background-color: transparent;
  box-shadow: none;
  color: var(--ds-color-text-muted);
  text-align: center;
}

.ds-root .ds-card--empty .ds-card__title {
  font-size: var(--ds-text-size-md);
}

.ds-root .ds-card--empty:is(a, button):hover,
.ds-root .ds-card--empty.is-hover {
  border-color: var(--ds-color-text-muted);
  background-color: var(--ds-color-surface-sunken);
}

/* ---- design-system/components/basic/cmp-chart/component.css ---- */
/* Chart (Basic · display). Sourced numbers drawn to compare, densely and exactly: almost all of the ink is data.
   No gridlines, frames, shaded tracks or legends where a word beside the mark will do; thin marks on a hairline
   baseline; every value written beside its mark in figures that line up. A visually hidden table carries the same
   numbers. Values come only from foundation tokens. Lengths and positions that are data are SVG coordinates on a
   0 to 100 scale; a dot is a zero-length line with a round cap, so it stays round however the plot stretches. */

.ds-root .ds-chart {
  --ds-chart-mark: var(--ds-color-accent);
  --ds-chart-rule: var(--ds-color-border-default);
  --ds-chart-bar: var(--ds-space-2);
  --ds-chart-cell: var(--ds-space-3);
  --ds-chart-row-gap: var(--ds-space-1);
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
  min-width: 0;
  margin: 0;
  color: var(--ds-color-text-default);
  font-size: var(--ds-text-size-sm);
  font-variant-numeric: tabular-nums;
  line-height: var(--ds-text-leading-tight);
}

/* dense: more rows in the same space (a long matrix, a slide's grid) */
.ds-root .ds-chart--dense {
  --ds-chart-cell: var(--ds-space-2);
  --ds-chart-row-gap: 0;
  font-size: var(--ds-text-size-xs);
}

.ds-root .ds-chart__title {
  font-size: var(--ds-text-size-md);
  font-weight: var(--ds-text-weight-strong);
}

.ds-root .ds-chart__plot {
  display: flex;
  flex-direction: column;
  gap: var(--ds-chart-row-gap);
  min-width: 0;
}

.ds-root .ds-chart__source {
  margin: 0;
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-xs);
}

/* tones: the status mark colours, always beside a word */
.ds-root .ds-chart [data-tone="success"] { --ds-chart-mark: var(--ds-color-status-success-mark); }
.ds-root .ds-chart [data-tone="warning"] { --ds-chart-mark: var(--ds-color-status-warning-mark); }
.ds-root .ds-chart [data-tone="danger"] { --ds-chart-mark: var(--ds-color-status-danger-mark); }
.ds-root .ds-chart [data-tone="info"] { --ds-chart-mark: var(--ds-color-status-info-mark); }
.ds-root .ds-chart [data-tone="neutral"] { --ds-chart-mark: var(--ds-color-border-strong); }

/* ---- rows: bar, dot and slope share them */
.ds-root .ds-chart__group {
  display: flex;
  flex-direction: column;
  gap: var(--ds-chart-row-gap);
}

.ds-root .ds-chart__group + .ds-chart__group {
  margin-top: var(--ds-space-2);
}

.ds-root .ds-chart__group-label {
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-xs);
  font-weight: var(--ds-text-weight-medium);
  letter-spacing: var(--ds-text-tracking-caps);
  text-transform: uppercase;
}

.ds-root .ds-chart__row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) minmax(var(--ds-space-7), auto);
  align-items: center;
  gap: var(--ds-space-3);
  padding-block: var(--ds-space-1);
}

.ds-root .ds-chart__label {
  min-width: 0;
  color: var(--ds-color-text-muted);
}

/* the track holds the mark; its only ink is the hairline baseline at zero */
.ds-root .ds-chart__track {
  display: block;
  width: 100%;
  height: var(--ds-chart-bar);
  overflow: visible;
  border-left: var(--ds-border-width) solid var(--ds-color-text-muted);
}

.ds-root .ds-chart__base {
  fill: none;
}

.ds-root .ds-chart__bar {
  fill: var(--ds-chart-mark);
  transition: width var(--ds-motion-settle) var(--ds-motion-ease);
}

.ds-root .ds-chart__value {
  color: var(--ds-color-text-default);
  font-weight: var(--ds-text-weight-medium);
  text-align: right;
  white-space: nowrap;
}

/* ---- dot: each value one dot on a shared hairline scale */
.ds-root .ds-chart--dot .ds-chart__track,
.ds-root .ds-chart--slope .ds-chart__track {
  height: var(--ds-space-4);
  border-left: 0;
}

.ds-root .ds-chart__rule {
  stroke: var(--ds-chart-rule);
  stroke-width: var(--ds-border-width);
  vector-effect: non-scaling-stroke;
}

.ds-root .ds-chart__dot {
  stroke: var(--ds-chart-mark);
  stroke-width: var(--ds-size-dot);
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.ds-root .ds-chart__dot--from {
  stroke: var(--ds-color-border-strong);
}

/* ---- slope: before and after on one scale, joined */
.ds-root .ds-chart--slope .ds-chart__row {
  grid-template-columns: minmax(0, 2fr) minmax(var(--ds-space-7), auto) minmax(0, 3fr) minmax(var(--ds-space-7), auto);
}

.ds-root .ds-chart__value--from {
  color: var(--ds-color-text-muted);
  font-weight: var(--ds-text-weight-regular);
}

.ds-root .ds-chart__join {
  stroke: var(--ds-chart-mark);
  stroke-width: var(--ds-border-width-strong);
  vector-effect: non-scaling-stroke;
}

/* ---- matrix: a label, then one or more groups of marks */
.ds-root .ds-chart--matrix .ds-chart__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-1) var(--ds-space-3);
  padding-block: 0;
}

.ds-root .ds-chart--matrix .ds-chart__label {
  flex: 0 0 34%;
}

.ds-root .ds-chart__row--head {
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-xs);
  font-weight: var(--ds-text-weight-medium);
}

.ds-root .ds-chart__cells {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-1);
}

/* named columns: every row's marks line up under the head row's */
.ds-root .ds-chart__plot:has(> .ds-chart__row--head) .ds-chart__cells {
  display: grid;
  flex: 1 1 0;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  justify-items: center;
  gap: var(--ds-space-2);
}

.ds-root .ds-chart__col {
  text-align: center;
}

.ds-root .ds-chart__cell {
  display: block;
  width: var(--ds-chart-cell);
  height: var(--ds-chart-cell);
  box-sizing: border-box;
  border: var(--ds-border-width) solid var(--ds-chart-mark);
  border-radius: var(--ds-radius-pill);
}

.ds-root .ds-chart__cell--yes {
  background-color: var(--ds-chart-mark);
}

.ds-root .ds-chart__cell--part {
  background: linear-gradient(90deg, var(--ds-chart-mark) 50%, transparent 50%);
}

.ds-root .ds-chart__cell--no {
  border-color: var(--ds-color-border-strong);
  background-color: transparent;
}

/* ---- multiples: the same small chart repeated on one scale */
.ds-root .ds-chart__multiples {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(var(--ds-space-8) * 3), 1fr));
  gap: var(--ds-space-3) var(--ds-space-5);
}

.ds-root .ds-chart__multiple {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-1);
  min-width: 0;
  padding-top: var(--ds-space-1);
  border-top: var(--ds-border-width) solid var(--ds-chart-rule);
}

.ds-root .ds-chart__multiple .ds-chart__label {
  overflow: hidden;
  font-size: var(--ds-text-size-xs);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-root .ds-chart__multiple .ds-chart__cells {
  gap: var(--ds-space-1);
}

/* ---- timeline */
.ds-root .ds-chart__events {
  position: relative;
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: var(--ds-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds-root .ds-chart__events::before {
  content: "";
  position: absolute;
  top: calc(var(--ds-size-dot) / 2);
  right: 0;
  left: 0;
  border-top: var(--ds-border-width) solid var(--ds-color-text-muted);
}

.ds-root .ds-chart__event {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-1);
  padding-top: var(--ds-space-4);
  min-width: 0;
}

.ds-root .ds-chart__event::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--ds-size-dot);
  height: var(--ds-size-dot);
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-chart-mark);
}

.ds-root .ds-chart__date {
  color: var(--ds-color-text-muted);
  font-family: var(--ds-font-family-mono);
  font-size: var(--ds-text-size-xs);
}

/* ---- stack: one thin bar of parts, each named beside its share */
.ds-root .ds-chart__stack {
  display: block;
  width: 100%;
  height: var(--ds-chart-bar);
  overflow: visible;
}

.ds-root .ds-chart__seg {
  fill: var(--ds-chart-mark);
  stroke: var(--ds-color-surface-default);
  stroke-width: var(--ds-border-width-strong);
  vector-effect: non-scaling-stroke;
  transition: width var(--ds-motion-settle) var(--ds-motion-ease);
}

.ds-root .ds-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-1) var(--ds-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ds-color-text-muted);
}

.ds-root .ds-chart__legend > li {
  display: inline-flex;
  align-items: baseline;
  gap: var(--ds-space-1);
}

.ds-root .ds-chart__key {
  align-self: center;
  width: var(--ds-size-dot);
  height: var(--ds-size-dot);
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-chart-mark);
}

/* untoned parts step down from the accent, so neighbours stay apart; each is named beside its share */
.ds-root .ds-chart__seg:not([data-tone]):nth-child(2),
.ds-root .ds-chart__legend > li:not([data-tone]):nth-child(2) .ds-chart__key { opacity: 0.7; }
.ds-root .ds-chart__seg:not([data-tone]):nth-child(3),
.ds-root .ds-chart__legend > li:not([data-tone]):nth-child(3) .ds-chart__key { opacity: 0.45; }
.ds-root .ds-chart__seg:not([data-tone]):nth-child(n+4),
.ds-root .ds-chart__legend > li:not([data-tone]):nth-child(n+4) .ds-chart__key { opacity: 0.25; }

/* ---- design-system/components/basic/cmp-checkbox/component.css ---- */
/* Checkbox (Basic · inputs). A native checkbox in the accent colour with its label, hint and error.
   Values come only from foundation tokens.
   States: :hover/.is-hover, :focus-visible/.is-focus, :checked, [aria-invalid="true"], :disabled. */

.ds-root .ds-checkbox {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  align-content: center;
  column-gap: var(--ds-space-2);
  row-gap: var(--ds-space-1);
  min-height: var(--ds-target-min);
  color: var(--ds-color-text-default);
  font-size: var(--ds-text-size-md);
  line-height: var(--ds-text-leading-tight);
  cursor: pointer;
}

.ds-root .ds-checkbox__input {
  grid-column: 1;
  grid-row: 1;
  width: var(--ds-icon-size);
  height: var(--ds-icon-size);
  margin: 0;
  accent-color: var(--ds-color-accent);
  cursor: pointer;
  transition: box-shadow var(--ds-motion-quick) var(--ds-motion-ease);
}

.ds-root .ds-checkbox__input:hover:not(:disabled),
.ds-root .ds-checkbox__input.is-hover {
  box-shadow: 0 0 0 var(--ds-space-1) var(--ds-color-neutral-surface);
}

.ds-root .ds-checkbox__input:focus-visible,
.ds-root .ds-checkbox__input.is-focus {
  outline: var(--ds-focus-width) solid var(--ds-color-focus-ring);
  outline-offset: var(--ds-focus-offset);
}

.ds-root .ds-checkbox__input[aria-invalid="true"] {
  outline: var(--ds-border-width-strong) solid var(--ds-color-status-danger);
  outline-offset: var(--ds-border-width);
}

.ds-root .ds-checkbox__input:disabled {
  opacity: var(--ds-opacity-disabled);
  cursor: not-allowed;
}

.ds-root .ds-checkbox__label {
  grid-column: 2;
  cursor: pointer;
}

.ds-root .ds-checkbox:has(.ds-checkbox__input:disabled) {
  color: var(--ds-color-text-muted);
  cursor: not-allowed;
}

.ds-root .ds-checkbox__hint {
  grid-column: 2;
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-sm);
}

.ds-root .ds-checkbox__error {
  grid-column: 2;
  display: flex;
  align-items: flex-start;
  gap: var(--ds-space-1);
  color: var(--ds-color-status-danger);
  font-size: var(--ds-text-size-sm);
  font-weight: var(--ds-text-weight-medium);
}

.ds-root .ds-checkbox__error .ds-icon {
  width: var(--ds-icon-size-sm);
  height: var(--ds-icon-size-sm);
}

/* ---- design-system/components/basic/cmp-chip/component.css ---- */
/* Chip (Basic · display). A small, quiet label for a linked name or an id: a hairline edge, muted words, no status colour.
   Values come only from foundation tokens.
   States: :hover/.is-hover and :focus-visible/.is-focus (linked chips only). */

.ds-root .ds-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-1);
  max-width: 100%;
  min-height: calc(var(--ds-text-size-xs) * 2);
  padding: 0 var(--ds-space-2);
  border: var(--ds-border-width) solid var(--ds-color-border-default);
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-color-surface-raised);
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-xs);
  font-weight: var(--ds-text-weight-medium);
  line-height: var(--ds-text-leading-tight);
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  transition:
    border-color var(--ds-motion-quick) var(--ds-motion-ease),
    color var(--ds-motion-quick) var(--ds-motion-ease);
}

/* a list of chips: no bullets and no indent */
.ds-root :is(ul, ol):has(> li > .ds-chip) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds-root .ds-chip--code {
  font-family: var(--ds-font-family-mono);
  font-weight: var(--ds-text-weight-regular);
  letter-spacing: var(--ds-text-tracking-normal);
}

.ds-root .ds-chip__meta {
  overflow: hidden;
  color: var(--ds-color-text-muted);
  font-weight: var(--ds-text-weight-regular);
  text-overflow: ellipsis;
}

.ds-root a.ds-chip {
  cursor: pointer;
}

.ds-root a.ds-chip:hover,
.ds-root .ds-chip.is-hover {
  border-color: var(--ds-color-border-strong);
  color: var(--ds-color-text-default);
}

.ds-root a.ds-chip:focus-visible,
.ds-root .ds-chip.is-focus {
  outline: var(--ds-focus-width) solid var(--ds-color-focus-ring);
  outline-offset: var(--ds-focus-offset);
}

/* filter: a pill that is on or off; off is grey words on nothing, on is a soft tint of the spot colour */
.ds-root .ds-chip--filter {
  gap: var(--ds-space-1);
  border-color: transparent;
  background-color: transparent;
  color: var(--ds-color-text-muted);
  font: inherit;
  font-size: var(--ds-text-size-xs);
  font-weight: var(--ds-text-weight-medium);
  cursor: pointer;
  transition:
    border-color var(--ds-motion-quick) var(--ds-motion-ease),
    background-color var(--ds-motion-quick) var(--ds-motion-ease),
    color var(--ds-motion-quick) var(--ds-motion-ease);
}

.ds-root .ds-chip--filter:hover,
.ds-root .ds-chip--filter.is-hover {
  background-color: var(--ds-color-surface-sunken);
  color: var(--ds-color-text-default);
}

.ds-root .ds-chip--filter:focus-visible,
.ds-root .ds-chip--filter.is-focus {
  outline: var(--ds-focus-width) solid var(--ds-color-focus-ring);
  outline-offset: var(--ds-focus-offset);
}

.ds-root .ds-chip--filter[aria-pressed="true"] {
  border-color: var(--ds-color-status-warning-surface);
  background-color: var(--ds-color-status-warning-surface);
  color: var(--ds-color-status-warning);
}

/* ---- design-system/components/basic/cmp-code-block/component.css ---- */
/* Code block (Basic · display). Exact text to copy or run, with a copy button. Values come only from foundation tokens.
   States (on the copy button): :hover/.is-hover, :focus-visible/.is-focus, [data-copied] (copied). component.js copies. */

.ds-root .ds-code-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: var(--ds-border-width) solid var(--ds-color-border-default);
  border-radius: var(--ds-radius-surface);
  background-color: var(--ds-color-surface-sunken);
  color: var(--ds-color-text-default);
  text-align: start;
}

.ds-root .ds-code-block__header {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  padding: var(--ds-space-1) var(--ds-space-2) var(--ds-space-1) var(--ds-space-4);
  border-bottom: var(--ds-border-width) solid var(--ds-color-border-default);
}

.ds-root .ds-code-block__title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-xs);
  font-weight: var(--ds-text-weight-medium);
  line-height: var(--ds-text-leading-tight);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-root .ds-code-block__copy {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-1);
  flex: none;
  margin-left: auto;
  min-height: var(--ds-target-min);
  min-width: var(--ds-target-min);
  padding: 0 var(--ds-space-2);
  border: var(--ds-border-width) solid transparent;
  border-radius: var(--ds-radius-control);
  background-color: transparent;
  color: var(--ds-color-text-muted);
  font-family: var(--ds-font-family-base);
  font-size: var(--ds-text-size-xs);
  font-weight: var(--ds-text-weight-medium);
  line-height: var(--ds-text-leading-tight);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--ds-motion-quick) var(--ds-motion-ease),
    border-color var(--ds-motion-quick) var(--ds-motion-ease),
    color var(--ds-motion-quick) var(--ds-motion-ease);
}

.ds-root .ds-code-block__copy .ds-icon {
  width: var(--ds-icon-size-sm);
  height: var(--ds-icon-size-sm);
}

.ds-root .ds-code-block__copy:hover,
.ds-root .ds-code-block__copy.is-hover {
  border-color: var(--ds-color-border-default);
  background-color: var(--ds-color-surface-raised);
  color: var(--ds-color-text-default);
}

.ds-root .ds-code-block__copy:focus-visible,
.ds-root .ds-code-block__copy.is-focus {
  outline: var(--ds-focus-width) solid var(--ds-color-focus-ring);
  outline-offset: var(--ds-border-width);
}

/* copied: the check cross-fades over the copy glyph (pulled back over it by the glyph's width and the gap) and the
   label's new words fade in, over --ds-motion-settle; the button keeps its size. 0 under still and reduced motion. */
.ds-root .ds-code-block__copy .ds-code-block__copy-icon,
.ds-root .ds-code-block__copy .ds-code-block__done-icon {
  transition:
    opacity var(--ds-motion-settle) var(--ds-motion-ease),
    transform var(--ds-motion-settle) var(--ds-motion-ease);
}

.ds-root .ds-code-block__copy .ds-code-block__done-icon {
  margin-inline-start: calc((var(--ds-icon-size-sm) + var(--ds-space-1)) * -1);
  opacity: 0;
  transform: scale(0.5);
}

.ds-root .ds-code-block__copy[data-copied] {
  color: var(--ds-color-text-default);
}

.ds-root .ds-code-block__copy[data-copied] .ds-code-block__copy-icon {
  opacity: 0;
  transform: scale(0.5);
}

.ds-root .ds-code-block__copy[data-copied] .ds-code-block__done-icon {
  opacity: 1;
  transform: none;
}

.ds-root .ds-code-block__copy[data-copied] .ds-code-block__copy-label {
  animation: ds-code-block-word-in var(--ds-motion-settle) var(--ds-motion-ease);
}

@keyframes ds-code-block-word-in {
  from {
    opacity: 0;
  }
}

.ds-root .ds-code-block__code {
  margin: 0;
  padding: var(--ds-space-4);
  color: inherit;
  font-family: var(--ds-font-family-mono);
  font-size: var(--ds-text-size-sm);
  line-height: var(--ds-text-leading-body);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}

.ds-root .ds-code-block__code code {
  font-family: inherit;
  font-size: inherit;
}

/* shown, never copied */
.ds-root .ds-code-block__prefix {
  color: var(--ds-color-text-muted);
  user-select: none;
}

.ds-root .ds-code-block__comment {
  color: var(--ds-color-text-muted);
}

/* nowrap: a terminal's lines never break mid-word. A line longer than the block wraps at a space, as a terminal
   would, and the rest hangs two characters in, under the command after its `$ `: nothing is cut off at the edge or
   hidden behind a sideways scroll that a touch screen never shows. Only a single word longer than the line breaks. */
.ds-root .ds-code-block--nowrap .ds-code-block__code {
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  text-indent: 2ch hanging each-line;
}

/* compact: one short command under a line of text (a step, a list row); less air and a smaller size, so a whole
   command keeps to one line beside the text it belongs to */
.ds-root .ds-code-block--compact .ds-code-block__code {
  padding: var(--ds-space-2) var(--ds-space-3);
  font-size: var(--ds-text-size-xs);
}

/* strong: the terminal look on the strong surface */
.ds-root .ds-code-block--strong {
  border-color: var(--ds-color-surface-strong);
  background-color: var(--ds-color-surface-strong);
  color: var(--ds-color-text-on-strong);
}

.ds-root .ds-code-block--strong .ds-code-block__header {
  border-bottom-color: transparent;
}

.ds-root .ds-code-block--strong .ds-code-block__code {
  padding-top: var(--ds-space-2);
}

.ds-root .ds-code-block--strong .ds-code-block__title,
.ds-root .ds-code-block--strong .ds-code-block__prefix,
.ds-root .ds-code-block--strong .ds-code-block__comment {
  color: var(--ds-color-text-on-strong-muted);
}

.ds-root .ds-code-block--strong .ds-code-block__copy {
  color: var(--ds-color-text-on-strong-muted);
}

.ds-root .ds-code-block--strong .ds-code-block__copy:hover,
.ds-root .ds-code-block--strong .ds-code-block__copy.is-hover {
  border-color: var(--ds-color-text-on-strong-muted);
  background-color: transparent;
  color: var(--ds-color-text-on-strong);
}

.ds-root .ds-code-block--strong .ds-code-block__copy:focus-visible,
.ds-root .ds-code-block--strong .ds-code-block__copy.is-focus {
  border-color: var(--ds-color-text-on-strong);
  color: var(--ds-color-text-on-strong);
}

.ds-root .ds-code-block--strong .ds-code-block__copy[data-copied] {
  color: var(--ds-color-text-on-strong);
}

/* flush: no edge, corners or fill; it takes the surface of the card it sits in */
.ds-root .ds-code-block--flush {
  border-color: transparent;
  border-radius: 0;
  background-color: transparent;
  color: var(--ds-color-text-muted);
}

.ds-root .ds-code-block--flush .ds-code-block__copy:hover,
.ds-root .ds-code-block--flush .ds-code-block__copy.is-hover {
  background-color: var(--ds-color-surface-sunken);
}

/* ---- design-system/components/basic/cmp-comment-control/component.css ---- */
/* Comment control (Basic · actions). The one tag Pipeup adds to a page: a small ink-edged square of paper in the
   bottom-right corner, with a hard shadow. Values come only from foundation tokens.
   States: :hover/.is-hover and :focus-visible/.is-focus (the reach slides out), :active/.is-pressed,
   [aria-pressed="true"] (comment mode on: accent fill). */

.ds-root .ds-comment-control {
  position: relative;
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-items: center;
  flex: none;
  height: var(--ds-target-min);
  min-width: var(--ds-target-min);
  padding: 0;
  border: var(--ds-border-width) solid var(--ds-color-border-strong);
  border-radius: var(--ds-radius-control);
  background-color: var(--ds-color-surface-raised);
  box-shadow: var(--ds-shadow-raised);
  color: var(--ds-color-text-default);
  font-family: var(--ds-font-family-mono);
  font-size: var(--ds-text-size-sm);
  font-weight: var(--ds-text-weight-strong);
  line-height: 1;
  cursor: pointer;
  transition:
    background-color var(--ds-motion-quick) var(--ds-motion-ease),
    border-color var(--ds-motion-quick) var(--ds-motion-ease),
    color var(--ds-motion-quick) var(--ds-motion-ease);
}

.ds-root .ds-comment-control > .ds-icon {
  grid-column: 2;
  width: var(--ds-target-min);
  height: var(--ds-target-min);
  padding: var(--ds-space-1);
  box-sizing: border-box;
}

.ds-root .ds-comment-control__count {
  grid-column: 2;
  display: inline-grid;
  place-items: center;
  width: var(--ds-target-min);
  height: var(--ds-target-min);
}

/* the reach: the shortcut, folded away until the control is pointed at or focused */
.ds-root .ds-comment-control__reach {
  grid-column: 1;
  overflow: hidden;
  max-width: 0;
  padding-inline-start: 0;
  opacity: 0;
  white-space: nowrap;
  color: var(--ds-color-text-muted);
  transition:
    color var(--ds-motion-quick) var(--ds-motion-ease),
    max-width var(--ds-motion-settle) var(--ds-motion-ease),
    padding var(--ds-motion-settle) var(--ds-motion-ease),
    opacity var(--ds-motion-settle) var(--ds-motion-ease);
}

.ds-root .ds-comment-control:hover,
.ds-root .ds-comment-control.is-hover {
  background-color: var(--ds-color-surface-sunken);
}

.ds-root .ds-comment-control:hover .ds-comment-control__reach,
.ds-root .ds-comment-control.is-hover .ds-comment-control__reach,
.ds-root .ds-comment-control:focus-visible .ds-comment-control__reach,
.ds-root .ds-comment-control.is-focus .ds-comment-control__reach {
  max-width: var(--ds-space-8);
  padding-inline-start: var(--ds-space-3);
  opacity: 1;
}

.ds-root .ds-comment-control:active,
.ds-root .ds-comment-control.is-pressed {
  background-color: var(--ds-color-neutral-surface);
}

.ds-root .ds-comment-control:focus-visible,
.ds-root .ds-comment-control.is-focus {
  outline: var(--ds-focus-width) solid var(--ds-color-focus-ring);
  outline-offset: var(--ds-focus-offset);
}

/* more: the ⋯ that opens the menu, a sibling before the control in its row; folded away until the row is pointed at or focused, or its menu is open */
.ds-root .ds-comment-control__more {
  flex: none;
  display: inline-grid;
  place-items: center;
  height: var(--ds-target-min);
  min-width: 0;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  padding: 0;
  border: 0;
  border-radius: var(--ds-radius-control);
  background: transparent;
  color: var(--ds-color-text-muted);
  cursor: pointer;
  transition:
    max-width var(--ds-motion-settle) var(--ds-motion-ease),
    padding var(--ds-motion-settle) var(--ds-motion-ease),
    opacity var(--ds-motion-settle) var(--ds-motion-ease),
    color var(--ds-motion-quick) var(--ds-motion-ease),
    background-color var(--ds-motion-quick) var(--ds-motion-ease);
}

.ds-root .ds-stack:hover .ds-comment-control__more,
.ds-root .ds-stack:focus-within .ds-comment-control__more,
.ds-root .ds-stack:has(.is-hover) .ds-comment-control__more,
.ds-root .ds-stack:has(.is-focus) .ds-comment-control__more,
.ds-root .ds-comment-control__more[aria-expanded="true"] {
  max-width: var(--ds-target-min);
  min-width: var(--ds-target-min);
  opacity: 1;
}

.ds-root .ds-comment-control__more:hover { color: var(--ds-color-text-default); background-color: var(--ds-color-surface-sunken); }
.ds-root .ds-comment-control__more:focus-visible { outline: var(--ds-focus-width) solid var(--ds-color-focus-ring); outline-offset: var(--ds-focus-offset); }
.ds-root .ds-comment-control__more > .ds-icon { width: var(--ds-target-min); height: var(--ds-target-min); padding: var(--ds-space-1); box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  .ds-root .ds-comment-control__more { transition: none; }
}

/* on: comment mode; the tag takes the spot colour */
.ds-root .ds-comment-control[aria-pressed="true"] {
  background-color: var(--ds-color-accent);
  border-color: var(--ds-color-accent);
  color: var(--ds-color-text-on-accent);
}

.ds-root .ds-comment-control[aria-pressed="true"] .ds-comment-control__reach {
  color: var(--ds-color-text-on-accent);
}

/* corner: flush to the bottom-right of the screen it sits in; only the top-left corner is rounded */
.ds-root .ds-comment-control--corner {
  position: sticky;
  inset-block-end: 0;
  z-index: 10;
  align-self: flex-end;
  margin-inline-start: auto;
  border-inline-end: 0;
  border-block-end: 0;
  border-radius: var(--ds-radius-surface) 0 0 0;
  box-shadow: none;
}

/* in a row with the More button (and a menu), the row's end alignment places it; the auto margin would shove the
   row's other children to the far left */
.ds-root .ds-stack--horizontal > .ds-comment-control--corner {
  margin-inline-start: 0;
}

/* with a count, the mark steps aside */
.ds-root .ds-comment-control:has(.ds-comment-control__count) > .ds-icon {
  display: none;
}

/* the mark: other slides have open threads */
.ds-root .ds-comment-control__mark {
  position: absolute;
  inset-block-start: var(--ds-space-1);
  inset-inline-start: var(--ds-space-1);
  width: var(--ds-size-dot);
  height: var(--ds-size-dot);
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-color-status-warning-mark);
}

/* on touch screens the tag grows to the touch target, for fingers */
@media (pointer: coarse) {
  .ds-root .ds-comment-control {
    height: var(--ds-target-touch);
    min-width: var(--ds-target-touch);
  }

  .ds-root .ds-comment-control > .ds-icon,
  .ds-root .ds-comment-control__count {
    width: var(--ds-target-touch);
    height: var(--ds-target-touch);
  }
}

/* ---- design-system/components/basic/cmp-dialog/component.css ---- */
/* Dialog (Basic · surfaces). A native <dialog>: a raised panel on a dimmed page, its header fixed and its body
   scrolling. Opened modally by component.js (data-ds-dialog-open) or by a script's showModal(); Esc, Close and a
   click on the dimmed page close it, and focus returns to its opener. Shown in place (not modal) in a specimen. */

.ds-root .ds-dialog {
  display: flex;
  flex-direction: column;
  width: min(calc(100vw - var(--ds-space-6)), calc(var(--ds-layout-measure) + var(--ds-space-8)));
  max-width: none;
  max-height: calc(100vh - var(--ds-space-8));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: var(--ds-border-width) solid var(--ds-color-border-default);
  border-radius: var(--ds-radius-surface);
  background-color: var(--ds-color-surface-raised);
  color: var(--ds-color-text-default);
  box-shadow: var(--ds-shadow-overlay);
}

.ds-root .ds-dialog:not([open]) {
  display: none;
}

/* in a specimen or any page that shows it in place: part of the flow, never floating over it */
.ds-root .ds-dialog:not(:modal) {
  position: static;
  width: 100%;
  max-height: none;
  box-shadow: var(--ds-shadow-raised);
}

.ds-root .ds-dialog::backdrop {
  background-color: var(--ds-color-surface-strong);
  opacity: 0.45;
}

/* opening: the panel rises a little and fades in with the page behind it dimming; closing (data-ds-leaving, set by
   component.js until it closes) plays the same in reverse. The motion tokens are 0 under the still preset and reduced
   motion, so then it appears and goes at once. */
.ds-root .ds-dialog:modal[open] {
  animation: ds-dialog-in var(--ds-motion-settle) var(--ds-motion-ease);
}

.ds-root .ds-dialog:modal[open]::backdrop {
  animation: ds-dialog-dim var(--ds-motion-settle) var(--ds-motion-ease);
}

.ds-root .ds-dialog:modal[open][data-ds-leaving] {
  pointer-events: none;
  animation: ds-dialog-out var(--ds-motion-settle) var(--ds-motion-ease) forwards;
}

.ds-root .ds-dialog:modal[open][data-ds-leaving]::backdrop {
  animation: ds-dialog-undim var(--ds-motion-settle) var(--ds-motion-ease) forwards;
}

@keyframes ds-dialog-in {
  from {
    opacity: 0;
    transform: translateY(calc(var(--ds-motion-lift) * -2));
  }
}

@keyframes ds-dialog-dim {
  from {
    opacity: 0;
  }
}

@keyframes ds-dialog-out {
  to {
    opacity: 0;
    transform: translateY(calc(var(--ds-motion-lift) * -2));
  }
}

@keyframes ds-dialog-undim {
  to {
    opacity: 0;
  }
}

.ds-root .ds-dialog__header {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-3);
  padding: var(--ds-space-3) var(--ds-space-3) var(--ds-space-3) var(--ds-space-5);
  border-bottom: var(--ds-border-width) solid var(--ds-color-border-default);
}

.ds-root .ds-dialog__heading {
  display: flex;
  flex: 1 1 calc(var(--ds-text-size-md) * 12);
  flex-direction: column;
  gap: calc(var(--ds-space-1) / 2);
  min-width: 0;
}

.ds-root .ds-dialog__title {
  margin: 0;
  color: var(--ds-color-text-default);
  font-size: var(--ds-text-size-md);
  font-weight: var(--ds-text-weight-strong);
  line-height: var(--ds-text-leading-tight);
}

.ds-root .ds-dialog__meta {
  margin: 0;
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-xs);
  line-height: var(--ds-text-leading-tight);
}

.ds-root .ds-dialog__actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-2);
}

.ds-root .ds-dialog__close {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: var(--ds-target-min);
  padding: 0 var(--ds-space-3);
  border: 0;
  border-radius: var(--ds-radius-control);
  background-color: transparent;
  color: var(--ds-color-text-muted);
  font: inherit;
  font-size: var(--ds-text-size-sm);
  font-weight: var(--ds-text-weight-medium);
  cursor: pointer;
  transition: background-color var(--ds-motion-quick) var(--ds-motion-ease), color var(--ds-motion-quick) var(--ds-motion-ease);
}

.ds-root .ds-dialog__close:hover,
.ds-root .ds-dialog__close.is-hover {
  background-color: var(--ds-color-surface-sunken);
  color: var(--ds-color-text-default);
}

.ds-root .ds-dialog__close:focus-visible,
.ds-root .ds-dialog__close.is-focus {
  outline: var(--ds-focus-width) solid var(--ds-color-focus-ring);
  outline-offset: var(--ds-focus-offset);
}

.ds-root .ds-dialog__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: var(--ds-space-5);
  overflow: auto;
  overscroll-behavior: contain;
}

.ds-root .ds-dialog__body:focus-visible {
  outline: var(--ds-focus-width) solid var(--ds-color-focus-ring);
  outline-offset: calc(var(--ds-focus-width) * -1);
}

@container ds-screen (max-width: 720px) {
  .ds-root .ds-dialog__header {
    padding-left: var(--ds-space-4);
  }

  .ds-root .ds-dialog__body {
    padding: var(--ds-space-4);
  }
}

/* ---- design-system/components/basic/cmp-highlight/component.css ---- */
/* Highlight (Basic · display). A soft wash behind the words a thread is about, or a pending selection.
   Values come only from foundation tokens. States: :hover/.is-hover (the wash deepens), :focus-visible/.is-focus. */

.ds-root .ds-highlight {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--ds-radius-control);
  background-color: var(--ds-color-accent-surface);
  box-shadow: 0 0 0 var(--ds-space-1) var(--ds-color-accent-surface);
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  cursor: pointer;
  transition:
    opacity var(--ds-motion-settle) var(--ds-motion-ease),
    background-color var(--ds-motion-quick) var(--ds-motion-ease),
    box-shadow var(--ds-motion-quick) var(--ds-motion-ease),
    color var(--ds-motion-quick) var(--ds-motion-ease);
}

/* arriving (one frame): the wash fades in */
.ds-root .ds-highlight[data-ds-arriving] {
  opacity: 0;
  transition: none;
}

.ds-root .ds-highlight:hover,
.ds-root .ds-highlight.is-hover {
  background-color: var(--ds-color-accent);
  box-shadow: 0 0 0 var(--ds-space-1) var(--ds-color-accent);
  color: var(--ds-color-text-on-accent);
}

.ds-root .ds-highlight:focus-visible,
.ds-root .ds-highlight.is-focus {
  outline: var(--ds-focus-width) solid var(--ds-color-focus-ring);
  outline-offset: var(--ds-focus-offset);
}

/* selection: a pending selection, ink-underlined on a paper wash */
.ds-root .ds-highlight--selection {
  background-color: var(--ds-color-neutral-surface);
  box-shadow: 0 0 0 var(--ds-space-1) var(--ds-color-neutral-surface);
  text-decoration-line: underline;
  text-decoration-color: var(--ds-color-border-strong);
  text-decoration-thickness: var(--ds-border-width-strong);
  text-underline-offset: var(--ds-space-1);
  cursor: text;
}

.ds-root .ds-highlight--selection:hover,
.ds-root .ds-highlight--selection.is-hover {
  background-color: var(--ds-color-surface-sunken);
  box-shadow: 0 0 0 var(--ds-space-1) var(--ds-color-surface-sunken);
}

/* ---- design-system/components/basic/cmp-icon-button/component.css ---- */
/* Icon button (Basic · actions). A square control holding one icon. Values come only from foundation tokens.
   States: :hover/.is-hover, :focus-visible/.is-focus, :active/.is-pressed, [aria-pressed="true"] (on), [disabled]. */

.ds-root .ds-icon-button {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--ds-control-height);
  height: var(--ds-control-height);
  min-width: var(--ds-target-min);
  min-height: var(--ds-target-min);
  padding: 0;
  border: var(--ds-border-width) solid var(--ds-color-border-strong);
  border-radius: var(--ds-radius-control);
  background-color: var(--ds-color-surface-raised);
  color: var(--ds-color-text-default);
  line-height: 1;
  cursor: pointer;
  transition:
    background-color var(--ds-motion-quick) var(--ds-motion-ease),
    border-color var(--ds-motion-quick) var(--ds-motion-ease),
    color var(--ds-motion-quick) var(--ds-motion-ease);
}

.ds-root .ds-icon-button:hover:not(:disabled),
.ds-root .ds-icon-button.is-hover {
  background-color: var(--ds-color-surface-sunken);
}

.ds-root .ds-icon-button:active:not(:disabled),
.ds-root .ds-icon-button.is-pressed {
  background-color: var(--ds-color-surface-sunken);
  border-color: var(--ds-color-text-muted);
}

/* on: a toggle that is switched on */
.ds-root .ds-icon-button[aria-pressed="true"] {
  background-color: var(--ds-color-surface-sunken);
  border-color: var(--ds-color-text-muted);
}

/* quiet: no outline or fill at rest */
.ds-root .ds-icon-button--quiet {
  border-color: transparent;
  background-color: transparent;
  color: var(--ds-color-text-muted);
}

.ds-root .ds-icon-button--quiet:hover:not(:disabled),
.ds-root .ds-icon-button--quiet.is-hover {
  background-color: var(--ds-color-surface-sunken);
  color: var(--ds-color-text-default);
}

.ds-root .ds-icon-button--quiet:active:not(:disabled),
.ds-root .ds-icon-button--quiet.is-pressed {
  background-color: var(--ds-color-surface-sunken);
  border-color: var(--ds-color-border-strong);
  color: var(--ds-color-text-default);
}

.ds-root .ds-icon-button--quiet[aria-pressed="true"] {
  background-color: var(--ds-color-surface-sunken);
  border-color: var(--ds-color-border-strong);
  color: var(--ds-color-text-default);
}

.ds-root .ds-icon-button:focus-visible,
.ds-root .ds-icon-button.is-focus {
  outline: var(--ds-focus-width) solid var(--ds-color-focus-ring);
  outline-offset: var(--ds-focus-offset);
}

.ds-root .ds-icon-button:disabled {
  opacity: var(--ds-opacity-disabled);
  cursor: not-allowed;
}

/* ---- design-system/components/basic/cmp-inline-alert/component.css ---- */
/* Inline alert (Basic · feedback). An icon and a message on the tone's surface, edged in the tone's mark colour.
   Values come only from foundation tokens. Not interactive. */

.ds-root .ds-inline-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--ds-space-3);
  padding: var(--ds-space-3) var(--ds-space-4);
  border: var(--ds-border-width) solid var(--ds-color-status-info-mark);
  border-radius: var(--ds-radius-control);
  background-color: var(--ds-color-status-info-surface);
  color: var(--ds-color-status-info);
  font-size: var(--ds-text-size-sm);
  line-height: var(--ds-text-leading-body);
  text-align: start;
  transition: opacity var(--ds-motion-settle) var(--ds-motion-ease);
}

/* arriving (one frame) and leaving (until hidden): a message fades in and out */
.ds-root .ds-inline-alert[data-ds-arriving],
.ds-root .ds-inline-alert[data-ds-leaving] {
  opacity: 0;
}

.ds-root .ds-inline-alert[data-ds-arriving] {
  transition: none;
}

.ds-root .ds-inline-alert[hidden] {
  display: none;
}

/* the icon sits on the first line of text */
.ds-root .ds-inline-alert .ds-icon {
  flex: none;
  margin-top: calc((1lh - var(--ds-icon-size-sm)) / 2);
  width: var(--ds-icon-size-sm);
  height: var(--ds-icon-size-sm);
}

.ds-root .ds-inline-alert__body {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-1);
  flex: 1 1 auto;
  min-width: 0;
}

.ds-root .ds-inline-alert__title {
  font-weight: var(--ds-text-weight-strong);
  line-height: var(--ds-text-leading-body);
}

.ds-root .ds-inline-alert__text {
  line-height: var(--ds-text-leading-body);
  overflow-wrap: anywhere;
}

.ds-root .ds-inline-alert__text code {
  font-family: var(--ds-font-family-mono);
  font-size: var(--ds-text-size-xs);
}

.ds-root .ds-inline-alert--success {
  border-color: var(--ds-color-status-success-mark);
  background-color: var(--ds-color-status-success-surface);
  color: var(--ds-color-status-success);
}

.ds-root .ds-inline-alert--warning {
  border-color: var(--ds-color-status-warning-mark);
  background-color: var(--ds-color-status-warning-surface);
  color: var(--ds-color-status-warning);
}

.ds-root .ds-inline-alert--error {
  border-color: var(--ds-color-status-danger-mark);
  background-color: var(--ds-color-status-danger-surface);
  color: var(--ds-color-status-danger);
}

/* ---- design-system/components/basic/cmp-kbd/component.css ---- */
/* Key (Basic · display). A key people press, shown inside a line of text. Values come only from foundation
   tokens; the build scopes every rule under .ds-root. Not interactive: no hover, focus or press states. */

.ds-root .ds-kbd {
  display: inline-grid;
  place-items: center;
  min-width: calc(var(--ds-space-5) - var(--ds-space-1));
  height: calc(var(--ds-space-5) - var(--ds-space-1));
  padding: 0 var(--ds-space-1);
  border: var(--ds-border-width) solid var(--ds-color-border-strong);
  border-bottom-width: var(--ds-border-width-strong);
  border-radius: calc(var(--ds-radius-control) - var(--ds-space-1));
  background-color: var(--ds-color-surface-raised);
  color: var(--ds-color-text-default);
  font-family: var(--ds-font-family-base);
  font-size: var(--ds-text-size-sm);
  font-weight: var(--ds-text-weight-medium);
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
}

/* ---- design-system/components/basic/cmp-list-row/component.css ---- */
/* List row (Basic · surfaces). One item in a list: leading, text (with meta), trailing.
   Values come only from foundation tokens.
   States: :hover/.is-hover and :focus-visible/.is-focus (rows that are links or buttons), [aria-current] (current). */

.ds-root .ds-list-row {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  width: 100%;
  min-height: var(--ds-target-min);
  padding: var(--ds-space-3) var(--ds-space-4);
  border: 0;
  border-bottom: var(--ds-border-width) solid var(--ds-color-border-default);
  background-color: transparent;
  color: var(--ds-color-text-default);
  font-size: var(--ds-text-size-md);
  line-height: var(--ds-text-leading-tight);
  text-align: start;
  text-decoration: none;
  transition:
    background-color var(--ds-motion-quick) var(--ds-motion-ease),
    color var(--ds-motion-quick) var(--ds-motion-ease),
    box-shadow var(--ds-motion-quick) var(--ds-motion-ease);
}

/* the last row of a list has no divider, whether rows sit directly in a container or one per li */
.ds-root :not(li) > .ds-list-row:last-child,
.ds-root li:last-child > .ds-list-row {
  border-bottom: 0;
}

/* a ul or ol of rows: no bullets and no indent */
.ds-root :is(ul, ol):has(> li > .ds-list-row) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds-root .ds-list-row:is(a, button, label) {
  cursor: pointer;
}

.ds-root .ds-list-row:is(a, button, label):hover,
.ds-root .ds-list-row.is-hover {
  background-color: var(--ds-color-surface-sunken);
}

/* focus is drawn inside the row so a card's edge never clips it */
.ds-root .ds-list-row:focus-visible,
.ds-root .ds-list-row.is-focus {
  outline: var(--ds-focus-width) solid var(--ds-color-focus-ring);
  outline-offset: calc(var(--ds-focus-width) * -1);
}

.ds-root .ds-list-row[aria-current]:not([aria-current="false"]) {
  background-color: var(--ds-color-surface-sunken);
  font-weight: var(--ds-text-weight-strong);
}

.ds-root .ds-list-row__leading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--ds-color-text-muted);
  transition: color var(--ds-motion-quick) var(--ds-motion-ease);
}

.ds-root .ds-list-row__text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ds-root .ds-list-row__meta {
  display: block;
  margin-top: var(--ds-space-1);
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-sm);
  font-weight: var(--ds-text-weight-regular);
}

.ds-root .ds-list-row__trailing {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  flex: none;
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-sm);
  font-weight: var(--ds-text-weight-regular);
  font-variant-numeric: tabular-nums;
}

/* compact: a navigation row; muted until hovered, with a raised highlight on the current destination */
.ds-root .ds-list-row--compact {
  gap: var(--ds-space-2);
  padding: var(--ds-space-2) var(--ds-space-3);
  border-bottom: 0;
  border-radius: var(--ds-radius-control);
  color: var(--ds-color-text-muted);
  font-weight: var(--ds-text-weight-medium);
}

.ds-root .ds-list-row--compact .ds-list-row__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
}

.ds-root .ds-list-row--compact:is(a, button, label):hover,
.ds-root .ds-list-row--compact.is-hover {
  background-color: var(--ds-color-surface-sunken);
  color: var(--ds-color-text-default);
}

.ds-root .ds-list-row--compact[aria-current]:not([aria-current="false"]) {
  background-color: var(--ds-color-surface-raised);
  color: var(--ds-color-text-default);
  font-weight: var(--ds-text-weight-strong);
  box-shadow: inset 0 0 0 var(--ds-border-width) var(--ds-color-border-default), var(--ds-shadow-raised);
}

.ds-root .ds-list-row--compact[aria-current]:not([aria-current="false"]) .ds-list-row__leading {
  color: var(--ds-color-text-default);
}

/* ---- design-system/components/basic/cmp-pin/component.css ---- */
/* Pin (Basic · feedback). A small ink-edged paper tag at an exact spot, with the pin mark or the thread's number.
   Values come only from foundation tokens. States: :hover/.is-hover, :focus-visible/.is-focus, [aria-expanded="true"] (open). */

.ds-root .ds-pin {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--ds-target-min);
  height: var(--ds-target-min);
  padding: 0;
  border: var(--ds-border-width) solid var(--ds-color-border-strong);
  border-radius: var(--ds-radius-pill) var(--ds-radius-pill) var(--ds-radius-pill) 0;
  background-color: var(--ds-color-surface-raised);
  box-shadow: var(--ds-shadow-raised);
  color: var(--ds-color-text-default);
  font-family: var(--ds-font-family-mono);
  font-size: var(--ds-text-size-sm);
  font-weight: var(--ds-text-weight-strong);
  line-height: 1;
  cursor: pointer;
  transition:
    opacity var(--ds-motion-settle) var(--ds-motion-ease),
    background-color var(--ds-motion-quick) var(--ds-motion-ease),
    border-color var(--ds-motion-quick) var(--ds-motion-ease),
    color var(--ds-motion-quick) var(--ds-motion-ease);
}

/* arriving (one frame) and leaving (until hidden): the pin fades */
.ds-root .ds-pin[data-ds-arriving],
.ds-root .ds-pin[data-ds-leaving] {
  opacity: 0;
}

.ds-root .ds-pin[data-ds-arriving] {
  transition: none;
}

.ds-root .ds-pin__number {
  display: block;
}

.ds-root .ds-pin:hover,
.ds-root .ds-pin.is-hover {
  background-color: var(--ds-color-surface-sunken);
}

.ds-root .ds-pin:focus-visible,
.ds-root .ds-pin.is-focus {
  outline: var(--ds-focus-width) solid var(--ds-color-focus-ring);
  outline-offset: var(--ds-focus-offset);
}

/* open: its thread is open beside it */
.ds-root .ds-pin[aria-expanded="true"] {
  background-color: var(--ds-color-accent);
  border-color: var(--ds-color-accent);
  color: var(--ds-color-text-on-accent);
}

/* with a number, the mark steps aside */
.ds-root .ds-pin__number + .ds-icon,
.ds-root .ds-pin:has(.ds-pin__number) > .ds-icon {
  display: none;
}

/* ---- design-system/components/basic/cmp-segmented-control/component.css ---- */
/* Segmented control (Basic · inputs). Native radios on a sunken track; the checked option is a raised segment.
   Values come only from foundation tokens.
   States: :hover/.is-hover, :focus-visible/.is-focus (on the option), :checked (selected), :disabled. */

.ds-root .ds-segmented-control {
  display: inline-flex;
  align-items: stretch;
  gap: var(--ds-border-width-strong);
  min-height: var(--ds-control-height);
  max-width: 100%;
  padding: var(--ds-border-width-strong);
  border: var(--ds-border-width) solid var(--ds-color-border-default);
  border-radius: var(--ds-radius-control);
  background-color: var(--ds-color-surface-sunken);
  vertical-align: middle;
}

.ds-root .ds-segmented-control--fill {
  display: flex;
  width: 100%;
}

.ds-root .ds-segmented-control__option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-1);
  padding: 0 var(--ds-space-3);
  border: var(--ds-border-width) solid transparent;
  border-radius: calc(var(--ds-radius-control) - var(--ds-border-width-strong));
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-sm);
  font-weight: var(--ds-text-weight-medium);
  line-height: var(--ds-text-leading-tight);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--ds-motion-quick) var(--ds-motion-ease),
    border-color var(--ds-motion-quick) var(--ds-motion-ease),
    color var(--ds-motion-quick) var(--ds-motion-ease),
    box-shadow var(--ds-motion-quick) var(--ds-motion-ease);
}

.ds-root .ds-segmented-control--fill .ds-segmented-control__option {
  flex: 1 1 0;
  min-width: max-content;
}

.ds-root .ds-segmented-control__option .ds-icon {
  width: var(--ds-icon-size-sm);
  height: var(--ds-icon-size-sm);
}

/* the radio covers its option invisibly, so the whole option is the target */
.ds-root .ds-segmented-control__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.ds-root .ds-segmented-control__option:hover,
.ds-root .ds-segmented-control__option.is-hover {
  color: var(--ds-color-text-default);
}

.ds-root .ds-segmented-control__option:has(.ds-segmented-control__input:checked) {
  border-color: var(--ds-color-border-default);
  background-color: var(--ds-color-surface-raised);
  color: var(--ds-color-text-default);
  box-shadow: var(--ds-shadow-raised);
}

.ds-root .ds-segmented-control__option:has(.ds-segmented-control__input:focus-visible),
.ds-root .ds-segmented-control__option.is-focus {
  outline: var(--ds-focus-width) solid var(--ds-color-focus-ring);
  outline-offset: var(--ds-border-width);
}

.ds-root .ds-segmented-control__option:has(.ds-segmented-control__input:disabled) {
  opacity: var(--ds-opacity-disabled);
  cursor: not-allowed;
}

.ds-root .ds-segmented-control__input:disabled {
  cursor: not-allowed;
}

/* ---- design-system/components/basic/cmp-select/component.css ---- */
/* Select (Basic · inputs). A native select with a drawn caret. Values come only from foundation tokens.
   States: :hover/.is-hover, :focus-visible/.is-focus, [aria-invalid="true"], :disabled. */

.ds-root .ds-select {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
  min-width: 0;
}

.ds-root .ds-select__label {
  color: var(--ds-color-text-default);
  font-size: var(--ds-text-size-sm);
  font-weight: var(--ds-text-weight-medium);
  line-height: var(--ds-text-leading-tight);
}

/* the caret is two small gradient triangles in the muted text colour, so it follows the theme */
.ds-root .ds-select__input {
  display: block;
  width: 100%;
  min-height: var(--ds-control-height);
  padding: 0 calc(var(--ds-space-4) * 2) 0 var(--ds-space-3);
  border: var(--ds-border-width) solid var(--ds-color-border-strong);
  border-radius: var(--ds-radius-control);
  background-color: var(--ds-color-surface-raised);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ds-color-text-muted) 50%),
    linear-gradient(135deg, var(--ds-color-text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - var(--ds-space-4) - var(--ds-space-1)) 52%,
    calc(100% - var(--ds-space-4)) 52%;
  background-size: var(--ds-space-1) var(--ds-space-1);
  background-repeat: no-repeat;
  color: var(--ds-color-text-default);
  font-family: var(--ds-font-family-base);
  font-size: var(--ds-text-size-md);
  line-height: var(--ds-text-leading-tight);
  appearance: none;
  cursor: pointer;
  transition:
    border-color var(--ds-motion-quick) var(--ds-motion-ease),
    box-shadow var(--ds-motion-quick) var(--ds-motion-ease);
}

.ds-root .ds-select__input:hover:not(:disabled),
.ds-root .ds-select__input.is-hover {
  border-color: var(--ds-color-text-muted);
}

.ds-root .ds-select__input[aria-invalid="true"] {
  border-color: var(--ds-color-status-danger);
  box-shadow: 0 0 0 var(--ds-border-width) var(--ds-color-status-danger);
}

.ds-root .ds-select__input:focus-visible,
.ds-root .ds-select__input.is-focus {
  border-color: var(--ds-color-focus-ring);
  box-shadow: none;
  outline: var(--ds-border-width) solid var(--ds-color-focus-ring);
  outline-offset: 0;
}

.ds-root .ds-select__input:disabled {
  border-color: var(--ds-color-border-default);
  background-color: var(--ds-color-surface-sunken);
  color: var(--ds-color-text-muted);
  cursor: not-allowed;
}

.ds-root .ds-select:has(.ds-select__input:disabled) .ds-select__label {
  color: var(--ds-color-text-muted);
}

.ds-root .ds-select__hint {
  display: block;
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-sm);
  line-height: var(--ds-text-leading-tight);
}

.ds-root .ds-select__error {
  display: flex;
  align-items: flex-start;
  gap: var(--ds-space-1);
  color: var(--ds-color-status-danger);
  font-size: var(--ds-text-size-sm);
  font-weight: var(--ds-text-weight-medium);
  line-height: var(--ds-text-leading-tight);
}

.ds-root .ds-select__error .ds-icon {
  width: var(--ds-icon-size-sm);
  height: var(--ds-icon-size-sm);
}

/* ---- design-system/components/basic/cmp-slide/component.css ---- */
/* Slide (Basic · surfaces). One slide of a deck: a 16:9 sheet with an ink edge and a hard shadow, its title, its
   points and its number; a layer over it where pins sit. Values come only from foundation tokens.
   Motion: a slide arrives and leaves with a fade over --ds-motion-settle (data-ds-arriving, data-ds-leaving). */

.ds-root .ds-slide {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-4);
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: var(--ds-space-7) var(--ds-space-8);
  border: var(--ds-border-width) solid var(--ds-color-border-strong);
  border-radius: var(--ds-radius-surface);
  background-color: var(--ds-color-surface-raised);
  box-shadow: var(--ds-shadow-frame);
  color: var(--ds-color-text-default);
  transition: opacity var(--ds-motion-settle) var(--ds-motion-ease);
}

.ds-root .ds-slide[data-ds-arriving],
.ds-root .ds-slide[data-ds-leaving] {
  opacity: 0;
}

.ds-root .ds-slide[data-ds-arriving] {
  transition: none;
}

.ds-root .ds-slide[hidden] {
  display: none;
}

.ds-root .ds-slide__title {
  font-size: var(--ds-text-size-3xl);
  font-weight: var(--ds-text-weight-strong);
  line-height: var(--ds-text-leading-tight);
  letter-spacing: var(--ds-text-tracking-display);
  text-wrap: balance;
}

.ds-root .ds-slide__body {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
  font-size: var(--ds-text-size-xl);
  line-height: var(--ds-text-leading-body);
}

.ds-root .ds-slide__number {
  position: absolute;
  inset-block-end: var(--ds-space-4);
  inset-inline-end: var(--ds-space-5);
  color: var(--ds-color-text-muted);
  font-family: var(--ds-font-family-mono);
  font-size: var(--ds-text-size-sm);
}

/* the pins' layer: in a mock, a row at the top-right corner stands in for their exact spots */
.ds-root .ds-slide__pins {
  position: absolute;
  inset-block-start: var(--ds-space-4);
  inset-inline-end: var(--ds-space-5);
  display: flex;
  gap: var(--ds-space-2);
}

/* ---- design-system/components/basic/cmp-sparkline/component.css ---- */
/* Sparkline (Basic · display). A word-sized chart of one series, set in the line of text: a thin line (or thin bars),
   the last point marked and written beside it. Values come only from foundation tokens; positions that are data are
   SVG coordinates, and a mark is a zero-length line with a round cap, so it stays round however the plot stretches. */

.ds-root .ds-sparkline {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-1);
  vertical-align: middle;
  color: var(--ds-color-text-default);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ds-root .ds-sparkline__plot {
  display: block;
  width: calc(var(--ds-text-size-md) * 5);
  height: var(--ds-text-size-md);
  overflow: visible;
}

.ds-root .ds-sparkline__line {
  fill: none;
  stroke: var(--ds-color-text-muted);
  stroke-width: var(--ds-border-width-strong);
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.ds-root .ds-sparkline__bar {
  fill: var(--ds-color-border-strong);
}

.ds-root .ds-sparkline__bar--last {
  fill: var(--ds-color-accent);
}

.ds-root .ds-sparkline__mark {
  stroke: var(--ds-color-accent);
  stroke-width: var(--ds-size-dot);
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.ds-root .ds-sparkline__mark--low,
.ds-root .ds-sparkline__mark--high {
  stroke: var(--ds-color-text-muted);
}

.ds-root .ds-sparkline__value {
  font-weight: var(--ds-text-weight-medium);
}

.ds-root .ds-sparkline__range {
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-xs);
}

/* ---- design-system/components/basic/cmp-status-pill/component.css ---- */
/* Status pill (Basic · feedback). A word on a quiet neutral fill, led by a dot in the tone's mark colour.
   Values come only from foundation tokens. Not interactive. */

.ds-root .ds-status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  flex: none;
  max-width: 100%;
  padding: var(--ds-space-1) var(--ds-space-3);
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-color-neutral-surface);
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-xs);
  font-weight: var(--ds-text-weight-medium);
  line-height: var(--ds-text-leading-tight);
  white-space: nowrap;
  vertical-align: middle;
}

/* the dot is a mark beside the word, never the only signal; it keeps the pill's own corner shape */
.ds-root .ds-status-pill::before {
  content: "";
  flex: none;
  width: var(--ds-size-dot);
  height: var(--ds-size-dot);
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-color-neutral-mark);
}

.ds-root .ds-status-pill--info::before {
  background-color: var(--ds-color-status-info-mark);
}

.ds-root .ds-status-pill--success::before {
  background-color: var(--ds-color-status-success-mark);
}

.ds-root .ds-status-pill--warning::before {
  background-color: var(--ds-color-status-warning-mark);
}

.ds-root .ds-status-pill--danger::before {
  background-color: var(--ds-color-status-danger-mark);
}

/* ---- design-system/components/basic/cmp-switch/component.css ---- */
/* Switch (Basic · inputs). A small ink-edged track with a square paper knob that slides to the end when on.
   Values come only from foundation tokens. States: :hover/.is-hover, :focus-visible/.is-focus, [aria-checked="true"] (on), [disabled]. */

.ds-root .ds-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  width: calc(var(--ds-icon-size) * 2);
  height: var(--ds-icon-size);
  padding: 0;
  border: var(--ds-border-width) solid var(--ds-color-border-strong);
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-color-surface-sunken);
  cursor: pointer;
  transition:
    background-color var(--ds-motion-quick) var(--ds-motion-ease),
    border-color var(--ds-motion-quick) var(--ds-motion-ease);
}

.ds-root .ds-switch__knob {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 50%;
  border: var(--ds-border-width) solid var(--ds-color-border-strong);
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-color-surface-raised);
  transition:
    translate var(--ds-motion-settle) var(--ds-motion-ease),
    background-color var(--ds-motion-quick) var(--ds-motion-ease);
}

.ds-root .ds-switch:hover:not(:disabled),
.ds-root .ds-switch.is-hover {
  background-color: var(--ds-color-neutral-surface);
}

.ds-root .ds-switch:focus-visible,
.ds-root .ds-switch.is-focus {
  outline: var(--ds-focus-width) solid var(--ds-color-focus-ring);
  outline-offset: var(--ds-focus-offset);
}

/* on: the track takes the spot colour and the knob slides to the end */
.ds-root .ds-switch[aria-checked="true"] {
  background-color: var(--ds-color-accent);
  border-color: var(--ds-color-accent);
}

.ds-root .ds-switch[aria-checked="true"] .ds-switch__knob {
  translate: 100% 0;
}

.ds-root .ds-switch:disabled {
  opacity: var(--ds-opacity-disabled);
  cursor: not-allowed;
}

/* ---- design-system/components/basic/cmp-table/component.css ---- */
/* Table (Basic · display). A native data table with a caption, hairline rows and a muted header.
   Values come only from foundation tokens. Not interactive. */

.ds-root .ds-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  color: var(--ds-color-text-default);
  font-size: var(--ds-text-size-md);
  line-height: var(--ds-text-leading-tight);
  text-align: start;
}

.ds-root .ds-table__caption {
  caption-side: top;
  padding: 0 0 var(--ds-space-3);
  color: var(--ds-color-text-default);
  font-size: var(--ds-text-size-sm);
  font-weight: var(--ds-text-weight-strong);
  text-align: start;
}

.ds-root .ds-table th,
.ds-root .ds-table td {
  padding: var(--ds-space-3) var(--ds-space-4);
  border-bottom: var(--ds-border-width) solid var(--ds-color-border-default);
  text-align: start;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.ds-root .ds-table th:first-child,
.ds-root .ds-table td:first-child {
  padding-inline-start: 0;
}

.ds-root .ds-table th:last-child,
.ds-root .ds-table td:last-child {
  padding-inline-end: 0;
}

.ds-root .ds-table thead th {
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-xs);
  font-weight: var(--ds-text-weight-strong);
  letter-spacing: var(--ds-text-tracking-normal);
}

.ds-root .ds-table tbody th {
  font-weight: var(--ds-text-weight-medium);
}

.ds-root .ds-table tbody tr:last-child th,
.ds-root .ds-table tbody tr:last-child td {
  border-bottom: 0;
}

.ds-root .ds-table th.ds-table__numeric,
.ds-root .ds-table td.ds-table__numeric {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

/* compact: tighter rows for dense reference data */
.ds-root .ds-table--compact {
  font-size: var(--ds-text-size-sm);
}

.ds-root .ds-table--compact th,
.ds-root .ds-table--compact td {
  padding: var(--ds-space-2) var(--ds-space-3);
}

/* ---- design-system/components/basic/cmp-tabs/component.css ---- */
/* Tabs (Basic · inputs). Text tabs on a hairline; the selected tab carries an underline and the default text colour;
   its weight never changes, so no tab changes width.
   Values come only from foundation tokens.
   States: :hover/.is-hover, :focus-visible/.is-focus, [aria-selected="true"] (selected), [aria-disabled="true"] (disabled).
   Motion: words ease over quick; the underline grows from the centre and the panel arrives over settle.
   Under the still preset and reduced motion the tokens are 0, so both change at once.
   Without script every panel shows; component.js hides all but the selected one. */

.ds-root .ds-tabs {
  display: block;
  min-width: 0;
}

.ds-root .ds-tabs__list {
  display: flex;
  align-items: stretch;
  gap: var(--ds-space-4);
  min-width: 0;
  overflow-x: auto;
  /* the hairline is an inset shadow, so the underline can cover it inside the scrolling row */
  box-shadow: inset 0 calc(var(--ds-border-width) * -1) 0 var(--ds-color-border-default);
  scrollbar-width: none;
}

.ds-root .ds-tabs__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: var(--ds-target-min);
  margin: 0;
  padding: var(--ds-space-2) var(--ds-space-1);
  border: 0;
  background-color: transparent;
  color: var(--ds-color-text-muted);
  font-family: inherit;
  font-size: var(--ds-text-size-sm);
  font-weight: var(--ds-text-weight-medium);
  line-height: var(--ds-text-leading-tight);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--ds-motion-quick) var(--ds-motion-ease);
}

/* the underline: covers the list's hairline and grows from the tab's centre when it is selected */
.ds-root .ds-tabs__tab::after {
  content: "";
  position: absolute;
  inset-inline: var(--ds-space-1);
  bottom: 0;
  height: var(--ds-border-width-strong);
  background-color: var(--ds-color-accent);
  opacity: 0;
  transform: scaleX(0);
  transition:
    transform var(--ds-motion-settle) var(--ds-motion-ease),
    opacity var(--ds-motion-settle) var(--ds-motion-ease);
}

.ds-root .ds-tabs__tab:hover,
.ds-root .ds-tabs__tab.is-hover {
  color: var(--ds-color-text-default);
}

.ds-root .ds-tabs__tab:focus-visible,
.ds-root .ds-tabs__tab.is-focus {
  outline: var(--ds-focus-width) solid var(--ds-color-focus-ring);
  outline-offset: calc(var(--ds-focus-width) * -1);
  border-radius: var(--ds-radius-control);
}

.ds-root .ds-tabs__tab[aria-selected="true"] {
  color: var(--ds-color-text-default);
}

.ds-root .ds-tabs__tab[aria-selected="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.ds-root .ds-tabs__tab[aria-disabled="true"] {
  opacity: var(--ds-opacity-disabled);
  color: var(--ds-color-text-muted);
  cursor: not-allowed;
}

.ds-root .ds-tabs__panel {
  padding-top: var(--ds-space-5);
  transition:
    opacity var(--ds-motion-settle) var(--ds-motion-ease),
    transform var(--ds-motion-settle) var(--ds-motion-ease);
}

/* a panel that is arriving starts faded and a lift lower; component.js removes this on the next frame */
.ds-root .ds-tabs__panel[data-ds-arriving] {
  opacity: 0;
  transform: translateY(calc(var(--ds-motion-lift) * -1));
  transition: none;
}

.ds-root .ds-tabs__panel:focus-visible {
  outline: var(--ds-focus-width) solid var(--ds-color-focus-ring);
  outline-offset: var(--ds-focus-offset);
}

.ds-root .ds-tabs__panel[hidden] {
  display: none;
}

/* ---- design-system/components/basic/cmp-text-field/component.css ---- */
/* Text field (Basic · inputs). Label, input, optional hint, error. Values come only from foundation tokens.
   States: :hover/.is-hover, :focus-visible/.is-focus, [aria-invalid="true"], :disabled. */

.ds-root .ds-text-field {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
  min-width: 0;
}

.ds-root .ds-text-field__label {
  color: var(--ds-color-text-default);
  font-size: var(--ds-text-size-sm);
  font-weight: var(--ds-text-weight-medium);
  line-height: var(--ds-text-leading-tight);
}

.ds-root .ds-text-field__input {
  display: block;
  width: 100%;
  min-height: var(--ds-control-height);
  padding: 0 var(--ds-space-3);
  border: var(--ds-border-width) solid var(--ds-color-border-strong);
  border-radius: var(--ds-radius-control);
  background-color: var(--ds-color-surface-raised);
  color: var(--ds-color-text-default);
  font-family: var(--ds-font-family-base);
  font-size: var(--ds-text-size-md);
  line-height: var(--ds-text-leading-tight);
  appearance: none;
  transition:
    border-color var(--ds-motion-quick) var(--ds-motion-ease),
    box-shadow var(--ds-motion-quick) var(--ds-motion-ease);
}

.ds-root textarea.ds-text-field__input {
  min-height: calc(var(--ds-control-height) * 2.5);
  padding: var(--ds-space-2) var(--ds-space-3);
  line-height: var(--ds-text-leading-body);
  resize: vertical;
}

.ds-root .ds-text-field__input:hover:not(:disabled),
.ds-root .ds-text-field__input.is-hover {
  border-color: var(--ds-color-text-muted);
}

/* invalid: a two-pixel danger edge, drawn without changing the field's size */
.ds-root .ds-text-field__input[aria-invalid="true"] {
  border-color: var(--ds-color-status-danger);
  box-shadow: 0 0 0 var(--ds-border-width) var(--ds-color-status-danger);
}

/* focus: a two-pixel ring in the focus colour hugging the field; it wins over hover and invalid */
.ds-root .ds-text-field__input:focus-visible,
.ds-root .ds-text-field__input.is-focus {
  border-color: var(--ds-color-focus-ring);
  box-shadow: none;
  outline: var(--ds-border-width) solid var(--ds-color-focus-ring);
  outline-offset: 0;
}

.ds-root .ds-text-field__input:disabled {
  border-color: var(--ds-color-border-default);
  background-color: var(--ds-color-surface-sunken);
  color: var(--ds-color-text-muted);
  cursor: not-allowed;
}

.ds-root .ds-text-field:has(.ds-text-field__input:disabled) .ds-text-field__label {
  color: var(--ds-color-text-muted);
}

.ds-root .ds-text-field__hint {
  display: block;
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-sm);
  line-height: var(--ds-text-leading-tight);
}

.ds-root .ds-text-field__error {
  display: flex;
  align-items: flex-start;
  gap: var(--ds-space-1);
  color: var(--ds-color-status-danger);
  font-size: var(--ds-text-size-sm);
  font-weight: var(--ds-text-weight-medium);
  line-height: var(--ds-text-leading-tight);
}

.ds-root .ds-text-field__error .ds-icon {
  width: var(--ds-icon-size-sm);
  height: var(--ds-icon-size-sm);
}

/* ---- design-system/components/composite/cmp-comment-card/component.css ---- */
/* Comment card (Composite · collections). Built from cmp-avatar (sm), cmp-icon-button (quiet), cmp-button (primary,
   quiet) and cmp-text-field. A small sheet of paper with an ink edge and a hard shadow; this file lays its parts out
   and styles only its own.
   States: :hover/.is-hover (actions fade in); variants open (lifted, replies and reply box) and composing (new comment).
   Motion: actions fade over --ds-motion-settle; the lift and shadow ease over --ds-motion-settle. */

.ds-root .ds-comment-card {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
  width: 100%;
  max-width: calc(var(--ds-space-8) * 4.5);
  min-width: 0;
  padding: var(--ds-space-3);
  border: var(--ds-border-width) solid var(--ds-color-border-strong);
  border-radius: var(--ds-radius-surface);
  background-color: var(--ds-color-surface-raised);
  box-shadow: var(--ds-shadow-raised);
  color: var(--ds-color-text-default);
  font-size: var(--ds-text-size-sm);
  transition:
    opacity var(--ds-motion-settle) var(--ds-motion-ease),
    box-shadow var(--ds-motion-settle) var(--ds-motion-ease),
    transform var(--ds-motion-settle) var(--ds-motion-ease);
}

/* arriving (one frame) and leaving (until hidden): the card fades and settles */
.ds-root .ds-comment-card[data-ds-arriving],
.ds-root .ds-comment-card[data-ds-leaving] {
  opacity: 0;
  transform: translateY(calc(var(--ds-motion-lift) * -1));
}

.ds-root .ds-comment-card[data-ds-arriving] {
  transition: none;
}

.ds-root .ds-comment-card[hidden] {
  display: none;
}

.ds-root .ds-comment-card__head {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.ds-root .ds-comment-card__name {
  overflow: hidden;
  font-weight: var(--ds-text-weight-strong);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ds-root .ds-comment-card__time {
  flex: none;
  color: var(--ds-color-text-muted);
  font-family: var(--ds-font-family-mono);
  font-size: var(--ds-text-size-xs);
}

/* the actions: at the top right, faded away until hover, focus or open */
.ds-root .ds-comment-card__actions {
  display: flex;
  flex: none;
  margin-inline-start: auto;
  opacity: 0;
  transition: opacity var(--ds-motion-settle) var(--ds-motion-ease);
}

.ds-root .ds-comment-card:hover .ds-comment-card__actions,
.ds-root .ds-comment-card.is-hover .ds-comment-card__actions,
.ds-root .ds-comment-card:focus-within .ds-comment-card__actions,
.ds-root .ds-comment-card--open .ds-comment-card__actions {
  opacity: 1;
}

.ds-root .ds-comment-card__text {
  line-height: var(--ds-text-leading-body);
  overflow-wrap: anywhere;
}

/* at rest, a long comment shows its first lines */
.ds-root .ds-comment-card:not(.ds-comment-card--open) .ds-comment-card__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.ds-root .ds-comment-card__count {
  color: var(--ds-color-text-muted);
  font-family: var(--ds-font-family-mono);
  font-size: var(--ds-text-size-xs);
}

/* open: lifted, with the replies indented beneath the comment and the reply box last */
.ds-root .ds-comment-card--open {
  box-shadow: var(--ds-shadow-lifted);
  transform: translateY(var(--ds-motion-lift));
}

.ds-root .ds-comment-card__replies {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
  margin: 0;
  padding: 0 0 0 var(--ds-space-5);
  border-inline-start: var(--ds-border-width) solid var(--ds-color-border-default);
  list-style: none;
}

.ds-root .ds-comment-card__reply {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-1);
}

.ds-root .ds-comment-card__box {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
}

.ds-root .ds-comment-card__buttons {
  display: flex;
  justify-content: flex-end;
  gap: var(--ds-space-1);
}

/* composing: who you are, with the invitation to add a name */
.ds-root .ds-comment-card__you {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  color: var(--ds-color-text-muted);
}

/* the reactions row: given reactions as pills, and the quick row of emoji while React is pressed */
.ds-root .ds-comment-card__reactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-1);
}

.ds-root .ds-comment-card__quick {
  display: inline-flex;
  gap: 0;
  opacity: 1;
  transition: opacity var(--ds-motion-settle) var(--ds-motion-ease);
}

.ds-root .ds-comment-card__quick[data-ds-arriving],
.ds-root .ds-comment-card__quick[data-ds-leaving] {
  opacity: 0;
}

.ds-root .ds-comment-card__quick[data-ds-arriving] {
  transition: none;
}

.ds-root .ds-comment-card__quick[hidden] {
  display: none;
}

/* ---- design-system/components/composite/cmp-comments-panel/component.css ---- */
/* Comments panel (Composite · connected). Built from cmp-chip (filter), cmp-icon-button (quiet), cmp-comment-card,
   cmp-avatar (sm), cmp-button (quiet), cmp-kbd and cmp-switch. A sheet beside the page with an ink edge on its start
   side; this file lays its parts out and styles only its own.
   States: default (closed, hidden) and open. Motion: the panel slides in from the end over --ds-motion-settle
   (data-ds-arriving for one frame, data-ds-leaving until hidden). */

.ds-root .ds-comments-panel {
  display: flex;
  flex-direction: column;
  width: var(--ds-layout-panel);
  max-width: 100%;
  position: sticky;
  inset-block-start: 0;
  align-self: start;
  height: 100vh;
  max-height: 100vh;
  min-height: 0;
  border-inline-start: var(--ds-border-width) solid var(--ds-color-border-strong);
  background-color: var(--ds-color-surface-default);
  color: var(--ds-color-text-default);
  transition:
    opacity var(--ds-motion-settle) var(--ds-motion-ease),
    translate var(--ds-motion-settle) var(--ds-motion-ease);
}

.ds-root .ds-comments-panel[data-ds-arriving],
.ds-root .ds-comments-panel[data-ds-leaving] {
  opacity: 0;
  translate: var(--ds-space-6) 0;
}

.ds-root .ds-comments-panel[data-ds-arriving] {
  transition: none;
}

.ds-root .ds-comments-panel[hidden] {
  display: none;
}

.ds-root .ds-comments-panel__top {
  display: flex;
  align-items: center;
  gap: var(--ds-space-1);
  flex: none;
  padding: var(--ds-space-2) var(--ds-space-3);
  border-block-end: var(--ds-border-width) solid var(--ds-color-border-default);
  white-space: nowrap;
}

.ds-root .ds-comments-panel__top > .ds-icon-button {
  margin-inline-start: auto;
}

.ds-root .ds-comments-panel__list {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-4);
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: var(--ds-space-4) var(--ds-space-3);
  overflow-y: auto;
  list-style: none;
}

.ds-root .ds-comments-panel__list > li {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-1);
}

.ds-root .ds-comments-panel__about {
  overflow: hidden;
  color: var(--ds-color-text-muted);
  font-family: var(--ds-font-family-mono);
  font-size: var(--ds-text-size-xs);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ds-root .ds-comments-panel__empty {
  padding: var(--ds-space-4) var(--ds-space-3);
  color: var(--ds-color-text-muted);
}

.ds-root .ds-comments-panel__footer {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  flex: none;
  padding: var(--ds-space-2) var(--ds-space-3);
  border-block-start: var(--ds-border-width) solid var(--ds-color-border-strong);
  background-color: var(--ds-color-surface-raised);
  white-space: nowrap;
}

.ds-root .ds-comments-panel__footer > .ds-popover-menu,
.ds-root .ds-comments-panel__footer > .ds-icon-button {
  margin-inline-start: auto;
}

/* a group heading on a deck: the slide and its count; this slide's group is marked */
.ds-root .ds-comments-panel__group {
  margin: 0;
  padding-block: var(--ds-space-2);
  border-block-end: var(--ds-border-width) solid var(--ds-color-border-default);
  color: var(--ds-color-text-muted);
  font-family: var(--ds-font-family-mono);
  font-size: var(--ds-text-size-xs);
  letter-spacing: var(--ds-text-tracking-caps);
  text-transform: uppercase;
  transition:
    color var(--ds-motion-quick) var(--ds-motion-ease),
    border-color var(--ds-motion-quick) var(--ds-motion-ease);
}

.ds-root .ds-comments-panel__group[aria-current="true"] {
  color: var(--ds-color-text-default);
  border-block-end-color: var(--ds-color-border-strong);
}

/* on a narrow screen the panel takes the full width */
@container ds-screen (max-width: 720px) {
  .ds-root .ds-comments-panel {
    width: 100%;
    border-inline-start: 0;
  }
}

/* ---- design-system/components/composite/cmp-naming-bar/component.css ---- */
/* Naming bar (Composite · connected). Built from cmp-icon-button (quiet). The bar names the picked block and holds
   three actions; the target is the block itself with a dashed ink outline drawn outside it. This file lays the bar
   out and styles only its own parts.
   States: default, and hover (.is-hover: the bar fades to half while the pointer rests on the page's words beside it).
   Motion: the bar's opacity eases over --ds-motion-quick; the outline eases over --ds-motion-settle. */

.ds-root .ds-naming-bar {
  position: relative;
  display: block;
}

/* the room for the bar is taken only while the bar shows */
.ds-root .ds-naming-bar:has(.ds-naming-bar__bar:not([hidden])) {
  padding-block-start: var(--ds-control-height);
}

.ds-root .ds-naming-bar__bar {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-1);
  max-width: 100%;
  height: var(--ds-control-height);
  padding-inline-start: var(--ds-space-3);
  border: var(--ds-border-width) solid var(--ds-color-accent);
  border-block-end: 0;
  border-radius: var(--ds-radius-control) var(--ds-radius-control) 0 0;
  background-color: var(--ds-color-surface-raised);
  color: var(--ds-color-text-default);
  font-family: var(--ds-font-family-mono);
  font-size: var(--ds-text-size-xs);
  letter-spacing: var(--ds-text-tracking-caps);
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity var(--ds-motion-quick) var(--ds-motion-ease);
}

.ds-root .ds-naming-bar:hover .ds-naming-bar__bar,
.ds-root .ds-naming-bar.is-hover .ds-naming-bar__bar {
  opacity: 0.5;
}

.ds-root .ds-naming-bar__bar:hover {
  opacity: 1;
}

.ds-root .ds-naming-bar__kind {
  font-weight: var(--ds-text-weight-strong);
}

.ds-root .ds-naming-bar__words {
  overflow: hidden;
  max-width: calc(var(--ds-space-8) * 4);
  text-overflow: ellipsis;
  text-transform: none;
  letter-spacing: var(--ds-text-tracking-normal);
  color: var(--ds-color-text-muted);
}

.ds-root .ds-naming-bar__words::before {
  content: "· ";
}

.ds-root .ds-naming-bar__target {
  outline: var(--ds-border-width-strong) solid var(--ds-color-accent);
  outline-offset: var(--ds-space-1);
  border-radius: var(--ds-radius-control);
  background-color: var(--ds-color-accent-surface);
  transition: outline-color var(--ds-motion-settle) var(--ds-motion-ease);
}

/* arriving (one frame) and leaving (until hidden): the bar fades */
.ds-root .ds-naming-bar__bar[data-ds-arriving],
.ds-root .ds-naming-bar__bar[data-ds-leaving] {
  opacity: 0;
}

.ds-root .ds-naming-bar__bar[data-ds-arriving] {
  transition: none;
}

.ds-root .ds-naming-bar__bar[hidden] {
  display: none;
}

/* ---- design-system/components/composite/cmp-page-header/component.css ---- */
/* Page header (Composite · navigation). Built from cmp-button and cmp-segmented-control. This file lays those out
   and styles only the header's own parts (the breadcrumb and the actions group); the components keep their own look. */

.ds-root .ds-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-2) var(--ds-space-3);
  width: 100%;
  min-height: calc(var(--ds-control-height) + 2 * var(--ds-space-3));
  padding: var(--ds-space-3) var(--ds-space-6);
  border-bottom: var(--ds-border-width) solid var(--ds-color-border-default);
  background-color: var(--ds-color-surface-default);
  color: var(--ds-color-text-default);
}

/* breadcrumb: the path from the top level; the crumb before the current page is the one link up */
.ds-root .ds-page-header__trail {
  min-width: 0;
}

.ds-root .ds-page-header__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-1) var(--ds-space-2);
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-sm);
  line-height: var(--ds-text-leading-tight);
}

.ds-root .ds-page-header__crumbs li {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  min-width: 0;
}

.ds-root .ds-page-header__crumbs li + li::before {
  content: "›";
  color: var(--ds-color-text-muted);
}

.ds-root .ds-page-header__crumbs a {
  color: var(--ds-color-text-muted);
  text-decoration: none;
  transition: color var(--ds-motion-quick) var(--ds-motion-ease);
}

.ds-root .ds-page-header__crumbs a:hover {
  color: var(--ds-color-text-default);
  text-decoration-line: underline;
}

.ds-root .ds-page-header__crumbs [aria-current] {
  color: var(--ds-color-text-default);
  font-weight: var(--ds-text-weight-medium);
}

/* actions: page actions on the right, at most one primary */
.ds-root .ds-page-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-2);
  margin-left: auto;
}

/* narrow screens: tighter side padding; actions wrap under the trail */
@container ds-screen (max-width: 720px) {
  .ds-root .ds-page-header {
    padding-inline: var(--ds-space-4);
  }
}

/* ---- design-system/components/composite/cmp-popover-menu/component.css ---- */
/* Popover menu (Composite · navigation). Built from cmp-button (link trigger, quiet items) and cmp-code-block (the
   hidden text a copy item copies). This file positions the panel and styles only its own parts (panel, list); the
   buttons keep their own look and only get their place and width here.
   States: closed (panel [hidden]) and open (trigger [aria-expanded="true"]).
   Motion: the panel arrives and leaves with a fade and a short drop over --ds-motion-settle (component.js sets
   data-ds-arriving for one frame, and data-ds-leaving until it sets hidden). Under the still preset and reduced
   motion the tokens are 0, so it opens and closes at once. The drop uses `translate`, so the script's sideways
   `transform` that keeps the panel on screen is never disturbed. */

.ds-root .ds-popover-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* the panel: a small raised surface under the trigger, lined up with its end edge */
.ds-root .ds-popover-menu__panel {
  position: absolute;
  top: calc(100% + var(--ds-space-2));
  right: 0;
  z-index: 20;
  min-width: calc(var(--ds-space-8) * 3.5);
  max-width: calc(100vw - var(--ds-space-4));
  padding: var(--ds-space-2);
  border: var(--ds-border-width) solid var(--ds-color-border-default);
  border-radius: var(--ds-radius-surface);
  background-color: var(--ds-color-surface-raised);
  box-shadow: var(--ds-shadow-overlay);
  transition:
    opacity var(--ds-motion-settle) var(--ds-motion-ease),
    translate var(--ds-motion-settle) var(--ds-motion-ease);
}

/* arriving (one frame) and leaving (until hidden): faded, a lift above where it settles */
.ds-root .ds-popover-menu__panel[data-ds-arriving],
.ds-root .ds-popover-menu__panel[data-ds-leaving] {
  opacity: 0;
  translate: 0 var(--ds-motion-lift);
}

.ds-root .ds-popover-menu__panel[data-ds-arriving] {
  transition: none;
}

.ds-root .ds-popover-menu__panel[data-ds-leaving] {
  pointer-events: none;
}

/* icon: the chevron trigger sits beside another control; its panel opens just under it */
.ds-root .ds-popover-menu--split .ds-popover-menu__panel {
  top: calc(100% + var(--ds-space-1));
}

.ds-root .ds-popover-menu__panel[hidden] {
  display: none;
}

.ds-root .ds-popover-menu__items {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* each item fills the panel's width, its label at the start and an external icon at the end */
.ds-root .ds-popover-menu__item {
  width: 100%;
  justify-content: flex-start;
}

.ds-root .ds-popover-menu__item > .ds-icon[data-icon="external"] {
  margin-left: auto;
}

/* opened upward by the script when there is no room below */
.ds-root .ds-popover-menu__panel[data-ds-flip="up"] {
  top: auto;
  bottom: calc(100% + var(--ds-space-2));
}

/* opened upward, it arrives and leaves from a lift below */
.ds-root .ds-popover-menu__panel[data-ds-flip="up"][data-ds-arriving],
.ds-root .ds-popover-menu__panel[data-ds-flip="up"][data-ds-leaving] {
  translate: 0 calc(var(--ds-motion-lift) * -1);
}

.ds-root .ds-popover-menu--split .ds-popover-menu__panel[data-ds-flip="up"] {
  bottom: calc(100% + var(--ds-space-1));
}

/* icon: the trigger is a quiet icon button; the panel opens just under it, lined up with its end edge */
.ds-root .ds-popover-menu--icon .ds-popover-menu__panel {
  top: calc(100% + var(--ds-space-1));
}

/* ---- design-system/components/composite/cmp-preview-tile/component.css ---- */
/* Preview tile (Composite · collections). Built from cmp-card (interactive + flush), cmp-status-pill and cmp-avatar
   (in a miniature). The tile's root element is the card itself; this file only lays out the card's content and
   styles the tile's own parts (thumbnail well, label, name row). The card keeps its own surface, edge,
   shadow, hover lift and focus ring. */

.ds-root .ds-preview-tile {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

/* thumbnail: a well inset from the card's edge that holds a live miniature; it grows to fit, never crops */
.ds-root .ds-preview-tile__thumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  min-height: calc(var(--ds-size-portrait) + var(--ds-space-7));
  margin: var(--ds-space-2) var(--ds-space-2) 0;
  padding: var(--ds-space-5);
  border-radius: calc(var(--ds-radius-surface) - var(--ds-space-1));
  background-color: var(--ds-color-surface-sunken);
}

/* the well deepens a step while the tile is hovered or focused, together with the card's own lift and ring */
.ds-root .ds-preview-tile__thumb {
  transition: background-color var(--ds-motion-settle) var(--ds-motion-ease);
}

.ds-root .ds-preview-tile:hover .ds-preview-tile__thumb,
.ds-root .ds-preview-tile.is-hover .ds-preview-tile__thumb,
.ds-root .ds-preview-tile:focus-visible .ds-preview-tile__thumb,
.ds-root .ds-preview-tile.is-focus .ds-preview-tile__thumb {
  background-color: var(--ds-color-surface-canvas);
}

/* label: the name row and one line of description */
.ds-root .ds-preview-tile__label {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--ds-space-1);
  padding: var(--ds-space-3) var(--ds-space-4) var(--ds-space-4);
}

.ds-root .ds-preview-tile__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-1) var(--ds-space-2);
  min-width: 0;
}

/* ---- design-system/components/composite/cmp-prompt-card/component.css ---- */
/* Prompt card (Composite · connected). Built from cmp-button (secondary, with its copy parts), cmp-code-block
   (flush), cmp-card (flush, default only), cmp-popover-menu (split), cmp-dialog and cmp-segmented-control (ring's
   view). This file lays out its content and styles only the prompt card's own parts (header, title, meta, body,
   source line, the ring and the view's formatted text). Copying is done by cmp-code-block's script through
   data-ds-copy on the button; the copy glyphs and the width sizer are the Button's own parts.
   States: [data-copied] on the copy button (copied). */

.ds-root .ds-prompt-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

/* header: what the prompt is for, and the one action. When the card is too narrow for the title beside the
   button, the button wraps below rather than squeezing the title to one word per line. */
.ds-root .ds-prompt-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-3);
  padding: var(--ds-space-3) var(--ds-space-3) var(--ds-space-3) var(--ds-space-4);
  border-bottom: var(--ds-border-width) solid var(--ds-color-border-default);
}

.ds-root .ds-prompt-card__heading {
  display: flex;
  flex: 1 1 calc(var(--ds-text-size-md) * 12);
  flex-direction: column;
  gap: calc(var(--ds-space-1) / 2);
  min-width: 0;
}

.ds-root .ds-prompt-card__title {
  color: var(--ds-color-text-default);
  font-size: var(--ds-text-size-md);
  font-weight: var(--ds-text-weight-strong);
  line-height: var(--ds-text-leading-tight);
}

.ds-root .ds-prompt-card__meta {
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-xs);
  line-height: var(--ds-text-leading-tight);
}

.ds-root .ds-prompt-card__header > .ds-button {
  flex: none;
}

/* the prompt text itself sits in a flush code block that runs edge to edge */
.ds-root .ds-prompt-card__body {
  min-width: 0;
}

/* source: where the prompt was assembled from, last */
.ds-root .ds-prompt-card__source {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  padding: var(--ds-space-2) var(--ds-space-4) var(--ds-space-3);
  border-top: var(--ds-border-width) solid var(--ds-color-border-default);
  color: var(--ds-color-text-muted);
  font-family: var(--ds-font-family-mono);
  font-size: var(--ds-text-size-xs);
  line-height: var(--ds-text-leading-body);
  overflow-wrap: anywhere;
}

/* ring's actions: Copy prompt and the menu's chevron are one split button (Button join-start and join-end); the raw
   prompt is in the markup for every action to copy, but shown only when no script runs (then nothing else can show it). */
.ds-root .ds-prompt-card__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0;
}

.ds-root .ds-prompt-card__text {
  position: absolute;
  width: var(--ds-border-width);
  height: var(--ds-border-width);
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (scripting: none) {
  .ds-root .ds-prompt-card__text {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    border-top: var(--ds-border-width) solid var(--ds-color-border-default);
  }

  .ds-root .ds-prompt-card__actions {
    display: none;
  }
}

/* the view's Formatted: the prompt as readable text, a command or code in the mono face */
.ds-root .ds-prompt-card__view {
  max-width: var(--ds-layout-measure);
  color: var(--ds-color-text-default);
  font-size: var(--ds-text-size-md);
  line-height: var(--ds-text-leading-body);
}

.ds-root .ds-prompt-card__view > * {
  margin: 0 0 var(--ds-space-4);
}

.ds-root .ds-prompt-card__view > :last-child {
  margin-bottom: 0;
}

.ds-root .ds-prompt-card__view h2,
.ds-root .ds-prompt-card__view h3 {
  font-size: var(--ds-text-size-md);
  font-weight: var(--ds-text-weight-strong);
}

.ds-root .ds-prompt-card__view ul,
.ds-root .ds-prompt-card__view ol {
  padding-left: var(--ds-space-5);
}

.ds-root .ds-prompt-card__view code {
  font-family: var(--ds-font-family-mono);
  font-size: var(--ds-text-size-sm);
  overflow-wrap: break-word;
}

.ds-root .ds-prompt-card__view pre {
  padding: var(--ds-space-3) var(--ds-space-4);
  border-radius: var(--ds-radius-control);
  background-color: var(--ds-color-surface-sunken);
  white-space: pre-wrap;
}

/* ring: no card, icon or words, only the split button inside a thin rainbow ring that turns slowly, the sign of
   something you hand to an AI agent. One turn takes --ds-motion-ambient, at the constant --ds-motion-ease-steady; it stands still in the still motion preset
   and under reduced motion. Its title and meta stay for the view and for assistive technology, visually hidden. */
.ds-root .ds-prompt-card--ring {
  position: relative;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: calc(var(--ds-border-width) * 2);
  border-radius: calc(var(--ds-radius-control) + var(--ds-border-width) * 2);
  background: conic-gradient(from var(--ds-motion-turn), var(--ds-color-ai-1), var(--ds-color-ai-2), var(--ds-color-ai-3), var(--ds-color-ai-4), var(--ds-color-ai-5), var(--ds-color-ai-1));
  animation: ds-prompt-ring-turn var(--ds-motion-ambient) var(--ds-motion-ease-steady) infinite;
  isolation: isolate;
}

/* the glow: the same turning ring, blurred and faint, behind it, so the edge reads soft rather than sharp */
.ds-root .ds-prompt-card--ring::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: inherit;
  opacity: var(--ds-opacity-glow);
  filter: blur(var(--ds-blur-glow));
  animation: inherit;
  pointer-events: none;
}

.ds-root .ds-prompt-card--ring .ds-prompt-card__header {
  padding: 0;
  border-bottom: 0;
}

.ds-root .ds-prompt-card--ring .ds-prompt-card__actions {
  border-radius: var(--ds-radius-control);
  background-color: var(--ds-color-surface-raised);
}

@keyframes ds-prompt-ring-turn {
  to {
    --ds-motion-turn: 360deg;
  }
}

/* ---- design-system/components/composite/cmp-sidebar-nav/component.css ---- */
/* Sidebar navigation (Composite · navigation). Built from cmp-list-row (compact), cmp-avatar (sm) and
   cmp-icon-button (quiet). This file lays those out and styles only the sidebar's own parts; the rows, avatar and
   icon button keep their own look. The build scopes every rule under .ds-root. */

.ds-root .ds-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-1);
  width: var(--ds-layout-sidebar);
  max-width: 100%;
  min-height: 100%;
  padding: var(--ds-space-5) var(--ds-space-3) var(--ds-space-4);
  border-right: var(--ds-border-width) solid var(--ds-color-border-default);
  background-color: var(--ds-color-surface-default);
  color: var(--ds-color-text-default);
}

/* brand: the product mark and name; it links to the product's home */
.ds-root .ds-sidebar-nav__brand {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  min-width: 0;
  padding: var(--ds-space-1) var(--ds-space-3) var(--ds-space-4);
  color: inherit;
  text-decoration: none;
}

.ds-root .ds-sidebar-nav__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--ds-size-avatar-md);
  height: var(--ds-size-avatar-md);
  border-radius: var(--ds-radius-control);
  background-color: var(--ds-color-accent);
  color: var(--ds-color-text-on-accent);
  font-size: var(--ds-text-size-sm);
  font-weight: var(--ds-text-weight-strong);
  line-height: 1;
}

.ds-root .ds-sidebar-nav__name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: var(--ds-text-size-lg);
  font-weight: var(--ds-text-weight-strong);
  line-height: var(--ds-text-leading-tight);
  letter-spacing: var(--ds-text-tracking-tight);
  overflow-wrap: anywhere;
}

.ds-root .ds-sidebar-nav__sub {
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-xs);
  font-weight: var(--ds-text-weight-medium);
  letter-spacing: var(--ds-text-tracking-normal);
}

/* groups of destinations; rows sit close together, groups apart */
.ds-root .ds-sidebar-nav__group {
  display: flex;
  flex-direction: column;
  gap: calc(var(--ds-space-1) / 2);
  min-width: 0;
}

.ds-root .ds-sidebar-nav__group + .ds-sidebar-nav__group {
  margin-top: var(--ds-space-3);
}

.ds-root .ds-sidebar-nav__heading {
  padding: var(--ds-space-2) var(--ds-space-3) var(--ds-space-1);
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-xs);
  font-weight: var(--ds-text-weight-strong);
  line-height: var(--ds-text-leading-tight);
}

/* footer: the signed-in person, pinned to the bottom of a full-height sidebar */
.ds-root .ds-sidebar-nav__group:has(+ .ds-sidebar-nav__footer) {
  margin-bottom: var(--ds-space-6);
}

.ds-root .ds-sidebar-nav__footer {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  margin-top: auto;
  padding: var(--ds-space-3) var(--ds-space-1) 0 var(--ds-space-3);
  border-top: var(--ds-border-width) solid var(--ds-color-border-default);
}

.ds-root .ds-sidebar-nav__person {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  font-size: var(--ds-text-size-sm);
  font-weight: var(--ds-text-weight-medium);
  line-height: var(--ds-text-leading-tight);
  overflow-wrap: anywhere;
}

.ds-root .ds-sidebar-nav__role {
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-xs);
  font-weight: var(--ds-text-weight-regular);
}

/* narrow screens: the sidebar takes the full row above the main column (ds-split stacks) */
@container ds-screen (max-width: 720px) {
  .ds-root .ds-sidebar-nav {
    width: 100%;
    min-height: 0;
    border-right: 0;
    border-bottom: var(--ds-border-width) solid var(--ds-color-border-default);
  }
}

/* ---- design-system/components/composite/cmp-site-header/component.css ---- */
/* Site header (Composite · navigation). Built from cmp-button (link and quiet). This file lays the header out
   and styles only its own parts (brand, mark, name, links); the buttons keep their own look.
   States on links: :hover/.is-hover, :focus-visible/.is-focus, [aria-current="page"] (current). */

.ds-root .ds-site-header {
  display: flex;
  align-items: center;
  gap: var(--ds-space-6);
  width: 100%;
  min-height: calc(var(--ds-control-height) + 2 * var(--ds-space-4));
  padding-block: var(--ds-space-3);
  padding-inline: max(var(--ds-layout-margin), calc((100% - var(--ds-layout-max-width)) / 2));
  border-bottom: var(--ds-border-width) solid var(--ds-color-border-default);
  background-color: var(--ds-color-surface-default);
  color: var(--ds-color-text-default);
}

/* brand: the mark and name; it links home */
.ds-root .ds-site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  flex: none;
  color: inherit;
  text-decoration: none;
}

.ds-root .ds-site-header__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: calc(var(--ds-size-avatar-sm) + var(--ds-space-1));
  height: calc(var(--ds-size-avatar-sm) + var(--ds-space-1));
  color: var(--ds-color-text-default);
  font-size: var(--ds-text-size-md);
  font-weight: var(--ds-text-weight-strong);
  line-height: 1;
}


.ds-root .ds-site-header__name {
  font-size: var(--ds-text-size-lg);
  font-weight: var(--ds-text-weight-strong);
  line-height: var(--ds-text-leading-tight);
  letter-spacing: var(--ds-text-tracking-tight);
  white-space: nowrap;
}

/* links: at most five, in the middle */
.ds-root .ds-site-header__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-1);
  min-width: 0;
}

.ds-root .ds-site-header__link {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-1);
  min-height: var(--ds-target-min);
  padding: 0 var(--ds-space-3);
  border-radius: var(--ds-radius-control);
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-md);
  font-weight: var(--ds-text-weight-medium);
  line-height: var(--ds-text-leading-tight);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color var(--ds-motion-quick) var(--ds-motion-ease),
    background-color var(--ds-motion-quick) var(--ds-motion-ease);
}

.ds-root .ds-site-header__link:hover,
.ds-root .ds-site-header__link.is-hover {
  background-color: var(--ds-color-surface-sunken);
  color: var(--ds-color-text-default);
}

.ds-root .ds-site-header__link:focus-visible,
.ds-root .ds-site-header__link.is-focus {
  outline: var(--ds-focus-width) solid var(--ds-color-focus-ring);
  outline-offset: var(--ds-focus-offset);
}

/* current: darker text and an underline, so it never relies on colour alone */
.ds-root .ds-site-header__link[aria-current="page"] {
  color: var(--ds-color-text-default);
  text-decoration-line: underline;
  text-decoration-thickness: var(--ds-border-width-strong);
  text-underline-offset: var(--ds-space-2);
}

.ds-root .ds-site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  flex: none;
  margin-left: auto;
}

/* narrow screens: keep the brand and the last action; the links go */
@container ds-screen (max-width: 720px) {
  .ds-root .ds-site-header {
    gap: var(--ds-space-3);
    padding-inline: var(--ds-layout-margin-narrow);
  }

  .ds-root .ds-site-header__links {
    display: none;
  }

  .ds-root .ds-site-header__actions > :not(:last-child) {
    display: none;
  }
}

/* ---- design-system/components/composite/cmp-step-list/component.css ---- */
/* Step list (Composite · collections). Built from cmp-list-row (compact) and cmp-status-pill. This file lays the
   rows out and styles only the list's own parts: the track and the step numbers. The rows keep their own look,
   including the raised highlight on the current step (aria-current="step"). */

/* default: the steps sit on a sunken track, like a panel's own navigation */
.ds-root .ds-step-list {
  display: block;
  width: 100%;
  min-width: 0;
  padding: var(--ds-space-1);
  border-radius: calc(var(--ds-radius-surface) - var(--ds-space-1));
  background-color: var(--ds-color-surface-sunken);
}

.ds-root .ds-step-list__steps {
  display: flex;
  flex-direction: column;
  gap: calc(var(--ds-space-1) / 2);
  min-width: 0;
}

/* number: a small circle before each step's name; filled with ink on the current step */
.ds-root .ds-step-list__number {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--ds-size-avatar-sm);
  height: var(--ds-size-avatar-sm);
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-color-surface-raised);
  box-shadow: inset 0 0 0 var(--ds-border-width) var(--ds-color-border-default);
  color: var(--ds-color-text-muted);
  font-size: var(--ds-text-size-xs);
  font-weight: var(--ds-text-weight-strong);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition:
    background-color var(--ds-motion-quick) var(--ds-motion-ease),
    box-shadow var(--ds-motion-quick) var(--ds-motion-ease),
    color var(--ds-motion-quick) var(--ds-motion-ease);
}

.ds-root .ds-step-list [aria-current]:not([aria-current="false"]) .ds-step-list__number {
  background-color: var(--ds-color-accent);
  box-shadow: none;
  color: var(--ds-color-text-on-accent);
}

/* plain: no track, for steps on the page or inside a card */
.ds-root .ds-step-list--plain {
  padding: 0;
  border-radius: 0;
  background-color: transparent;
}
