/* Dashboard: live platform totals. Builds on ../site.css tokens. */
.dash-term { width: 900px; }
.dash-live { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 6px var(--ok); animation: blink 2s steps(1) infinite; }

.dash-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.dash-small { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.dash-bal { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.dash-tile { padding: 10px 12px; border: 1px solid var(--slate); background: rgba(13, 10, 19, 0.6); min-width: 0; }
.dash-head .dash-tile { border-color: var(--slate-hi); }
.dash-label { font-weight: 800; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.dash-big { font-family: var(--mono); font-size: 20px; color: var(--lavender); margin: 6px 0 4px;
  text-shadow: 0 0 8px rgba(221, 218, 255, 0.25); overflow-wrap: anywhere; }
.dash-head .dash-big { font-size: 24px; color: var(--ok); text-shadow: 0 0 8px rgba(61, 220, 132, 0.35); }
.dash-bal .dash-big { color: var(--ok); }
.dash-big.dash-na { font-size: 14px; color: var(--muted); text-shadow: none; }
.dash-sub { font-size: 11px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.dash-sub a { white-space: nowrap; }
.dash-h3 { font-weight: 600; font-size: 12px; color: var(--lavender); margin: 4px 0 0; }
.dash-note { font-size: 12px; line-height: 1.55; color: var(--muted); margin: 0; }
.dash-note:empty { display: none; }
.dash-statusbox { display: grid; gap: 2px; }
.status.warn { color: var(--amber); }
.dash-checked { font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--muted); }
.dash-checked:empty { display: none; }

.table-scroll { overflow-x: auto; max-width: 100%; }
.dash-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.dash-tbl th { text-align: left; font-weight: 800; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--slate); padding: 4px 6px; }
.dash-tbl td { padding: 5px 6px; border-bottom: 1px dashed var(--slate-lo); color: var(--lavender); vertical-align: top; }
.dash-tbl .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.dash-tbl td a { color: var(--lavender); text-decoration: none; }
.dash-tbl td a:hover { color: var(--amber); }
.dash-tbl .jid { display: block; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.dash-windows td:first-child { color: var(--muted); }
.dash-pill { font-weight: 800; font-size: 9px; letter-spacing: 0.14em; padding: 2px 6px; border: 1px solid currentColor;
  text-transform: uppercase; white-space: nowrap; color: var(--muted); }
.dash-pill.on { color: var(--ok); }
.dash-pill.busy { color: var(--amber); }
.dash-pill.off { color: var(--red); }

.dash-chart { position: relative; margin: 0; min-height: 190px; border: 1px solid var(--slate-lo); background: var(--ink); padding: 8px 6px 4px; }
.dash-chart.small { min-height: 130px; }
.dash-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.dash-chart .grid { stroke: var(--slate-lo); stroke-width: 1; }
.dash-chart .axis { fill: var(--muted); font-family: var(--mono); font-size: 10px; }
.dash-chart .bar { fill: var(--neon); }
.dash-chart .bar.hi { fill: var(--amber); }
.dash-chart .hit { fill: transparent; cursor: crosshair; }
.dash-chart .empty { fill: var(--muted); font-family: var(--font); font-size: 12px; }
.dash-tip { position: absolute; pointer-events: none; z-index: 2; padding: 5px 8px; background: var(--crt); border: 1px solid var(--neon);
  font-family: var(--mono); font-size: 11px; line-height: 1.4; color: var(--lavender); white-space: nowrap; box-shadow: 0 0 10px rgba(176,38,255,0.35); }
.dash-tip b { color: var(--amber); font-weight: 400; }
.dash-details summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.dash-details summary:hover { color: var(--amber); }
.dash-details[open] summary { margin-bottom: 6px; }

.dash-agents { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.dash-agent { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 10px; align-items: center; padding: 8px 10px;
  border: 1px solid var(--slate-lo); background: rgba(13, 10, 19, 0.6); font-size: 12px; min-width: 0; }
.dash-agent img { width: 40px; height: 40px; display: block; background: var(--slate-lo); border: 1px solid var(--ink); }
.dash-agent .who { font-weight: 800; letter-spacing: 0.06em; color: var(--lavender); }
.dash-agent .meta { margin-top: 3px; display: flex; gap: 4px 10px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.dash-agent a { color: var(--lavender); text-decoration: none; }
.dash-agent a:hover { color: var(--amber); }
.dash-links { margin: 0; padding-left: 20px; display: grid; gap: 5px; font-size: 12px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.dash-links li::marker { color: var(--neon); }

@media (max-width: 520px) {
  .dash-big { font-size: 17px; }
  .dash-head .dash-big { font-size: 20px; }
  .dash-tiles, .dash-small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-bal { grid-template-columns: minmax(0, 1fr); }
  .dash-tbl { font-size: 11px; }
  .dash-tbl th, .dash-tbl td { padding: 4px 4px; }
  .dash-agents { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .dash-head .dash-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
