:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #071019;
  color: #edf6ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(31, 129, 162, .2), transparent 32rem),
    #071019;
}

a { color: inherit; }

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.topbar, .service, #timers li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #77d5ef;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: 1rem; color: #a9bfd0; }

.button, button {
  border: 1px solid #315066;
  border-radius: 10px;
  background: #102230;
  color: #edf6ff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 10px 14px;
}

.button:hover, button:hover { background: #173348; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.card {
  grid-column: span 4;
  border: 1px solid #1d384b;
  border-radius: 16px;
  background: rgba(12, 29, 42, .9);
  padding: 20px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .18);
}

.card.wide { grid-column: span 6; }
.metric { margin-bottom: 4px; font-size: 1.35rem; font-weight: 800; }
.muted { color: #8ea7b9; }
.error { color: #ffb4ae; }

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service, #timers li {
  border-top: 1px solid #1d384b;
  padding: 12px 0;
}

.service:first-child, #timers li:first-child { border-top: 0; }
.state-ok { color: #64e6a6; }
.state-bad { color: #ff9d97; }

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(430px, 100%);
  border: 1px solid #1d384b;
  border-radius: 18px;
  background: #0c1d2a;
  padding: 28px;
}

label {
  display: block;
  margin: 18px 0 7px;
  color: #b8ccd9;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid #315066;
  border-radius: 10px;
  background: #07131d;
  color: #fff;
  font: inherit;
  padding: 12px;
}

.login-card button { width: 100%; margin-top: 22px; }

@media (max-width: 800px) {
  .card, .card.wide { grid-column: 1 / -1; }
  .topbar { align-items: flex-start; }
}
