:root {
  color-scheme: dark;
  --bg: #0e1117;
  --card: #171c26;
  --muted: #9aa4b2;
  --text: #eef2f7;
  --line: #2a3242;
  --accent: #7dd3fc;
  --ok: #34d399;
  --warn: #fbbf24;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(circle at top left, #1d2a3f 0, var(--bg) 38rem);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--accent); }
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f4efe4;
  color: #2b2520;
}
.login-card {
  width: min(92vw, 430px);
  background: #fff;
  border: 1px solid #d7cdbb;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 8px 18px rgba(54, 44, 24, 0.12);
}
.login-card h1 { margin: 0 0 10px; font-size: 1.35rem; letter-spacing: .02em; }
.login-kicker { margin: 0 0 4px; color: #0b8a72; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.login-copy, .login-hint { color: #675b4c; font-size: .92rem; }
.login-form { display: grid; gap: 11px; }
.login-form label { display: grid; gap: 6px; font-weight: 650; font-size: .9rem; }
.login-form input {
  border: 1px solid #cfc3ad;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}
.login-form button {
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: #0b8a72;
  cursor: pointer;
}
.error { margin: 0 0 12px; color: #a52a2a; font-size: .92rem; }
.page { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0; }
.hero { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 24px; }
.hero h1 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -0.04em; }
.hero p { margin: 8px 0 0; color: var(--muted); }
.eyebrow { color: var(--accent) !important; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.75rem; }
.card { background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-bottom: 18px; box-shadow: 0 18px 60px rgba(0,0,0,.25); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: end; }
.grid-form label { display: grid; gap: 7px; color: var(--muted); font-weight: 700; }
.grid-form input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #0b0f16; color: var(--text); font: inherit; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.muted { color: var(--muted); }
.notice { border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; border: 1px solid var(--line); }
.notice pre { margin: 0; padding: 0; border: 0; background: transparent; }
.notice.success { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.notice.error { color: #fca5a5; background: rgba(127, 29, 29, .25); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: #07111f; text-decoration: none; font-weight: 700; }
.grid-form .button { border: 0; cursor: pointer; font: inherit; }
.button.secondary { background: #243044; color: var(--text); border: 1px solid var(--line); }
.button.small { min-height: 34px; padding: 0 12px; font-size: .86rem; border: 0; cursor: pointer; }
.button.danger { background: #ef4444; color: #fff; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.row-actions { min-width: 280px; }
.row-actions, .mini-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mini-form input { width: 140px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #0b0f16; color: var(--text); font: inherit; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: .08em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre { white-space: pre-wrap; overflow-x: auto; background: #0b0f16; border: 1px solid var(--line); padding: 14px; border-radius: 12px; }
.pill { display: inline-flex; border-radius: 999px; padding: 4px 10px; font-weight: 700; }
.pill.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
@media (max-width: 760px) { .hero, .grid, .grid-form, .split { display: block; } .button { margin-top: 16px; } .grid-form label { margin-bottom: 12px; } }
