:root {
  --ink: #17241e;
  --muted: #69756f;
  --faint: #a5aca7;
  --canvas: #f4f5ef;
  --panel: #fffefb;
  --line: #e3e7df;
  --green: #15281f;
  --green-2: #234433;
  --lime: #d9ff7e;
  --lime-deep: #b9e760;
  --shadow: 0 18px 50px rgba(30, 49, 38, 0.08);
  --soft-shadow: 0 8px 24px rgba(28, 46, 36, 0.05);
  --radius-lg: 27px;
  --radius-md: 19px;
  --radius-sm: 13px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 90% -10%, rgba(213, 248, 147, 0.24), transparent 30rem),
    var(--canvas);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(103, 157, 250, 0.6);
  outline-offset: 3px;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  z-index: 5;
  flex: 0 0 252px;
  flex-direction: column;
  width: 252px;
  height: 100vh;
  padding: 29px 17px 20px;
  border-right: 1px solid rgba(218, 226, 216, 0.85);
  background: rgba(249, 250, 245, 0.79);
  backdrop-filter: blur(18px);
}

.brand,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.9px;
  text-decoration: none;
}

.brand {
  padding: 0 12px;
}

.brand-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 11px;
  color: var(--green);
  background: var(--lime);
  box-shadow: inset 0 -2px 0 rgba(20, 55, 31, 0.12);
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.main-nav {
  display: grid;
  gap: 4px;
  margin-top: 55px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 0;
  border-radius: 13px;
  color: #68746e;
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.nav-item:hover {
  color: var(--green);
  background: rgba(224, 231, 220, 0.64);
}

.nav-item.is-active {
  color: var(--green);
  background: #e7eee0;
}

.icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  place-items: center;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-bottom {
  display: grid;
  gap: 13px;
  margin-top: auto;
}

.privacy-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 4px;
  padding: 12px;
  border: 1px solid #e4eadb;
  border-radius: 14px;
  color: #526057;
  background: #f2f6ea;
  font-size: 11px;
  line-height: 1.4;
}

.privacy-card strong,
.privacy-card span {
  display: block;
}

.privacy-card strong {
  color: var(--green);
  font-size: 11px;
}

.privacy-spark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 8px;
  color: var(--green);
  background: var(--lime);
}

.privacy-spark .icon {
  width: 13px;
  height: 13px;
}

.app-content {
  min-width: 0;
  flex: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 89px;
  padding: 0 5.4vw;
  border-bottom: 1px solid rgba(225, 230, 223, 0.74);
}

