/* Design System Backoffice v3. Static conversion of the original tokens.json.
 * Aliases, theme values, font metadata and typography come only from that JSON.
 * The remote tokens.css returned 403; no remote CSS response was replaced or modified.
 */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
}

:root {
  --slate-black: #050505;
  --slate-deep: #121719;
  --slate-deep-2: #171d1f;
  --slate-deep-3: #1e2628;
  --slate-deep-4: #252e31;
  --slate-gray: #4b5a60;
  --slate-gray-2: #5b676a;
  --slate-mist: #8f9a9d;
  --slate-mist-2: #a9b3b5;
  --slate-dim: #4e5a5d;
  --frost: #aababd;
  --paper: #f7f7f5;
  --flake-white: #ffffff;
  --paper-soft: #eef1ef;
  --paper-sel: #e8ecea;
  --line-l10: rgba(75,90,96,0.10);
  --line-l18: rgba(75,90,96,0.18);
  --line-l32: rgba(75,90,96,0.32);
  --line-l70: rgba(75,90,96,0.70);
  --line-d10: rgba(170,186,189,0.10);
  --line-d18: rgba(170,186,189,0.18);
  --line-d32: rgba(170,186,189,0.32);
  --line-d50: rgba(170,186,189,0.53);
  --scrim-light: rgba(5,5,5,0.42);
  --scrim-dark: rgba(0,0,0,0.64);
  --signal-deep: #176b76;
  --signal-deep-hover: #125862;
  --signal-deep-press: #0e4850;
  --signal-ice: #55c2d1;
  --signal-ice-hover: #77cfdb;
  --signal-ice-press: #3fb0c0;
  --tint-light: rgba(23,107,118,0.08);
  --tint-dark: rgba(85,194,209,0.10);
  --success: #2f8f68;
  --success-dk: #69c296;
  --success-ink: #267454;
  --success-surface-l: rgba(47,143,104,0.10);
  --success-surface-d: rgba(105,194,150,0.10);
  --success-border-l: rgba(47,143,104,0.40);
  --success-border-d: rgba(105,194,150,0.40);
  --important: #d99432;
  --important-dk: #e6a84a;
  --important-ink: #8f5f1b;
  --important-surface-l: rgba(217,148,50,0.10);
  --important-surface-d: rgba(230,168,74,0.11);
  --important-border-l: rgba(217,148,50,0.45);
  --important-border-d: rgba(230,168,74,0.40);
  --error: #d85c5c;
  --error-ink: #b02a2a;
  --error-dk: #ff8f8f;
  --error-surface-l: rgba(216,92,92,0.10);
  --error-surface-d: rgba(255,143,143,0.10);
  --error-border-l: rgba(216,92,92,0.45);
  --error-border-d: rgba(255,143,143,0.40);
  --info: #2f6fc4;
  --info-ink: #285fa8;
  --info-dk: #6a9fe3;
  --info-surface-l: rgba(47,111,196,0.09);
  --info-surface-d: rgba(91,149,223,0.12);
  --info-border-l: rgba(47,111,196,0.40);
  --info-border-d: rgba(91,149,223,0.40);
  --neutral: #66767b;
  --viz-grid: var(--border-subtle);
  --viz-axis: var(--text-tertiary);
  --space-0: 0px;
  --space-2: 2px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --control-sm: 30px;
  --control-md: 36px;
  --control-lg: 40px;
  --row-comfortable: 44px;
  --row-compact: 32px;
  --sidebar-width: 248px;
  --sidebar-collapsed: 56px;
  --topbar-height: 52px;
  --content-padding: 24px;
  --content-padding-compact: 16px;
  --form-max: 720px;
  --read-max: 1200px;
  --modal-sm: 400px;
  --modal-md: 560px;
  --modal-lg: 720px;
  --drawer-md: 480px;
  --drawer-lg: 640px;
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;
  --target-min: 24px;
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-2xl: 1536px;
  --z-base: 0;
  --z-sticky: 10;
  --z-sidebar: 20;
  --z-dropdown: 30;
  --z-drawer: 40;
  --z-modal: 50;
  --z-toast: 60;
  --z-tooltip: 70;
  --duration-fast: 120ms;
  --duration-base: 180ms;
  --duration-slow: 240ms;
  --easing-standard: cubic-bezier(0.2, 0, 0, 1);
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;
}

