/* Theme tokens and base, taken from the clash portal's dashboard stylesheet so the two sites look alike. */
:root{
  color-scheme: light;
  --plane:#f9f9f7;
  --surface:#fcfcfb;
  --surface-2:#f2f2ee;
  --ink:#0b0b0b;
  --ink-2:#52514e;
  --ink-3:#898781;
  --grid:#e1e0d9;
  --axis:#c3c2b7;
  --ring:rgba(11,11,11,.10);
  --ring-2:rgba(11,11,11,.18);
  --shadow:0 1px 2px rgba(11,11,11,.05),0 8px 24px -12px rgba(11,11,11,.16);

  --s1:#2a78d6; --s2:#eb6834; --s3:#1baf7a; --s4:#eda100;
  --s5:#e87ba4; --s6:#008300; --s7:#4a3aa7; --s8:#e34948;

  /* ordinal ramp — magnitude only: map shading, closed-% and progress bars */
  --o1:#86b6ef; --o2:#5598e7; --o3:#2a78d6; --o4:#1c5cab; --o5:#104281;

  /* THE FIRST divergence from web4's stylesheet (the register block at the
     foot of this file is the second).
     Clash workflow stages. Five hues rather than five steps of one blue: the
     ramp separated adjacent stages by only ~9.5 normal-vision ΔE, under the 15
     floor, and the client could not tell them apart. Validated on the adjacent
     pairs plus the donut's wrap-around, both modes: worst CVD ΔE 13.0, worst
     normal-vision ΔE 19.7. Approved sits at 2.62:1 on the light surface, which
     is legal only because every stage is also spelled out with its count and
     the pipeline table repeats the whole chart. */
  --w1:#2a78d6; --w2:#eb6834; --w3:#4a3aa7; --w4:#e87ba4; --w5:#008300;

  --good:#0ca30c; --warning:#fab219; --serious:#ec835a; --critical:#d03b3b;
  --good-ink:#006300;

  --accent:#1c5cab;
  --mark-ink:#ffffff;
  --r:10px;
  --font:system-ui,-apple-system,"Segoe UI",sans-serif;
}
@media (prefers-color-scheme: dark){
  :root:where(:not([data-theme="light"])){
    color-scheme: dark;
    --plane:#0d0d0d; --surface:#1a1a19; --surface-2:#222220;
    --ink:#ffffff; --ink-2:#c3c2b7; --ink-3:#898781;
    --grid:#2c2c2a; --axis:#383835;
    --ring:rgba(255,255,255,.10); --ring-2:rgba(255,255,255,.18);
    --shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px -12px rgba(0,0,0,.7);
    --s1:#3987e5; --s2:#d95926; --s3:#199e70; --s4:#c98500;
    --s5:#d55181; --s6:#008300; --s7:#9085e9; --s8:#e66767;
    --o1:#184f95; --o2:#256abf; --o3:#3987e5; --o4:#6da7ec; --o5:#b7d3f6;
    --w1:#3987e5; --w2:#d95926; --w3:#9085e9; --w4:#d55181; --w5:#008300;
    --good-ink:#0ca30c;
    --accent:#6da7ec;
    --mark-ink:#0d0d0d;
  }
}
:root[data-theme="dark"]{
  color-scheme: dark;
  --plane:#0d0d0d; --surface:#1a1a19; --surface-2:#222220;
  --ink:#ffffff; --ink-2:#c3c2b7; --ink-3:#898781;
  --grid:#2c2c2a; --axis:#383835;
  --ring:rgba(255,255,255,.10); --ring-2:rgba(255,255,255,.18);
  --shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px -12px rgba(0,0,0,.7);
  --s1:#3987e5; --s2:#d95926; --s3:#199e70; --s4:#c98500;
  --s5:#d55181; --s6:#008300; --s7:#9085e9; --s8:#e66767;
  --o1:#184f95; --o2:#256abf; --o3:#3987e5; --o4:#6da7ec; --o5:#b7d3f6;
  --w1:#3987e5; --w2:#d95926; --w3:#9085e9; --w4:#d55181; --w5:#008300;
  --good-ink:#0ca30c;
  --accent:#6da7ec;
  --mark-ink:#0d0d0d;
}

*{box-sizing:border-box}
html,body{background:var(--plane)}
body{margin:0;color:var(--ink);font-family:var(--font);
  font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:var(--accent)}
button{font-family:inherit;font-size:inherit;color:inherit}