.topbar-copy {
  display: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.avatar-button,
.bare-icon-button,
.modal-close {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #e1e5df;
  border-radius: 12px;
  color: #66716b;
  background: rgba(255, 255, 253, 0.7);
  transition: transform 150ms ease, border 150ms ease, color 150ms ease, background 150ms ease;
}

.icon-button:hover,
.bare-icon-button:hover,
.modal-close:hover {
  border-color: #cbd8c7;
  color: var(--green);
  background: white;
  transform: translateY(-1px);
}

.icon-button {
  position: relative;
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 6px;
  height: 6px;
  border: 1px solid white;
  border-radius: 50%;
  background: #e67c69;
}

.avatar-button {
  width: 38px;
  border: 0;
  border-radius: 50%;
  color: #1d3225;
  background: linear-gradient(140deg, #f0d6b1, #d1aa7d);
  font-size: 13px;
  font-weight: 800;
}

.avatar-button:hover {
  transform: translateY(-1px);
}

.page {
  width: min(100%, 1420px);
  margin: 0 auto;
  padding: 47px 5.4vw 62px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 23px;
}

.eyebrow {
  margin: 0 0 7px;
  color: #78857d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 7px;
  color: var(--green);
  font-size: clamp(30px, 3.15vw, 43px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

h2 {
  margin-bottom: 0;
  color: var(--green);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0;
}

.page-subtitle {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.heading-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.primary-button,
.secondary-button,
.text-button,
.danger-text-button,
.filter-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 750;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}

.primary-button {
  padding: 0 16px;
  border: 1px solid #15281f;
  color: #f8fff1;
  background: var(--green);
  box-shadow: 0 6px 15px rgba(21, 40, 31, 0.17);
}

.primary-button:hover {
  background: #203b2d;
  box-shadow: 0 9px 19px rgba(21, 40, 31, 0.22);
  transform: translateY(-1px);
}

.primary-button .icon,
.secondary-button .icon,
.text-button .icon {
  width: 16px;
  height: 16px;
}

.secondary-button {
  padding: 0 15px;
  border: 1px solid #d9e1d7;
  color: #375241;
  background: rgba(255, 255, 253, 0.8);
}

.secondary-button:hover {
  border-color: #afc5aa;
  background: #fff;
  transform: translateY(-1px);
}

.text-button,
.danger-text-button {
  min-height: auto;
  padding: 4px 0;
  border: 0;
  color: #426f4c;
  background: transparent;
}

.text-button:hover {
  color: #183f24;
}

.danger-text-button {
  color: #b34d42;
}

.scope-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.scope-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #d8dfd7;
  border-radius: 999px;
  color: #7b8580;
  background: rgba(255, 255, 252, 0.7);
  font-size: 12px;
  font-weight: 750;
  transition: all 160ms ease;
}

.scope-filter:hover {
  border-color: #aebdaa;
}

.scope-filter.is-active {
  color: #23362a;
  background: #fffefb;
  box-shadow: var(--soft-shadow);
}

.scope-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c6cec5;
}

.scope-filter-shared .scope-dot,
.scope-pill.scope-shared {
  background: #8ed589;
}

.scope-filter-personal .scope-dot,
.scope-pill.scope-personal {
  background: #f4cb78;
}

.scope-filter-business .scope-dot,
.scope-pill.scope-business {
  background: #c4b0f7;
}

.scope-check {
  display: none;
  margin-left: 1px;
  color: #3f6148;
  font-size: 11px;
}

.scope-filter.is-active .scope-check {
  display: inline;
}

.overview-hero {
  display: grid;
  min-height: 284px;
  grid-template-columns: minmax(300px, 1.12fr) minmax(270px, 0.88fr);
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: white;
  background:
    radial-gradient(circle at 105% -20%, rgba(195, 237, 143, 0.35), transparent 33%),
    radial-gradient(circle at 60% 100%, rgba(64, 121, 81, 0.62), transparent 43%),
    linear-gradient(135deg, #112219, #234533);
  box-shadow: 0 20px 42px rgba(21, 40, 31, 0.17);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  padding: 35px 39px 31px;
}

.hero-label {
  margin-bottom: 8px;
  color: #c8d6c9;
  font-size: 12px;
  font-weight: 650;
}

.hero-total {
  margin-bottom: 10px;
  color: #fffef7;
  font-size: clamp(38px, 4.8vw, 57px);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 1;
}

.hero-context {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: auto;
  color: #d6e2d5;
  font-size: 12px;
}

.trend-badge {
  display: inline-flex;
  padding: 4px 6px;
  border-radius: 6px;
  color: #17291d;
  background: var(--lime);
  font-size: 10px;
  font-weight: 850;
}

.hero-budget-line {
  display: flex;
  justify-content: space-between;
  margin-top: 26px;
  margin-bottom: 9px;
  color: #d6e2d5;
  font-size: 11px;
}

.hero-budget-line strong {
  color: #fff;
  font-size: 12px;
}

.hero-progress,
.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(226, 243, 222, 0.19);
}

.hero-progress span,
.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.hero-progress span {
  background: var(--lime);
}

.hero-chart {
  display: flex;
  flex-direction: column;
  margin: 24px 26px 24px 0;
  padding: 20px 20px 14px;
  border: 1px solid rgba(231, 250, 220, 0.15);
  border-radius: 20px;
  background: rgba(12, 29, 20, 0.21);
  backdrop-filter: blur(8px);
}

.chart-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: #c8d6c9;
  font-size: 10px;
  font-weight: 600;
}

.chart-heading strong {
  color: #fff;
  font-size: 12px;
}

.mini-chart {
  position: relative;
  display: flex;
  flex: 1;
  align-items: flex-end;
  min-height: 160px;
  margin-top: 10px;
}

.chart-gridline {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(215, 238, 209, 0.13);
}

.grid-one {
  top: 29%;
}

.grid-two {
  top: 61%;
}

.chart-bars {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.chart-column {
  display: flex;
  height: 100%;
  min-width: 18px;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #abc1ae;
  font-size: 9px;
  text-transform: uppercase;
}

.bar {
  width: min(100%, 23px);
  min-height: 8px;
  border-radius: 6px 6px 3px 3px;
  background: rgba(204, 230, 193, 0.5);
  transition: height 400ms cubic-bezier(.22, .8, .32, 1);
}

.bar.is-today {
  background: var(--lime);
  box-shadow: 0 4px 14px rgba(215, 255, 123, 0.3);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 17px 0 25px;
}

.stat-card,
.panel,
.budget-summary,
.filter-bar,
.transaction-feed,
.accounts-callout,
.accounts-section,
.settings-card {
  border: 1px solid rgba(224, 229, 222, 0.91);
  background: rgba(255, 255, 252, 0.8);
  box-shadow: var(--soft-shadow);
}

.stat-card {
  min-height: 132px;
  padding: 17px 18px;
  border-radius: 18px;
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #79857f;
  font-size: 11px;
  font-weight: 700;
}

.stat-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 9px;
}

.stat-icon .icon {
  width: 14px;
  height: 14px;
}

.tone-green {
  color: #2c6c42;
  background: #e4f2df;
}

.tone-yellow {
  color: #8d6927;
  background: #fff0c9;
}

.tone-purple {
  color: #62508f;
  background: #eee8ff;
}

.stat-card > strong {
  display: block;
  margin: 15px 0 5px;
  color: #1d3024;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.045em;
}

.stat-card > p {
  margin-bottom: 0;
  color: #8a958f;
  font-size: 11px;
}

.stat-card > p.positive {
  color: #3e8350;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(355px, 0.95fr);
  gap: 17px;
}

.panel {
  min-width: 0;
  padding: 23px;
  border-radius: var(--radius-md);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}

.section-heading .eyebrow {
  margin-bottom: 5px;
}

.budget-list {
  display: grid;
  gap: 12px;
}

.budget-card {
  padding: 16px;
  border: 1px solid #e7eae4;
  border-radius: 15px;
  background: #fffefb;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.budget-card:hover {
  box-shadow: 0 9px 20px rgba(32, 47, 37, 0.06);
  transform: translateY(-1px);
}

.budget-card.warning {
  border-color: #f0dfb5;
}

.budget-card.over {
  border-color: #f1c7bf;
}

.budget-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.budget-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.budget-title h3 {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.category-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: #344339;
  background: color-mix(in srgb, var(--category-color), white 66%);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.category-icon.is-small {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  font-size: 14px;
}

.scope-pill {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 1px 7px;
  border-radius: 999px;
  color: #35503d;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.scope-pill.scope-shared {
  background: #e4f5df;
}

.scope-pill.scope-personal {
  background: #fff0cc;
}

.scope-pill.scope-business {
  background: #eee8ff;
}

.budget-amounts {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 17px 0 11px;
}

.budget-amounts strong {
  font-size: 17px;
  letter-spacing: -0.03em;
}

.budget-amounts span {
  color: #8a958f;
  font-size: 11px;
}

.progress-track {
  height: 6px;
  background: #edf0eb;
}

.progress-track span {
  background: var(--budget-color, var(--lime-deep));
}

.budget-card.warning .progress-track span {
  background: #edbd61;
}

.budget-card.over .progress-track span {
  background: #df7e70;
}

.budget-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  color: #7c8881;
  font-size: 10px;
  font-weight: 650;
}

.transaction-list {
  display: grid;
}

.transaction-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 11px 0;
  border-bottom: 1px solid #edf0eb;
}

