/* ─── Margin Design System ─── */
:root {
  --primary:   #2E7D5E;
  --primary-d: #1F5C44;
  --primary-l: #E8F5F0;
  --bg:        #F4F7F5;
  --card:      #FFFFFF;
  --border:    #E0EAE5;
  --text:      #1A2E22;
  --muted:     #6B7C72;
  --dim:       #9BADA3;
  --success:   #22C55E;
  --warning:   #F59E0B;
  --danger:    #EF4444;
  --income:    #16A34A;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}

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

body {
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Layout ─── */
body {
  display: flex;
  min-height: 100vh;
}

/* Sidebar (desktop only) */
.sidebar {
  display: none;
}

/* Main area */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.main-area.no-sidebar {
  max-width: 100%;
}

/* Mobile-only elements hidden on desktop */
.mobile-only { display: flex; }

/* ─── Desktop layout (768px+) ─── */
@media (min-width: 768px) {
  body { display: flex; flex-direction: row; }

  .sidebar {
    display: flex;
    flex-direction: column;
    width: 220px;
    min-width: 220px;
    background: var(--card);
    border-right: 1px solid var(--border);
    height: 100vh;
    position: sticky;
    top: 0;
    padding: 0;
    flex-shrink: 0;
  }

  .sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-logo-img {
    height: 30px;
    width: auto;
    display: block;
  }

  .sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 8px;
    gap: 2px;
    overflow-y: auto;
  }
  .sidebar-footer {
    display: flex;
    flex-direction: column;
    padding: 8px 8px 16px;
    gap: 2px;
    border-top: 1px solid var(--border);
  }
  .sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
  }
  .sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
  .sidebar-link:hover { background: var(--primary-l); color: var(--primary); text-decoration: none; }
  .sidebar-link.active { background: var(--primary-l); color: var(--primary); font-weight: 600; }
  .sidebar-logout { color: var(--dim); }
  .sidebar-logout:hover { background: #FEF2F2; color: var(--danger); }
  .sidebar-logout-form { margin: 0; padding: 0; }
  .sidebar-logout-form .sidebar-logout {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
  }

  .main-area {
    flex: 1;
    max-width: none;
    margin: 0;
    min-height: 100vh;
  }

  /* Hide mobile-only elements */
  .mobile-only { display: none !important; }

  /* Content padding adjustment — no bottom nav on desktop */
  .page-content { padding-bottom: 32px; }

  /* Widen cards on desktop */
  .card { margin: 12px 24px; }
  .budget-list { padding: 0 24px 8px; }
  .section-header { padding: 12px 24px 8px; }
  .month-nav { padding: 10px 24px; }
  .page-header { padding: 12px 24px; }
  .page-header-simple { padding: 20px 24px 8px; }
  .txn-row { padding: 10px 24px; }
  .empty-state { padding: 40px 24px; }
  .alert { margin: 12px 24px; }

  /* Desktop: two-column grid for dashboard cards */
  .dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .dashboard-grid .section { padding: 0; }

  /* Hero cards stay full-width */
  .margin-hero { margin: 16px 24px; }
  .income-hero { margin: 16px 24px; }

  /* FAB hidden on desktop — sidebar has the nav */
  .fab { display: none; }
}

/* ─── Top bar ─── */
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
.mobile-logo-img {
  height: 26px;
  width: auto;
  display: block;
}
.topbar-avatar {
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.topbar-right { display: flex; align-items: center; gap: 8px; }
.btn-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  background: transparent;
}
.btn-icon:hover { background: var(--primary-l); color: var(--primary); }

/* ─── Page content ─── */
.page-content {
  flex: 1;
  padding: 0 0 100px 0;
  overflow-y: auto;
}

/* ─── Bottom nav ─── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 8px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  gap: 3px;
  min-height: 56px;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item.active { color: var(--primary); }
.nav-item:hover { color: var(--primary); background: var(--primary-l); }

/* ─── FAB ─── */
.fab {
  position: fixed;
  bottom: 70px;
  right: calc(50% - 240px + 16px);
  width: 52px; height: 52px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  z-index: 40;
}
@media (max-width: 480px) { .fab { right: 16px; } }

/* ─── Assistant / Quick Add ─── */
.assistant-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.assistant-hint { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.example-chip {
  background: var(--primary-l); color: var(--primary); border-radius: 99px;
  padding: 5px 14px; font-size: 13px; cursor: pointer; user-select: none;
  transition: background 0.12s;
}
.example-chip:hover { background: #d0ede3; }
.assistant-input-row { display: flex; gap: 10px; align-items: center; }
.assistant-input { flex: 1; font-size: 16px; }
.mic-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--card); cursor: pointer; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; color: var(--muted); transition: all 0.15s;
}
.mic-btn:hover { border-color: var(--primary); color: var(--primary); }
.mic-btn.recording { background: #FEE2E2; border-color: var(--danger); color: var(--danger); animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.6; } }
.assistant-status { margin-top: 14px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; }
.assistant-status-error { background: #FEE2E2; color: #991B1B; }
.assistant-status-info { background: var(--primary-l); color: var(--primary); }
.assistant-result { margin-top: 14px; padding: 16px; background: #D1FAE5; border-radius: var(--radius-sm); }
.result-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.result-check { color: #065F46; font-size: 18px; font-weight: 700; }
.result-merchant { font-weight: 600; font-size: 15px; color: #065F46; }
.result-amount { font-weight: 600; color: #065F46; }
.result-date { font-size: 13px; color: #065F46; opacity: 0.7; }
.result-note { font-size: 13px; color: #065F46; }
.result-note a { color: #065F46; font-weight: 600; }

/* ─── Review ─── */
.review-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.review-card-meta { margin-bottom: 10px; }
.review-source { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.review-quick { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review-field-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.review-merchant { font-size: 15px; font-weight: 600; color: var(--text); }
.review-amount { font-size: 15px; font-weight: 600; color: var(--primary); }
.review-date { font-size: 13px; color: var(--muted); }
.review-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.badge-cat { background: var(--primary-l); color: var(--primary); border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 500; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.review-edit-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.review-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .review-edit-grid { grid-template-columns: 1fr; } }
.review-raw { margin-top: 12px; }
.review-raw summary { font-size: 12px; color: var(--muted); cursor: pointer; }
.review-raw pre { font-size: 11px; color: var(--muted); background: var(--bg); padding: 10px; border-radius: 6px; margin-top: 8px; overflow-x: auto; white-space: pre-wrap; }

/* ─── Plaid ─── */
.plaid-items { display: flex; flex-direction: column; gap: 12px; }
.plaid-item-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
}
.plaid-item-name { font-size: 15px; font-weight: 600; color: var(--text); }
.plaid-item-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.plaid-status {
  margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
}
.plaid-status-success { background: #D1FAE5; color: #065F46; }
.plaid-status-error { background: #FEE2E2; color: #991B1B; }
.plaid-status-info { background: var(--primary-l); color: var(--primary); }
.btn-danger-outline {
  background: none; border: 1px solid var(--danger); color: var(--danger);
  border-radius: var(--radius-sm); padding: 6px 14px; font-size: 13px;
  cursor: pointer; font-family: inherit;
}
.btn-danger-outline:hover { background: #FEE2E2; }
.help-text { font-size: 13px; color: var(--muted); }

/* ─── Cards ─── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 12px 16px;
}
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.card-desc { font-size: 14px; color: var(--muted); margin-bottom: 12px; }

/* ─── Page header ─── */
.page-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
}
.page-header-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.page-month { font-size: 15px; font-weight: 600; }
.page-header-simple {
  padding: 16px 16px 8px;
}
.page-header-simple h1 { font-size: 22px; font-weight: 700; }

/* ─── Margin hero ─── */
.margin-hero {
  margin: 12px 16px;
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  text-align: center;
  background: var(--primary);
  color: #fff;
}
.margin-hero.margin-amber { background: #B45309; }
.margin-hero.margin-red { background: #B91C1C; }
.margin-label { font-size: 13px; font-weight: 500; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.5px; }
.margin-number { font-size: 44px; font-weight: 700; letter-spacing: -1px; margin: 4px 0; }
.margin-sub { font-size: 14px; opacity: 0.85; }
.margin-over { opacity: 1; font-weight: 600; }
.margin-breakdown {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.breakdown-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.breakdown-label { font-size: 11px; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.3px; }
.breakdown-val { font-size: 18px; font-weight: 600; }
.breakdown-sep { font-size: 18px; opacity: 0.5; }

/* ─── Income hero ─── */
.income-hero {
  margin: 12px 16px;
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  text-align: center;
  background: var(--income);
  color: #fff;
}
.income-label { font-size: 13px; font-weight: 500; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.5px; }
.income-number { font-size: 40px; font-weight: 700; letter-spacing: -1px; margin: 4px 0; }
.income-sub { font-size: 14px; opacity: 0.85; }

/* ─── Section ─── */
.section { padding: 4px 0; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 8px;
}
.section-header h2 { font-size: 16px; font-weight: 600; }
.section-link { font-size: 14px; color: var(--primary); }

/* ─── Budget list (dashboard widget) ─── */
.budget-list { padding: 0 16px 8px; }
.budget-row { margin-bottom: 12px; }
.budget-row-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 5px;
}
.budget-cat { font-size: 14px; font-weight: 500; }
.budget-amounts { font-size: 13px; color: var(--muted); }

/* ─── Budget items (full page) ─── */
.budget-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.budget-item:last-child { border-bottom: none; }
.budget-item-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.budget-item-right { display: flex; align-items: center; gap: 6px; }
.budget-spend-label { font-size: 15px; font-weight: 600; }
.budget-limit-label { font-size: 13px; color: var(--muted); }
.budget-item-footer {
  display: flex; justify-content: space-between; margin-top: 5px;
  font-size: 12px; color: var(--muted);
}

/* ─── Progress bar ─── */
.progress-bar {
  height: 6px; background: var(--border); border-radius: 3px; overflow: hidden;
}
.progress-fill { height: 100%; border-radius: 3px; transition: width 0.3s ease; }
.progress-green  { background: var(--success); }
.progress-amber  { background: var(--warning); }
.progress-red    { background: var(--danger); }

/* ─── Transaction list ─── */
.txn-list { }
.txn-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.txn-row:last-child { border-bottom: none; }
.txn-cat-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  background: var(--dim);
}
/* Category colors */
.cat-housing           { background: #6366F1; }
.cat-food-dining       { background: #F59E0B; }
.cat-groceries         { background: #10B981; }
.cat-transport         { background: #3B82F6; }
.cat-healthcare        { background: #EC4899; }
.cat-entertainment     { background: #8B5CF6; }
.cat-shopping          { background: #EF4444; }
.cat-utilities         { background: #64748B; }
.cat-subscriptions     { background: #0EA5E9; }
.cat-income            { background: #22C55E; }
.cat-savings           { background: #2E7D5E; }
.cat-other             { background: #9CA3AF; }

.txn-info { flex: 1; min-width: 0; }
.txn-merchant { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txn-date { font-size: 12px; color: var(--muted); }
.txn-meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.txn-note { display: block; font-size: 12px; color: var(--muted); font-style: italic; }
.txn-amount { font-size: 15px; font-weight: 600; color: var(--text); flex-shrink: 0; }
.txn-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

/* Inline category select */
.cat-inline {
  background: transparent; border: none; font-size: 12px; color: var(--muted);
  cursor: pointer; padding: 0; outline: none;
  -webkit-appearance: none; appearance: none;
}

/* ─── Month nav ─── */
.month-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
}
.month-nav-label { font-size: 15px; font-weight: 600; }
.month-nav-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--primary); font-size: 18px; text-decoration: none;
  background: var(--primary-l);
}

/* ─── Income rows ─── */
.income-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.income-row:last-child { border-bottom: none; }
.income-inactive { opacity: 0.5; }
.income-info { flex: 1; }
.income-name { display: block; font-size: 14px; font-weight: 500; }
.income-freq { font-size: 13px; color: var(--muted); }
.income-actions { display: flex; align-items: center; gap: 6px; }

/* ─── Forms ─── */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text); }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }
.flex-1 { flex: 1; }
.inline-form .form-row { align-items: flex-end; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  background: #fff;
}
input[type="file"] { padding: 8px 12px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; font-family: inherit;
  border: none; cursor: pointer; transition: background 0.15s, transform 0.1s;
  text-decoration: none; line-height: 1;
  min-height: 44px;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); text-decoration: none; color: #fff; }
.btn-secondary { background: var(--primary-l); color: var(--primary); }
.btn-secondary:hover { background: #d0ede4; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--muted); border: 1.5px solid var(--border); }
.btn-full { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; min-height: 32px; }
.btn-delete {
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--dim); line-height: 1;
  padding: 4px 6px; border-radius: 4px;
}
.btn-delete:hover { color: var(--danger); background: #FEF2F2; }
.add-form { }

/* ─── Alerts ─── */
.alert {
  margin: 12px 16px; padding: 12px 14px;
  border-radius: var(--radius-sm); font-size: 14px;
}
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }

/* ─── Auth ─── */
.auth-body { background: var(--bg); }
.auth-wrap {
  max-width: 400px; margin: 0 auto;
  padding: 40px 20px 60px;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo-mark {
  width: 64px; height: 64px; background: var(--primary); color: #fff;
  border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; margin-bottom: 10px;
}
.auth-logo-name { font-size: 26px; font-weight: 700; color: var(--primary); }
.auth-tagline { font-size: 14px; color: var(--muted); margin-top: 4px; }
.auth-form { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.auth-switch { text-align: center; font-size: 14px; color: var(--muted); margin-top: 16px; }
.auth-invite-msg { font-size: 15px; text-align: center; margin-bottom: 16px; color: var(--text); }
.invite-link { font-size: 12px; word-break: break-all; display: block; margin-top: 6px; }

/* ─── Empty state ─── */
.empty-state {
  text-align: center; padding: 32px 16px;
  color: var(--muted); font-size: 14px;
}
.empty-state p { margin-bottom: 12px; }
.empty-action { display: block; text-align: center; padding: 8px 16px; font-size: 14px; color: var(--primary); }

/* ─── Settings & members ─── */
.members-list { }
.member-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.member-row:last-child { border-bottom: none; }
.member-avatar {
  width: 34px; height: 34px; background: var(--primary-l); color: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.member-info { flex: 1; }
.member-email { display: block; font-size: 14px; font-weight: 500; }
.member-role { font-size: 11px; padding: 2px 6px; border-radius: 4px; }

/* ─── Badges / roles ─── */
.badge-owner      { background: #EFF6FF; color: #1D4ED8; font-size: 11px; padding: 2px 7px; border-radius: 4px; font-weight: 600; }
.badge-member     { background: var(--primary-l); color: var(--primary); font-size: 11px; padding: 2px 7px; border-radius: 4px; font-weight: 600; }
.badge-super_admin { background: #FEF9C3; color: #92400E; font-size: 11px; padding: 2px 7px; border-radius: 4px; font-weight: 600; }

/* ─── Admin ─── */
.admin-household {
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.admin-household:last-child { border-bottom: none; }
.admin-hh-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.admin-members { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-member-tag { font-size: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; padding: 6px 8px; border-bottom: 2px solid var(--border); color: var(--muted); font-weight: 600; }
.admin-table td { padding: 8px 8px; border-bottom: 1px solid var(--border); }

/* ─── Upload ─── */
.format-list { padding-left: 18px; font-size: 14px; color: var(--muted); line-height: 2; }

/* ─── Utilities ─── */
.muted { color: var(--muted); font-size: 13px; }
.text-muted { color: var(--muted); font-size: 14px; }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger  { color: var(--danger); }

/* ─── Responsive tweaks ─── */
@media (max-width: 400px) {
  .margin-number { font-size: 36px; }
  .card { margin: 10px 12px; padding: 14px; }
}
