:root {
  color-scheme: light dark;
  --page: light-dark(#f5f6f4, #111615);
  --surface: light-dark(#fff, #1a201e);
  --ink: light-dark(#303733, #e3e9e5);
  --muted: light-dark(#6a746e, #a6b2aa);
  --line: light-dark(#e5eae5, #303a33);
  --chrome: light-dark(#f6f8f5, #222b25);
  --hover: light-dark(#f3f6f2, #27322a);
  --selected: light-dark(#eaf1ed, #283d31);
  --accent: light-dark(#34614b, #abd0bb);
  --green: light-dark(#246c43, #9ad4ac);
  --green-bg: light-dark(#edf7ef, #20352a);
  --amber: light-dark(#8b611d, #e2bd7a);
  --red: light-dark(#9d3c38, #e8a09b);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); font: 12px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
main { max-width: 1184px; margin: 0 auto; padding: 38px 32px 30px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 24px; letter-spacing: -.6px; font-weight: 550; line-height: 1.3; }
h2 { font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
h3 { font-size: 12px; font-weight: 600; }
.page-header, .page-actions, .cluster-header, .cluster-heading, .toolbar, .queue-heading, .page-footer, .legend { display: flex; align-items: center; flex-wrap: wrap; }
.page-header { justify-content: space-between; gap: 12px; margin-bottom: 25px; }
.page-actions { gap: 12px; font-size: 11px; }
.quiet-button { border: 1px solid var(--line); border-radius: 5px; padding: 5px 9px; background: var(--surface); }
.quiet-button:hover { background: var(--hover); }
.cluster { margin: 0 0 27px; }
.cluster-header { justify-content: space-between; gap: 6px 16px; margin-bottom: 9px; }
.cluster-heading { gap: 9px; }
.cluster-freshness, .cluster-summary { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.cluster-freshness::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); margin: 0 5px 1px 0; }
.cluster-freshness.fresh::before { background: var(--green); }
.cluster-freshness.stale { color: var(--amber); }
.cluster-freshness.stale::before { background: var(--amber); }
.inventory { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: clip; }
.toolbar { gap: 7px; padding: 10px 13px; border-bottom: 1px solid var(--line); }
.toolbar select, .toolbar input, .queue-heading select { border: 1px solid var(--line); background: var(--surface); border-radius: 5px; padding: 5px 8px; height: 31px; min-width: 0; }
.toolbar select { max-width: 180px; }
.toolbar input { width: 225px; }
input::placeholder { color: var(--muted); opacity: 1; }
.clear-button { border: 0; background: none; padding: 5px; color: var(--accent); }
.filter-count { margin-left: auto; color: var(--muted); font-size: 11px; }
.table-scroll { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.nodes-table { min-width: 970px; }
.queue-table { min-width: 860px; }
.queue-scroll { max-height: 220px; overscroll-behavior: contain; }
.queue-scroll th { position: sticky; top: 0; z-index: 1; }
th { padding: 7px 6px; background: var(--chrome); text-align: left; font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; border-bottom: 1px solid var(--line); }
th button { border: 0; padding: 0; background: none; color: inherit; font: inherit; }
th:first-child, td:first-child { padding-left: 13px; }
th:last-child, td:last-child { padding-right: 13px; }
td { height: 31px; padding: 5px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.mono, .number, kbd { font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.number { text-align: right; }
.muted { color: var(--muted); }
.positive { color: var(--green); }
.caution { color: var(--amber); }
.error { color: var(--red); }
.node-row:hover td { background: var(--hover); }
.node-row.selected td { background: var(--selected); }
.node-row.selected td:first-child { box-shadow: inset 3px 0 var(--accent); }
.node-button { border: 0; background: none; padding: 0; text-align: left; white-space: nowrap; }
.node-button[aria-expanded="true"] { color: var(--accent); font-weight: 600; }
.chevron { width: 13px; display: inline-block; color: var(--muted); }
.free { color: var(--green); background: var(--green-bg); font-weight: 600; }
.users { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.partitions { max-width: 175px; overflow: hidden; text-overflow: ellipsis; }
.mine { color: var(--accent); font-weight: 600; }
.detail-row > td { background: var(--hover); padding: 10px 13px 12px 26px; white-space: normal; }
.detail-row p { font-size: 11px; color: var(--muted); }
.detail-row p + p { margin-top: 5px; }
.detail-jobs { width: auto; min-width: 680px; margin: 5px 0; }
.detail-jobs td, .detail-jobs th { background: transparent; padding: 4px 17px 4px 0; border: 0; height: auto; }
.detail-jobs td:last-child, .detail-jobs th:last-child { padding-right: 0; }
.legend { justify-content: space-between; gap: 5px 16px; padding: 8px 13px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); }
.queue-heading { gap: 8px; padding: 12px 13px 9px; border-top: 1px solid var(--line); }
.queue-heading .muted { font-size: 11px; }
.queue-heading select { margin-left: auto; font-size: 11px; height: 28px; }
.queue-help { color: var(--muted); font-size: 11px; padding: 8px 13px; border-top: 1px solid var(--line); }
.queue-reason { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.empty { padding: 18px 13px; white-space: normal; color: var(--muted); }
.notice { padding: 10px 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); margin-bottom: 12px; font-size: 12px; overflow-wrap: anywhere; }
.cluster-notice { color: var(--amber); font-size: 11px; padding: 8px 13px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.page-footer { justify-content: space-between; gap: 8px 18px; color: var(--muted); font-size: 11px; }
kbd { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; top: 8px; left: 8px; padding: 8px; background: var(--surface); color: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: none; z-index: 3; }
@media (max-width: 650px) {
  main { padding: 22px 12px; }
  h1 { font-size: 22px; }
  .page-header { margin-bottom: 22px; }
  .page-actions { gap: 7px; }
  .cluster-header { align-items: flex-start; }
  .cluster-summary { width: 100%; }
  .toolbar { gap: 6px; }
  .toolbar input { width: 100%; order: -1; }
  .toolbar select { flex: 1; width: 90px; max-width: none; }
  .filter-count { width: 100%; margin-left: 0; }
  .nodes-table th:first-child, .node-row td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
  .nodes-table th:first-child { background: var(--chrome); }
  .node-row.selected td:first-child { background: var(--selected); }
  .page-footer { line-height: 1.8; }
}
@media (pointer: coarse) {
  .toolbar select, .toolbar input { height: 42px; font-size: 16px; }
  .node-button { min-height: 35px; }
  .quiet-button { min-height: 40px; }
}