.transaction-row:first-child {
  padding-top: 0;
}

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

.transaction-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.transaction-copy {
  min-width: 0;
}

.transaction-copy strong,
.transaction-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transaction-copy strong {
  margin-bottom: 4px;
  color: #27382d;
  font-size: 12px;
  font-weight: 750;
}

.transaction-copy span {
  color: #849089;
  font-size: 10px;
}

.transaction-meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.transaction-meta > strong {
  color: #324239;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.transaction-meta > strong.income {
  color: #327243;
}

.empty-state {
  display: grid;
  min-height: 165px;
  place-content: center;
  justify-items: center;
  padding: 22px;
  color: #87928c;
  text-align: center;
}

.empty-state > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 10px;
  color: #456b4d;
  background: #eff6e9;
}

.empty-state .icon {
  width: 17px;
  height: 17px;
}

.empty-state strong {
  color: #4b5a51;
  font-size: 12px;
}

.empty-state p {
  max-width: 250px;
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.45;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 10px 13px;
  border-radius: 15px;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.import-control {
  padding-left: 12px;
  border-left: 1px solid #e4e8e2;
  border-radius: 0;
}

.filter-control {
  min-height: 31px;
  padding: 0 8px;
  border: 0;
  color: #415147;
  background: transparent;
  font-size: 11px;
}

.filter-control .icon {
  width: 15px;
  height: 15px;
}

.transaction-count {
  color: #849088;
  font-size: 11px;
  font-weight: 650;
}

.transaction-feed {
  padding: 22px 24px;
  border-radius: var(--radius-md);
}

.transaction-day + .transaction-day {
  margin-top: 29px;
}

.transaction-day h3 {
  margin-bottom: 11px;
  color: #65736a;
  font-size: 11px;
  font-weight: 800;
}

.transaction-row.expanded {
  padding: 13px 1px;
}

.transaction-row.expanded:first-of-type {
  border-top: 1px solid #edf0eb;
}

.budget-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
  padding: 23px 31px;
  border-radius: var(--radius-md);
}

