:root {
  --u: 60px;
  --gutter: 120px;
  --hdr-h: 120px;
  --ftr-h: 60px;
  --col: 1080px;

  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #0a2341;
  --body: #2e3d52;
  --muted: #56657c;
  --accent: #1f5fd1;
  --rule: rgba(10, 35, 65, 0.16);
  --panel-line: rgba(10, 35, 65, 0.09);
  --rule-strong: #0a2341;
  --field: rgba(10, 35, 65, 0.32);
  --field-bg: #ffffff;
  --grid-line: rgba(31, 95, 209, 0.06);
  --hover-tint: rgba(31, 95, 209, 0.06);
  --solid-hover: #123653;
  --off: #d5dce6;
  --off-ink: #56657c;
  --tile: #f6f8fb;
  --ghost: #c9d2de;
  --footer-bg: transparent;
  --scrim: rgba(10, 35, 65, 0.18);
  --modal-scrim: rgba(10, 35, 65, 0.45);
  --err: #b42318;
  --err-bg: rgba(180, 35, 24, 0.05);
  --info-bg: rgba(31, 95, 209, 0.05);
  --c1: rgba(31, 95, 209, 0.035);
  --c2: rgba(31, 95, 209, 0.055);
  --c3: rgba(31, 95, 209, 0.075);

  --a-line: #1f5fd1; --a-grid-op: .16; --a-g: #0a2341; --a-g-op: .85; --a-dim-op: .5;
  --a-text: #1f5fd1; --a-text-op: .9; --a-unit-op: .75; --a-halo: #1f5fd1; --a-dot: #1f5fd1;

  color-scheme: light;
}

html[data-theme="light"] { color-scheme: only light; }

html[data-theme="dark"] {
  --bg: #0a2341; --panel: #0a2341; --ink: #f2f4f6; --body: rgba(255, 255, 255, 0.82); --muted: #a9b7c5;
  --accent: #70afe9; --rule: #33516c; --panel-line: rgba(51, 81, 108, 0.6); --rule-strong: #537594; --field: rgba(133, 166, 194, 0.36); --field-bg: #071b30;
  --grid-line: rgba(137, 176, 210, 0.035); --hover-tint: rgba(63, 113, 157, 0.18); --solid-hover: #d6e0e9;
  --off: #123653; --off-ink: #a9b7c5; --tile: #071b30; --ghost: #29445d; --footer-bg: transparent;
  --scrim: rgba(2, 10, 20, 0.78); --modal-scrim: rgba(0, 9, 22, 0.78);
  --err: #ff9b8f; --err-bg: rgba(255, 155, 143, 0.08); --info-bg: rgba(112, 175, 233, 0.08);
  --c1: rgba(95, 151, 199, 0.035); --c2: rgba(95, 151, 199, 0.065); --c3: rgba(95, 151, 199, 0.095);
  --a-line: #a5bdd1; --a-grid-op: .15; --a-g: #aec3d5; --a-g-op: .6; --a-dim-op: .28;
  --a-text: #9ab2c7; --a-text-op: .62; --a-unit-op: .48; --a-halo: #579ee0; --a-dot: #70afe9;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --bg: #0a2341; --panel: #0a2341; --ink: #f2f4f6; --body: rgba(255, 255, 255, 0.82); --muted: #a9b7c5;
    --accent: #70afe9; --rule: #33516c; --panel-line: rgba(51, 81, 108, 0.6); --rule-strong: #537594; --field: rgba(133, 166, 194, 0.36); --field-bg: #071b30;
    --grid-line: rgba(137, 176, 210, 0.035); --hover-tint: rgba(63, 113, 157, 0.18); --solid-hover: #d6e0e9;
    --off: #123653; --off-ink: #a9b7c5; --tile: #071b30; --ghost: #29445d; --footer-bg: transparent;
    --scrim: rgba(2, 10, 20, 0.78); --modal-scrim: rgba(0, 9, 22, 0.78);
    --err: #ff9b8f; --err-bg: rgba(255, 155, 143, 0.08); --info-bg: rgba(112, 175, 233, 0.08);
    --c1: rgba(95, 151, 199, 0.035); --c2: rgba(95, 151, 199, 0.065); --c3: rgba(95, 151, 199, 0.095);
    --a-line: #a5bdd1; --a-grid-op: .15; --a-g: #aec3d5; --a-g-op: .6; --a-dim-op: .28;
    --a-text: #9ab2c7; --a-text-op: .62; --a-unit-op: .48; --a-halo: #579ee0; --a-dot: #70afe9;
    color-scheme: dark;
  }
}

@media (max-width: 1199px) { :root { --gutter: 60px; } }
@media (max-width: 800px)  { :root { --u: 48px; --gutter: 24px; --hdr-h: 80px; } }

