.uplot, .uplot *, .uplot *::before, .uplot *::after {box-sizing: border-box;}.uplot {font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";line-height: 1.5;width: min-content;}.u-title {text-align: center;font-size: 18px;font-weight: bold;}.u-wrap {position: relative;user-select: none;}.u-over, .u-under {position: absolute;}.u-under {overflow: hidden;}.uplot canvas {display: block;position: relative;width: 100%;height: 100%;}.u-axis {position: absolute;}.u-legend {font-size: 14px;margin: auto;text-align: center;}.u-inline {display: block;}.u-inline * {display: inline-block;}.u-inline tr {margin-right: 16px;}.u-legend th {font-weight: 600;}.u-legend th > * {vertical-align: middle;display: inline-block;}.u-legend .u-marker {width: 1em;height: 1em;margin-right: 4px;background-clip: padding-box !important;}.u-inline.u-live th::after {content: ":";vertical-align: middle;}.u-inline:not(.u-live) .u-value {display: none;}.u-series > * {padding: 4px;}.u-series th {cursor: pointer;}.u-legend .u-off > * {opacity: 0.3;}.u-select {background: rgba(0,0,0,0.07);position: absolute;pointer-events: none;}.u-cursor-x, .u-cursor-y {position: absolute;left: 0;top: 0;pointer-events: none;will-change: transform;}.u-hz .u-cursor-x, .u-vt .u-cursor-y {height: 100%;border-right: 1px dashed #607D8B;}.u-hz .u-cursor-y, .u-vt .u-cursor-x {width: 100%;border-bottom: 1px dashed #607D8B;}.u-cursor-pt {position: absolute;top: 0;left: 0;border-radius: 50%;border: 0 solid;pointer-events: none;will-change: transform;/*this has to be !important since we set inline "background" shorthand */background-clip: padding-box !important;}.u-axis.u-off, .u-select.u-off, .u-cursor-x.u-off, .u-cursor-y.u-off, .u-cursor-pt.u-off {display: none;}
:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --sidebar: #fbfbfc;
  --text: #1b1f24;
  --muted: #6b7380;
  --faint: #9aa1ad;
  --line: #e4e7ec;
  --hover: #f1f3f6;
  --accent: #2f6fed;
  --accent-soft: #e8efff;
  --ok: #1a9a5a;
  --bad: #d23f3f;
  --warn: #c98a00;
  --run: #2f6fed;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --panel: #171a1f;
    --sidebar: #14161a;
    --text: #e6e8ec;
    --muted: #949cab;
    --faint: #6b7280;
    --line: #262a31;
    --hover: #1d2026;
    --accent: #6c9bff;
    --accent-soft: #1d2a45;
    --ok: #3ccf86;
    --bad: #ff6b6b;
    --warn: #f0b429;
    --run: #6c9bff;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", Roboto, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 216px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  background: var(--sidebar); border-right: 1px solid var(--line);
  padding: 18px 12px; display: flex; flex-direction: column; gap: 2px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; padding: 0 10px 18px; }