.budget-summary span,
.budget-summary strong,
.budget-summary p {
  display: block;
}

.budget-summary span,
.budget-summary p {
  color: #849089;
  font-size: 11px;
}

.budget-summary strong {
  margin: 5px 0 4px;
  color: #24382b;
  font-size: 23px;
  letter-spacing: -0.045em;
}

.budget-summary p {
  margin-bottom: 0;
}

.summary-divider {
  width: 1px;
  height: 54px;
  background: #e4e9e2;
}

.budget-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.budget-page-grid .budget-card {
  min-height: 169px;
  padding: 19px;
}

.bare-icon-button {
  width: 29px;
  height: 29px;
  border-color: transparent;
  background: transparent;
}

.bare-icon-button .icon {
  width: 15px;
  height: 15px;
}

.tip-banner {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 19px;
  padding: 17px 20px;
  border: 1px solid #dcebd1;
  border-radius: 17px;
  background: #eef6e7;
}

.tip-icon {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: #345a3b;
  background: var(--lime);
}

.tip-icon .icon {
  width: 19px;
  height: 19px;
}

.tip-banner div {
  flex: 1;
}

.tip-banner strong {
  display: block;
  color: #36523d;
  font-size: 12px;
}

.tip-banner p {
  margin: 3px 0 0;
  color: #657b6a;
  font-size: 11px;
  line-height: 1.45;
}

.tip-banner > button {
  flex: 0 0 auto;
}

.fixed-summary {
  display: grid;
  grid-template-columns: minmax(235px, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  color: white;
  background:
    radial-gradient(circle at 90% 0, rgba(219, 255, 132, 0.24), transparent 25rem),
    linear-gradient(135deg, #213a2b, #315b3d);
  box-shadow: 0 17px 38px rgba(23, 54, 33, 0.13);
}

.fixed-summary-main {
  padding: 29px 31px;
  border-right: 1px solid rgba(225, 255, 217, 0.15);
}

.fixed-summary-main p {
  margin-bottom: 6px;
  color: #c9d9ca;
  font-size: 11px;
  font-weight: 650;
}

.fixed-summary-main strong {
  display: block;
  margin-bottom: 7px;
  color: #fff;
  font-size: 37px;
  font-weight: 750;
  letter-spacing: -0.06em;
}

.fixed-summary-main span {
  color: #c7d4c9;
  font-size: 10px;
}

.fixed-summary-scopes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 20px;
}

.fixed-summary-scopes > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid rgba(233, 251, 228, 0.14);
  border-radius: 14px;
  background: rgba(10, 32, 17, 0.16);
}

.fixed-summary-scopes span,
.fixed-summary-scopes small {
  color: #c4d4c6;
  font-size: 10px;
}

.fixed-summary-scopes strong {
  margin: 7px 0 4px;
  overflow: hidden;
  color: #fafff5;
  font-size: 17px;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recurring-section {
  padding: 23px;
  border: 1px solid rgba(224, 229, 222, 0.91);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 252, 0.8);
  box-shadow: var(--soft-shadow);
}

.recognition-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64776a;
  font-size: 10px;
  font-weight: 750;
}

.recognition-label > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #67b56a;
  box-shadow: 0 0 0 4px #e7f4e3;
}

.recurring-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.recurring-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e5e9e3;
  border-radius: 16px;
  background: #fffefb;
}

.recurring-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.recurring-card-head > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.recurring-card-head h3,
.recurring-card-head p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recurring-card-head h3 {
  margin-bottom: 4px;
  color: #2a3c30;
  font-size: 12px;
  font-weight: 750;
}

.recurring-card-head p {
  margin-bottom: 0;
  color: #89948d;
  font-size: 9px;
}

.recurring-card-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid #edf0eb;
}

