:root {
  color-scheme: light;
  --mobile-gutter: clamp(16px, 4vw, 28px);
  --mobile-nav-height: 72px;
}

html {
  min-height: 100%;
  background: var(--paper-100);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--paper-100);
  color: var(--slate-900);
  font-family: var(--font-ui);
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

p,
h1,
h2,
h3,
h4,
dl,
dd,
ol,
ul {
  margin: 0;
}

button,
input,
select,
textarea {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: var(--paper-50);
  color: var(--ink-950);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.launch-state,
.noscript-state {
  display: grid;
  min-height: 100dvh;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 32px;
  background: var(--navy-900);
  color: var(--paper-50);
  text-align: center;
}

.launch-brand-plate {
  display: grid;
  width: min(82vw, 360px);
  min-height: 86px;
  place-items: center;
  padding: 18px 22px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: var(--paper-50);
  box-shadow: var(--shadow-dark);
}

.launch-brand-plate img {
  width: 100%;
  height: auto;
  max-height: 70px;
  object-fit: contain;
}

.launch-state p,
.noscript-state p {
  color: #c5d0d9;
}

.loading-line {
  width: 160px;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line-dark);
}

.loading-line::after {
  display: block;
  width: 45%;
  height: 100%;
  background: var(--gold-500);
  content: "";
  animation: loading 1.1s var(--ease-out) infinite;
}

@keyframes loading {
  from { transform: translateX(-110%); }
  to { transform: translateX(250%); }
}

.network-banner {
  position: sticky;
  z-index: 80;
  top: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px var(--mobile-gutter);
  border-bottom: 1px solid #d6b36e;
  background: #fff4dc;
  color: #6d4510;
  font-size: 0.8125rem;
}

.network-banner img {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.network-banner span {
  display: grid;
  gap: 1px;
}

.app-shell {
  min-height: 100dvh;
  background: var(--paper-100);
}

.app-sidebar {
  display: none;
}

.mobile-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 64px;
  padding: 8px var(--mobile-gutter);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(7, 26, 46, .97);
  color: var(--paper-50);
  backdrop-filter: blur(16px);
}

.brand-lockup,
.sidebar-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.compact-brand-plate {
  display: grid;
  width: 44px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  padding: 6px;
  border: 1px solid var(--line-light);
  border-radius: 9px;
  background: var(--paper-50);
}

.compact-brand-plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.full-brand-plate {
  display: grid;
  width: 100%;
  min-height: 54px;
  place-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  background: var(--paper-50);
}

.full-brand-plate img {
  width: 100%;
  max-height: 44px;
  object-fit: contain;
}

.login-brand {
  display: block;
  width: min(250px, 68vw);
}

.brand-lockup > img,
.sidebar-brand > img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 11px;
}

