:root {
  --page: #f0f2f1;
  --card: #ffffff;
  --ink: #111113;
  --muted: #777b7e;
  --line: #e6e8e7;
  --pill: #f2f4f3;
  --nav-muted: #c9ceca;
  --green: #61755e;
  --teal: #237f8f;
  --sand: #d3c7a9;
  --orange: #f25717;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; }

.app-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 28px 20px 126px;
  overflow: hidden;
}

.topbar {
  height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  margin-bottom: 18px;
}

.profile-button,
.icon-button,
.more-button,
.nav-item,
.account-row,
.task-pill,
.primary-actions button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.profile-button {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sand);
  display: grid;
  place-items: center;
  padding: 0;
}

.profile-letter {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1;
}

.notification-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--orange);
  right: -4px;
  top: -3px;
  box-shadow: 0 0 0 2px var(--page);
}

.brand {
  padding-top: 10px;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: .23em;
}

.analytics-button {
  justify-self: end;
  width: 37px;
  height: 37px;
  padding: 0;
}

.analytics-button svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card {
  background: var(--card);
  border-radius: 15px;
}

.task-card {
  padding: 20px 0 14px 16px;
  margin-bottom: 10px;
}

.task-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.task-heading h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 430;
}

.sparkle {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.task-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-right: 16px;
  scrollbar-width: none;
}

.task-scroll::-webkit-scrollbar { display: none; }

.task-pill {
  flex: 0 0 auto;
  height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}

.task-pill svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.balance-card {
  overflow: hidden;
  margin-bottom: 26px;
}

.balance-header {
  padding: 21px 18px 13px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.eyebrow,
.overview-section h2 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .12em;
  font-weight: 430;
}

.balance-amount {
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  line-height: 1;
}

.more-button {
  font-size: 22px;
  letter-spacing: 3px;
  padding: 0 0 10px 12px;
  line-height: 1;
}

.primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 0 18px 20px;
}

.primary-actions button {
  height: 44px;
  border-radius: 999px;
  background: #121214;
  color: white;
  font-size: 15px;
  font-weight: 650;
}

.account-list { border-top: 1px solid transparent; }

.account-row {
  width: 100%;
  min-height: 82px;
  padding: 12px 16px 12px 18px;
  display: grid;
  grid-template-columns: 42px 1fr auto 15px;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.account-row:first-child { border-top: 0; }

.account-icon {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
}

.account-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-icon { background: var(--green); }
.checking-icon { background: var(--teal); }
.taxes-icon {
  color: #b0aa91;
  background: white;
  border: 2px solid #eff0eb;
  box-shadow: inset 0 0 0 5px white;
}

.account-copy { display: grid; gap: 3px; }
.account-name { font-size: 16px; font-weight: 700; }
.account-number { font-size: 15px; color: #26272a; letter-spacing: .02em; }
.account-balance { font-size: 17px; font-weight: 650; }
.chevron { color: #cbd0cd; font-size: 31px; font-weight: 220; line-height: 1; transform: translateY(-1px); }

.overview-section h2 { margin-bottom: 16px; }

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.overview-card {
  min-height: 178px;
  padding: 17px 20px;
  overflow: hidden;
}

.metric-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
}

.metric-value {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  white-space: nowrap;
}

.metric-date {
  margin: 0;
  color: #45484a;
  font-size: 14px;
}

.expense-card {
  position: relative;
  padding-bottom: 120px;
}

.mini-chart {
  position: absolute;
  left: 36px;
  right: 24px;
  bottom: -28px;
  height: 86px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 12px;
}

.mini-chart span {
  width: 20px;
  display: block;
  background: #c6a494;
  border-radius: 4px 4px 0 0;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 20;
  width: 100%;
  max-width: 430px;
  height: 96px;
  padding: 13px 27px max(15px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  background: rgba(255,255,255,.98);
  border-top: 1px solid #edf0ee;
  backdrop-filter: blur(16px);
}

.nav-item {
  width: 45px;
  height: 45px;
  justify-self: center;
  padding: 6px;
  color: var(--nav-muted);
}

.nav-item.active { color: var(--ink); }

.nav-item svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 360px) {
  .app-shell { padding-left: 14px; padding-right: 14px; }
  .balance-amount { font-size: 26px; }
  .account-row { grid-template-columns: 40px 1fr auto 11px; gap: 9px; }
  .account-name, .account-balance { font-size: 15px; }
  .overview-card { padding-left: 14px; padding-right: 14px; }
  .metric-value { font-size: 21px; }
}

@media (min-width: 431px) {
  body { padding: 18px 0; }
  .app-shell {
    box-shadow: 0 16px 50px rgba(18, 24, 20, .12);
    border-radius: 28px;
  }
  .bottom-nav { border-radius: 0 0 28px 28px; }
}



.account-link { text-decoration: none; }

.primary-page {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  color: var(--ink);
}

.primary-hero {
  background: #eef1ef;
  padding: calc(22px + env(safe-area-inset-top)) 20px 20px;
}

.primary-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.primary-back,
.primary-settings {
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  text-decoration: none;
}

.primary-back svg,
.primary-settings svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
}

.primary-title {
  margin: 0 0 15px;
  font-size: 18px;
  font-weight: 500;
}

.primary-large-balance {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 13vw, 62px);
  line-height: .95;
  letter-spacing: -.04em;
}

