/* Generated by scripts/build-rally-ui.mjs: Rally's tokens.css with the Graphite + iris preset palette from themes.ts. Do not edit. */
:root {
  --bg: #17191f;
  --panel: #232630;
  --raised: #303440;
  --line: #505767;
  --grid-major: #505767;
  --grid-minor: #2c303b;
  --text: #eceef4;
  --muted: #b4baca;
  --accent: #bea1ff;
  --on-accent: #1a1429;
  /* THEME-RAISED (#534): the accent and statuses where they are text, at 4.5:1 on canvas, panels and
     raised surfaces. Equal to the plain colors in every preset; custom themes derive their own. */
  --accent-text: #bea1ff;
  --mint: #78b8bc;
  --amber: #dca581;
  --purple: #af9be1;
  --blue: #8baada;
  /* Piano-roll notes: kept separate from clip fills and the accent (docs/11; Figma color/note). */
  --note: #af9be1;
  --error: #ffb0ba;
  /* UI-420: error text and the piano roll's black-key rows; Porcelain sets its own (themes.ts). */
  --error-text: #ffb0ba;
  --ink: #17191f;
  --black-key-row: #17191f;
  --status-active: #69d59c;
  --status-inactive: #f0cf72;
  --status-following: #80b7ff;
  --status-unsynced: #ff8293;
  --status-active-text: #69d59c;
  --status-inactive-text: #f0cf72;
  --status-unsynced-text: #ff8293;

  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --radius-4: 4px;
  --radius-8: 8px;
  --radius-12: 12px;

  /* UX-15 (#639): density tokens. These values are Comfortable, today's spacing and the default; the
     :root[data-density="compact"] block at the end overrides them, switched by the personal appearance record. */
  --density-bar-min: 56px;
  --density-transport-min: 44px;
  --density-transport-classic-min: 64px;
  --density-strip-min: 44px;
  --density-ctl-min: 32px;
  --density-ctl-pad: 4px;
  --density-bar-btn-pad: 6px;
  --density-tree-pad: 3px;
  --density-asset-pad: 3px;
  --density-head-pad: 8px;
  --density-project-pad: 20px;
  --density-project-min: 92px;

  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* UX-15: Compact density shrinks lane headers, Sounds and library rows, header and toolbar controls and
   project rows. The arrangement lane height itself follows density in script (it drives hit-testing). */
:root[data-density="compact"] {
  --density-bar-min: 44px;
  --density-transport-min: 36px;
  --density-transport-classic-min: 52px;
  --density-strip-min: 36px;
  --density-ctl-min: 28px;
  --density-ctl-pad: 2px;
  --density-bar-btn-pad: 3px;
  --density-tree-pad: 1px;
  --density-asset-pad: 1px;
  --density-head-pad: 4px;
  --density-project-pad: 10px;
  --density-project-min: 68px;
}
/* Touch screens keep every control and row they have today (targets of at least 44 px where they had them):
   only spacing that is not a target shrinks. Lanes stay 48 px or taller and project rows 68 px or taller. */
@media (pointer: coarse) {
  :root[data-density="compact"] {
    --density-bar-min: 56px;
    --density-transport-min: 44px;
    --density-transport-classic-min: 64px;
    --density-strip-min: 44px;
    --density-ctl-min: 32px;
    --density-ctl-pad: 4px;
    --density-bar-btn-pad: 6px;
    --density-tree-pad: 3px;
    --density-asset-pad: 3px;
  }
}
