/* dash.meowda.xyz styles, renamed with a dash- prefix so they never fight app.css */

:root {
  --mem: #8fb8ff;
  --gpu: #b8a4ff;
  --gpu2: #ff9bce;
  --grid: #1c212b;
  --warn: var(--accent);
  --nodata: var(--line);
}

.dash-pill { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line); background: var(--surface); }
.dash-pill i { width: 8px; height: 8px; background: var(--muted); }
.dash-pill.ok i { background: var(--ok); }
.dash-pill.warn i { background: var(--accent); }
.dash-pill.bad i { background: var(--no); }

.dash-meta { color: var(--muted); font: 11px var(--mono); letter-spacing: .06em; }

.dash-header { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dash-brand { font: 300 20px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; }
.dash-sp { flex: 1; }

.dash-btns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dash-btns > span { color: var(--muted); font-size: 12px; margin-right: 2px; }
.dash-btn { display: inline-block; padding: 7px 12px; border: 1px solid var(--line-2); background: transparent; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-decoration: none; cursor: pointer; }
.dash-btn:hover { border-color: var(--ink); color: var(--ink); }

.dash-tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.dash-tile, .dash-card { background: var(--surface); border: 1px solid var(--line); padding: 10px 14px; min-width: 0; }
.dash-card { padding: 12px 14px; }
.dash-tile h2, .dash-card h2 { margin: 0; font: 500 10px/1.4 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .22em; }
.dash-big { font-family: var(--display); font-size: 28px; font-weight: 300; line-height: 1.25; margin-top: 2px; font-variant-numeric: tabular-nums; }
.dash-big small { font-size: 12px; font-weight: 400; color: var(--muted); }
.dash-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dash-meter { height: 4px; background: var(--surface-2); margin-top: 8px; overflow: hidden; display: block; }
.dash-meter i { display: block; height: 100%; background: var(--accent); width: 0; }
.dash-meter.mem i { background: var(--mem); }
.dash-meter.gpu i { background: var(--gpu); }
.dash-meter.hot i { background: var(--no); }

.dash-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dash-legend { font-family: var(--mono); font-size: 12px; margin-left: auto; display: flex; gap: 14px; }
.dash-legend b { font-weight: 600; }
.dash-legend i { display: inline-block; width: 10px; height: 3px; margin-right: 6px; vertical-align: middle; }
.dash-plot { display: flex; gap: 8px; margin-top: 8px; height: 140px; }
.dash-yax { display: flex; flex-direction: column; justify-content: space-between; text-align: right; font-size: 10px; color: var(--muted); min-width: 46px; line-height: 1; }
.dash-plot svg { flex: 1; width: 0; min-width: 0; height: 100%; display: block; overflow: hidden; }
.dash-xax { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin: 3px 0 0 54px; }

.dash-svc { display: grid; grid-template-columns: 10px minmax(0, 130px) minmax(0, 1fr) 56px; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--grid); }
.dash-svc:first-child { border-top: 0; }
.dash-svc .d { width: 8px; height: 8px; background: var(--ok); }
.dash-svc .d.bad { background: var(--no); }
.dash-svc .n { font-weight: 600; line-height: 1.2; }
.dash-svc .n small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.dash-svc .p { text-align: right; font-weight: 600; }
.dash-bars { display: flex; gap: 1px; height: 22px; }
.dash-bars i { flex: 1; min-width: 1px; background: var(--ok); }
.dash-bars i.p { background: #8ac36a; }
.dash-bars i.w { background: var(--accent); }
.dash-bars i.b { background: var(--no); }
.dash-bars i.n { background: var(--nodata); }
.dash-bars i:hover { outline: 1px solid var(--ink); }
.dash-axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 6px; }

.dash-row { display: grid; grid-template-columns: 84px 1fr minmax(0, 130px); gap: 10px; align-items: center; font-size: 12px; padding: 4px 0; }
.dash-row .nm { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-row .amt { text-align: right; white-space: nowrap; }
.dash-row .dash-meter { margin: 0; }
.dash-note { font-size: 11px; color: var(--muted); margin-top: 8px; }
.dash-footer { text-align: right; font: 11px var(--mono); letter-spacing: .14em; color: var(--muted); }
