:root {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --surface-2: #f8f9fd;
  --border: #e6e8f2;
  --text: #151a30;
  --muted: #6b7290;
  --primary: #4f46e5;
  --primary-600: #4338ca;
  --primary-soft: #eef0ff;
  --green: #12a373; --green-soft: #e3f7ef;
  --amber: #d98a0b; --amber-soft: #fff4dc;
  --red: #e0434f; --red-soft: #fde9eb;
  --blue: #2e7cf6; --blue-soft: #e6f0ff;
  --violet: #8b5cf6; --violet-soft: #f0eaff;
  --gray-soft: #eceef6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(21, 26, 48, .05), 0 8px 24px rgba(21, 26, 48, .06);
  --shadow-lg: 0 24px 60px rgba(21, 26, 48, .25);
  --sidebar: 260px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 24px; letter-spacing: -.02em; }
h3 { font-size: 15px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
small { font-size: 12px; color: var(--muted); }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.right { text-align: right; }
.icon { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
.page-loading { display: grid; place-items: center; height: 50vh; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page { animation: fade-up .25s ease; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