.recurring-card-bottom span,
.recurring-card-bottom strong {
  display: block;
}

.recurring-card-bottom span {
  margin-bottom: 4px;
  color: #88938c;
  font-size: 9px;
}

.recurring-card-bottom strong {
  color: #34453a;
  font-size: 11px;
  font-weight: 750;
}

.subscription-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 15px;
  padding: 14px 17px;
  border: 1px solid #e0e9d9;
  border-radius: 15px;
  background: #f5f8f1;
}

.subscription-note > span {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: #48634d;
  background: #e3f1db;
}

.subscription-note .icon {
  width: 15px;
  height: 15px;
}

.subscription-note strong {
  display: block;
  margin-bottom: 3px;
  color: #49604e;
  font-size: 11px;
}

.subscription-note p {
  margin-bottom: 0;
  color: #77847b;
  font-size: 10px;
  line-height: 1.5;
}

.accounts-callout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 31px;
  align-items: center;
  margin-bottom: 22px;
  padding: 24px 31px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 14% 50%, rgba(209, 255, 125, 0.6), transparent 19%),
    #eaf2e3;
}

.accounts-callout h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.accounts-callout p:not(.eyebrow) {
  max-width: 570px;
  margin-bottom: 11px;
  color: #607064;
  font-size: 12px;
  line-height: 1.6;
}

.callout-visual {
  position: relative;
  height: 118px;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(69, 116, 75, 0.22);
  border-radius: 50%;
}

.orbit-one {
  top: 4px;
  left: 44px;
  width: 114px;
  height: 114px;
}

.orbit-two {
  top: 24px;
  left: 9px;
  width: 75px;
  height: 75px;
}

.connection-node {
  position: absolute;
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  border-radius: 14px;
  color: #23432e;
  background: #fffefb;
  box-shadow: 0 8px 19px rgba(44, 70, 48, 0.13);
  font-size: 16px;
  font-weight: 800;
}

.node-one {
  top: 42px;
  left: 42px;
  color: #fff;
  background: #294e36;
}

.node-two {
  top: 0;
  left: 141px;
  background: #d7ff7c;
}

.node-three {
  right: 3px;
  bottom: 1px;
  color: #62408a;
  background: #e9dffd;
}

.accounts-section {
  padding: 24px;
  border-radius: var(--radius-md);
}

.connection-total {
  padding: 5px 8px;
  border-radius: 8px;
  color: #58715c;
  background: #eef4e9;
  font-size: 10px;
  font-weight: 800;
}

.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 13px;
}

.connection-card {
  display: flex;
  min-width: 0;
  min-height: 198px;
  flex-direction: column;
  padding: 16px;
  border: 1px solid #e5e9e3;
  border-radius: 16px;
  background: #fffefb;
}

.connection-card-top,
.connection-details,
.connection-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.bank-logo {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: #f37d31;
  font-size: 10px;
  font-weight: 850;
}

.bank-rabobank {
  background: #2f80d8;
}

.bank-asn {
  background: #77a862;
}

.bank-bunq {
  color: #17351f;
  background: #d8ff7b;
}

.bank-ics {
  background: #e46c55;
}

.bank-abn-amro {
  background: #ffbd44;
}

.connection-status {
  color: #849088;
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}

.connection-status span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #62b76a;
}

.connection-details {
  align-items: flex-start;
  margin-top: 22px;
}

.connection-details h3 {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 750;
}

.connection-details p {
  overflow: hidden;
  max-width: 165px;
  margin-bottom: 0;
  color: #8b958f;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-balance {
  margin-top: 19px;
}

.connection-balance span,
.connection-balance strong {
  display: block;
}

.connection-balance span {
  margin-bottom: 4px;
  color: #849088;
  font-size: 10px;
}

.connection-balance strong {
  color: #26382c;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.connection-card-footer {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid #edf0eb;
  color: #849088;
  font-size: 9px;
}

.connection-card-footer .bare-icon-button {
  margin: -7px -7px -7px 0;
}

.import-inline-button {
  min-height: 28px;
  padding: 0;
  color: #477a50;
  font-size: 10px;
}

.import-inline-button .icon {
  width: 14px;
  height: 14px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.settings-card {
  display: flex;
  gap: 14px;
  min-height: 200px;
  padding: 21px;
  border-radius: var(--radius-md);
}

.settings-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: #3b6544;
  background: #edf6e6;
}

.settings-icon .icon {
  width: 18px;
  height: 18px;
}

.settings-card h2 {
  margin-bottom: 8px;
  font-size: 16px;
}

