:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #202329;
  background: #fff;
  font-synthesis: none;
  --orange: #eb602e;
  --muted: #858785
}

* {
  box-sizing: border-box
}

body {
  margin: 0
}

button,
input,
select {
  font: inherit
}

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

button {
  cursor: pointer
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px
}

svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0
}

.icons,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%)
}

[hidden] {
  display: none !important
}

.demo-notice {
  background: #f4f2ef;
  color: #726b64;
  text-align: center;
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 9px 12px
}

.demo-notice span {
  margin: 0 9px;
  color: var(--orange)
}

.masthead {
  background: linear-gradient(127deg, #dde721 9%, #5f651a 39%, #718238 40%, #96c300 65%, #c1d75f 66%, #585d1f);
  color: white;
  position: relative;
  overflow: hidden
}

.masthead:after {
  content: "";
  position: absolute;
  width: 650px;
  height: 300px;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  transform: rotate(-25deg);
  left: 20%;
  top: -220px;
  box-shadow: 0 12px 25px #ffffff08;
  pointer-events: none
}

.header-inner {
  max-width: 1120px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 29px 40px
}

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

.brand-mark {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -9px;
  line-height: 1
}

.brand-mark span,
.card-brand>span {
  color: var(--orange)
}

.desktop-brand {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1px
}

.greeting {
  border-left: 1px solid #ffffff30;
  padding-left: 25px;
  display: grid;
  gap: 5px
}

.greeting>span {
  font-size: 14px;
  color: #cecece
}

.greeting strong {
  font-size: 20px
}

.plan {
  margin-left: auto;
  color: #fff;
  border: 1px solid #fff;
  background: #aa3d191f;
  padding: 10px 21px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px
}

main {
  max-width: 1120px;
  margin: auto;
  padding: 34px 40px 125px;
  outline: none
}

.hero {
  border-radius: 20px;
  background: radial-gradient(ellipse at 88% 95%, #543123 0, transparent 45%), linear-gradient(125deg, #080808, #222 75%, #171717);
  color: #fff;
  min-height: 278px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 32px 36px
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 65%
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--orange)
}

.hero h2 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 17px 0 12px
}

.hero h2 em {
  font-style: normal;
  color: #ff7644
}

.hero p {
  color: #b7b7b7;
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 22px
}

.hero-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  color: #fff;
  padding: 0;
  font-weight: 600;
  font-size: 15px
}

.hero-link svg {
  color: var(--orange);
  width: 21px
}

.hero-art {
  position: absolute;
  right: 16px;
  top: 0;
  width: 36%;
  height: 100%;
  perspective: 600px
}

.orbit {
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid #ffffff13;
  border-radius: 50%;
  top: 20px;
  left: -10px;
  box-shadow: 0 0 0 35px #ffffff03, 0 0 0 70px #ffffff02
}

.mini-card {
  position: absolute;
  width: 150px;
  height: 215px;
  border-radius: 15px;
  top: 42px;
  left: 80px;
  box-shadow: 0 20px 30px #0008
}