.brand-lockup span,
.sidebar-brand span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.brand-lockup strong,
.sidebar-brand strong {
  overflow: hidden;
  font-size: 0.9375rem;
  letter-spacing: .01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-lockup small,
.sidebar-brand small {
  overflow: hidden;
  color: #9fb0bf;
  font-size: 0.75rem;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.demo-mark,
.status {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .025em;
  line-height: 1.25;
}

.demo-mark {
  margin-right: 4px;
  border: 1px solid var(--line-dark);
  color: #c7d2dc;
}

.demo-mark::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
  content: "";
}

.status.success { background: var(--success-soft); color: #195a45; }
.status.warning { background: var(--warning-soft); color: #704609; }
.status.risk { background: var(--risk-soft); color: #8d3030; }
.status.info { background: var(--info-soft); color: #24567f; }
.status.neutral { background: #e9e6df; color: var(--slate-700); }

.icon-button {
  position: relative;
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast);
}

.icon-button:hover {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
}

.icon-button:active {
  transform: scale(.97);
}

.icon-button img {
  width: 21px;
  height: 21px;
}

.notification-button b {
  position: absolute;
  top: 5px;
  right: 3px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-content: center;
  border: 2px solid var(--navy-900);
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--ink-950);
  font-size: .6rem;
}

.app-main {
  min-width: 0;
  padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 24px);
}

.accounts-overview-grid {
  display: grid;
  gap: 12px;
}

.account-overview-card {
  display: grid;
  min-height: 210px;
  align-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--paper-50);
  box-shadow: 0 7px 22px rgba(5,19,34,.045);
}

.account-overview-card.featured {
  border-color: var(--line-dark);
  background: var(--navy-800);
  color: var(--paper-50);
}

.account-overview-card header,
.account-overview-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-overview-card > div {
  display: grid;
  gap: 5px;
}

.account-overview-card > div > span,
.account-overview-card small,
.account-overview-card footer > span { color: var(--slate-600); font-size: .7rem; }
.account-overview-card.featured > div > span,
.account-overview-card.featured small,
.account-overview-card.featured footer > span { color: #adbbc6; }
.account-overview-card > div > strong { font-size: 1.65rem; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }

.account-type-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-content: center;
  border-radius: 10px;
  background: var(--paper-100);
}

.account-type-icon img { width: 21px; height: 21px; }
.account-overview-card.featured .account-type-icon { background: rgba(199,161,90,.14); }
.account-overview-card.featured .account-type-icon img { filter: invert(88%) sepia(24%) saturate(530%) hue-rotate(353deg); }
.account-overview-card.featured .button.secondary,
.dark-secondary { border-color: #3a5369; background: transparent; color: var(--paper-50); }
.account-overview-card.featured .button.secondary img,
.dark-secondary img { filter: invert(1); }

.account-help-band {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line-light);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-md);
  background: var(--paper-50);
}

.account-help-band > div { display: flex; align-items: center; gap: 10px; }
.account-help-band > div:last-child { flex-wrap: wrap; }
.account-help-band img { width: 21px; height: 21px; }
.account-help-band span { display: grid; gap: 2px; }
.account-help-band small { color: var(--slate-600); }

.account-identifiers,
.account-activity { margin-top: 20px; }

.copy-value {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 4px;
  background: transparent;
  color: var(--info);
  font-weight: 750;
  cursor: pointer;
}

.copy-value img { width: 16px; height: 16px; }

.request-row > span:last-child {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.route-explainer {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 11px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: var(--navy-800);
  color: var(--paper-50);
}

.route-explainer > img { width: 21px; height: 21px; filter: invert(88%) sepia(24%) saturate(530%) hue-rotate(353deg); }
.route-explainer p { display: grid; gap: 3px; font-size: .78rem; }
.route-explainer p span { color: #aebbc7; font-size: .68rem; }
.route-choice { grid-template-columns: 44px minmax(0,1fr) 20px; }
.route-choice.recommended { border-color: #c7a15a; }
.rail-choice-list { margin-bottom: 26px; }

.saved-beneficiaries { margin-top: 24px; }
.beneficiary-rail {
  display: grid;
  grid-auto-columns: 142px;
  grid-auto-flow: column;
  grid-auto-rows: max-content;
  align-items: start;
  gap: 10px;
  max-height: 170px;
  overflow-x: auto;
  scrollbar-width: none;
}
.beneficiary-rail::-webkit-scrollbar { display: none; }
.beneficiary-card {
  display: grid;
  min-height: 132px;
  align-content: space-between;
  justify-items: start;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: var(--paper-50);
  text-align: left;
  cursor: pointer;
}
.beneficiary-card > span { display: grid; width: 38px; height: 38px; place-content: center; border-radius: 10px; background: var(--navy-800); color: var(--gold-300); font-size: .68rem; font-weight: 800; }
.beneficiary-card strong { font-size: .75rem; }
.beneficiary-card small { color: var(--slate-600); font-size: .62rem; }

.context-required {
  display: grid;
  width: min(100%, 560px);
  justify-items: center;
  gap: 12px;
  margin: 30px auto;
  padding: clamp(22px, 6vw, 42px);
  border: 1px solid var(--line-light);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius-lg);
  background: var(--paper-50);
  box-shadow: var(--shadow-paper);
  text-align: center;
}
.context-required > span:first-child { display: grid; width: 58px; height: 58px; place-content: center; border-radius: 14px; background: var(--warning-soft); }
.context-required > span img { width: 29px; height: 29px; }
.context-required h1 { font-size: 1.55rem; }
.context-required > p:not(.eyebrow) { color: var(--slate-600); font-size: .8rem; }
.context-profile { display: flex; width: 100%; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line-light); border-radius: var(--radius-md); text-align: left; }
.context-profile p { display: grid; gap: 2px; }
.context-profile small { color: var(--slate-600); }

.beneficiary-facts { margin-top: 12px; }
.document-stack { display: grid; gap: 10px; }
.upload-zone {
  display: grid;
  grid-template-columns: 30px minmax(0,1fr);
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 78px;
  padding: 13px;
  border: 1px dashed #b9ae9d;
  border-radius: var(--radius-md);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.upload-zone:hover { border-color: var(--gold-500); background: rgba(251,249,244,.65); }
.upload-zone > img { width: 23px; height: 23px; }
.upload-zone span { display: grid; gap: 2px; }
.upload-zone small { color: var(--slate-600); }

.fx-quote {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: var(--navy-800);
  color: var(--paper-50);
}
.fx-quote header,
.fx-quote footer { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px; }
.fx-quote header span,
.fx-quote footer span { color: #aebbc7; font-size: .72rem; }
.fx-quote header strong,
.fx-quote footer strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.fx-quote footer { border-top: 1px solid var(--line-dark); background: rgba(255,255,255,.025); }
.fx-route { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--line-dark); }
.fx-route span { font-size: .7rem; font-weight: 800; }
.fx-route i { height: 1px; background: #3b5267; }
.fx-route em { color: var(--gold-300); font-size: .68rem; font-style: normal; }

.tracking-hero {
  display: grid;
  grid-template-columns: 54px minmax(0,1fr);
  align-items: start;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line-light);
  border-left: 3px solid var(--info);
  border-radius: var(--radius-lg);
  background: var(--paper-50);
}
.tracking-hero.success { border-left-color: var(--success); }
.tracking-hero.warning { border-left-color: var(--warning); }
.tracking-hero.risk { border-left-color: var(--risk); }
.tracking-hero > span { display: grid; width: 54px; height: 54px; place-content: center; border-radius: 14px; background: var(--info-soft); }
.tracking-hero.success > span { background: var(--success-soft); }
.tracking-hero.warning > span { background: var(--warning-soft); }
.tracking-hero.risk > span { background: var(--risk-soft); }
.tracking-hero img { width: 28px; height: 28px; }
.tracking-hero div { display: grid; gap: 4px; }
.tracking-hero small { color: var(--slate-600); font-size: .68rem; }
.tracking-hero h2 { font-size: 1.1rem; }
.tracking-hero p { color: var(--slate-600); font-size: .75rem; }

.process-timeline { display: grid; margin: 18px 0; }
.process-timeline > div { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 10px; min-height: 64px; }
.process-timeline i { position: relative; width: 12px; height: 12px; margin: 4px 0 0 6px; border: 2px solid #b8b2a8; border-radius: 50%; background: var(--paper-100); }
.process-timeline i::after { position: absolute; top: 12px; left: 3px; width: 2px; height: 46px; background: #d2ccc0; content: ""; }
.process-timeline > div:last-child i::after { display: none; }
.process-timeline .complete i { border-color: var(--success); background: var(--success); }
.process-timeline p { display: grid; align-content: start; gap: 3px; }
.process-timeline p strong { font-size: .78rem; }
.process-timeline p span { color: var(--slate-600); font-size: .68rem; }
.connected-proof { display: grid; grid-template-columns: 44px minmax(0,1fr); align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line-light); border-radius: var(--radius-md); background: var(--paper-50); }
.connected-proof > span { display: grid; width: 44px; height: 44px; place-content: center; border-radius: 11px; background: var(--info-soft); }
.connected-proof img { width: 22px; height: 22px; }
.connected-proof p { display: grid; gap: 2px; }
.connected-proof small { color: var(--slate-600); font-size: .66rem; }
.connected-proof .button { grid-column: 1 / -1; }

.route-map { display: grid; grid-template-columns: 1fr 42px 1fr; align-items: center; gap: 10px; margin-top: 18px; }
.route-map > span { display: grid; justify-items: center; gap: 4px; padding: 14px; border: 1px solid var(--line-light); border-radius: var(--radius-md); background: var(--paper-50); }
.route-map b { display: grid; width: 42px; height: 42px; place-content: center; border-radius: 50%; background: var(--navy-800); color: var(--gold-300); }
.route-map small { color: var(--slate-600); font-size: .65rem; }
.route-map > i { display: grid; place-content: center; }
.route-map > i img { width: 21px; height: 21px; }

.search-field { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.search-field input { min-width: 0; }

.payment-category-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.payment-category {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) auto 18px;
  align-items: center;
  gap: 11px;
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: var(--paper-50);
  transition: border-color var(--duration-fast), transform var(--duration-fast), box-shadow var(--duration-fast);
}
.payment-category:hover { border-color: #bfb5a4; box-shadow: 0 7px 20px rgba(5,19,34,.06); transform: translateY(-1px); }
.payment-category > span:nth-child(2) { display: grid; gap: 3px; }
.payment-category strong { font-size: .84rem; }
.payment-category small { color: var(--slate-600); font-size: .68rem; }
.payment-category em { color: var(--warning); font-size: .65rem; font-style: normal; font-weight: 800; }
.payment-category > img { width: 18px; height: 18px; opacity: .5; }
.payments-layout { display: grid; gap: 22px; }

.biller-mark {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  background: var(--paper-50);
  color: var(--warning);
  font-size: .68rem;
  font-weight: 800;
}
.biller-mark img { width: 17px; height: 17px; }
.amount-presets { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.amount-presets button { min-height: 42px; padding: 8px 4px; border: 1px solid var(--line-light); border-radius: var(--radius-sm); background: var(--paper-50); color: var(--slate-700); font-size: .72rem; font-weight: 750; cursor: pointer; }
.amount-presets button.selected { border-color: var(--navy-800); box-shadow: inset 0 -2px var(--gold-500); color: var(--navy-900); }
.meter-confirmation { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line-light); border-radius: var(--radius-md); background: var(--paper-50); }
.meter-confirmation > img { width: 21px; height: 21px; margin: auto; }
.meter-confirmation > span { display: grid; gap: 2px; }
.meter-confirmation small { color: var(--slate-600); font-size: .68rem; }

.operator-field { padding: 0; border: 0; }
.operator-field legend { margin-bottom: 8px; color: var(--slate-700); font-size: .75rem; font-weight: 750; }
.operator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.operator-choice input { position: absolute; opacity: 0; pointer-events: none; }
.operator-choice > span { display: grid; min-height: 62px; place-content: center; justify-items: center; gap: 6px; padding: 8px; border: 1px solid var(--line-light); border-radius: var(--radius-sm); background: var(--paper-50); cursor: pointer; }
.operator-choice > span img { width: 20px; height: 20px; }
.operator-choice > span strong { font-size: .72rem; }
.operator-choice.selected > span { border-color: var(--navy-800); box-shadow: inset 0 -2px var(--gold-500); }

.qr-receive-card { display: grid; width: min(100%, 410px); justify-items: center; gap: 9px; margin-inline: auto; padding: 20px; border: 1px solid var(--line-light); border-top: 3px solid var(--gold-500); border-radius: var(--radius-lg); background: var(--paper-50); box-shadow: var(--shadow-paper); text-align: center; }
.qr-brand { width: min(100%, 220px); }
.qr-brand .compact-brand-plate { width: 56px; height: 48px; }
.qr-brand > span:last-child { display: none; }
.qr-code-demo { display: grid; width: 196px; height: 196px; place-content: center; margin: 10px 0; border: 12px solid var(--paper-50); outline: 1px solid var(--line-light); background: #fff; }
.qr-code-demo img { width: 158px; height: 158px; }
.qr-receive-card h2 { font-size: 1.05rem; }
.qr-receive-card p { color: var(--slate-600); font-size: .72rem; }
.scanner-frame { position: relative; display: grid; min-height: min(58dvh, 420px); place-content: center; justify-items: center; gap: 14px; overflow: hidden; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: var(--ink-950); color: #b9c5cf; text-align: center; }
.scanner-frame > img { width: 72px; height: 72px; filter: invert(1); opacity: .7; }
.scanner-frame p { max-width: 250px; font-size: .75rem; }
.scanner-corners { position: absolute; inset: 16%; }
.scanner-corners span { position: absolute; width: 42px; height: 42px; border-color: var(--gold-500); border-style: solid; }
.scanner-corners span:nth-child(1) { top: 0; left: 0; border-width: 3px 0 0 3px; }
.scanner-corners span:nth-child(2) { top: 0; right: 0; border-width: 3px 3px 0 0; }
.scanner-corners span:nth-child(3) { right: 0; bottom: 0; border-width: 0 3px 3px 0; }
.scanner-corners span:nth-child(4) { bottom: 0; left: 0; border-width: 0 0 3px 3px; }
.camera-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 22px; }

.card-crest-plate { display: grid; width: 46px; height: 40px; place-items: center; padding: 5px; border-radius: 8px; background: var(--paper-50); }
.card-crest-plate img { width: 100% !important; height: 100% !important; object-fit: contain; border-radius: 0 !important; }
.bank-card.card-frozen { filter: saturate(.45); }
.frozen-overlay { position: absolute; z-index: 3; inset: 0; display: grid; place-content: center; justify-items: center; gap: 7px; background: rgba(5,19,34,.78); backdrop-filter: blur(3px); }
.frozen-overlay img { width: 30px; height: 30px; filter: invert(1); }
.card-primary-state { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.metric-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; }
.metric-row > div { display: grid; gap: 3px; padding: 12px; border-right: 1px solid var(--line-light); }
.metric-row > div:last-child { border-right: 0; }
.metric-row span,
.metric-row small { color: var(--slate-600); font-size: .65rem; }
.metric-row strong { font-size: .9rem; font-variant-numeric: tabular-nums; }
.future-wallet-note { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; margin-top: 18px; padding: 13px; border: 1px solid var(--line-light); border-radius: var(--radius-md); background: var(--paper-50); }
.future-wallet-note > img { width: 21px; height: 21px; margin: auto; }
.future-wallet-note > span:nth-child(2) { display: grid; gap: 2px; }
.future-wallet-note small { color: var(--slate-600); font-size: .65rem; }

.request-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 18px; overflow: hidden; border: 1px solid var(--line-light); border-radius: var(--radius-md); background: var(--paper-50); }
.request-summary div { display: grid; gap: 3px; padding: 13px 10px; border-right: 1px solid var(--line-light); }
.request-summary div:last-child { border-right: 0; }
.request-summary span { color: var(--slate-600); font-size: .65rem; }
.request-summary strong { font-size: .9rem; }

.support-search { display: grid; grid-template-columns: 22px minmax(0,1fr); align-items: center; gap: 9px; min-height: 50px; margin-bottom: 18px; padding: 0 13px; border: 1px solid #cfc8bb; border-radius: 9px; background: #fff; }
.support-search img { width: 20px; height: 20px; }
.support-search input { width: 100%; min-width: 0; min-height: 48px; border: 0; outline: 0; background: transparent; }
.support-contact-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 24px; }
.support-contact-grid > * { display: grid; min-height: 110px; align-content: center; justify-items: center; gap: 9px; padding: 11px; border: 1px solid var(--line-light); border-radius: var(--radius-md); background: var(--paper-50); text-align: center; cursor: pointer; }
.support-contact-grid img { width: 23px; height: 23px; }
.support-contact-grid span { display: grid; gap: 2px; }
.support-contact-grid strong { font-size: .72rem; }
.support-contact-grid small { color: var(--slate-600); font-size: .61rem; }
.faq-list { overflow: hidden; border: 1px solid var(--line-light); border-radius: var(--radius-lg); background: var(--paper-50); }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { display: grid; grid-template-columns: minmax(0,1fr) 20px; align-items: center; gap: 12px; min-height: 58px; padding: 12px 14px; font-size: .78rem; font-weight: 750; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary img { width: 18px; height: 18px; transition: transform var(--duration-fast); }
.faq-item[open] summary img { transform: rotate(180deg); }
.faq-item p { padding: 0 14px 16px; color: var(--slate-600); font-size: .72rem; line-height: 1.55; }

.profile-hero,
.more-profile { display: grid; grid-template-columns: 62px minmax(0,1fr) auto; align-items: center; gap: 13px; margin-bottom: 18px; }
.profile-avatar { width: 62px; height: 62px; border-radius: 15px; font-size: 1.05rem; }
.profile-hero > div,
.more-profile > div { display: grid; gap: 2px; }
.profile-hero h1,
.more-profile h1 { font-size: 1.3rem; letter-spacing: -.02em; }
.profile-hero p,
.more-profile p { color: var(--slate-600); font-size: .7rem; }
.security-summary { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; margin-bottom: 18px; padding: 14px; border: 1px solid #a9cbbb; border-radius: var(--radius-md); background: var(--success-soft); }
.security-summary > div { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 9px; }
.security-summary img { width: 21px; height: 21px; margin: auto; }
.security-summary span { display: grid; gap: 2px; }
.security-summary small { color: #477765; font-size: .67rem; }
.profile-actions { display: grid; gap: 10px; margin-top: 18px; }
.legal-note { margin-top: 18px; color: var(--slate-600); font-size: .75rem; line-height: 1.5; text-align: center; }
.more-grid { margin-bottom: 20px; }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-500); }
.notification-row.read { opacity: .77; }
.notification-row.unread { background: #fffdf8; }

.receipt-logo-plate { display: grid; width: 136px; min-height: 42px; place-items: center; padding: 7px; border: 1px solid var(--line-light); border-radius: 7px; background: var(--paper-50); }
.receipt-logo-plate img { width: 100% !important; height: auto !important; max-height: 32px; object-fit: contain; border-radius: 0 !important; }
.receipt-card .receipt-brand { justify-content: space-between; }
.receipt-card .receipt-brand > span:last-child { text-align: right; }
.receipt-amount { display: grid; justify-items: center; gap: 4px; padding: 22px 16px; border-bottom: 1px solid var(--line-light); text-align: center; }
.receipt-amount span,
.receipt-amount small { color: var(--slate-600); font-size: .68rem; }
.receipt-amount strong { font-size: 1.75rem; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.review-fee-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); font-size: .75rem; }

.login-assurance { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.login-assurance span { display: inline-flex; min-height: 36px; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--line-dark); border-radius: var(--radius-sm); color: #b9c5cf; font-size: .75rem; font-weight: 700; }
.login-assurance img { width: 16px; height: 16px; filter: invert(1); opacity: .75; }

@media (min-width: 700px) {
  .accounts-overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .account-help-band { grid-template-columns: minmax(0,1fr) auto; align-items: center; }
  .payment-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .payments-layout { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .metric-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .connected-proof { grid-template-columns: 44px minmax(0,1fr) auto; }
  .connected-proof .button { grid-column: auto; }
}

@media (min-width: 980px) {
  .sidebar-brand .full-brand-plate { min-height: 66px; padding: 12px; }
  .mobile-header .brand-lockup { display: none; }
  .accounts-overview-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .payment-category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .payment-category { min-height: 126px; grid-template-columns: 44px minmax(0,1fr) auto; align-content: start; }
  .payment-category > img:last-child { display: none; }
  .support-contact-grid > * { min-height: 126px; }
}

@media (max-width: 430px) {
  .profile-hero,
  .more-profile { grid-template-columns: 54px minmax(0,1fr); }
  .profile-avatar { width: 54px; height: 54px; }
  .profile-hero > .status,
  .more-profile > .button { grid-column: 1 / -1; }
  .support-contact-grid { grid-template-columns: 1fr; }
  .support-contact-grid > * { grid-template-columns: 30px minmax(0,1fr); min-height: 70px; justify-items: start; text-align: left; }
  .camera-actions { grid-template-columns: 1fr; }
  .future-wallet-note { grid-template-columns: 34px minmax(0,1fr); }
  .future-wallet-note .status { grid-column: 2; }
  .receipt-card .receipt-brand { align-items: center; }
  .receipt-logo-plate { width: 112px; }
  .receipt-card .receipt-brand > span:last-child small { display: none; }
}

.page {
  min-height: calc(100dvh - 64px);
  animation: page-in var(--duration-ui) var(--ease-out) both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-inner {
  width: min(100%, 900px);
  margin-inline: auto;
  padding: 24px var(--mobile-gutter) 32px;
}

.page-inner.wide {
  width: min(100%, 1180px);
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.page-header > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.page-header .eyebrow,
.eyebrow {
  color: var(--warning);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.page-header h1,
.page-header h2 {
  color: var(--ink-950);
  font-size: clamp(1.5rem, 5vw, 2.125rem);
  letter-spacing: -.025em;
  line-height: 1.12;
}

.page-header p {
  max-width: 620px;
  color: var(--slate-600);
  font-size: .875rem;
}

.mobile-back {
  margin: -8px 0 14px -8px;
  color: var(--navy-800);
}

.mobile-back:hover {
  border-color: var(--line-light);
  background: var(--paper-50);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast), transform var(--duration-fast), box-shadow var(--duration-fast);
}

.button img {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.button.primary {
  background: var(--navy-900);
  color: var(--paper-50);
}

.button.primary img,
.button.gold img,
.nav-item.active img,
.bottom-nav a.active img,
.account-card.dark img,
.dark-panel img {
  filter: invert(90%) sepia(25%) saturate(578%) hue-rotate(350deg) brightness(96%) contrast(89%);
}

.button.primary:hover {
  background: var(--navy-700);
  box-shadow: 0 6px 18px rgba(7, 26, 46, .16);
}

.button.gold {
  background: var(--gold-500);
  color: var(--ink-950);
}

.button.gold:hover { background: var(--gold-300); }

.button.secondary {
  border-color: var(--line-light);
  background: var(--paper-50);
  color: var(--navy-800);
}

.button.secondary:hover {
  border-color: #c3b9a8;
  background: #fff;
}

.button.danger {
  border-color: #d6a4a4;
  background: var(--risk-soft);
  color: #8b2f2f;
}

.button.ghost {
  background: transparent;
  color: var(--navy-800);
}

.button.compact {
  min-height: 40px;
  padding: 9px 12px;
  font-size: .8125rem;
}

.button.block { width: 100%; }

.button:disabled,
.icon-button:disabled,
.choice-card:disabled,
.action-tile:disabled {
  opacity: .48;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  color: var(--info);
  font-size: .8125rem;
  font-weight: 750;
}

.text-link img { width: 16px; height: 16px; }

.bottom-nav {
  position: fixed;
  z-index: 60;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: var(--mobile-nav-height);
  padding: 0 4px env(safe-area-inset-bottom);
  border-top: 1px solid var(--line-light);
  background: rgba(251, 249, 244, .97);
  box-shadow: 0 -8px 28px rgba(5, 19, 34, .07);
  backdrop-filter: blur(16px);
}

.bottom-nav a {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 64px;
  place-content: center;
  justify-items: center;
  gap: 4px;
  padding: 6px 2px;
  color: var(--slate-600);
  font-size: min(.75rem, 4vw);
  font-weight: 700;
}

.bottom-nav a span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.05;
  text-align: center;
}

.bottom-nav a::before {
  position: absolute;
  top: -1px;
  right: 18%;
  left: 18%;
  height: 2px;
  background: transparent;
  content: "";
}

.bottom-nav a.active {
  color: var(--navy-900);
}

.bottom-nav a.active::before { background: var(--gold-500); }

.bottom-nav img {
  width: 21px;
  height: 21px;
  opacity: .82;
}

.home-intro {
  position: relative;
  overflow: hidden;
  padding: 20px var(--mobile-gutter) 36px;
  background: var(--navy-900);
  color: var(--paper-50);
}

.home-intro::after {
  position: absolute;
  right: -20%;
  bottom: -72px;
  width: 64%;
  height: 120px;
  border-top: 1px solid rgba(199,161,90,.28);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: rotate(-6deg);
}

.greeting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.greeting-row > div {
  display: grid;
  gap: 2px;
}

.greeting-row small { color: #aebdca; font-size: .75rem; }
.greeting-row strong { font-size: 1.125rem; }

.context-switch {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: var(--navy-800);
  color: var(--paper-50);
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
}

.context-switch img { width: 17px; height: 17px; filter: invert(1); }

.balance-block {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.balance-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #b8c4ce;
  font-size: .75rem;
}

.balance-label button {
  display: grid;
  width: 32px;
  height: 32px;
  place-content: center;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.balance-label button:hover { background: rgba(255,255,255,.07); }
.balance-label img { width: 17px; height: 17px; filter: invert(1); opacity: .78; }

.balance-value {
  overflow-wrap: anywhere;
  font-size: min(clamp(2rem, 9vw, 3.2rem), 11vw);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  line-height: 1.05;
}

.balance-meta {
  color: #9fb0bf;
  font-size: .75rem;
}

.home-canvas {
  position: relative;
  z-index: 2;
  margin-top: -18px;
  padding: 0 var(--mobile-gutter) 32px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 7px;
  margin: 0 0 24px;
  padding: 14px 8px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--paper-50);
  box-shadow: var(--shadow-paper);
}

.action-tile {
  display: grid;
  min-width: 0;
  min-height: 68px;
  place-content: center;
  justify-items: center;
  gap: 7px;
  padding: 8px 3px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--navy-800);
  font-size: min(.6875rem, 3vw);
  font-weight: 750;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-align: center;
  cursor: pointer;
  transition: background var(--duration-fast), transform var(--duration-fast);
}

.action-tile:hover { background: var(--paper-100); }
.action-tile:active { transform: translateY(1px); }
.action-tile img { width: 23px; height: 23px; }

.section-stack {
  display: grid;
  min-width: 0;
  gap: 20px;
}

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

.section-heading h2,
.section-heading h3 {
  color: var(--ink-950);
  font-size: 1rem;
  letter-spacing: -.01em;
}

.section-heading span { color: var(--slate-600); font-size: .75rem; }

.account-rail {
  display: grid;
  grid-auto-columns: minmax(248px, 85%);
  grid-auto-flow: column;
  grid-auto-rows: max-content;
  align-items: start;
  gap: 12px;
  max-height: 220px;
  width: 100%;
  max-width: 100%;
  margin: 0 calc(var(--mobile-gutter) * -1);
  padding: 0 var(--mobile-gutter) 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.account-rail::-webkit-scrollbar { display: none; }

.account-card {
  position: relative;
  display: grid;
  min-height: 156px;
  gap: 13px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--paper-50);
  scroll-snap-align: start;
}

.account-card.dark {
  border-color: var(--line-dark);
  background: var(--navy-800);
  color: var(--paper-50);
}

.account-card.dark::after {
  position: absolute;
  right: -38px;
  bottom: -68px;
  width: 170px;
  height: 110px;
  border-top: 1px solid rgba(224,200,147,.24);
  border-radius: 50%;
  content: "";
  transform: rotate(-12deg);
}

.account-card header,
.account-card footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-card header span,
.account-card footer span {
  color: var(--slate-600);
  font-size: .6875rem;
}

.account-card.dark header span,
.account-card.dark footer span { color: #aebbc7; }
.account-card header img { width: 20px; height: 20px; }

.account-card .account-balance {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
}

.account-card .account-balance strong {
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
}

.account-card .account-balance small { color: var(--slate-600); }
.account-card.dark .account-balance small { color: #aebbc7; }

.panel {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--paper-50);
}

.panel.pad { padding: 18px; }

.dark-panel {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: var(--navy-800);
  color: var(--paper-50);
}

.pending-watch {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 13px;
  border-left: 3px solid var(--gold-500);
}

.pending-watch > span:first-child,
.list-icon,
.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-content: center;
  border-radius: 11px;
  background: var(--warning-soft);
}

.pending-watch > span img,
.list-icon img,
.feature-icon img { width: 21px; height: 21px; }

.pending-watch p,
.list-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.pending-watch p small,
.list-copy small { color: var(--slate-600); font-size: .6875rem; }
.pending-watch p strong,
.list-copy strong { overflow-wrap: anywhere; font-size: .875rem; }
.pending-watch p em { color: var(--warning); font-size: .6875rem; font-style: normal; font-weight: 700; }
.pending-watch > img { width: 19px; height: 19px; opacity: .6; }

.transaction-list,
.settings-list,
.notification-list,
.request-list {
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--paper-50);
}

.transaction-row,
.settings-row,
.notification-row,
.request-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-light);
}

.transaction-row:last-child,
.settings-row:last-child,
.notification-row:last-child,
.request-row:last-child { border-bottom: 0; }

button.transaction-row,
button.settings-row,
button.notification-row,
button.request-row,
a.transaction-row,
a.settings-row,
a.notification-row,
a.request-row {
  width: 100%;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

button.transaction-row:hover,
button.settings-row:hover,
button.notification-row:hover,
button.request-row:hover,
a.transaction-row:hover,
a.settings-row:hover,
a.notification-row:hover,
a.request-row:hover { background: #fff; }

.list-icon.success { background: var(--success-soft); }
.list-icon.info { background: var(--info-soft); }
.list-icon.risk { background: var(--risk-soft); }
.list-icon.neutral { background: var(--paper-100); }

.amount {
  text-align: right;
  font-size: .8125rem;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.amount.credit { color: var(--success); }
.amount.debit { color: var(--slate-900); }

.ai-entry {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 17px;
  overflow: hidden;
  border-left: 3px solid var(--gold-500);
}

.ai-entry > span:first-child {
  display: grid;
  width: 46px;
  height: 46px;
  place-content: center;
  border-radius: 12px;
  background: rgba(199,161,90,.14);
}

.ai-entry > span img { width: 23px; height: 23px; }
.ai-entry p { display: grid; gap: 3px; }
.ai-entry p small { color: #aebbc7; font-size: .6875rem; }
.ai-entry p strong { font-size: .9rem; }
.ai-entry > img { width: 19px; height: 19px; filter: invert(1); opacity: .65; }

.fx-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: var(--paper-50);
}

.fx-strip div {
  display: grid;
  gap: 4px;
  padding: 13px 10px;
  border-right: 1px solid var(--line-light);
}

.fx-strip div:last-child { border-right: 0; }
.fx-strip span { color: var(--slate-600); font-size: .6875rem; }
.fx-strip strong { font-size: .8125rem; font-variant-numeric: tabular-nums; }

.filter-row,
.bounded-tabs {
  display: flex;
  max-height: 68px;
  align-items: flex-start;
  gap: 8px;
  margin: 0 calc(var(--mobile-gutter) * -1) 18px;
  padding: 2px var(--mobile-gutter) 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar,
.bounded-tabs::-webkit-scrollbar { display: none; }

.filter-button,
.tab-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  background: var(--paper-50);
  color: var(--slate-700);
  font-size: .75rem;
  font-weight: 750;
  cursor: pointer;
}

.filter-button.active,
.tab-button.active {
  border-color: var(--navy-800);
  box-shadow: inset 0 -2px var(--gold-500);
  color: var(--navy-900);
}

.account-summary {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: var(--navy-800);
  color: var(--paper-50);
}

.account-summary header,
.account-summary footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-summary header span,
.account-summary footer span { color: #aebbc7; font-size: .75rem; }
.account-summary strong { font-size: clamp(1.75rem, 8vw, 2.5rem); font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.account-summary .ledger { display: grid; gap: 3px; }
.account-summary .ledger small { color: #aebbc7; }

.details-grid {
  display: grid;
  gap: 0;
}

.detail-row,
.review-row {
  display: grid;
  grid-template-columns: minmax(110px, .85fr) minmax(0, 1.35fr);
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-light);
}

.detail-row:last-child,
.review-row:last-child { border-bottom: 0; }
.detail-row span,
.review-row span { color: var(--slate-600); font-size: .75rem; }
.detail-row strong,
.review-row strong { overflow-wrap: anywhere; text-align: right; font-size: .8125rem; }

.form-stack {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span,
.field > label {
  color: var(--slate-700);
  font-size: .75rem;
  font-weight: 750;
}

.field small {
  color: var(--slate-600);
  font-size: .6875rem;
}

.field input,
.field select,
.field textarea,
.chat-compose input {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #cfc8bb;
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: var(--slate-900);
  line-height: 1.35;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.chat-compose input:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(199,161,90,.18);
}

.field input[readonly] { background: var(--paper-100); color: var(--slate-700); }

.amount-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid #cfc8bb;
  border-radius: 9px;
  background: #fff;
}

.amount-input:focus-within {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(199,161,90,.18);
}

.amount-input span {
  padding: 0 13px;
  color: var(--slate-600);
  font-size: .8125rem;
  font-weight: 750;
}

.amount-input input {
  min-width: 0;
  border: 0;
  border-left: 1px solid var(--line-light);
  border-radius: 0;
  box-shadow: none !important;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.choice-list {
  display: grid;
  gap: 10px;
}

.choice-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 13px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: var(--paper-50);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--duration-fast), background var(--duration-fast), box-shadow var(--duration-fast);
}

.choice-card:hover { background: #fff; border-color: #c6bdad; }
.choice-card.selected { border-color: var(--navy-800); box-shadow: inset 3px 0 var(--gold-500); }
.choice-card > img:first-child { width: 23px; height: 23px; margin: auto; }
.choice-card > span { display: grid; min-width: 0; gap: 3px; }
.choice-card > span strong { overflow-wrap: anywhere; font-size: .875rem; }
.choice-card > span small { color: var(--slate-600); font-size: .7rem; }
.choice-card > img:last-child { width: 18px; height: 18px; opacity: .45; }

.flow-shell {
  display: grid;
  min-height: calc(100dvh - 64px);
  grid-template-rows: auto 1fr auto;
}

.flow-top {
  position: sticky;
  z-index: 15;
  top: 64px;
  padding: 14px var(--mobile-gutter) 12px;
  border-bottom: 1px solid var(--line-light);
  background: rgba(243,239,230,.97);
  backdrop-filter: blur(12px);
}

.flow-title {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.flow-title button { margin-left: -8px; color: var(--navy-900); }
.flow-title button:hover { background: var(--paper-50); border-color: var(--line-light); }
.flow-title div { display: grid; gap: 2px; }
.flow-title small { color: var(--slate-600); font-size: .6875rem; }
.flow-title strong { overflow-wrap: anywhere; font-size: .95rem; }

.step-meter {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  margin-top: 11px;
}

.step-meter span {
  height: 3px;
  border-radius: 2px;
  background: #d2ccc0;
}

.step-meter span.done { background: var(--success); }
.step-meter span.current { background: var(--gold-500); }

.flow-content {
  width: min(100%, 720px);
  margin-inline: auto;
  padding: 24px var(--mobile-gutter) 28px;
}

.flow-question {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.flow-question span { color: var(--warning); font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.flow-question h1 { font-size: clamp(1.5rem, 6vw, 2rem); letter-spacing: -.025em; line-height: 1.15; }
.flow-question p { color: var(--slate-600); font-size: .875rem; }

.flow-footer {
  position: sticky;
  z-index: 12;
  bottom: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px var(--mobile-gutter) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-light);
  background: rgba(251,249,244,.97);
  backdrop-filter: blur(12px);
}

.flow-footer .button:only-child { grid-column: 1 / -1; }

.route-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: var(--paper-50);
}

.route-card > span:first-child {
  display: grid;
  width: 42px;
  height: 42px;
  place-content: center;
  border-radius: 10px;
  background: var(--info-soft);
}

.route-card img { width: 21px; height: 21px; }
.route-card p { display: grid; gap: 3px; }
.route-card p small { color: var(--slate-600); font-size: .6875rem; }
.route-card em { color: var(--warning); font-size: .7rem; font-style: normal; font-weight: 750; }

.document-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 13px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: var(--paper-50);
}

.document-card > img { width: 24px; height: 24px; margin: auto; }
.document-card p { display: grid; gap: 2px; }
.document-card p strong { overflow-wrap: anywhere; font-size: .8125rem; }
.document-card p small { color: var(--slate-600); font-size: .6875rem; }

.info-note,
.human-note,
.warning-note,
.success-note {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 10px;
  padding: 13px;
  border: 1px solid #bed0df;
  border-radius: var(--radius-md);
  background: var(--info-soft);
  color: #214f75;
  font-size: .75rem;
}

.info-note img,
.human-note img,
.warning-note img,
.success-note img { width: 20px; height: 20px; }
.info-note p,
.human-note p,
.warning-note p,
.success-note p { display: grid; gap: 3px; }
.info-note span,
.human-note span,
.warning-note span,
.success-note span { font-size: .6875rem; }
.human-note { border-color: #d9c28f; background: #fbf3df; color: #64420d; }
.warning-note { border-color: #d7b27d; background: var(--warning-soft); color: #704609; }
.success-note { border-color: #a9cbbb; background: var(--success-soft); color: #195a45; }

.review-amount {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 20px 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--navy-800);
  color: var(--paper-50);
  text-align: center;
}

.review-amount span { color: #aebbc7; font-size: .75rem; }
.review-amount strong { font-size: clamp(1.75rem, 8vw, 2.5rem); font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.review-amount small { color: #aebbc7; font-size: .7rem; }
.review-sheet { padding: 6px 16px; border: 1px solid var(--line-light); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: var(--paper-50); }

.receipt-page {
  background: var(--paper-50);
}

.receipt-shell {
  width: min(100%, 640px);
  margin-inline: auto;
  padding: 32px var(--mobile-gutter) 42px;
}

.receipt-status {
  display: grid;
  justify-items: center;
  gap: 9px;
  margin-bottom: 24px;
  text-align: center;
}

.receipt-status > span {
  display: grid;
  width: 66px;
  height: 66px;
  place-content: center;
  border-radius: 50%;
  background: var(--success-soft);
}

.receipt-status > span.warning { background: var(--warning-soft); }
.receipt-status img { width: 34px; height: 34px; }
.receipt-status h1 { font-size: 1.65rem; letter-spacing: -.025em; }
.receipt-status p { max-width: 440px; color: var(--slate-600); font-size: .8125rem; }

.receipt-card {
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--paper-50);
  box-shadow: var(--shadow-paper);
}

.receipt-card .receipt-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-light);
}

.receipt-brand img { width: 36px; height: 36px; border-radius: 10px; }
.receipt-brand span { display: grid; gap: 1px; }
.receipt-brand small { color: var(--slate-600); font-size: .6875rem; }
.receipt-card .details-grid { padding: 4px 16px; }
.receipt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }

.cards-grid {
  display: grid;
  gap: 18px;
}

.bank-card {
  position: relative;
  display: grid;
  min-height: 214px;
  align-content: space-between;
  gap: 30px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: var(--navy-800);
  color: var(--paper-50);
  box-shadow: var(--shadow-dark);
}

.bank-card::after {
  position: absolute;
  right: -50px;
  bottom: -90px;
  width: 250px;
  height: 170px;
  border: 1px solid rgba(224,200,147,.22);
  border-radius: 50%;
  content: "";
  transform: rotate(-12deg);
}

.bank-card header,
.bank-card footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bank-card header img { width: 37px; height: 37px; border-radius: 10px; }
.bank-card header span { color: var(--gold-300); font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.bank-card .pan { position: relative; z-index: 1; font-size: 1.1rem; letter-spacing: .08em; }
.bank-card footer div { display: grid; gap: 3px; }
.bank-card footer small { color: #9fb0bf; font-size: .625rem; letter-spacing: .06em; text-transform: uppercase; }
.bank-card footer strong { font-size: .75rem; letter-spacing: .035em; }

.control-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--paper-50);
}

.control-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-light);
}

.control-row:last-child { border-bottom: 0; }
.control-row > img { width: 21px; height: 21px; margin: auto; }
.control-row p { display: grid; gap: 2px; }
.control-row p strong { font-size: .8125rem; }
.control-row p small { color: var(--slate-600); font-size: .6875rem; }

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  padding: 0;
  border: 1px solid #aeb5b9;
  border-radius: 15px;
  background: #d5d9dc;
  cursor: pointer;
}

.switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  content: "";
  transition: transform var(--duration-fast);
}

.switch.on { border-color: var(--success); background: var(--success); }
.switch.on::after { transform: translateX(20px); }

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.menu-card {
  display: grid;
  min-height: 126px;
  align-content: space-between;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: var(--paper-50);
  cursor: pointer;
}

.menu-card:hover { border-color: #c2b9aa; background: #fff; }
.menu-card img { width: 24px; height: 24px; }
.menu-card span { display: grid; gap: 3px; }
.menu-card strong { font-size: .85rem; }
.menu-card small { color: var(--slate-600); font-size: .6875rem; }

.assistant-page {
  background: linear-gradient(var(--navy-900) 0 188px, var(--paper-100) 188px);
}

.assistant-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px var(--mobile-gutter) 25px;
  color: var(--paper-50);
}

.assistant-header .icon-button { margin-left: -8px; }
.assistant-header > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-content: center;
  border-radius: 12px;
  background: rgba(199,161,90,.16);
}
.assistant-header > span img { width: 23px; height: 23px; filter: invert(88%) sepia(22%) saturate(600%) hue-rotate(355deg); }
.assistant-header > div { display: grid; gap: 2px; }
.assistant-header h1 { font-size: 1.05rem; }
.assistant-header small { color: #aebbc7; font-size: .6875rem; }

.assistant-body {
  width: min(100%, 760px);
  margin-inline: auto;
  padding: 0 var(--mobile-gutter) 112px;
}

.assistant-safety {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  margin-bottom: 16px;
  padding: 11px 13px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: var(--navy-800);
  color: #cad4dc;
  font-size: .7rem;
}

.assistant-safety img { width: 18px; height: 18px; filter: invert(1); opacity: .8; }

.suggestion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.suggestion-button {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  background: var(--paper-50);
  color: var(--navy-800);
  font-size: .72rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.suggestion-button:hover { border-color: #c4baa9; background: #fff; }

.chat-thread {
  display: grid;
  gap: 14px;
}

.chat-message {
  width: min(88%, 590px);
  padding: 13px 14px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: var(--paper-50);
  box-shadow: 0 5px 16px rgba(5,19,34,.05);
}

.chat-message.user {
  justify-self: end;
  border-color: var(--navy-700);
  border-bottom-right-radius: 4px;
  background: var(--navy-800);
  color: var(--paper-50);
}

.chat-message.assistant {
  border-left: 3px solid var(--gold-500);
  border-bottom-left-radius: 4px;
}

.chat-message header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--navy-800);
  font-size: .78rem;
}

.chat-message header img { width: 18px; height: 18px; }
.chat-message p { font-size: .8125rem; line-height: 1.55; white-space: pre-line; }
.chat-message > small { display: block; margin-top: 10px; color: var(--slate-600); font-size: .65rem; }

.citation-box {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line-light);
}

.citation-box > span { color: var(--slate-600); font-size: .625rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.citation-link { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 8px; color: var(--info); font-size: .7rem; font-weight: 700; }
.citation-link img { width: 15px; height: 15px; flex: 0 0 auto; }

.assistant-actions { display: grid; gap: 8px; margin-top: 11px; }
.assistant-actions .button { justify-content: flex-start; min-height: 44px; font-size: .75rem; }

.chat-compose {
  position: fixed;
  z-index: 54;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  padding: 10px var(--mobile-gutter) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-light);
  background: rgba(251,249,244,.97);
  backdrop-filter: blur(14px);
}

.chat-compose input { min-height: 48px; }
.chat-compose button { width: 48px; min-width: 48px; min-height: 48px; }

.empty-state,
.error-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 38px 24px;
  border: 1px dashed #c9c1b4;
  border-radius: var(--radius-lg);
  background: rgba(251,249,244,.58);
  text-align: center;
}

.empty-state > span,
.error-state > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-content: center;
  border-radius: 14px;
  background: var(--paper-50);
}

.empty-state img,
.error-state img { width: 25px; height: 25px; }
.empty-state p,
.error-state p { max-width: 420px; color: var(--slate-600); font-size: .78rem; }

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #e4e0d8;
}

.skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  content: "";
  animation: shimmer 1.2s infinite;
  transform: translateX(-100%);
}

@keyframes shimmer { to { transform: translateX(100%); } }

.toast-region {
  position: fixed;
  z-index: 110;
  top: calc(76px + env(safe-area-inset-top));
  right: 12px;
  left: 12px;
  display: grid;
  justify-items: center;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(100%, 480px);
  padding: 12px 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: var(--ink-950);
  color: var(--paper-50);
  box-shadow: var(--shadow-dark);
  pointer-events: auto;
  animation: toast-in var(--duration-ui) var(--ease-out) both;
}

.toast img { width: 20px; height: 20px; filter: invert(1); }
.toast p { font-size: .78rem; }
.toast button { width: 44px; height: 44px; border-radius: 8px; background: transparent; cursor: pointer; }
.toast button img { margin: auto; width: 17px; height: 17px; }

@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 12px;
  background: rgba(5,19,34,.62);
  backdrop-filter: blur(4px);
}

.modal {
  width: min(100%, 520px);
  max-height: min(86dvh, 720px);
  margin-inline: auto;
  overflow-y: auto;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--paper-50);
  box-shadow: var(--shadow-dark);
  animation: modal-in 250ms var(--ease-out) both;
}

@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } }

