:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --danger: #b91c1c;
  --success: #166534;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  align-items: center;
  background: #111827;
  display: flex;
  justify-content: space-between;
  padding: 14px 28px;
}

.brand {
  color: white;
  font-weight: 700;
}

.navlinks {
  display: flex;
  gap: 16px;
}

.navlinks a {
  color: #d1d5db;
}

.container {
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px;
}

.hero {
  background: linear-gradient(135deg, #111827, #1e3a8a);
  border-radius: 18px;
  color: white;
  margin-bottom: 24px;
  padding: 48px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 12px;
}

.hero p {
  color: #dbeafe;
  font-size: 1.1rem;
  max-width: 760px;
}

.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 18px;
}

.card,
.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  margin-bottom: 18px;
  padding: 22px;
}

.auth-card {
  margin: 80px auto;
  max-width: 420px;
}

.page-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.muted,
small {
  color: var(--muted);
}

label {
  display: block;
  font-weight: 600;
  margin-top: 14px;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  display: block;
  font: inherit;
  margin-top: 6px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.check {
  align-items: center;
  display: flex;
  gap: 8px;
}

.check input {
  width: auto;
}

button,
.button {
  background: var(--primary);
  border: 0;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-weight: 700;
  margin-top: 16px;
  padding: 10px 16px;
}

button:hover,
.button:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.secondary {
  background: #374151;
}

.alert,
.success {
  border-radius: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.alert {
  background: #fee2e2;
  color: var(--danger);
}

.success {
  background: #dcfce7;
  color: var(--success);
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 900px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

code,
pre {
  background: #f3f4f6;
  border-radius: 8px;
  font-family: Consolas, monospace;
}

code {
  padding: 2px 5px;
}

pre {
  overflow-x: auto;
  padding: 14px;
}

.tag {
  background: #e0e7ff;
  border-radius: 999px;
  color: #3730a3;
  display: inline-block;
  font-size: 0.85rem;
  padding: 3px 8px;
}

.tag.ok {
  background: #dcfce7;
  color: var(--success);
}

.tag.off {
  background: #f3f4f6;
  color: #4b5563;
}