/* OTS Design System — self-hosted fonts + tokens (Aurora dark brand) */
/* Webfonts: Inter (SIL OFL) + JetBrains Mono (Apache-2.0), self-hosted. */
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-greek-ext.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-greek-ext.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-greek-ext.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-greek-ext.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==== tokens/colors.css ==== */
/* ============================================================
   OTS — Color tokens
   Layer 1: primitives (raw ramps)   →  --ots-gray-*, --ots-accent-*, status ramps
   Layer 2: semantic (role tokens)   →  --ots-text-*, --ots-surface-*, --ots-border-*
   Monochrome-dominant. One accent (Signal Slate-Cyan), decoupled from status.
   ============================================================ */

:root {
  /* ---- Primitive: cool-neutral gray ramp (slight blue cast) ---- */
  --ots-gray-0:   #ffffff;
  --ots-gray-25:  #fbfcfd;
  --ots-gray-50:  #f6f8fa;
  --ots-gray-100: #eef1f4;
  --ots-gray-150: #e7ebef;
  --ots-gray-200: #e0e5ea;
  --ots-gray-300: #ccd4dc;
  --ots-gray-400: #a5b1bc;
  --ots-gray-500: #788893;
  --ots-gray-600: #586672;
  --ots-gray-700: #3d4853;
  --ots-gray-800: #28313a;
  --ots-gray-900: #161c22;
  --ots-gray-950: #0c1014;

  /* ---- Primitive: accent — Signal Slate-Cyan (low chroma) ---- */
  --ots-accent-50:  #e6f3f4;
  --ots-accent-100: #c5e4e7;
  --ots-accent-200: #9bd0d6;
  --ots-accent-300: #5fb4bc;
  --ots-accent-400: #2a949e;
  --ots-accent-500: #0e7c86;  /* brand base */
  --ots-accent-600: #0a626b;
  --ots-accent-700: #084c53;
  --ots-accent-800: #073b41;

  /* ---- Primitive: status ramps (low-chroma, distinct from accent) ---- */
  --ots-success-50:  #e8f4ee;
  --ots-success-500: #1f8a5b;
  --ots-success-700: #136245;

  --ots-warning-50:  #fbf2e2;
  --ots-warning-500: #b07410;
  --ots-warning-700: #82540a;

  --ots-danger-50:   #fbecea;
  --ots-danger-500:  #c5453b;
  --ots-danger-700:  #97312a;

  --ots-info-50:     #e9f0fa;
  --ots-info-500:    #2563b5;
  --ots-info-700:    #1b4a89;

  /* ============================================================
     Layer 2: semantic role tokens (light theme)
     Dark mode = re-point these under [data-theme='dark'], no component edits.
     ============================================================ */

  /* surfaces */
  --ots-surface-app:      var(--ots-gray-50);   /* page background */
  --ots-surface-card:     var(--ots-gray-0);    /* raised panels / cards */
  --ots-surface-sunken:   var(--ots-gray-100);  /* wells, insets, code blocks */
  --ots-surface-raised:   var(--ots-gray-0);    /* menus, popovers, dialogs */
  --ots-surface-hover:    var(--ots-gray-100);  /* row / control hover */
  --ots-surface-active:   var(--ots-gray-150);  /* pressed */
  --ots-surface-selected: var(--ots-accent-50); /* selected row / tab tint */

  /* text */
  --ots-text-strong:   var(--ots-gray-900);  /* headings, key values */
  --ots-text-body:     var(--ots-gray-700);  /* default body */
  --ots-text-muted:    var(--ots-gray-600);  /* secondary */
  --ots-text-subtle:   var(--ots-gray-500);  /* tertiary, captions, placeholders */
  --ots-text-on-accent: var(--ots-gray-0);   /* text on accent fills */
  --ots-text-link:     var(--ots-accent-600);/* AA on white */

  /* borders */
  --ots-border:        var(--ots-gray-200);  /* default hairline */
  --ots-border-strong: var(--ots-gray-300);  /* emphasized / inputs */
  --ots-border-subtle: var(--ots-gray-150);  /* faint dividers */
  --ots-border-focus:  var(--ots-accent-500);

  /* accent roles (dual-token split for AA) */
  --ots-accent:        var(--ots-accent-500);  /* fills, indicators, UI accent */
  --ots-accent-hover:  var(--ots-accent-600);
  --ots-accent-active: var(--ots-accent-700);
  --ots-accent-text:   var(--ots-accent-600);  /* accent used as text/links (AA) */
  --ots-accent-ring:   color-mix(in srgb, var(--ots-accent-500) 40%, transparent);
  --ots-accent-tint:   var(--ots-accent-50);

  /* status roles */
  --ots-success:       var(--ots-success-500);
  --ots-success-text:  var(--ots-success-700);
  --ots-success-tint:  var(--ots-success-50);
  --ots-warning:       var(--ots-warning-500);
  --ots-warning-text:  var(--ots-warning-700);
  --ots-warning-tint:  var(--ots-warning-50);
  --ots-danger:        var(--ots-danger-500);
  --ots-danger-text:   var(--ots-danger-700);
  --ots-danger-tint:   var(--ots-danger-50);
  --ots-info:          var(--ots-info-500);
  --ots-info-text:     var(--ots-info-700);
  --ots-info-tint:     var(--ots-info-50);

  /* focus ring (composable) */
  --ots-focus-ring: 0 0 0 2px var(--ots-surface-card), 0 0 0 4px var(--ots-accent-ring);
}