.back-card {
  background: linear-gradient(130deg, #ed794c, #7b2a13);
  transform: rotate(19deg) translateX(28px)
}

.front-card {
  background: linear-gradient(135deg, #444, #111);
  border: 1px solid #ffffff30;
  transform: rotate(-12deg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start
}

.front-card b {
  font-size: 22px;
  letter-spacing: -1px
}

.front-card b span {
  color: var(--orange)
}

.chip {
  width: 28px;
  height: 23px;
  background: linear-gradient(45deg, #ac9e7d, #ede2bf);
  border-radius: 5px;
  margin-top: 28px
}

.front-card small {
  font-size: 8px;
  letter-spacing: 1.5px;
  margin-top: auto;
  color: #bbb
}

.front-card strong {
  font-size: 12px;
  margin-top: 9px
}

.art-spark {
  position: absolute;
  color: #ff8a58;
  font-size: 59px;
  right: 21px;
  top: 23px
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  min-height: 30px
}

.section-heading h2 {
  margin: 0;
  color: #111;
  font-size: 25px;
  letter-spacing: -.7px
}

.section-note {
  font-size: 11px;
  color: var(--muted)
}

.account-panel {
  display: block;
  text-align: left;
  background: #fff;
  border: 1px solid #292929;
  border-radius: 20px;
  padding: 27px;
  width: 100%;
  height: 237px;
  box-shadow: 0 2px 3px #0000000c;
  color: inherit
}

.account-top {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 24px;
  border-bottom: 1px solid #b8b8bb
}

.avatar {
  width: 55px;
  height: 55px;
  border: 2px solid var(--orange);
  color: var(--orange);
  font-size: 21px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.account-identity {
  display: grid;
  gap: 9px;
  min-width: 0
}

.account-identity strong {
  font-size: 16px;
  font-weight: 500
}

.account-identity>span {
  font-size: 12px;
  color: var(--muted)
}

.chevron {
  color: #aaa;
  width: 18px;
  margin-left: auto
}

.account-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 23px
}

.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6
}

.balance-label {
  display: block;
  font-size: 14px
}

.balance {
  display: block;
  font-size: 35px;
  font-weight: 500;
  letter-spacing: -.7px;
  margin-top: 10px;
  font-variant-numeric: tabular-nums
}

.balance>span {
  font-size: 30px
}

.status {
  color: #a12b0a;
  background: #dda18e;
  border: 1px solid #b4e6c8;
  padding: 8px 13px;
  border-radius: 30px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.status i,
.tiny-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #4aa773;
  border-radius: 50%
}

.icon-button {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  color: var(--orange)
}

.payment-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #080808, #292929);
  color: #fff;
  width: 100%;
  height: 237px;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 27px -10px #1f273d40
}

.card-watermark {
  position: absolute;
  font-size: 105px;
  font-weight: 700;
  letter-spacing: -9px;
  right: -5px;
  top: -15px;
  color: #ffffff06;
  pointer-events: none
}

.card-brand {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -5px;
  position: relative
}

.card-brand b {
  font-size: 24px;
  letter-spacing: -1px;
  margin-left: 9px
}

.card-holder {
  font-size: 17px;
  font-weight: 600;
  margin-top: 20px
}

.card-number {
  font-size: 16px;
  color: #bdbdbd;
  margin-top: 9px;
  letter-spacing: 2px
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px
}

.pills {
  display: flex;
  gap: 8px
}

.pills>span {
  padding: 8px 12px;
  border: 1px solid #eee;
  border-radius: 30px;
  font-size: 12px
}

.demo-card-label {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  line-height: 1.1
}

.demo-card-label small {
  font-size: 7px;
  color: #c5c5c5;
  font-weight: 400
}

.home-footnote {
  margin-top: 43px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #92928c
}

.footnote-brand {
  margin-left: auto
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fffffff5;
  backdrop-filter: blur(16px);
  border-top: 1px solid #f0f0f0;
  z-index: 5;
  padding-bottom: env(safe-area-inset-bottom)
}

.bottom-nav>div {
  max-width: 680px;
  margin: auto;
  display: flex;
  justify-content: space-around
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 4px 20px;
  color: #91938f;
  font-size: 12px
}

.bottom-nav a svg {
  width: 25px;
  height: 25px
}

.bottom-nav a[aria-current] {
  color: var(--orange)
}

.bottom-nav a:hover {
  background: #faf7f4
}

.page-heading {
  margin: 15px 0 30px
}

.page-heading h1 {
  font-size: 34px;
  letter-spacing: -1px;
  margin: 12px 0
}

.page-heading p {
  color: var(--muted);
  line-height: 1.5
}

.detail-panel {
  padding: 28px;
  border: 1px solid #e4e2df;
  border-radius: 20px;
  margin-bottom: 28px;
  background: #fff
}

.detail-panel>.status {
  margin-top: 16px
}

.detail-panel h2 {
  font-size: 21px
}

.detail-panel p {
  line-height: 1.7
}

.transactions {
  border: 1px solid #e4e2df;
  border-radius: 20px;
  padding: 0 24px
}

.transactions>div {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 24px 0
}

.transactions>div+div {
  border-top: 1px solid #eee
}

.transaction-icon {
  background: #f7f3ef;
  padding: 13px;
  border-radius: 50%;
  color: var(--orange)
}

.transactions strong {
  font-size: 14px
}

.transactions small {
  display: block;
  color: var(--muted);
  margin-top: 6px
}

.transactions b {
  margin-left: auto;
  font-size: 14px;
  white-space: nowrap
}

.positive {
  color: #298858
}

.transfer-form {
  max-width: 550px;
  display: grid;
  gap: 14px
}

.transfer-form label {
  font-size: 14px;
  font-weight: 600
}

.transfer-form input,
.transfer-form select {
  width: 100%;
  border: 1px solid #d9d7d3;
  border-radius: 10px;
  padding: 15px;
  background: #faf9f7;
  color: #202329
}

.amount-input {
  position: relative
}

.amount-input span {
  position: absolute;
  right: 35px;
  top: 16px
}

.primary,
.secondary {
  padding: 13px 19px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid var(--orange)
}

.primary {
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px
}

.secondary {
  color: #b74319;
  background: #fff7f1;
  font-size: 13px
}

.primary:hover {
  background: #d75021
}

#transfer-result:empty {
  display: none
}

#transfer-result {
  color: #298858;
  margin: 0
}

