/* App Kit 0.7.0 (2026-11-29) · tokens.css
   Tokens: every size, gap, font and radius. Pieces use these names, never numbers.
   Taken from Content Hub's tokens.css (4px scale, rem on a 16px root),
   trimmed to what a general app needs. */

:root {
  --space-0-5: .125rem;
  --space-1: .25rem;  --space-1-5: .375rem; --space-2: .5rem;  --space-2-5: .625rem;
  --space-3: .75rem;  --space-3-5: .875rem; --space-4: 1rem;   --space-5: 1.25rem;
  --space-6: 1.5rem;  --space-7: 1.75rem;   --space-8: 2rem;   --space-10: 2.5rem;
  --space-12: 3rem;   --space-14: 3.5rem;

  --text-micro: .6875rem;  /* 11: keyboard hints, tags (never under 10px, even at Small) */
  --text-meta: .71875rem;  /* 11.5: counts, timestamps */
  --text-small: .75rem;    /* 12: buttons, labels, table heads */
  --text-title: 1.0625rem; /* 17: drawer and dialog titles */
  --text-stat: 1.625rem;   /* 26: a big number */

  --weight-regular: 400; --weight-medium: 500; --weight-strong: 600;
  --tracking-label: .04em; --tracking-heading: -.015em;
  --line-height-tight: 1.35; --line-height-stat: 1.15;

  /* Fonts: system fonts by default, so nothing has to load. kit/fonts.css (optional)
     swaps in Inter, JetBrains Mono and Space Grotesk. Headings use --font-display,
     which follows the palette (Ember sets Space Grotesk) or falls back to the UI font. */
  --font-system: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-system-mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
  --font-ui: var(--font-system);
  --font-mono: var(--font-system-mono);
  --font-display: var(--palette-font-display, var(--font-ui));
  --weight-display: 700;

  --line-width: 1px; --bar-width: 2px; --focus-width: 2px; --focus-offset: 2px;
  --radius-control: .3125rem; --radius-mark: .1875rem; --radius-round: 999rem;

  --icon-size: .9375rem; --icon-stroke: 1.7;
  --rail-width: 3.25rem;
  --topbar-height: 3rem;
  --drawer-width: 26rem;
  --dialog-width: 28rem;
  --search-width: 16rem; --search-min: 8rem;
  --tile-min: 11rem;
  --panel-min: 20rem;
  --swatch-width: 7rem; --swatch-height: 4.25rem;
  --content-max: 77.5rem;  /* a list page */
  --reading-max: 44rem;    /* a reading page */
  --dot-size: .5rem;
  --switch-width: 2rem; --switch-height: 1.125rem; --switch-knob: .875rem;
  --mode-width: 3.375rem; --mode-height: 1.75rem; --mode-pad: .1875rem; --mode-icon: .875rem;  /* light/dark pill */
  --avatar-size: 2rem;
  --privacy-blur: .4em;
  --toolbar-field: 11rem;
  --repeat-date: 9.5rem;
  --check-size: 1rem;
  --meter-height: .5rem;
  --board-col-min: 13rem;
  --menu-min: 10rem;
  --chart-height: 12rem;
  --kv-label-max: 60%;
  --z-sticky: 5; --z-drawer: 50; --z-menu: 60; --z-dialog: 100; --z-toast: 120; --z-tooltip: 130;
  --tooltip-max: 16rem;
  --table-max-height: 70vh;   /* a long table scrolls inside its panel, head stays put */
  --skeleton-height: .75rem;
  --field-min: 9rem;          /* .kit-field-row: two fields side by side when there's room */
  --topbar-tabs-height: 2.5rem;
  --phone-menu-width: 18rem;
  --tile-min-phone: 9rem;
  --disabled-opacity: .5;
  --duration: 140ms;
  --shadow-pop: 0 .75rem 2.5rem rgba(0, 0, 0, .28);
}

/* Reduced motion: no slides or fades. */
@media (prefers-reduced-motion: reduce) { :root { --duration: 0ms; } }

/* Text size: one number scales everything (every size is rem). */
:root[data-size="small"]   { font-size: 93.75%; }
:root[data-size="large"]   { font-size: 106.25%; }
:root[data-size="larger"]  { font-size: 112.5%; }

/* Density. Compact is the default. */
:root, [data-density="compact"] {
  --sidebar-width: 14.5rem;
  --page-pad-y: var(--space-6); --page-pad-x: var(--space-7);
  --panel-gap: var(--space-3-5);
  --row-pad-y: var(--space-2-5); --row-pad-x: var(--space-3-5);
  --panel-head-pad-y: var(--space-2-5); --panel-head-pad-x: var(--space-3-5);
  --nav-pad-y: var(--space-1-5); --nav-pad-x: var(--space-2);
  --text-body: .8125rem; --text-h1: 1.375rem;
  --line-height: 1.5;
  --radius-panel: .375rem;
  --control-height: 1.875rem;
}
[data-density="comfortable"] {
  --sidebar-width: 16.5rem;
  --page-pad-y: var(--space-10); --page-pad-x: var(--space-12);
  --panel-gap: var(--space-6);
  --row-pad-y: var(--space-3-5); --row-pad-x: var(--space-5);
  --panel-head-pad-y: var(--space-4); --panel-head-pad-x: var(--space-5);
  --nav-pad-y: var(--space-2); --nav-pad-x: var(--space-2-5);
  --text-body: .875rem; --text-h1: 1.75rem;
  --line-height: 1.65;
  --radius-panel: .625rem;
  --control-height: 2.125rem;
}

/* Phone: 44px targets, 16px inputs, body never below 14px. */
@media (max-width: 767.98px) {
  :root, [data-density="compact"], [data-density="comfortable"] {
    --page-pad-y: var(--space-3-5); --page-pad-x: var(--space-3-5);
    --control-height: 2.75rem;
    --text-body: .875rem;
  }
}
