/* Home page hero: the live example dashboard drawn by assets/home-dashboard.js. It copies the Server Admin dashboard
   in its dark theme: the admin kit's card, border, ink and accent colors. Everything sits under .hd so nothing leaks
   into the rest of the page. Its size follows the hero, not the window: the container queries at the end drop panels
   as it narrows. */
.page-index .hd {
  --hd-bg: #1d1d1d;
  --hd-bar: #202020;
  --hd-card: #262626;
  --hd-border: #3a3a3a;
  --hd-rule: #333;
  --hd-track: #333;
  --hd-ink: #e3e7ea;
  --hd-strong: #f4f6f7;
  --hd-muted: #a3acb3;
  --hd-faint: #868f96;
  --hd-orange: #ff8010;
  --hd-blue: #60a5fa;
  --hd-green: #22c55e;
  --hd-green-ink: #7ddc9f;
  --hd-amber: #f5b451;
  --hd-ease: cubic-bezier(.2, .7, .2, 1);
  container: hd / inline-size;
  position: relative;
  overflow: hidden;
  background: var(--hd-bg);
  color: var(--hd-ink);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  cursor: default;
  user-select: none;
}
.page-index .hd-noscript img { display: block; width: 100%; }
.page-index .hd ul { list-style: none; margin: 0; padding: 0; }
.page-index .hd b { font-weight: 650; }

