:root {
  --brand-navy: #143D8D;
  --brand-navy-deep: #0E2B66;
  --brand-navy-soft: #EDF2FC;
  --brand-gold: #C89E28;
  --brand-sky: #00B0F0;

  --canvas: #F6F8FB;
  --surface: #FFFFFF;
  --surface-subtle: #F9FAFC;
  --border: #D8E0EC;
  --border-strong: #B8C4D6;

  --ink-primary: #111827;
  --ink-secondary: #4B5565;
  --ink-muted: #6B7280;

  --ok-text: #146C43;
  --ok-bg: #EAF7F0;
  --ok-border: #B7E4C7;

  --fail-text: #B42318;
  --fail-bg: #FEF3F2;
  --fail-border: #FECDCA;

  --warn-text: #9A5B13;
  --warn-bg: #FFF8E6;
  --warn-border: #FDE68A;

  --ext-text: #0E6BA8;
  --ext-bg: #EBF6FC;

  --font-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Consolas", "SFMono-Regular", Menlo, monospace;

  --rail-w: 256px;
  --topbar-h: 58px;
  --radius-sm: 4px;
  --radius-md: 6px;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--canvas);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand-navy);
  outline-offset: 2px;
}

.num-tabular {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
