:root {
  color-scheme: light;
  --ink: #27303b;
  --muted: #606c79;
  --primary: #365d81;
  --line: #dfe4e9;
  --canvas: #f5f6f8;
  --paper: #fff;
  --accent: #dc522f;
  font:
    14px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
a {
  color: var(--primary);
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: white;
  border: 1px solid #cbd1d9;
  color: var(--ink);
  padding: 7px 13px;
  border-radius: 5px;
}
button:hover {
  background: #f3f6f9;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
:focus-visible {
  outline: 3px solid #86a7c5;
  outline-offset: 2px;
}
a:hover {
  text-decoration: underline;
}
i[data-icon] {
  display: inline-flex;
}
i svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#rail {
  width: 208px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fcfcfd;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 69px;
  padding: 0 21px;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand strong {
  font-size: 24px;
  letter-spacing: 0.03em;
}
.brand span {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  align-self: center;
}
.mark {
  position: relative;
  width: 31px;
  height: 33px;
  border-radius: 7px;
  background: var(--accent);
  display: grid;
  place-items: center;
}
.mark b {
  width: 13px;
  height: 20px;
  display: block;
  transform: skew(-16deg);
  border-inline: 2px solid white;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 4px,
    #fff 4px 6px
  );
}
nav {
  padding: 8px 12px;
}
nav p {
  color: var(--muted);
  margin: 20px 12px 7px;
  font-size: 12px;
}
nav a,
.back {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 5px;
  padding: 10px 13px;
  color: #475360;
}
nav a[aria-current="page"] {
  color: #2e5376;
  background: #e4ecf3;
  font-weight: 600;
}
nav a:hover,
.back:hover {
  background: #edf1f5;
  text-decoration: none;
}
.back {
  margin: auto 12px 17px;
  font-size: 13px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding-top: 15px;
}
#workspace {
  margin-left: 208px;
  min-height: 100vh;
}
header {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.crumb,
.online {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.crumb span {
  color: #aab0b7;
}
.crumb b {
  color: var(--ink);
  font-weight: 500;
}
.online i,
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: #8c98a5;
}
.online.ready i {
  background: #39825b;
}
#menu {
  display: none;
}
main {
  max-width: 1560px;
  margin: auto;
  padding: 28px 32px;
}
.heading,
.cardhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.heading {
  margin-bottom: 22px;
}
.heading p,
#access p {
  color: var(--muted);
  margin: 4px 0 0;
}
.heading button {
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 25px;
  line-height: 1.4;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
}
.card,
.metric,
#access {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}
.cardhead {
  min-height: 59px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.cardhead a {
  font-size: 13px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.metric {
  padding: 17px 18px;
}
.metric .label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #52606d;
}
.metric .value {
  font-variant-numeric: tabular-nums;
  display: block;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.45;
  margin: 7px 0 2px;
}
.metric small,
.muted,
small,
footer {
  color: var(--muted);
}
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.distribution {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 22px;
  padding: 20px;
}
.donut {
  border-radius: 50%;
  background: #e2e7ec;
  width: 122px;
  height: 122px;
  display: grid;
  place-items: center;
  flex: none;
}
.donut > div {
  display: grid;
  place-content: center;
  text-align: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: white;
}
.donut strong {
  font-size: 26px;
  line-height: 1.25;
}
.legendRow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 4px 0;
}
.legendRow strong {
  min-width: 25px;
  text-align: right;
  margin-left: 12px;
  font-variant-numeric: tabular-nums;
}
.node {
  padding: 20px;
}
.nodeHead {
  display: flex;
  align-items: center;
  gap: 11px;
}
.nodeHead > i {
  padding: 10px;
  background: #edf2f6;
  color: var(--primary);
  border-radius: 7px;
}
.nodeHead h3 {
  overflow-wrap: anywhere;
}
.bar {
  margin: 7px 0;
  background: #edf0f3;
  height: 6px;
  border-radius: 5px;
  overflow: hidden;
}
.bar i {
  background: #597b9b;
  display: block;
  height: 100%;
}
.usage {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #52606d;
  font-size: 13px;
  margin-top: 17px;
}
.gridwrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-spacing: 0;
  font-size: 13px;
  text-align: left;
}
th {
  background: #f8f9fb;
  color: #596572;
  text-align: left;
  font-weight: 500;
}
td,
th {
  padding: 11px 16px;
  border-bottom: 1px solid #e8ebee;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td {
  overflow-wrap: anywhere;
}
td:first-child {
  font-weight: 550;
}
td button.link {
  padding: 2px 0;
  border: 0;
  color: var(--primary);
  background: none;
  white-space: nowrap;
}
.tag {
  font-size: 12px;
  border-radius: 4px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eef1f4;
  color: #485562;
  white-space: nowrap;
}
.tag.running {
  background: #eaf1fa;
  color: #305f9b;
}
.tag.completed {
  background: #e8f3ed;
  color: #277551;
}
.tag.failed {
  background: #faebed;
  color: #9b3548;
}
.tag.interrupted {
  background: #faf0df;
  color: #825615;
}
.filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
input,
select {
  border: 1px solid #cbd1d9;
  border-radius: 4px;
  background: white;
  padding: 9px 10px;
  max-width: 100%;
  color: var(--ink);
}
input[type="search"] {
  min-width: 200px;
}
.empty {
  text-align: center;
  padding: 32px 18px;
  color: var(--muted);
}
dl {
  display: grid;
  grid-template-columns: minmax(98px, 135px) 1fr;
  gap: 12px 16px;
  margin: 0;
  padding: 20px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
form label {
  display: grid;
  gap: 6px;
  font-weight: 550;
}
form small {
  font-weight: 400;
}
#config,
#login {
  display: grid;
  gap: 20px;
  padding: 20px;
  max-width: 600px;
}
form button {
  justify-self: start;
}
footer {
  margin-top: 16px;
  font-size: 12px;
}
#access {
  max-width: 460px;
  margin: 48px auto;
  padding: 28px;
}
#access form {
  padding: 21px 0;
}
#notice {
  background: #eef3f8;
  color: #314e6a;
  border: 1px solid #bbcddd;
  padding: 10px 14px;
  border-radius: 6px;
  margin: 12px 0;
}
.error,
#notice.error {
  background: #fdf0ef;
  color: #9b303a;
  border-color: #ebc3c7;
}
dialog {
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  position: fixed;
  inset: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  width: min(520px, 100%);
  max-width: 100vw;
  color: var(--ink);
}
dialog::backdrop {
  background: #17243255;
}
dialog .cardhead {
  position: sticky;
  top: 0;
  background: white;
}
#detailBody {
  padding: 20px;
}
#detailBody dl {
  padding: 16px 0;
}
#detailBody pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  background: #f5f7f9;
  border-radius: 5px;
  padding: 10px;
}
.message {
  margin: 12px 0;
}
.message small {
  display: block;
  margin-bottom: 3px;
}
.danger {
  color: #a43743;
  border-color: #dfb6be;
}
.confirm {
  padding: 14px;
  background: #fff3ee;
  margin: 10px 0;
}
.confirm p {
  margin-bottom: 8px;
}
@media (max-width: 1050px) {
  main {
    padding: 23px 18px;
  }
  header {
    padding: 0 18px;
  }
  .distribution {
    gap: 10px;
    padding: 16px 10px;
  }
  .metric {
    padding: 13px;
  }
  .legendRow strong {
    margin-left: 3px;
  }
  .donut {
    width: 96px;
    height: 96px;
  }
  .donut > div {
    width: 74px;
    height: 74px;
  }
}
@media (max-width: 760px) {
  #workspace {
    margin: 0;
  }
  #rail {
    display: none;
    top: 56px;
    box-shadow: 8px 6px 20px #27303b17;
  }
  body.navopen #rail {
    display: flex;
  }
  #menu {
    display: inline-flex;
    min-width: 44px;
  }
  header {
    padding: 0 12px;
  }
  .crumb {
    gap: 7px;
  }
  main {
    padding: 18px 12px;
  }
  .metrics,
  .columns {
    gap: 10px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .heading {
    align-items: flex-start;
  }
  .heading p {
    font-size: 13px;
  }
  button,
  nav a,
  select,
  input {
    min-height: 44px;
  }
  .filters > * {
    flex: 1;
    min-width: 100px;
  }
  input[type="search"] {
    flex-basis: 100%;
    min-width: 0;
  }
  .taskTable thead {
    display: none;
  }
  .taskTable tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }
  .taskTable td {
    display: block;
    border: 0;
    padding: 3px 5px;
  }
  .taskTable td:before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
  }
  .cardhead {
    padding: 12px 15px;
  }
  .distribution {
    justify-content: flex-start;
    gap: 35px;
    padding: 18px 25px;
  }
  .back {
    margin-bottom: 10px;
  }
}
.actions,
.pager,
footer {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pager {
  justify-content: flex-end;
  padding: 12px 17px;
}
.pager:empty {
  display: none;
}
footer {
  justify-content: space-between;
}
footer label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.back {
  justify-content: flex-start;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
}
.tag.queued {
  background: #faf0df;
  color: #825615;
}
.tag.uncertain {
  background: #f9eaeb;
  color: #943a49;
}
.nodeList {
  padding: 4px 18px;
}
.nodeLine {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.nodeLine:last-child {
  border: 0;
}
.nodeLine > i {
  border-radius: 5px;
  padding: 10px;
  background: #edf2f6;
  color: #526e85;
}
.nodeName {
  min-width: 0;
  flex: 1;
}
.nodeName strong,
.nodeName small {
  display: block;
  overflow-wrap: anywhere;
}
.tag.onlineTag {
  background: #e8f3ed;
  color: #277551;
}
#create {
  inset: 0;
  margin: auto;
  width: min(480px, 96vw);
  height: fit-content;
  max-height: 94dvh;
  border-radius: 8px;
}
#createForm,
#enroll {
  padding: 20px;
  display: grid;
  gap: 15px;
}
textarea {
  resize: vertical;
  width: 100%;
  border: 1px solid #cbd1d9;
  border-radius: 4px;
  padding: 10px;
  font: inherit;
}
#enroll p {
  color: var(--muted);
}
#enroll button {
  justify-self: start;
}
#command {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f3f5f8;
  padding: 10px;
  margin-top: 8px;
}
#formMsg:empty {
  display: none;
}
.id {
  font:
    12px ui-monospace,
    monospace;
  color: var(--muted);
  display: block;
}
.siteDot {
  background: #598267;
}
.cellTitle {
  font-weight: 600;
}
.detailReply {
  max-height: 45vh;
  overflow: auto;
}
.miniCode {
  font:
    12px ui-monospace,
    monospace;
}
.subtle {
  margin: 10px 0;
  color: var(--muted);
}
#notice {
  position: sticky;
  bottom: 10px;
  z-index: 2;
}
.filters select {
  max-width: 240px;
}
body.locked #rail nav,
body.locked #menu {
  visibility: hidden;
}
body.locked #access {
  border-top: 3px solid var(--accent);
}
.actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
#detailBody .subtle {
  overflow-wrap: anywhere;
}
