/* Vendored from SkyDrive ui-core (repo skydrivehq, branch lane-skyloop-uicore-build, commit e2db1299, 2026-11-01). Built bundle — do not edit here; re-sync from source. See vendor/SOURCE.md. */
/* SkyLoop design-library base tokens (DTCG-aligned CSS custom properties).
   PaletteStyleA: light by default; status colours (good/warn/danger) are separate
   from the brand and never derived from it; a theme is applied whole, never part-done.
   AlarmColorStyleA: --sl-danger is scarce — urgent/destructive only.
   HitAreaStyleA: --sl-hit-min is the 24px WCAG 2.2 floor; --sl-control-h 36px is comfortable.
   OpaqueChromeStyleA: surfaces are solid in every theme.

   Brandable tokens fall back to a neutral default when no --brand-* overlay is set, so an
   unbranded load looks untouched. A consumer overlays its brand by setting the four --brand-*
   variables only (the @skydrivehq/shared brand engine writes them); status colours stay ours. */
:root {
  color-scheme: light;

  /* Brandable — overlaid by --brand-* (see @skydrivehq/shared brand engine). */
  --sl-accent: var(--brand-accent, #2b6cb0);
  --sl-accent-ink: var(--brand-accent-ink, #ffffff);
  --sl-surface: var(--brand-surface, #ffffff);
  --sl-surface-2: #f4f6f8;
  --sl-ink: var(--brand-ink, #1a202c);
  --sl-ink-dim: #5a6472;
  --sl-border: #d9dee4;

  /* Status — never from the brand. */
  --sl-good: #2f855a;
  --sl-warn: #b7791f;
  --sl-danger: #c53030;

  /* Shape + control. */
  --sl-radius: 8px;
  --sl-gap: 8px;
  --sl-control-h: 36px;
  --sl-hit-min: 24px;

  /* Type. */
  --sl-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sl-text-sm: 12.5px;
  --sl-text-base: 14px;
  --sl-text-lg: 18px;

  /* Elevation — solid surfaces, soft shadow. */
  --sl-shadow-1: 0 1px 2px rgba(16, 24, 40, 0.08);
  --sl-shadow-2: 0 6px 20px rgba(16, 24, 40, 0.16);
}

/* Dark: by preference unless the page pins light; or explicitly via [data-theme="dark"]. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --sl-surface: var(--brand-surface, #12161c);
    --sl-surface-2: #1b212a;
    --sl-ink: var(--brand-ink, #e6eaf0);
    --sl-ink-dim: #9aa6b4;
    --sl-border: #2a323d;
    --sl-good: #48bb78;
    --sl-warn: #d69e2e;
    --sl-danger: #f56565;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --sl-surface: var(--brand-surface, #12161c);
  --sl-surface-2: #1b212a;
  --sl-ink: var(--brand-ink, #e6eaf0);
  --sl-ink-dim: #9aa6b4;
  --sl-border: #2a323d;
  --sl-good: #48bb78;
  --sl-warn: #d69e2e;
  --sl-danger: #f56565;
}
