/* CSS custom properties — light mode defaults */
:root {
  --bg: #ffffff;
  --bg-surface: #f4f4f5;
  --text: #09090b;
  --text-muted: #71717a;
  --border: #e4e4e7;
  --accent: #6366f1;
  --accent-hover: #4f52c9;
  --sidebar-bg: #18181b;
  --sidebar-text: #fafafa;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
}

/* Dark mode overrides */
[data-theme="dark"] {
  --bg: #09090b;
  --bg-surface: #18181b;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --border: #27272a;
  --accent: #818cf8;
  --accent-hover: #6366f1;
  --sidebar-bg: #0c0c0e;
  --sidebar-text: #fafafa;
}

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

/* Base */
html {
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Buttons */
button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--bg-surface);
  text-decoration: none;
}

/* Card */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

/* App layout */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-header {
  padding: 0.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sidebar-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-brand:hover {
  text-decoration: none;
  opacity: 0.9;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  color: var(--sidebar-text);
  opacity: 0.7;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.1s ease, background 0.1s ease;
}

.sidebar-link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.sidebar-link.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

/* User section in sidebar footer */
.user-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  width: 100%;
  border: none;
  background: none;
  color: var(--sidebar-text);
  text-align: left;
  transition: background 0.1s ease;
}

.user-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sidebar-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 0.75rem;
  color: var(--sidebar-text);
  opacity: 0.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* User menu popup */
.user-menu {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 50;
}

.user-menu.open {
  display: block;
}

.user-menu-header {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.user-menu-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.user-menu-email {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  text-decoration: none;
  transition: background 0.1s ease;
}

.user-menu-item:hover {
  background: var(--bg);
  text-decoration: none;
}

.user-menu-item.danger {
  color: #ef4444;
}

/* Main content */
.main-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  min-height: 100vh;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Auth screens */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 1rem;
}

.auth-card {
  max-width: 440px;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
}

