:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #203243;
  background: #f3f6f8;
  font-synthesis: none;
  --blue: #176b7e;
  --line: #dce4e9;
  --muted: #667987;
  --green: #237b58;
  --red: #b53e43;
  --amber: #976218;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select {
  font: inherit;
}
button {
  border: 1px solid #cbd8df;
  background: white;
  color: #294756;
  border-radius: 6px;
  padding: 8px 15px;
  cursor: pointer;
  white-space: nowrap;
}
button:hover {
  background: #edf4f5;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.primary:hover {
  background: #125b6c;
}
input,
select {
  border: 1px solid #bdcbd4;
  border-radius: 6px;
  padding: 9px 11px;
  background: white;
  max-width: 100%;
  color: #203243;
}
input:focus,
select:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #75b5d5;
  outline-offset: 3px;
}
input[type="checkbox"] {
  accent-color: var(--blue);
}
[hidden] {
  display: none !important;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 222px;
  background: #132d3c;
  color: #c3d3dc;
  padding: 31px 19px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: white;
  font-size: 24px;
  font-weight: 650;
}
.brand b {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #416674;
  border-radius: 10px;
  font-size: 22px;
  background: #204553;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.7px;
  color: #adcad7;
}
.nav-caption {
  font-size: 11px;
  color: #85a4b5;
  margin: 43px 12px 12px;
  letter-spacing: 2px;
}
nav {
  display: grid;
  gap: 8px;
}
nav a {
  color: #bcd0da;
  padding: 11px 14px;
  border-radius: 6px;
  display: flex;
  gap: 14px;
}
nav a.active {
  background: #254957;
  color: white;
  border-left: 3px solid #59b5b8;
  padding-left: 11px;
}
nav a:hover {
  background: #254957;
  text-decoration: none;
}
.sidebar-foot {
  margin-top: auto;
  font-size: 11px;
  color: #93acbb;
}
.sidebar-foot small {
  display: block;
  margin: 8px 0 0 15px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5bad95;
  margin-right: 7px;
}
.shell {
  margin-left: 222px;
}
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  height: 72px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
}
.mode {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.environment {
  font-size: 10px;
  letter-spacing: 0.8px;
  background: #edf3f6;
  padding: 4px 8px;
  border-radius: 4px;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 30px 34px 50px;
  min-height: calc(100vh - 118px);
}
h1 {
  font-size: 27px;
  letter-spacing: -0.5px;
  line-height: 1.4;
  margin: 0 0 7px;
}
h2 {
  font-size: 17px;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0 0 12px;
}
p {
  margin: 8px 0 14px;
}
.muted,
small {
  color: var(--muted);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: var(--blue);
  margin: 0 0 9px;
  font-weight: 650;
}
.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 25px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 17px 18px;
  min-height: 120px;
}
.stat strong {
  display: block;
  font-size: 31px;
  font-weight: 600;
  line-height: 1.7;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.stat small {
  font-size: 10px;
}
.stat.alert strong {
  color: var(--amber);
}
.stat.danger strong {
  color: var(--red);
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 22px;
  overflow: hidden;
}
.panel-heading {
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel-heading p {
  font-size: 12px;
  margin: 4px 0 0;
  color: var(--muted);
}
.panel-body {
  padding: 22px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.grid .panel {
  margin-bottom: 0;
}
.overview-grid {
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 1.25fr);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  line-height: 1.5;
  border-radius: 4px;
  background: #edf1f4;
  color: #596b78;
  padding: 4px 7px;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: currentColor;
}
.badge.good {
  color: var(--green);
  background: #edf7f1;
}
.badge.bad {
  color: var(--red);
  background: #fff0f0;
}
.badge.warn {
  color: var(--amber);
  background: #fff6e5;
}
.badge.info {
  color: #256989;
  background: #edf5fc;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-weight: 500;
  color: var(--muted);
  background: #f8fafb;
  white-space: nowrap;
}
td,
th {
  padding: 15px 18px;
  border-bottom: 1px solid #e9eef1;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
}
td a {
  font-weight: 600;
}
td .badge {
  margin: 2px 0;
}
.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}
.filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.filters input[type="search"] {
  min-width: 250px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 26px;
  margin: 0;
}
.facts div {
  min-width: 0;
}
.facts dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.facts.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tabs {
  display: flex;
  gap: 5px;
  margin: 25px 0 20px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.tabs a {
  padding: 10px 17px;
  white-space: nowrap;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tabs a.active {
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 600;
}
.notice {
  padding: 13px 17px;
  background: #edf5f8;
  border: 1px solid #d4e5ed;
  border-radius: 6px;
  color: #365f71;
  margin: 0 0 20px;
  font-size: 13px;
}
.notice.warning {
  background: #fff8e9;
  border-color: #ecdab4;
  color: #805d23;
}
.notice.error {
  background: #fff1f0;
  border-color: #edcdcb;
  color: #a5393c;
}
#notice {
  padding: 13px 17px;
  border: 1px solid #d3e1e6;
  background: #edf5f8;
  border-radius: 6px;
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  position: relative;
  padding: 15px 20px 15px 36px;
  border-bottom: 1px solid #edf1f4;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 24px;
  width: 6px;
  height: 6px;
  background: #91a8b4;
  border-radius: 50%;
}
.timeline li:last-child {
  border: 0;
}
.timeline-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.timeline time {
  font-size: 11px;
  color: var(--muted);
}
.timeline p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0;
}
.timeline details {
  font-size: 12px;
}
.node-row {
  padding: 18px 22px;
  border-bottom: 1px solid #edf1f4;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.node-row:last-child {
  border: 0;
}
.node-row small {
  display: block;
  font-size: 10px;
}
.node-protocols {
  display: flex;
  gap: 12px;
}
.node-protocols span {
  font-size: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.help {
  font-size: 12px;
  color: var(--muted);
}
details {
  margin-top: 10px;
}
summary {
  cursor: pointer;
  color: var(--blue);
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  background: #f4f7f9;
  padding: 15px;
  border-radius: 5px;
  max-height: 480px;
  overflow: auto;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 25px;
  width: min(570px, calc(100% - 28px));
  box-shadow: 0 20px 70px #142d3c40;
  color: #203243;
}
dialog::backdrop {
  background: #11263770;
}
dialog h2 {
  margin-bottom: 20px;
}
dialog .actions {
  justify-content: flex-end;
}
dialog dl {
  margin: 20px 0;
}
.login {
  max-width: 450px;
  margin: 7vh auto;
}
.login form {
  display: grid;
  gap: 13px;
}
.login input {
  width: 100%;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 13px 34px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #82939f;
}
.skip {
  position: fixed;
  top: -100px;
  left: 15px;
  background: white;
  padding: 10px;
  z-index: 20;
}
.skip:focus {
  top: 10px;
}
.transport-name {
  font-size: 11px;
  color: var(--muted);
  margin-right: 5px;
}
.operation {
  border-left: 3px solid var(--blue);
  padding: 13px 17px;
  background: #f1f7fa;
  margin-bottom: 18px;
}
.operation small {
  display: block;
}
.inline-code {
  font-family: monospace;
  font-size: 11px;
}
.count-note {
  font-size: 11px;
  color: var(--muted);
  margin: 15px 0;
}
.error-detail {
  margin-top: 10px;
}
.technical {
  overflow-wrap: anywhere;
}
@media (min-width: 1600px) {
  main {
    padding-top: 40px;
  }
  .stats {
    gap: 20px;
  }
  .stat {
    padding: 22px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 185px;
    padding: 25px 13px;
  }
  .shell {
    margin-left: 185px;
  }
  main {
    padding: 25px 22px;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    gap: 10px;
  }
  .node-protocols {
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 15px;
  }
  .brand {
    font-size: 20px;
  }
  .brand b {
    height: 36px;
    width: 36px;
  }
  .nav-caption,
  .sidebar-foot {
    display: none;
  }
  nav {
    display: flex;
    gap: 4px;
    overflow: auto;
    margin-top: 16px;
  }
  nav a {
    padding: 8px 10px;
    white-space: nowrap;
    font-size: 12px;
  }
  nav a.active {
    padding-left: 10px;
    border-left: 0;
    border-bottom: 2px solid #59b5b8;
  }
  nav a span:first-child {
    display: none;
  }
  .shell {
    margin-left: 0;
  }
  header {
    height: auto;
    min-height: 61px;
    padding: 12px 16px;
    flex-wrap: wrap;
  }
  main {
    padding: 23px 15px 35px;
  }
  h1 {
    font-size: 23px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat {
    padding: 13px;
    min-height: 106px;
  }
  .stat strong {
    font-size: 28px;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .panel-body,
  .panel-heading {
    padding: 17px;
  }
  .panel-heading {
    flex-wrap: wrap;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .tabs a {
    padding: 10px 12px;
  }
  .node-row {
    padding: 15px;
    align-items: flex-start;
    flex-direction: column;
  }
  .toolbar {
    gap: 10px;
  }
  footer {
    padding: 13px 15px;
  }
  .timeline-top {
    align-items: flex-start;
  }
  .page-heading {
    gap: 10px;
  }
  .filters input[type="search"] {
    min-width: 0;
    width: 100%;
  }
  .filters {
    width: 100%;
  }
  .environment {
    font-size: 9px;
  }
}
/* Detail tabs do not inherit the dark primary navigation treatment. */
.tabs a.active {
  background: transparent;
  border-left: 0;
  border-bottom: 2px solid var(--blue);
  color: var(--blue);
}
.tabs a:hover {
  background: #e8f0f3;
  text-decoration: none;
}
