/* atm.one design tokens v1.0 (03/11/2026)
 * Source of truth for every atm.one app. Import once at the app root.
 * Theme: set data-theme="dark" or "light" on <html> (or any wrapper element); omit to follow the OS.
 * tokens.json, tokens.ts and tailwind.preset.js are generated from this file - edit here, then regenerate.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Questrial&display=swap');

:root {
  /* Brand palette (fixed in both themes) */
  --atm-brand-violet: #7A17FF;
  --atm-brand-cyan: #40E3F2;
  --atm-brand-teal: #2ED8C3;
  --atm-brand-blush: #EDA6AE;
  --atm-brand-indigo: #2B3276;
  --atm-brand-blue: #4C96C7;
  --atm-brand-raspberry: #CC3262;
  --atm-brand-silver: #BFBFBF;
  --atm-brand-amber: #FFB521;
  --atm-brand-pink: #FF3575;

  /* Status solids (dots, charts) */
  --atm-solid-success: #2ED8C3;
  --atm-solid-info: #4C96C7;
  --atm-solid-warning: #FFB521;
  --atm-solid-danger: #FF3575;
  --atm-solid-neutral: #BFBFBF;
  --atm-solid-accent: #7A17FF;

  /* Charts */
  --atm-chart-1: #4C96C7;
  --atm-chart-2: #2ED8C3;
  --atm-chart-3: #7A17FF;
  --atm-chart-4: #FFB521;
  --atm-chart-5: #FF3575;
  --atm-chart-6: #40E3F2;
  --atm-chart-7: #2B3276;
  --atm-chart-8: #EDA6AE;
  --atm-qa-excellent: #4C96C7;
  --atm-qa-good: #2ED8C3;
  --atm-qa-needs-attention: #FFB521;
  --atm-qa-critical: #FF3575;
  --atm-meter-gradient: linear-gradient(90deg, #40E3F2 0%, #2ED8C3 100%);

  /* Type */
  --atm-font-display: 'Century Gothic', 'Questrial', system-ui, sans-serif;
  --atm-font-ui: 'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;
  --atm-text-display-size: 40px; --atm-text-display-line: 48px; --atm-text-display-weight: 700;
  --atm-text-h1-size: 28px; --atm-text-h1-line: 36px; --atm-text-h1-weight: 700;
  --atm-text-h2-size: 20px; --atm-text-h2-line: 28px; --atm-text-h2-weight: 600;
  --atm-text-h3-size: 16px; --atm-text-h3-line: 24px; --atm-text-h3-weight: 600;
  --atm-text-kpi-size: 28px; --atm-text-kpi-line: 32px; --atm-text-kpi-weight: 700;
  --atm-text-body-size: 14px; --atm-text-body-line: 20px; --atm-text-body-weight: 400;
  --atm-text-body-strong-size: 14px; --atm-text-body-strong-line: 20px; --atm-text-body-strong-weight: 600;
  --atm-text-small-size: 12px; --atm-text-small-line: 16px; --atm-text-small-weight: 500;
  --atm-text-overline-size: 11px; --atm-text-overline-line: 16px; --atm-text-overline-weight: 600;

  /* Space, radius, motion, layout */
  --atm-space-1: 4px;
  --atm-space-2: 8px;
  --atm-space-3: 12px;
  --atm-space-4: 16px;
  --atm-space-5: 20px;
  --atm-space-6: 24px;
  --atm-space-8: 32px;
  --atm-space-10: 40px;
  --atm-space-12: 48px;
  --atm-space-16: 64px;
  --atm-radius-sm: 6px;
  --atm-radius-md: 8px;
  --atm-radius-lg: 12px;
  --atm-radius-xl: 16px;
  --atm-radius-pill: 999px;
  --atm-shadow-overlay: 0 12px 32px rgba(7,11,26,.24);
  --atm-motion-fast: 120ms;
  --atm-motion-base: 200ms;
  --atm-motion-slow: 320ms;
  --atm-motion-ease: cubic-bezier(0.2, 0, 0, 1);
  --atm-header-height: 64px;
  --atm-content-max: 1440px;
  --atm-page-pad: 24px;
  --atm-page-pad-mobile: 16px;
  --atm-gap: 16px;
  --atm-card-pad: 20px;

  /* Light theme (default) */
  --atm-bg: #F5F6FA;
  --atm-surface: #FFFFFF;
  --atm-surface-raised: #FFFFFF;
  --atm-surface-sunken: #EEF0F6;
  --atm-header-bg: #FFFFFF;
  --atm-border: #E2E4EE;
  --atm-border-strong: #C9CCDA;
  --atm-text: #1B1D3A;
  --atm-text-secondary: #545872;
  --atm-text-muted: #6B708A;
  --atm-accent: #7A17FF;
  --atm-link: #0A6F96;
  --atm-focus: #7A17FF;
  --atm-primary: #7A17FF;
  --atm-primary-hover: #8A33FF;
  --atm-primary-pressed: #6812DB;
  --atm-on-primary: #FFFFFF;
  --atm-primary-soft-bg: #EFE7FF;
  --atm-primary-soft-text: #3D0C85;
  --atm-secondary-border: #C9CCDA;
  --atm-secondary-text: #1B1D3A;
  --atm-secondary-bg: #FFFFFF;
  --atm-ghost-border: #E2E4EE;
  --atm-ghost-bg: #FFFFFF;
  --atm-danger-solid: #CC3262;
  --atm-input-bg: #FFFFFF;
  --atm-jml-tile: #2B3276;
  --atm-success-text: #0B6B60;
  --atm-success-fill: #E0F8F5;
  --atm-info-text: #1F5E8A;
  --atm-info-fill: #E3F0FA;
  --atm-warning-text: #8A5A00;
  --atm-warning-fill: #FFF4DA;
  --atm-danger-text: #B0234F;
  --atm-danger-fill: #FFE3EC;
  --atm-neutral-text: #3A3F5C;
  --atm-neutral-fill: #EEF0F5;
  --atm-accent-text: #5A12C2;
  --atm-accent-fill: #EFE7FF;
  --atm-shadow-card: 0 1px 2px rgba(16,24,64,.06), 0 4px 12px rgba(16,24,64,.04);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --atm-bg: #070B1A;
    --atm-surface: #0F1629;
    --atm-surface-raised: #151D35;
    --atm-surface-sunken: #0A1022;
    --atm-header-bg: #0B1124;
    --atm-border: #222B47;
    --atm-border-strong: #323C5E;
    --atm-text: #F2F4FA;
    --atm-text-secondary: #A3A9C2;
    --atm-text-muted: #8189A8;
    --atm-accent: #A57BFF;
    --atm-link: #40E3F2;
    --atm-focus: #A57BFF;
    --atm-primary: #7A17FF;
    --atm-primary-hover: #8A33FF;
    --atm-primary-pressed: #6812DB;
    --atm-on-primary: #FFFFFF;
    --atm-primary-soft-bg: #22164A;
    --atm-primary-soft-text: #C7ABFF;
    --atm-secondary-border: #40E3F2;
    --atm-secondary-text: #40E3F2;
    --atm-secondary-bg: transparent;
    --atm-ghost-border: #222B47;
    --atm-ghost-bg: transparent;
    --atm-danger-solid: #CC3262;
    --atm-input-bg: #0A1022;
    --atm-jml-tile: #5A63C8;
    --atm-success-text: #2ED8C3;
    --atm-success-fill: #0F2A2E;
    --atm-info-text: #6FB3E0;
    --atm-info-fill: #0F2235;
    --atm-warning-text: #FFB521;
    --atm-warning-fill: #2A2210;
    --atm-danger-text: #FF6B95;
    --atm-danger-fill: #2E1220;
    --atm-neutral-text: #C3C8DA;
    --atm-neutral-fill: #1A2238;
    --atm-accent-text: #C7ABFF;
    --atm-accent-fill: #22164A;
    --atm-shadow-card: none;
    color-scheme: dark;
  }
}

