:root {
  --brand: #165A73;
  --brand-strong: #10465A;
  --brand-soft: #E8F1F4;
  --brand-softer: #F2F7F9;
  --bg: #F4F7F8;
  --surface: #FFFFFF;
  --surface-2: #F6F9FA;
  --text: #102129;
  --text-2: #465B65;
  --muted: #647983;
  --line: #D2DEE2;
  --danger: #B53A3A;
  --danger-soft: #FFF0F0;
  --success: #2C725B;
  --shadow: 0 16px 40px rgba(25, 54, 66, .08);
  --shadow-soft: 0 8px 24px rgba(25, 54, 66, .06);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  /* UI system · 0.22 */
  --control-height: 46px;
  --control-height-sm: 38px;
  --control-radius: 12px;
  --icon-control: 40px;
  --card-radius: 18px;
  --card-padding: 20px;
  --subcard-radius: 16px;
  --subcard-padding: 18px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;

  --sidebar: 72px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E171B;
    --surface: #142127;
    --surface-2: #18282F;
    --text: #EEF5F7;
    --text-2: #AABBC2;
    --muted: #82959D;
    --line: #263A43;
    --brand: #5C98AF;
    --brand-strong: #75AFC5;
    --brand-soft: #183441;
    --brand-softer: #122830;
    --danger-soft: #351E20;
    --shadow: 0 16px 40px rgba(0,0,0,.22);
    --shadow-soft: 0 8px 24px rgba(0,0,0,.18);
  }
}

:root[data-theme="dark"] {
  --bg: #0E171B;
  --surface: #142127;
  --surface-2: #18282F;
  --text: #EEF5F7;
  --text-2: #AABBC2;
  --muted: #82959D;
  --line: #263A43;
  --brand: #5C98AF;
  --brand-strong: #75AFC5;
  --brand-soft: #183441;
  --brand-softer: #122830;
  --danger-soft: #351E20;
  --shadow: 0 16px 40px rgba(0,0,0,.22);
  --shadow-soft: 0 8px 24px rgba(0,0,0,.18);
}