/* ==== tokens/typography.css ==== */
/* ============================================================
   OTS — Typography tokens
   Inter for UI/body, JetBrains Mono for code/data/figures.
   Default body size is 14px — tuned for dense operational surfaces.
   ============================================================ */

:root {
  /* families */
  --ots-font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ots-font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* weights */
  --ots-weight-regular: 400;
  --ots-weight-medium:  500;
  --ots-weight-semibold:600;
  --ots-weight-bold:    700;

  /* type scale (px) — compact, instrument-panel cadence */
  --ots-text-2xs: 11px;
  --ots-text-xs:  12px;
  --ots-text-sm:  13px;
  --ots-text-base:14px;  /* body default */
  --ots-text-md:  16px;
  --ots-text-lg:  18px;
  --ots-text-xl:  20px;
  --ots-text-2xl: 24px;
  --ots-text-3xl: 30px;
  --ots-text-4xl: 36px;
  --ots-text-5xl: 48px;

  /* line heights */
  --ots-leading-tight:   1.2;
  --ots-leading-snug:    1.35;
  --ots-leading-normal:  1.5;
  --ots-leading-relaxed: 1.65;

  /* letter spacing */
  --ots-tracking-tight:  -0.01em;
  --ots-tracking-normal: 0em;
  --ots-tracking-wide:   0.02em;
  --ots-tracking-caps:   0.06em;  /* overline / eyebrow labels */

  /* tabular figures helper (use on numeric data) */
  --ots-numeric: 'tnum' 1, 'lnum' 1; /* @kind other */
}


/* ==== tokens/spacing.css ==== */
/* ============================================================
   OTS — Spacing tokens
   4px base unit. Strict grid; whitespace does the work.
   ============================================================ */

:root {
  --ots-space-0:  0px;
  --ots-space-px: 1px;
  --ots-space-1:  4px;
  --ots-space-2:  8px;
  --ots-space-3:  12px;
  --ots-space-4:  16px;
  --ots-space-5:  20px;
  --ots-space-6:  24px;
  --ots-space-7:  32px;
  --ots-space-8:  40px;
  --ots-space-9:  48px;
  --ots-space-10: 64px;
  --ots-space-11: 80px;
  --ots-space-12: 96px;

  /* control sizing — height of buttons/inputs/etc by density */
  --ots-control-sm: 28px;
  --ots-control-md: 34px;
  --ots-control-lg: 40px;

  /* layout rails */
  --ots-sidebar-w:  248px;
  --ots-topbar-h:   52px;
  --ots-container:  1280px;
  --ots-gutter:     24px;
}


/* ==== tokens/radii.css ==== */
/* ============================================================
   OTS — Radii & border tokens
   Small radii, hairline borders — precise, structural feel.
   ============================================================ */

:root {
  --ots-radius-none: 0px;
  --ots-radius-sm:   3px;
  --ots-radius-md:   5px;   /* default for controls / inputs */
  --ots-radius-lg:   8px;   /* cards / panels */
  --ots-radius-xl:   12px;  /* dialogs / large surfaces */
  --ots-radius-pill: 999px; /* tags, avatars, status dots */

  --ots-border-width: 1px;  /* hairline everywhere */
}


/* ==== tokens/elevation.css ==== */
/* ============================================================
   OTS — Elevation / shadow tokens
   Restrained. Cool-tinted, low-spread. Most surfaces use a hairline
   border instead of a shadow; shadows reserved for true overlays.
   ============================================================ */

