:root {
  --ink: #1b2c28;
  --muted: #5b6c65;
  --line: #dce4dd;
  --paper: #f5f7f2;
  --green: #216747;
  --dark: #112e29;
  --mint: #b7efb5;
  --amber: #86571e;
  --red: #a43b37;
  color-scheme: light;
  font:
    14px/1.5 Inter,
    "DM Sans",
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #3c8a65;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
a {
  color: inherit;
}
[hidden] {
  display: none !important;
}
button {
  border: 0;
}
.primary,
.secondary,
.danger,
.sm {
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.primary {
  padding: 10px 16px;
  background: var(--green);
  color: #fff;
}
.primary:hover {
  background: #185038;
}
.secondary,
.sm {
  background: white;
  border: 1px solid var(--line);
  padding: 9px 13px;
}
.secondary:hover,
.sm:hover {
  border-color: #8aa493;
  background: #f4f8f3;
}
.sm {
  font-size: 12px;
  padding: 5px 10px;
}
.danger {
  padding: 9px 13px;
  color: var(--red);
  background: #fbefed;
}
.wide {
  width: 100%;
  justify-content: space-between;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font:
    650 33px/1 Inter,
    "DM Sans",
    system-ui,
    sans-serif;
  letter-spacing: -1.8px;
  color: #f4f8ed;
}
.wordmark img {
  width: 38px;
  height: 38px;
}
.wordmark span {
  font-size: 12px;
  letter-spacing: 1px;
  color: #b7c9bf;
  font-weight: 500;
  border-left: 1px solid #557769;
  padding-left: 15px;
  margin-left: 4px;
}
#signin {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: 100svh;
}
.intro {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: white;
  padding: 50px 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.intro-copy {
  position: relative;
  z-index: 1;
  margin: 270px 0 40px;
}
.intro-copy h1 {
  font-size: clamp(36px, 4.1vw, 67px);
  letter-spacing: -2px;
  line-height: 1.16;
  margin: 0;
  color: #f1f6e8;
}
.intro-copy p {
  color: #b4ccc2;
  font-size: 14px;
  margin-top: 22px;
}
.network {
  position: absolute;
  inset: 17% -7% 21% 20%;
  background-image: radial-gradient(#587b66 1px, transparent 1px);
  background-size: 21px 21px;
  mask-image: linear-gradient(transparent, #000 12%, #000 85%, transparent);
}
.network i {
  position: absolute;
  border: 1px solid #4a7560;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  left: 17%;
  top: 13%;
}
.network i:nth-child(2) {
  width: 42%;
  left: 30%;
  top: 23%;
}
.network i:nth-child(3) {
  width: 92%;
  left: 4%;
  top: 3%;
}
.network b {
  position: absolute;
  background: #b7efb5;
  box-shadow: 0 0 0 6px #254939;
  border-radius: 50%;
  width: 9px;
  height: 9px;
  top: 27%;
  left: 31%;
}
.network b:nth-last-child(2) {
  left: 77%;
  top: 62%;
}
.network b:last-child {
  left: 20%;
  top: 48%;
  width: 6px;
  height: 6px;
}
.signin-side {
  display: grid;
  place-items: center;
  padding: 42px;
}
.loginbox {
  width: min(100%, 370px);
}
.loginbox h2 {
  font-size: 31px;
  letter-spacing: -1.3px;
  margin: 18px 0 4px;
}
.loginbox p {
  color: var(--muted);
  margin: 0 0 32px;
}
.tiny-mark {
  height: 4px;
  width: 34px;
  background: #76aa74;
  border-radius: 8px;
}
.passbox {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #cbd7ce;
  border-radius: 8px;
  margin-top: 8px;
}
.passbox input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px;
}
.passbox button {
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 10px;
}
.errline {
  min-height: 25px;
  color: var(--red);
  font-size: 12px;
}
.loginbox .primary {
  height: 44px;
}
#shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
}
#sidebar {
  background: var(--dark);
  color: #c3d1c7;
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100svh;
}
#sidebar .wordmark {
  margin: 0 10px;
}
.navlabel {
  font-size: 11px;
  color: #9eb2a6;
  letter-spacing: 1px;
  margin: 50px 15px 12px;
}
nav {
  display: grid;
  gap: 6px;
}
nav a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
}
nav a:hover {
  background: #1a3b33;
}
nav a.active {
  background: #2a4c3d;
  color: #d1f6be;
  font-weight: 650;
}
.navicon {
  display: inline-block;
  width: 16px;
  height: 16px;
  position: relative;
  color: currentColor;
}
.grid-icon {
  background:
    linear-gradient(currentColor 0 0) left top/6px 6px,
    linear-gradient(currentColor 0 0) right top/6px 6px,
    linear-gradient(currentColor 0 0) left bottom/6px 6px,
    linear-gradient(currentColor 0 0) right bottom/6px 6px;
  background-repeat: no-repeat;
}
.nodes-icon {
  border: 1.5px solid currentColor;
  border-radius: 3px;
  height: 6px;
  margin-bottom: 7px;
}
.nodes-icon:after {
  content: "";
  position: absolute;
  left: -1.5px;
  top: 6px;
  width: 14px;
  height: 4px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}
