@font-face {
  font-family: Figtree;
  src: url('/panel-assets/fonts/figtree-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/panel-assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #F6F5F1;
  --surface: #FFFFFF;
  --border: #E4E1DA;
  --text: #1C1F1E;
  --secondary: #5B605D;
  --primary: #0F5E59;
  --primary-hover: #0B4A46;
  --primary-soft: #E3F0EE;
  --on-primary: #FFFFFF;
  --attention: #B45309;
  --attention-soft: #FEF3C7;
  --attention-panel: #FBF3E2;
  --attention-rail: #D4A24C;
  --danger: #B42318;
  --danger-soft: #FEE4E2;
  --danger-panel: #FBEFED;
  --danger-rail: #CC847D;
  --success: #15803D;
  --success-soft: #DCFCE7;
  --neutral: #4E5652;
  --neutral-soft: #EEEFEC;
  --control-border: #858A86;
  --overlay: #12151499;
  --shadow: 0 12px 36px #1215141a;
  --font: Figtree, system-ui, sans-serif;
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
  --s10: 40px;
  --s12: 48px;
  --card-radius: 12px;
  --button-radius: 8px;
  --target: 44px;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --background: #121514;
  --surface: #1B1F1E;
  --border: #2C3331;
  --text: #E8ECEA;
  --secondary: #A3ACA8;
  --primary: #4FB3A9;
  --primary-hover: #76CDC3;
  --primary-soft: #203531;
  --on-primary: #121514;
  --attention: #FBBF6C;
  --attention-soft: #3C2A18;
  --attention-panel: #2D261D;
  --attention-rail: #C49A58;
  --danger: #FFABA5;
  --danger-soft: #412724;
  --danger-panel: #312423;
  --danger-rail: #C68D86;
  --success: #86E1A5;
  --success-soft: #24372B;
  --neutral: #C1CAC5;
  --neutral-soft: #2C3331;
  --control-border: #798580;
  --overlay: #000b;
  --shadow: 0 12px 36px #0007;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --background: #121514;
    --surface: #1B1F1E;
    --border: #2C3331;
    --text: #E8ECEA;
    --secondary: #A3ACA8;
    --primary: #4FB3A9;
    --primary-hover: #76CDC3;
    --primary-soft: #203531;
    --on-primary: #121514;
    --attention: #FBBF6C;
    --attention-soft: #3C2A18;
    --attention-panel: #2D261D;
    --attention-rail: #C49A58;
    --danger: #FFABA5;
    --danger-soft: #412724;
    --danger-panel: #312423;
    --danger-rail: #C68D86;
    --success: #86E1A5;
    --success-soft: #24372B;
    --neutral: #C1CAC5;
    --neutral-soft: #2C3331;
    --control-border: #798580;
    --overlay: #000b;
    --shadow: 0 12px 36px #0007;
  }
}
