:root {
  --bg: #f0f2f5;
  --surface: #ffffff;
  --surface2: #f7f8fa;
  --surface3: #eef0f4;
  --border: rgba(0,0,0,0.07);
  --border2: rgba(0,0,0,0.12);
  --text: #0a0c10;
  --text2: #4a5568;
  --text3: #8896a5;
  --blue: #1a56db;
  --blue-bg: #eff4ff;
  --blue-border: #c7d7fc;
  --green: #057a55;
  --green-bg: #f0fdf4;
  --green-border: #a7f3d0;
  --amber: #92400e;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --red: #9b1c1c;
  --red-bg: #fef2f2;
  --red-border: #fecaca;
  --teal: #065f46;
  --teal-bg: #ecfdf5;
  --teal-border: #a7f3d0;
  --navy: #0d1b2a;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.06), 0 20px 48px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-lg: 16px;
  --sidebar-w: 240px;
  --header-h: 58px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button { cursor: pointer; font: inherit; border: none; background: none; }
input, select, textarea { font: inherit; }
a { text-decoration: none; color: inherit; }



@keyframes pluga-spin { to { transform: rotate(360deg); } }
.pluga-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid #dbe3f3;
  border-top-color: #2749a5;
  border-radius: 50%;
  animation: pluga-spin .75s linear infinite;
}
.pluga-spinner.sm { width: 15px; height: 15px; border-width: 2px; }
.pluga-spinner.on-dark { border-color: rgba(255,255,255,.42); border-top-color: #fff; }
.pluga-loading-state {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #667085;
  text-align: center;
}
.pluga-loading-state strong { color: #22316f; font: 600 13px 'Sora', sans-serif; }
.pluga-inline-loading { display: inline-flex; align-items: center; gap: 7px; }
#pluga-boot-screen {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: none;
  align-items: center;
  justify-content: center;
  background: #f4f6fb;
}
#pluga-boot-screen .pluga-boot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  padding: 24px 30px;
  color: #22316f;
  font: 600 13px 'Sora', sans-serif;
}
html.pluga-booting #pluga-boot-screen { display: flex; }
html.pluga-booting body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .pluga-spinner { animation-duration: 1.4s; } }