#card-preview {
  max-width: 460px;
  margin-bottom: 35px
}

.card-settings {
  max-width: 600px
}

.card-settings>div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 15px 0
}

.card-settings small {
  display: block;
  margin-top: 6px;
  color: var(--muted)
}

.profile {
  display: flex;
  align-items: center;
  gap: 20px
}

.profile p {
  margin: 5px 0 0
}

.payment-card.paused {
  filter: grayscale(1);
  opacity: .6
}

dialog {
  border: 1px solid #ddd;
  border-radius: 22px;
  padding: 36px;
  max-width: 460px;
  width: calc(100% - 40px);
  color: #202329;
  box-shadow: 0 25px 100px #0004
}

dialog::backdrop {
  background: #0008;
  backdrop-filter: blur(3px)
}

dialog h2 {
  font-size: 27px;
  letter-spacing: -.7px
}

dialog p {
  line-height: 1.7;
  color: #757575
}

.dialog-close {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 28px;
  width: 35px;
  height: 35px
}

button {
  transition: background .15s, box-shadow .15s
}

button.account-panel:hover {
  box-shadow: 0 4px 15px #00000010
}

@media(min-width:1200px) {
  main {
    padding-top: 42px
  }

  .hero {
    min-height: 300px
  }

  .hero h2 {
    font-size: 36px
  }

  .hero-art {
    right: 50px
  }

  .mini-card {
    top: 48px
  }
}

@media(max-width:760px) {
  .header-inner {
    padding: 22px 28px;
    gap: 20px
  }

  .desktop-brand {
    display: none
  }

  .greeting {
    padding-left: 0;
    border: 0
  }

  .greeting strong {
    font-size: 18px
  }

  .brand-mark {
    font-size: 47px
  }

  .plan {
    padding: 9px 16px;
    font-size: 13px
  }

  main {
    padding: 22px 28px 115px
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 25px
  }

  .section-heading h2 {
    font-size: 25px
  }

  .section-note {
    display: none
  }

  .hero {
    padding: 24px 20px;
    min-height: 217px;
    border-radius: 14px
  }

  .hero-copy {
    width: 77%
  }

  .hero .eyebrow {
    display: none
  }

  .hero h2 {
    font-size: 24px;
    letter-spacing: -.6px;
    margin: 0 0 12px
  }

  .hero p {
    font-size: 14px;
    margin-bottom: 18px
  }

  .hero-link {
    font-size: 13px;
    gap: 6px
  }

  .hero-link svg {
    width: 18px
  }

  .hero-art {
    right: -47px;
    width: 42%;
    opacity: .75
  }

  .mini-card {
    width: 103px;
    height: 157px;
    top: 52px;
    left: 25px;
    padding: 13px
  }

  .front-card b {
    font-size: 17px
  }

  .front-card strong {
    font-size: 9px
  }

  .front-card small {
    font-size: 6px;
    letter-spacing: .6px
  }

  .chip {
    width: 23px;
    height: 18px;
    margin-top: 20px
  }

  .art-spark {
    font-size: 37px;
    right: 53px;
    top: 20px
  }

  .account-panel {
    height: 211px;
    padding: 23px
  }

  .account-top {
    padding-bottom: 20px
  }

  .account-bottom {
    padding-top: 17px
  }

  .account-identity strong {
    font-size: 16px
  }

  .account-identity>span {
    font-size: 11px
  }

  .avatar {
    width: 49px;
    height: 49px;
    font-size: 19px
  }

  .balance {
    font-size: 33px
  }

  .balance-label {
    font-size: 13px
  }

  .payment-card {
    height: auto;
    aspect-ratio: 1.92;
    padding: 22px
  }

  .card-holder {
    margin-top: 17px
  }

  .card-brand {
    font-size: 29px
  }

  .card-brand b {
    font-size: 23px
  }

  .home-footnote {
    margin-top: 35px;
    font-size: 10px
  }

  .footnote-brand {
    display: none
  }

  .bottom-nav a {
    font-size: 11px;
    padding: 15px 3px 17px
  }

  .bottom-nav a svg {
    width: 24px;
    height: 24px
  }

  .page-heading h1 {
    font-size: 30px
  }

  .detail-panel {
    padding: 22px
  }

  .transactions {
    padding: 0 15px
  }

  .transactions>div {
    gap: 10px
  }

  .transactions strong,
  .transactions b {
    font-size: 12px
  }

  .transactions small {
    font-size: 11px
  }

  .card-settings>div {
    font-size: 13px
  }
}

