:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #080b12;
  color: #e8edf7;
  --surface: #111722;
  --surface-2: #182130;
  --border: #273247;
  --muted: #95a2b8;
  --accent: #60a5fa;
  --ok: #34d399;
  --bad: #fb7185;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #15213a 0, #080b12 40%);
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--border);
  background: rgb(8 11 18 / 86%);
  backdrop-filter: blur(14px);
}
.brand {
  color: white;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
nav form {
  margin: 0;
}
.link-button {
  color: var(--muted);
  background: none;
  padding: 0;
  border: 0;
}
.container {
  width: min(1180px, 90vw);
  margin: 48px auto;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}
h1 {
  margin: 4px 0 10px;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1;
}
h2 {
  margin: 0 0 20px;
}
p {
  color: var(--muted);
  line-height: 1.6;
}
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
}
.button,
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #07101f;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.button:hover {
  text-decoration: none;
  filter: brightness(1.08);
}
button.secondary {
  background: var(--surface-2);
  color: #dce6f7;
  border: 1px solid var(--border);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.metric,
.panel,
.auth-card,
.user-card {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgb(24 33 48 / 92%), rgb(13 18 28 / 96%));
  border-radius: 14px;
  box-shadow: 0 18px 45px rgb(0 0 0 / 20%);
}
.metric {
  padding: 20px;
  display: grid;
  gap: 7px;
}
.metric span,
.metric small,
.user-card span {
  color: var(--muted);
}
.metric strong {
  font-size: 1.55rem;
}
.metric strong.ok,
.user-card small.ok {
  color: var(--ok);
}
.metric strong.bad,
.user-card small.bad {
  color: var(--bad);
}
.panel {
  padding: 26px;
  margin: 22px 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 13px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
code {
  color: #c4b5fd;
}
.auth-card {
  width: min(460px, 100%);
  margin: 8vh auto;
  padding: 34px;
}
.stack {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}
label {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 650;
}
input {
  width: 100%;
  min-height: 43px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  color: white;
  background: #0b1019;
  font: inherit;
}
input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.notice {
  margin: 18px 0;
  padding: 13px 16px;
  border-radius: 9px;
}
.notice.error {
  color: #fecdd3;
  background: rgb(159 18 57 / 35%);
  border: 1px solid #9f1239;
}
.notice.success {
  color: #a7f3d0;
  background: rgb(6 95 70 / 35%);
  border: 1px solid #047857;
}
.notice.info {
  color: #bfdbfe;
  background: rgb(30 64 175 / 28%);
  border: 1px solid #1d4ed8;
}
.notice.info p {
  margin: 0;
  color: inherit;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr auto;
  gap: 14px;
  align-items: end;
}
.user-list {
  display: grid;
  gap: 12px;
}
.user-card {
  padding: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.user-card > div:first-child {
  display: grid;
  gap: 4px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: end;
}
.actions form {
  display: flex;
  gap: 8px;
}
.actions input {
  width: 190px;
}
footer {
  padding: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 850px) {
  .topbar,
  .hero,
  .user-card {
    align-items: stretch;
    flex-direction: column;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .actions,
  .actions form {
    justify-content: stretch;
    flex-direction: column;
  }
  .actions input {
    width: 100%;
  }
}