.settings-card p {
  min-height: 61px;
  margin-bottom: 14px;
  color: #738078;
  font-size: 11px;
  line-height: 1.55;
}

.settings-status {
  display: inline-flex;
  margin: -5px 0 12px;
  padding: 4px 7px;
  border-radius: 7px;
  color: #7b6153;
  background: #fff0d3;
  font-size: 9px;
  font-weight: 800;
}

.settings-status.is-on {
  color: #46734d;
  background: #e6f4e2;
}

.mobile-nav,
.mobile-brand {
  display: none;
}

.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  overflow-y: auto;
  place-items: center;
  padding: 25px;
  background: rgba(18, 34, 25, 0.53);
  backdrop-filter: blur(9px);
  animation: fade-in 160ms ease;
}

.modal-wrap {
  width: min(100%, 490px);
  margin: auto;
  animation: modal-in 210ms cubic-bezier(.2, .9, .25, 1);
}

.modal-card {
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 24px;
  color: var(--ink);
  background: #fffefb;
  box-shadow: 0 24px 80px rgba(8, 20, 13, 0.32);
}

.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.modal-heading .eyebrow {
  margin-bottom: 5px;
}

.modal-heading h2 {
  font-size: 24px;
}

.modal-close {
  width: 33px;
  height: 33px;
  border: 0;
  background: #f2f4ef;
}

.modal-close .icon {
  width: 17px;
  height: 17px;
}

.modal-card label {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
  color: #526057;
  font-size: 11px;
  font-weight: 750;
}

.modal-card input:not([type="checkbox"]),
.modal-card select {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  border: 1px solid #dce2da;
  border-radius: 11px;
  outline: none;
  color: #223329;
  background: #fdfefa;
  font-size: 13px;
  font-weight: 600;
  transition: border 150ms ease, box-shadow 150ms ease;
}

.modal-card input:not([type="checkbox"]):focus,
.modal-card select:focus {
  border-color: #8eb38b;
  box-shadow: 0 0 0 3px rgba(142, 179, 139, 0.18);
}

.modal-card input[type="file"] {
  width: 100%;
  padding: 7px;
  border: 1px dashed #bfcdbc;
  border-radius: 11px;
  color: #69766e;
  background: #f9fcf7;
  font-size: 11px;
  font-weight: 600;
}

.modal-card input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  color: #32513a;
  background: #e6f1df;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.form-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.switch-label {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 9px !important;
  margin: 4px 0 11px !important;
  cursor: pointer;
}

.switch-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch {
  position: relative;
  width: 34px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #d8ded6;
  transition: background 150ms ease;
}

.switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(23, 36, 30, 0.2);
  content: "";
  transition: transform 150ms ease;
}

.switch-label input:checked + .switch {
  background: #5ea467;
}

.switch-label input:checked + .switch::after {
  transform: translateX(14px);
}

.form-help {
  margin: 2px 0 19px;
  color: #869189;
  font-size: 10px;
  line-height: 1.55;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.modal-actions .primary-button,
.modal-actions .secondary-button {
  min-height: 40px;
}

.secure-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: -2px 0 20px;
  padding: 11px;
  border-radius: 12px;
  color: #526c58;
  background: #eff6e9;
}

.secure-note > span {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--lime);
}

.secure-note .icon {
  width: 13px;
  height: 13px;
}

.secure-note p {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}

.import-account-list {
  display: grid;
  gap: 8px;
  margin: 2px 0 20px;
}

.import-account-choice,
.selected-import-account {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  border: 1px solid #e1e7de;
  border-radius: 13px;
  color: var(--ink);
  background: #fffefb;
  text-align: left;
}

.import-account-choice {
  transition: border 150ms ease, background 150ms ease, transform 150ms ease;
}

.import-account-choice:hover {
  border-color: #b8d5ad;
  background: #f8fbf5;
  transform: translateY(-1px);
}

.import-account-choice .bank-logo,
.selected-import-account .bank-logo {
  flex: 0 0 auto;
}

.import-account-choice > span:nth-child(2),
.selected-import-account > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.import-account-choice strong,
.selected-import-account strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-account-choice small,
.selected-import-account span {
  color: #7c8880;
  font-size: 10px;
}

.import-choice-arrow {
  display: grid;
  margin-left: auto;
  color: #77907c;
}

.import-choice-arrow .icon {
  width: 16px;
  height: 16px;
}

.selected-import-account {
  margin: -2px 0 14px;
  background: #f8fbf5;
}

