:root {
  --purple-dark: #6B5F9E;
  --purple: #6B5F9E;
  --purple-light: #EEEAF6;
  --white: #FFFFFF;
  --bg: #F7F7F5;
  --card: #FFFFFF;
  --text: #1A1A1A;
  --subtext: #6B6B6B;
  --border: #E9E9E7;
  --green: #6B5F9E;
  --green-light: #EEEAF6;
  --red: #E55353;
  --red-light: #FDF0F0;
  --amber: #D1A075;
  --amber-light: #FDF8F4;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #F7F7F5;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.6;
}
h1, h2, h3, h4, .section-title, .app-title {
  font-weight: 600;
  letter-spacing: -0.2px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #EFEFED;
  padding: 16px 20px;
}
.header-card {
  background: #FFFFFF;
  border: 1px solid #EFEFED;
  box-shadow: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #5A4F8A; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #D04343; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--subtext);
  transition: all .15s;
  font-family: inherit;
}
.btn-icon:hover { background: var(--bg); color: var(--text); }
.btn-block { width: 100%; }
input, select, textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color .15s;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--green); }
input::placeholder, textarea::placeholder { color: #9B9B9B; }
textarea { resize: vertical; min-height: 80px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--subtext); margin-bottom: 6px; }
.form-group { margin-bottom: 14px; }
.form-row { display: flex; gap: 10px; }
.form-row > * { flex: 1; }
.currency-input-wrap { position: relative; display: flex; gap: 8px; align-items: center; }
.currency-input-wrap input { flex: 1; }
.currency-input-wrap select { width: auto; min-width: 80px; flex-shrink: 0; padding: 8px 10px; }
.icon { width: 18px; height: 18px; stroke-width: 1.75; vertical-align: middle; }
.icon-lg { width: 24px; height: 24px; stroke-width: 1.5; vertical-align: middle; }
.icon-sm { width: 14px; height: 14px; stroke-width: 2; vertical-align: middle; }
/* Top bar */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 48px;
  background: #FFFFFF;
  display: flex; align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}
#topbar .app-title {
  font-size: 15px; font-weight: 600; color: var(--text); flex: 1;
}
#topbar .topbar-actions { display: flex; gap: 4px; }
.topbar-icon-btn {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: transparent; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--subtext); transition: all .15s;
}
.topbar-icon-btn:hover { background: var(--bg); color: var(--text); }
/* Bottom nav — mobile */
#bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; padding: 10px 4px;
  cursor: pointer; border: none; background: transparent;
  font-family: inherit; color: #9B9B9B;
  transition: color .15s; font-size: 11px; font-weight: 600;
}
.nav-item.active { color: var(--green); }
.nav-item svg { width: 22px; height: 22px; stroke-width: 1.5; }

/* Sidebar brand + footer: hidden on mobile, shown on desktop */
.sidebar-brand,
.sidebar-footer { display: none; }