[data-theme="dark"] {
  --atm-bg: #070B1A;
  --atm-surface: #0F1629;
  --atm-surface-raised: #151D35;
  --atm-surface-sunken: #0A1022;
  --atm-header-bg: #0B1124;
  --atm-border: #222B47;
  --atm-border-strong: #323C5E;
  --atm-text: #F2F4FA;
  --atm-text-secondary: #A3A9C2;
  --atm-text-muted: #8189A8;
  --atm-accent: #A57BFF;
  --atm-link: #40E3F2;
  --atm-focus: #A57BFF;
  --atm-primary: #7A17FF;
  --atm-primary-hover: #8A33FF;
  --atm-primary-pressed: #6812DB;
  --atm-on-primary: #FFFFFF;
  --atm-primary-soft-bg: #22164A;
  --atm-primary-soft-text: #C7ABFF;
  --atm-secondary-border: #40E3F2;
  --atm-secondary-text: #40E3F2;
  --atm-secondary-bg: transparent;
  --atm-ghost-border: #222B47;
  --atm-ghost-bg: transparent;
  --atm-danger-solid: #CC3262;
  --atm-input-bg: #0A1022;
  --atm-jml-tile: #5A63C8;
  --atm-success-text: #2ED8C3;
  --atm-success-fill: #0F2A2E;
  --atm-info-text: #6FB3E0;
  --atm-info-fill: #0F2235;
  --atm-warning-text: #FFB521;
  --atm-warning-fill: #2A2210;
  --atm-danger-text: #FF6B95;
  --atm-danger-fill: #2E1220;
  --atm-neutral-text: #C3C8DA;
  --atm-neutral-fill: #1A2238;
  --atm-accent-text: #C7ABFF;
  --atm-accent-fill: #22164A;
  --atm-shadow-card: none;
  color-scheme: dark;
}

