:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #0b0d12;
  --surface: #12151b;
  --surface-2: #181c24;
  --surface-3: #202631;
  --border: #292f3a;
  --text: #f4f5f7;
  --muted: #929aa7;
  --accent: #f4f5f7;
  --danger: #e15b64;
  --success: #54b98b;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
input, textarea, select {
  width: 100%; border: 1px solid var(--border); background: #0e1117; color: var(--text);
  border-radius: 8px; padding: 10px 11px; outline: none;
}
textarea { resize: vertical; min-height: 86px; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
label { display: grid; gap: 7px; color: #c8ced7; font-size: 13px; }
small, .muted { color: var(--muted); }
.button {
  border: 1px solid transparent; border-radius: 8px; padding: 9px 13px; font-weight: 700;
  background: var(--surface-3); color: var(--text); min-height: 38px;
}
.button:hover { filter: brightness(1.08); }
.button.primary { background: var(--accent); color: #111; }
.button.secondary { border-color: var(--border); background: transparent; }
.button.danger { background: #31171a; color: #ffb8bd; border-color: #5e282e; }
.button.success { background: #143326; color: #a9eccd; border-color: #265b46; }
.button.full { width: 100%; }
.button.small { min-height: 32px; padding: 6px 9px; font-size: 12px; }
.button:disabled { opacity: .42; cursor: not-allowed; filter: none; }
.link-button { border: 0; background: none; color: var(--muted); padding: 8px 0; }
.eyebrow { display: block; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.card h2, .card h3, .card p { margin-top: 0; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-header h2, .card-header h3 { margin: 0; }
.form-stack { display: grid; gap: 12px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.list { display: grid; gap: 8px; }
.empty { color: var(--muted); padding: 18px 0; text-align: center; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 100; max-width: 360px; padding: 11px 14px;
  background: #f4f5f7; color: #111; border-radius: 8px; transform: translateY(20px); opacity: 0; pointer-events: none; transition: .18s ease;
}
.toast.visible { transform: translateY(0); opacity: 1; }
.toast.error { background: #ffb8bd; }
.loading { color: var(--muted); padding: 40px; text-align: center; }
.login-body { display: grid; place-items: center; padding: 20px; }
.login-card { width: min(390px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 38px; height: 38px; border-radius: 8px; background: var(--accent); color: #111; display: grid; place-items: center; font-weight: 900; }
.brand strong, .brand small { display: block; }
.login-brand { margin-bottom: 24px; }
.form-error { color: #ff9da5; min-height: 20px; margin-bottom: 0; }
@media (max-width: 760px) { .grid-2, .grid-3, .form-grid { grid-template-columns: 1fr; } }