/* app bar and section tabs */
.page-index .hd-app,
.page-index .hd-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid var(--hd-rule);
  white-space: nowrap;
}
.page-index .hd-app { height: 36px; background: var(--hd-bar); }
.page-index .hd-sub { height: 32px; }
.page-index .hd .hd-logo { flex: none; width: auto; max-width: none; height: 14px; object-fit: fill; }
.page-index .hd-nav,
.page-index .hd-tabs { display: flex; gap: 2px; min-width: 0; overflow: hidden; }
.page-index .hd-nav span,
.page-index .hd-tabs span {
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--hd-muted);
  font-weight: 620;
}
.page-index .hd-nav .is-on { color: var(--hd-strong); background: #2f2f2f; box-shadow: inset 0 0 0 1px #474747; }
.page-index .hd-tabs .is-on { color: var(--hd-strong); background: #2d2219; box-shadow: inset 0 0 0 1px #a85a17; }
.page-index .hd-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.page-index .hd-search {
  padding: 3px 7px 3px 9px;
  border: 1px solid var(--hd-border);
  border-radius: 6px;
  color: var(--hd-faint);
}
.page-index .hd-search kbd {
  margin-left: 18px;
  padding: 0 4px;
  border: 1px solid var(--hd-border);
  border-radius: 3px;
  font: inherit;
  font-size: 9.5px;
}
.page-index .hd-avatar {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hd-orange);
  color: #1d1d1d;
  font-size: 9.5px;
  font-weight: 800;
}
.page-index .hd-state { display: flex; align-items: center; gap: 13px; margin-left: auto; color: var(--hd-muted); }
.page-index .hd-state b { color: var(--hd-ink); }
.page-index .hd-ok { color: var(--hd-green-ink); font-weight: 650; }
.page-index .hd-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--hd-green);
  vertical-align: 0;
}
.page-index .hd-live .hd-dot { animation: hd-pulse 2s ease-out infinite; }
.page-index .hd.is-paused .hd-live .hd-dot { background: var(--hd-faint); animation: none; }
@keyframes hd-pulse {
  0% { box-shadow: 0 0 0 0 #22c55e80; }
  70%, 100% { box-shadow: 0 0 0 5px #22c55e00; }
}

/* page body */
.page-index .hd-body { display: grid; gap: 8px; padding: 10px; }
.page-index .hd-card {
  min-width: 0;
  border: 1px solid var(--hd-border);
  border-radius: 9px;
  background: var(--hd-card);
}
.page-index .hd-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.page-index .hd-kpi { display: flex; flex-direction: column; padding: 8px 10px 8px; }
.page-index .hd-label,
.page-index .hd-delta,
.page-index .hd-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-index .hd-label { color: var(--hd-muted); font-size: 10px; font-weight: 600; }
.page-index .hd-val {
  margin-top: 2px;
  color: var(--hd-strong);
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -.02em;
  line-height: 1.15;
  white-space: nowrap;
}
.page-index .hd-val small { margin-left: 3px; color: var(--hd-ink); font-size: 10.5px; font-weight: 650; letter-spacing: 0; }
.page-index .hd-delta { margin-top: 1px; color: var(--hd-muted); font-size: 9.5px; }
.page-index .hd-delta .up { color: var(--hd-green-ink); font-weight: 700; }
.page-index .hd-delta .down { color: var(--hd-muted); font-weight: 700; }
.page-index .hd-spark { display: block; width: 100%; height: 24px; margin-top: auto; padding-top: 6px; overflow: visible; }
.page-index .hd-spark path,
.page-index .hd-gauge path,
.page-index .hd-plot path { vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.page-index .hd-l-o,
.page-index .hd-l-b,
.page-index .hd-l-g { fill: none; stroke-width: 1.5; }
.page-index .hd-l-o { stroke: var(--hd-orange); }
.page-index .hd-l-b { stroke: var(--hd-blue); }
.page-index .hd-l-g { stroke: var(--hd-green); }
.page-index .hd-a-g { fill: var(--hd-green); fill-opacity: .14; stroke: none; }
.page-index .hd-a-o { fill: var(--hd-orange); fill-opacity: .12; stroke: none; }
.page-index .hd-bars { fill: var(--hd-orange); fill-opacity: .85; }
.page-index .hd-cpu-row { display: flex; align-items: flex-end; gap: 8px; margin-top: auto; padding-top: 4px; }
.page-index .hd-gauge { flex: none; width: 42px; height: 24px; overflow: visible; }
.page-index .hd-gauge path { fill: none; stroke-width: 5; }
.page-index .hd-gauge .track { stroke: var(--hd-track); }
.page-index .hd-gauge .val { stroke: var(--hd-blue); transition: stroke-dasharray .9s var(--hd-ease); }
.page-index .hd-mini-legend { display: grid; gap: 1px; min-width: 0; color: var(--hd-muted); font-size: 9px; white-space: nowrap; }
.page-index .hd-mini-legend b { color: var(--hd-ink); }
.page-index .hd-key { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; vertical-align: 1px; }
.page-index .hd-key.o { background: var(--hd-orange); }
.page-index .hd-key.b { background: var(--hd-blue); }
.page-index .hd-meter {
  height: 6px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 3px;
  background: var(--hd-track);
}
.page-index .hd-meter i,
.page-index .hd-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--hd-green);
  transition: width .9s var(--hd-ease);
}

/* panels */
.page-index .hd-panel { display: flex; flex-direction: column; padding: 9px 11px 10px; }
.page-index .hd-head { display: flex; align-items: center; gap: 10px; min-height: 20px; white-space: nowrap; }
.page-index .hd-title { color: var(--hd-strong); font-size: 12px; font-weight: 720; }
.page-index .hd-meta { margin-left: auto; color: var(--hd-muted); font-size: 10px; }
.page-index .hd-row2 { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: 8px; }
.page-index .hd-row2 > .hd-panel { height: 208px; }
.page-index .hd-legend { display: flex; gap: 10px; margin-left: auto; color: var(--hd-muted); font-size: 10px; }
.page-index .hd-pill { padding: 1px 8px; border: 1px solid var(--hd-border); border-radius: 5px; color: var(--hd-ink); font-size: 10px; }
.page-index .hd-note { margin: 3px 0 2px; color: var(--hd-muted); font-size: 10px; }
.page-index .hd-chart { position: relative; flex: 1; min-height: 0; }
.page-index .hd-plot { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.page-index .hd-plot text { fill: var(--hd-faint); font-family: inherit; font-size: 9px; }
.page-index .hd-plot .grid line { stroke: var(--hd-rule); shape-rendering: crispEdges; }
.page-index .hd-plot .base { stroke: #4a4a4a; }
.page-index .hd-plot .hd-l-o,
.page-index .hd-plot .hd-l-b { stroke-width: 2; }
.page-index .hd-plot .cross line { stroke: #8a9399; stroke-dasharray: 2 3; }
.page-index .hd-plot .cross circle { stroke: var(--hd-card); stroke-width: 2; }
.page-index .hd-plot .cross .o { fill: var(--hd-orange); }
.page-index .hd-plot .cross .b { fill: var(--hd-blue); }
.page-index .hd-plot .hit { fill: transparent; cursor: crosshair; }
.page-index .hd-tip {
  position: absolute;
  top: 2px;
  z-index: 1;
  display: grid;
  gap: 1px;
  padding: 5px 8px;
  border: 1px solid #4a4a4a;
  border-radius: 6px;
  background: #151515;
  box-shadow: 0 8px 20px -8px #000;
  color: var(--hd-muted);
  font-size: 10px;
  white-space: nowrap;
  pointer-events: none;
}
.page-index .hd-tip b { color: var(--hd-ink); }

/* live activity */
.page-index .hd-feedlist { display: grid; margin-top: 4px; overflow: hidden; }
.page-index .hd-ev {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 2px 0;
  border-top: 1px solid var(--hd-rule);
  line-height: 1.3;
}
.page-index .hd-ev:first-child { border-top: 0; }
.page-index .hd-ev.is-new { animation: hd-in .5s var(--hd-ease); }
@keyframes hd-in {
  from { opacity: 0; transform: translateY(-8px); }
}
.page-index .hd-ic {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.page-index .hd-ic svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.page-index .hd-ev.up .hd-ic { color: var(--hd-blue); background: #1d2a3a; }
.page-index .hd-ev.down .hd-ic { color: var(--hd-orange); background: #3a2716; }
.page-index .hd-ev.login .hd-ic,
.page-index .hd-ev.mdn .hd-ic { color: var(--hd-green); background: #183021; }
.page-index .hd-ev.job .hd-ic { color: var(--hd-amber); background: #3a301e; }
.page-index .hd-ev.share .hd-ic { color: var(--hd-ink); background: #333; }
.page-index .hd-ev-x { display: grid; min-width: 0; }
.page-index .hd-ev-t,
.page-index .hd-ev-m { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-index .hd-ev-t { color: var(--hd-ink); font-size: 10.5px; font-weight: 640; }
.page-index .hd-ev-m { color: var(--hd-muted); font-size: 9.5px; }
.page-index .hd-age { color: var(--hd-faint); font-size: 9.5px; }

/* bottom row */
.page-index .hd-row3 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.page-index .hd-row3 > .hd-panel { height: 166px; }
.page-index .hd-heatgrid {
  display: grid;
  grid-template-columns: 78px repeat(24, minmax(0, 1fr));
  gap: 2px;
  align-items: center;
  margin-top: 8px;
}
.page-index .hd-heatlab { display: flex; justify-content: space-between; gap: 4px; padding-right: 6px; font-size: 9.5px; font-weight: 650; }
.page-index .hd-heatlab span { color: var(--hd-muted); font-weight: 500; }
.page-index .hd-cell { height: 13px; border-radius: 2px; background: var(--hd-track); transition: background-color .5s; }
.page-index .hd-cell.l1 { background: #5c3d21; }
.page-index .hd-cell.l2 { background: #93531b; }
.page-index .hd-cell.l3 { background: #c96916; }
.page-index .hd-cell.l4 { background: #ff8010; }
.page-index .hd-cell.ping { animation: hd-ping .7s ease-out; }
@keyframes hd-ping {
  from { box-shadow: 0 0 0 2px #ffc08a; }
  to { box-shadow: 0 0 0 2px #ffc08a00; }
}
.page-index .hd-heatfoot { display: flex; justify-content: space-between; margin: 5px 0 0 80px; color: var(--hd-faint); font-size: 9px; }
.page-index .hd-joblist { display: grid; gap: 6px; margin-top: 7px; }
.page-index .hd-job.is-new { animation: hd-in .5s var(--hd-ease); }
.page-index .hd-job.is-leaving { opacity: 0; transition: opacity .6s; }
.page-index .hd-job-row,
.page-index .hd-host-row { display: flex; align-items: baseline; gap: 6px; font-size: 10.5px; white-space: nowrap; }
.page-index .hd-job-row b,
.page-index .hd-host-row b { min-width: 0; overflow: hidden; color: var(--hd-ink); text-overflow: ellipsis; }
.page-index .hd-job-row span,
.page-index .hd-host-row .pct { margin-left: auto; color: var(--hd-muted); font-size: 9.5px; }
.page-index .hd-bar { height: 4px; margin: 3px 0 2px; overflow: hidden; border-radius: 2px; background: var(--hd-track); }
.page-index .hd-job .hd-bar i { background: var(--hd-blue); }
.page-index .hd-job.done .hd-bar i { background: var(--hd-green); }
.page-index .hd-job-sub { overflow: hidden; color: var(--hd-muted); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.page-index .hd-job.done .hd-job-sub { color: var(--hd-green-ink); }
.page-index .hd-empty { margin-top: 7px; color: var(--hd-muted); font-size: 10px; }
.page-index .hd-clu { display: flex; flex: 1; gap: 12px; align-items: center; min-height: 0; }
.page-index .hd-ring { position: relative; flex: none; width: 82px; height: 82px; }
.page-index .hd-ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.page-index .hd-ring circle { fill: none; stroke-width: 7; }
.page-index .hd-ring .track { stroke: var(--hd-track); }
.page-index .hd-ring .val { stroke: var(--hd-orange); stroke-linecap: round; transition: stroke-dasharray .9s var(--hd-ease); }
.page-index .hd-ring-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  color: var(--hd-strong);
  font-size: 17px;
  font-weight: 760;
  line-height: 1.1;
  text-align: center;
}
.page-index .hd-ring-text small { color: var(--hd-muted); font-size: 8.5px; font-weight: 550; }
.page-index .hd-hosts { display: grid; flex: 1; gap: 7px; min-width: 0; }
.page-index .hd-host-row .ok { color: var(--hd-green-ink); font-size: 9.5px; }

/* the hero caption's pause button */
.page-index .hm-view figcaption .hd-pause {
  flex: none;
  padding: 1px 10px;
  border: 1px solid #5c6164;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font-weight: 700;
}
.page-index .hm-view figcaption .hd-pause:hover { background: #303336; }
.page-index .hm-view figcaption .hd-pause:focus-visible { outline: 2px solid #ff994e; outline-offset: 2px; }

@container hd (max-width: 760px) {
  .page-index .hd-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-index .hd-row3 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .page-index .hd-cluster,
  .page-index .hd-wide { display: none; }
}
@container hd (max-width: 540px) {
  .page-index .hd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-index .hd-kpi.cpu,
  .page-index .hd-kpi.mem,
  .page-index .hd-row3,
  .page-index .hd-mid,
  .page-index .hd-pill,
  .page-index .hd-nav span:not(.is-on),
  .page-index .hd-tabs span:nth-child(n+3) { display: none; }
  .page-index .hd-row2 { grid-template-columns: minmax(0, 1fr); }
  .page-index .hd-row2 > .hd-traffic { height: 190px; }
  .page-index .hd-row2 > .hd-feed { height: auto; }
  .page-index .hd-ev:nth-child(n+5) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .page-index .hd *,
  .page-index .hd *::before,
  .page-index .hd *::after { animation: none !important; transition: none !important; }
}