:root,
[data-theme="light"] {
  --bg-canvas: var(--paper);
  --bg-surface: var(--flake-white);
  --bg-sunken: var(--paper-soft);
  --bg-hover: var(--paper-soft);
  --bg-selected: var(--paper-sel);
  --bg-overlay: var(--scrim-light);
  --text-primary: var(--slate-black);
  --text-secondary: var(--slate-gray);
  --text-tertiary: var(--slate-gray-2);
  --text-disabled: var(--slate-mist-2);
  --text-on-accent: var(--flake-white);
  --text-on-danger: var(--flake-white);
  --border-subtle: var(--line-l10);
  --border-default: var(--line-l18);
  --border-strong: var(--line-l32);
  --border-control: var(--line-l70);
  --border-focus: var(--signal-deep);
  --accent-default: var(--signal-deep);
  --accent-hover: var(--signal-deep-hover);
  --accent-pressed: var(--signal-deep-press);
  --accent-subtle: var(--tint-light);
  --accent-text: var(--signal-deep);
  --success-default: var(--success);
  --success-subtle: var(--success-surface-l);
  --success-text: var(--success-ink);
  --success-border: var(--success-border-l);
  --warning-default: var(--important);
  --warning-subtle: var(--important-surface-l);
  --warning-text: var(--important-ink);
  --warning-border: var(--important-border-l);
  --danger-default: var(--error);
  --danger-subtle: var(--error-surface-l);
  --danger-text: var(--error-ink);
  --danger-border: var(--error-border-l);
  --info-default: var(--info);
  --info-subtle: var(--info-surface-l);
  --info-text: var(--info-ink);
  --info-border: var(--info-border-l);
  --neutral-default: var(--neutral);
  --neutral-subtle: var(--paper-soft);
  --neutral-text: var(--slate-gray);
  --neutral-border: var(--line-l32);
  --viz-1: #008c9c;
  --viz-2: #d8652c;
  --viz-3: #6a55c8;
  --viz-4: #c9467f;
  --viz-5: #2f6fc4;
  --viz-6: #7c8a1e;
  --viz-7: #a8701d;
  --viz-8: #66767b;
  --viz-seq-1: #dcf0f2;
  --viz-seq-2: #a6d6dc;
  --viz-seq-3: #5fafba;
  --viz-seq-4: #23838f;
  --viz-seq-5: #176b76;
  --viz-div-neg: #2f6fc4;
  --viz-div-mid: #eef1ef;
  --viz-div-pos: #a8701d;
  --shadow-sm: 0 8px 24px rgba(5,5,5,0.08);
  --shadow-lg: 0 24px 70px rgba(5,5,5,0.16);
  --viz-grid: var(--border-subtle);
  --viz-axis: var(--text-tertiary);
}

[data-theme="dark"] {
  --bg-canvas: var(--slate-black);
  --bg-surface: var(--slate-deep);
  --bg-sunken: var(--slate-deep-2);
  --bg-hover: var(--slate-deep-3);
  --bg-selected: var(--slate-deep-4);
  --bg-overlay: var(--scrim-dark);
  --text-primary: var(--flake-white);
  --text-secondary: var(--frost);
  --text-tertiary: var(--slate-mist);
  --text-disabled: var(--slate-dim);
  --text-on-accent: var(--slate-black);
  --text-on-danger: var(--slate-black);
  --border-subtle: var(--line-d10);
  --border-default: var(--line-d18);
  --border-strong: var(--line-d32);
  --border-control: var(--line-d50);
  --border-focus: var(--signal-ice);
  --accent-default: var(--signal-ice);
  --accent-hover: var(--signal-ice-hover);
  --accent-pressed: var(--signal-ice-press);
  --accent-subtle: var(--tint-dark);
  --accent-text: var(--signal-ice);
  --success-default: var(--success-dk);
  --success-subtle: var(--success-surface-d);
  --success-text: var(--success-dk);
  --success-border: var(--success-border-d);
  --warning-default: var(--important-dk);
  --warning-subtle: var(--important-surface-d);
  --warning-text: var(--important-dk);
  --warning-border: var(--important-border-d);
  --danger-default: var(--error-dk);
  --danger-subtle: var(--error-surface-d);
  --danger-text: var(--error-dk);
  --danger-border: var(--error-border-d);
  --info-default: var(--info-dk);
  --info-subtle: var(--info-surface-d);
  --info-text: var(--info-dk);
  --info-border: var(--info-border-d);
  --neutral-default: var(--frost);
  --neutral-subtle: var(--slate-deep-4);
  --neutral-text: var(--frost);
  --neutral-border: var(--line-d32);
  --viz-1: #1f9ead;
  --viz-2: #d9632a;
  --viz-3: #8b7be3;
  --viz-4: #cc5a92;
  --viz-5: #3f82d6;
  --viz-6: #8c9c2e;
  --viz-7: #e6a84a;
  --viz-8: #aababd;
  --viz-seq-1: #10363b;
  --viz-seq-2: #165a63;
  --viz-seq-3: #2a8a96;
  --viz-seq-4: #55c2d1;
  --viz-seq-5: #9edde6;
  --viz-div-neg: #5b95df;
  --viz-div-mid: #1e2628;
  --viz-div-pos: #e6a84a;
  --shadow-sm: 0 10px 28px rgba(0,0,0,0.28);
  --shadow-lg: 0 30px 80px rgba(0,0,0,0.56);
  --viz-grid: var(--border-subtle);
  --viz-axis: var(--text-tertiary);
}

.text-display {
  font-family: var(--font-sans);
  font-size: 32px;
  line-height: 38px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.text-h1 {
  font-family: var(--font-sans);
  font-size: 26px;
  line-height: 32px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.text-h2 {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.text-kpi {
  font-family: var(--font-sans);
  font-size: 28px;
  line-height: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.text-h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
}

.text-body-strong {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
}

.text-small {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
}

.text-caption {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.text-overline {
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.text-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
}
