/* The LagCore dashboard's own stylesheet, taken from the plugin verbatim.
 *
 * Not reinterpreted, not modernised. The hub shows the same dashboard people already
 * know, for every server at once, so it uses the same stylesheet rather than a lookalike
 * that drifts from it. Regenerate with deploy/adopt-design.py when the plugin's page
 * changes; anything the hub needs on top lives in hub.css, never in here.
 */
:root {
  color-scheme: dark;
  --bg-0: #0b0f15;
  --bg-1: #11161f;
  --bg-2: #161d28;
  --bg-3: #1d2532;
  --border: #2a3344;
  --text-0: #f0f2f6;
  --text-1: #c2cad6;
  --text-2: #8c95a4;
  --text-3: #5a6473;
  --accent: #7289da;
  --accent-dim: rgba(114, 137, 218, .22);
  --green: #2ecc71;
  --yellow: #f1c40f;
  --orange: #e67e22;
  --red: #e74c3c;
  --shadow: 0 18px 60px rgba(0, 0, 0, .45);
}
[data-theme="light"] {
  color-scheme: light;
  --bg-0: #f4f6fa;
  --bg-1: #ffffff;
  --bg-2: #eef1f6;
  --bg-3: #e2e7ee;
  --border: #d6dbe5;
  --text-0: #18202d;
  --text-1: #2c3645;
  --text-2: #56627a;
  --text-3: #8290a8;
  --accent: #5865f2;
  --accent-dim: rgba(88, 101, 242, .18);
  --green: #1f9d55;
  --yellow: #b8860b;
  --orange: #c0560b;
  --red: #c53030;
  --shadow: 0 18px 60px rgba(20, 30, 50, .12);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg-0);
  color: var(--text-0);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  display: grid;
  grid-template-columns: 224px 1fr;
  grid-template-rows: 56px 1fr;
}
header {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, #141a25, #0b0f15);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  position: sticky; top: 0; z-index: 20;
}
header .brand { font-weight: 700; letter-spacing: .04em; font-size: 17px; }
header .brand .accent { color: var(--accent); }
header .right { display: flex; align-items: center; gap: 16px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; color: var(--text-1);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.dot.on { background: var(--green); box-shadow: 0 0 12px var(--green); }
.dot.warn { background: var(--yellow); }
.dot.bad { background: var(--red); }
nav.side {
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  overflow-y: auto;
}
nav.side .link {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 12px 8px 14px;
  border-radius: 8px;
  color: var(--text-2);
  cursor: pointer;
  font-size: 13px;
  margin-bottom: 1px;
  position: relative;
  transition: background .14s ease, color .14s ease, transform .14s ease;
}
nav.side .link .nav-icon {
  width: 17px; height: 17px; flex-shrink: 0;
  color: var(--text-3);
  transition: color .14s ease, transform .14s ease;
}
nav.side .link .nav-icon svg { width: 100%; height: 100%; display: block; }
nav.side .link:hover {
  background: var(--bg-2);
  color: var(--text-0);
}
nav.side .link:hover .nav-icon { color: var(--text-1); }
nav.side .link.active {
  background: linear-gradient(90deg, rgba(74,111,220,0.18), rgba(74,111,220,0.05) 90%);
  color: var(--text-0);
  font-weight: 600;
}
nav.side .link.active::before {
  content: '';
  position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--accent);
}
nav.side .link.active .nav-icon { color: var(--accent); }
nav.side .link .badge {
  margin-left: auto;
  background: var(--bg-3);
  color: var(--text-3);
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
nav.side .link.active .badge { background: var(--accent); color: white; }
nav.side .group-title {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); padding: 18px 14px 8px; font-weight: 600;
  opacity: .55;
}
nav.side .group-title:first-child { padding-top: 8px; }
main {
  padding: 22px 28px 60px;
  overflow-y: auto;
}
.page { display: none; }
.page.active { display: block; }
.page-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 4px;
}
.page-subtitle {
  color: var(--text-2);
  font-size: 13.5px;
  margin: 0 0 22px;
}
.grid { display: grid; gap: 14px; }
.grid.stats { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1400px) { .grid.stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) { .grid.stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid.stats { grid-template-columns: 1fr; } }
/* Overview split: KPI cards on the left, Server Info + Resource Usage stacked right. */
.overview-split { display: grid; grid-template-columns: 1fr 320px; gap: 16px; margin-bottom: 18px; }
@media (max-width: 1200px) { .overview-split { grid-template-columns: 1fr; } }
.overview-side { display: flex; flex-direction: column; gap: 14px; }
.overview-side .card { padding: 14px 16px; }
.info-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; font-size: 13px; border-bottom: 1px solid var(--bg-3); }
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.info-row .v { color: var(--text-0); font-variant-numeric: tabular-nums; text-align: right; font-weight: 500; }
.res-bar { margin: 10px 0; }
.res-bar-label { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.res-bar-label .k { color: var(--text-2); }
.res-bar-label .v { color: var(--text-0); font-variant-numeric: tabular-nums; }
.res-bar-track { height: 6px; background: var(--bg-3); border-radius: 3px; overflow: hidden; }
.res-bar-fill { height: 100%; border-radius: 3px; transition: width 240ms ease; }
.res-bar-fill.green { background: linear-gradient(90deg, #3a8f4a, #5aa66a); }
.res-bar-fill.blue { background: linear-gradient(90deg, #4a6fdc, #6c8ae4); }
.res-bar-fill.yellow { background: linear-gradient(90deg, #d4b65a, #e0c268); }
.res-bar-fill.orange { background: linear-gradient(90deg, #e09a3a, #f0b454); }
.res-bar-fill.red { background: linear-gradient(90deg, #d65555, #e87474); }
/* Three-column top-lists row on Overview (Top Lag Causes / Top Plugins / Top Chunks). */
.overview-top-lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 18px; }
@media (max-width: 1200px) { .overview-top-lists { grid-template-columns: 1fr; } }
.top-list-card .top-list-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.top-list-card .top-list-title { font-size: 13.5px; font-weight: 600; color: var(--text-0); }
.top-list-card .top-list-viewall { font-size: 11.5px; color: var(--accent); text-decoration: none; cursor: pointer; }
.top-list-card .top-list-viewall:hover { text-decoration: underline; }
.top-row { display: grid; grid-template-columns: 20px 1fr 60px 42px; gap: 10px; align-items: center; padding: 6px 0; font-size: 12.5px; }
.top-row .rank { color: var(--text-3); font-size: 11px; text-align: center; }
.top-row .main-col .name { font-weight: 500; color: var(--text-0); font-size: 13px; }
.top-row .main-col .sub { font-size: 10.5px; color: var(--text-3); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-row .bar-col { height: 4px; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.top-row .bar-col .bar-inner { height: 100%; background: var(--accent); border-radius: 999px; transition: width 240ms ease; }
.top-row .val-col { font-size: 12px; color: var(--text-0); font-variant-numeric: tabular-nums; text-align: right; font-weight: 500; }
/* Recent Alerts card. */
.recent-alerts .alert-row { display: flex; gap: 10px; padding: 12px; border-radius: 8px; margin-bottom: 8px; border-left: 3px solid var(--text-3); background: var(--bg-2); align-items: flex-start; }
.recent-alerts .alert-row.sev-CRITICAL, .recent-alerts .alert-row.sev-HIGH { border-left-color: var(--red); background: linear-gradient(90deg, rgba(214,85,85,0.08), transparent 60%); }
.recent-alerts .alert-row.sev-MEDIUM, .recent-alerts .alert-row.sev-WARNING { border-left-color: var(--yellow); background: linear-gradient(90deg, rgba(212,182,90,0.08), transparent 60%); }
.recent-alerts .alert-row.sev-LOW, .recent-alerts .alert-row.sev-OK { border-left-color: var(--green); }
.recent-alerts .alert-icon { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; background: rgba(255,255,255,0.03); }
.recent-alerts .alert-body { flex: 1; min-width: 0; }
.recent-alerts .alert-title { font-size: 13px; font-weight: 600; color: var(--text-0); }
.recent-alerts .alert-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-alerts .alert-time { font-size: 11px; color: var(--text-3); white-space: nowrap; }
/* Quick action cards - mockup-style cards with icon left, title/sub right. */
.quick-actions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 8px 0 18px; }
@media (max-width: 900px) { .quick-actions-grid { grid-template-columns: repeat(2, 1fr); } }
.quick-action-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; cursor: pointer; transition: border-color 120ms, background 120ms; }
.quick-action-card:hover { border-color: var(--accent); background: var(--bg-2); }
.quick-action-card .qa-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(74,111,220,0.15); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.quick-action-card .qa-title { font-size: 14px; font-weight: 600; color: var(--text-0); }
.quick-action-card .qa-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease;
}
.grid.stats .card { min-height: 108px; display: flex; flex-direction: column; }
.grid.stats .card .value { margin-top: 8px; }
.card.glow::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, var(--accent-dim), transparent 60%);
  pointer-events: none;
}
.card .label {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 4px; font-weight: 500;
}
.card .value {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.card .value .unit { color: var(--text-3); font-size: 14px; font-weight: 500; margin-left: 5px; letter-spacing: 0; }
.card .sub {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-3);
}
.card .spark {
  margin-top: 14px;
  height: 28px;
  width: 100%;
}
.bar-bg {
  background: var(--bg-3); border-radius: 999px;
  height: 5px; margin-top: 12px; overflow: hidden;
}
.bar-fg { height: 100%; transition: width .25s ease, background-color .25s ease; border-radius: 999px; }
.sev-OK, .sev-GOOD, .sev-LOW, .text-green { color: var(--green); }
.sev-WARNING, .sev-MEDIUM, .text-yellow { color: var(--yellow); }
.sev-HIGH, .text-orange { color: var(--orange); }
.sev-CRITICAL, .text-red { color: var(--red); }
.sev-INFO, .sev-UNKNOWN, .text-grey { color: var(--text-2); }
.bg-green { background: var(--green); }
.bg-yellow { background: var(--yellow); }
.bg-orange { background: var(--orange); }
.bg-red { background: var(--red); }
.bg-accent { background: var(--accent); }
.section-title {
  margin: 28px 0 12px;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  display: flex; align-items: center; justify-content: space-between;
}
.section-title .actions { display: flex; gap: 8px; }
.btn {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text-1);
  padding: 7px 13px; border-radius: 7px; font-size: 12.5px; cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.btn:hover { background: var(--bg-3); color: var(--text-0); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: white; }
.btn.primary:hover { background: #5b6dc2; }
.btn.ghost { background: transparent; }
.issue {
  background: var(--bg-1); border: 1px solid var(--border);
  border-left: 3px solid var(--text-3);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.issue.severity-CRITICAL { border-left-color: var(--red); }
.issue.severity-HIGH { border-left-color: var(--orange); }
.issue.severity-MEDIUM { border-left-color: var(--yellow); }
.issue.severity-LOW { border-left-color: var(--green); }
.issue .top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.issue .title-row { display: flex; align-items: baseline; gap: 12px; }
.issue .sev-tag {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
}
.issue .cat-tag { color: var(--text-1); font-weight: 500; }
.issue .conf { color: var(--text-3); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.issue .heading { font-weight: 600; font-size: 14px; margin: 6px 0 4px; }
.issue .cause { color: var(--text-1); font-size: 13.5px; line-height: 1.5; }
.issue details {
  margin-top: 12px;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  font-size: 12.5px;
  color: var(--text-1);
}
.issue details summary {
  cursor: pointer; color: var(--accent); outline: none; user-select: none;
  font-weight: 600;
}
.kv {
  display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px;
  margin-top: 10px;
}
.kv .k { color: var(--text-3); }
.kv .v { color: var(--text-0); }
.fix {
  background: var(--bg-2); border-left: 3px solid var(--accent);
  padding: 7px 11px; border-radius: 0 6px 6px 0;
  margin: 6px 0; font-size: 12.5px;
}
.fix.type-MANUAL { border-left-color: var(--yellow); }
.fix.type-CONFIG { border-left-color: var(--accent); }
.fix.type-SPARK { border-left-color: #b56cff; }
.fix.type-DIRECT { border-left-color: var(--green); }
.fix .ftype {
  display: inline-block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); margin-right: 8px;
}
table {
  width: 100%; border-collapse: collapse; font-size: 13px;
  background: var(--bg-1); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden;
}
th { color: var(--text-3); font-weight: 500; text-align: left; padding: 8px 10px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; background: var(--bg-2); }
td { padding: 8px 10px; border-top: 1px solid var(--bg-2); }
tr:hover td { background: var(--bg-2); }
td.num { font-variant-numeric: tabular-nums; text-align: right; color: var(--text-0); }
td.muted { color: var(--text-2); }
.chart-card {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px 22px;
}
.chart-card .title-row { display: flex; align-items: baseline; justify-content: space-between; }
.chart-card .title { font-size: 14px; font-weight: 600; }
.chart-card .value { color: var(--text-2); font-size: 12.5px; }
.chart-card canvas { width: 100%; height: 180px; display: block; margin-top: 10px; }
.empty { color: var(--text-3); padding: 14px; border: 1px dashed var(--border); border-radius: 8px; text-align: center; font-size: 13px; }
.lag-bars { display: flex; flex-direction: column; gap: 6px; }
.lag-row { display: grid; grid-template-columns: 160px 1fr 58px 100px; align-items: center; gap: 10px; font-size: 12.5px; }
.lag-name { color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lag-track { height: 14px; background: var(--bg-3); border-radius: 4px; overflow: hidden; }
.lag-fill { height: 100%; border-radius: 4px; transition: width 240ms ease; }
.lag-fill.low { background: linear-gradient(90deg, #4a6fdc, #6c8ae4); }
.lag-fill.med { background: linear-gradient(90deg, #e09a3a, #f0b454); }
.lag-fill.high { background: linear-gradient(90deg, #d65555, #e87474); }
.lag-pct { color: var(--text-0); font-variant-numeric: tabular-nums; text-align: right; font-weight: 500; }
.lag-count { font-size: 11px; text-align: right; }
.btn.small { padding: 5px 10px; font-size: 11.5px; }
.trace-row { padding: 9px 11px; border-radius: 6px; cursor: pointer; font-size: 12.5px; color: var(--text-1); border: 1px solid transparent; margin-bottom: 5px; }
.trace-row:hover { background: var(--bg-3); }
.trace-row.active { background: var(--bg-3); border-color: var(--accent); color: var(--text-0); }
.wiki-toc-item { padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 12.5px; color: var(--text-1); }
.wiki-toc-item:hover { background: var(--bg-3); color: var(--text-0); }
.wiki-toc-active { background: var(--accent); color: white !important; font-weight: 500; }
#wikiContent h2 { font-size: 22px; margin-bottom: 12px; color: var(--text-0); border-bottom: 1px solid var(--border); padding-bottom: 8px; }
#wikiContent h3 { font-size: 15px; margin: 18px 0 8px; color: var(--text-0); }
#wikiContent p { margin: 0 0 10px; color: var(--text-1); font-size: 13.5px; }
#wikiContent ul, #wikiContent ol { margin: 0 0 12px 18px; color: var(--text-1); font-size: 13.5px; }
#wikiContent li { margin-bottom: 5px; }
#wikiContent code { background: var(--bg-3); padding: 1px 6px; border-radius: 3px; font-size: 12px; color: var(--text-0); }
#wikiContent b { color: var(--text-0); }
@media (max-width: 720px) { .lag-row { grid-template-columns: 110px 1fr 50px; } .lag-count { display: none; } }
/* Plugin Health Grader card grid + grade pills. */
.plugin-health-summary { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.plugin-health-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.plugin-health-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.plugin-health-card.grade-F { border-color: #d65555; box-shadow: 0 0 0 1px #d65555 inset; }
.plugin-health-card.grade-D { border-color: #e09a3a; }
.plugin-health-card.grade-C { border-color: #d4b65a; }
.plugin-health-card.grade-X { opacity: 0.55; }
.ph-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.ph-name-block { min-width: 0; flex: 1; }
.ph-name { font-size: 14px; font-weight: 600; color: var(--text-0); overflow: hidden; text-overflow: ellipsis; }
.ph-role { font-size: 11.5px; }
.ph-verdict { font-size: 12.5px; color: var(--text-1); margin-bottom: 8px; line-height: 1.45; }
.ph-stats { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: var(--text-2); margin-bottom: 6px; }
.ph-stat b { color: var(--text-0); font-variant-numeric: tabular-nums; }
.ph-desc { font-size: 11.5px; margin-bottom: 6px; font-style: italic; line-height: 1.4; }
.ph-concerns { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.grade-pill { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.4px; min-width: 30px; text-align: center; color: white; }
.grade-pill.grade-A { background: #3a8f4a; }
.grade-pill.grade-B { background: #4a6fdc; }
.grade-pill.grade-C { background: #d4b65a; color: #1a1a1a; }
.grade-pill.grade-D { background: #e09a3a; color: #1a1a1a; }
.grade-pill.grade-F { background: #d65555; }
.grade-pill.grade-Q { background: #6c7382; }
.grade-pill.grade-X { background: #3d3d3d; }
.world-card { padding: 16px 18px; }
.world-card h3 { margin: 0 0 6px; font-size: 16px; }
.world-stat { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.world-stat .k { color: var(--text-3); }
.world-stat .v { color: var(--text-0); font-variant-numeric: tabular-nums; }
.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  background: var(--bg-3); color: var(--text-1);
  font-weight: 500;
  letter-spacing: .03em;
}
.pill.green { background: rgba(46, 204, 113, .18); color: var(--green); }
.pill.red { background: rgba(231, 76, 60, .18); color: var(--red); }
.pill.yellow { background: rgba(241, 196, 15, .18); color: var(--yellow); }
.pill.orange { background: rgba(230, 126, 34, .18); color: #e67e22; }
.kv-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 12.5px; }
.kv-block { display: flex; flex-direction: column; gap: 2px; }
.actions-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.user-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px; color: var(--text-1);
}
.user-pill a { color: var(--accent); text-decoration: none; margin-left: 6px; }
@media (max-width: 900px) {
  body { grid-template-columns: 1fr; grid-template-rows: 56px auto 1fr; }
  nav.side { grid-column: 1; grid-row: 2; border-right: none; border-bottom: 1px solid var(--border); padding: 8px; display: flex; gap: 4px; overflow-x: auto; }
  nav.side .group-title { display: none; }
  nav.side .link { white-space: nowrap; padding: 7px 12px; }
  main { padding: 16px 14px 50px; }
  header { padding: 0 12px; }
  header h1.brand { font-size: 15px; }
  .grid.three { grid-template-columns: 1fr; }
  .grid.stats { grid-template-columns: repeat(2, 1fr); }
  .card .value { font-size: 22px; }
  .actions-bar .btn { padding: 8px 10px; font-size: 12px; }
  table { font-size: 12px; }
  th, td { padding: 6px 7px; }
}
@media (max-width: 520px) {
  .grid.stats { grid-template-columns: 1fr; }
  header { font-size: 13px; }
  .user-pill, .live-pill { font-size: 11px; padding: 4px 9px; }
}