.modal header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: start;
  gap: 12px;
  padding: 18px 18px 13px;
  border-bottom: 1px solid var(--line-light);
}

.modal header > div { display: grid; gap: 4px; }
.modal header h2 { font-size: 1.1rem; }
.modal header p { color: var(--slate-600); font-size: .75rem; }
.modal header .icon-button:hover { border-color: var(--line-light); background: var(--paper-100); }
.modal-body { padding: 18px; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 18px 18px; }

.login-page {
  min-height: 100dvh;
  background: var(--navy-900);
  color: var(--paper-50);
}

.login-shell {
  display: grid;
  min-height: 100dvh;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 1160px);
  margin-inline: auto;
  padding: max(18px, env(safe-area-inset-top)) var(--mobile-gutter) max(20px, env(safe-area-inset-bottom));
}

.login-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.login-main {
  display: grid;
  align-content: center;
  gap: 28px;
  padding: 42px 0 34px;
}

.login-copy {
  display: grid;
  gap: 9px;
}

.login-copy .eyebrow { color: var(--gold-300); }
.login-copy h1 { max-width: 680px; font-size: clamp(2rem, 8.5vw, 4.5rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.02; }
.login-copy p { max-width: 610px; color: #afbdc9; font-size: .9rem; }

.login-panel {
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: var(--navy-800);
  box-shadow: var(--shadow-dark);
}

.login-panel > header {
  display: grid;
  gap: 5px;
  margin-bottom: 16px;
}

.login-panel > header h2 { font-size: 1.05rem; }
.login-panel > header p { color: #aebbc7; font-size: .75rem; }

.persona-list {
  display: grid;
  gap: 9px;
}

.persona-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: rgba(5,19,34,.34);
  color: var(--paper-50);
  text-align: left;
  cursor: pointer;
}

.persona-card:hover { border-color: #36536d; background: rgba(255,255,255,.04); }
.persona-card.selected { border-color: var(--gold-500); box-shadow: inset 3px 0 var(--gold-500); }
.persona-avatar,
.avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-content: center;
  border-radius: 12px;
  background: var(--gold-500);
  color: var(--ink-950);
  font-weight: 800;
}

.persona-card > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.persona-card strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.persona-card small { overflow: hidden; color: #9fb0bf; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.persona-card > img { width: 18px; height: 18px; filter: invert(1); opacity: .5; }

.login-panel .field > span { color: #d3dce3; }
.login-panel .field small { color: #9fb0bf; }
.login-panel .field input,
.login-panel .field select { border-color: #345069; background: var(--ink-950); color: var(--paper-50); }
.login-panel .button.secondary { border-color: #38536c; background: transparent; color: var(--paper-50); }
.login-panel .button.secondary img { filter: invert(1); }
.login-actions { display: grid; gap: 10px; margin-top: 16px; }

.auth-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.otp-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.otp-grid input {
  min-width: 0;
  height: 52px;
  padding: 6px;
  border: 1px solid #345069;
  border-radius: 8px;
  background: var(--ink-950);
  color: var(--paper-50);
  font-size: 1.15rem;
  font-weight: 750;
  text-align: center;
}

.check-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 44px;
  color: #d2dce4;
  font-size: .75rem;
}

.check-row input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold-500); }
.login-footer { display: flex; justify-content: space-between; gap: 14px; color: #8799a8; font-size: .65rem; }

@media (min-width: 700px) {
  :root { --mobile-gutter: 28px; }

  .home-canvas {
    width: min(100%, 1040px);
    margin: -18px auto 0;
  }

  .home-intro > * { width: min(100%, 1040px); margin-inline: auto; }

  .home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: 22px;
  }

  .home-grid > * {
    min-width: 0;
  }

  .home-grid > .section-stack {
    overflow: hidden;
  }

  .account-rail {
    grid-auto-columns: minmax(280px, 44%);
    margin-inline: 0;
    padding-inline: 0;
  }

  .cards-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .receipt-actions { grid-template-columns: repeat(3, 1fr); }
  .menu-grid { grid-template-columns: repeat(3, 1fr); }

  .login-main {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 480px);
    align-items: center;
    gap: clamp(44px, 7vw, 100px);
  }

  .login-panel { padding: 24px; }

  .modal-backdrop { align-items: center; }
}

@media (min-width: 980px) {
  :root { --mobile-nav-height: 0px; }

  .app-shell {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .app-sidebar {
    position: sticky;
    z-index: 65;
    top: 0;
    display: flex;
    height: 100dvh;
    flex-direction: column;
    gap: 24px;
    padding: 20px 14px 18px;
    border-right: 1px solid var(--line-dark);
    background: var(--navy-900);
    color: var(--paper-50);
  }

  .sidebar-brand { padding: 0 8px; }

  .sidebar-nav {
    display: grid;
    gap: 4px;
  }

  .nav-item {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-height: 46px;
    padding: 10px 11px;
    border-radius: var(--radius-sm);
    color: #aebbc7;
    font-size: .78rem;
    font-weight: 700;
  }

  .nav-item:hover { background: rgba(255,255,255,.05); color: var(--paper-50); }
  .nav-item.active { background: var(--navy-800); box-shadow: inset 2px 0 var(--gold-500); color: var(--paper-50); }
  .nav-item img { width: 20px; height: 20px; filter: invert(1); opacity: .7; }

  .sidebar-bottom {
    display: grid;
    gap: 11px;
    margin-top: auto;
    padding: 12px 8px 0;
    border-top: 1px solid var(--line-dark);
  }

  .sidebar-user {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .sidebar-user .avatar { width: 38px; height: 38px; border-radius: 10px; font-size: .75rem; }
  .sidebar-user span { display: grid; min-width: 0; gap: 2px; }
  .sidebar-user strong { overflow: hidden; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar-user small { color: #8497a7; font-size: .625rem; }

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

  .mobile-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 72px;
    border-bottom-color: var(--line-light);
    background: rgba(251,249,244,.95);
    color: var(--slate-900);
  }

  .mobile-header .brand-lockup { display: none; }
  .mobile-header::before { content: "Mobile Banking"; font-size: .82rem; font-weight: 750; }
  .mobile-header .icon-button img { filter: none; }
  .mobile-header .icon-button:hover { border-color: var(--line-light); background: var(--paper-100); }
  .mobile-header .demo-mark { border-color: var(--line-light); color: var(--slate-600); }
  .notification-button b { border-color: var(--paper-50); }

  .bottom-nav { display: none; }
  .app-main { padding-bottom: 0; }
  .page { min-height: calc(100dvh - 72px); }
  .home-intro { padding-top: 34px; padding-bottom: 52px; }
  .home-canvas { margin-top: -28px; }
  .quick-actions { padding: 16px; gap: 14px; }
  .action-tile { min-height: 82px; }
  .flow-top { top: 72px; }
  .flow-shell { min-height: calc(100dvh - 72px); }
  .flow-footer { position: relative; width: min(100%, 720px); margin-inline: auto; padding-bottom: 28px; border-top: 0; background: transparent; }
  .chat-compose { right: calc((100vw - 236px - min(760px, 100vw - 236px))/2); left: calc(236px + (100vw - 236px - min(760px, 100vw - 236px))/2); }
  .assistant-body { padding-bottom: 112px; }
  .toast-region { left: 236px; }
}

@media (min-width: 1260px) {
  .app-shell { grid-template-columns: 252px minmax(0, 1fr); }
  .app-sidebar { padding-inline: 18px; }
  .chat-compose { right: calc((100vw - 252px - 760px)/2); left: calc(252px + (100vw - 252px - 760px)/2); }
  .toast-region { left: 252px; }
}

@media (max-width: 430px) {
  .mobile-header { grid-template-columns: minmax(0, 1fr) auto; }
  .mobile-header .demo-mark { display: none; }
  .quick-actions { gap: 2px; padding-inline: 4px; }
  .action-tile { font-size: min(.6875rem, 3vw); }
  .fx-strip { grid-template-columns: 1fr; }
  .fx-strip div { grid-template-columns: 1fr auto; border-right: 0; border-bottom: 1px solid var(--line-light); }
  .fx-strip div:last-child { border-bottom: 0; }
  .auth-methods,
  .modal-actions { grid-template-columns: 1fr; }
  .receipt-actions { grid-template-columns: 1fr; }
}

@media (max-width: 374px) {
  .brand-lockup small { display: none; }
  .account-rail { grid-auto-columns: 88%; }
  .menu-grid { grid-template-columns: 1fr; }
  .suggestion-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .page,
  .modal,
  .toast,
  .loading-line::after,
  .skeleton::after {
    animation: none;
  }
}

/* ==========================================================================
   Connected Money Command
   Live Mobile Banking cosmetics — issue #10

   This final layer deliberately overrides the earlier demonstration skin.
   The HTML walkthrough remains the visual source of truth: warm mineral work
   surfaces, an assured navy position object, brass used as a precise marker,
   open ledgers instead of card stacks, and zero horizontal navigation.
   ========================================================================== */

:root {
  color-scheme: light;
  --mobile-gutter: clamp(16px, 4.8vw, 22px);
  --mobile-nav-height: 76px;
  --mobile-canvas: #f5f2eb;
  --mobile-surface: #fffefd;
  --mobile-surface-muted: #eee9df;
  --mobile-ink: #102235;
  --mobile-ink-muted: #526171;
  --mobile-line: #ded9cf;
  --mobile-line-strong: #c8c1b5;
  --mobile-espresso: var(--brand-espresso);
  --mobile-crest-bronze: var(--brand-crest-bronze);
  --mobile-laurel-bronze: var(--brand-laurel-bronze);
  --mobile-laurel-taupe: var(--brand-laurel-taupe);
  --mobile-navy: var(--brand-atlantic);
  --mobile-navy-raised: #0d2d4b;
  --mobile-atlantic-soft: #e5edf2;
  --mobile-brass: var(--brand-brass);
  --mobile-brass-soft: #f1e8d9;
  --mobile-focus: #9a6a2b;
  --mobile-success: #216a56;
  --mobile-success-soft: #e4f0ea;
  --mobile-clay: #95533f;
  --mobile-clay-soft: #f3e6df;
  --mobile-bronze-soft: #eee9e1;
  --mobile-warning: #9b6112;
  --mobile-warning-soft: #f4e8ce;
  --mobile-risk: #aa3f44;
  --mobile-risk-soft: #f5e1e1;
  --mobile-info: #2b658f;
  --mobile-info-soft: #e3edf4;
  --mobile-shadow: 0 10px 28px rgba(5, 19, 34, .08), 0 1px 2px rgba(5, 19, 34, .05);
  --mobile-shadow-deep: 0 16px 34px rgba(3, 20, 35, .16);
}

html,
body,
#mobile-app,
.mobile-app-root,
.app-shell,
.app-content,
.app-main,
.page,
.page-inner,
.home-page,
.home-canvas,
.home-grid,
.section-stack {
  min-width: 0;
  max-width: 100%;
}

html,
body {
  overflow-x: clip;
  background: var(--mobile-canvas);
}

body {
  color: var(--mobile-ink);
  font-family: "Avenir Next", Aptos, "Segoe UI", sans-serif;
  font-size: 1rem;
}

button,
a,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--mobile-focus);
  outline-offset: 2px;
  box-shadow: none;
}

/* Launch and authentication now introduce the product on paper, not in a
   full-screen dark marketing panel. */
.launch-state,
.noscript-state {
  min-height: 100dvh;
  gap: 22px;
  padding: 34px var(--mobile-gutter);
  background: var(--mobile-canvas);
  color: var(--mobile-ink);
}

.launch-identity,
.launch-copy {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.launch-copy h1 {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(1.8rem, 8vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -.035em;
}

.launch-state p,
.noscript-state p,
.launch-copy p {
  color: var(--mobile-ink-muted);
}

.launch-brand-plate {
  border-color: var(--mobile-line);
  border-radius: 10px;
  background: var(--mobile-surface);
  box-shadow: none;
}

.loading-line {
  background: var(--mobile-line);
}

.loading-line::after {
  background: var(--mobile-brass);
}

.login-page {
  background: var(--mobile-canvas);
  color: var(--mobile-ink);
}

.login-shell {
  background: var(--mobile-navy);
}

.login-panel {
  border-color: var(--mobile-line);
  border-radius: 14px;
  background: var(--mobile-surface);
  color: var(--mobile-ink);
  box-shadow: var(--mobile-shadow-deep);
}

.login-panel .field > span,
.login-panel .field > label,
.login-panel .check-row {
  color: var(--mobile-ink);
}

.login-panel .persona-card,
.login-panel .field input {
  border-color: var(--mobile-line);
  background: #fff;
  color: var(--mobile-ink);
}

.login-panel .persona-card.selected {
  border-color: var(--mobile-navy);
  box-shadow: inset 3px 0 var(--mobile-brass);
}

.login-panel .persona-card small,
.login-panel .field small {
  color: var(--mobile-ink-muted);
}

/* A compact, exact-brand masthead on the everyday light work surface. */
.mobile-header {
  min-height: 68px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  padding: 8px var(--mobile-gutter);
  border-bottom: 1px solid var(--mobile-line);
  background: rgba(255, 254, 253, .97);
  color: var(--mobile-ink);
  box-shadow: 0 1px 0 rgba(5, 19, 34, .02);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  gap: 9px;
}

.compact-brand-plate {
  width: 46px;
  height: 42px;
  padding: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.compact-brand-plate img {
  object-fit: contain;
}

.brand-lockup strong {
  color: var(--mobile-navy);
  font-size: .9375rem;
  font-weight: 800;
}

.brand-lockup small {
  color: var(--mobile-ink-muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .075em;
}

.mobile-header .demo-mark {
  margin: 0 2px 0 0;
  border-color: var(--mobile-line);
  background: transparent;
  color: var(--mobile-ink-muted);
}

.mobile-header .icon-button {
  border-color: var(--mobile-line);
  border-radius: 10px;
  background: var(--mobile-surface);
}

.mobile-header .icon-button:hover {
  border-color: var(--mobile-line-strong);
  background: var(--mobile-surface-muted);
}

.mobile-header .ai-icon-button {
  border-color: #d2bc92;
  background: #f8f1e5;
  box-shadow: inset 0 2px var(--mobile-brass);
}

.mobile-header .ai-icon-button:hover {
  border-color: var(--mobile-brass);
  background: var(--mobile-brass-soft);
}

.mobile-header .icon-button img {
  filter: none;
}

.compact-brand-lockup {
  display: block;
  width: 132px;
  max-width: 100%;
  min-width: 0;
  height: 44px;
}

.compact-brand-lockup img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.secure-session {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: var(--mobile-ink-muted);
  font-size: .75rem;
  font-weight: 750;
}

.secure-session img {
  width: 16px;
  height: 16px;
}

.header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.header-actions .icon-button {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
}

.header-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--mobile-navy);
  border-radius: 10px;
  background: var(--mobile-navy);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
}

.header-avatar:hover {
  background: var(--mobile-navy-raised);
}

.notification-button b {
  top: 2px;
  right: 0;
  border-color: var(--mobile-surface);
  background: var(--mobile-risk);
  color: #fff;
}

.network-banner {
  border-bottom-color: #d9bd86;
  background: #fff7e8;
  color: #6d4510;
}

/* Home is a light working canvas. The greeting establishes relationship
   context; the balance is a singular, compact navy position object. */
.home-intro {
  overflow: visible;
  padding: 18px var(--mobile-gutter) 0;
  background: var(--mobile-canvas);
  color: var(--mobile-ink);
}

.home-intro::after {
  display: none;
}

.home-intro > * {
  width: min(100%, 1040px);
  margin-inline: auto;
}

.greeting-row {
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-inline: 1px;
}

.greeting-row small {
  color: var(--mobile-ink-muted);
  font-size: .75rem;
  font-weight: 700;
}

.greeting-row strong {
  max-width: 240px;
  color: var(--mobile-ink);
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(1.45rem, 6vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.08;
}

.context-switch {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 8px 10px;
  border-color: var(--mobile-line-strong);
  border-radius: 9px;
  background: var(--mobile-surface);
  color: var(--mobile-ink);
  font-size: .75rem;
}

.context-switch img {
  filter: none;
}

.balance-block,
.position-band {
  position: relative;
  min-height: 174px;
  overflow: hidden;
  align-content: start;
  gap: 5px;
  padding: 17px 18px 15px;
  border: 1px solid #183651;
  border-radius: 18px 18px 10px 10px;
  background: var(--mobile-navy);
  box-shadow: var(--mobile-shadow-deep);
  color: #fff;
}

.balance-block::before,
.position-band::before {
  position: absolute;
  top: 6px;
  right: -26px;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(224, 200, 147, .12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.balance-block::after,
.position-band::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 2px;
  background: var(--mobile-brass);
  content: "";
}

.balance-label,
.position-band > header {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  color: #b7c6d2;
  font-size: .75rem;
  font-weight: 700;
}

.balance-label button,
.position-band > header button {
  width: 38px;
  height: 38px;
  border: 1px solid #2a4660;
  border-radius: 9px;
  background: #0d2943;
}

.balance-label button:hover,
.position-band > header button:hover {
  background: #153650;
}

.balance-label img,
.position-band > header img {
  filter: invert(95%);
  opacity: .9;
}

.balance-value,
.position-band > strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 1px;
  color: #fff;
  font-size: clamp(1.9rem, 8.3vw, 2.45rem);
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  letter-spacing: -.05em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.balance-meta,
.position-band > footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid #294158;
  color: #9eb0bf;
  font-size: .75rem;
}

.position-movement {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid #294158;
}

.position-movement span {
  display: grid;
  gap: 2px;
}

.position-movement small {
  color: #9eb0bf;
  font-size: .75rem;
}

.position-movement b {
  color: #f9f5ed;
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}

.position-crest {
  position: absolute;
  top: 8px;
  right: -12px;
  width: 120px;
  opacity: .07;
  filter: grayscale(1) brightness(4);
}

.home-canvas {
  z-index: 1;
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 12px var(--mobile-gutter) 40px;
}

.connected-home {
  padding-top: 18px;
}

.customer-context {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 1px;
}

.customer-context > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.customer-context > div > span {
  color: var(--mobile-ink-muted);
  font-size: .75rem;
  font-weight: 700;
}

.customer-context h1 {
  min-width: 0;
  color: var(--mobile-ink);
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(1.55rem, 6vw, 1.86rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.customer-context small {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: var(--mobile-ink-muted);
  font-size: .75rem;
  overflow-wrap: anywhere;
}

.customer-context small img {
  width: 15px;
  height: 15px;
}

.position-top {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #b7c6d2;
  font-size: .75rem;
  font-weight: 700;
}

.position-top > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.position-privacy {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #2a4660;
  border-radius: 9px;
  background: #0d2943;
}

.position-privacy img {
  width: 17px;
  height: 17px;
  filter: invert(95%);
}

.position-watermark {
  position: absolute;
  z-index: 0;
  top: 8px;
  right: -13px;
  width: 124px;
  height: 124px;
  object-fit: contain;
  opacity: .075;
  filter: grayscale(1) brightness(4);
  pointer-events: none;
}

.position-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid #294158;
}

.position-facts > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.position-facts small {
  color: #9eb0bf;
  font-size: .75rem;
}

.position-facts strong {
  color: #f9f5ed;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.position-band > footer {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  padding-top: 0;
  border-top: 0;
}

.position-band > footer span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Six actions are visible at once. This is an ordinary two-row control grid,
   never a horizontal rail. */
.quick-actions,
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  margin: 0 0 27px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.action-tile,
.action-grid a,
.action-grid button {
  display: grid;
  min-width: 0;
  min-height: 88px;
  grid-template-rows: 31px auto;
  align-content: start;
  justify-items: start;
  gap: 7px;
  padding: 11px 10px;
  border: 1px solid var(--mobile-line);
  border-radius: 10px;
  background: var(--mobile-surface);
  color: var(--mobile-ink);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.18;
  text-align: left;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 1px rgba(5, 19, 34, .02);
}

.action-tile::before,
.action-grid a > span:first-child,
.action-grid button > span:first-child {
  display: none;
}

.action-tile img,
.action-grid img {
  width: 19px;
  height: 19px;
  padding: 6px;
  box-sizing: content-box;
  border-radius: 9px;
  background: var(--mobile-brass-soft);
}

.command-grid {
  margin-top: 12px;
}

.command-grid .action-tile {
  grid-template-rows: 32px auto;
}

.command-grid .action-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: var(--mobile-brass-soft);
}

.command-grid .action-icon img {
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.command-grid .action-tile > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.command-grid .action-tile strong {
  min-width: 0;
  color: var(--mobile-ink);
  font-size: .75rem;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.command-grid .action-tile small {
  min-width: 0;
  color: var(--mobile-ink-muted);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.action-tile:hover,
.action-grid a:hover,
.action-grid button:hover {
  border-color: var(--mobile-line-strong);
  background: #fff;
  box-shadow: var(--mobile-shadow);
  transform: translateY(-1px);
}

.action-tile:active,
.action-grid a:active,
.action-grid button:active {
  transform: translateY(0);
}

/* Open information rhythm: sections are separated by space and rules, not by
   a stack of interchangeable floating cards. */
.section-stack {
  gap: 28px;
}

.section-heading,
.section-title {
  min-width: 0;
  align-items: flex-end;
  margin-bottom: 11px;
}

.section-heading h2,
.section-heading h3,
.section-title h2,
.section-title h3 {
  color: var(--mobile-ink);
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.section-heading span,
.section-title small {
  color: var(--mobile-ink-muted);
  font-size: .75rem;
}

.text-link,
.section-title > a,
.section-title > button {
  flex: 0 0 auto;
  color: var(--mobile-navy-raised);
  font-size: .75rem;
  font-weight: 800;
}

.home-grid {
  min-width: 0;
}

.home-section,
.money-section {
  min-width: 0;
  margin-top: 28px;
}

.section-heading > div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.section-kicker {
  color: var(--mobile-ink-muted) !important;
  font-size: .75rem !important;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
}

/* Money today supports current and enriched home markup. */
.money-today {
  padding: 16px;
  border: 1px solid var(--mobile-line);
  border-radius: 12px;
  background: var(--mobile-surface);
}

.flow-summary {
  display: grid;
  min-width: 0;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.flow-summary > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 11px 0;
}

.flow-summary > div > span {
  color: var(--mobile-ink-muted);
  font-size: .75rem;
}

.flow-summary > div > strong {
  color: var(--mobile-ink);
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.flow-summary > div > i {
  display: block;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--mobile-surface-muted);
}

.flow-summary > div > i > b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--mobile-success);
}

.flow-summary > div:nth-child(2) > i > b {
  background: var(--mobile-brass);
}

.flow-summary .flow-net {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 12px;
  border-top: 1px solid var(--mobile-line);
}

.flow-summary .flow-net strong {
  color: var(--mobile-success);
  text-align: right;
}

.flow-summary .flow-net small {
  grid-column: 1 / -1;
  color: var(--mobile-ink-muted);
  font-size: .75rem;
}

.money-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--mobile-line);
  border-bottom: 1px solid var(--mobile-line);
}

.money-summary > * {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 10px 8px;
  border-right: 1px solid var(--mobile-line);
}

.money-summary > *:first-child {
  padding-left: 0;
}

.money-summary > *:last-child {
  padding-right: 0;
  border-right: 0;
}

.money-summary small,
.money-finding small {
  color: var(--mobile-ink-muted);
  font-size: .75rem;
}

.money-summary strong,
.money-finding strong {
  min-width: 0;
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.cashflow-mini {
  display: grid;
  height: 66px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding: 7px 5px;
  border-bottom: 1px solid var(--mobile-line);
}

.cashflow-mini .bar-column {
  display: grid;
  height: 48px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2px;
}

.cashflow-mini i,
.cashflow-mini b {
  min-height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--mobile-success);
}

.cashflow-mini b {
  background: var(--mobile-brass);
}

.money-finding {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 11px;
}

.money-finding > img {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.money-finding > span {
  display: grid;
  gap: 1px;
}

/* Accounts are a complete vertical relationship view. There is no account
   carousel and no screen can retain a stale horizontal scroll offset. */
.account-rail,
.account-stack,
.account-list {
  display: grid;
  width: 100%;
  max-width: 100%;
  max-height: none;
  grid-auto-flow: row;
  grid-auto-columns: unset;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  scroll-snap-type: none;
  border-top: 1px solid var(--mobile-line);
}

.position-row {
  display: grid;
  min-height: 78px;
  grid-template-columns: 40px minmax(0, 1fr) auto 17px;
  grid-template-rows: auto;
  align-items: center;
  gap: 10px;
  padding: 12px 1px;
  border-bottom: 1px solid var(--mobile-line);
  border-radius: 0;
  background: transparent;
  color: var(--mobile-ink);
}

.position-row.primary-position {
  background: transparent;
}

.account-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: var(--mobile-brass-soft);
}

.position-row:nth-child(2) .account-mark {
  background: var(--mobile-success-soft);
}

.position-row:nth-child(3) .account-mark {
  background: var(--mobile-info-soft);
}

.account-mark img {
  width: 19px;
  height: 19px;
}

.account-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.account-copy strong {
  color: var(--mobile-ink);
  font-size: .8125rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.account-copy small {
  color: var(--mobile-ink-muted);
  font-size: .75rem;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.position-row .account-balance {
  grid-column: 3;
  grid-row: 1;
  justify-items: end;
  text-align: right;
}

.position-row .account-balance strong {
  color: var(--mobile-ink);
  font-size: .875rem;
}

.position-row .account-balance small {
  color: var(--mobile-success);
  font-size: .75rem;
}

.position-row .row-chevron {
  grid-column: 4;
  width: 17px;
  height: 17px;
  opacity: .48;
}

.account-card,
.account-stack > a,
.account-stack > button {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 92px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 12px;
  padding: 14px 2px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--mobile-line);
  border-radius: 0;
  background: transparent;
  color: var(--mobile-ink);
  box-shadow: none;
  scroll-snap-align: unset;
}

.account-card.dark {
  border-color: var(--mobile-line);
  background: transparent;
  color: var(--mobile-ink);
}

.account-card.dark::after {
  display: none;
}

.account-card header {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  min-width: 0;
  justify-content: flex-start;
  gap: 8px;
}

.account-card header img {
  display: none;
}

.account-card header span,
.account-card.dark header span {
  color: var(--mobile-ink-muted);
  font-size: .75rem;
  font-weight: 750;
}

.account-card .account-balance {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  justify-items: end;
  align-content: center;
  gap: 2px;
  text-align: right;
}

.account-card .account-balance strong {
  color: var(--mobile-ink);
  font-size: 1rem;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.account-card .account-balance small,
.account-card.dark .account-balance small {
  color: var(--mobile-success);
  font-size: .75rem;
}

.account-card footer {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  min-width: 0;
  justify-content: flex-start;
  gap: 7px;
}

.account-card footer span,
.account-card.dark footer span {
  color: var(--mobile-ink-muted);
  font-size: .75rem;
}

.account-card footer span + span::before {
  content: "·";
  margin-right: 7px;
}

.account-stack > a,
.account-stack > button {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-rows: auto;
  gap: 10px;
  text-align: left;
}

/* Ledgers are visually quiet, information-rich rows with readable amounts. */
.transaction-list,
.activity-ledger,
.settings-list,
.notification-list,
.request-list {
  width: 100%;
  max-width: 100%;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--mobile-line);
  border-radius: 0;
  background: transparent;
}

.transaction-row,
.activity-ledger > a,
.settings-row,
.notification-row,
.request-row {
  width: 100%;
  min-width: 0;
  min-height: 72px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 1px;
  border-bottom: 1px solid var(--mobile-line);
  background: transparent;
}

button.transaction-row:hover,
button.settings-row:hover,
button.notification-row:hover,
button.request-row:hover,
a.transaction-row:hover,
a.settings-row:hover,
a.notification-row:hover,
a.request-row:hover {
  background: rgba(255, 254, 253, .72);
}

.list-icon,
.feature-icon,
.object-icon,
.account-symbol {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--mobile-info-soft);
}

.list-icon img,
.feature-icon img,
.object-icon img,
.account-symbol img {
  width: 19px;
  height: 19px;
}

.list-copy strong,
.activity-ledger strong {
  color: var(--mobile-ink);
  font-size: .8125rem;
  line-height: 1.28;
}

.list-copy small,
.activity-ledger small {
  color: var(--mobile-ink-muted);
  font-size: .75rem;
  line-height: 1.38;
}

.amount {
  max-width: 124px;
  color: var(--mobile-ink);
  font-size: .8125rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.amount.credit {
  color: var(--mobile-success);
}

.transaction-reference {
  color: #7b858e;
  font-size: .75rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.transaction-value {
  display: grid;
  min-width: 0;
  justify-items: end;
  gap: 3px;
  text-align: right;
}

.transaction-state {
  color: var(--mobile-ink-muted);
  font-size: .75rem;
  font-weight: 750;
}

.transaction-state.success {
  color: var(--mobile-success);
}

.transaction-state.warning {
  color: var(--mobile-warning);
}

.transaction-state.risk {
  color: var(--mobile-risk);
}

.ready-list {
  border-top: 1px solid var(--mobile-line);
}

.ready-row {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 82px;
  grid-template-columns: 40px minmax(0, 1fr) 17px;
  align-items: center;
  gap: 10px;
  padding: 12px 1px;
  border-bottom: 1px solid var(--mobile-line);
  background: transparent;
  color: var(--mobile-ink);
  text-align: left;
}

.ready-row > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.ready-row small,
.ready-row em {
  color: var(--mobile-ink-muted);
  font-size: .75rem;
  font-style: normal;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ready-row strong {
  color: var(--mobile-ink);
  font-size: .8125rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ready-row > img {
  width: 17px;
  height: 17px;
  opacity: .48;
}

.ready-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: var(--mobile-warning-soft);
}

.ready-icon img {
  width: 19px;
  height: 19px;
}

.ready-clear {
  display: grid;
  min-height: 72px;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 1px;
  border-bottom: 1px solid var(--mobile-line);
}

.ready-clear > img {
  width: 20px;
  height: 20px;
  margin: auto;
}

.ready-clear > span {
  display: grid;
  gap: 2px;
}

.ready-clear strong {
  font-size: .8125rem;
}

.ready-clear small {
  color: var(--mobile-ink-muted);
  font-size: .75rem;
}

/* Advisory AI is a source-backed command row on paper, not a dark glowing
   promotional card. */
.dark-panel.ai-entry,
.ai-entry,
.ask-tong-entry {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 11px;
  padding: 15px;
  overflow: hidden;
  border: 1px solid var(--mobile-line);
  border-top: 3px solid var(--mobile-brass);
  border-radius: 4px 4px 12px 12px;
  background: var(--mobile-surface);
  color: var(--mobile-ink);
  box-shadow: none;
}

.ai-entry > span:first-child,
.ask-tong-entry header > span {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--mobile-navy);
}

.ai-entry > span img,
.ask-tong-entry header > span img {
  width: 20px;
  height: 20px;
  filter: invert(95%);
}

.ai-entry p small,
.ask-tong-entry small {
  color: var(--mobile-ink-muted);
  font-size: .75rem;
}

.ai-entry p strong,
.ask-tong-entry strong {
  color: var(--mobile-ink);
  font-size: .8125rem;
}

.ai-entry > img {
  filter: none;
  opacity: .55;
}

.ask-tong-entry {
  margin-top: 29px;
}

.ask-tong-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: var(--mobile-navy);
}

.ask-tong-mark img {
  width: 20px;
  height: 20px;
  filter: invert(95%);
}

.ask-tong-entry > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.ask-tong-entry > span:nth-child(2) small {
  color: var(--mobile-ink-muted);
  font-size: .75rem;
}

.ask-tong-entry > span:nth-child(2) strong {
  color: var(--mobile-ink);
  font-size: .8125rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.ask-tong-entry > span:nth-child(2) em {
  color: var(--mobile-ink-muted);
  font-size: .75rem;
  font-style: normal;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.ask-tong-entry > img {
  width: 18px;
  height: 18px;
  opacity: .5;
}

.ask-tong-entry.compact {
  margin-top: 24px;
}

.fx-strip {
  border-color: var(--mobile-line);
  border-radius: 10px;
  background: var(--mobile-surface);
}

.fx-strip div {
  border-color: var(--mobile-line);
  background: transparent;
}

.fx-strip span {
  color: var(--mobile-ink-muted);
  font-size: .75rem;
}

.fx-strip strong {
  color: var(--mobile-ink);
  font-size: .8125rem;
}

.fx-table {
  border-top: 1px solid var(--mobile-line);
}

.fx-table > div {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 1px;
  border-bottom: 1px solid var(--mobile-line);
}

.fx-table > div > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.fx-table strong {
  color: var(--mobile-ink);
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}

.fx-table small,
.data-note {
  color: var(--mobile-ink-muted);
  font-size: .75rem;
}

.fx-table em {
  min-width: 44px;
  color: var(--mobile-success);
  font-size: .75rem;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.data-note {
  margin-top: 9px;
  line-height: 1.45;
}

.success-note,
.warning-note,
.info-note,
.human-note {
  border-radius: 10px;
}

/* General product pages use a calm paper hierarchy and fewer container cards. */
.page-inner {
  padding: 22px var(--mobile-gutter) 36px;
}

.page-header {
  margin-bottom: 24px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--mobile-line);
}

.page-header h1,
.page-header h2 {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(1.65rem, 6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -.035em;
}

.page-header p {
  color: var(--mobile-ink-muted);
  font-size: .875rem;
}

.page-header .eyebrow,
.eyebrow {
  color: var(--mobile-warning);
  font-size: .75rem;
}

.money-header {
  align-items: center;
}

.money-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.money-tabs .tab-button {
  display: grid;
  place-items: center;
  text-align: center;
}

.money-overview {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--mobile-line);
  border-radius: 12px;
  background: var(--mobile-surface);
}

.money-overview > div {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 4px;
  padding: 14px 12px;
  border-right: 1px solid var(--mobile-line);
}

.money-overview > div:last-child {
  border-right: 0;
}

.money-overview span,
.money-overview small {
  color: var(--mobile-ink-muted);
  font-size: .75rem;
  line-height: 1.3;
}

.money-overview strong {
  color: var(--mobile-ink);
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.money-overview .net strong {
  color: var(--mobile-success);
}

.compact-positions {
  border-top: 1px solid var(--mobile-line);
}

.request-value {
  display: grid;
  min-width: 0;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

.source-count {
  margin-left: auto;
  color: var(--mobile-ink-muted);
  font-size: .75rem;
  font-weight: 750;
}

.panel {
  border-color: var(--mobile-line);
  border-radius: 12px;
  background: var(--mobile-surface);
  box-shadow: none;
}

.panel.pad {
  padding: 16px;
}

.button {
  min-height: 48px;
  border-radius: 9px;
}

.button.primary {
  background: var(--mobile-navy);
}

.button.primary:hover {
  background: var(--mobile-navy-raised);
}

.button.gold {
  background: var(--mobile-brass);
}

.button.secondary {
  border-color: var(--mobile-line);
  background: var(--mobile-surface);
}

.button.secondary:hover {
  border-color: var(--mobile-line-strong);
  background: #fff;
}

.icon-button {
  border-radius: 10px;
}

.field > span,
.field > label {
  color: var(--mobile-ink);
  font-size: .8125rem;
}

.field small {
  font-size: .75rem;
}

.field input,
.field select,
.field textarea,
.chat-compose input,
.amount-input {
  border-color: var(--mobile-line-strong);
  border-radius: 9px;
  background: #fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.chat-compose input:focus,
.amount-input:focus-within {
  border-color: var(--mobile-brass);
  box-shadow: 0 0 0 3px rgba(184, 144, 75, .18);
}

.choice-card,
.route-card,
.document-card,
.payment-category,
.beneficiary-card,
.upload-zone,
.connected-proof,
.tracking-hero {
  border-color: var(--mobile-line);
  border-radius: 10px;
  background: var(--mobile-surface);
  box-shadow: none;
}

.choice-card.selected {
  border-color: var(--mobile-navy);
  box-shadow: inset 3px 0 var(--mobile-brass);
}

.filter-row,
.bounded-tabs {
  display: grid;
  width: 100%;
  max-width: 100%;
  max-height: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0 0 20px;
  padding: 0;
  overflow: visible;
  border-bottom: 1px solid var(--mobile-line);
}

.filter-button,
.tab-button {
  min-width: 0;
  min-height: 44px;
  padding: 9px 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  font-size: .75rem;
  overflow-wrap: anywhere;
}

.filter-button.active,
.tab-button.active {
  border-color: var(--mobile-brass);
  box-shadow: none;
  color: var(--mobile-navy);
}

.accounts-overview-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--mobile-line);
}

.account-overview-card,
.account-overview-card.featured {
  min-height: 0;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px 12px;
  padding: 15px 1px;
  border: 0;
  border-bottom: 1px solid var(--mobile-line);
  border-radius: 0;
  background: transparent;
  color: var(--mobile-ink);
  box-shadow: none;
}

.account-overview-card header {
  grid-row: 1 / span 2;
  display: grid;
  align-content: start;
}

.account-overview-card header .status {
  display: none;
}

.account-overview-card > div {
  gap: 3px;
}

.account-overview-card > div > span,
.account-overview-card small,
.account-overview-card footer > span,
.account-overview-card.featured > div > span,
.account-overview-card.featured small,
.account-overview-card.featured footer > span {
  color: var(--mobile-ink-muted);
  font-size: .75rem;
}

.account-overview-card > div > strong {
  color: var(--mobile-ink);
  font-size: 1.12rem;
}

.account-overview-card footer {
  grid-column: 2;
}

.account-overview-card .account-type-icon,
.account-overview-card.featured .account-type-icon {
  background: var(--mobile-brass-soft);
}

.account-overview-card.featured .account-type-icon img {
  filter: none;
}

.account-summary,
.review-amount,
.fx-quote,
.route-explainer {
  border-color: #183651;
  border-radius: 16px 16px 10px 10px;
  background: var(--mobile-navy);
  color: #fff;
  box-shadow: var(--mobile-shadow-deep);
}

.account-summary strong,
.review-amount strong {
  font-size: clamp(1.8rem, 8vw, 2.35rem);
}

.detail-row,
.review-row {
  min-width: 0;
  grid-template-columns: minmax(96px, .82fr) minmax(0, 1.18fr);
}

.detail-row span,
.review-row span {
  color: var(--mobile-ink-muted);
  font-size: .75rem;
}

.detail-row strong,
.review-row strong {
  min-width: 0;
  color: var(--mobile-ink);
  font-size: .8125rem;
  overflow-wrap: anywhere;
}

/* The tangible card is the one deliberately dramatic product object. */
.bank-card {
  min-height: 220px;
  border-color: #1c3a54;
  border-radius: 18px 18px 12px 12px;
  background: var(--mobile-navy);
  box-shadow: var(--mobile-shadow-deep);
}

.bank-card::after {
  border-color: rgba(224, 200, 147, .2);
}

.control-list,
.faq-list {
  border-color: var(--mobile-line);
  border-radius: 12px;
  background: var(--mobile-surface);
}

.control-row {
  min-height: 72px;
  border-color: var(--mobile-line);
}

.switch {
  border-radius: 15px;
}

/* Transfer steps keep a stable source/fee/evidence hierarchy. */
.flow-top {
  top: 68px;
  border-color: var(--mobile-line);
  background: rgba(245, 242, 235, .97);
}

.flow-content {
  padding-top: 26px;
}

.flow-question h1 {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(1.65rem, 6vw, 2.15rem);
  font-weight: 600;
}

.flow-footer {
  border-color: var(--mobile-line);
  background: rgba(255, 254, 253, .98);
}

.step-meter span {
  background: #d4cec3;
}

.step-meter span.current {
  background: var(--mobile-brass);
}

.assistant-page {
  background: var(--mobile-canvas);
}

.assistant-header {
  min-height: 82px;
  padding-top: 16px;
  padding-bottom: 16px;
  background: var(--mobile-navy);
}

.assistant-safety {
  margin-top: 14px;
  border-radius: 10px;
  background: var(--mobile-navy-raised);
}

.suggestion-button,
.chat-message {
  border-color: var(--mobile-line);
  border-radius: 10px;
  background: var(--mobile-surface);
}

.chat-message {
  box-shadow: none;
}

.chat-message.user {
  border-color: #c9b585;
  background: #f3ead7;
}

/* Bottom navigation is physically constrained to the viewport. Five equal
   destinations are always visible; no child can create page overflow. */
.bottom-nav {
  position: fixed;
  z-index: 70;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  min-height: var(--mobile-nav-height);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 0 max(2px, env(safe-area-inset-right))
    max(6px, env(safe-area-inset-bottom))
    max(2px, env(safe-area-inset-left));
  overflow: hidden;
  border-top: 1px solid var(--mobile-line);
  background: rgba(255, 254, 253, .98);
  box-shadow: 0 -8px 24px rgba(5, 19, 34, .07);
  backdrop-filter: blur(18px);
  contain: layout paint;
}

.bottom-nav a,
.bottom-nav button {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 68px;
  place-content: center;
  justify-items: center;
  gap: 4px;
  padding: 8px 1px 6px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #69757f;
  font-size: min(.75rem, 16px);
  font-weight: 750;
  line-height: 1.05;
}

.bottom-nav a span,
.bottom-nav button span {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav a::before,
.bottom-nav button::before {
  top: 0;
  right: 22%;
  left: 22%;
  height: 2px;
  background: transparent;
}

.bottom-nav a.active,
.bottom-nav button.active {
  color: var(--mobile-navy);
}

.bottom-nav a.active::before,
.bottom-nav button.active::before {
  background: var(--mobile-brass);
}

.bottom-nav img {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  opacity: .76;
}

.bottom-nav a.active img,
.bottom-nav button.active img {
  filter: none;
  opacity: 1;
}

.app-main {
  padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 20px);
}

/* Defensive containment for every dense current and future customer object. */
.page *,
.home-page *,
.flow-shell *,
.assistant-page * {
  max-width: 100%;
}

.transaction-row > *,
.settings-row > *,
.notification-row > *,
.request-row > *,
.choice-card > *,
.route-card > *,
.document-card > *,
.payment-category > *,
.beneficiary-card > * {
  min-width: 0;
}

.request-row > span:last-child,
.metric-row > div,
.fx-strip > div,
.money-summary > * {
  overflow-wrap: anywhere;
}

@media (min-width: 700px) and (max-width: 979px) {
  :root {
    --mobile-gutter: 28px;
  }

  .home-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
  }

  .quick-actions,
  .action-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .accounts-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border-top: 0;
  }

  .account-overview-card,
  .account-overview-card.featured {
    min-height: 188px;
    align-content: space-between;
    padding: 17px;
    border: 1px solid var(--mobile-line);
    border-radius: 12px;
    background: var(--mobile-surface);
  }

  .account-overview-card header {
    grid-row: auto;
  }

  .account-overview-card footer {
    grid-column: 1 / -1;
  }

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

/* ==========================================================================
   Official-mark chroma refinement — issue #10

   Color is structural and semantic: exact-source espresso/bronze identify
   Tong Shang, Atlantic navy carries authority and international movement,
   jade carries positive/local completion, and clay carries outflow/attention.
   The mineral canvas remains dominant and the official raster is never
   recolored.
   ========================================================================== */

.mobile-header {
  border-bottom: 2px solid var(--mobile-crest-bronze);
  box-shadow: 0 5px 20px rgba(46, 35, 18, .045);
}

.mobile-header::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  width: 34%;
  height: 2px;
  background: var(--mobile-brass);
  content: "";
  pointer-events: none;
}

.mobile-header .icon-button {
  border-color: #ddd5c8;
  background: #faf7f1;
}

.header-avatar {
  border-color: var(--mobile-espresso);
  background: var(--mobile-espresso);
}

.header-avatar:hover {
  background: var(--mobile-crest-bronze);
}

.balance-block,
.position-band {
  border-top-color: var(--mobile-crest-bronze);
  box-shadow:
    inset 0 2px 0 rgba(180, 134, 67, .52),
    var(--mobile-shadow-deep);
}

.position-watermark,
.position-crest {
  opacity: .12;
  filter: none;
}

.position-facts > span:first-child,
.position-movement > span:first-child {
  padding-left: 9px;
  border-left: 2px solid var(--mobile-brass);
}

.position-facts > span:last-child,
.position-movement > span:last-child {
  padding-left: 9px;
  border-left: 2px solid #3e657f;
}

.command-grid .action-tile {
  --action-color: var(--mobile-brass);
  --action-soft: var(--mobile-brass-soft);
  box-shadow:
    inset 0 2px 0 var(--action-color),
    0 1px 1px rgba(5, 19, 34, .025);
}

.command-grid .action-tile:hover {
  box-shadow:
    inset 0 2px 0 var(--action-color),
    var(--mobile-shadow);
}

.command-grid .action-tile .action-icon {
  background: var(--action-soft);
}

.command-grid .action-tile[data-route="transfers"],
.command-grid .action-tile[data-route="accounts"],
.command-grid .action-tile[data-route^="transfers/swift"] {
  --action-color: var(--mobile-info);
  --action-soft: var(--mobile-atlantic-soft);
}

.command-grid .action-tile[data-route^="transfers/cips"],
.command-grid .action-tile[data-route^="transfers/track"] {
  --action-color: var(--mobile-brass);
  --action-soft: var(--mobile-brass-soft);
}

.command-grid .action-tile[data-route^="transfers/papss"],
.command-grid .action-tile[data-route="payments/airtime"] {
  --action-color: var(--mobile-success);
  --action-soft: var(--mobile-success-soft);
}

.command-grid .action-tile[data-route="payments/cashpower"] {
  --action-color: var(--mobile-warning);
  --action-soft: var(--mobile-warning-soft);
}

.command-grid .action-tile[data-route="payments/utilities"],
.command-grid .action-tile[data-route="activity"] {
  --action-color: var(--mobile-clay);
  --action-soft: var(--mobile-clay-soft);
}

.command-grid .action-tile[data-route="payments/qr"] {
  --action-color: #2e7180;
  --action-soft: #e3eff0;
}

.command-grid .action-tile[data-route="payments/cardless"] {
  --action-color: var(--mobile-crest-bronze);
  --action-soft: var(--mobile-bronze-soft);
}

.section-kicker {
  color: var(--mobile-crest-bronze) !important;
}

.page-header .eyebrow,
.eyebrow,
.flow-question > span,
.flow-title small {
  color: #6a4e28;
}

.money-today {
  border-top: 3px solid var(--mobile-crest-bronze);
  background: #fffdf9;
}

.flow-summary > div:first-child {
  margin-right: 4px;
  padding-inline: 10px;
  background: #f5faf7;
}

.flow-summary > div:nth-child(2) {
  margin-left: 4px;
  padding-inline: 10px;
  background: #fcf7f3;
}

.flow-summary > div:nth-child(2) > i > b,
.cashflow-mini b {
  background: var(--mobile-clay);
}

.flow-summary .flow-net {
  margin: 3px 0 0;
  padding-inline: 1px;
  background: transparent;
}

.money-overview > div {
  --movement-color: var(--mobile-info);
  box-shadow: inset 0 3px 0 var(--movement-color);
  background: #f7fafc;
}

.money-overview > div:first-child {
  --movement-color: var(--mobile-success);
  background: #f5faf7;
}

.money-overview > div:nth-child(2) {
  --movement-color: var(--mobile-clay);
  background: #fcf7f3;
}

.money-overview > div:last-child {
  --movement-color: var(--mobile-brass);
  background: #fbf8f1;
}

.account-mark,
.account-overview-card .account-type-icon,
.account-overview-card.featured .account-type-icon {
  background: var(--mobile-bronze-soft);
  box-shadow: inset 0 2px 0 var(--mobile-crest-bronze);
}

.position-row:nth-child(2) .account-mark,
.account-overview-card:nth-child(2) .account-type-icon {
  background: var(--mobile-success-soft);
  box-shadow: inset 0 2px 0 var(--mobile-success);
}

.position-row:nth-child(3) .account-mark,
.account-overview-card:nth-child(3) .account-type-icon {
  background: var(--mobile-atlantic-soft);
  box-shadow: inset 0 2px 0 var(--mobile-info);
}

.position-row:nth-child(4) .account-mark,
.account-overview-card:nth-child(4) .account-type-icon {
  background: var(--mobile-clay-soft);
  box-shadow: inset 0 2px 0 var(--mobile-clay);
}

.list-icon {
  background: var(--mobile-bronze-soft);
  box-shadow: inset 3px 0 var(--mobile-laurel-taupe);
}

.list-icon.success {
  background: var(--mobile-success-soft);
  box-shadow: inset 3px 0 var(--mobile-success);
}

.list-icon.warning {
  background: var(--mobile-warning-soft);
  box-shadow: inset 3px 0 var(--mobile-warning);
}

.list-icon.info {
  background: var(--mobile-atlantic-soft);
  box-shadow: inset 3px 0 var(--mobile-info);
}

.list-icon.risk {
  background: var(--mobile-risk-soft);
  box-shadow: inset 3px 0 var(--mobile-risk);
}

.transaction-reference {
  color: var(--mobile-ink-muted);
}

.ready-row {
  padding-left: 11px;
  box-shadow: inset 3px 0 var(--mobile-info);
}

.ready-row.trade {
  box-shadow: inset 3px 0 var(--mobile-brass);
}

.ready-row:nth-child(3n + 2) {
  box-shadow: inset 3px 0 var(--mobile-clay);
}

.ready-row:nth-child(3n) {
  box-shadow: inset 3px 0 var(--mobile-success);
}

.ready-row.trade .ready-icon {
  background: var(--mobile-brass-soft);
}

.ready-row:not(.trade):nth-child(3n + 2) .ready-icon {
  background: var(--mobile-clay-soft);
}

.ready-row:not(.trade):nth-child(3n) .ready-icon {
  background: var(--mobile-success-soft);
}

.fx-table > div {
  --currency-color: var(--mobile-info);
  padding-left: 11px;
  box-shadow: inset 3px 0 var(--currency-color);
}

.fx-table > div:nth-child(2) {
  --currency-color: var(--mobile-brass);
}

.fx-table > div:nth-child(3) {
  --currency-color: var(--mobile-success);
}

.dark-panel.ai-entry,
.ai-entry,
.ask-tong-entry {
  border-color: #d9d1c4;
  border-top-color: var(--mobile-brass);
  background: #faf8f3;
}

.ai-entry > span:first-child,
.ask-tong-entry header > span,
.ask-tong-mark {
  background: var(--mobile-espresso);
  box-shadow: inset 0 -3px var(--mobile-brass);
}

.choice-card.selected,
.route-choice.recommended {
  border-color: #c8af82;
  background: #fcf8ef;
  box-shadow: inset 3px 0 var(--mobile-brass);
}

.choice-card.selected .feature-icon,
.route-choice.recommended .feature-icon {
  background: var(--mobile-brass-soft);
  box-shadow: inset 0 2px var(--mobile-brass);
}

.payment-category {
  --category-color: var(--mobile-info);
  --category-soft: var(--mobile-atlantic-soft);
  box-shadow: inset 0 2px 0 var(--category-color);
}

.payment-category:nth-child(2),
.payment-category:nth-child(5) {
  --category-color: var(--mobile-success);
  --category-soft: var(--mobile-success-soft);
}

.payment-category:nth-child(3),
.payment-category:nth-child(6) {
  --category-color: var(--mobile-clay);
  --category-soft: var(--mobile-clay-soft);
}

.payment-category:nth-child(4) {
  --category-color: var(--mobile-brass);
  --category-soft: var(--mobile-brass-soft);
}

.payment-category .feature-icon {
  background: var(--category-soft);
}

.menu-card {
  --service-color: var(--mobile-brass);
  --service-soft: var(--mobile-brass-soft);
  box-shadow: inset 0 2px 0 var(--service-color);
}

.menu-card:nth-child(2) {
  --service-color: var(--mobile-info);
  --service-soft: var(--mobile-atlantic-soft);
}

.menu-card:nth-child(3) {
  --service-color: var(--mobile-clay);
  --service-soft: var(--mobile-clay-soft);
}

.menu-card:nth-child(4) {
  --service-color: var(--mobile-success);
  --service-soft: var(--mobile-success-soft);
}

.menu-card > img {
  width: 19px;
  height: 19px;
  padding: 7px;
  box-sizing: content-box;
  border-radius: 9px;
  background: var(--service-soft);
}

.account-summary,
.review-amount,
.fx-quote,
.route-explainer,
.bank-card {
  box-shadow:
    inset 0 3px 0 rgba(180, 134, 67, .62),
    var(--mobile-shadow-deep);
}

.route-map > span:first-child {
  border-top: 3px solid var(--mobile-navy);
  background: #f7fafc;
}

.route-map > span:last-child {
  border-top: 3px solid var(--mobile-success);
  background: #f5faf7;
}

.route-map > span:last-child b {
  background: var(--mobile-success);
  color: #fff;
}

.info-note {
  border-color: #b9ccd8;
  background: #edf4f7;
  color: #174661;
}

.human-note {
  border-color: #d2bc92;
  background: #f8f1e5;
  color: #5c3f1a;
}

.warning-note {
  border-color: #d8b584;
  background: var(--mobile-warning-soft);
}

.success-note {
  border-color: #aacdbd;
  background: var(--mobile-success-soft);
}

.document-card {
  box-shadow: inset 3px 0 var(--mobile-brass);
}

.tracking-hero {
  background: #f7fafc;
}

.tracking-hero.success {
  background: #f5faf7;
}

.tracking-hero.warning {
  background: #fbf7ef;
}

.assistant-header {
  border-bottom: 3px solid var(--mobile-brass);
}

.assistant-header > span {
  border: 1px solid rgba(180, 134, 67, .5);
  background: rgba(180, 134, 67, .18);
}

.suggestion-button:nth-child(3n + 1) {
  box-shadow: inset 3px 0 var(--mobile-brass);
}

.suggestion-button:nth-child(3n + 2) {
  box-shadow: inset 3px 0 var(--mobile-info);
}

.suggestion-button:nth-child(3n) {
  box-shadow: inset 3px 0 var(--mobile-success);
}

.chat-message.user {
  border-color: #d8bd8c;
  background: #f7efe1;
}

.bank-card .card-crest-plate {
  border: 1px solid rgba(109, 98, 82, .38);
  background: #fffdf8;
}

.control-row:nth-child(1) > img {
  width: 19px;
  height: 19px;
  padding: 7px;
  box-sizing: content-box;
  border-radius: 9px;
  background: var(--mobile-atlantic-soft);
}

.control-row:nth-child(2) > img {
  width: 19px;
  height: 19px;
  padding: 7px;
  box-sizing: content-box;
  border-radius: 9px;
  background: var(--mobile-success-soft);
}

.control-row:nth-child(3) > img {
  width: 19px;
  height: 19px;
  padding: 7px;
  box-sizing: content-box;
  border-radius: 9px;
  background: var(--mobile-brass-soft);
}

.bottom-nav a img,
.bottom-nav button img {
  width: 31px;
  height: 31px;
  padding: 5px;
  border-radius: 8px;
}

.bottom-nav a.active img,
.bottom-nav button.active img {
  background: var(--mobile-brass-soft);
  box-shadow: inset 0 2px var(--mobile-brass);
}

.bottom-nav a.active,
.bottom-nav button.active {
  color: var(--mobile-espresso);
}

.bottom-nav a:not(.active),
.bottom-nav button:not(.active) {
  color: var(--mobile-ink-muted);
}

.bottom-nav a.active::before,
.bottom-nav button.active::before {
  background: var(--mobile-crest-bronze);
}

@media (prefers-contrast: more) {
  .command-grid .action-tile,
  .money-today,
  .money-overview,
  .ask-tong-entry,
  .choice-card,
  .payment-category,
  .menu-card {
    border-color: #9c9181;
  }
}

@media (max-width: 699px) {
  .secure-session {
    display: none;
  }

  .mobile-header {
    grid-template-columns: minmax(108px, 1fr) auto;
  }

  .brand-lockup {
    overflow: hidden;
  }

  .header-actions .icon-button {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .header-avatar {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 980px) {
  :root {
    --mobile-nav-height: 0px;
    --mobile-gutter: 30px;
  }

  .app-shell {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .app-sidebar {
    border-color: var(--line-dark);
    background: var(--mobile-navy);
  }

  .nav-item {
    border-radius: 8px;
  }

  .nav-item.active {
    background: var(--mobile-navy-raised);
    box-shadow: inset 2px 0 var(--mobile-brass);
  }

  .mobile-header {
    min-height: 72px;
  }

  .bottom-nav {
    display: none;
  }

  .app-main {
    padding-bottom: 0;
  }

  .home-intro {
    padding-top: 30px;
  }

  .home-canvas {
    padding-top: 16px;
  }

  .quick-actions,
  .action-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .accounts-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    border-top: 0;
  }

  .account-overview-card,
  .account-overview-card.featured {
    min-height: 210px;
    align-content: space-between;
    padding: 18px;
    border: 1px solid var(--mobile-line);
    border-radius: 12px;
    background: var(--mobile-surface);
  }

  .account-overview-card header {
    grid-row: auto;
  }

  .account-overview-card footer {
    grid-column: 1 / -1;
  }

  .flow-top {
    top: 72px;
  }
}

@media (max-width: 430px) {
  .mobile-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mobile-header .demo-mark {
    display: none;
  }

  .greeting-row {
    align-items: flex-start;
  }

  .greeting-row strong {
    max-width: 220px;
  }

  .quick-actions,
  .action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fx-strip {
    grid-template-columns: 1fr;
  }

  .fx-strip div {
    grid-template-columns: 1fr auto;
  }

  .page-header {
    display: grid;
  }

  .page-header > .button,
  .page-header > .status {
    justify-self: start;
  }

  .bounded-tabs,
  .filter-row {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  }

  .money-overview {
    grid-template-columns: minmax(0, 1fr);
  }

  .money-overview > div {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--mobile-line);
  }

  .money-overview > div:last-child {
    border-bottom: 0;
  }

  .money-overview > div small {
    grid-column: 1 / -1;
  }
}

@media (max-width: 374px) {
  :root {
    --mobile-gutter: 15px;
  }

  .brand-lockup small {
    display: none;
  }

  .compact-brand-plate {
    width: 42px;
  }

  .compact-brand-lockup {
    width: 110px;
  }

  .header-actions {
    gap: 2px;
  }

  .header-actions .icon-button {
    width: 38px;
    min-width: 38px;
    min-height: 40px;
  }

  .header-avatar {
    width: 38px;
    height: 40px;
  }

  .greeting-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .context-switch {
    justify-self: start;
  }

  .balance-value,
  .position-band > strong {
    font-size: clamp(1.7rem, 9vw, 2rem);
  }

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

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

  .money-summary > *,
  .money-summary > *:first-child,
  .money-summary > *:last-child {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 9px 0;
    border-right: 0;
    border-bottom: 1px solid var(--mobile-line);
  }

  .money-summary > *:last-child {
    border-bottom: 0;
  }

  .transaction-row,
  .activity-ledger > a,
  .settings-row,
  .notification-row,
  .request-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .position-row {
    grid-template-columns: 38px minmax(0, 1fr) 17px;
  }

  .position-row .account-balance {
    grid-column: 2;
    grid-row: 2;
    justify-items: start;
    text-align: left;
  }

  .position-row .row-chevron {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .transaction-row .amount,
  .activity-ledger > a > :last-child,
  .request-row > span:last-child,
  .notification-row > :last-child {
    grid-column: 2;
    justify-self: start;
    max-width: 100%;
    text-align: left;
  }

  .detail-row,
  .review-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .detail-row strong,
  .review-row strong {
    text-align: left;
  }

  .bottom-nav a,
  .bottom-nav button {
    font-size: min(.6875rem, 15px);
  }
}

/* Explicit release-check mode used by the product walkthrough and automated
   accessibility review. It preserves the full information set at 200% text
   without introducing a second navigation rail or horizontal pan. */
html.text-scale-200 {
  font-size: 32px;
}

html.text-scale-200 .mobile-header {
  min-height: 72px;
}

html.text-scale-200 .secure-session {
  display: none;
}

html.text-scale-200 .compact-brand-lockup {
  width: 112px;
}

html.text-scale-200 .customer-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

html.text-scale-200 .customer-context h1 {
  font-size: 1.15rem;
}

html.text-scale-200 .context-switch {
  justify-self: start;
}

html.text-scale-200 .position-band {
  min-height: 0;
}

html.text-scale-200 .position-band > .balance-value {
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

html.text-scale-200 .position-facts {
  grid-template-columns: minmax(0, 1fr);
}

html.text-scale-200 .position-band > footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

html.text-scale-200 .quick-actions,
html.text-scale-200 .command-grid,
html.text-scale-200 .action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.text-scale-200 .command-grid .action-tile strong,
html.text-scale-200 .command-grid .action-tile small {
  font-size: .65rem;
}

html.text-scale-200 .section-heading h2,
html.text-scale-200 .section-heading h3,
html.text-scale-200 .section-title h2,
html.text-scale-200 .section-title h3 {
  font-size: .95rem;
}

html.text-scale-200 .section-kicker,
html.text-scale-200 .section-heading span,
html.text-scale-200 .text-link {
  font-size: .625rem !important;
}

html.text-scale-200 .flow-summary {
  grid-template-columns: minmax(0, 1fr);
}

html.text-scale-200 .flow-summary .flow-net {
  grid-column: 1;
}

html.text-scale-200 .position-row {
  grid-template-columns: 38px minmax(0, 1fr) 17px;
}

html.text-scale-200 .position-row .account-balance {
  grid-column: 2;
  grid-row: 2;
  justify-items: start;
  text-align: left;
}

html.text-scale-200 .position-row .row-chevron {
  grid-column: 3;
  grid-row: 1 / span 2;
}

html.text-scale-200 .account-copy strong,
html.text-scale-200 .position-row .account-balance strong,
html.text-scale-200 .ready-row strong,
html.text-scale-200 .list-copy strong,
html.text-scale-200 .transaction-value .amount {
  font-size: .7rem;
}

html.text-scale-200 .account-copy small,
html.text-scale-200 .position-row .account-balance small,
html.text-scale-200 .ready-row small,
html.text-scale-200 .ready-row em,
html.text-scale-200 .list-copy small,
html.text-scale-200 .transaction-reference,
html.text-scale-200 .transaction-state {
  font-size: .625rem;
}

html.text-scale-200 .transaction-row,
html.text-scale-200 .activity-ledger > a,
html.text-scale-200 .settings-row,
html.text-scale-200 .notification-row,
html.text-scale-200 .request-row {
  grid-template-columns: 38px minmax(0, 1fr);
}

html.text-scale-200 .transaction-value,
html.text-scale-200 .request-value,
html.text-scale-200 .request-row > span:last-child {
  grid-column: 2;
  justify-items: start;
  max-width: 100%;
  text-align: left;
}

html.text-scale-200 .money-overview {
  grid-template-columns: minmax(0, 1fr);
}

html.text-scale-200 .money-overview > div {
  border-right: 0;
  border-bottom: 1px solid var(--mobile-line);
}

html.text-scale-200 .money-overview > div:last-child {
  border-bottom: 0;
}

html.text-scale-200 .bottom-nav a,
html.text-scale-200 .bottom-nav button {
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .action-tile,
  .button,
  .icon-button,
  .choice-card,
  .page,
  .toast,
  .modal {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* Live-renderer collision guards. These selectors intentionally sit last:
   Connected Money Command rows retain legacy behavior classes but never the
   old card/carousel geometry. */
.account-card.position-row {
  min-height: 82px;
  grid-template-columns: 40px minmax(0, 1fr) 17px;
  grid-template-rows: auto auto;
  gap: 3px 10px;
  padding: 12px 1px;
}

.account-card.position-row .account-mark {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
}

.account-card.position-row .account-copy {
  grid-column: 2;
  grid-row: 1;
}

.account-card.position-row .account-balance {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  justify-items: start;
  gap: 7px;
  text-align: left;
}

.account-card.position-row .account-balance strong {
  font-size: .875rem;
  white-space: normal;
}

.account-card.position-row .account-balance small {
  font-size: .75rem;
}

.account-card.position-row .row-chevron {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.chat-compose {
  bottom: var(--mobile-nav-height);
}

.assistant-body {
  padding-bottom: calc(112px + var(--mobile-nav-height));
}

.flow-shell {
  grid-template-columns: minmax(0, 1fr);
}

.flow-top,
.flow-content,
.flow-footer,
.cards-grid,
.cards-grid > *,
.cards-grid .section-stack {
  min-width: 0;
  width: 100%;
}

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

.bank-card {
  width: 100%;
  max-width: 100%;
}

html.text-scale-200 .bank-card {
  min-height: 0;
  gap: 18px;
  padding: 16px;
}

html.text-scale-200 .bank-card header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
}

html.text-scale-200 .bank-card header span {
  min-width: 0;
  font-size: .6rem;
  overflow-wrap: anywhere;
}

html.text-scale-200 .bank-card .pan {
  font-size: .72rem;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}

html.text-scale-200 .bank-card footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

html.text-scale-200 .bank-card footer small,
html.text-scale-200 .bank-card footer strong {
  font-size: .55rem;
  overflow-wrap: anywhere;
}

html.text-scale-200 .card-primary-state {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
}

html.text-scale-200 .card-primary-state .button {
  width: 100%;
}

html.text-scale-200 .control-row {
  grid-template-columns: 26px minmax(0, 1fr) 48px;
}

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

.menu-grid > * {
  min-width: 0;
}

html.text-scale-200 .menu-grid {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 430px) {
  .page-header.money-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: start;
    gap: 12px;
  }

  .page-header.money-header > div {
    grid-column: 1;
    grid-row: 1;
  }

  .page-header.money-header > .icon-button {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
  }
}

@media (min-width: 700px) {
  .account-card.position-row {
    grid-template-columns: 40px minmax(0, 1fr) auto 17px;
    grid-template-rows: auto;
  }

  .account-card.position-row .account-mark,
  .account-card.position-row .account-copy,
  .account-card.position-row .account-balance,
  .account-card.position-row .row-chevron {
    grid-row: 1;
  }

  .account-card.position-row .account-copy { grid-column: 2; }
  .account-card.position-row .account-balance {
    grid-column: 3;
    display: grid;
    justify-items: end;
    text-align: right;
  }
  .account-card.position-row .row-chevron { grid-column: 4; }

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