:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #e8edf5;
  background: #0c1018;
  font-synthesis: none;
  --muted: #8793a9;
  --line: #242d3d;
  --panel: #141b27;
  --green: #6ae4ba;
  --red: #ff8796;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--green);
  color: #08261e;
  font-weight: 600;
}
button:hover {
  filter: brightness(1.1);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input,
select {
  background: #0d1420;
  border: 1px solid #334158;
  border-radius: 7px;
  padding: 10px 12px;
  color: #e8edf5;
  width: 100%;
}
input:focus,
select:focus {
  outline: 2px solid #6ae4ba;
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: #b4bfd0;
  margin: 12px 0;
}
input[type="checkbox"] {
  width: auto;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.8px;
  margin: 8px 0 16px;
}
h2 {
  font-size: 18px;
  margin: 0 0 20px;
}
h3 {
  font-size: 15px;
  margin: 0;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}
.brand {
  font-size: 27px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand span {
  font-size: 17px;
  letter-spacing: 4px;
  font-weight: 700;
  color: #ecf5f4;
}
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 30% 20%, #18322f66, transparent 55%);
}
.auth-card {
  width: min(440px, 92vw);
  padding: 36px;
  background: #131b27;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.auth form button {
  width: 100%;
  margin-top: 10px;
}
details {
  margin-top: 24px;
}
summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 225px;
  padding: 34px 24px;
  background: #101620;
  border-right: 1px solid var(--line);
}
.workspace-label {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #65758f;
  margin: 55px 0 16px;
}
nav {
  display: grid;
  gap: 8px;
}
nav button {
  text-align: left;
  background: transparent;
  color: #98a5ba;
  font-size: 14px;
  font-weight: 400;
}
nav button.active {
  background: #21332f;
  color: var(--green);
}
.aside-bottom {
  position: absolute;
  bottom: 30px;
  color: #97a5b8;
  font-size: 12px;
}
.aside-bottom p {
  color: #56677f;
  font-size: 11px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 5px;
}
main {
  margin-left: 225px;
  padding: 30px 42px;
  max-width: 1700px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 30px;
}
.stat,
.panel,
.server-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.stat .value {
  font-size: 30px;
  font-weight: 600;
  margin-top: 12px;
  letter-spacing: -1px;
}
.stat .label {
  font-size: 12px;
  color: #98a5ba;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 24px 0 18px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
}
.server-card {
  padding: 18px;
  min-width: 0;
  cursor: pointer;
  transition: border-color 0.2s;
}
.server-id {
  display: block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.default-charts {
  margin: 24px 0;
}
.range-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}
.range-tabs button,
.disk-tabs button {
  padding: 7px 12px;
  font-size: 12px;
}
.range-tabs .active,
.disk-tabs .active {
  background: #34424c;
  color: #f3f5f7;
  border-color: #5d747a;
}
.chart-note {
  text-align: center;
  font-size: 11px;
  margin: 14px 0;
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.chart-card {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 14px 8px;
}
.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
}
.chart-head h3 {
  margin: 0;
  font-size: 16px;
}
.chart-value {
  white-space: pre-line;
  text-align: right;
  color: #a2acba;
  font-size: 11px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.chart-card canvas {
  display: block;
  width: 100%;
  height: 180px;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  min-height: 18px;
}
.chart-status {
  min-height: 28px;
  font-size: 10px;
  color: #93a0b4;
  overflow-wrap: anywhere;
  margin: 5px 0;
}
.disk-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 5px;
}
.disk-tabs button {
  white-space: nowrap;
  padding: 3px 8px;
}
@media (max-width: 1100px) {
  .chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .chart-grid {
    grid-template-columns: 1fr;
  }
}
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  font-size: 12px;
}
.info-row > span:last-child {
  text-align: right;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.info-row > span:first-child {
  flex-shrink: 0;
}
.bar-row small {
  display: block;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
progress.warning {
  accent-color: #ed9c42;
}
progress.critical {
  accent-color: #ed6e7b;
}
progress.warning::-webkit-progress-value {
  background: #ed9c42;
}
progress.critical::-webkit-progress-value {
  background: #ed6e7b;
}
.danger-text {
  color: #ed6e7b;
}
.inventory-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.hardware-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px 36px;
  padding: 24px 0;
}
.hardware-fact {
  min-width: 0;
  overflow-wrap: anywhere;
}
.hardware-fact small {
  display: block;
  margin-bottom: 6px;
}
.hardware-fact > div {
  font-size: 15px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.hardware-fact:nth-child(even) {
  text-align: right;
}
.mounts {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0 24px;
}
@media (max-width: 600px) {
  .hardware-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hardware-fact:nth-child(even) {
    text-align: left;
  }
}
.server-card:hover {
  border-color: #627b85;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.badge {
  font-size: 10px;
  letter-spacing: 1px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #203a33;
  color: var(--green);
}
.badge.offline {
  color: var(--red);
  background: #3b2531;
}
.bar-row {
  margin: 16px 0;
  font-size: 12px;
  color: #a3b0c3;
}
.bar-row div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
progress {
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 4px;
  accent-color: var(--green);
}
progress::-webkit-progress-bar {
  background: #293346;
  border-radius: 4px;
}
progress::-webkit-progress-value {
  background: var(--green);
  border-radius: 4px;
}
.card-footer {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #7d8ca3;
}
.subtle {
  background: transparent;
  border-color: var(--line);
  color: #aab9ca;
}
.danger {
  background: #422737;
  color: #ffb1bb;
}
.panel {
  margin: 20px 0;
}
.empty {
  padding: 65px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #34435a;
  border-radius: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  text-align: left;
  font-size: 10px;
  color: #8393ad;
  letter-spacing: 1px;
}
td,
th {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
}
td code {
  font-size: 12px;
  color: #a6b9d4;
}
canvas {
  width: 100%;
  height: 280px;
  display: block;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #71839c;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 12px;
}
.metric {
  padding: 16px;
  background: #101722;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.metric small {
  color: #8da0bb;
  font-size: 11px;
}
.metric strong {
  display: block;
  font-size: 22px;
  margin-top: 10px;
}
.selector-row {
  display: grid;
  grid-template-columns: 1fr 160px auto;
  gap: 12px;
  margin-bottom: 24px;
}
.note {
  font-size: 12px;
  color: #8c9fb9;
  line-height: 1.8;
}
.secret {
  white-space: pre-wrap;
  word-break: break-all;
  background: #0c111a;
  padding: 18px;
  border-radius: 8px;
  color: var(--green);
  user-select: all;
}
dialog {
  background: #151e2c;
  color: #e8edf5;
  border: 1px solid #3d5069;
  border-radius: 14px;
  width: min(620px, 92vw);
  padding: 26px;
}
dialog::backdrop {
  background: #000a;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 420px;
  border: 1px solid #47605e;
  border-radius: 10px;
  background: #20352f;
  color: #ddfff1;
  padding: 18px 22px;
  box-shadow: 0 8px 40px #0006;
  z-index: 10;
}
#toast.error {
  background: #402633;
  border-color: #865266;
  color: #ffd3dc;
}
footer {
  font-size: 10px;
  letter-spacing: 0.4px;
  color: #53657e;
  margin-top: 35px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.history-status {
  min-height: 26px;
}
.inline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.inline label {
  flex: 1;
}
@media (max-width: 900px) {
  aside {
    width: 175px;
    padding: 25px 14px;
  }
  main {
    margin-left: 175px;
    padding: 24px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  aside {
    position: static;
    width: 100%;
    padding: 18px;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
  }
  .workspace-label,
  .aside-bottom {
    display: none;
  }
  main {
    margin: 0;
    padding: 18px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat .value {
    font-size: 24px;
  }
  header {
    align-items: flex-start;
  }
  .selector-row,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .brand {
    font-size: 22px;
  }
}
.selector-row > button {
  align-self: end;
  margin-bottom: 12px;
}
