:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #243447;
  background: #f5f7fa;
  font-size: 14px;
  font-synthesis: none;
  --accent: #168773;
  --border: #e5eaf0;
  --muted: #7a8797;
  --red: #d24d52;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--accent);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #74b9ac;
  outline-offset: 3px;
}
button svg {
  width: 18px;
  height: 18px;
}
svg {
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.3px;
  color: #7d91a9;
  font-weight: 700;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.8px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #1ba88d;
  border-radius: 11px;
  color: white;
}
.brand-mark svg {
  width: 24px;
  height: 24px;
}
.sidebar {
  width: 222px;
  background: #101c2e;
  color: #d1dbe8;
  padding: 32px 20px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.sidebar .brand {
  padding: 0 8px;
  color: #fff;
}
.nav-section {
  font-size: 10px;
  letter-spacing: 2px;
  color: #687d96;
  margin: 40px 15px 12px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav button {
  border: 0;
  background: none;
  color: #9aacc1;
  text-align: left;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 550;
}
.nav button svg {
  width: 18px;
  height: 18px;
}
.nav button.active {
  background: #1e3447;
  color: #62d5ba;
}
.nav button:hover {
  background: #1a2b40;
  color: #fff;
}
.nav-count {
  margin-left: auto;
  font-size: 11px;
  background: #23354a;
  padding: 2px 7px;
  border-radius: 5px;
}
.sidebar-footer {
  margin-top: auto;
  padding: 20px 10px 0;
  border-top: 1px solid #263346;
  font-size: 11px;
  color: #7f94ac;
  line-height: 1.9;
}
.online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39bba2;
  margin-right: 6px;
}
.logout {
  border: 0;
  background: none;
  color: #9aacc1;
  padding: 8px 0;
  text-align: left;
}
.main {
  margin-left: 222px;
  padding: 32px 42px 50px;
  max-width: 1700px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  color: #8a96a5;
  font-size: 12px;
}
.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: #e3e9f1;
  border-radius: 50%;
  color: #52657d;
  font-size: 11px;
  font-weight: 700;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 27px;
}
.page-header p {
  margin-top: 9px;
  color: #7a8797;
  line-height: 1.6;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.btn {
  border: 1px solid #dce3eb;
  background: white;
  color: #415168;
  padding: 10px 15px;
  border-radius: 7px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-weight: 550;
  white-space: nowrap;
}
.btn:hover {
  background: #f0f4f7;
}
.btn.primary {
  background: #168773;
  color: white;
  border-color: #168773;
  box-shadow: 0 3px 8px #16877318;
}
.btn.primary:hover {
  background: #117762;
}
.btn.small {
  font-size: 12px;
  padding: 7px 10px;
}
.btn.danger {
  color: #bd454c;
  border-color: #f0d6d8;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
}
.stat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #7d8999;
}
.stat-label svg {
  width: 17px;
  height: 17px;
  color: #8b9bad;
}
.stat-number {
  font-size: 32px;
  letter-spacing: -1.5px;
  font-weight: 600;
  margin-top: 12px;
  line-height: 1.2;
}
.stat-number small {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: #95a0ae;
  margin-left: 9px;
}
.stat-foot {
  margin-top: 12px;
  font-size: 11px;
  color: #8b98a7;
}
.green {
  color: var(--accent);
}
.red {
  color: var(--red);
}
.health {
  background: #eaf5f1;
  border: 1px solid #d4e9e1;
  border-radius: 10px;
  padding: 19px 23px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}