/* Desktop Sidebar overrides */
@media (min-width: 768px) {
  #app-screen { margin-left: 240px; }

  #bottom-nav {
    position: fixed;
    top: 48px; left: 0; bottom: 0; right: auto;
    width: 240px;
    flex-direction: column; justify-content: flex-start;
    align-items: flex-start;
    border-top: none; border-right: none;
    padding: 8px 8px;
    background: #191919;
    overflow-y: auto;
  }

  .nav-item {
    flex-direction: row; gap: 10px;
    padding: 5px 12px;
    margin-bottom: 1px;
    min-height: 30px;
    width: 100%; font-size: 14px; font-weight: 500;
    justify-content: flex-start;
    color: rgba(255, 255, 255, 0.65);
    border-radius: 6px;
    position: relative;
  }

  .nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
  }

  .nav-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    font-weight: 600;
  }

  .nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 60%;
    border-radius: 0 3px 3px 0;
    background: var(--green);
  }

  /* Override inline icon sizes inside sidebar */
  #bottom-nav .nav-item svg {
    width: 18px !important; height: 18px !important;
    min-width: 18px; flex-shrink: 0;
    stroke-width: 1.5;
  }

  #topbar {
    left: 240px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
  }

  /* Sidebar brand (logo area at top of sidebar) */
  .sidebar-brand {
    display: flex;
    position: fixed;
    top: 0; left: 0;
    width: 240px; height: 48px;
    background: #191919;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    z-index: 102;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .sidebar-brand svg {
    width: 20px; height: 20px; flex-shrink: 0;
  }

  .sidebar-brand-text {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.3px;
  }

  /* Sidebar footer (settings row at bottom of sidebar) */
  .sidebar-footer {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0; left: 0;
    width: 240px;
    background: #191919;
    z-index: 102;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .sidebar-divider {
    display: block;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 8px;
  }

  .sidebar-footer-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    margin: 4px 8px 8px;
    min-height: 32px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    width: calc(100% - 16px);
    text-align: left;
    transition: background .15s, color .15s;
    border-radius: 6px;
  }

  .sidebar-footer-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
  }

  .sidebar-footer-btn svg {
    width: 18px !important; height: 18px !important;
    flex-shrink: 0;
  }

  /* Adjust bottom-nav to account for brand header */
  #bottom-nav {
    top: 48px;
  }
}
/* Screens */
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; }
/* Tab panels */
.tab-panel { display: none; padding-top: 68px; padding-bottom: 80px; padding-inline: 20px; max-width: 800px; margin: 0 auto; }
.tab-panel.active { display: block; }
/* Modals */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(2px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: #fff;
  border-radius: 12px 12px 0 0;
  width: 100%; max-width: 500px; max-height: 92vh;
  overflow-y: auto; padding: 24px 20px;
  transform: translateY(100%); transition: transform .25s cubic-bezier(.32,0,.67,0);
}
@media (min-width: 768px) {
  .modal-overlay { align-items: center; }
  .modal-box { border-radius: var(--radius); transform: scale(0.96) translateY(0); opacity: 0; transition: all 0.2s; }
  .modal-overlay.open .modal-box { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.modal-title { font-size: 16px; font-weight: 600; }
.modal-close {
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  background: var(--bg); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--subtext);
}
/* Center modals (for dialogs) */
.modal-overlay.center { align-items: center; padding: 20px; }
.modal-overlay.center .modal-box { border-radius: var(--radius); max-width: 400px; margin: auto; transform: scale(.93); }
.modal-overlay.center.open .modal-box { transform: scale(1); }
/* Toast */
#toast-container {
  position: fixed; top: 56px; left: 50%; transform: translateX(-50%);
  z-index: 999; display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: #1A1A1A; color: #fff;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(-10px);
  transition: all .2s; pointer-events: none;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
.toast.info { background: var(--purple); }
/* Offline banner */
#offline-banner {
  position: fixed; top: 48px; left: 0; right: 0; z-index: 99;
  background: var(--amber); color: #fff;
  text-align: center; padding: 6px 16px;
  font-size: 13px; font-weight: 600; display: none;
}
/* Section headers */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; margin-top: 24px;
}
.section-header:first-child { margin-top: 0; }
.section-title { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtext); }
/* Tags & badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600;
}
.badge-purple { background: var(--purple-light); color: var(--purple-dark); }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-red { background: var(--red-light); color: var(--red); }
.badge-amber { background: var(--amber-light); color: var(--amber); }
.badge-gray { background: #F2F2F0; color: var(--subtext); }
/* Progress bar */
.progress-wrap { background: #F2F2F0; border-radius: 4px; height: 6px; overflow: hidden; margin: 8px 0; }
.progress-bar { height: 100%; border-radius: 4px; background: var(--green); transition: width .4s; }
.progress-bar.green { background: var(--green); }
.progress-bar.red { background: var(--red); }
/* Empty state */
.empty-state {
  text-align: center; padding: 40px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: transparent; box-shadow: none; border: 1px dashed var(--border);
}
.empty-state-icon { color: var(--green); margin-bottom: 4px; }
.empty-state h3 { font-size: 15px; font-weight: 600; }
.empty-state p { font-size: 13px; color: var(--subtext); max-width: 280px; line-height: 1.5; }
/* Toggle switch */
.toggle-wrap { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.toggle-wrap:last-child { border-bottom: none; }
.toggle-label { font-size: 14px; font-weight: 500; }
.toggle-sub { font-size: 12px; color: var(--subtext); margin-top: 2px; }
.toggle {
  position: relative; width: 40px; height: 22px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--border); border-radius: 9999px; cursor: pointer;
  transition: background .2s;
}
.toggle-slider:before {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; left: 2px; top: 2px;
  transition: transform .2s;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.toggle input:checked + .toggle-slider { background: var(--green); }
.toggle input:checked + .toggle-slider:before { transform: translateX(18px); }
/* Segment control */
.segment-control {
  display: flex; background: #F2F2F0; border-radius: var(--radius-sm);
  padding: 3px; gap: 2px; margin-bottom: 14px;
}
.segment-btn {
  flex: 1; padding: 6px 12px; border: none; background: transparent;
  border-radius: 4px; font-family: inherit; font-size: 13px;
  font-weight: 600; color: var(--subtext); cursor: pointer; transition: all .15s;
}
.segment-btn.active { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
/* Quick shortcuts */
.shortcuts-bar { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; }
.shortcuts-bar::-webkit-scrollbar { display: none; }
.shortcut-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--border);
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--text); cursor: pointer; white-space: nowrap;
  transition: all .15s; flex-shrink: 0;
}
.shortcut-btn:hover { border-color: var(--green); color: var(--green); }
/* Debt card */
.debt-card { margin-bottom: 12px; }
.debt-card-header { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.debt-card-title { flex: 1; font-weight: 600; font-size: 15px; }
.debt-card-amount { font-size: 16px; font-weight: 700; color: var(--red); }
.debt-card-body { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); display: none; }
.debt-card-body.open { display: block; }
.debt-card-actions { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.payment-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--bg); font-size: 13px;
}
.payment-item:last-child { border-bottom: none; }
/* Envelope card */
.envelope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 600px) { .envelope-grid { grid-template-columns: 1fr 1fr 1fr; } }
.envelope-card { cursor: pointer; transition: transform .15s; }
.envelope-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.envelope-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.envelope-goal { font-size: 13px; color: var(--subtext); margin-bottom: 8px; }
.envelope-meta { font-size: 12px; color: var(--subtext); margin-top: 6px; }
.envelope-overdue { font-size: 12px; color: var(--red); font-weight: 500; margin-top: 6px; }
/* Bill items */
.bill-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.bill-item:last-child { border-bottom: none; }
.bill-info { flex: 1; }
.bill-name { font-weight: 600; font-size: 14px; }
.bill-meta { font-size: 13px; color: var(--subtext); margin-top: 3px; }
.bill-amount { font-weight: 600; font-size: 15px; text-align: right; margin-bottom: 3px; }
.bill-actions { display: flex; gap: 2px; }
/* Income items */
.income-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.income-item:last-child { border-bottom: none; }
.income-info { flex: 1; }
.income-source { font-weight: 600; font-size: 14px; }
.income-meta { font-size: 13px; color: var(--subtext); margin-top: 3px; }
.income-amount { font-weight: 600; font-size: 15px; color: var(--green); }
/* Wishlist */
.wishlist-item { margin-bottom: 14px; }
.wishlist-header { display: flex; align-items: flex-start; gap: 10px; }
.wishlist-name { flex: 1; font-weight: 600; font-size: 15px; line-height: 1.4; }
.wishlist-price { font-weight: 600; font-size: 15px; color: var(--purple-dark); }
.wishlist-actions { display: flex; gap: 6px; margin-top: 14px; }
.timer-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 4px;
  background: var(--purple-light); color: var(--purple-dark);
  font-size: 12px; font-weight: 600; margin-top: 8px;
}
.timer-expired { background: var(--amber-light); color: var(--amber); }
/* Net worth card */
.net-worth-card { margin-bottom: 20px; padding: 20px; }
.net-worth-number { font-size: 32px; font-weight: 700; letter-spacing: -1px; margin: 8px 0; }
.net-worth-row { display: flex; gap: 12px; margin-top: 16px; }
.nw-item { flex: 1; padding: 10px; background: var(--bg); border-radius: var(--radius-sm); }
.nw-label { font-size: 11px; font-weight: 600; color: var(--subtext); text-transform: uppercase; letter-spacing: .5px; }
.nw-value { font-size: 15px; font-weight: 600; margin-top: 4px; }
/* Onboarding */
#onboarding-screen {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 24px;
}
.onb-step { display: none; width: 100%; max-width: 400px; text-align: center; }
.onb-step.active { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.onb-logo { font-size: 40px; font-weight: 700; color: var(--text); letter-spacing: -1.5px; }
.onb-title { font-size: 24px; font-weight: 600; color: var(--text); line-height: 1.2; }
.onb-sub { font-size: 15px; color: var(--subtext); line-height: 1.5; }
.onb-dots { display: flex; gap: 8px; margin-top: 8px; }
.onb-dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--border); transition: all .2s; }
.onb-dot.active { background: var(--green); width: 24px; }
.onb-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.onb-choice-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer; color: var(--text); transition: all .15s; font-weight: 600; font-size: 13px;
  text-align: center;
}
.onb-choice-card:hover, .onb-choice-card.selected {
  background: var(--green-light); border-color: var(--green); color: #6B5F9E;
}
.onb-form { width: 100%; text-align: left; }
/* Auth screen */
#auth-screen {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 20px; background: var(--bg);
}
.auth-card { width: 100%; max-width: 400px; }
.auth-logo-wrap { text-align: center; margin-bottom: 24px; }
.auth-app-title { font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; }
.auth-subtitle { font-size: 14px; color: var(--subtext); margin-top: 4px; }
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 10px 20px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--border);
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--text); cursor: pointer; box-shadow: var(--shadow);
  transition: all .15s; margin-bottom: 20px;
}
.google-btn:hover { box-shadow: var(--shadow-md); background: #fafafa; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--subtext); font-size: 12px; margin-bottom: 20px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-tabs { display: flex; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.auth-tab {
  flex: 1; padding: 10px; background: none; border: none;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--subtext); cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all .15s;
}
.auth-tab.active { color: var(--green); border-bottom-color: var(--green); }
.auth-error {
  background: var(--red-light); color: var(--red);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 13px; font-weight: 500; margin-bottom: 14px; display: none;
}
.auth-error.show { display: block; }
.auth-link { color: var(--green); font-size: 13px; font-weight: 600; cursor: pointer; background: none; border: none; font-family: inherit; }
/* Loading screen */
#loading-screen {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  background: var(--bg);
}
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--green-light);
  border-top-color: var(--green);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* FAB */