.primary-shield {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #657360;
  color: #fff;
  display: grid;
  place-items: center;
}

.primary-shield svg {
  width: 37px;
  height: 37px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-page-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.primary-page-actions button {
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
}

.bank-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 23px 20px 20px;
  border-bottom: 1px solid var(--line);
}

.bank-detail-label {
  margin: 0 0 7px;
  color: #85898c;
  font-size: 15px;
}

.bank-detail-value {
  margin: 0;
  font-size: 18px;
  letter-spacing: .05em;
}

.cards-row {
  min-height: 82px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.cards-row h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.cards-row p {
  margin: 0;
  color: #85898c;
  font-size: 15px;
}

.card-stack {
  position: relative;
  width: 40px;
  height: 40px;
}

.card-stack::before,
.card-stack::after {
  content: "";
  position: absolute;
  left: 3px;
  width: 34px;
  height: 24px;
  border-radius: 4px;
}

.card-stack::before {
  top: 2px;
  background: #7f5c74;
}

.card-stack::after {
  top: 9px;
  background: #bcc4dc;
  border: 1px solid #fff;
}

.card-dot {
  position: absolute;
  right: 5px;
  bottom: 4px;
  z-index: 2;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef2d27;
  box-shadow: -4px 0 0 #f5a800;
}

.activity-heading {
  margin: 0;
  padding: 30px 20px 16px;
  color: #85898c;
  font-size: 14px;
  letter-spacing: .12em;
  font-weight: 500;
}

.transaction {
  min-height: 88px;
  padding: 17px 20px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.transaction-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #7c8280;
}

.transaction-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.transaction-icon.meal {
  border: 2px solid #d9e3df;
  border-radius: 50%;
  color: var(--ink);
}

.transaction-icon.category {
  border: 2px dashed #aaa178;
  border-radius: 50%;
}

.transaction-name {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
  font-weight: 700;
}

.transaction-note,
.transaction-time {
  display: block;
  color: #85898c;
  font-size: 14px;
  line-height: 1.45;
}

.transaction-note.category-note {
  color: #9b9368;
  font-weight: 650;
}

.transaction-amount {
  align-self: start;
  padding-top: 2px;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.transaction.declined .transaction-name,
.transaction.declined .transaction-amount {
  color: #747a7d;
}

.transaction.declined .transaction-amount {
  text-decoration: line-through;
}

@media (max-width: 360px) {
  .primary-hero,
  .bank-details,
  .cards-row,
  .transaction {
    padding-left: 15px;
    padding-right: 15px;
  }
  .primary-large-balance { font-size: 43px; }
  .primary-shield { width: 56px; height: 56px; }
}

@media (min-width: 431px) {
  .primary-page {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(18, 24, 20, .12);
  }
}
