:root {
  
  --color-primary: #4B2E83;
  --color-primary-deep: #3C1053;
  --color-primary-hover: #5b3aa0;

  
  --color-accent: #009688;
  --color-accent-strong: #00796B;
  --color-pending: #F4B400;

  
  --color-bg: #FFFFFF;
  --color-bg-muted: #F5F5F7;
  --color-bg-app: #EFEFF4;

  
  --color-border: #E5E5EA;
  --color-border-strong: #C7C7CC;
  --color-text: #1C1C1E;
  --color-text-muted: #6E6E73;
  --color-text-inverse: #FFFFFF;

  
  --radius-sm: 8px;
  --radius-card: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  
  --shadow-card: 0 1px 3px rgba(16,16,40,.05), 0 4px 12px rgba(16,16,40,.06);
  --shadow-elev: 0 8px 32px rgba(16,16,40,.12), 0 2px 8px rgba(16,16,40,.06);
  --shadow-subtle: 0 1px 2px rgba(16,16,40,.04);

  
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;

  
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 22px;
  --fs-xl: 30px;

  
  --topbar-height: 64px;
  --mobile-appbar-height: 60px;
  --bottombar-height: 68px;
  --sidebar-width: 248px;
  --content-max-width: 900px;

  
  --t-fast: 140ms ease;
  --t-base: 220ms ease;

  
  --z-topbar: 50;
  --z-sidebar: 40;
  --z-bottombar: 50;
  --z-modal: 80;
}

@media (min-width: 768px) {
  :root {
    --fs-lg: 24px;
    --fs-xl: 34px;
  }
}

@media (min-width: 1024px) {
  :root {
    --fs-md: 20px;
    --fs-lg: 26px;
    --fs-xl: 36px;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--color-text);
  background-color: var(--color-bg-app);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.text-xs   { font-size: var(--fs-xs); }
.text-sm   { font-size: var(--fs-sm); }
.text-base { font-size: var(--fs-base); }
.text-md   { font-size: var(--fs-md); }
.text-lg   { font-size: var(--fs-lg); }
.text-xl   { font-size: var(--fs-xl); }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.muted   { color: var(--color-text-muted); }
.accent  { color: var(--color-accent-strong); }
.primary { color: var(--color-primary); }

.numeric {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  letter-spacing: -0.2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.hidden { display: none !important; }

.divider {
  height: 1px;
  background: var(--color-border);
  width: 100%;
}

@media (min-width: 1024px) {
  .desktop-only { display: initial; }
  .mobile-only  { display: none !important; }
}

@media (max-width: 1023.98px) {
  .desktop-only { display: none !important; }
}