@media(max-width:380px) {
  main {
    padding-left: 20px;
    padding-right: 20px
  }

  .header-inner {
    padding-left: 20px;
    padding-right: 20px;
    gap: 14px
  }

  .greeting strong {
    font-size: 16px
  }

  .hero h2 {
    font-size: 21px
  }

  .hero-art {
    opacity: .45
  }

  .account-panel {
    padding: 18px
  }

  .account-top {
    gap: 10px
  }

  .account-identity strong {
    font-size: 14px
  }

  .account-identity>span {
    font-size: 10px
  }

  .payment-card {
    padding: 19px;
    min-height: 195px
  }

  .pills>span {
    font-size: 10px;
    padding: 7px 9px
  }

  .card-number {
    font-size: 14px
  }

  .demo-notice {
    font-size: 8px
  }

  .transactions b {
    font-size: 11px
  }
}

#recipient-dialog {
  max-height: calc(100dvh - 32px);
  overflow-y: auto
}

#recipient-dialog .transfer-form {
  margin-bottom: 0
}

#recipient-dialog input[readonly] {
  color: #6f716f;
  background: #f4f2ef
}

.recipient-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  margin: 0;
  padding: 18px;
  background: #faf7f4;
  border-radius: 12px;
  font-size: 13px
}

.recipient-details dt {
  color: #757575
}

.recipient-details dd {
  margin: 0;
  overflow-wrap: anywhere
}

#recipient-error {
  color: #af3618;
  font-size: 13px
}

#recipient-feedback {
  font-size: 13px;
  line-height: 1.6;
  margin: 0
}

.transfer-progress-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  margin: 25px 0 12px
}

#transfer-progress {
  display: block;
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #eee;
  accent-color: var(--orange)
}

#transfer-progress::-webkit-progress-bar {
  background: #eee;
  border-radius: 20px
}

#transfer-progress::-webkit-progress-value {
  background: var(--orange);
  border-radius: 20px
}

#transfer-progress::-moz-progress-bar {
  background: var(--orange);
  border-radius: 20px
}

.transfer-failed #transfer-phase,
.transfer-failed #transfer-percent {
  color: #b43b27
}

.transfer-failed #transfer-progress {
  accent-color: #b43b27
}

.transfer-failed #transfer-progress::-webkit-progress-value {
  background: #b43b27
}

.transfer-failed #transfer-progress::-moz-progress-bar {
  background: #b43b27
}

#transfer-summary {
  overflow-wrap: anywhere
}

#transfer-dialog {
  max-height: calc(100dvh - 32px);
  overflow: auto
}

/* Account screen: compact statement inspired by the reference. */
.account-view {
  max-width: 620px;
  margin: 0 auto
}

.account-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 270px;
  background: radial-gradient(ellipse at 88% 10%, #3d3d3d, transparent 44%), linear-gradient(145deg, #0c0c0c, #202020 44%, #050505 78%);
  color: #fff;
  text-align: center;
  padding: 25px 20px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center
}

