/* Share the fluid sidebar width with the content offset; reserve brand text space on narrow desktops. */
:root{--bg:#f6f7f9;--paper:#fff;--ink:#172823;--muted:#7a8580;--line:#e5e9e7;--green:#158867;--mint:#e8f6ef;--amber:#ab711a;--sidebar-width:max(12vw,calc(160px + 2.4vw))}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:14px/1.55 Inter,"Segoe UI","Microsoft YaHei",sans-serif;font-variant-numeric:tabular-nums}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);background:#172c25;color:#dbe7e0;padding:34px 1.2vw;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;font-size:23px;font-weight:750;letter-spacing:2px}.brand-icon{display:grid;place-items:center;width:38px;height:42px;border:1px solid #7da28d;border-radius:10px;color:#b7efcb;font-size:25px;transform:skewY(-5deg)}.brand-sub{font-size:7px;display:block;color:#8ba497;letter-spacing:1.5px;font-weight:500}.nav-label{font-size:11px;letter-spacing:1px;color:#829e8f;margin:48px 11px 14px}.nav{width:100%;border:0;color:#c2d3c9;text-align:left;background:transparent;padding:12px;border-radius:7px;display:flex;align-items:center;gap:12px}.nav.active{background:#2c483a;color:#d5f3df}.nav>span:first-child{font-size:19px}.nav-arrow{margin-left:auto;font-size:14px;color:#89b49b}.nodes-label{display:flex;justify-content:space-between;margin-top:36px}.host-nav{padding:13px 12px;display:flex;gap:10px;align-items:center;font-size:12px;color:#b9cdc0;background:transparent;border:0;width:100%;text-align:left;border-radius:7px}.host-nav.selected{background:#2c483a}.side-bottom{margin-top:auto;padding:18px 8px 0;border-top:1px solid #30483b;font-size:12px}.side-bottom>span:last-child{display:block;margin:6px 0 0 15px;font-size:10px;color:#7c9a88}.live-dot,.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#60bb8a;margin-right:7px}.gray{background:#bdc8c2}.green{background:#219a74}.amber{background:#d49b3c}main{margin-left:var(--sidebar-width);padding:0 44px;min-width:0}header{display:flex;align-items:center;justify-content:space-between;height:78px;border-bottom:1px solid var(--line);font-size:12px}.breadcrumb{color:#6c7971}.breadcrumb span{padding:0 13px;color:#b1bcb5}.connection{display:flex;align-items:center;color:#536e5c;font-size:11px;border:1px solid var(--line);border-radius:20px;padding:5px 12px;background:white}.title-row{display:flex;align-items:center;justify-content:space-between;margin:32px 0 28px}.eyebrow{font-size:10px;letter-spacing:2px;color:#71867a;font-weight:600}h1{font-size:34px;letter-spacing:-1px;line-height:1.3;margin:7px 0 8px;font-weight:650}.title-dot{color:var(--green);margin-left:4px}p{margin:0;color:var(--muted);font-size:12px}.refresh-area{display:flex;flex-direction:column;align-items:flex-end;gap:8px;color:#8a948d;font-size:10px}.refresh{background:white;border:1px solid #dce3de;border-radius:6px;padding:9px 14px;color:#42634f;font-size:17px;display:flex;align-items:center;gap:8px}.refresh span{font-size:11px}.refresh:disabled{opacity:.5}.summary{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.summary article{background:white;padding:19px 22px;border:1px solid var(--line);border-radius:9px;min-width:0}.metric-label{font-size:11px;color:#738177;display:flex;justify-content:space-between}.metric-label>span{color:#8ca99a;font-size:15px}.metric-value{font-size:35px;letter-spacing:-1.4px;font-weight:620;line-height:1.7}.metric-value small{font-size:17px;font-weight:400;color:#93a097;letter-spacing:0}.metric-foot{font-size:10px;color:#859188}.metric-foot .good{color:var(--green)}#notice{margin-top:20px;background:#fffbf2;border:1px solid #eee2c5;border-radius:7px;padding:12px 16px;font-size:11px;line-height:1.8;color:#956a28}#notice.error{background:#fff1ef;color:#a54e43;border-color:#f0d5d0}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:27px 0 17px}h2{font-size:17px;font-weight:650;margin:0 0 4px;letter-spacing:-.3px}.section-heading p{font-size:10px}.count{display:inline-block;background:#e9edea;border:1px solid #e0e6e2;font-size:10px;font-weight:500;padding:0 6px;border-radius:5px;vertical-align:2px;color:#697d70;margin-left:5px}.legend{font-size:10px;display:flex;gap:18px;color:#849188}.legend i{width:6px;height:6px}.host-section{margin-bottom:22px}.host-heading{display:flex;align-items:center;gap:12px;margin-bottom:11px;flex-wrap:wrap}.host-heading h3{font-weight:600;font-size:12px;margin:0}.host-meta{font-size:10px;color:#94a097}.status-badge{font-size:9px;border:1px solid #d6e9df;background:#edf8f1;color:#468466;padding:1px 7px;border-radius:4px}.status-badge.offline,.status-badge.stale{background:#fff6e6;border-color:#ecdebd;color:#a2803b}.gpu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.gpu-card{background:white;border:1px solid var(--line);border-radius:9px;padding:17px 19px 13px;overflow:hidden}.gpu-card.stale{opacity:.62}.gpu-title{display:flex;align-items:center;justify-content:space-between}.gpu-id{font-size:11px;color:#566e60;font-weight:600}.gpu-id b{background:#edf2ee;padding:2px 6px;border-radius:4px;font-weight:600;margin-right:7px}.gpu-state{font-size:9px;color:#7e9586}.gpu-name{font-size:14px;font-weight:600;margin:9px 0 14px;letter-spacing:-.3px}.gpu-load{display:flex;justify-content:space-between;gap:9px;align-items:flex-end}.load-label{font-size:9px;color:#849087;display:block}.load-value{font-size:28px;line-height:1.5;font-weight:550;letter-spacing:-1px}.load-value small{font-size:12px;color:#92a298;font-weight:400;padding-left:3px}.spark{height:41px;width:47%;overflow:visible}.spark .area{fill:#edf7f0}.spark .line{fill:none;stroke:#329577;stroke-width:1.6;stroke-linejoin:round}.memory-head{display:flex;align-items:center;justify-content:space-between;margin:12px 0 6px;color:#849087;font-size:9px}.memory-head strong{font-weight:500;color:#536b5c}.memory-track{height:4px;background:#edf0ed;border-radius:10px;overflow:hidden}.memory-fill{height:100%;background:#4eaa85;border-radius:10px}.memory-fill.high{background:#d5ad60}.gpu-bottom{display:flex;justify-content:space-between;gap:4px;margin-top:15px;padding-top:11px;border-top:1px solid #eff2ef;color:#7c8b81;font-size:10px}.gpu-bottom b{font-weight:500;color:#496151}.process-section{margin-top:25px}.search{display:flex;align-items:center;gap:9px;background:white;border:1px solid var(--line);border-radius:6px;padding:6px 11px;color:#92a297}.search>span{font-size:19px;line-height:1}.search input{border:0;outline:0;font-size:10px;background:transparent;width:155px;color:#47634f}.table-wrap{border:1px solid var(--line);border-radius:9px;overflow:auto;background:white}table{border-collapse:collapse;width:100%;font-size:11px;white-space:nowrap}th{text-align:left;background:#fbfcfb;color:#8c9990;font-size:10px;font-weight:500;padding:12px 19px}td{padding:13px 19px;border-top:1px solid #edf1ed;color:#53695a}td strong{font-weight:500;color:#344f3c}.secondary{display:block;font-size:9px;color:#94a196;margin-top:3px;max-width:280px;overflow:hidden;text-overflow:ellipsis}.right{text-align:right}.container-tag{display:inline-block;width:10em;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;padding:3px 7px;background:#edf6f0;border:1px solid #deebe2;border-radius:4px;font-size:10px;color:#50765e}.container-tag.unknown{background:#faf6ec;border-color:#eee4d0;color:#a58c5a}.empty,.loading{text-align:center;color:#8b9c8f;padding:35px;font-size:12px}.host-error{font-size:11px;color:#b27f4b;padding:12px 0;overflow-wrap:anywhere}footer{display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--line);margin-top:30px;padding:21px 0 26px;color:#9aa59d;font-size:9px}footer>span:first-child{letter-spacing:1px}.footer-mark{font-weight:bold;color:#728e7b;margin-right:7px}button:hover{filter:brightness(.96)}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #399677;outline-offset:3px}[hidden]{display:none!important}@media(min-width:1320px){.gpu-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1200px){main{padding:0 28px}.sidebar{padding-top:30px;padding-bottom:30px}.gpu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.summary{gap:10px}.summary article{padding:15px}.metric-value{font-size:30px}.metric-value small{font-size:13px}}@media(max-width:850px){:root{--sidebar-width:9vw}.sidebar{padding:25px 1vw}.sidebar .brand{justify-content:center}.brand>span:last-child,.nav-label,.nav,.host-nav,.side-bottom{display:none}main{padding:0 22px}.summary{grid-template-columns:repeat(2,minmax(0,1fr))}.title-row{margin-top:25px}h1{font-size:29px}.eyebrow{font-size:8px}}@media(max-width:560px){:root{--sidebar-width:0px}.sidebar{display:none}main{padding:0 16px}header{height:58px}.title-row{gap:10px;margin:23px 0}.title-row p{font-size:10px;max-width:200px}.refresh-area{white-space:nowrap}.gpu-grid{grid-template-columns:1fr}.metric-value{font-size:29px}.summary article{padding:13px}.metric-foot{font-size:9px}.section-heading{gap:10px;flex-wrap:wrap}.process-section .section-heading{align-items:flex-start}.search{width:100%}.search input{width:100%}.host-meta{font-size:9px}.legend{gap:10px}footer{flex-direction:column;font-size:8px}.gpu-name{font-size:16px}.gpu-load .load-value{font-size:32px}.spark{height:45px}.gpu-card{padding:19px}}

/* GPU memory segments, legend swatches and process badges share an owner hue. */
.container-tag, .vram-segment, .vram-owner {
  --owner-fill: hsl(var(--owner-h) var(--owner-s) 78%);
  --owner-ink: hsl(var(--owner-h) var(--owner-s) 24%);
}
.container-tag {
  color: var(--owner-ink);
  background: hsl(var(--owner-h) var(--owner-s) 94%);
  border-color: hsl(var(--owner-h) var(--owner-s) 85%);
}
.vram-bar {
  display: flex;
  overflow: hidden;
  height: 1.85em;
  border-radius: 5px;
  font-size: var(--text-caption);
}
.vram-segment {
  container: vram-piece / inline-size;
  flex: none;
  min-width: 0;
  display: grid;
  align-items: center;
  color: var(--owner-ink);
  background: var(--owner-fill);
  box-shadow: inset -1px 0 rgb(255 255 255 / 45%);
}
.vram-segment span {display: none}
@container vram-piece (min-width: 4em) {
  .vram-segment span {
    display: block;
    padding: 0 .35em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
  }
}
.vram-segment.free, .vram-owner.free {--owner-fill: #edf0ee; --owner-ink: #53685c}
.vram-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .3em .95em;
  margin: .6em 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-caption);
}
.vram-owner {display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .32em; max-width: 100%; color: #344f3e}
.vram-owner i {width: .7em; height: .7em; align-self: baseline; border-radius: 2px; background: var(--owner-fill); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 10%)}
.vram-owner span {min-width: 0; overflow-wrap: anywhere}
.vram-owner small, .vram-note {font-size: var(--text-caption); color: #627568}
.vram-owner small {white-space: nowrap}
.vram-note {margin-top: .35em}
.vram-legend > li {min-width: 0; max-width: 100%}
button.vram-segment, button.vram-owner {
  appearance: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
button.vram-owner {background: transparent; text-align: start; min-height: 24px}
button.vram-owner:hover span, button.vram-owner[aria-pressed="true"] span {
  text-decoration: underline;
  text-underline-offset: .2em;
}
button.vram-segment[aria-pressed="true"], button.vram-segment:focus-visible {
  outline: 2px solid var(--owner-ink);
  outline-offset: -2px;
}
.process-section {scroll-margin-top: 1rem}
.process-scope {
  display: flex;
  align-items: center;
  gap: .5em 1em;
  flex-wrap: wrap;
  margin-bottom: .75em;
  color: var(--ink);
  font-size: var(--text-detail);
}
.process-scope span {overflow-wrap: anywhere}
.process-scope[hidden] {display: none}

/* A responsive type scale keeps key metrics distinct from readable supporting text. */
:root{
  --text-caption:clamp(12px,calc(10px + .15vw),16px);
  --text-detail:clamp(14px,calc(12px + .15vw),18px);
  --text-host:clamp(16px,calc(14px + .2vw),22px);
  --text-device:clamp(22px,calc(18px + .25vw),28px);
  --text-section:clamp(26px,calc(22px + .3vw),34px);
  --text-page:clamp(34px,calc(28px + .6vw),52px);
  --text-value:clamp(36px,calc(30px + .65vw),56px);
  --text-load:clamp(34px,calc(28px + .5vw),48px);
  --text-unit:clamp(14px,calc(12px + .2vw),20px);
}
.eyebrow,.metric-label,.gpu-bottom,table,.host-nav,.side-bottom,.sidebar .nav{
  font-size:var(--text-detail);
}
.metric-foot,.section-heading p,.count,.legend,.host-meta,.status-badge,
.gpu-id,.gpu-state,.load-label,.memory-head,th,.secondary,.container-tag,
.refresh-area,.refresh span,.search input,.nav-label,.side-bottom>span:last-child,
main header,main .connection,main .account-identity,main footer{
  font-size:var(--text-caption);
}
main h1{font-size:var(--text-page);font-weight:700;line-height:1.25}
main h2{font-size:var(--text-section);font-weight:500;line-height:1.3;margin-bottom:6px}
.host-heading h3{font-size:var(--text-host);font-weight:500}
.gpu-name{font-size:var(--text-device);font-weight:500;margin:12px 0 16px}
.summary .metric-value{
  display:flex;align-items:baseline;flex-wrap:wrap;gap:0 .12em;
  font-size:var(--text-value);font-weight:500;line-height:1.25;
  letter-spacing:-.04em;margin:12px 0 8px;
}
.summary .metric-value small,.gpu-load .load-value small{
  font-size:var(--text-unit);font-weight:400;letter-spacing:0;color:#627568;
}
.gpu-load .load-value{display:block;font-size:var(--text-load);font-weight:500;line-height:1.2}
.gpu-load .spark{height:clamp(48px,calc(42px + .4vw),64px)}
.section-heading{margin-top:32px;margin-bottom:18px}
.sidebar .nav{font-weight:500}
.metric-label,.metric-foot,.section-heading p,.legend,.host-meta,
.gpu-state,.load-label,.memory-head,th,.secondary,main footer{
  color:#627568;
}
.gpu-bottom{color:#5d7265;flex-wrap:wrap;gap:8px 16px}
.gpu-bottom>span{white-space:nowrap}
.gpu-bottom b{color:#344f3e;font-weight:500}
.gpu-title{flex-wrap:wrap;gap:6px 10px}
.memory-head{gap:8px}
.memory-head strong{white-space:nowrap}
.host-meta{overflow-wrap:anywhere}
.mobile-host-filter {display: none}
@media (max-width: 850px) {
  .mobile-host-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    color: #41594a;
    font-size: var(--text-detail);
  }
  .mobile-host-filter select {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #d6e1da;
    border-radius: 7px;
    background-color: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
  }
  .mobile-host-filter select:focus-visible {outline: 2px solid var(--green); outline-offset: 2px}
}
.search input{width:14em}
main footer{flex-wrap:wrap}
@media(max-width:560px){.search input{width:100%}}

/* Host-wide resources sit together above each server's GPU cards. */
.host-resources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:14px}
.resource-card{min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:16px 19px}
.resource-card.stale{opacity:.62}
.resource-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:var(--text-detail);color:#536b5c}
.resource-heading>span:last-child{font-size:var(--text-caption);color:#627568}
.resource-reading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;margin:10px 0 12px}
.resource-value{font-size:var(--text-device);font-weight:500;line-height:1.25;white-space:nowrap}
.resource-value small{font-size:var(--text-unit);font-weight:400;color:#627568;margin-left:3px}
.resource-note{font-size:var(--text-caption);color:#627568;overflow-wrap:anywhere}
@media(max-width:560px){.host-resources{grid-template-columns:1fr}.resource-card{padding:15px 19px}}

/* Keep the current server visible while scrolling through the overview. */
.title-row h1,.section-heading h2{margin-bottom:0}
.overview-host {
  --band:#224e43; --surface:#edf4f0; --edge:#c5d9ce; --accent:#a6debd;
  --band-ink:#f4faf7;
  padding:0 clamp(9px,1vw,20px) clamp(10px,1vw,20px);
  margin:0 0 clamp(28px,2.5vw,48px);
  border:1px solid var(--edge); border-radius:12px; background:var(--surface);
}
.overview-host .host-heading {
  position:sticky; top:0; z-index:3; margin:0 calc(-1 * clamp(9px,1vw,20px) - 1px) 12px;
  display:flex; flex-wrap:nowrap; gap:12px; min-height:54px; padding:8px 16px;
  border-radius:11px; color:var(--band-ink); background:var(--band);
  box-shadow:0 2px 4px #192a2519;
}
.overview-host .host-heading h3{font-size:clamp(20px,1.13vw,30px);font-weight:500;line-height:1.2;letter-spacing:.01em}
.overview-host .host-meta{font-size:var(--text-caption);color:#e1e9e8}
.overview-host .status-badge{margin-left:auto;border:0;color:#edfff3;background:transparent;white-space:nowrap;font-size:var(--text-caption);display:flex;align-items:center;gap:6px}
.overview-host .status-badge:before{content:'';width:6px;height:6px;border-radius:50%;background:#8be1ad}
.overview-host .status-badge:not(.online):before{background:#eec084}
.host-mark{width:31px;height:31px;display:grid;align-content:center;justify-items:center;gap:3px;border:1px solid #ffffff45;border-radius:7px;color:var(--accent)}
.host-mark i{width:16px;height:6px;position:relative;border:1px solid currentColor;border-radius:2px}
.host-mark i:after{content:'';position:absolute;left:2px;top:1px;width:3px;height:2px;background:currentColor}
.group-count{color:#e1e9e8;font-size:var(--text-caption);white-space:nowrap;border-left:1px solid #ffffff40;padding-left:11px}
.overview-host .gpu-card{scroll-margin-top:62px}
.overview-host .gpu-grid,.overview-host .host-resources{gap:10px}
.overview-host .host-resources{margin-bottom:10px}
@media(max-width:850px){
  .overview-host .host-heading{padding:8px 12px;gap:9px;min-height:50px;margin-bottom:9px}
  .overview-host .host-meta{display:none}
  .host-mark{width:28px;height:28px}
}
@media(max-width:560px){
  .overview-host{margin-inline:-6px}
  .overview-host .gpu-card{padding:15px 14px 12px}
}
