/* Usage card (js/usage.js) on the instance Overview, and the usage line
   on the instances list. Theme colors only, so light and dark both work. */
.us-rows { display: flex; flex-direction: column; }
.us-row { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.us-row:first-child { padding-top: 0; }
.us-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.us-top .t { font-weight: 500; }
.us-now { font-size: 13px; }
.us-now .mono { color: var(--text); font-size: 14px; font-weight: 500; }
.us-avgs { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--text-2); }
.us-avgs .mono { font-size: 12px; }

/* The meter is .inst-meter; the guard mark sits above the fill. */
.us-meter { position: relative; overflow: visible; height: 8px; }
.us-meter > span { border-radius: 999px; }
.us-guard { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--bad); border-radius: 1px; }
.us-guard-k { display: inline-flex; align-items: center; gap: 4px; }
.us-guard-k i { display: inline-block; width: 2px; height: 12px; background: var(--bad); border-radius: 1px; }

/* 60-minute sparkline: recessive base, 2px line, faint area under it. */
.us-spark { display: block; width: 100%; height: 40px; color: var(--info); overflow: visible; }
.us-spark .us-base { stroke: var(--line-2); stroke-width: 1; }
.us-spark .us-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.us-spark .us-area { fill: currentColor; opacity: 0.12; }
.us-spark .us-dot { stroke-width: 5; } /* one point: a zero-length line, round-capped */
.us-spark .us-mark { stroke: var(--bad); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.7; }
.us-spark .us-hit { fill: transparent; }
.us-spark .us-hit:hover { fill: var(--hover-tint); }
.us-spark-empty { margin: 0; }
.us-axis { display: flex; justify-content: space-between; margin-top: 2px; color: var(--faint); font-size: 12px; }

.us-jobs th:first-child, .us-jobs td:first-child { padding-left: 0; }
.us-jobs th:last-child, .us-jobs td:last-child { padding-right: 0; }
.us-jobs td { height: 40px; padding-top: 6px; padding-bottom: 6px; }
.us-jobs td.mono { font-size: 12px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-jobs td.num { white-space: nowrap; }
@media (max-width: 560px) {
  .us-jobs th, .us-jobs td { padding-left: 8px; padding-right: 8px; }
  .us-jobs td.mono { max-width: 128px; }
}
.us-nojobs { margin: 0; }
.us-note { margin: 0; }

@media (forced-colors: active) {
  .us-spark .us-line { stroke: CanvasText; }
  .us-spark .us-area { display: none; }
  .us-guard, .us-guard-k i { background: CanvasText; }
}

/* Instances list: "CPU 1.2/2 · RAM 63%" under the status. */
.il-sub.il-usage { font-family: var(--mono); font-size: 12px; color: var(--text-2); white-space: nowrap; }
