/* exoCortex — tokens. Fonte unica: generato da tokens.json. Non modificare a mano. */
:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF;
  --surface-alt: #F5F6FA;
  --surface-sunken: #ECEEF5;
  --surface-inverse: #0E1530;
  --ink: #0E1530;
  --ink-muted: #4A5170;
  --ink-subtle: #626885;
  --ink-inverse: #FFFFFF;
  --border: #E2E5EF;
  --border-control: #8A90A8;
  --brand: #3B3BD9;
  --brand-hover: #2A2AA8;
  --brand-tint: #ECECFD;
  --on-brand: #FFFFFF;
  --human: #FF6A45;
  --human-text: #C2401C;
  --human-tint: #FFF0EB;
  --success: #157F3B;
  --success-tint: #E8F5EC;
  --warning: #A14A06;
  --warning-tint: #FFF4E5;
  --danger: #C62828;
  --danger-tint: #FDECEC;
  --surface-raised: #FFFFFF;
  --overlay: rgba(14,21,48,0.56);
  --nav-bg: #0E1530;
  --nav-ink: #C9CEE3;
  --nav-ink-active: #FFFFFF;
  --nav-active-bg: #26337A;
  --row-hover: #F5F6FA;
  --row-selected: #ECECFD;
  --focus-ring: #3B3BD9;
  --shadow-sm: 0 1px 2px rgba(14,21,48,0.06), 0 1px 3px rgba(14,21,48,0.08);
  --shadow-lg: 0 24px 64px rgba(14,21,48,0.24);
  --shadow-md: 0 8px 24px rgba(14,21,48,0.10);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1124;
  --surface-alt: #121A38;
  --surface-sunken: #0E1530;
  --surface-inverse: #F2F4FA;
  --ink: #F2F4FA;
  --ink-muted: #B8BED6;
  --ink-subtle: #8F96B3;
  --ink-inverse: #0E1530;
  --border: #26304F;
  --border-control: #6B76A3;
  --brand: #8C8CFF;
  --brand-hover: #A9A9FF;
  --brand-tint: #1C2150;
  --on-brand: #0B1124;
  --human: #FF6A45;
  --human-text: #FF8A6B;
  --human-tint: #3A1E16;
  --success: #4ADE80;
  --success-tint: #0F2A1C;
  --warning: #FBBF24;
  --warning-tint: #2E2410;
  --danger: #F87171;
  --danger-tint: #3A1517;
  --surface-raised: #161F42;
  --overlay: rgba(3,6,16,0.72);
  --nav-bg: #070C1C;
  --nav-ink: #B8BED6;
  --nav-ink-active: #FFFFFF;
  --nav-active-bg: #1C2150;
  --row-hover: #121A38;
  --row-selected: #1C2150;
  --focus-ring: #A9A9FF;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.6);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B1124;
    --surface-alt: #121A38;
    --surface-sunken: #0E1530;
    --surface-inverse: #F2F4FA;
    --ink: #F2F4FA;
    --ink-muted: #B8BED6;
    --ink-subtle: #8F96B3;
    --ink-inverse: #0E1530;
    --border: #26304F;
    --border-control: #6B76A3;
    --brand: #8C8CFF;
    --brand-hover: #A9A9FF;
    --brand-tint: #1C2150;
    --on-brand: #0B1124;
    --human: #FF6A45;
    --human-text: #FF8A6B;
    --human-tint: #3A1E16;
    --success: #4ADE80;
    --success-tint: #0F2A1C;
    --warning: #FBBF24;
    --warning-tint: #2E2410;
    --danger: #F87171;
    --danger-tint: #3A1517;
    --surface-raised: #161F42;
    --overlay: rgba(3,6,16,0.72);
    --nav-bg: #070C1C;
    --nav-ink: #B8BED6;
    --nav-ink-active: #FFFFFF;
    --nav-active-bg: #1C2150;
    --row-hover: #121A38;
    --row-selected: #1C2150;
    --focus-ring: #A9A9FF;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-lg: 0 24px 64px rgba(0,0,0,0.6);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
  }
}
:root {
  --font-display: Sora, Inter, "Noto Sans", system-ui, sans-serif;
  --font-body: Inter, "Noto Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --container-max: 1200px;
  --prose-max: 68ch;
  --form-max: 640px;
  --control-height: 48px;
  --control-height-sm: 36px;
  --sidebar-width: 248px;
  --topbar-height: 56px;
  --table-row-height: 48px;
  --modal-sm: 440px;
  --modal-md: 560px;
  --modal-lg: 800px;
  --duration-fast: 120ms;
  --duration-base: 200ms;
}

/* Stili tipografici */
.t-display { font-family: var(--font-display); font-size: 64px; line-height: 68px; font-weight: 700; letter-spacing: -1.5px; }
.t-h1 { font-family: var(--font-display); font-size: 48px; line-height: 56px; font-weight: 700; letter-spacing: -1px; }
.t-h2 { font-family: var(--font-display); font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -0.5px; }
.t-h3 { font-family: var(--font-display); font-size: 26px; line-height: 34px; font-weight: 600; letter-spacing: -0.25px; }
.t-h4 { font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 600; }
.t-eyebrow { font-family: var(--font-body); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.t-lead { font-family: var(--font-body); font-size: 20px; line-height: 32px; font-weight: 400; }
.t-body { font-family: var(--font-body); font-size: 17px; line-height: 28px; font-weight: 400; }
.t-body-sm { font-family: var(--font-body); font-size: 15px; line-height: 24px; font-weight: 400; }
.t-label { font-family: var(--font-body); font-size: 15px; line-height: 20px; font-weight: 500; }
.t-caption { font-family: var(--font-body); font-size: 13px; line-height: 20px; font-weight: 400; }
.t-app-title { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 600; }
.t-app-section { font-family: var(--font-display); font-size: 16px; line-height: 24px; font-weight: 600; }
.t-app-body { font-family: var(--font-body); font-size: 14px; line-height: 20px; font-weight: 400; }
.t-app-label { font-family: var(--font-body); font-size: 13px; line-height: 18px; font-weight: 500; }
.t-table-head { font-family: var(--font-body); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.6px; }
.t-mono { font-family: var(--font-mono); font-size: 14px; line-height: 22px; font-weight: 400; }
@media (max-width: 899px) {
  .t-display { font-size: 40px; line-height: 44px; }
  .t-h1 { font-size: 34px; line-height: 40px; }
  .t-h2 { font-size: 28px; line-height: 36px; }
  .t-h3 { font-size: 22px; line-height: 30px; }
}