[data-theme="light"] {
  --atm-bg: #F5F6FA;
  --atm-surface: #FFFFFF;
  --atm-surface-raised: #FFFFFF;
  --atm-surface-sunken: #EEF0F6;
  --atm-header-bg: #FFFFFF;
  --atm-border: #E2E4EE;
  --atm-border-strong: #C9CCDA;
  --atm-text: #1B1D3A;
  --atm-text-secondary: #545872;
  --atm-text-muted: #6B708A;
  --atm-accent: #7A17FF;
  --atm-link: #0A6F96;
  --atm-focus: #7A17FF;
  --atm-primary: #7A17FF;
  --atm-primary-hover: #8A33FF;
  --atm-primary-pressed: #6812DB;
  --atm-on-primary: #FFFFFF;
  --atm-primary-soft-bg: #EFE7FF;
  --atm-primary-soft-text: #3D0C85;
  --atm-secondary-border: #C9CCDA;
  --atm-secondary-text: #1B1D3A;
  --atm-secondary-bg: #FFFFFF;
  --atm-ghost-border: #E2E4EE;
  --atm-ghost-bg: #FFFFFF;
  --atm-danger-solid: #CC3262;
  --atm-input-bg: #FFFFFF;
  --atm-jml-tile: #2B3276;
  --atm-success-text: #0B6B60;
  --atm-success-fill: #E0F8F5;
  --atm-info-text: #1F5E8A;
  --atm-info-fill: #E3F0FA;
  --atm-warning-text: #8A5A00;
  --atm-warning-fill: #FFF4DA;
  --atm-danger-text: #B0234F;
  --atm-danger-fill: #FFE3EC;
  --atm-neutral-text: #3A3F5C;
  --atm-neutral-fill: #EEF0F5;
  --atm-accent-text: #5A12C2;
  --atm-accent-fill: #EFE7FF;
  --atm-shadow-card: 0 1px 2px rgba(16,24,64,.06), 0 4px 12px rgba(16,24,64,.04);
  color-scheme: light;
}

/* Base */
body {
  margin: 0;
  background: var(--atm-bg);
  color: var(--atm-text);
  font-family: var(--atm-font-ui);
  font-size: var(--atm-text-body-size);
  line-height: var(--atm-text-body-line);
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--atm-focus); outline-offset: 2px; }
.atm-num { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
