:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101521;
  color: #edf2fc;
  --panel: #171e2d;
  --line: #29364d;
  --muted: #a9b7cd;
  --accent: #75e6c5;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, input:focus-visible { outline-offset: 4px; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); }
form, h1, h2, p, dl, dd { margin: 0; }

.login {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-panel {
  width: min(100%, 390px);
  padding: clamp(24px, 6vw, 34px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.login h1 { margin: 18px 0 8px; font-size: 29px; letter-spacing: -.03em; }
.login p { color: var(--muted); line-height: 1.5; }
.login label { display: block; margin: 26px 0 8px; font-weight: 600; }
.login input {
  width: 100%;
  min-height: 54px;
  padding: 12px 15px;
  border: 1px solid #516583;
  border-radius: 10px;
  background: #101521;
  color: #edf2fc;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.login input::placeholder { color: #a9b7cd; font-size: 16px; }
.login .error { color: #ffadb6; font-size: 14px; margin-top: 12px; }
.dashboard { max-width: 990px; margin: 0 auto; padding: 28px clamp(14px, 4vw, 32px) 48px; }
.top { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 24px; }
.server-name { color: var(--muted); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.top h1 { font-size: clamp(27px, 5vw, 40px); margin: 9px 0 5px; letter-spacing: -.035em; }
.status { color: var(--muted); font-size: 14px; line-height: 1.45; }
.status.ready { color: var(--accent); }
.top button {
  min-height: 44px;
  border-radius: 10px;
  padding: 8px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: inherit;
  cursor: pointer;
}
.summary, .details { display: grid; gap: 12px; }
.summary { grid-template-columns: repeat(4, minmax(0,1fr)); margin-bottom: 14px; }
.details { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); padding: 16px; }
.card h2 { font-size: 15px; margin-bottom: 10px; }
.summary h2 { color: var(--muted); font-weight: 600; }
.summary strong { font-size: clamp(23px, 4.7vw, 29px); font-weight: 680; line-height: 1; }
.card p, .facts dt { font-size: 13px; color: var(--muted); line-height: 1.4; }
.card p { margin-top: 7px; overflow-wrap: anywhere; }
progress {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 12px;
  border: 0;
  border-radius: 20px;
  appearance: none;
  background: #2b3950;
  color: var(--accent);
}
progress::-webkit-progress-bar { background: #2b3950; border-radius: 20px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 20px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 20px; }
.cores { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.core { padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.core span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.core strong, .row b, .facts dd { font-variant-numeric: tabular-nums; }
.core progress { margin-top: 8px; }
.facts > div, .row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.facts > div { margin-top: 12px; }
.facts dd { font-size: 13px; text-align: right; }
.rows { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.row { padding: 10px 0; font-size: 14px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row > div { min-width: 0; }
.row b { font-weight: 620; }
.row small, .empty { color: var(--muted); font-size: 12px; }
.row small { display: block; margin-top: 4px; }
.row-name { overflow-wrap: anywhere; }
.row-value { text-align: right; flex-shrink: 0; }
.full { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .details { grid-template-columns: minmax(0,1fr); }
  .dashboard { padding-top: 20px; }
  .card { padding: 13px; }
}
