/* Handoff only; not installed in app. Non-VIS values are UI neutral, not VIS.
   Exact allowed text pairs and contrast ratios: tokens.json.
   Scrim and shadows: UI neutral, not VIS. */
@font-face {
  font-family: "Apercu";
  src: url("/brand/fonts/apercu-regular.woff2") format("woff2"),
       url("/brand/fonts/apercu-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Apercu";
  src: url("/brand/fonts/apercu-medium.woff2") format("woff2"),
       url("/brand/fonts/apercu-medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Apercu";
  src: url("/brand/fonts/apercu-bold.woff2") format("woff2"),
       url("/brand/fonts/apercu-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  /* UI neutral, not VIS: App canvas only */
  --hos-bg: #F5F5F5;
  /* VIS: Cards, top bar, drawer, inputs */
  --hos-surface: #FFFFFF;
  /* UI neutral, not VIS: Search, inactive tracks, group headers */
  --hos-surface-subtle: #EEEEEE;
  /* UI neutral, not VIS: Neutral row hover/selection plus check or outline */
  --hos-surface-selected: #E5E7EB;
  /* UI neutral, not VIS: Body, headings, numbers */
  --hos-text: #1A1A1A;
  /* VIS: Secondary text; never reduce opacity */
  --hos-text-muted: #5B6770;
  /* UI neutral, not VIS: Essential input/control outline; 1px */
  --hos-border: #737373;
  /* UI neutral, not VIS: Decorative row separators only; never sole control boundary */
  --hos-divider: #E5E7EB;
  /* VIS: Selected store/segment, active navigation marker */
  --hos-accent: #DD0033;
  /* VIS: Alias for accent; white selected label */
  --hos-selected: #DD0033;
  /* VIS: Primary button, add FAB, underlined text action */
  --hos-action: #DD0033;
  /* VIS: Pressed/hover primary action */
  --hos-action-hover: #940929;
  /* VIS: Delete swipe and destructive confirm button */
  --hos-destructive: #DD0033;
  /* UI neutral, not VIS: Done swipe only, with check and Done label */
  --hos-done: #005EA8;
  /* VIS: 3px focus ring outside white 2px gap */
  --hos-focus: #004F71;
  /* VIS: Text/icons on accent, action, destructive, done, navy, dark red */
  --hos-on-action: #FFFFFF;
  /* VIS: Check + Done/Complete text, not invented VIS green */
  --hos-success: #004F71;
  /* VIS: Alert icon + Needs attention/Urgent; no color-only status */
  --hos-warning: #940929;
  --color-skill-zero: #c62828;
  --color-skill-low: #e67a22;
  --color-skill-mid: #f0c419;
  --color-skill-high: #2e7d32;
  /* UI neutral, not VIS: 50% opacity overlay; never a text background */
  --hos-scrim: #000000;
  --hos-space-0: 0px;
  --hos-space-4: 4px;
  --hos-space-8: 8px;
  --hos-space-12: 12px;
  --hos-space-16: 16px;
  --hos-space-24: 24px;
  --hos-space-32: 32px;
  --hos-space-40: 40px;
  --hos-space-48: 48px;
  --hos-space-64: 64px;
  --hos-font: "Apercu", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hos-radius-card: 16px;
  --hos-radius-control: 12px;
  --hos-radius-pill: 999px;
  --hos-radius-row: 8px;
  --hos-shadow-card: 0 1px 3px rgb(0 0 0 / 0.06);
  --hos-shadow-overlay: 0 8px 24px rgb(0 0 0 / 0.16);
  --hos-motion-fast: 200ms;
  --hos-motion-drawer: 240ms;
  --hos-motion-ease: cubic-bezier(0.2, 0, 0, 1);
  --hos-target: 44px;
  --hos-scrim-opacity: 0.5;
  --hos-type-caption-size: 0.75rem;
  --hos-type-caption-line: 1rem;
  --hos-type-caption-weight: 400;
  --hos-type-label-size: 0.875rem;
  --hos-type-label-line: 1.25rem;
  --hos-type-label-weight: 500;
  --hos-type-body-size: 1rem;
  --hos-type-body-line: 1.5rem;
  --hos-type-body-weight: 400;
  --hos-type-body-strong-size: 1rem;
  --hos-type-body-strong-line: 1.5rem;
  --hos-type-body-strong-weight: 700;
  --hos-type-section-size: 1.25rem;
  --hos-type-section-line: 1.75rem;
  --hos-type-section-weight: 700;
  --hos-type-title-size: 1.75rem;
  --hos-type-title-line: 2.25rem;
  --hos-type-title-weight: 700;
  --hos-type-metric-size: 2rem;
  --hos-type-metric-line: 2.5rem;
  --hos-type-metric-weight: 700;

  /* Compatibility aliases observed in local globals.css, not verified live. */
  --background: var(--hos-bg);
  --foreground: var(--hos-text);
  --card: var(--hos-surface);
  --primary: var(--hos-action);
  --primary-foreground: var(--hos-on-action);
  --secondary: var(--hos-surface-subtle);
  --secondary-foreground: var(--hos-text);
  --muted: var(--hos-surface-subtle);
  --muted-foreground: var(--hos-text-muted);
  --border: var(--hos-border);
  --ring: var(--hos-focus);
  --destructive: var(--hos-destructive);
  --font-sans: var(--hos-font);
}

button, input, select, textarea {
  font-family: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* 16px keeps iOS from zooming the page when a field is focused. */
input,
select,
textarea {
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --hos-motion-fast: 0ms; --hos-motion-drawer: 0ms; }
}

button:disabled,
input:disabled,
.btn-primary:disabled,
.btn-secondary:disabled {
  background: var(--hos-surface-subtle);
  color: var(--hos-text-muted);
  border-color: var(--hos-divider);
  opacity: 1;
}
/* Apply font-variant-ligatures:none to UI text. Do not set opacity on muted text.
   Existing Tailwind @theme mappings can keep consuming the compatibility aliases.
   Remove the observed --font-sans:var(--font-sans) self-reference; use --hos-font instead. */
