/* Approved Figma: eaxKfLeb09lkZutq6nl47j, desktop/mobile app and dialogs.
   The landing page does not load this stylesheet. */
@font-face {
  font-family: Geist;
  src: url("assets/fonts/Geist.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --sn-font-family: Geist, system-ui, sans-serif;
  --sn-font-heading: "Space Grotesk", Geist, sans-serif;
  --sn-app-heading: 36px;
}
body,
button,
input,
select {
  font-family: var(--sn-font-family);
}
.content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  padding: 32px;
}
.content > * {
  min-width: 0;
  max-width: 100%;
}
h1 {
  font-family: var(--sn-font-heading);
  font-size: var(--sn-app-heading);
  font-weight: 600;
  line-height: 42px;
  letter-spacing: 0;
  margin: 0;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: 0;
  margin: 0;
}
p {
  line-height: 21px;
}
.subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 21px;
}
.eyebrow {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0;
  font-weight: 400;
  margin: 0;
}
.green {
  color: #3b4e44;
}
.btn,
.quick-picks button {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: var(--sn-radius-pill);
}
.btn.secondary {
  border-color: var(--sn-color-border);
}
.text-button {
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: var(--ink);
}
.btn.primary:hover {
  background: var(--sn-color-accent-hover);
}
.btn.primary.danger {
  background: var(--sn-color-danger);
  color: white;
}
.card,
.wallet,
.mini-card {
  border-color: var(--sn-color-border);
  border-radius: var(--sn-radius-card);
}
.card {
  padding: 24px;
  margin: 0;
}
.card > .section-title {
  margin-bottom: 24px;
}
.section-title {
  gap: 10px;
}
.section-title h2 {
  font-size: 18px;
  line-height: 26px;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 12px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--muted);
  background: var(--sn-color-canvas);
  white-space: nowrap;
}
.sidebar {
  border-right: 1px solid var(--line);
}
.brand {
  font-family: var(--sn-font-heading);
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: 0;
  align-items: center;
}
.sidebar-caption {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0;
  margin: 24px 0;
}
.sidebar .nav-item {
  font-size: 12px;
  line-height: 16px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  gap: 12px;
  color: var(--ink);
}
.sidebar .nav-item.active {
  color: var(--sn-color-on-inverse);
}
.nav-item > .figma-nav-art {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.figma-nav-art img {
  display: block;
  max-width: none;
}
.figma-nav-art .nav-mobile-art {
  display: none;
}
.figma-mark {
  position: relative;
  display: inline-block;
  overflow: hidden;
  flex-shrink: 0;
}
.figma-mark.mark-40 {
  width: 40px;
  height: 40px;
}
.figma-mark.mark-32 {
  width: 32px;
  height: 32px;
}
.figma-mark.mark-28 {
  width: 28px;
  height: 28px;
}
.brand .figma-mark img,
.mobile-brand .figma-mark img,
.profile .figma-mark img {
  width: auto;
  height: auto;
  max-width: none;
  position: absolute;
  display: block;
}
.mark-layer-0 {
  left: 0;
  top: 0;
}
.mark-layer-1 {
  left: 15.1%;
  top: 20.98%;
}
.mark-layer-2 {
  left: calc(40.63% - 6px);
  top: calc(35.03% - 6px);
}
.mark-layer-3 {
  left: 62.5%;
  top: 28.65%;
}
.profile {
  align-items: start;
}
.profile > span {
  width: 36px;
  height: 28px;
}
.local-badge,
.profile,
.sidebar-bottom small {
  font-size: 12px;
  line-height: 16px;
}
.sidebar-bottom > small {
  display: block;
  max-width: 160px;
}
.topbar {
  border-bottom: 0;
  font-size: 12px;
  line-height: 16px;
}
.currency-code {
  padding: 6px 2px;
  border-radius: 12px;
  font-size: 12px;
}
.topbar > div {
  gap: 18px;
}
.demo-banner {
  margin: 0 32px;
  border-color: var(--line);
  padding: 12px 24px;
  min-height: 68px;
  font-size: 12px;
  line-height: 18px;
}
.sandbox-banner {
  gap: 16px;
}
.sandbox-banner > span {
  margin-right: auto;
}
.sandbox-banner > .btn {
  min-height: 44px;
}
.sandbox-banner > .text-button {
  padding: 12px 20px;
}
.page-heading {
  margin: 0;
  align-items: start;
  gap: 24px;
}
.page-heading h1 {
  margin: 0 0 24px;
}
.page-heading p {
  margin: 0;
  font-size: 14px;
}
.page-heading .button-stack {
  margin-top: 24px;
}
.page-home {
  gap: 10px;
}
.overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  margin: 0;
}
.overview-grid .hero-card {
  display: flex;
  gap: 10px;
  padding: 25px;
  min-height: 0;
}
.hero-top {
  width: 100%;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0;
}
.day-pill {
  padding: 6px 10px;
  line-height: 16px;
  flex-shrink: 0;
}
.big-money {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--sn-font-heading);
  font-size: 36px;
  font-weight: 600;
  line-height: 42px;
  letter-spacing: 0;
  margin: 0;
  flex-wrap: wrap;
}
.big-money span {
  display: inline;
  margin: 0;
  font-family: Geist, sans-serif;
  font-size: 13px;
  line-height: 19px;
  font-weight: 400;
}
.overview-grid .hero-card p {
  font-size: 12px;
  line-height: 16px;
  margin: 0;
}
.overview-grid .hero-bottom {
  flex-wrap: nowrap;
  margin: 0;
  padding-top: 17px;
  width: 100%;
}
.hero-bottom strong {
  font-family: var(--sn-font-family);
  font-size: 12px;
  line-height: 16px;
}
.hero-bottom small {
  font-size: 12px;
  line-height: 16px;
  margin-bottom: 8px;
}
.overview-grid .hero-card .btn.lime {
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}
.balance-card {
  gap: 8px;
}
.balance-card .section-title,
.spending-card .section-title {
  margin: 0;
  width: 100%;
}
.balance-number {
  font-family: var(--sn-font-heading);
  font-size: 36px;
  line-height: 42px;
  letter-spacing: 0;
  font-weight: 600;
}
.balance-card p {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
}
.balance-actions {
  margin-top: 0;
  width: 100%;
  gap: 8px;
}
.balance-actions .btn {
  min-width: 0;
  padding: 12px 14px;
}
.balance-caption {
  width: 100%;
  padding-top: 17px;
  margin-top: 0;
  font-size: 12px;
  line-height: 16px;
}
.spending-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.chart-total {
  font-family: var(--sn-font-heading);
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: 0;
}
.spending-card .hint {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
}
.week-chart {
  width: 100%;
  height: 116px;
  margin: 14px 0 0;
  gap: 12px;
}
.week-column {
  gap: 8px;
}
.week-column > span {
  font-size: 12px;
  line-height: 16px;
}
.week-track {
  background: #f5f3ef;
  border-radius: 6px;
}
.spending-card > .text-button {
  padding: 8px;
  align-self: start;
  min-height: 44px;
}
.stats {
  margin: 0;
  gap: 18px;
}
.mini-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 12px;
  padding: 24px;
}
.mini-card > span {
  font-size: 14px;
  line-height: 21px;
  color: var(--ink);
}
.mini-card > strong {
  font-family: var(--sn-font-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 34px;
  letter-spacing: 0;
  margin: 0;
}
.mini-card > small {
  font-size: 12px;
  line-height: 16px;
  margin: 0;
}
.detail-grid {
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.detail-grid .card {
  padding: 24px;
}
.detail-grid .tx {
  padding: 18px 0;
}
.tx-info strong {
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
}
.tx-info small {
  font-size: 12px;
  line-height: 16px;
  margin-top: 5px;
}
.tx-amount {
  font-size: 13px;
  line-height: 19px;
  font-weight: 400;
}
.tx {
  gap: 12px;
}
.tx-icon {
  flex-shrink: 0;
}
.calc-row {
  font-size: 13px;
  line-height: 19px;
}
.calc-row b {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: #3b4e44;
}
.explanation .tag {
  background: var(--sn-color-canvas);
  color: var(--muted);
}
.calc-row.total {
  border-top: 1px solid var(--line);
}
.explanation .hint {
  font-size: 12px;
  line-height: 16px;
  margin-bottom: 12px;
}
.soft-note {
  font-size: 12px;
  line-height: 18px;
  background: #f5f3ef;
}
.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  gap: 24px;
  align-items: start;
}
.hint,
small {
  font-size: 12px;
  line-height: 16px;
}
.wallets {
  margin: 0;
  gap: 16px;
}
.wallet {
  padding: 24px;
}
.wallet strong {
  font-family: var(--sn-font-heading);
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: 0;
}
.wallet.add-wallet {
  background: transparent;
}
.card:has(#tx-list) > .section-title {
  margin-bottom: 24px;
}
.search-label {
  max-width: none;
}
.capture-tools {
  margin: 0;
}
.page-report .two-col > .card,
.page-settings .two-col > .card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}
.page-report .card > h2,
.page-settings .card > h2,
.page-settings .card > p,
.page-settings hr {
  margin: 0;
}
.page-report .budget-row {
  padding: 24px 0;
  margin: 0;
}
.page-report .two-col .card:nth-child(2) {
  gap: 16px;
}
.budget-row > div:first-child {
  gap: 10px;
}
.progress {
  height: 6px;
}
.progress i {
  background: var(--sn-color-accent);
}
.page-settings #settings-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.page-settings #settings-form > label {
  margin: 0;
}
label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}
input,
select {
  height: 49px;
  padding: 12px 16px;
  line-height: 24px;
  border-color: var(--sn-color-control);
  border-radius: 12px;
  margin-top: 9px;
}
.input-prefix {
  border-color: var(--sn-color-control);
  border-radius: 11px;
  margin-top: 9px;
}
.input-prefix input {
  height: 48px;
  margin: 0;
  padding: 12px 16px;
}
.input-prefix > span {
  font-size: 12px;
}
.checked-balance {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.danger-zone-title,
.danger-zone > p {
  display: none;
}
.danger-zone > .btn {
  width: 100%;
}
.goal-art {
  margin-left: 0;
  margin-right: auto;
}
.page-wealth > .card {
  margin: 0;
}
.page-wealth .card > .section-title {
  margin-bottom: 20px;
}
.purchase-art {
  margin: 0 0 24px;
}
.step-label {
  font-size: 12px;
  line-height: 16px;
}
.page-buy .two-col {
  grid-template-columns: 1fr 1fr;
}
.page-buy .two-col > .card {
  padding: 24px;
}
.page-buy .input-prefix.large input {
  font-size: 16px;
  font-family: Geist, sans-serif;
}
.quick-picks {
  justify-content: center;
}
.quick-picks button {
  padding: 10px 8px;
  min-height: 40px;
  background: var(--sn-color-canvas);
}
.comparison {
  margin: 24px 0;
}
.comparison strong {
  font-family: var(--sn-font-heading);
  font-weight: 600;
}
.chart-data table {
  border: 1px solid var(--line);
  border-radius: 12px;
}
.chart-data td,
.chart-data th {
  border: 0;
  padding: 16px 12px;
  font-size: 12px;
}
.chart-data th {
  font-weight: 500;
}
.chart-data td:last-child,
.chart-data th:last-child {
  text-align: right;
}
.timeline-card .hint {
  margin-top: 24px;
}
dialog {
  max-width: calc(100% - 28px);
  padding: 29px;
  border-radius: 24px;
  width: min(480px, calc(100% - 28px));
}
#modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
#modal-form > .section-title {
  margin: 0;
  flex-wrap: nowrap;
  gap: 10px;
}
#dialog-title {
  font-family: var(--sn-font-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 34px;
  min-width: 0;
}
#modal-form > label,
#modal-form .form-grid label {
  margin: 0;
}
#modal-form > p {
  margin: 0;
}
#modal-form .modal-actions {
  margin: 0;
}
#modal-form .form-grid {
  padding-bottom: 18px;
}
.dialog-status:empty {
  display: none;
}
.welcome-art {
  margin: 0;
  height: 160px;
}
footer {
  font-family: var(--sn-font-heading);
  font-weight: 600;
  font-size: 22px;
  line-height: 28px;
  padding: 20px 46px 27px;
}
footer span {
  font-family: Geist, sans-serif;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  max-width: 225px;
}
@media (min-width: 821px) and (max-width: 1200px) {
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .spending-card {
    grid-column: 1 / -1;
  }
  .page-heading {
    flex-direction: column;
  }
  .page-heading .button-stack {
    margin-top: 0;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .recent-card {
    grid-row: auto;
  }
  .upcoming-card {
    grid-column: auto;
  }
}
@media (min-width: 601px) and (max-width: 820px) {
  .sidebar .brand {
    font-size: 0;
  }
  .sidebar .nav-item {
    font-size: 0;
    padding: 12px;
  }
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .page-buy .two-col {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .topbar {
    height: auto;
    min-height: 65px;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
  }
  .mobile-brand {
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
    letter-spacing: 0;
  }
  .currency-code {
    background: var(--sn-color-canvas);
    padding: 6px 10px;
    font-size: 12px;
    line-height: 14px;
  }
  .demo-banner {
    margin: 0;
    border-width: 0 0 1px;
    border-radius: 0;
    padding: 12px 16px 14px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
  }
  .demo-banner > span {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 12px;
    line-height: 18px;
  }
  .sandbox-banner > .btn {
    padding: 12px 16px;
    font-size: 12px;
    min-height: 40px;
  }
  .sandbox-banner > .text-button {
    padding: 10px 12px;
    justify-self: start;
  }
  .content {
    padding: 24px 16px;
    gap: 16px;
  }
  .page-home {
    gap: 16px;
  }
  .eyebrow {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0;
  }
  h1 {
    font-size: 36px;
    line-height: 42px;
    letter-spacing: 0;
  }
  .page-home h1 {
    font-size: 28px;
    line-height: 34px;
  }
  .page-heading {
    gap: 14px;
    margin: 0;
  }
  .page-heading h1 {
    margin: 0 0 4px;
  }
  .page-heading p {
    font-size: 13px;
    line-height: 19px;
  }
  .page-heading .button-stack {
    margin: 0;
    gap: 8px;
  }
  .page-heading .button-stack .btn {
    padding: 12px 10px;
  }
  .subtitle {
    font-size: 13px;
    line-height: 19px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .overview-grid .hero-card {
    min-height: 0;
    padding: 20px;
    gap: 12px;
  }
  .hero-top {
    flex-wrap: wrap;
    gap: 12px;
  }
  .big-money {
    font-size: 36px;
    line-height: 42px;
    font-weight: 700;
    gap: 6px;
  }
  .big-money span {
    font-size: 13px;
    font-weight: 600;
  }
  .overview-grid .hero-bottom {
    padding-top: 14px;
  }
  .hero-bottom strong {
    font-weight: 700;
  }
  .overview-grid .hero-card .btn.lime {
    font-weight: 600;
    padding: 10px 8px;
  }
  .card {
    padding: 20px;
    border-radius: 24px;
  }
  .balance-card {
    gap: 12px;
  }
  .balance-number {
    font-size: 28px;
    line-height: 34px;
    font-weight: 700;
  }
  .balance-caption {
    padding-top: 12px;
  }
  .balance-actions .btn {
    flex: 0 1 auto;
    padding: 12px 14px;
  }
  .spending-card {
    gap: 12px;
    grid-column: auto;
  }
  .spending-card .section-title {
    gap: 8px;
  }
  .section-title h2,
  .card > h2 {
    font-family: var(--sn-font-heading);
    font-size: 22px;
    line-height: 28px;
    font-weight: 700;
    min-width: 0;
  }
  .chart-total {
    font-size: 22px;
    line-height: 28px;
    font-weight: 700;
  }
  .week-chart {
    height: 140px;
    margin: 0;
  }
  .spending-card > .text-button {
    padding: 8px 0;
  }
  .stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .mini-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 12px;
  }
  .mini-card > strong {
    font-size: 28px;
    line-height: 34px;
    text-align: left;
    font-weight: 600;
  }
  .mini-card > small {
    margin: 0;
  }
  .detail-grid {
    gap: 12px;
  }
  .detail-grid .card {
    padding: 20px;
  }
  .card > .section-title {
    margin: 0 0 12px;
    padding: 0;
  }
  .detail-grid .tx,
  .tx {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 44px 44px;
    column-gap: 8px;
    row-gap: 4px;
    padding: 14px 0;
  }
  .tx-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 36px;
    height: 36px;
    margin: 0;
    align-self: center;
  }
  .tx-info {
    display: contents;
  }
  .tx-info strong {
    grid-row: 1;
    grid-column: 2 / 4;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    padding-right: 70px;
  }
  .tx-info small {
    grid-row: 2;
    grid-column: 2 / 4;
    font-size: 12px;
    line-height: 18px;
    margin: 0;
    padding-right: 20px;
  }
  .tx-amount,
  .detail-grid .tx-amount {
    grid-row: 1;
    grid-column: 3 / 5;
    justify-self: end;
    align-self: start;
    font-size: 13px;
    line-height: 20px;
    margin: 0;
    width: auto;
    padding: 0;
  }
  .tx .edit-tx {
    grid-row: 2;
    grid-column: 3;
    justify-self: end;
  }
  .tx > [data-delete-tx] {
    grid-row: 2;
    grid-column: 4;
    justify-self: end;
  }
  .tx .icon-button {
    font-size: 14px;
  }
  .detail-grid .calc-row {
    gap: 12px;
    padding: 12px 0;
    border-top: 0;
  }
  .detail-grid .calc-row.total {
    background: var(--sn-color-accent-soft);
    padding: 12px;
    border-radius: 10px;
  }
  .calc-row.total b {
    color: var(--sn-color-accent-ink);
    font-size: 14px;
    font-weight: 700;
  }
  .explanation .hint {
    margin: 12px 0 0;
    line-height: 18px;
  }
  .bill {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 14px 0;
  }
  .bill > .bill-icon {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .bill > div {
    grid-column: 2;
    grid-row: 1 / 3;
    min-width: 0;
  }
  .bill > b {
    grid-column: 3;
    grid-row: 1;
    font-size: 13px;
    font-weight: 700;
  }
  .bill > button {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 8px 12px;
  }
  .soft-note {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 18px;
    padding: 14px;
  }
  .wallets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .wallet {
    padding: 16px;
    min-width: 0;
    border-radius: 24px;
  }
  .wallet > span {
    font-size: 12px;
    line-height: 18px;
  }
  .wallet strong {
    font-size: 20px;
    line-height: 26px;
    font-weight: 700;
  }
  .wallet.add-wallet {
    border-style: dashed;
    min-height: 124px;
  }
  .page-transactions {
    padding-bottom: 42px;
  }
  .page-transactions .page-heading .btn {
    width: 100%;
  }
  .page-transactions .page-heading > div:last-child {
    width: 100%;
  }
  .page-transactions .card > .section-title {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 12px;
  }
  .page-transactions .card > .section-title > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .capture-tools {
    gap: 8px;
  }
  .capture-tools .btn {
    padding: 12px 18px;
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .page-buy .two-col {
    grid-template-columns: 1fr;
  }
  .page-buy .two-col > .card {
    padding: 20px;
  }
  .page-buy .timeline-card > .section-title {
    align-items: start;
    flex-direction: column;
  }
  .page-plan {
    gap: 12px;
  }
  .page-plan .card .calc-row {
    border-top: 1px solid var(--line);
  }
  .page-plan .budget-row,
  .page-report .budget-row {
    border-top: 1px solid var(--line);
    padding: 14px 0;
    margin: 0;
  }
  .budget-row > div:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .budget-row > div:first-child > span {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .page-report .two-col > .card,
  .page-settings .two-col > .card {
    gap: 16px;
  }
  .page-report .two-col .btn {
    width: 100%;
  }
  .page-settings #settings-form {
    gap: 16px;
  }
  .page-settings #settings-form button,
  .page-settings .card > .btn {
    width: fit-content;
    max-width: 100%;
  }
  .page-settings .button-stack {
    flex-direction: column;
    gap: 8px;
  }
  .page-settings .button-stack > * {
    width: 100%;
  }
  .page-settings .checked-balance {
    padding: 12px;
    border-radius: 10px;
    background: var(--sn-color-canvas);
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
  }
  .page-settings .card > .section-title h2 {
    font-size: 22px;
  }
  .danger-zone {
    background: #fef2f2;
    border: 1px solid #fccaca;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .danger-zone-title {
    display: block;
    color: var(--sn-color-danger);
    font-size: 12px;
    line-height: 16px;
  }
  .danger-zone > p {
    display: block;
    font-size: 12px;
    line-height: 18px;
    margin: 0;
  }
  .danger-zone > .btn {
    width: fit-content;
    max-width: 100%;
  }
  .page-wealth .goal-art {
    width: 140px;
    height: 140px;
  }
  .mobile-nav {
    padding: 9px 4px max(4px, env(safe-area-inset-bottom));
    gap: 0;
    background: #fffefa;
  }
  .mobile-nav .nav-item {
    min-width: 0;
    height: 64px;
    gap: 4px;
    padding: 8px 3px;
    font-size: 12px;
    line-height: 16px;
    border-radius: 12px;
  }
  .mobile-nav .nav-item.active {
    background: var(--sn-color-inverse);
    color: white;
  }
  .figma-nav-art .nav-desktop-art {
    display: none;
  }
  .figma-nav-art .nav-mobile-art {
    display: block;
  }
  .mobile-nav .nav-item.active .figma-nav-art img {
    filter: none;
  }
  .mobile-nav .nav-item > span {
    width: 24px;
    font-size: 20px;
  }
  footer {
    border-top: 1px solid var(--line);
    padding: 16px 20px;
    font-family: Geist, sans-serif;
    font-size: 14px;
    line-height: 20px;
    margin: 0;
  }
  footer span {
    font-size: 12px;
    line-height: 18px;
    max-width: 220px;
  }
  main {
    padding-bottom: 85px;
  }
  dialog {
    padding: 24px;
  }
  #modal-form .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .modal-actions .btn {
    padding: 12px 16px;
  }
}
@media (max-width: 359px) {
  .tx-info strong {
    padding-right: 85px;
  }
  .tx-info small {
    grid-column: 2 / 5;
    padding-right: 0;
  }
  .tx .edit-tx,
  .tx > [data-delete-tx] {
    grid-row: 3;
  }
  .hero-top {
    flex-wrap: wrap;
  }
  .overview-grid .hero-bottom {
    flex-wrap: wrap;
  }
  .big-money,
  .balance-number,
  .mini-card > strong {
    overflow-wrap: anywhere;
    max-width: 100%;
  }
}
/* Final geometry pass against the native desktop and mobile frames. */
#app {
  position: relative;
  min-height: 100vh;
}
.sidebar {
  position: absolute;
  height: auto;
  min-height: 100vh;
}
.sidebar .nav-item {
  justify-content: center;
  font-weight: 500;
  height: 49px;
}
.profile strong {
  font-weight: 400;
}
.brand {
  align-items: start;
}
.brand .figma-mark {
  margin-top: 0;
}
.week-chart {
  height: 110px;
}
.spending-card {
  padding-bottom: 20px;
}
.spending-card > .text-button {
  min-height: 40px;
}
.page-heading .button-stack {
  margin-top: 0;
}
.tx-content,
.tx-heading,
.tx-meta,
.tx-actions {
  display: contents;
}
.tx {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 44px 44px;
  align-items: center;
}
.tx-icon {
  grid-column: 1;
  grid-row: 1 / 3;
}
.tx-note {
  grid-column: 2;
  grid-row: 1;
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
}
.tx-meta > small {
  grid-column: 2;
  grid-row: 2;
  font-size: 12px;
  line-height: 16px;
}
.tx-amount {
  grid-column: 3;
  grid-row: 1 / 3;
}
.tx .edit-tx {
  grid-column: 4;
  grid-row: 1 / 3;
}
.tx [data-delete-tx] {
  grid-column: 5;
  grid-row: 1 / 3;
}
.page-home .tx {
  border-bottom: 0;
}
.tx-export-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.capture-actions {
  margin: 0;
  gap: 12px;
}
.mobile-currency-tag {
  display: none;
}
.currency-heading {
  margin: 0 !important;
}
.wallet > button {
  padding: 8px 0;
  min-width: 36px;
}
.page-settings .btn.danger {
  font-size: 12px;
  font-weight: 500;
}
@media (min-width: 601px) {
  .overview-grid .hero-card {
    padding: 26px;
  }
  .overview-grid .hero-bottom strong {
    font-size: 14px;
    font-weight: 400;
  }
  .bill > strong,
  .bill strong,
  .bill > b {
    font-weight: 400;
  }
}
@media (max-width: 600px) {
  #app {
    border: 1px solid var(--line);
  }
  .page-plan > .eyebrow,
  .page-report > .eyebrow,
  .page-buy > .eyebrow,
  .page-wealth > .eyebrow {
    margin-bottom: -12px;
  }
  .page-plan > h1,
  .page-report > h1,
  .page-buy > h1,
  .page-wealth > h1 {
    margin-bottom: -12px;
  }
  .page-transactions h1,
  .page-plan h1,
  .page-report h1 {
    font-size: 28px;
    line-height: 34px;
  }
  .capture-actions {
    gap: 8px;
  }
  .capture-actions .btn {
    padding: 12px 18px;
    min-height: 40px;
  }
  .wallet {
    min-height: 106px;
  }
  .wallet.add-wallet {
    min-height: 106px;
  }
  .wallet > span {
    white-space: nowrap;
    font-size: 12px;
  }
  .wallet > button {
    min-width: 28px;
    font-size: 12px;
  }
  .page-transactions .card > .section-title .tx-export-actions {
    display: grid;
    grid-template-columns: auto auto;
    gap: 8px;
  }
  .tx-export-actions .text-button {
    padding: 12px 20px;
    justify-content: start;
  }
  .page-transactions .card:has(#tx-list) > .section-title {
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 100%;
  }
  .page-transactions .card:has(#tx-list) > .section-title .tx-export-actions {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
  }
  .page-transactions
    .card:has(#tx-list)
    > .section-title
    .tx-export-actions
    .text-button {
    padding: 12px 20px;
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .page-home .tx,
  .tx {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
  }
  .tx-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }
  .tx-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
  }
  .tx-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }
  .tx-note {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    overflow-wrap: anywhere;
    min-width: 0;
  }
  .tx-amount,
  .detail-grid .tx-amount {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    max-width: 55%;
    overflow-wrap: anywhere;
  }
  .tx-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
  }
  .tx-meta > small {
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .tx-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
  }
  .tx-actions .icon-button {
    min-width: 28px;
    width: 28px;
    height: 40px;
    min-height: 40px;
    padding: 6px;
    font-size: 12px;
  }
  .mobile-currency-tag {
    display: inline-flex;
  }
  label {
    color: var(--ink);
  }
  .page-settings > h1 {
    margin-bottom: -12px;
  }
  .page-settings > .eyebrow {
    margin-bottom: -12px;
  }
  .page-settings .card > p {
    font-size: 13px;
    line-height: 19px;
  }
  .page-home .tx {
    border-bottom: 1px solid var(--line);
  }
  .page-home .tx:last-child {
    border-bottom: 0;
  }
  .mobile-nav .nav-item[data-action="more-nav"] {
    background: none;
    color: var(--ink);
    flex-direction: row;
    gap: 3px;
    font-size: 12px;
  }
  .mobile-nav .nav-item[data-action="more-nav"] > span {
    font-size: 12px;
    width: auto;
  }
  .mobile-nav .nav-item[data-context="report"] {
    background: var(--sn-color-inverse);
    color: white;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
  }
  .mobile-nav .nav-item[data-context="report"] > span {
    width: 24px;
  }
  .page-home > .eyebrow {
    margin-bottom: -12px;
  }
  .stats,
  .overview-grid,
  .detail-grid,
  .two-col,
  .page-buy .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
  .mini-card,
  .balance-card {
    min-width: 0;
  }
  .mini-card > strong,
  .balance-number {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .balance-card > .section-title,
  .spending-card > .section-title {
    margin: 0;
  }
}
/* Projection table and form rhythm mirror the composed Figma views. */
.page-wealth .two-col {
  align-items: stretch;
}
.chart-data td {
  padding: 13.5px 12px 14px;
  line-height: 16px;
}
.chart-data th {
  padding: 13px 12px 14px;
  line-height: 16px;
}
.example-notice {
  background: var(--sn-color-soft);
  color: var(--muted);
}
.example-notice p {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 18px;
}
.page-buy .comparison {
  background: var(--sn-color-soft);
}
@media (max-width: 600px) {
  .page-plan .section-title {
    flex-wrap: nowrap;
    align-items: start;
  }
  .page-plan .section-title h2 {
    flex: 1;
    min-width: 0;
  }
  .page-plan .section-title .text-button {
    flex-shrink: 0;
  }
  .page-plan .configured-bill {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    gap: 4px 8px;
  }
  .configured-bill .bill-definition {
    display: contents;
  }
  .configured-bill .bill-definition > strong {
    grid-column: 1 / 3;
    grid-row: 1;
    padding-right: 48px;
    font-size: 14px;
    line-height: 20px;
  }
  .configured-bill .bill-definition > small {
    grid-column: 1;
    grid-row: 2;
    font-size: 12px;
    line-height: 18px;
  }
  .configured-bill > b {
    grid-column: 2 / 4;
    grid-row: 1;
    justify-self: end;
    font-size: 13px;
  }
  .configured-bill > [data-edit-bill] {
    grid-column: 2;
    grid-row: 2;
  }
  .configured-bill > [data-delete-bill] {
    grid-column: 3;
    grid-row: 2;
  }
  .page-buy .chart {
    height: 80px;
  }
  .page-buy .chart-data td,
  .page-buy .chart-data th {
    padding: 12px 16px;
    line-height: 16px;
    border-bottom: 1px solid var(--line);
  }
  .page-buy .chart-data thead {
    background: var(--sn-color-soft);
  }
  .page-buy .chart-data tr:last-child td {
    font-weight: 700;
  }
  .page-buy .chart-data tbody tr:last-child {
    background: var(--sn-color-soft);
  }
  .page-buy .two-col > .card {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .page-buy .two-col > .card > * {
    margin-top: 0;
    margin-bottom: 0;
  }
  .page-buy .two-col > .card > label {
    width: 100%;
  }
  .page-buy .purchase-art {
    height: 110px;
    margin: 0;
  }
  .page-buy .step-label {
    margin: 0;
  }
  .page-buy .quick-picks {
    width: 100%;
    justify-content: start;
    gap: 8px;
    margin: 0;
  }
  .page-buy .quick-picks button {
    background: white;
    padding: 10px 12px;
  }
  .page-buy .simulation > .calc-row {
    width: 100%;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
  }
  .page-buy .simulation > .calc-row.total {
    background: var(--sn-color-accent-soft);
  }
  .page-buy .simulation > .comparison {
    width: 100%;
    padding: 16px;
  }
  .page-buy .simulation > .hint {
    margin: 0;
  }
  .page-plan .budget-row,
  .page-report .budget-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .budget-row > div:first-child {
    width: 100%;
    gap: 0 8px;
    align-items: center;
  }
  .budget-row > div:first-child > strong {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .budget-row > div:first-child > button {
    grid-column: 2;
    grid-row: 1;
    min-height: 32px;
    padding: 6px 8px;
  }
  .budget-row > div:first-child > span {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
  }
  .budget-row > div:first-child:not(:has(button)) > span {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .budget-row > .progress {
    width: 100%;
    margin: 0;
  }
  .budget-row > small {
    margin: 0;
  }
}