:root {
  --ots-shadow-xs: 0 1px 1px rgba(12, 16, 20, 0.04);
  --ots-shadow-sm: 0 1px 2px rgba(12, 16, 20, 0.05), 0 1px 3px rgba(12, 16, 20, 0.05);
  --ots-shadow-md: 0 2px 4px rgba(12, 16, 20, 0.06), 0 4px 12px rgba(12, 16, 20, 0.08);
  --ots-shadow-lg: 0 8px 16px rgba(12, 16, 20, 0.08), 0 16px 40px rgba(12, 16, 20, 0.12);

  /* inset for wells / pressed fields */
  --ots-shadow-inset: inset 0 1px 2px rgba(12, 16, 20, 0.06);
}


/* ==== tokens/motion.css ==== */
/* ============================================================
   OTS — Motion tokens
   Quick, linear-ish, no bounce. Motion confirms state; it never performs.
   ============================================================ */

:root {
  --ots-duration-fast:   120ms; /* @kind other */
  --ots-duration-base:   180ms; /* @kind other */
  --ots-duration-slow:   240ms; /* @kind other */

  /* standard easing — decisive, slight ease-out */
  --ots-ease-standard: cubic-bezier(0.2, 0, 0, 1); /* @kind other */
  --ots-ease-out:      cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */
  --ots-ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1); /* @kind other */

  --ots-transition-control: background-color var(--ots-duration-fast) var(--ots-ease-standard),
                            border-color var(--ots-duration-fast) var(--ots-ease-standard),
                            color var(--ots-duration-fast) var(--ots-ease-standard),
                            box-shadow var(--ots-duration-fast) var(--ots-ease-standard);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --ots-duration-fast: 0ms; /* @kind other */
    --ots-duration-base: 0ms; /* @kind other */
    --ots-duration-slow: 0ms; /* @kind other */
  }
}


/* ==== tokens/base.css ==== */
/* ============================================================
   OTS — Base element defaults
   Minimal, token-driven. Sets the body type + smoothing only.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--ots-font-sans);
  font-size: var(--ots-text-base);
  line-height: var(--ots-leading-normal);
  color: var(--ots-text-body);
  background: var(--ots-surface-app);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

code, kbd, samp, pre {
  font-family: var(--ots-font-mono);
  font-size: 0.92em;
}

/* tabular figures by default on data tables */
.ots-numeric { font-variant-numeric: tabular-nums lining-nums; }

::selection { background: var(--ots-accent-100); }


/* ==== tokens/aurora.css ==== */
/* ============================================================
   OTS — Aurora Glass tokens (dark brand surface)
   The new brand direction: onyx/obsidian surfaces, frosted glass,
   and THREE semantic product accents (sales / quality / digital).
   Layer 1: primitives (always available).
   Layer 2: dark semantic re-point, scoped to `.ots-aurora` / [data-theme='dark'].
   ============================================================ */

:root {
  /* ---- Primitive: onyx / obsidian ramp (near-black, slight cool cast) ---- */
  --ots-onyx-0:   #060607;  /* deepest page */
  --ots-onyx-1:   #0b0b0d;  /* panel */
  --ots-onyx-2:   #121214;  /* raised */
  --ots-onyx-3:   #1a1a1d;  /* control / inset */
  --ots-onyx-4:   #232327;  /* hover step */
  --ots-onyx-line:#050506;  /* sunken */

  /* ---- Primitive: three semantic product accents ----
     Shared lightness (0.80) & chroma (0.085); hue carries the meaning.
     `-text` is the AA-legible variant for text/links/icons on onyx. */
  --ots-domain-sales:        oklch(0.80 0.085 232);  /* Vertrieb — fresh blue */
  --ots-domain-sales-text:   oklch(0.865 0.075 232);
  --ots-domain-quality:      oklch(0.80 0.085 152);  /* Qualität — fresh green */
  --ots-domain-quality-text: oklch(0.865 0.075 152);
  --ots-domain-digital:      oklch(0.80 0.085 292);  /* Digitalisierung — violet */
  --ots-domain-digital-text: oklch(0.865 0.075 292);

  /* ---- Primitive: glass ---- */
  --ots-glass-bg:        rgba(255, 255, 255, 0.05);
  --ots-glass-bg-strong: rgba(255, 255, 255, 0.08);
  --ots-glass-border:    rgba(255, 255, 255, 0.14);
  --ots-glass-blur:      18px;
  --ots-glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.12); /* @kind shadow */
  --ots-glass-shadow:    0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --ots-glass-filter:    blur(var(--ots-glass-blur)) saturate(125%);

  /* hairlines on dark */
  --ots-line:        rgba(255, 255, 255, 0.09);
  --ots-line-strong: rgba(255, 255, 255, 0.16);
  --ots-line-subtle: rgba(255, 255, 255, 0.06);

  /* ---- Aura (soft accent glow blobs) ---- */
  --ots-aura-blur:    72px;
  --ots-aura-opacity: 0.15; /* @kind other */

  /* ---- Reveal motion (honors reduced-motion via the guard below) ---- */
  --ots-reveal-distance: 16px;
  --ots-reveal-duration: 600ms; /* @kind other */
  --ots-reveal-ease:     cubic-bezier(0.2, 0, 0, 1); /* @kind other */
}

