:root {
  color-scheme: light;
  font: 15px/1.5 Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #182d27;
  background: #f3f4ef;
  --panel: #fff;
  --line: #e1e6dd;
  --muted: #59685f;
  --green: #216149;
  --nav: #172f29;
  --accent: #c5e29a;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
button, input, select {
  min-height: 42px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--panel); color: inherit; padding: 8px 12px;
}
button:hover:not(:disabled) { border-color: #9cafa1; background: #f5f8f3; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid #42854b; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(27px, 3.3vw, 43px); line-height: 1.18; letter-spacing: -.045em; }
h2 { font-size: 23px; font-weight: 720; letter-spacing: -.035em; }
h3 { font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
label { display: block; font-size: 13px; font-weight: 620; margin-bottom: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.primary { background: #245a44; color: #fff; border-color: #245a44; font-weight: 650; }
.primary:hover:not(:disabled) { background: #173d2d; color: #fff; border-color: #173d2d; }
.overline { font-size: 12px; font-weight: 650; letter-spacing: .09em; color: var(--green); margin-bottom: 7px; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.sidebar {
  align-self: start; position: sticky; top: 0; display: flex; flex-direction: column;
  height: 100vh; padding: 30px 17px 18px; background: var(--nav); color: #f1f7ee;
}
.brand { display: flex; align-items: center; gap: 12px; margin: 0 9px 49px; text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 19px; line-height: 1.15; letter-spacing: -.04em; }
.brand small { color: #b9cabb; font-size: 12px; margin-top: 3px; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 9px; background: var(--accent); color: #193629; font-weight: 780; flex: none; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 10px 13px; border-radius: 7px; text-decoration: none; color: #e1ece0; }
.sidebar nav a:hover { background: #26463c; }
.sidebar nav a span { color: #b4d990; font-size: 18px; line-height: 1; }
.sidebar-foot { color: #c0cfbf; display: flex; justify-content: space-between; align-items: center; gap: 4px; margin-top: auto; font-size: 12px; padding-left: 10px; border-top: 1px solid #375349; padding-top: 10px; }
.quiet { border: 0; background: transparent; color: inherit; }
.quiet:hover:not(:disabled) { background: #26463c; }
.workspace { width: 100%; max-width: 1540px; margin: 0 auto; padding: 40px clamp(24px, 3.4vw, 59px) 50px; }
.page-head, .section-head, .head-actions, .filters { display: flex; align-items: center; gap: 12px; }
.page-head, .section-head { justify-content: space-between; }
.page-head { margin-bottom: 25px; }
.updated { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 29px; }
.metric { text-align: left; background: #eaf0e5; border: 1px solid #dce6d7; min-height: 94px; padding: 13px 16px; }
.metric small { display: block; color: #486153; font-size: 13px; }
.metric strong { display: block; font-size: 30px; font-weight: 660; line-height: 1.28; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.metric[aria-pressed="true"] { border-color: #77a080; background: #dcebd4; }
section + section { margin-top: 29px; }
section { scroll-margin-top: 17px; }
.section-head { margin-bottom: 12px; }
.section-head p { margin-top: 2px; color: var(--muted); font-size: 13px; }
.nodes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.node { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 15px; min-width: 0; }
.node-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 7px; min-height: 48px; }
.node-title p { color: var(--muted); margin-top: 2px; font-size: 12px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; color: #526157; background: #ebeeea; border-radius: 5px; white-space: nowrap; align-self: start; font-size: 12px; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.ready, .chip.standby, .chip.succeeded { background: #e3f1e3; color: #23593e; }
.chip.working, .chip.running { background: #e1ecfa; color: #245780; }
.chip.unavailable, .chip.queued { background: #fbefd4; color: #704910; }
.chip.failed { background: #f8e5e2; color: #8a352c; }
.gauge { margin-top: 10px; }
.gauge span { display: flex; justify-content: space-between; gap: 4px; align-items: baseline; font-size: 12px; color: var(--muted); }
.gauge b { font-variant-numeric: tabular-nums; color: #253931; font-weight: 640; }
progress { display: block; width: 100%; height: 5px; margin: 5px 0 0; border: 0; appearance: none; background: #e5ebe4; border-radius: 4px; }
progress::-webkit-progress-bar { background: #e5ebe4; border-radius: 4px; }
progress::-webkit-progress-value { background: #59966b; border-radius: 4px; }
progress::-moz-progress-bar { background: #59966b; border-radius: 4px; }
.node-foot { display: flex; justify-content: space-between; align-items: center; gap: 5px; padding-top: 11px; margin-top: 12px; border-top: 1px solid #ebeee8; color: var(--muted); font-size: 12px; }
.node-foot button { min-height: 34px; padding: 5px 8px; white-space: nowrap; }
.filters input { width: min(240px, 28vw); }
.task-list { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.task-labels, .task-row {
  display: grid; grid-template-columns: minmax(175px, 2fr) minmax(70px,.7fr) minmax(100px,.9fr) minmax(112px,1fr) 16px;
  gap: 11px; align-items: center; padding: 10px 15px;
}
.task-labels { background: #eaf0e7; color: #526358; font-size: 12px; }
.task-row { border: 0; width: 100%; min-height: 63px; border-radius: 0; border-bottom: 1px solid #e9eee6; text-align: left; font-size: 13px; }
.task-row:focus-visible { outline-offset: -3px; }
.task-row:last-child { border-bottom: 0; }
.task-row small { display: block; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.task-row .chip { justify-self: start; align-self: center; }
.task-name, .task-node { overflow-wrap: anywhere; }
.task-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.arrow { font-size: 18px; color: #436551; }
.pagination { display: flex; justify-content: end; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 8px 14px; color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); text-align: center; padding: 26px 10px; }
.banner, .error { padding: 7px 10px; border-radius: 6px; background: #fcf0da; color: #63430e; }
.banner { margin-bottom: 12px; }
.error { margin-top: 12px; background: #f8e5e2; color: #8a352c; }
.login-page { min-height: 100dvh; display: grid; place-items: center; padding: 21px; background: #172f29; }
.login-card { width: min(100%, 380px); background: #fff; border-radius: 14px; padding: 28px; }
.login-card .brand-mark { margin-bottom: 16px; }
.login-card h1 { margin-bottom: 22px; font-size: 30px; }
.login-card input, .login-card button { width: 100%; }
.login-card button { margin-top: 14px; }
.dialog { border: 1px solid var(--line); border-radius: 12px; color: inherit; padding: 20px; width: min(calc(100% - 26px), 465px); max-height: 90dvh; box-shadow: 0 15px 65px #12291f30; }
.dialog.wide { width: min(calc(100% - 26px), 640px); }
.dialog::backdrop { background: #132a2380; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.dialog-head .close { font-size: 22px; padding: 0; width: 42px; }
.dialog form input, .dialog form select { width: 100%; margin-bottom: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dialog-actions { display: flex; gap: 9px; justify-content: end; margin-top: 10px; }
.details { display: grid; grid-template-columns: minmax(90px, 128px) minmax(0, 1fr); row-gap: 8px; }
.details dt { color: var(--muted); } .details dd { margin: 0; overflow-wrap: anywhere; }
.attempts { margin: 4px 0 0; padding-left: 22px; color: var(--muted); }
.attempts li + li { margin-top: 6px; }
.result-box { border: 1px solid var(--line); padding: 11px; border-radius: 7px; overflow-wrap: anywhere; }
.result-box code { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
#task-detail h3 { margin: 16px 0 7px; }
@media (max-width: 1070px) {
  .shell { grid-template-columns: 166px minmax(0,1fr); }
  .sidebar { padding-inline: 10px; }
  .nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
@media (max-width: 890px) {
  .shell { display: block; }
  .sidebar { position: static; flex-direction: row; align-items: center; height: auto; padding: 10px 16px; gap: 11px; }
  .brand { margin: 0; }
  .sidebar nav { display: flex; gap: 1px; margin-left: auto; }
  .sidebar nav a { padding: 9px 7px; gap: 4px; }
  .sidebar-foot { border: 0; margin: 0; padding: 0; }
  .sidebar-foot span { display: none; }
  .workspace { padding: 23px 16px 34px; }
}
@media (max-width: 620px) {
  .sidebar nav a span, .brand small { display: none; }
  .sidebar { gap: 6px; }
  .sidebar nav a, .quiet { font-size: 13px; }
  .sidebar .brand-mark { width: 30px; height: 30px; }
  .page-head { flex-wrap: wrap; margin-bottom: 14px; }
  .head-actions { width: 100%; justify-content: space-between; }
  .metrics { gap: 7px; margin-bottom: 21px; }
  .metric { min-height: 67px; padding: 7px 8px; }
  .metric small { font-size: 11px; }
  .metric strong { font-size: 23px; }
  .nodes { grid-template-columns: 1fr; }
  .node-title { min-height: 0; }
  .task-head { flex-wrap: wrap; gap: 7px; }
  .filters { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; }
  .filters input { width: 100%; min-width: 0; }
  .task-labels { display: none; }
  .task-row { grid-template-columns: minmax(0,1fr) auto 10px; padding: 10px 11px; gap: 5px 8px; }
  .task-name { grid-column: 1; }
  .task-row .chip { grid-column: 2; }
  .task-node { grid-row: 2; grid-column: 1; color: var(--muted); font-size: 12px; }
  .task-time { grid-row: 2; grid-column: 2; font-size: 12px; }
  .arrow { grid-column: 3; grid-row: 1/3; }
}