#quiz-fab {
  position: fixed; bottom: 80px; right: 20px; z-index: 90;
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--green); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(107,95,158,.35);
  transition: all .15s;
}
#quiz-fab:hover { background: #5A4F8A; transform: scale(1.04); }
/* Quiz */
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-choices { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.quiz-choice {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: var(--radius);
  border: 1px solid var(--border); cursor: pointer;
  background: #fff; font-family: inherit;
  font-size: 14px; font-weight: 500; text-align: left;
  transition: all .15s; color: var(--text);
}
.quiz-choice:hover { border-color: var(--green-light); }
.quiz-choice.selected { border-color: var(--green); background: var(--green-light); color: #6B5F9E; font-weight: 600; }
/* Collapsible archived */
.collapsible-header {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; padding: 14px 0; margin-top: 12px;
}
.collapsible-content { display: none; }
.collapsible-content.open { display: block; }
/* Settings */
.settings-section { margin-bottom: 28px; }
.settings-section-title {
  font-size: 11px; font-weight: 600; color: var(--subtext);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 10px; padding-left: 4px;
}
.danger-zone { border: 1px solid var(--red-light); border-radius: var(--radius); padding: 16px; }
/* Confirmation modal */
.confirm-icon-wrap {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: var(--red-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
/* Snackbar-style info */
.info-banner {
  background: var(--amber-light); border: 1px solid #EED3BA;
  border-radius: var(--radius-sm); padding: 12px 14px;
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px;
}
.info-banner-text { flex: 1; font-size: 13px; color: #9A6940; font-weight: 500; line-height: 1.5; }
/* Sub total */
.sub-total-banner {
  background: var(--green-light); border-radius: var(--radius-sm);
  padding: 14px 18px; margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
/* Priority filter */
.priority-filter { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 14px; }
.priority-filter::-webkit-scrollbar { display: none; }
.filter-chip {
  padding: 6px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--subtext);
  background: #fff; cursor: pointer; white-space: nowrap; transition: all .15s;
}
.filter-chip.active { background: var(--text); color: #fff; border-color: var(--text); }
/* Month group */
.month-group-header {
  font-size: 11px; font-weight: 600; color: var(--subtext);
  text-transform: uppercase; letter-spacing: .08em;
  padding: 20px 0 6px; border-bottom: 1px solid var(--border); margin-bottom: 10px;
}