/* ============================================================
   Layer 2 — dark semantic re-point.
   Put `.ots-aurora` (or data-theme='dark') on <html>/<body> and the
   existing --ots-* roles flip to dark with NO component edits.
   ============================================================ */
.ots-aurora,
[data-theme='dark'] {
  /* surfaces */
  --ots-surface-app:      var(--ots-onyx-0);
  --ots-surface-card:     var(--ots-onyx-1);
  --ots-surface-sunken:   var(--ots-onyx-line);
  --ots-surface-raised:   var(--ots-onyx-2);
  --ots-surface-hover:    rgba(255, 255, 255, 0.05);
  --ots-surface-active:   rgba(255, 255, 255, 0.08);
  --ots-surface-selected: color-mix(in oklch, var(--ots-domain-sales) 16%, transparent);

  /* text */
  --ots-text-strong:    #f5f5f6;
  --ots-text-body:      #c9cacd;
  --ots-text-muted:     #b6b7bb;
  --ots-text-subtle:    #76777c;
  --ots-text-on-accent: #08080a;   /* accents are light → dark text on fills */
  --ots-text-link:      var(--ots-domain-sales-text);

  /* borders */
  --ots-border:        var(--ots-line);
  --ots-border-strong: var(--ots-line-strong);
  --ots-border-subtle: var(--ots-line-subtle);
  --ots-border-focus:  var(--ots-domain-sales);

  /* accent roles — the system's single interactive accent is sales-blue;
     the three domain accents stay decoupled for product meaning. */
  --ots-accent:        var(--ots-domain-sales);
  --ots-accent-hover:  var(--ots-domain-sales-text);
  --ots-accent-active: oklch(0.74 0.085 232);
  --ots-accent-text:   var(--ots-domain-sales-text);
  --ots-accent-ring:   color-mix(in srgb, var(--ots-domain-sales) 45%, transparent);
  --ots-accent-tint:   color-mix(in oklch, var(--ots-domain-sales) 14%, transparent);
  --ots-accent-200:    color-mix(in oklch, var(--ots-domain-sales) 45%, transparent); /* accent-tone borders */

  /* status — dark re-point: brighter solids, AA text, translucent tints */
  --ots-success:      oklch(0.72 0.13 155);
  --ots-success-text: oklch(0.82 0.10 155);
  --ots-success-tint: color-mix(in oklch, var(--ots-success) 20%, transparent);
  --ots-warning:      oklch(0.78 0.13 78);
  --ots-warning-text: oklch(0.85 0.11 82);
  --ots-warning-tint: color-mix(in oklch, var(--ots-warning) 20%, transparent);
  --ots-danger:       oklch(0.66 0.17 25);
  --ots-danger-text:  oklch(0.74 0.15 25);
  --ots-danger-tint:  color-mix(in oklch, var(--ots-danger) 22%, transparent);
  --ots-info:         oklch(0.70 0.12 245);
  --ots-info-text:    oklch(0.80 0.10 245);
  --ots-info-tint:    color-mix(in oklch, var(--ots-info) 20%, transparent);

  /* shadows read deeper on black */
  --ots-shadow-sm: 0 1px 2px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.4);
  --ots-shadow-md: 0 8px 24px -12px rgba(0,0,0,.7);
  --ots-shadow-lg: 0 24px 60px -28px rgba(0,0,0,.85);

  /* focus ring on dark */
  --ots-focus-ring: 0 0 0 2px var(--ots-surface-app), 0 0 0 4px var(--ots-accent-ring);

  color-scheme: dark;
  background: var(--ots-surface-app);
  background-image: radial-gradient(120% 60% at 50% -10%, rgba(255,255,255,.05), transparent 55%);
}

::selection { background: color-mix(in oklch, var(--ots-domain-sales) 35%, transparent); }