.account-hero>*:not(.account-ribbon) {
  position: relative;
  z-index: 1
}

.account-ribbon {
  position: absolute;
  pointer-events: none;
  display: block;
  width: 130%;
  height: 210px;
  border-radius: 50%;
  background: linear-gradient(178deg, #ffffff04 55%, #ffffff1c 85%, #ffffff02);
  border-bottom: 1px solid #ffffff28;
  box-shadow: 0 9px 20px #0009, inset 0 -8px 12px #ffffff0b;
  transform: rotate(-27deg)
}

.ribbon-one {
  left: -45%;
  top: -117px
}

.ribbon-two {
  left: 4%;
  bottom: -118px;
  transform: rotate(-25deg);
  height: 250px;
  background: linear-gradient(178deg, #ffffff01 20%, #ffffff15 70%, #050505)
}

.account-demo-tag {
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #bdbdbd;
  margin-bottom: 10px
}

.account-logo {
  font-size: 37px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -6px;
  padding-right: 6px
}

.account-logo span {
  color: var(--orange)
}

.account-hero h2 {
  font-size: 25px;
  font-weight: 500;
  margin: 17px 0 5px;
  letter-spacing: .2px
}

.account-hero-balance {
  font-size: 31px;
  font-weight: 700;
  margin: 0 0 13px;
  letter-spacing: .4px;
  font-variant-numeric: tabular-nums
}

.account-reference {
  font-size: 9px;
  letter-spacing: .3px;
  color: #d0d0d0
}

.activity-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 21px 6px 13px
}

.activity-filter {
  padding: 8px 0;
  border: 0;
  background: none;
  color: #929292;
  font-size: 13px;
  text-align: left
}

.activity-filter[aria-pressed="true"] {
  color: #303331;
  font-weight: 600
}

.activity-list {
  display: grid;
  gap: 11px;
  margin: 0 6px
}

.activity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 13px;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  background: #fbfbfb;
  box-shadow: 0 1px 3px #00000004;
  min-width: 0
}

.merchant-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  border-radius: 9px;
  flex-shrink: 0;
  font-size: 25px;
  font-weight: 700;
  box-shadow: 0 2px 5px #00000012;
  letter-spacing: -2px
}

.merchant-icon svg {
  width: 21px;
  height: 21px
}

.merchant-coral {
  background: #fff;
  color: #ed3240
}

.merchant-coral span {
  font-size: 19px
}

.merchant-green {
  background: #078555;
  color: white
}

.merchant-blue {
  background: #4046bc;
  color: white;
  font-size: 23px
}

.merchant-neutral {
  background: white;
  color: #91938f
}

.merchant-atelier {
  background: white;
  color: #202329
}

.merchant-atelier span {
  color: var(--orange)
}

.merchant-amber {
  background: white;
  color: #333;
  border-bottom: 2px solid #eda046
}

.activity-description {
  flex: 1;
  min-width: 0
}

.activity-description h3 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 4px;
  overflow-wrap: anywhere
}

.activity-description p {
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
  color: #505450
}

.activity-amount {
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums
}

.activity-amount strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap
}

.activity-amount time {
  display: block;
  font-size: 10px;
  margin-top: 7px;
  color: #505450
}

.activity-amount .positive {
  color: #23a447
}

.activity-disclaimer {
  font-size: 10px;
  color: #929292;
  text-align: center;
  margin: 22px 0
}

.activity-empty {
  text-align: center;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 40px 20px;
  margin: 0 6px;
  color: #858785
}

.activity-empty svg {
  width: 32px;
  height: 32px
}

.activity-empty h2 {
  font-size: 16px;
  color: #303331;
  margin-top: 18px
}

.activity-empty p {
  font-size: 13px
}

@media(max-width:760px) {
  main:has(.account-view:not([hidden])) {
    padding: 12px 10px 110px
  }

  .account-hero {
    min-height: 215px;
    padding: 20px 14px 27px
  }

  .account-hero h2 {
    font-size: 23px;
    margin-top: 14px
  }

  .account-hero-balance {
    font-size: 29px
  }

  .activity-row {
    padding: 12px 10px;
    gap: 11px
  }

  .activity-switch {
    margin-top: 14px
  }

  .activity-filter {
    font-size: 12px
  }
}

