/* SeqCore LIMS — shared tokens and base styles. Sizes in rem; light first, dark follows the system.
   Status colours come from the Okabe–Ito set (blue, bluish green, orange, vermillion), which stays
   distinguishable with red-green colour blindness. Every status also carries a glyph and a word. */
:root {
  --paper: #f3f5f7;
  --surface: #ffffff;
  --sunk: #e9edf1;
  --ink: #15202b;
  --ink-2: #3f4d5c;
  --ink-3: #5d6a78;
  --line: #cbd3db;
  --line-2: #e1e6eb;
  --action: #00639c;
  --action-ink: #ffffff;
  --action-soft: #dfeef8;
  --ok: #00664b;
  --ok-soft: #d9f1e8;
  --warn: #e69f00;
  --warn-ink: #6f4a00;
  --warn-soft: #fbeecb;
  --bad: #a23f08;
  --bad-soft: #fbe5d6;
  --grey-soft: #e6eaee;
  --bar: #0072b2;
  --bar-flag: #d55e00;
  --bench: #15202b;
  --bench-ink: #e8edf2;
  --base-a: #009e73;
  --base-c: #0072b2;
  --base-g: #e69f00;
  --base-t: #d55e00;
  --radius: .25rem;
  --shadow: 0 1px 2px rgba(21, 32, 43, .07), 0 6px 18px rgba(21, 32, 43, .06);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10161c;
    --surface: #161d25;
    --sunk: #121920;
    --ink: #e6ebf0;
    --ink-2: #b3bfcb;
    --ink-3: #8a98a7;
    --line: #2d3945;
    --line-2: #232d38;
    --action: #62b6ea;
    --action-ink: #08131c;
    --action-soft: #17334a;
    --ok: #55d3a8;
    --ok-soft: #12332a;
    --warn-ink: #f2c861;
    --warn-soft: #3a2e0e;
    --bad: #f59a62;
    --bad-soft: #40230f;
    --grey-soft: #232d38;
    --bar: #3d9fdc;
    --bar-flag: #dd7426;
    --bench: #0b1016;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--sans); }
h1, h2, h3 { font-family: var(--sans); font-weight: 650; line-height: 1.15; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
a { color: var(--action); text-underline-offset: .15em; }
:focus-visible { outline: .18rem solid var(--action); outline-offset: .15rem; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.id { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

.btn { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-weight: 600; cursor: pointer;
       padding: .55rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
       color: var(--ink); text-decoration: none; line-height: 1.2; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.small { padding: .32rem .65rem; font-size: .85rem; }
.btn.danger { color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: default; }

.mark { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.1rem;
        color: inherit; text-decoration: none; letter-spacing: -.01em; }
.mark svg { width: 1.55rem; height: 1.55rem; flex: none; }
.mark small { font-weight: 500; color: var(--ink-3); font-size: .8em; letter-spacing: .04em; }

/* a state: glyph + word, colour as the third signal */
.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; line-height: 1;
        padding: .28rem .5rem; border-radius: .2rem; background: var(--grey-soft); color: var(--ink-2); white-space: nowrap; }
.chip::before { content: "–"; font-weight: 700; }
.chip.wait { background: var(--warn-soft); color: var(--warn-ink); }
.chip.wait::before { content: "!"; }
.chip.go { background: var(--action-soft); color: var(--action); }
.chip.go::before { content: "▸"; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.ok::before { content: "✓"; }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.bad::before { content: "✕"; }

.demo-bar { background: var(--bench); color: var(--bench-ink); font-size: .82rem; text-align: center; padding: .4rem 1rem; }
.demo-bar b { color: #f0b84a; font-weight: 600; }
.demo-bar a { color: inherit; }
