:root { --bg:#f4f6fb; --card:#fff; --ink:#1b2437; --muted:#6b7488; --line:#e3e7ef; --accent:#2f6fe4; --good:#1f9d55; --bad:#d64545; }
* { box-sizing: border-box; }
body { margin:0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background:var(--bg); color:var(--ink); font-size:14px; }
main { padding:26px 30px; max-width:1300px; }
h1 { font-size:22px; margin:0 0 18px; }
h2 { font-size:16px; margin:0 0 12px; }
.grid { display:grid; gap:14px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom:16px; }
.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 1000px) { .two { grid-template-columns: 1fr; } }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px 18px; }
.kpi .label { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.04em; }
.kpi .value { font-size:26px; font-weight:700; margin-top:4px; }
table { width:100%; border-collapse:collapse; }
th, td { text-align:left; padding:7px 8px; border-bottom:1px solid var(--line); font-variant-numeric: tabular-nums; }
th { color:var(--muted); font-weight:600; font-size:12px; }
td.num, th.num { text-align:right; }
.bar { height:8px; background:#e9edf5; border-radius:4px; overflow:hidden; min-width:80px; }
.bar > span { display:block; height:100%; background:var(--accent); }
.bad { color:var(--bad); font-weight:600; }
.good { color:var(--good); font-weight:600; }
.muted { color:var(--muted); }
input, textarea, select { font:inherit; border:1px solid var(--line); border-radius:8px; padding:8px 10px; background:#fff; }
button.primary, a.button { background:var(--accent); color:#fff; border:none; border-radius:8px; padding:9px 16px; cursor:pointer; text-decoration:none; display:inline-block; }
button.ghost { background:none; border:1px solid var(--line); border-radius:8px; padding:6px 12px; cursor:pointer; }
a.button.ghost { background:none; color:inherit; border:1px solid var(--line); padding:8px 14px; }
.alert { padding:10px 14px; border-radius:8px; margin-bottom:14px; }
.alert.error { background:#fdecec; color:#9b1c1c; }
.alert.ok { background:#e8f7ee; color:#146c3a; }
.row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.login { max-width:340px; margin:12vh auto; }
.login input { width:100%; margin-bottom:10px; }
.chart { position:relative; height:260px; }
code, .mono { font-family: ui-monospace, Menlo, monospace; font-size:12px; }

/* Page layout (Oct 2026): a header with the period, tabs, compact KPIs, readable timelines. */
.page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:18px; }
.page-head h1 { margin:0; }
.page-head .sub { color:var(--muted); margin-top:4px; }
.seg { display:inline-flex; background:#e6eaf2; border-radius:10px; padding:3px; gap:2px; }
.seg a { padding:6px 12px; border-radius:8px; color:var(--ink); text-decoration:none; font-size:13px; white-space:nowrap; }
.seg a.on { background:#fff; box-shadow:0 1px 2px rgba(16,24,40,.14); font-weight:600; }
.tabs { display:flex; gap:2px; border-bottom:1px solid var(--line); margin:0 0 18px; overflow-x:auto; }
.tabs a { padding:10px 14px; color:var(--muted); text-decoration:none; border-bottom:2px solid transparent; margin-bottom:-1px; white-space:nowrap; font-weight:500; }
.tabs a:hover { color:var(--ink); }
.tabs a.on { color:var(--accent); border-bottom-color:var(--accent); font-weight:600; }
.tabs a .count { background:#e6eaf2; color:var(--muted); border-radius:10px; padding:1px 7px; font-size:11px; margin-left:6px; }
.tabs a.on .count { background:#e3ecfd; color:var(--accent); }
.kpi .sub { color:var(--muted); font-size:12px; margin-top:3px; }
.kpis.five { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
main > .card + .card, main > .card + .grid, main > .card + .split, main > .grid + .card, main > .grid + .split,
main > .split + .card, main > .split + .grid, main > .split + .split { margin-top:14px; }
main a:not([class]), main a.mono { color:var(--accent); }
.card h2 { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.card h2 .side-link { font-size:13px; font-weight:500; }
.card .hint { color:var(--muted); font-size:12px; margin:-6px 0 12px; line-height:1.45; }
.split { display:grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap:14px; }
@media (max-width: 1100px) { .split { grid-template-columns:1fr; } }
.badge { display:inline-flex; align-items:center; gap:4px; padding:2px 9px; border-radius:999px; font-size:12px; font-weight:600; background:#eef1f7; color:#3c4660; white-space:nowrap; }
.badge.blue { background:#e3ecfd; color:#1f56c2; }
.badge.green { background:#e3f5ea; color:#167344; }
.badge.red { background:#fde8e8; color:#b42323; }
.badge.amber { background:#fff3dc; color:#9a5b00; }
.badge.violet { background:#efe7fc; color:#6a35c2; }
.meter { display:flex; align-items:center; gap:10px; }
.meter .bar { flex:1; }
.meter .v { min-width:44px; text-align:right; font-variant-numeric:tabular-nums; color:var(--muted); font-size:12px; }
table.clean tr:hover td { background:#f8f9fd; }
table.clean td { vertical-align:middle; }
.empty { text-align:center; color:var(--muted); padding:26px 10px; }

/* Kokpit: one page, a top bar instead of the side menu, readable on a phone. */
.top { display:flex; align-items:center; justify-content:space-between; gap:12px; background:#16203a; color:#cfd6e6; padding:12px 30px; }
.top .brand { font-weight:700; color:#fff; font-size:16px; letter-spacing:.02em; }
.top form button { background:none; border:1px solid #3a4768; color:#cfd6e6; padding:6px 12px; border-radius:8px; cursor:pointer; font:inherit; font-size:13px; }
main { margin:0 auto; }
.filters { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.kpis.eight { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.kpi .sub .up { color:var(--good); font-weight:600; }
.kpi .sub .down { color:var(--bad); font-weight:600; }
.kpi .value.na { color:var(--muted); font-weight:500; font-size:20px; }
.scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; }
table.games { min-width:820px; }
table.games td .players { color:var(--muted); font-size:11px; margin:2px 0 0 18px; }
table.games td .split-line { color:var(--muted); font-size:11px; margin-top:2px; white-space:nowrap; }
table.games td.game { white-space:nowrap; }
table.games td.game .dot { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:8px; vertical-align:middle; }
table.games td.game .err { display:block; margin-top:3px; }
table.games tr.total td { font-weight:700; border-top:2px solid var(--line); border-bottom:none; }
table.games tr.failed td.num { color:var(--muted); }
.note { color:var(--muted); font-size:12px; line-height:1.55; margin-top:14px; }
.note b { color:var(--ink); }
.status-line { color:var(--muted); font-size:12px; }
.charts { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.grid > * { min-width:0; }
button.ghost { font:inherit; color:inherit; }
.alert { margin-top:0; }
@media (max-width: 700px) {
  main { padding:16px; }
  .top { padding:12px 16px; }
  h1 { font-size:20px; }
  .kpis.eight { grid-template-columns: 1fr 1fr; gap:10px; }
  .kpi .value { font-size:21px; }
  .card { padding:13px 14px; }
  .charts { grid-template-columns: 1fr; }
  .seg a { padding:6px 10px; }
}