@media(max-width:350px) {
  .activity-row {
    gap: 8px;
    padding: 12px 8px
  }

  .merchant-icon {
    width: 30px;
    height: 32px
  }

  .activity-description h3 {
    font-size: 11px
  }

  .activity-description p {
    font-size: 10px
  }

  .activity-amount strong {
    font-size: 11px
  }

  .activity-amount time {
    font-size: 9px
  }

  .account-reference {
    font-size: 8px
  }
}

/* Let content shrink to the viewport instead of expanding grid/flex tracks. */
main,
.view,
.overview-grid>section,
.header-inner>*,
.card-footer>*,
.profile>* {
  min-width: 0
}

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

.transfer-form {
  width: 100%;
  grid-template-columns: minmax(0, 1fr)
}

.transfer-form>* {
  min-width: 0;
  max-width: 100%
}

.transfer-form input,
.transfer-form select {
  min-width: 0;
  max-width: 100%
}

.recipient-details {
  grid-template-columns: minmax(0, auto) minmax(0, 1fr)
}

.recipient-details>*,
.card-settings>div>* {
  min-width: 0
}

.greeting,
.account-identity,
.page-heading,
.detail-panel,
.account-reference,
.activity-description,
.home-footnote,
dialog {
  overflow-wrap: anywhere
}

.brand,
.plan {
  flex-shrink: 0
}

.account-panel {
  height: auto;
  min-height: 237px
}

.account-bottom,
.card-footer,
.pills,
.card-settings>div,
.profile {
  flex-wrap: wrap
}

.account-bottom {
  gap: 14px
}

.payment-card {
  height: auto;
  min-height: 237px
}

.card-footer {
  row-gap: 12px;
  padding-top: 18px
}

.demo-card-label {
  margin-left: auto
}

.primary,
.secondary {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere
}

.primary {
  gap: 12px
}

.primary>span {
  flex-shrink: 0
}

.amount-input input {
  padding-right: 56px
}

.bottom-nav a {
  min-width: 0
}

.home-footnote {
  flex-wrap: wrap
}

.tiny-dot {
  flex-shrink: 0
}

.activity-list {
  grid-template-columns: minmax(0, 1fr)
}

.activity-amount {
  max-width: 48%
}

.activity-amount strong {
  white-space: normal;
  overflow-wrap: anywhere
}

.activity-switch {
  flex-wrap: wrap
}

.transfer-progress-heading>span {
  min-width: 0
}

#transfer-percent {
  flex-shrink: 0;
  white-space: nowrap
}

dialog {
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto
}

@media(max-width:760px) {
  .overview-grid {
    grid-template-columns: minmax(0, 1fr)
  }

  .header-inner {
    padding: 20px clamp(16px, 4vw, 28px);
    gap: 14px
  }

  .greeting {
    flex: 1
  }

  main {
    width: 100%;
    padding: 22px clamp(16px, 4vw, 28px) calc(115px + env(safe-area-inset-bottom, 0px))
  }

  main:has(.account-view:not([hidden])) {
    padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px))
  }

  .account-panel {
    min-height: 211px
  }

  .payment-card {
    aspect-ratio: auto;
    min-height: 215px
  }

  .detail-panel {
    padding: 20px
  }

  .transfer-form input,
  .transfer-form select {
    font-size: 16px
  }

  dialog {
    width: calc(100% - 24px);
    max-width: 460px;
    padding: 30px 20px 24px
  }

  dialog h2 {
    font-size: 24px;
    padding-right: 12px
  }

  .card-settings>div {
    align-items: flex-start
  }

  .card-settings>div>span {
    flex: 1 1 140px
  }
}

@media(max-width:380px) {
  .plan {
    padding: 8px 11px;
    font-size: 12px
  }

  .header-inner {
    gap: 10px
  }

  .hero {
    padding: 22px 16px
  }

  .hero-copy {
    width: 100%
  }

  .hero-art {
    display: none
  }

  .hero-link {
    flex-wrap: wrap
  }

  .account-panel {
    padding: 18px
  }

  .payment-card {
    padding: 19px
  }

  .recipient-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding: 14px
  }

  .recipient-details dd {
    margin-bottom: 8px
  }

  .profile {
    gap: 14px
  }
}