@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Schibsted+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #33383f;
  --ink-soft: #687078;
  --muted: #8d9294;
  --line: #deded7;
  --canvas: #f2f0eb;
  --white: #fbfaf5;
  --lime: #2f9179;
  --lime-deep: #25745f;
  --coral: #c98654;
  --coral-pale: #f4e6d7;
  --lavender: #e4e1da;
  --mint: #dbece4;
  --yellow: #ead8b9;
  --shadow: 0 18px 45px rgba(51, 56, 63, 0.07);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
*[hidden] { display: none !important; }
html { background: var(--canvas); }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select { font: inherit; }
button { color: inherit; border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(47, 145, 121, .45); outline-offset: 2px; }

.app-shell { min-height: 100dvh; display: flex; }
.side-rail { width: 246px; min-height: 100dvh; background: var(--ink); color: #fff; padding: 30px 18px 22px; display: flex; flex-direction: column; flex: 0 0 auto; }
.brand-lockup, .mobile-brand { display: inline-flex; align-items: center; gap: 10px; font-family: 'Schibsted Grotesk', 'Helvetica Neue', Helvetica, sans-serif; font-size: 23px; letter-spacing: -.045em; font-weight: 600; color: #fff; }
.brand-mark { width: 27px; height: 27px; position: relative; display: inline-block; flex: 0 0 auto; color: transparent; font-size: 0; line-height: 1; }
.brand-mark::before { content: ''; position: absolute; left: 3px; top: 2px; width: 5px; height: 23px; background: var(--lime); border-radius: 1px; }
.brand-mark::after { content: ''; position: absolute; left: 10px; top: 2px; width: 15px; height: 5px; background: var(--lime); border-radius: 1px; box-shadow: 0 9px 0 var(--lime); }
.brand-mark.small { width: 23px; height: 23px; }
.brand-mark.small::before { left: 2px; top: 2px; width: 4px; height: 19px; }
.brand-mark.small::after { left: 8px; top: 2px; width: 13px; height: 4px; box-shadow: 0 7px 0 var(--lime); }
.brand-dot { color: var(--lime); }
.rail-label { margin: 39px 14px 20px; color: #74798a; text-transform: uppercase; letter-spacing: .14em; font-size: 9px; font-family: 'DM Mono', monospace; }
.rail-nav { display: grid; gap: 7px; }
.nav-item { display: flex; align-items: center; gap: 13px; padding: 12px 14px; color: #aeb2bf; background: transparent; border-radius: 12px; text-align: left; font-weight: 600; font-size: 13px; transition: background .2s, color .2s, transform .2s; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); transform: translateX(2px); }
.nav-item.is-active { color: var(--ink); background: var(--lime); }
.nav-icon { min-width: 18px; display: inline-flex; justify-content: center; font-size: 18px; font-weight: 500; line-height: 1; }
.nav-count { margin-left: auto; font-size: 10px; border-radius: 100px; padding: 3px 7px; background: rgba(255,255,255,.1); color: #c8cbd4; }
.nav-item.is-active .nav-count { color: var(--ink); background: rgba(31,36,52,.1); }
.rail-bottom { margin-top: auto; display: grid; gap: 18px; }
.space-rail-card { padding: 12px 11px; display: flex; align-items: center; gap: 10px; color: #fff; text-align: left; border: 1px solid #3b4050; background: rgba(255,255,255,.04); border-radius: 14px; }
.space-rail-card small, .profile-row small { display: block; margin-bottom: 3px; color: #858b9d; font-size: 9px; letter-spacing: .01em; }
.space-rail-card strong { font-size: 12px; }
.space-rail-card .chevron { margin-left: auto; color: #7f8492; }
.space-avatar { width: 29px; height: 29px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 800; }
.space-avatar.shared { background: var(--lavender); }
.profile-row { display: flex; align-items: center; gap: 10px; padding: 0 5px; color: #fff; background: transparent; text-align: left; }
.profile-row strong { display: block; font-size: 11px; }
.profile-row .chevron { margin-left: auto; color: #7f8492; }
.profile-avatar, .mini-avatar { width: 31px; height: 31px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #f2c4a9; color: #714c3e; font-size: 11px; font-weight: 800; }

.main-content { position: relative; flex: 1; min-width: 0; max-width: 1440px; padding: 44px clamp(24px, 5vw, 70px) 70px; }
.mobile-header, .mobile-context-row, .bottom-nav, .mobile-fab { display: none; }
.desktop-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 0 auto 37px; max-width: 1160px; }
.eyebrow { margin: 0 0 9px; color: #a0a4ac; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .11em; font-weight: 500; text-transform: uppercase; }
.coral-eyebrow { color: #df735f; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Schibsted Grotesk', 'Helvetica Neue', Helvetica, sans-serif; }
h1 { margin-bottom: 7px; letter-spacing: -.06em; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.08; }
h2 { margin-bottom: 0; letter-spacing: -.055em; font-size: 21px; line-height: 1.15; }
h3 { margin-bottom: 8px; letter-spacing: -.04em; font-size: 16px; line-height: 1.25; }
.muted { color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.wave { display: inline-block; margin-left: 3px; color: #f1a44c; font-size: .82em; transform: rotate(-12deg); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.icon-button { width: 37px; height: 37px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 50%; font-size: 20px; color: var(--ink-soft); position: relative; }
.icon-button.has-dot::after { content: ''; position: absolute; width: 6px; height: 6px; top: 5px; right: 5px; background: var(--coral); border: 2px solid var(--white); border-radius: 50%; }
.topbar-profile { display: inline-flex; align-items: center; gap: 8px; padding: 3px 4px 3px 3px; background: #fff; border: 1px solid var(--line); border-radius: 100px; font-size: 11px; font-weight: 700; }
.topbar-profile .chevron { color: var(--muted); padding-right: 7px; }
.chevron { font-size: 15px; line-height: 1; }

.view { display: none; max-width: 1160px; margin: 0 auto; }
.view.is-visible { display: block; animation: appear .32s ease-out; }
@keyframes appear { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.home-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; row-gap: 26px; }
.hero-card { min-height: 220px; grid-column: span 7; padding: 28px 30px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.hero-topline, .hero-footer { display: flex; align-items: center; position: relative; z-index: 1; }
.hero-label { color: #b6bac6; font-size: 11px; }
.visibility-toggle { margin-left: auto; color: #bcc0cb; background: transparent; font-size: 17px; padding: 2px; }
.hero-balance { margin: 27px 0 25px; font-size: clamp(31px, 3.5vw, 49px); letter-spacing: -.075em; font-weight: 800; line-height: 1; position: relative; z-index: 1; }
.hero-footer { gap: 9px; font-size: 11px; }
.trend-positive { color: #83a92e; font-weight: 800; }
.hero-card .trend-positive { color: var(--lime); }
.hero-footnote { color: #838898; }
.hero-account { color: #d3d5dc; margin-left: auto; }
.hero-account span { color: var(--lime); margin-left: 4px; font-size: 15px; }
.hero-orbit { position: absolute; border: 1px solid rgba(201,242,100,.19); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 290px; height: 290px; right: -65px; top: -115px; }
.orbit-two { width: 220px; height: 220px; right: -22px; top: -79px; }
.summary-grid { display: grid; grid-column: span 5; grid-template-columns: 1fr 1fr; gap: 20px; }
.metric-card { padding: 22px 19px 18px; min-height: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; box-shadow: var(--shadow); }
.metric-icon { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; margin-bottom: auto; font-size: 19px; font-weight: 800; }
.metric-income .metric-icon { color: #7e9f27; background: var(--lime); }
.metric-expense .metric-icon { color: #d96d59; background: var(--coral-pale); }
.metric-card > span { color: var(--ink-soft); font-size: 11px; }
.metric-card strong { margin: 8px 0 6px; font-size: 18px; letter-spacing: -.06em; white-space: nowrap; }
.metric-card small { font-size: 10px; color: #7aa11e; font-weight: 700; }
.metric-card small em { color: var(--muted); font-style: normal; font-weight: 500; }
.metric-expense small { color: #d97765; }
.section-head { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-top: 3px; }
.quick-head { margin-top: 9px; }
.quick-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quick-action { min-height: 96px; padding: 15px 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; border-radius: var(--radius-md); text-align: left; transition: transform .2s, box-shadow .2s; }
.quick-action:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(35,38,51,.09); }
.quick-action > span:nth-child(2) { font-size: 10px; color: #515767; line-height: 1.35; }
.quick-action strong { color: var(--ink); font-size: 12px; }
.quick-symbol { width: 31px; height: 31px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; font-size: 20px; font-weight: 700; }
.quick-arrow { align-self: start; font-size: 14px; opacity: .6; }
.quick-expense { background: var(--coral-pale); }.quick-expense .quick-symbol { color: #d76d5a; background: #ffd1c8; }
.quick-income { background: #eef8c8; }.quick-income .quick-symbol { color: #708d27; background: var(--lime); }
.quick-goal { background: var(--mint); }.quick-goal .quick-symbol { color: #4e817a; background: #b7e2d7; }
.attention-card { grid-column: 1 / -1; display: flex; align-items: center; gap: 15px; padding: 17px 19px; background: #fff8f6; border: 1px solid #ffded8; border-radius: var(--radius-md); }
.attention-mark { width: 32px; height: 32px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; color: #df6b59; background: #ffd5cc; border-radius: 50%; font-weight: 800; }
.attention-copy { min-width: 0; }.attention-copy .eyebrow { margin-bottom: 5px; }.attention-copy h3 { margin-bottom: 4px; }.attention-copy p { margin: 0; color: #88827e; font-size: 11px; }.attention-copy p strong { color: #c36251; }
.text-button { margin-left: auto; white-space: nowrap; color: #c26351; background: transparent; font-size: 11px; font-weight: 800; }.text-button span, .link-button span { margin-left: 3px; font-size: 14px; }
.link-button { padding: 4px 0; color: #767b89; background: transparent; font-size: 11px; font-weight: 700; white-space: nowrap; }.link-button span { color: #9daf40; }
.budget-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.budget-card { padding: 17px 17px 15px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.budget-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 18px; }.budget-card-head > div { min-width: 0; }.budget-card h3 { margin-bottom: 4px; font-size: 13px; }.budget-card .budget-category { color: var(--muted); font-size: 10px; }.budget-status { padding: 4px 7px; border-radius: 100px; font-size: 9px; white-space: nowrap; }.status-ok { color: #688524; background: #edf6ca; }.status-attention { color: #a17a25; background: #fff2c9; }.status-risk { color: #cb6754; background: #ffe0d8; }
.progress-track { width: 100%; height: 7px; overflow: hidden; border-radius: 100px; background: #eeedea; }.progress-fill { height: 100%; border-radius: inherit; background: var(--lime); }.progress-fill.attention { background: #e9c761; }.progress-fill.risk { background: var(--coral); }
.budget-numbers { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 10px; }.budget-numbers strong { color: var(--ink); font-size: 11px; }.budget-numbers span:last-child { color: var(--ink-soft); }
.payments-card, .transactions-card, .goals-card, .chart-card { grid-column: 1 / -1; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.payment-row { display: grid; grid-template-columns: 38px 1fr auto auto; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid #f0efec; }.payment-row:last-child { border-bottom: 0; }.payment-icon { width: 35px; height: 35px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 15px; font-weight: 800; }.payment-icon.netflix { color: #cb6b5b; background: var(--coral-pale); }.payment-icon.rent { color: #6b5e9d; background: var(--lavender); }.payment-icon.phone { color: #558b7e; background: var(--mint); }.payment-row strong { display: block; font-size: 12px; }.payment-row small { color: var(--muted); font-size: 10px; }.payment-date { color: var(--ink-soft); font-size: 10px; text-align: right; }.payment-amount { min-width: 104px; text-align: right; font-size: 12px; font-weight: 800; }
.dashboard-two-col { grid-column: 1 / -1; display: grid; grid-template-columns: 1.07fr .93fr; gap: 20px; }.dashboard-two-col > div { min-width: 0; }.dashboard-two-col .section-head { margin-bottom: 14px; }
.goals-card { padding: 5px 18px; }.goal-row { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-bottom: 1px solid #f0efec; }.goal-row:last-child { border-bottom: 0; }.goal-ring { width: 39px; height: 39px; flex: 0 0 auto; position: relative; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: conic-gradient(var(--lime) var(--progress), #edf0e5 0); }.goal-ring::after { content: ''; width: 29px; height: 29px; position: absolute; border-radius: 50%; background: #fff; }.goal-ring > span { position: relative; z-index: 1; color: #657c2a; font-size: 9px; font-weight: 800; }.goal-row-copy { flex: 1; min-width: 0; }.goal-row-copy strong { display: block; font-size: 12px; }.goal-row-copy small { color: var(--muted); font-size: 10px; }.goal-row-amount { text-align: right; }.goal-row-amount strong { display: block; font-size: 11px; }.goal-row-amount small { color: var(--muted); font-size: 9px; }
.chart-card { padding: 20px 20px 17px; }.chart-legend { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 9px; }.chart-legend span::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--lime); }.chart-legend span:last-child::before { background: var(--ink); opacity: .65; }.bar-chart { height: 135px; display: flex; align-items: end; gap: clamp(8px, 1.4vw, 15px); padding: 18px 4px 0; border-bottom: 1px solid #ebeae5; }.bar-group { flex: 1; height: 100%; display: flex; align-items: end; gap: 3px; position: relative; }.bar { flex: 1; min-width: 5px; border-radius: 5px 5px 0 0; background: var(--lime); }.bar.dark { background: var(--ink); opacity: .75; }.bar-label { position: absolute; top: calc(100% + 7px); left: 50%; transform: translateX(-50%); font-size: 9px; color: var(--muted); }.chart-total { display: flex; align-items: center; justify-content: space-between; margin-top: 23px; }.chart-total strong { font-size: 18px; letter-spacing: -.05em; }.chart-total small { color: var(--muted); font-size: 10px; }
.recent-head { margin-top: 4px; }
.transaction-row { display: grid; grid-template-columns: 39px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #f0efec; }.transaction-row:last-child { border-bottom: 0; }.transaction-icon { width: 37px; height: 37px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 16px; font-weight: 800; }.transaction-icon.food { background: #fff0d7; color: #b87a3d; }.transaction-icon.home { background: var(--lavender); color: #74639b; }.transaction-icon.mobility { background: var(--mint); color: #528579; }.transaction-icon.income { background: #eef8c8; color: #708d27; }.transaction-icon.goal { background: var(--lavender); color: #70609b; }.transaction-copy { min-width: 0; }.transaction-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }.transaction-copy small { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }.transaction-date { color: var(--muted); font-size: 10px; text-align: right; }.transaction-amount { min-width: 105px; text-align: right; font-size: 12px; font-weight: 800; }.amount-expense { color: var(--ink); }.amount-income { color: #799a24; }

.view-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 27px; }.view-heading h2 { margin-bottom: 7px; font-size: clamp(27px, 3vw, 36px); }.view-heading .muted { margin-bottom: 0; }
.view-heading-actions { display: flex; align-items: center; gap: 8px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 0 15px; border-radius: 10px; font-size: 11px; font-weight: 800; white-space: nowrap; transition: transform .2s, box-shadow .2s; }.primary-button { color: var(--ink); background: var(--lime); }.primary-button:hover { box-shadow: 0 8px 17px rgba(156,188,57,.23); transform: translateY(-1px); }.secondary-button { color: var(--ink-soft); border: 1px solid var(--line); background: #fff; }
.filter-row { display: flex; align-items: center; gap: 8px; margin-bottom: 17px; overflow: auto; padding-bottom: 3px; }.search-field { min-width: 210px; height: 37px; display: flex; align-items: center; gap: 7px; padding: 0 12px; color: var(--muted); border: 1px solid var(--line); background: #fff; border-radius: 10px; }.search-field input { width: 100%; border: 0; outline: 0; color: var(--ink); font-size: 11px; background: transparent; }.filter-button { height: 36px; padding: 0 12px; border: 1px solid var(--line); color: var(--ink-soft); background: #fff; border-radius: 10px; font-size: 10px; font-weight: 700; white-space: nowrap; }.filter-button.is-selected { color: var(--ink); border-color: var(--ink); }
.transactions-card.large { max-height: 570px; overflow: auto; }
.budget-summary-strip { display: flex; align-items: center; gap: 0; margin-bottom: 20px; padding: 15px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); }.budget-summary-strip > div { flex: 1; padding: 0 18px; border-right: 1px solid var(--line); }.budget-summary-strip > div:first-child { padding-left: 0; }.budget-summary-strip > div:last-child { border-right: 0; }.budget-summary-strip span { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.06em; }.budget-summary-strip small { color: var(--muted); font-size: 10px; }.strip-healthy span { color: #88a92f; }.strip-warning span { color: #c39b3c; }.strip-risk span { color: #de7562; }.budget-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.budget-list .budget-card { padding: 20px; }.budget-list .budget-card-head { margin-bottom: 22px; }.budget-detail { display: flex; justify-content: space-between; margin: 13px 0 6px; color: var(--muted); font-size: 10px; }.budget-detail strong { color: var(--ink); font-size: 12px; }
.goals-overview { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding: 26px 29px; overflow: hidden; position: relative; background: var(--ink); color: #fff; border-radius: var(--radius-lg); }.goals-overview::after { content: ''; width: 280px; height: 280px; position: absolute; top: -140px; right: 90px; border: 1px solid rgba(201,242,100,.15); border-radius: 50%; }.goal-overview-copy { position: relative; z-index: 1; }.goal-overview-copy .eyebrow { color: #9ca2b2; }.goal-overview-copy strong { display: block; margin: 7px 0 10px; font-size: 34px; letter-spacing: -.08em; }.goal-overview-copy p:last-child { margin: 0; color: #9ca2b2; font-size: 11px; }.goal-overview-copy .trend-positive { color: var(--lime); }.goal-overview-ring { width: 100px; height: 100px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; border-radius: 50%; background: conic-gradient(var(--lime) 68%, #3b4050 0); }.goal-overview-ring::after { content: ''; width: 76px; height: 76px; position: absolute; border-radius: 50%; background: var(--ink); }.goal-overview-ring span, .goal-overview-ring em { position: relative; z-index: 1; }.goal-overview-ring span { font-size: 19px; font-weight: 800; letter-spacing: -.06em; }.goal-overview-ring span small { font-size: 11px; }.goal-overview-ring em { color: #9ca2b2; font-size: 7px; font-style: normal; }.goals-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.goal-card { padding: 21px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }.goal-card-head { display: flex; align-items: flex-start; gap: 11px; }.goal-card-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--mint); color: #4e817a; font-size: 19px; }.goal-card:nth-child(2) .goal-card-icon { background: var(--lavender); color: #70609b; }.goal-card:nth-child(3) .goal-card-icon { background: var(--yellow); color: #aa8033; }.goal-card-head-copy { flex: 1; }.goal-card-head-copy strong { display: block; font-size: 14px; }.goal-card-head-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }.goal-card-percent { color: #6b8b22; font-size: 13px; font-weight: 800; }.goal-card .progress-track { height: 8px; margin: 22px 0 11px; }.goal-card-footer { display: flex; align-items: end; justify-content: space-between; }.goal-card-footer strong { font-size: 14px; letter-spacing: -.04em; }.goal-card-footer small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }.goal-card-footer > span { color: var(--muted); font-size: 10px; text-align: right; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }.setting-card { display: flex; align-items: center; gap: 12px; padding: 17px; color: var(--ink); text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); }.setting-card > span:nth-child(2) { flex: 1; min-width: 0; }.setting-card > span:last-child { color: var(--muted); font-size: 19px; }.setting-card strong { display: block; font-size: 12px; }.setting-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.setting-icon { width: 35px; height: 35px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 11px; font-size: 16px; }.setting-icon.lavender { background: var(--lavender); color: #70609b; }.setting-icon.mint { background: var(--mint); color: #4e817a; }.setting-icon.peach { background: var(--coral-pale); color: #d56d5b; }.setting-icon.yellow { background: var(--yellow); color: #a77d2f; }.privacy-card { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 22px; background: var(--lime); border-radius: var(--radius-lg); }.privacy-icon { width: 35px; height: 35px; display: inline-flex; align-items: center; justify-content: center; color: #718b29; border-radius: 11px; background: rgba(255,255,255,.55); }.privacy-card > div:nth-child(2) { flex: 1; }.privacy-card .eyebrow { color: #708832; }.privacy-card h3 { margin-bottom: 4px; }.privacy-card p { margin: 0; color: #677936; font-size: 11px; }.toggle { position: relative; width: 42px; height: 24px; flex: 0 0 auto; }.toggle input { opacity: 0; width: 0; height: 0; }.toggle span { inset: 0; position: absolute; border-radius: 100px; background: rgba(31,36,52,.18); transition: .2s; }.toggle span::before { content: ''; width: 18px; height: 18px; position: absolute; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }.toggle input:checked + span { background: var(--ink); }.toggle input:checked + span::before { transform: translateX(18px); }.about-card { display: flex; align-items: center; gap: 11px; margin-top: 22px; padding: 4px 2px; }.about-card strong { font-size: 14px; letter-spacing: -.05em; }.about-card p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }.about-card button { margin-left: auto; color: var(--coral); background: transparent; font-size: 21px; }
.report-periods { display: flex; gap: 7px; margin-bottom: 17px; }.report-period { height: 34px; padding: 0 13px; color: var(--ink-soft); border: 1px solid var(--line); background: #fff; border-radius: 9px; font-size: 10px; font-weight: 800; }.report-period.is-selected { color: var(--ink); border-color: var(--ink); }.report-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }.report-summary-card { padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); }.report-summary-card span, .report-summary-card small { display: block; color: var(--muted); font-size: 10px; }.report-summary-card strong { display: block; margin: 10px 0 4px; font-size: 22px; letter-spacing: -.07em; }.report-summary-highlight { background: var(--lime); border-color: #d3e99a; }.report-summary-highlight span, .report-summary-highlight small { color: #718a2a; }.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }.report-card { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }.report-card .section-head { margin-bottom: 19px; }.report-card-total { color: var(--muted); font-size: 10px; }.category-report-row { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr auto; gap: 10px; align-items: center; margin: 15px 0; }.category-report-row:first-child { margin-top: 3px; }.category-report-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); font-size: 10px; }.category-report-row strong { color: var(--ink); font-size: 10px; text-align: right; }.category-report-bar { height: 7px; overflow: hidden; border-radius: 100px; background: #efeee9; }.category-report-bar i { display: block; height: 100%; border-radius: inherit; background: var(--lime); }.category-report-row:nth-child(2) .category-report-bar i { background: #d4c4ff; }.category-report-row:nth-child(3) .category-report-bar i { background: #f5c28c; }.category-report-row:nth-child(4) .category-report-bar i { background: #b8e3d7; }.category-report-row:nth-child(5) .category-report-bar i { background: #ffc8be; }.report-cashflow-chart { height: 192px; display: flex; align-items: end; gap: 10px; padding: 18px 4px 20px; border-bottom: 1px solid var(--line); }.cashflow-group { flex: 1; height: 100%; display: flex; align-items: end; justify-content: center; gap: 3px; position: relative; }.cashflow-bar { width: 10px; border-radius: 4px 4px 0 0; background: var(--lime); }.cashflow-bar.expense { background: var(--coral); }.cashflow-label { position: absolute; top: calc(100% + 8px); color: var(--muted); font-size: 9px; }.report-legend { display: flex; gap: 14px; margin-top: 14px; color: var(--muted); font-size: 9px; }.report-legend i { width: 7px; height: 7px; display: inline-block; margin-right: 5px; border-radius: 50%; background: var(--lime); }.report-legend .legend-expense { background: var(--coral); }
.custom-range { display: flex; align-items: end; gap: 9px; margin: -4px 0 18px; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }.custom-range label { flex: 1; }.custom-range label span { display: block; margin: 0 0 6px 2px; color: var(--muted); font-size: 9px; }.custom-range input { width: 100%; height: 36px; padding: 0 9px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #fff; font-size: 10px; }.range-dash { padding-bottom: 9px; color: var(--muted); font-size: 13px; }
.shared-dashboard { display: block; }.shared-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 27px 30px; color: #fff; background: var(--ink); border-radius: var(--radius-lg); overflow: hidden; position: relative; }.shared-hero::after { content: ''; width: 220px; height: 220px; position: absolute; top: -120px; right: 80px; border: 1px solid rgba(201,242,100,.16); border-radius: 50%; }.shared-hero > div, .shared-hero > button { position: relative; z-index: 1; }.shared-hero .eyebrow { color: #a6adbd; }.shared-hero h2 { margin-bottom: 7px; font-size: 30px; }.shared-hero p:last-child { margin: 0; color: #a6adbd; font-size: 11px; }.light-button { color: var(--ink); background: var(--lime); border-color: var(--lime); }.shared-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 17px 0; }.shared-metric { padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); }.shared-metric-primary { background: var(--mint); border-color: #c7e8df; }.shared-metric .metric-icon { width: 28px; height: 28px; margin-bottom: 19px; background: var(--canvas); color: #6f8d2a; }.shared-metric small, .shared-metric em { display: block; color: var(--muted); font-size: 10px; font-style: normal; }.shared-metric strong { display: block; margin: 6px 0 3px; font-size: 19px; letter-spacing: -.06em; }.shared-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }.shared-action { display: flex; align-items: center; gap: 12px; padding: 15px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); }.shared-action > span { width: 31px; height: 31px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #6d882b; background: var(--lime); border-radius: 10px; font-size: 17px; font-weight: 800; }.shared-action:nth-child(2) > span { color: #76639e; background: var(--lavender); }.shared-action div { flex: 1; }.shared-action strong { display: block; font-size: 12px; }.shared-action small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }.shared-action > b { color: var(--muted); font-size: 15px; }.shared-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }.shared-grid > div { min-width: 0; }.shared-grid .section-head { margin-bottom: 13px; }.members-card, .settlement-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }.member-row { display: flex; align-items: center; gap: 10px; padding: 14px 17px; border-bottom: 1px solid #f0efec; }.member-row:last-child { border-bottom: 0; }.member-avatar { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 12px; font-size: 10px; font-weight: 800; }.member-avatar.peach { color: #714c3e; background: #f2c4a9; }.member-avatar.lavender { color: #70609b; background: var(--lavender); }.member-row div { flex: 1; }.member-row strong { display: block; font-size: 11px; }.member-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }.member-status { color: #7fa22b; font-size: 9px; }.settlement-card { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 15px; background: #eef8c8; border-color: #dfeeb0; }.settlement-icon { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; color: #6f8d2a; background: var(--lime); border-radius: 10px; font-size: 16px; font-weight: 800; }.settlement-card > div:nth-child(2) { flex: 1; }.settlement-card .eyebrow { margin-bottom: 4px; color: #718a2a; }.settlement-card strong { display: block; font-size: 15px; }.settlement-card small { display: block; margin-top: 3px; color: #7c8b52; font-size: 9px; }.settlement-card button { color: #718a2a; background: transparent; font-size: 20px; }

.space-menu, .modal-backdrop { inset: 0; position: fixed; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(31,36,52,.46); opacity: 0; pointer-events: none; transition: opacity .2s; }.space-menu.is-open, .modal-backdrop.is-open { opacity: 1; pointer-events: auto; }.space-menu-panel { width: min(100%, 360px); padding: 19px; background: var(--canvas); border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.2); transform: translateY(10px); transition: transform .2s; }.space-menu.is-open .space-menu-panel { transform: translateY(0); }.space-menu-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--muted); font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .1em; }.close-space-menu { color: var(--muted); background: transparent; font-size: 23px; line-height: 1; }.space-option { width: 100%; display: flex; align-items: center; gap: 11px; padding: 12px 10px; border-radius: 12px; background: transparent; text-align: left; }.space-option:hover, .space-option.is-selected { background: #fff; }.space-option > span:nth-child(2) { flex: 1; }.space-option strong { display: block; font-size: 12px; }.space-option small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }.space-option .check { color: var(--lime-deep); opacity: 0; font-weight: 800; }.space-option.is-selected .check { opacity: 1; }.create-space { width: 100%; margin-top: 8px; padding: 13px 10px; color: #667d2a; border-top: 1px solid var(--line); background: transparent; font-size: 11px; font-weight: 800; text-align: left; }.create-space span { font-size: 17px; vertical-align: -1px; margin-right: 5px; }
.modal-backdrop { align-items: end; }.entry-modal { width: min(100%, 560px); padding: 23px 25px 22px; background: var(--canvas); border-radius: 23px 23px 0 0; transform: translateY(25px); transition: transform .28s; }.modal-backdrop.is-open .entry-modal { transform: translateY(0); }.modal-handle { display: none; }.modal-top { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }.modal-top h2 { font-size: 24px; }.modal-close { width: 29px; height: 29px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 50%; font-size: 21px; line-height: 1; }.type-tabs { display: flex; gap: 5px; margin-bottom: 18px; padding: 4px; background: #ebeae5; border-radius: 11px; }.type-tab { flex: 1; padding: 9px 4px; color: var(--muted); background: transparent; border-radius: 8px; font-size: 10px; font-weight: 800; }.type-tab.is-active { color: var(--ink); background: #fff; box-shadow: 0 3px 8px rgba(31,36,52,.06); }.amount-input { display: block; padding: 15px 17px 13px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }.amount-input > span { display: block; color: var(--muted); font-size: 10px; }.amount-input > div { display: flex; align-items: center; gap: 9px; margin-top: 7px; }.amount-input b { color: var(--muted); font-family: 'DM Mono', monospace; font-size: 11px; }.amount-input input { width: 100%; padding: 0; color: var(--ink); border: 0; outline: 0; font-size: 30px; font-weight: 800; letter-spacing: -.08em; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 14px; }.form-grid label { display: block; }.form-grid label > span { display: block; margin: 0 0 6px 2px; color: var(--muted); font-size: 9px; }.form-grid input, .form-grid select { width: 100%; height: 39px; padding: 0 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #fff; font-size: 11px; }.advanced-toggle { margin: 17px 0; color: #738c2a; background: transparent; font-size: 10px; font-weight: 800; }.modal-form-footer { display: flex; justify-content: end; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 24px; padding: 11px 15px; color: #fff; background: var(--ink); border-radius: 100px; box-shadow: 0 10px 25px rgba(31,36,52,.22); font-size: 11px; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; }.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.category-backdrop { inset: 0; position: fixed; z-index: 22; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(31,36,52,.46); opacity: 0; pointer-events: none; transition: opacity .2s; }.category-backdrop.is-open { opacity: 1; pointer-events: auto; }.category-modal { width: min(100%, 620px); max-height: min(720px, calc(100dvh - 40px)); overflow: auto; padding: 25px; background: var(--canvas); border-radius: 23px; box-shadow: 0 20px 60px rgba(0,0,0,.2); transform: translateY(12px); transition: transform .2s; }.category-backdrop.is-open .category-modal { transform: translateY(0); }.category-create-form { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; align-items: end; gap: 10px; margin: 20px 0 17px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }.category-create-form label > span { display: block; margin: 0 0 6px 2px; color: var(--muted); font-size: 9px; }.category-create-form input, .category-create-form select { width: 100%; height: 37px; padding: 0 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #fff; font-size: 11px; }.category-list { display: grid; gap: 9px; }.category-editor { padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }.category-editor.is-inactive { opacity: .55; }.category-editor-head { display: flex; align-items: center; gap: 9px; }.category-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); }.category-editor-head strong { flex: 1; font-size: 12px; }.category-editor-head small { color: var(--muted); font-size: 9px; }.category-editor-head button { color: var(--ink-soft); background: transparent; font-size: 10px; font-weight: 800; }.category-editor-head button + button { color: var(--muted); font-weight: 600; }.subcategory-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0 19px; }.subcategory-chip { padding: 5px 8px; color: var(--ink-soft); background: var(--canvas); border-radius: 7px; font-size: 9px; }.subcategory-chip.empty { color: var(--muted); }.subcategory-add { display: none; align-items: center; gap: 6px; margin: 10px 0 0 19px; }.subcategory-add.is-visible { display: flex; }.subcategory-add input { min-width: 0; flex: 1; height: 31px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; outline: 0; font-size: 10px; }.subcategory-add button { height: 31px; padding: 0 10px; color: var(--ink); background: var(--lime); border-radius: 8px; font-size: 10px; font-weight: 800; }.category-help { margin: 15px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.account-backdrop { inset: 0; position: fixed; z-index: 23; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(31,36,52,.46); opacity: 0; pointer-events: none; transition: opacity .2s; }.account-backdrop.is-open { opacity: 1; pointer-events: auto; }.account-modal { width: min(100%, 620px); max-height: min(720px, calc(100dvh - 40px)); overflow: auto; padding: 25px; background: var(--canvas); border-radius: 23px; box-shadow: 0 20px 60px rgba(0,0,0,.2); transform: translateY(12px); transition: transform .2s; }.account-backdrop.is-open .account-modal { transform: translateY(0); }.account-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 20px 0 17px; }.account-card { display: flex; align-items: center; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }.account-card-icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #718a2a; background: var(--lime); border-radius: 11px; font-size: 16px; }.account-card:nth-child(2n) .account-card-icon { color: #70609b; background: var(--lavender); }.account-card-copy { min-width: 0; flex: 1; }.account-card-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.account-card-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }.account-card-balance { text-align: right; }.account-card-balance strong { display: block; font-size: 11px; }.account-card-balance small { color: var(--muted); font-size: 8px; }.account-create-form { display: grid; grid-template-columns: 1.1fr 1fr .75fr auto; align-items: end; gap: 9px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }.account-create-form label > span { display: block; margin: 0 0 6px 2px; color: var(--muted); font-size: 9px; }.account-create-form input, .account-create-form select { width: 100%; height: 37px; padding: 0 9px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #fff; font-size: 10px; }
.invite-backdrop, .settlement-backdrop { inset: 0; position: fixed; z-index: 24; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(31,36,52,.46); opacity: 0; pointer-events: none; transition: opacity .2s; }.invite-backdrop.is-open, .settlement-backdrop.is-open { opacity: 1; pointer-events: auto; }.compact-modal { width: min(100%, 450px); padding: 24px; background: var(--canvas); border-radius: 23px; box-shadow: 0 20px 60px rgba(0,0,0,.2); transform: translateY(12px); transition: transform .2s; }.invite-backdrop.is-open .compact-modal, .settlement-backdrop.is-open .compact-modal { transform: translateY(0); }.modal-field { display: block; margin-top: 14px; }.modal-field > span { display: block; margin: 0 0 6px 2px; color: var(--muted); font-size: 9px; }.modal-field input, .modal-field select { width: 100%; height: 40px; padding: 0 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #fff; font-size: 11px; }.compact-modal .modal-form-footer { margin-top: 20px; }.settlement-summary { display: flex; align-items: center; gap: 11px; margin: 17px 0 5px; padding: 15px; background: var(--lime); border-radius: 14px; }.settlement-summary .settlement-icon { color: #6f8d2a; background: rgba(255,255,255,.5); }.settlement-summary small { display: block; color: #718a2a; font-size: 9px; }.settlement-summary strong { display: block; margin-top: 3px; font-size: 19px; letter-spacing: -.06em; }

@media (max-width: 980px) {
  .side-rail { width: 211px; }.main-content { padding-inline: 30px; }.hero-card { grid-column: span 6; }.summary-grid { grid-column: span 6; }.metric-card strong { font-size: 15px; }.dashboard-two-col { grid-template-columns: 1fr; }.chart-card { min-height: 245px; }
}

@media (max-width: 700px) {
  .app-shell { display: block; }.side-rail, .desktop-topbar { display: none; }.main-content { padding: 0 16px calc(88px + env(safe-area-inset-bottom)); }.mobile-header { height: 65px; display: flex; align-items: center; justify-content: space-between; }.mobile-brand { color: var(--ink); font-size: 20px; }.mobile-brand .brand-mark { width: 24px; height: 24px; font-size: 18px; }.mobile-header-actions { display: flex; align-items: center; gap: 9px; }.mobile-header .icon-button { width: 33px; height: 33px; background: transparent; border: 0; }.mini-avatar { width: 30px; height: 30px; }.mobile-context-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0 23px; }.space-switcher, .period-switcher { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); background: transparent; font-size: 11px; font-weight: 800; }.space-switcher .space-avatar { width: 24px; height: 24px; border-radius: 8px; font-size: 9px; }.space-switcher .chevron, .period-switcher .chevron { color: var(--muted); margin-left: 1px; }.period-switcher { color: var(--muted); font-weight: 600; }.bottom-nav { height: calc(67px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; gap: 2px; padding: 8px 7px env(safe-area-inset-bottom); position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: rgba(255,255,255,.94); border-top: 1px solid rgba(233,231,226,.9); backdrop-filter: blur(17px); }.bottom-nav .nav-item { padding: 4px 1px; display: flex; gap: 3px; align-items: center; flex-direction: column; justify-content: center; color: #a3a6ae; background: transparent; border-radius: 10px; font-size: 9px; }.bottom-nav .nav-item.is-active { color: var(--ink); background: transparent; }.bottom-nav .nav-icon { min-width: 0; font-size: 19px; line-height: 20px; }.bottom-nav .nav-item-center { color: var(--ink); transform: translateY(-16px); }.bottom-nav .nav-item-center:hover { transform: translateY(-18px); }.center-plus { width: 47px; height: 47px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: var(--lime); border: 5px solid var(--canvas); border-radius: 50%; box-shadow: 0 7px 15px rgba(135,163,45,.22); font-size: 23px; line-height: 1; }.mobile-fab { display: none; }
  h1 { font-size: 25px; }.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 10px; }.hero-card { grid-column: 1 / -1; min-height: 190px; padding: 22px 21px; }.hero-balance { margin: 25px 0 22px; font-size: 35px; }.hero-account { display: none; }.summary-grid { display: contents; }.metric-card { min-height: 145px; padding: 15px; border-radius: 18px; }.metric-card strong { font-size: 16px; }.metric-icon { margin-bottom: 17px; }.section-head { gap: 10px; }.section-head h2 { font-size: 18px; }.quick-head, .quick-actions, .attention-card, .budget-grid, .payments-card, .dashboard-two-col, .recent-head, .transactions-card { grid-column: 1 / -1; }.quick-head { margin-top: 0; }.quick-actions { grid-template-columns: 1fr 1fr; gap: 8px; }.quick-action { min-height: 88px; padding: 13px 11px; gap: 8px; }.quick-action > span:nth-child(2) { font-size: 9px; }.quick-action strong { font-size: 11px; }.quick-symbol { width: 28px; height: 28px; font-size: 18px; }.quick-arrow { font-size: 12px; }.attention-card { align-items: flex-start; padding: 15px; gap: 10px; }.attention-mark { width: 27px; height: 27px; }.attention-copy h3 { font-size: 13px; }.attention-copy p { font-size: 10px; line-height: 1.4; }.text-button { align-self: center; font-size: 10px; }.budget-grid { display: flex; overflow: auto; gap: 8px; margin-right: -16px; padding-right: 16px; scroll-snap-type: x mandatory; }.budget-card { min-width: 218px; scroll-snap-align: start; padding: 15px; }.budget-card-head { margin-bottom: 15px; }.budget-card h3 { font-size: 12px; }.payments-card { border-radius: 18px; }.payment-row { grid-template-columns: 32px minmax(0,1fr) auto; gap: 9px; padding: 12px 13px; }.payment-icon { width: 31px; height: 31px; font-size: 13px; }.payment-row strong { font-size: 11px; }.payment-row small { font-size: 9px; }.payment-date { font-size: 9px; }.payment-amount { display: none; }.dashboard-two-col { display: block; }.dashboard-two-col > div + div { margin-top: 24px; }.goals-card { padding: 2px 14px; border-radius: 18px; }.goal-row { gap: 9px; padding: 12px 0; }.goal-ring { width: 35px; height: 35px; }.goal-ring::after { width: 26px; height: 26px; }.goal-row-copy strong { font-size: 11px; }.goal-row-copy small, .goal-row-amount small { font-size: 9px; }.goal-row-amount strong { font-size: 10px; }.chart-card { padding: 16px 14px; border-radius: 18px; }.bar-chart { height: 130px; }.transaction-row { grid-template-columns: 33px minmax(0,1fr) auto; gap: 9px; padding: 12px 13px; }.transaction-icon { width: 33px; height: 33px; font-size: 14px; }.transaction-copy strong { font-size: 11px; }.transaction-copy small { font-size: 9px; }.transaction-date { display: none; }.transaction-amount { min-width: 88px; font-size: 11px; }.view-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 20px; }.view-heading h2 { font-size: 27px; }.view-heading .view-heading-actions { width: 100%; }.view-heading-actions .primary-button { flex: 1; }.filter-row { margin-right: -16px; padding-right: 16px; }.search-field { min-width: 180px; }.transactions-card.large { border-radius: 18px; }.budget-summary-strip { padding: 13px 6px; border-radius: 16px; }.budget-summary-strip > div { padding: 0 8px; text-align: center; }.budget-summary-strip span { font-size: 19px; }.budget-summary-strip small { font-size: 8px; }.budget-list, .goals-list, .settings-grid { grid-template-columns: 1fr; gap: 9px; }.budget-list .budget-card, .goal-card { padding: 17px; border-radius: 18px; }.goals-overview { padding: 21px 19px; border-radius: 18px; }.goal-overview-copy strong { font-size: 27px; }.goal-overview-ring { width: 82px; height: 82px; }.goal-overview-ring::after { width: 62px; height: 62px; }.goal-overview-ring span { font-size: 16px; }.setting-card { padding: 14px; }.privacy-card { padding: 17px; border-radius: 18px; }.privacy-card h3 { font-size: 14px; }.privacy-card p { font-size: 10px; }.entry-modal { padding: 9px 16px max(18px, env(safe-area-inset-bottom)); }.modal-handle { display: block; width: 37px; height: 4px; margin: 0 auto 18px; background: #d9d8d3; border-radius: 100px; }.modal-top { margin-bottom: 15px; }.modal-top h2 { font-size: 21px; }.type-tabs { margin-bottom: 13px; }.amount-input input { font-size: 29px; }.form-grid { gap: 11px 8px; }.form-grid input, .form-grid select { height: 37px; font-size: 10px; }.modal-form-footer .primary-button { flex: 1; }.modal-form-footer .secondary-button { padding-inline: 11px; }.space-menu { align-items: end; padding: 0; }.space-menu-panel { width: 100%; border-radius: 21px 21px 0 0; padding: 20px 17px max(20px, env(safe-area-inset-bottom)); }.category-backdrop { align-items: end; padding: 0; }.category-modal { width: 100%; max-height: calc(100dvh - 13px); padding: 16px 16px max(20px, env(safe-area-inset-bottom)); border-radius: 21px 21px 0 0; }.category-create-form { grid-template-columns: 1fr 1fr; }.category-create-form .primary-button { grid-column: 1 / -1; width: 100%; }.category-create-form label input, .category-create-form label select { font-size: 10px; }.toast { bottom: calc(76px + env(safe-area-inset-bottom)); max-width: calc(100vw - 34px); text-align: center; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (max-width: 700px) {
  .shared-hero { align-items: flex-start; flex-direction: column; padding: 21px 18px; border-radius: 18px; }.shared-hero h2 { font-size: 26px; }.shared-hero .secondary-button { width: 100%; }.shared-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }.shared-metric { padding: 14px; border-radius: 16px; }.shared-metric:last-child { grid-column: 1 / -1; }.shared-metric .metric-icon { margin-bottom: 12px; }.shared-metric strong { font-size: 16px; }.shared-action-row { grid-template-columns: 1fr; gap: 8px; }.shared-action { border-radius: 16px; }.shared-grid { display: block; }.shared-grid > div + div { margin-top: 24px; }.members-card, .settlement-card { border-radius: 17px; }
  .account-backdrop { align-items: end; padding: 0; }.account-modal { width: 100%; max-height: calc(100dvh - 13px); padding: 16px 16px max(20px, env(safe-area-inset-bottom)); border-radius: 21px 21px 0 0; }.account-list { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }.account-create-form { grid-template-columns: 1fr 1fr; }.account-create-form label:first-child, .account-create-form .primary-button { grid-column: 1 / -1; }.account-create-form .primary-button { width: 100%; }
  .invite-backdrop, .settlement-backdrop { align-items: end; padding: 0; }.compact-modal { width: 100%; padding: 16px 16px max(20px, env(safe-area-inset-bottom)); border-radius: 21px 21px 0 0; }
  .report-periods { overflow: auto; margin-right: -16px; padding-right: 16px; }.report-summary-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.report-summary-card { padding: 15px; border-radius: 16px; }.report-summary-card:last-child { grid-column: 1 / -1; }.report-summary-card strong { font-size: 20px; }.report-grid { display: block; }.report-card + .report-card { margin-top: 12px; }.report-card { padding: 16px; border-radius: 18px; }.category-report-row { grid-template-columns: minmax(76px, 1fr) 1.5fr auto; gap: 7px; }.report-cashflow-chart { height: 170px; }
}

@media (max-width: 700px) {
  .custom-range { align-items: stretch; flex-wrap: wrap; }
  .custom-range label { min-width: calc(50% - 9px); }
  .custom-range .range-dash { display: none; }
  .custom-range .primary-button { width: 100%; }
  .transaction-row { grid-template-columns: 33px minmax(0, 1fr) auto auto; }
  .transaction-date { display: block; min-width: 37px; font-size: 9px; }
}

.notifications-backdrop, .recurring-backdrop { inset: 0; position: fixed; z-index: 25; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(31,36,52,.46); opacity: 0; pointer-events: none; transition: opacity .2s; }
.notifications-backdrop.is-open, .recurring-backdrop.is-open { opacity: 1; pointer-events: auto; }
.notification-modal, .recurring-modal { width: min(100%, 650px); max-height: min(760px, calc(100dvh - 40px)); overflow: auto; padding: 25px; background: var(--canvas); border-radius: 23px; box-shadow: 0 20px 60px rgba(0,0,0,.2); transform: translateY(12px); transition: transform .2s; }
.notifications-backdrop.is-open .notification-modal, .recurring-backdrop.is-open .recurring-modal { transform: translateY(0); }
.notification-count { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; margin-left: 5px; padding: 0 6px; color: var(--ink); background: var(--lime); border-radius: 100px; font-size: 10px; vertical-align: 3px; }
.notification-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 10px; }
.notification-toolbar .text-button { margin-left: 0; color: var(--ink-soft); font-size: 10px; }
.notification-list { display: grid; gap: 8px; }
.notification-row { width: 100%; display: flex; align-items: center; gap: 11px; padding: 13px; color: var(--ink); text-align: left; background: #fff; border: 1px solid transparent; border-radius: 14px; }
.notification-row.is-unread { border-color: #dceab2; background: #fbfff0; }
.notification-icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #718a2a; background: var(--lime); border-radius: 11px; font-size: 16px; font-weight: 800; }
.notification-icon.recurring { color: #4e817a; background: var(--mint); }.notification-icon.goal { color: #70609b; background: var(--lavender); }.notification-icon.shared { color: #ba6d59; background: var(--coral-pale); }
.notification-copy { min-width: 0; flex: 1; }.notification-copy strong, .notification-copy small, .notification-copy em { display: block; }.notification-copy strong { font-size: 11px; }.notification-copy small { margin-top: 3px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }.notification-copy em { margin-top: 5px; color: var(--muted); font-size: 9px; font-style: normal; }.notification-arrow { color: var(--muted); font-size: 20px; }
.notification-empty, .recurring-empty { padding: 20px 5px; text-align: center; }
.recurring-list { display: grid; gap: 8px; margin: 20px 0; }.recurring-row { display: grid; grid-template-columns: 36px minmax(0,1fr) auto auto; gap: 10px; align-items: center; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }.recurring-row.is-paused { opacity: .58; }.recurring-icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; color: #4e817a; background: var(--mint); font-size: 16px; font-weight: 800; }.recurring-icon.income { color: #718a2a; background: var(--lime); }.recurring-copy { min-width: 0; }.recurring-copy strong, .recurring-copy small, .recurring-next { display: block; }.recurring-copy strong { font-size: 11px; }.recurring-copy small { margin-top: 3px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }.recurring-next { margin-top: 4px; color: #718a2a; font-size: 9px; }.recurring-amount { min-width: 92px; color: var(--ink); text-align: right; font-size: 11px; }.recurring-actions { display: flex; gap: 4px; }.recurring-actions button { width: 27px; height: 27px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-soft); background: var(--canvas); border-radius: 8px; font-size: 12px; font-weight: 800; }.recurring-actions button:first-child { color: #718a2a; background: #eef8c8; }.recurring-form { padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }.recurring-form > .eyebrow { margin-bottom: 12px; }.recurring-form-grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr 1fr; gap: 10px; }.recurring-form-grid label { display: block; }.recurring-form-grid label > span { display: block; margin: 0 0 6px 2px; color: var(--muted); font-size: 9px; }.recurring-form-grid input, .recurring-form-grid select { width: 100%; height: 37px; padding: 0 9px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #fff; font-size: 10px; }.recurring-form .modal-form-footer { margin-top: 14px; }

@media (max-width: 700px) {
  .notifications-backdrop, .recurring-backdrop { align-items: end; padding: 0; }
  .notification-modal, .recurring-modal { width: 100%; max-height: calc(100dvh - 13px); padding: 16px 16px max(20px, env(safe-area-inset-bottom)); border-radius: 21px 21px 0 0; }
  .recurring-row { grid-template-columns: 34px minmax(0,1fr) auto; gap: 8px; }.recurring-amount { min-width: 0; font-size: 10px; }.recurring-actions { grid-column: 2 / -1; justify-content: flex-end; margin-top: -2px; }.recurring-form-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.recurring-form-grid label:first-child { grid-column: 1 / -1; }.recurring-form .modal-form-footer .primary-button { flex: 1; }
}

.sync-backdrop { inset: 0; position: fixed; z-index: 26; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(31,36,52,.46); opacity: 0; pointer-events: none; transition: opacity .2s; }.sync-backdrop.is-open { opacity: 1; pointer-events: auto; }
.sync-modal { width: min(100%, 650px); max-height: min(760px, calc(100dvh - 40px)); overflow: auto; padding: 25px; background: var(--canvas); border-radius: 23px; box-shadow: 0 20px 60px rgba(0,0,0,.2); transform: translateY(12px); transition: transform .2s; }.sync-backdrop.is-open .sync-modal { transform: translateY(0); }
.sync-status { min-height: 30px; padding: 0 10px; color: #718a2a; background: #eef8c8; border: 1px solid #dceab2; border-radius: 100px; font-size: 9px; font-weight: 800; white-space: nowrap; }.sync-status::before { content: '•'; margin-right: 4px; font-size: 14px; vertical-align: -1px; }.sync-status.is-offline { color: #bf6855; background: var(--coral-pale); border-color: #ffd8ce; }.sync-status.is-offline::before { color: var(--coral); }.sync-status.has-pending { color: #9b7a25; background: var(--yellow); border-color: #f1dda0; }.sync-status-desktop { margin-right: 2px; }
.sync-summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 20px 0; padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }.sync-summary > div { display: flex; align-items: center; gap: 10px; }.sync-summary-icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #4e817a; background: var(--mint); border-radius: 11px; font-size: 17px; }.sync-summary strong, .sync-summary small { display: block; }.sync-summary strong { font-size: 12px; }.sync-summary small { margin-top: 3px; color: var(--muted); font-size: 9px; }.sync-section + .sync-section { margin-top: 24px; }.sync-section .section-head { margin-bottom: 10px; }.sync-section h3 { font-size: 14px; }.sync-list, .draft-list { display: grid; gap: 7px; }.sync-row, .draft-row { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }.sync-row-icon { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: #9b7a25; background: var(--yellow); border-radius: 9px; }.sync-row > div, .draft-row > div { flex: 1; min-width: 0; }.sync-row strong, .draft-row strong { display: block; font-size: 10px; }.sync-row small, .draft-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }.sync-row-status { color: #9b7a25; font-size: 9px; }.draft-row .text-button { margin-left: 0; color: #718a2a; font-size: 10px; }.draft-delete { width: 25px; height: 25px; color: var(--muted); background: var(--canvas); border-radius: 8px; font-size: 15px; }.sync-empty { padding: 14px 4px; }

@media (max-width: 700px) {
  .sync-backdrop { align-items: end; padding: 0; }.sync-modal { width: 100%; max-height: calc(100dvh - 13px); padding: 16px 16px max(20px, env(safe-area-inset-bottom)); border-radius: 21px 21px 0 0; }.sync-summary { align-items: stretch; flex-direction: column; }.sync-summary .primary-button { width: 100%; }.sync-status-desktop { display: none; }.mobile-header-actions .sync-status { max-width: 86px; overflow: hidden; text-overflow: ellipsis; }.draft-button { padding-inline: 10px; }
}

.notification-bell { display: inline-flex; align-items: center; justify-content: center; }
.notification-bell svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.entity-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.entity-actions button { padding: 5px 8px; color: var(--ink-soft); background: var(--canvas); border: 1px solid var(--line); border-radius: 7px; font-size: 9px; font-weight: 800; }
.entity-actions button:last-child { color: #b76657; }
.transaction-day-divider { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px 7px; color: var(--muted); background: #fbfaf7; border-top: 1px solid var(--line); border-bottom: 1px solid #f0efec; font-size: 10px; font-weight: 800; text-transform: capitalize; }
.transaction-day-divider small { font-size: 9px; font-weight: 600; }
.transaction-day-divider + .transaction-row { border-bottom: 1px solid #eceae6; }
.new-actions-backdrop, .settings-backdrop { inset: 0; position: fixed; z-index: 27; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(31,36,52,.46); opacity: 0; pointer-events: none; transition: opacity .2s; }
.new-actions-backdrop.is-open, .settings-backdrop.is-open { opacity: 1; pointer-events: auto; }
.new-actions-modal, .settings-modal { width: min(100%, 550px); max-height: min(720px, calc(100dvh - 40px)); overflow: auto; padding: 25px; background: var(--canvas); border-radius: 23px; box-shadow: 0 20px 60px rgba(0,0,0,.2); transform: translateY(12px); transition: transform .2s; }
.new-actions-backdrop.is-open .new-actions-modal, .settings-backdrop.is-open .settings-modal { transform: translateY(0); }
.new-actions-list { display: grid; gap: 9px; margin-top: 20px; }
.new-action-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; color: var(--ink); text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.new-action-option > span:nth-child(2) { flex: 1; }
.new-action-option strong, .new-action-option small { display: block; }
.new-action-option strong { font-size: 12px; }
.new-action-option small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.new-action-option > b { color: var(--muted); font-size: 17px; }
.new-action-icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; font-size: 19px; font-weight: 800; }
.new-action-option.expense .new-action-icon { color: #ba6d59; background: var(--coral-pale); }
.new-action-option.income .new-action-icon { color: #718a2a; background: var(--lime); }
.new-action-option.contribution .new-action-icon { color: #70609b; background: var(--lavender); }
.settings-profile-fields, .settings-preference-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.settings-form label > span { display: block; margin: 0 0 6px 2px; color: var(--muted); font-size: 9px; }
.settings-form input:not([type="checkbox"]), .settings-form select { width: 100%; height: 39px; padding: 0 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #fff; font-size: 11px; }
.settings-check { display: flex; align-items: center; gap: 8px; margin: 3px 0 15px; }
.settings-check input { accent-color: var(--ink); }
.settings-check span { margin: 0 !important; color: var(--ink-soft) !important; font-size: 10px !important; }
.security-note { display: flex; align-items: center; gap: 10px; margin: 8px 0 15px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.security-note > div { min-width: 0; flex: 1; }
.security-note strong, .security-note small { display: block; }
.security-note strong { font-size: 10px; }
.security-note small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.security-note .text-button { margin: 0; font-size: 9px; }

@media (max-width: 700px) {
  .bottom-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bottom-nav .nav-item { font-size: 8px; }
  .bottom-nav .nav-icon { font-size: 17px; }
  .new-actions-backdrop, .settings-backdrop { align-items: end; padding: 0; }
  .new-actions-modal, .settings-modal { width: 100%; max-height: calc(100dvh - 13px); padding: 16px 16px max(20px, env(safe-area-inset-bottom)); border-radius: 21px 21px 0 0; }
  .settings-profile-fields, .settings-preference-fields { grid-template-columns: 1fr; }
  .entity-actions button { font-size: 9px; }
}

/* Dashboard additions: category distribution, contextual insights and theme switching. */
.transaction-row { grid-template-columns: 39px minmax(0, 1fr) auto; }
.transaction-day-divider { justify-content: flex-start; padding-bottom: 9px; }
.form-grid label:first-child { grid-column: 1 / -1; }
.pie-chart-layout { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 19px; }
.pie-chart { width: min(100%, 180px); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; margin: 0 auto; border-radius: 50%; background: conic-gradient(var(--pie-stops)); position: relative; }
.pie-chart::after { content: ''; width: 61%; aspect-ratio: 1; position: absolute; border-radius: 50%; background: var(--white); }
.pie-chart > div { position: relative; z-index: 1; display: flex; align-items: center; flex-direction: column; text-align: center; }
.pie-chart small { color: var(--muted); font-size: 10px; }
.pie-chart strong { margin-top: 4px; color: var(--ink); font-size: 19px; letter-spacing: -.06em; }
.pie-legend { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pie-legend li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 11px; }
.pie-legend-name { display: flex; align-items: center; min-width: 0; color: var(--ink); }
.pie-legend-name i { width: 8px; height: 8px; flex: 0 0 auto; margin-right: 7px; border-radius: 50%; background: var(--legend-color); }
.pie-legend-details { display: inline-flex; align-items: center; justify-content: flex-end; gap: 12px; white-space: nowrap; }
.pie-legend-percent { color: var(--muted); font-size: 10px; }
.pie-legend strong { min-width: 72px; color: var(--ink); font-size: 11px; text-align: right; }
.chart-empty { margin: 20px 0; }
.for-you-section { grid-column: 1 / -1; margin-top: 3px; }
.for-you-head { align-items: flex-start; margin-bottom: 14px; }
.for-you-head h2 { margin-bottom: 5px; }
.for-you-head .muted { margin: 0; font-size: 11px; }
.insight-list { display: grid; gap: 11px; }
.insight-card { display: flex; align-items: flex-start; gap: 13px; padding: 20px 21px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.insight-card.yellow { border-color: #e8d79b; background: #fffdf4; }.insight-card.lavender { border-color: #d9cff6; background: #fbf9ff; }.insight-card.mint { border-color: #c4e5dd; background: #f5fcfa; }
.insight-icon { flex: 0 0 auto; color: #d4a400; font-size: 21px; line-height: 1.1; }.insight-card.lavender .insight-icon { color: #718cff; }.insight-card.mint .insight-icon { color: #21b58b; }
.insight-copy { min-width: 0; }.insight-copy h3 { margin: 0 0 4px; font-size: 16px; }.insight-copy p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.45; }.insight-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }.insight-action { display: inline-flex; align-items: center; gap: 4px; margin-top: 17px; padding: 0; color: #6485ef; background: transparent; font-size: 11px; font-weight: 800; }.insight-action span { font-size: 14px; }

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef2f7;
  --ink-soft: #b6c0ce;
  --muted: #8490a2;
  --line: #293544;
  --canvas: #0b1017;
  --white: #151c26;
  --lime: #45c29a;
  --lime-deep: #35a980;
  --coral: #e2a16e;
  --coral-pale: #38252a;
  --lavender: #2b2844;
  --mint: #1c3934;
  --yellow: #3d341e;
  --shadow: 0 18px 45px rgba(0, 0, 0, .24);
}
html[data-theme="dark"], html[data-theme="dark"] body { background: var(--canvas); color: var(--ink); }
html[data-theme="dark"] .side-rail { background: #101720; }
html[data-theme="dark"] .hero-card, html[data-theme="dark"] .goals-overview { background: #151c26; }
html[data-theme="dark"] .side-rail .nav-item { color: #aeb9c8; }
html[data-theme="dark"] .side-rail .nav-item.is-active { color: #10201a; background: var(--lime); }
html[data-theme="dark"] .bottom-nav .nav-item { color: #9eabbc; }
html[data-theme="dark"] .bottom-nav .nav-item.is-active { color: #f4f7fb; background: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .bottom-nav .nav-item-center { color: #f4f7fb; }
html[data-theme="dark"] .icon-button, html[data-theme="dark"] .topbar-profile, html[data-theme="dark"] .metric-card, html[data-theme="dark"] .budget-card, html[data-theme="dark"] .payments-card, html[data-theme="dark"] .transactions-card, html[data-theme="dark"] .goals-card, html[data-theme="dark"] .chart-card, html[data-theme="dark"] .goal-card, html[data-theme="dark"] .setting-card, html[data-theme="dark"] .budget-summary-strip, html[data-theme="dark"] .report-card, html[data-theme="dark"] .report-summary-card { background: var(--white); border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .attention-card { background: #2b2023; border-color: #553039; }
html[data-theme="dark"] .attention-copy p, html[data-theme="dark"] .attention-copy p strong { color: #d99b91; }
html[data-theme="dark"] .secondary-button, html[data-theme="dark"] .filter-button, html[data-theme="dark"] .search-field, html[data-theme="dark"] .new-action-option, html[data-theme="dark"] .security-note, html[data-theme="dark"] .sync-summary, html[data-theme="dark"] .sync-row, html[data-theme="dark"] .draft-row, html[data-theme="dark"] .account-card, html[data-theme="dark"] .category-editor, html[data-theme="dark"] .category-create-form, html[data-theme="dark"] .modal-close { background: var(--white); border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .amount-input, html[data-theme="dark"] .form-grid input, html[data-theme="dark"] .form-grid select, html[data-theme="dark"] .settings-form input:not([type="checkbox"]), html[data-theme="dark"] .settings-form select, html[data-theme="dark"] .modal-field input, html[data-theme="dark"] .modal-field select, html[data-theme="dark"] .category-create-form input, html[data-theme="dark"] .category-create-form select, html[data-theme="dark"] .account-create-form input, html[data-theme="dark"] .account-create-form select { background: #101720; border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .type-tabs { background: #202936; }
html[data-theme="dark"] .type-tab.is-active { background: var(--white); color: var(--ink); }
html[data-theme="dark"] .progress-track { background: #28323e; }
html[data-theme="dark"] .transaction-row, html[data-theme="dark"] .payment-row, html[data-theme="dark"] .goal-row { border-color: #26313e; }
html[data-theme="dark"] .transaction-day-divider { background: #121a24; border-color: var(--line); }
html[data-theme="dark"] .transaction-amount.amount-expense { color: var(--ink); }
html[data-theme="dark"] .privacy-card { color: #172016; }
html[data-theme="dark"] .bottom-nav { background: rgba(15, 21, 30, .95); border-top-color: var(--line); }
html[data-theme="dark"] .space-option:hover, html[data-theme="dark"] .space-option.is-selected { background: var(--white); }
html[data-theme="dark"] .pie-chart::after { background: var(--white); }
html[data-theme="dark"] .primary-button, html[data-theme="dark"] .center-plus, html[data-theme="dark"] .new-action-option.income .new-action-icon { color: #10201a; background: var(--lime); }
html[data-theme="dark"] .center-plus { border-color: #0b1017; box-shadow: 0 8px 20px rgba(69, 194, 154, .28); }
html[data-theme="dark"] .insight-card { background: var(--white); border-color: var(--line); }
html[data-theme="dark"] .insight-card.yellow { background: #282519; border-color: #5b4d25; }
html[data-theme="dark"] .insight-card.lavender { background: #211f32; border-color: #443e68; }
html[data-theme="dark"] .insight-card.mint { background: #182b29; border-color: #2d5c52; }

@media (max-width: 700px) {
  .transaction-row { grid-template-columns: 33px minmax(0, 1fr) auto; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid label:first-child { grid-column: 1 / -1; }
  .pie-chart-layout { grid-template-columns: 136px minmax(0, 1fr); gap: 13px; }
  .pie-chart { width: 136px; }
  .pie-legend { gap: 8px; }.pie-legend li { gap: 6px; font-size: 10px; }.pie-legend-details { gap: 7px; }.pie-legend strong { min-width: 62px; font-size: 10px; }.pie-legend-percent { font-size: 9px; }
  .insight-card { padding: 17px 15px; }.insight-copy h3 { font-size: 13px; }.insight-copy p { font-size: 11px; }.insight-copy small { font-size: 9px; }
}

/* Keep the chart and its legend compact as one visual unit. */
.pie-chart-layout { grid-template-columns: 170px minmax(0, 280px); gap: 16px; justify-content: start; }
.pie-chart { width: 170px; }
.pie-chart strong { font-size: 16px; white-space: nowrap; }
.pie-legend { width: min(100%, 280px); }
.pie-legend-details { gap: 8px; }
.pie-legend strong { min-width: 88px; }
@media (max-width: 700px) {
  .pie-chart-layout { grid-template-columns: 136px minmax(0, 190px); gap: 12px; }
  .pie-chart { width: 136px; }
  .pie-legend { width: 100%; }
  .pie-legend strong { min-width: 82px; }
  .pie-chart strong { font-size: 14px; }
}

/* Distribution: chart first, category breakdown immediately below it. */
.pie-chart-layout { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
.pie-chart { width: min(100%, 190px); margin: 0 auto; }
.pie-legend { width: 100%; gap: 0; border-top: 1px solid var(--line); }
.pie-legend li { grid-template-columns: minmax(0, 1fr) auto minmax(96px, auto); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pie-legend-details { display: contents; }
.pie-legend strong { min-width: 96px; }
@media (max-width: 700px) {
  .pie-chart-layout { display: flex; flex-direction: column; gap: 16px; }
  .pie-chart { width: 160px; }
  .pie-legend li { grid-template-columns: minmax(0, 1fr) auto minmax(82px, auto); gap: 9px; padding: 9px 0; }
  .pie-legend strong { min-width: 82px; }
}