.selected-import-account .text-button {
  margin-left: auto;
  padding: 0;
  font-size: 10px;
}

.import-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0 0 13px;
  border-radius: 13px;
  background: #e7ece4;
}

.import-summary > div {
  min-width: 0;
  padding: 10px 9px;
  background: #f7f9f5;
}

.import-summary span,
.import-summary strong {
  display: block;
}

.import-summary span {
  margin-bottom: 3px;
  color: #829087;
  font-size: 9px;
}

.import-summary strong {
  overflow: hidden;
  color: #314438;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-warning {
  margin: 0 0 12px;
  padding: 11px;
  border: 1px solid #efdca9;
  border-radius: 12px;
  color: #745d28;
  background: #fff9e8;
}

.import-warning strong {
  font-size: 11px;
}

.import-warning p {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.45;
}

.import-preview-list {
  display: grid;
  gap: 0;
  max-height: 191px;
  margin: 0 0 15px;
  padding: 0;
  overflow-y: auto;
  border: 1px solid #e8ece5;
  border-radius: 13px;
  list-style: none;
}

.import-preview-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border-bottom: 1px solid #edf0eb;
}

.import-preview-list li:last-child {
  border-bottom: 0;
}

.import-preview-list span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.import-preview-list strong,
.import-preview-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-preview-list strong {
  font-size: 11px;
}

.import-preview-list small {
  color: #839087;
  font-size: 9px;
}

.import-preview-list b {
  flex: 0 0 auto;
  color: #33463a;
  font-size: 11px;
}

.import-preview-list b.income {
  color: #2c8757;
}

.backup-actions {
  margin: -3px 0 19px;
}

.bank-explanation {
  margin: 4px 0 17px;
  padding: 12px;
  border-radius: 12px;
  background: #f5f6f1;
}

.bank-explanation strong {
  color: #425349;
  font-size: 11px;
}

.bank-explanation p {
  margin: 5px 0 0;
  color: #7a867e;
  font-size: 10px;
  line-height: 1.45;
}

.stacked-actions {
  align-items: center;
  flex-direction: column;
}

.stacked-actions .primary-button {
  width: 100%;
}

.demo-connect {
  font-size: 11px;
}

.connection-info-list {
  display: grid;
  overflow: hidden;
  margin-bottom: 17px;
  border: 1px solid #e5e9e3;
  border-radius: 14px;
}

.connection-info-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 13px;
  border-bottom: 1px solid #ebeeea;
  color: #7d8881;
  font-size: 11px;
}

.connection-info-list > div:last-child {
  border-bottom: 0;
}

.connection-info-list strong {
  color: #384a3e;
  font-size: 11px;
}

.active-status {
  color: #40824b !important;
}

.install-modal {
  text-align: center;
}

.install-modal .modal-heading {
  text-align: left;
}

.install-illustration {
  position: relative;
  display: flex;
  width: 160px;
  height: 120px;
  align-items: center;
  justify-content: center;
  margin: 4px auto 12px;
}

.install-illustration .brand-mark {
  position: relative;
  z-index: 1;
  width: 57px;
  height: 57px;
  border-radius: 19px;
  font-size: 34px;
  box-shadow: 0 11px 24px rgba(99, 145, 61, 0.25);
}

.install-plus {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 15px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  color: white;
  background: #274c34;
  font-size: 17px;
  font-weight: 500;
}

.phone-shape {
  position: absolute;
  top: 3px;
  right: 32px;
  width: 63px;
  height: 113px;
  border: 5px solid #dce4d7;
  border-radius: 18px;
  transform: rotate(13deg);
}

.install-copy {
  max-width: 330px;
  margin: 0 auto 21px;
  color: #6c7971;
  font-size: 12px;
  line-height: 1.55;
}