.brand img { width: 22px; height: 22px; }
.nav-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px; border-radius: 7px; color: var(--text);
}
.nav-item:hover { background: var(--hover); text-decoration: none; }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-item.disabled { color: var(--faint); pointer-events: none; }
.nav-item .tag { font-size: 11px; color: var(--faint); font-weight: 400; }
.nav-item .count { font-size: 12px; background: var(--run); color: #fff; border-radius: 9px; padding: 0 7px; line-height: 18px; }
.nav-sep { height: 1px; background: var(--line); margin: 10px 4px; }
.sidebar .spacer { flex: 1; }

.main { min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 12px 32px; border-bottom: 1px solid var(--line); background: var(--panel);
  position: sticky; top: 0; z-index: 5;
}
.topbar h1 { font-size: 18px; margin: 0; font-weight: 650; display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar h1 .title-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .crumb { color: var(--muted); font-weight: 400; }
.topbar .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.content { padding: 24px 32px 48px; max-width: 1480px; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 10px 0 4px; }
  .nav-sep, .sidebar .spacer { display: none; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
}

/* ---------- building blocks ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 14px; margin: 0; font-weight: 600; }
.panel-body { padding: 14px 16px; }
.panel-empty { padding: 28px 16px; text-align: center; color: var(--muted); }
section + section { margin-top: 24px; }
.section-title { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.section-title h2 { font-size: 15px; margin: 0; font-weight: 600; }
.section-title .grow { flex: 1; }

.cols { display: grid; gap: 16px; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.cols-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cols, .cols-3 { grid-template-columns: 1fr; } }

.tiles { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { padding: 14px 16px; }
.tile .label { color: var(--muted); font-size: 12.5px; }
.tile .value { font-size: 28px; font-weight: 650; line-height: 1.25; margin-top: 2px; }
.tile .sub { color: var(--faint); font-size: 12px; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 550; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.running { color: var(--run); }
.status.running::before { animation: pulse 1.6s infinite; }
.status.finished { color: var(--ok); }
.status.failed, .status.crashed { color: var(--bad); }
@keyframes pulse { 50% { opacity: .25; } }

table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { font-size: 12px; font-weight: 550; color: var(--muted); background: var(--panel); user-select: none; }
table.data th.sortable { cursor: pointer; }
table.data th.sortable:hover { color: var(--text); }
table.data th .arrow { font-size: 10px; margin-left: 3px; }
table.data td.right, table.data th.right { text-align: right; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr.clickable { cursor: pointer; }
table.data tbody tr.clickable:hover td { background: var(--hover); }
table.data td.name { font-weight: 550; max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
table.data td.ellipsis { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
table.data input[type=checkbox] { margin: 0; vertical-align: middle; }
.table-wrap { overflow-x: auto; }

.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .grow { flex: 1; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--panel); }
.seg button { border: 0; border-radius: 0; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
button, select, input[type=text], input[type=password], input[type=search] {
  font: inherit; font-size: 13px; color: var(--text); background: var(--panel);
  border: 1px solid var(--line); border-radius: 7px; padding: 6px 12px;
}
button { cursor: pointer; }
button:hover:not(:disabled) { background: var(--hover); }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover:not(:disabled) { filter: brightness(1.08); background: var(--accent); }
button.danger { color: var(--bad); }
button.small { padding: 2px 8px; font-size: 12px; }
button:disabled { opacity: .45; cursor: default; }
input[type=search] { width: 220px; }

.list-row { display: flex; gap: 12px; align-items: baseline; padding: 9px 16px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .time { color: var(--faint); font-size: 12px; white-space: nowrap; }
.list-row .sub { color: var(--muted); font-size: 12.5px; }
.notice-kind { width: 8px; height: 8px; border-radius: 50%; flex: none; align-self: center; background: var(--faint); }
.notice-kind.run\.finished { background: var(--ok); }
.notice-kind.run\.failed, .notice-kind.run\.crashed { background: var(--bad); }

.desc { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px 24px; }
.desc .k { color: var(--muted); font-size: 12px; }
.desc .v { margin-top: 2px; overflow-wrap: anywhere; }

.charts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
@media (max-width: 600px) { .charts { grid-template-columns: 1fr; } }
.chart-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 10px 4px; min-width: 0; }
.chart-card .chart-head { display: flex; justify-content: space-between; align-items: center; padding: 0 6px 6px; }
.chart-card .chart-head h3 { margin: 0; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-legend { font-size: 12px; }
.uplot { font-family: inherit; }

pre.error { margin: 0; padding: 14px 16px; overflow-x: auto; font-size: 12.5px; max-height: 420px; color: var(--text); background: color-mix(in srgb, var(--bad) 8%, var(--panel)); border-radius: 0 0 10px 10px; }
pre.code { margin: 0; padding: 12px 14px; background: var(--hover); border-radius: 8px; overflow-x: auto; font-size: 12.5px; }
table.kv { width: 100%; border-collapse: collapse; }
table.kv td { padding: 7px 16px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
table.kv tr:last-child td { border-bottom: 0; }
table.kv td:first-child { color: var(--muted); width: 32%; }
table.kv td.diff { background: color-mix(in srgb, var(--warn) 10%, transparent); }

.login-wrap { min-height: 100vh; display: grid; place-items: center; }
.login { width: 340px; padding: 28px; }
.login h1 { margin: 0 0 4px; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.login p { margin: 0 0 18px; color: var(--muted); }
.login input { width: 100%; padding: 10px 12px; font-size: 14px; }
.login button { width: 100%; padding: 10px; margin-top: 12px; font-size: 14px; }
.err { color: var(--bad); font-size: 13px; min-height: 1.4em; margin-top: 8px; }
.ok-msg { color: var(--ok); font-size: 13px; }
.placeholder { color: var(--muted); font-size: 13px; }
.badge { display: inline-block; font-size: 11.5px; padding: 0 7px; border-radius: 9px; background: var(--hover); color: var(--muted); line-height: 19px; font-weight: 500; }