.health.warning {
  background: #fff4ee;
  border-color: #f3dfd2;
}
.health-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: #d9eee5;
}
.health.warning .health-icon {
  background: #f8e4d5;
  color: #b46b37;
}
.health p {
  font-size: 12px;
  color: #719084;
  margin-top: 5px;
}
.health.warning p {
  color: #a17f66;
}
.health .right {
  margin-left: auto;
  font-size: 11px;
  color: #7d9289;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 17px;
}
.section-heading span {
  font-size: 12px;
  color: #8997a7;
}
.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 19px;
}
.tabs {
  display: flex;
  gap: 4px;
  background: #eaf0f4;
  padding: 4px;
  border-radius: 7px;
}
.tabs button {
  border: 0;
  background: none;
  color: #7c8999;
  padding: 7px 14px;
  border-radius: 5px;
  font-size: 12px;
}
.tabs button.active {
  background: white;
  color: #273b50;
  box-shadow: 0 1px 4px #14243c0e;
}
.search {
  background: white;
  border: 1px solid var(--border);
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: #9aa5b3;
}
.search svg {
  width: 16px;
  height: 16px;
}
.search input {
  border: 0;
  outline: none;
  width: 165px;
  font-size: 12px;
  background: none;
  color: #33445a;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 21px;
  min-width: 0;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 5px 24px #1d35500a;
}
.card-top {
  display: flex;
  align-items: center;
  gap: 11px;
}
.type-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #eff3f8;
  color: #647990;
  flex-shrink: 0;
}
.type-icon svg {
  width: 19px;
  height: 19px;
}
.card-title {
  min-width: 0;
  flex: 1;
}
.card-title button {
  border: 0;
  padding: 0;
  background: none;
  color: #26394d;
  font-size: 14px;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.card-title p {
  font-size: 10px;
  color: #91a0af;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.icon-btn {
  border: 0;
  background: none;
  color: #8a98a8;
  padding: 5px;
}
.badge {
  font-size: 10px;
  border-radius: 5px;
  padding: 4px 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.badge:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.up {
  background: #e9f6f0;
  color: #25856b;
}
.badge.down {
  background: #fcebed;
  color: #c9515d;
}
.badge.unknown,
.badge.degraded {
  background: #fff3e6;
  color: #bd813a;
}
.badge.pending,
.badge.paused {
  background: #eff2f6;
  color: #8d99a8;
}
.metrics {
  margin-top: 23px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.metric-label {
  font-size: 10px;
  color: #91a0af;
  margin-bottom: 7px;
}
.metric-value {
  font-size: 20px;
  letter-spacing: -0.5px;
  color: #344b61;
}
.metric-value small {
  font-size: 10px;
  color: #8e9eae;
  margin-left: 2px;
}
.meter {
  height: 3px;
  background: #eef2f6;
  border-radius: 3px;
  margin-top: 9px;
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  background: #6cb7a7;
  border-radius: 3px;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: #99a4b1;
  border-top: 1px solid #f0f3f6;
  margin-top: 21px;
  padding-top: 14px;
}
.card-foot span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.empty {
  background: white;
  border: 1px dashed #cfd9e3;
  border-radius: 10px;
  padding: 55px 25px;
  text-align: center;
  grid-column: 1/-1;
  color: #8290a1;
}
.empty svg {
  width: 34px;
  height: 34px;
  color: #a8b6c5;
  margin-bottom: 15px;
}
.empty h3 {
  color: #52657b;
  margin-bottom: 9px;
}
.empty p {
  font-size: 12px;
  line-height: 1.8;
}
.empty .btn {
  margin-top: 18px;
}
.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  padding: 14px 18px;
  font-size: 11px;
  color: #8b98a8;
  font-weight: 500;
  background: #fafbfd;
}
td {
  padding: 17px 18px;
  font-size: 12px;
  border-top: 1px solid #edf0f5;
}
td small {
  display: block;
  color: #96a2b0;
  margin-top: 5px;
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 27px;
  max-width: 850px;
}
.panel p {
  font-size: 12px;
  color: #7e8da0;
  line-height: 1.8;
}
.panel h2 {
  margin-bottom: 12px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0;
}
.field > span,
.field > label {
  font-size: 12px;
  color: #596c81;
  font-weight: 550;
}
.field input,
.field select,
.field textarea {
  padding: 11px 12px;
  border: 1px solid #dfe6ee;
  border-radius: 6px;
  outline: none;
  color: #34495e;
  background: #fff;
  width: 100%;
}
.field input:focus,
.field select:focus {
  border-color: #67b5a6;
  box-shadow: 0 0 0 3px #1687730b;
}
.field small {
  font-size: 11px;
  color: #8d9aaa;
  line-height: 1.7;
}
.field textarea {
  min-height: 130px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.8;
  background: #f7f9fb;
  resize: vertical;
}
.connect-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.connect-types button {
  border: 1px solid var(--border);
  background: white;
  border-radius: 8px;
  padding: 18px 10px;
  color: #7d8c9e;
  text-align: center;
}
.connect-types button.active {
  border-color: #69b6a6;
  background: #f0f8f5;
  color: var(--accent);
}
.connect-types svg {
  display: block;
  margin: 0 auto 10px;
  width: 25px;
  height: 25px;
}
.note {
  padding: 13px 15px;
  border-radius: 7px;
  background: #f2f6fa;
  font-size: 11px;
  line-height: 1.9;
  color: #75869b;
  margin: 18px 0;
}
.error {
  padding: 12px;
  border-radius: 6px;
  background: #fff0f0;
  color: #bb454c;
  font-size: 12px;
  margin: 14px 0;
}
.settings-grid {
  display: grid;
  gap: 20px;
}
.form-footer {
  border-top: 1px solid #edf1f5;
  padding-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}
dialog {
  border: 1px solid #e2e8ef;
  border-radius: 13px;
  padding: 0;
  box-shadow: 0 30px 100px #12243c33;
  width: min(620px, calc(100% - 30px));
  max-height: 90vh;
  color: #34495e;
}
dialog::backdrop {
  background: #12213865;
  backdrop-filter: blur(3px);
}
#modal-content {
  padding: 27px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}
.modal-header h2 {
  font-size: 20px;
}
.dialog-description {
  font-size: 12px;
  color: #8795a7;
  line-height: 1.8;
}
.chart {
  height: 150px;
  margin: 22px 0;
  background: repeating-linear-gradient(
    to top,
    #f0f3f6 0,
    #f0f3f6 1px,
    transparent 1px,
    transparent 37px
  );
  border-bottom: 1px solid #e5ebf2;
}
.chart svg {
  width: 100%;
  height: 100%;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-art {
  background: #101c2e;
  color: white;
  padding: 60px 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-art h1 {
  font-size: 48px;
  line-height: 1.3;
  font-weight: 550;
  letter-spacing: -1.8px;
}
.login-art p {
  color: #8da5bf;
  line-height: 1.9;
  margin-top: 22px;
  max-width: 360px;
}
.login-visual {
  margin: 38px 0;
  width: 100%;
  max-width: 390px;
  border: 1px solid #2a3f55;
  border-radius: 13px;
  padding: 25px;
  background: #14243a;
}
.login-visual .dots {
  display: flex;
  gap: 6px;
  margin-bottom: 25px;
}
.login-visual .dots i {
  width: 6px;
  height: 6px;
  background: #37506b;
  border-radius: 50%;
}
.login-lines {
  display: grid;
  gap: 15px;
}
.login-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #98adc3;
}
.login-line span {
  margin-left: auto;
  color: #65cfaf;
}
.login-foot {
  font-size: 11px;
  color: #617b96;
}
.login-form {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-box {
  max-width: 350px;
  width: 100%;
}
.login-box h2 {
  font-size: 27px;
  letter-spacing: -0.8px;
  margin-bottom: 13px;
}
.login-box > p {
  font-size: 13px;
  color: #8b98a8;
  line-height: 1.8;
  margin-bottom: 28px;
}
.login-box .btn {
  width: 100%;
  margin-top: 8px;
}
.login-help {
  font-size: 11px;
  color: #9ba6b3;
  text-align: center;
  margin-top: 22px;
  line-height: 1.8;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #20374a;
  color: white;
  padding: 13px 20px;
  border-radius: 8px;
  z-index: 50;
  box-shadow: 0 4px 20px #0002;
  display: none;
  font-size: 12px;
}
.mobile-brand {
  display: none;
}
.spacer {
  height: 24px;
}
.detail-target {
  font:
    11px ui-monospace,
    monospace;
  overflow-wrap: anywhere;
  color: #8c9aab;
  margin-top: 12px;
}
.status-label {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.last-updated {
  font-variant-numeric: tabular-nums;
}
.footer-note {
  color: #9ba6b3;
  font-size: 10px;
  margin-top: 26px;
  display: flex;
  justify-content: space-between;
}
.mobile-nav-label {
  display: inline;
}
@media (min-width: 1450px) {
  .main {
    padding-left: 55px;
    padding-right: 55px;
  }
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1150px) {
  .main {
    padding: 26px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sidebar {
    width: 190px;
    padding: 28px 15px;
  }
  .main {
    margin-left: 190px;
  }
  .stat {
    padding: 17px;
  }
  .health .right {
    display: none;
  }
}
@media (max-width: 760px) {
  .sidebar {
    width: 65px;
    padding: 24px 8px;
  }
  .sidebar .brand {
    padding: 0 5px;
  }
  .brand > span:last-child,
  .nav-section,
  .mobile-nav-label,
  .nav-count,
  .sidebar-footer {
    display: none;
  }
  .nav {
    margin-top: 32px;
  }
  .nav button {
    padding: 13px;
    justify-content: center;
  }
  .main {
    margin-left: 65px;
    padding: 20px 17px;
  }
  .topbar {
    margin-bottom: 26px;
  }
  .topbar-right > .muted {
    display: none;
  }
  .page-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .page-header h1 {
    font-size: 25px;
  }
  .page-header .actions {
    width: 100%;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-number {
    font-size: 28px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .filters {
    align-items: stretch;
    flex-direction: column;
  }
  .tabs {
    align-self: flex-start;
  }
  .search input {
    width: 100%;
  }
  .health {
    padding: 17px 14px;
  }
  .health h3 {
    font-size: 13px;
  }
  .health p {
    font-size: 11px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-form {
    padding: 35px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-note {
    line-height: 1.8;
    gap: 15px;
  }
  .connect-types button {
    font-size: 12px;
  }
  .panel {
    padding: 21px;
  }
  .topbar-right {
    gap: 8px;
  }
  .card {
    padding: 20px;
  }
}
svg {
  width: 20px;
  height: 20px;
}
.login-line svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.health-icon svg {
  width: 23px;
  height: 23px;
}
.login-help svg {
  width: 13px;
  height: 13px;
}
