:root {
  --bg: #111418;
  --surface: #181c22;
  --line: #262c35;
  --text: #e6e9ee;
  --muted: #8b94a3;
  --accent: #6ea8fe;
  --track: #222831;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 system-ui, -apple-system, 'Segoe UI', sans-serif;
}
main { max-width: 1100px; margin: 0 auto; padding: 24px 20px 64px; }
h1 { font-size: 18px; margin: 0; }
h2 { font-size: 15px; margin: 36px 0 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.mono, code { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 12.5px; }
.muted, small { color: var(--muted); }
.note { color: var(--muted); font-size: 12.5px; margin: 4px 0 12px; }
.note b { color: var(--text); font-weight: 600; }

header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
select, input, button {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
}
button { cursor: pointer; }
.logout { color: var(--muted); font-size: 12.5px; margin-left: 4px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 20px 0 8px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.tile b { display: block; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tile span { color: var(--muted); font-size: 12.5px; }

table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
td { padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:hover td { background: #1b2027; }
.num { text-align: right; white-space: nowrap; }
.wide { width: 40%; white-space: nowrap; }
.val { display: inline-block; min-width: 3em; margin-left: 6px; }

/* Barres : une seule teinte, fines, bout arrondi, sur une piste discrète. */
.track { display: inline-block; vertical-align: middle; width: calc(100% - 7em); height: 8px; background: var(--track); border-radius: 0 4px 4px 0; }
.bar { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }

details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 8px 4px; }
summary:hover { background: #1b2027; }
.point { padding: 6px 4px 12px 18px; }
.pt-id { font-size: 11.5px; margin-bottom: 4px; }
.choice { display: grid; grid-template-columns: minmax(0, 1fr) 200px 6.5em 7.5em; gap: 10px; align-items: center; padding: 3px 0; }
.choice .track { width: 100%; }
.choice .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.choice .label:hover { white-space: normal; }

.login { max-width: 320px; margin: 18vh auto 0; display: grid; gap: 10px; }
.login h1 { margin-bottom: 8px; }
.err { color: #f28b82; margin: 0; }
.site { margin-bottom: 14px; }
