:root {
  color-scheme: dark;
  --bg: #0b1220;
  --surface: #151f32;
  --surface-soft: #1b2940;
  --ink: #f4f7fb;
  --muted: #9eabbd;
  --line: #33435b;
  --brand: #54c2b5;
  --brand-dark: #070d19;
  --blue: #69a5dc;
  --gold: #e0ad3d;
  --red: #e36a6a;
  --good: #57ad77;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef3f0;
  --surface: #ffffff;
  --surface-soft: #f4f7f5;
  --ink: #1d2926;
  --muted: #687570;
  --line: #d3ddd8;
  --brand: #15796f;
  --brand-dark: #f8fbf9;
  --blue: #316b9c;
  --gold: #a56c00;
  --red: #a83a3a;
  --good: #257245;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { color: var(--ink); font-family: "Segoe UI", system-ui, sans-serif; letter-spacing: 0; margin: 0; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.site-header { align-items: center; background: var(--brand-dark); color: #fff; display: flex; justify-content: space-between; min-height: 76px; padding: 12px max(24px, calc((100vw - 1420px) / 2)); }
.header-actions { align-items: center; display: flex; gap: 14px; }
.theme-toggle { align-items: center; background: #111c2b; border: 1px solid #33435b; border-radius: 6px; color: #9eabbd; cursor: pointer; display: grid; font-size: 10px; font-weight: 700; gap: 7px; grid-template-columns: auto 30px auto; min-height: 37px; padding: 3px 8px; }
.theme-toggle [data-theme-label] { transition: color .16s ease; }
.theme-toggle [data-theme-label].active { color: #fff; }
.theme-toggle-track { background: #27364a; border: 1px solid #465a74; border-radius: 9px; display: block; height: 16px; padding: 2px; width: 30px; }
.theme-toggle-track i { background: #fff; border-radius: 50%; display: block; height: 10px; transform: translateX(0); transition: transform .18s ease; width: 10px; }
.theme-toggle[data-theme="light"] .theme-toggle-track i { transform: translateX(14px); }
:root[data-theme="light"] .site-header { border-bottom: 1px solid var(--line); color: var(--ink); }
:root[data-theme="light"] .brand-mark { background: #e8f3ef; border-color: #a8c9c0; }
:root[data-theme="light"] .brand small, :root[data-theme="light"] nav a { color: #52645f; }
:root[data-theme="light"] nav a.active, :root[data-theme="light"] nav a:hover { color: #172521; }
:root[data-theme="light"] .theme-toggle { background: #e8efeb; border-color: #c6d3cd; color: #7a8984; }
:root[data-theme="light"] .theme-toggle [data-theme-label].active { color: #172521; }
:root[data-theme="light"] .theme-toggle-track { background: #cbd8d2; border-color: #aebfb7; }
.brand { align-items: center; color: inherit; display: flex; gap: 11px; text-decoration: none; }
.brand-mark { align-items: center; background: #071713; border: 1px solid #2f5c55; border-radius: 5px; display: flex; height: 42px; justify-content: center; width: 92px; }
.brand-signal { display: block; height: 38px; width: 88px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 22px; }
.brand small { color: #b9cbc7; font-size: 11px; margin-top: 1px; max-width: 250px; }
nav { display: flex; gap: 8px; }
nav a { border-bottom: 2px solid transparent; color: #c7d6d2; padding: 9px 8px; text-decoration: none; }
nav a.active, nav a:hover { border-color: #f1b942; color: #fff; }
main { margin: 0 auto; max-width: 1460px; overflow-x: hidden; padding: 24px; width: 100%; }
.eyebrow { color: var(--brand); font-size: 11px; font-weight: 700; margin: 0 0 4px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 29px; line-height: 1.12; margin-bottom: 0; }
h2 { font-size: 18px; margin-bottom: 0; }
h3 { font-size: 14px; margin-bottom: 9px; }
.section-heading { align-items: center; display: flex; justify-content: space-between; }
.muted { color: var(--muted); font-size: 11px; }
@media (max-width: 640px) {
  .site-header, main { padding-left: 14px; padding-right: 14px; }
  .site-header { align-items: stretch; flex-direction: column; gap: 6px; }
  .site-header nav { gap: 3px; justify-content: space-between; overflow-x: auto; width: 100%; }
  .site-header nav a { flex: 0 0 auto; font-size: 11px; padding: 7px 4px; }
  .header-actions { align-items: stretch; flex-direction: column; gap: 5px; }
  .theme-toggle { align-self: flex-end; width: 132px; }
}