.auth-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-footer {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Hamburger (hidden by default, shown on mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

/* Top bar (visible on mobile) */
.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

/* Page header */
.page-header {
  margin-bottom: 1.5rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.page-subtitle {
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 49;
}

/* Responsive — mobile */
@media (max-width: 768px) {
  .app-layout {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    bottom: 0;
    z-index: 50;
    transition: left 0.2s ease;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-overlay.open {
    display: block;
  }

  .hamburger {
    display: flex;
  }

  .topbar {
    display: flex;
  }

  .main-content {
    padding: 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* Landing page specific */
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
}

.landing-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.landing-hero {
  max-width: 720px;
  margin: 5rem auto 4rem;
  text-align: center;
  padding: 0 1rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Landing page hero specifics */
.landing-hero h1,
.landing-hero .hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
}

.landing-hero .tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 1rem auto;
}

.landing-hero .cta {
  margin-top: 2rem;
}

/* Auth card form specifics */
.auth-card h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.auth-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.auth-card input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1rem;
  font-family: inherit;
}

.auth-card input:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.auth-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.auth-alt {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-alt a {
  color: var(--accent);
  text-decoration: underline;
}

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

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

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.w-full { width: 100%; }

/* Onboarding cards (dashboard empty state) */
.onboarding-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.onboarding-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.onboarding-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.onboarding-card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Settings page */
.settings-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.settings-section:last-child {
  border-bottom: none;
}

.settings-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.passkey-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.passkey-item .passkey-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.passkey-id {
  font-family: monospace;
  font-size: 0.875rem;
}

.passkey-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.theme-options {
  display: flex;
  gap: 0.5rem;
}

.theme-option {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  cursor: pointer;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.theme-option.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-surface);
}

.verified-badge {
  color: #22c55e;
  font-size: 0.875rem;
}

.unverified-badge {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Onboarding cards (dashboard empty state) */
.onboarding-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.onboarding-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.onboarding-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.onboarding-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.onboarding-card .btn-primary[disabled],
.onboarding-card .btn-outline[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Balance colors (per D-14) */
.balance-positive { color: #22c55e; }
.balance-negative { color: #ef4444; }

/* Balance display */
.balance-amount {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Category badges (per D-11) */
.category-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
}
.category-food { background: #fef3c7; color: #92400e; }
.category-clothes { background: #ede9fe; color: #5b21b6; }
.category-entertainment { background: #fce7f3; color: #9d174d; }
.category-savings { background: #d1fae5; color: #065f46; }
.category-education { background: #dbeafe; color: #1e40af; }
.category-gifts { background: #fef9c3; color: #854d0e; }
.category-other { background: #f3f4f6; color: #374151; }

[data-theme="dark"] .category-food { background: #451a03; color: #fcd34d; }
[data-theme="dark"] .category-clothes { background: #2e1065; color: #c4b5fd; }
[data-theme="dark"] .category-entertainment { background: #500724; color: #f9a8d4; }
[data-theme="dark"] .category-savings { background: #022c22; color: #6ee7b7; }
[data-theme="dark"] .category-education { background: #172554; color: #93c5fd; }
[data-theme="dark"] .category-gifts { background: #422006; color: #fde047; }
[data-theme="dark"] .category-other { background: #1f2937; color: #9ca3af; }

/* Child balance card on dashboard */
.child-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.child-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.child-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.child-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* Transaction list */
.transaction-list {
  display: flex;
  flex-direction: column;
}

.transaction-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.transaction-row:last-child {
  border-bottom: none;
}

.transaction-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
  flex: 1;
}

.transaction-desc {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transaction-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.transaction-amount {
  font-size: 0.9375rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* Form styles for child pages */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Date range filter */
.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-bar .form-group {
  margin-bottom: 0;
}

/* Section divider */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

/* Button variants */
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #ef4444;
  color: #ffffff;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

/* Empty state for sections */
.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
}

.empty-state p {
  margin-bottom: 1rem;
}

/* Allowance config section */
.allowance-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.status-active { color: #22c55e; }
.status-paused { color: var(--text-muted); }

/* Chore status badges */
.chore-status-active    { background: #f3f4f6; color: #374151; }
.chore-status-completed { background: #fef9c3; color: #854d0e; }
.chore-status-approved  { background: #d1fae5; color: #065f46; }

[data-theme="dark"] .chore-status-active    { background: #1f2937; color: #9ca3af; }
[data-theme="dark"] .chore-status-completed { background: #422006; color: #fde047; }
[data-theme="dark"] .chore-status-approved  { background: #022c22; color: #6ee7b7; }

/* Progress bar */
.progress-bar-track {
  width: 100%;
  height: 0.5rem;
  background: var(--border);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.375rem;
}

.progress-bar-fill {
  height: 100%;
  background: #22c55e;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Phase 4: Household UI */

/* Role badges — mirrors .category-badge pattern */
.role-badge {
  display: inline-block;
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.role-badge-owner {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
}

.role-badge-admin {
  color: var(--text-muted);
  background: var(--bg-surface);
}

/* Member list items — mirrors .passkey-item pattern */
.member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.member-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.member-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.member-email {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Invitation list items — same structure as .member-item */
.invite-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.invite-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.invite-email {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.invite-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.invite-actions {
  display: flex;
  gap: 0.5rem;
}

/* Invitation status badges */
.invite-status-pending {
  display: inline-block;
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  background: #fef9c3;
  color: #854d0e;
}

.invite-status-expired {
  display: inline-block;
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  background: #f3f4f6;
  color: #6b7280;
}

[data-theme="dark"] .invite-status-pending {
  background: #422006;
  color: #fef08a;
}

[data-theme="dark"] .invite-status-expired {
  background: #1f2937;
  color: #9ca3af;
}

/* Household switcher section in user menu */
.user-menu-section {
  padding-top: 0.5rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--border);
}

.user-menu-section-label {
  padding: 0.375rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.user-menu-item.active {
  background: var(--bg);
  font-weight: 600;
}