.logs-icon {
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.logs-icon:after {
  content: "";
  position: absolute;
  top: 4px;
  left: 3px;
  width: 8px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 4px currentColor;
}
.sidebottom {
  margin-top: auto;
  border-top: 1px solid #345247;
  padding-top: 16px;
}
.sidebtn {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  padding: 10px 13px;
  color: #bbcec2;
  font-size: 13px;
}
.sidebtn:hover {
  color: #fff;
}
main {
  min-width: 0;
}
.top {
  min-height: 65px;
  padding: 0 clamp(20px, 4vw, 60px);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.top b {
  font-weight: 550;
  color: var(--ink);
}
.crumb {
  margin: 0 8px;
  color: #8e9e91;
}
.connection {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.connection i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5f9363;
}
.iconbtn,
.mobilemenu {
  background: transparent;
  color: var(--muted);
  padding: 5px 9px;
  border-radius: 5px;
}
.iconbtn {
  font-size: 19px;
}
.mobilemenu {
  display: none;
}
#view {
  max-width: 1510px;
  margin: 0 auto;
  padding: 32px clamp(20px, 4vw, 60px) 48px;
}
.pagehead,
.panelhead,
.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pagehead {
  margin: 0 0 23px;
}
.pagehead h1 {
  font-size: 30px;
  letter-spacing: -1.3px;
  margin: 0;
}
.pagehead p,
.panelhead p,
.muted,
.sub {
  color: var(--muted);
}
.pagehead p {
  margin: 3px 0 0;
  font-size: 12px;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.hero {
  background: #193d31;
  border-radius: 14px;
  padding: 23px 27px;
  color: #d8ebd7;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
}
.hero .label {
  font-size: 13px;
  color: #c3d8c6;
}
.hero .big {
  font-size: clamp(37px, 4vw, 60px);
  line-height: 1.15;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
  color: #eef8e7;
  font-weight: 600;
}
.hero .unit {
  color: #bad2ba;
  margin-left: 8px;
  font-size: 13px;
}
.hero .barinfo {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #d0e4ce;
  gap: 10px;
}
.hero progress {
  width: 100%;
  margin: 9px 0;
}
.hero .reset {
  font-size: 12px;
  color: #acc5af;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 14px 0 23px;
}
.metric,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.metric {
  padding: 15px 19px;
}
.metric .label {
  font-size: 12px;
  color: var(--muted);
}
.metric .num {
  font-size: 29px;
  line-height: 1.25;
  font-weight: 620;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.metric small {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 450;
  color: var(--muted);
}
.panel {
  margin: 0;
  min-width: 0;
  overflow: hidden;
}
.panelhead {
  padding: 17px 20px;
}
.panelhead h2 {
  font-size: 16px;
  letter-spacing: -0.3px;
  margin: 0;
}
.panelhead p,
.sub {
  font-size: 12px;
  margin: 2px 0 0;
}
.overviewgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.85fr);
  gap: 14px;
  margin-bottom: 16px;
}
.panelbody {
  padding: 0 20px 17px;
}
.groupbar {
  padding: 10px 0;
  border-top: 1px solid #edf0eb;
}
.groupbar .flex {
  font-size: 13px;
}
.groupbar progress {
  display: block;
  width: 100%;
  margin: 8px 0 3px;
}
progress {
  appearance: none;
  height: 6px;
  border: 0;
  border-radius: 9px;
  background: #e4eae2;
  overflow: hidden;
  accent-color: #7fac7b;
}
progress::-webkit-progress-bar {
  background: #e4eae2;
  border-radius: 9px;
}
progress::-webkit-progress-value {
  background: #78a577;
  border-radius: 9px;
}
progress::-moz-progress-bar {
  background: #78a577;
  border-radius: 9px;
}
.hero progress::-webkit-progress-bar {
  background: #345645;
}
.hero progress::-webkit-progress-value {
  background: #b8e4a8;
}
.chart {
  width: 100%;
  height: 130px;
  display: block;
}
.badge {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.4;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 580;
  background: #edf1ec;
  color: #52635a;
}
.badge:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.ok {
  color: #316842;
  background: #e8f4e6;
}
.badge.warn {
  color: #865617;
  background: #fbf0d9;
}
.badge.bad {
  color: #a13e38;
  background: #fbece9;
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
th {
  font-size: 11px;
  font-weight: 570;
  color: var(--muted);
  background: #f8faf6;
  white-space: nowrap;
}
td,
th {
  padding: 11px 17px;
  border-top: 1px solid #e9eee8;
  vertical-align: middle;
}
.host {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.sub {
  line-height: 1.5;
}
.empty {
  padding: 28px 20px 32px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.empty strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 5px;
}
.spacer {
  margin-top: 18px;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 20px 14px;
}
.filters input {
  max-width: 340px;
}
.filters select {
  max-width: 210px;
}
.input,
input[type="search"],
select,
textarea,
input[type="text"],
input[type="number"],
input[type="url"] {
  width: 100%;
  border: 1px solid #cbd7ce;
  border-radius: 7px;
  padding: 8px 10px;
  background: #fff;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 570;
}
.field {
  margin: 15px 0;
}
.field label {
  margin: 0 0 5px;
}
textarea {
  resize: vertical;
  min-height: 105px;
}
.hint {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin: 5px 0 0;
}
.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 450;
}
.check input {
  accent-color: var(--green);
  margin-top: 4px;
}
.paging {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0;
  width: min(520px, calc(100vw - 28px));
  max-height: 85svh;
  color: var(--ink);
  box-shadow: 0 22px 80px #0b241d38;
}
dialog::backdrop {
  background: #0a20194f;
}
#modal-body {
  padding: 23px;
}
.modalhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}
.modalhead h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.7px;
}
.modalfoot {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin: 20px 0 0;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.detail {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 9px;
  font-size: 13px;
}
.detail dt {
  color: var(--muted);
}
.detail dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.models {
  max-height: 210px;
  overflow: auto;
  margin: 11px 0;
}
.models div {
  border-top: 1px solid var(--line);
  padding: 5px 0;
}
.errorbox {
  color: var(--red);
  font-size: 13px;
  white-space: pre-wrap;
  margin: 8px 0;
}
.note {
  background: #f1f5ee;
  padding: 11px 13px;
  border-radius: 7px;
  color: #526659;
  font-size: 12px;
}
.toast {
  position: fixed;
  z-index: 8;
  bottom: 23px;
  right: 23px;
  background: #203e30;
  color: white;
  border-radius: 8px;
  box-shadow: 0 6px 22px #16261d20;
  padding: 11px 17px;
  max-width: min(410px, 90vw);
}
.toast.error {
  background: #883d37;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.tabs button {
  padding: 8px 14px;
  background: transparent;
  color: var(--muted);
  border-radius: 7px;
}
.tabs button.active {
  background: #e0ebdd;
  color: #234e32;
  font-weight: 620;
}
@media (max-width: 940px) {
  #shell {
    grid-template-columns: 165px minmax(0, 1fr);
  }
  #sidebar {
    padding: 25px 10px;
  }
  .top {
    padding: 0 21px;
  }
  #view {
    padding: 22px 19px 36px;
  }
  .overviewgrid {
    grid-template-columns: 1fr 0.8fr;
  }
  .hero {
    gap: 20px;
    padding: 21px;
  }
  .metric {
    padding: 13px;
  }
  .panelhead {
    padding: 14px;
  }
  .panelbody {
    padding: 0 14px 14px;
  }
  td,
  th {
    padding: 9px 12px;
  }
}
@media (max-width: 740px) {
  #signin {
    grid-template-columns: 1fr;
  }
  .intro {
    padding: 25px 28px 19px;
    min-height: 172px;
  }
  .intro-copy {
    margin: 24px 0 0;
  }
  .intro-copy h1 {
    font-size: 26px;
    line-height: 1.3;
    letter-spacing: -0.7px;
  }
  .intro-copy br {
    display: none;
  }
  .intro-copy p {
    margin: 5px 0;
    font-size: 12px;
  }
  .network {
    inset: 0 0 0 44%;
  }
  .signin-side {
    align-self: start;
    padding: 30px 25px;
  }
  #shell {
    display: block;
  }
  #sidebar {
    position: fixed;
    left: -230px;
    width: 200px;
    z-index: 6;
    transition: left 0.15s;
  }
  #sidebar.open {
    left: 0;
    box-shadow: 10px 0 100vw #0c271d66;
  }
  .mobilemenu {
    display: block;
    font-size: 18px;
  }
  .top {
    min-height: 54px;
    padding: 0 13px;
  }
  .hero,
  .overviewgrid {
    grid-template-columns: 1fr;
  }
  .hero {
    gap: 14px;
  }
  .metrics {
    gap: 7px;
  }
  .metric {
    padding: 11px 9px;
  }
  .metric .num {
    font-size: 22px;
  }
  .metric small {
    font-size: 10px;
  }
  .pagehead h1 {
    font-size: 25px;
  }
  .pagehead {
    align-items: flex-start;
  }
  .pagehead .actions {
    justify-content: flex-end;
  }
  .pagehead .primary,
  .pagehead .secondary {
    padding: 8px 10px;
  }
  .tablewrap {
    scrollbar-width: thin;
  }
  .overviewgrid {
    gap: 12px;
  }
  .chart {
    height: 110px;
  }
  .connection {
    font-size: 11px;
  }
  .filters {
    padding: 0 12px 12px;
    flex-wrap: nowrap;
  }
  .filters select {
    width: 39%;
  }
  #view {
    padding: 19px 13px;
  }
  .sub {
    font-size: 11px;
  }
  .pair {
    gap: 8px;
  }
  .panelhead h2 {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
