:root {
  --st-bg: #f5f7fb;
  --st-card: #ffffff;
  --st-border: #e6e9f0;
  --st-text: #1d2433;
  --st-muted: #6b7385;
  --st-accent: #4f6bff;
  --st-food: #36b9ff;
  --st-transport: #ff7a59;
  --st-housing: #8b5cf6;
  --st-fun: #ffb020;
}
body {
  background: var(--st-bg);
  color: var(--st-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.st-nav {
  background: var(--st-card);
  border-bottom: 1px solid var(--st-border);
}
.st-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--st-text);
  text-decoration: none;
}
.st-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, var(--st-accent), var(--st-food));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.st-nav .nav-link { color: var(--st-muted); font-weight: 500; }
.st-nav .nav-link.active, .st-nav .nav-link:hover { color: var(--st-text); }
.st-header h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; }
.st-header p { color: var(--st-muted); margin: 0; }
.st-card {
  background: var(--st-card);
  border: 1px solid var(--st-border);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  padding: 1.25rem;
  height: 100%;
}
.st-card h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.st-stat-label {
  color: var(--st-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.st-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}
.st-form .form-control, .st-form .form-select { border-radius: 0.6rem; }
.st-form .btn { border-radius: 0.6rem; background: var(--st-accent); border-color: var(--st-accent); }
.st-table { margin: 0; }
.st-table th {
  color: var(--st-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom-color: var(--st-border);
}
.st-table td { vertical-align: middle; border-bottom-color: var(--st-border); }
.st-table .st-amount { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.st-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--st-bg);
}
.st-pill::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--st-muted);
}
.st-pill[data-category="Food"]::before { background: var(--st-food); }
.st-pill[data-category="Transport"]::before { background: var(--st-transport); }
.st-pill[data-category="Housing"]::before { background: var(--st-housing); }
.st-pill[data-category="Fun"]::before { background: var(--st-fun); }
.st-delete {
  border: none;
  background: none;
  color: var(--st-muted);
  border-radius: 0.5rem;
  padding: 0.1rem 0.5rem;
  font-size: 1.1rem;
  line-height: 1;
}
.st-delete:hover { background: #fdecec; color: #d92d20; }
.st-footer { color: var(--st-muted); font-size: 0.85rem; }
.st-footer a { color: inherit; }
