:root {
  color-scheme: dark;
  --bg: #0e1014;
  --panel: #171a21;
  --line: #2a3140;
  --text: #e8edf5;
  --muted: #8b95a8;
  --blue: #4c8dff;
  --teal: #3dceb0;
  --live: #ff5a6a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--text);
}
header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 18px; font-weight: 650; }
.sub, .note, .hint, .panel-head span { color: var(--muted); font-size: 13px; }
.note { max-width: 520px; text-align: right; }
main { display: grid; grid-template-columns: 280px 1fr; min-height: calc(100vh - 72px); }
aside { border-right: 1px solid var(--line); padding: 16px; }
section { padding: 16px 20px 32px; }
h2 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.list { display: flex; flex-direction: column; gap: 8px; }
.session {
  text-align: left;
  width: 100%;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}
.session.active { border-color: var(--blue); }
.session .when { font-size: 13px; }
.session .meta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.live-tag { color: var(--live); font-weight: 650; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.kpi .label { color: var(--muted); font-size: 12px; }
.kpi .value { font-size: 26px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 8px; margin-bottom: 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; }
.chart-wrap { height: 320px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
td.num, th.num { text-align: right; }
.name { max-width: 420px; }
.empty { color: var(--muted); padding: 16px 0; }
@media (max-width: 960px) {
  main { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  header { flex-direction: column; align-items: flex-start; }
  .note { text-align: left; }
}