.toast {
  position: fixed;
  z-index: 30;
  right: 25px;
  bottom: 25px;
  max-width: min(390px, calc(100vw - 32px));
  padding: 12px 15px;
  border: 1px solid rgba(221, 238, 209, 0.42);
  border-radius: 12px;
  color: #f7fff1;
  background: #264532;
  box-shadow: 0 12px 29px rgba(20, 39, 29, 0.25);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1120px) {
  .sidebar {
    flex-basis: 210px;
    width: 210px;
  }

  .page,
  .topbar {
    padding-right: 38px;
    padding-left: 38px;
  }

  .accounts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 810px) {
  body {
    padding-bottom: calc(75px + env(safe-area-inset-bottom));
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    position: sticky;
    z-index: 8;
    top: 0;
    justify-content: space-between;
    min-height: 67px;
    padding: 0 19px;
    background: rgba(244, 245, 239, 0.88);
    backdrop-filter: blur(17px);
  }

  .mobile-brand {
    display: inline-flex;
    font-size: 19px;
  }

  .mobile-brand .brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    font-size: 17px;
  }

  .topbar-copy {
    display: none;
  }

  .desktop-only {
    display: none;
  }

  .page {
    padding: 29px 19px 28px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .overview-heading {
    gap: 15px;
  }

  .heading-actions {
    width: 100%;
  }

  .heading-actions .primary-button,
  .heading-actions .secondary-button {
    flex: 1;
  }

  .mobile-nav {
    position: fixed;
    z-index: 12;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: calc(65px + env(safe-area-inset-bottom));
    padding: 6px 8px env(safe-area-inset-bottom);
    border-top: 1px solid #e2e7df;
    background: rgba(255, 255, 252, 0.91);
    box-shadow: 0 -7px 25px rgba(37, 55, 43, 0.05);
    backdrop-filter: blur(18px);
  }

  .mobile-nav .nav-item {
    min-height: 52px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 2px 4px;
    border-radius: 10px;
    font-size: 9px;
    text-align: center;
  }

  .mobile-nav .nav-item .icon {
    width: 18px;
    height: 18px;
  }

  .overview-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 242px;
    padding: 29px 25px 25px;
  }

  .hero-chart {
    min-height: 195px;
    margin: 0 17px 17px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .stat-card {
    display: grid;
    min-height: 82px;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 13px 16px;
  }

  .stat-card-top {
    display: contents;
  }

  .stat-card-top > span:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .stat-icon {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .stat-card > strong {
    grid-column: 1;
    grid-row: 2;
    margin: 5px 0 0;
    font-size: 20px;
  }

  .stat-card > p {
    display: none;
  }

  .panel,
  .transaction-feed,
  .accounts-section {
    padding: 19px 16px;
  }

  .content-grid {
    gap: 12px;
  }

  .budget-summary {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
  }

  .summary-divider {
    display: none;
  }

  .budget-summary > div {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .budget-summary strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
  }

  .budget-summary p {
    grid-column: 1;
    grid-row: 2;
  }

  .budget-page-grid {
    grid-template-columns: 1fr;
  }

  .fixed-summary {
    grid-template-columns: 1fr;
  }

  .fixed-summary-main {
    padding: 24px 21px;
    border-right: 0;
    border-bottom: 1px solid rgba(225, 255, 217, 0.15);
  }

  .fixed-summary-scopes {
    padding: 14px;
  }

  .recurring-section {
    padding: 19px 16px;
  }

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

  .tip-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .tip-banner > button {
    width: 100%;
    justify-content: flex-start;
    margin-left: 52px;
  }

  .accounts-callout {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 21px;
  }

  .callout-visual {
    width: 200px;
    transform: scale(0.83);
    transform-origin: top left;
    margin-bottom: -16px;
  }

  .accounts-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .connection-card {
    min-height: 174px;
  }

  .settings-card {
    min-height: 158px;
  }

  .settings-card p {
    min-height: 0;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .modal-wrap {
    width: 100%;
  }

  .modal-card {
    max-height: calc(100vh - 18px);
    overflow-y: auto;
    padding: 23px 19px calc(22px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }

  .toast {
    right: 16px;
    bottom: calc(82px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 470px) {
  h1 {
    font-size: 31px;
  }

  .page-subtitle {
    font-size: 13px;
  }

  .heading-actions .secondary-button,
  .heading-actions .primary-button {
    padding: 0 11px;
    font-size: 12px;
  }

  .scope-filters {
    gap: 6px;
  }

  .scope-filter {
    min-height: 32px;
    padding: 0 9px;
  }

  .hero-total {
    font-size: 44px;
  }

  .hero-chart {
    padding: 15px 13px 11px;
  }

  .transaction-meta {
    gap: 7px;
  }

  .transaction-meta .scope-pill {
    display: none;
  }

  .transaction-copy span {
    max-width: 160px;
  }

  .filter-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .filter-controls {
    width: 100%;
    flex-wrap: wrap;
  }

  .transaction-count {
    padding-left: 8px;
  }

  .form-two-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .import-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-actions .primary-button,
  .modal-actions .secondary-button {
    flex: 1;
    padding: 0 10px;
  }
}
