.account-stack {
  --account-ink: #262626;
  --account-muted: #6f6f6f;
  --account-line: #ededed;
  --account-soft: #eaf7fd;
  --account-warm: #fce9ee;
  gap: 12px;
}

.account-stack [hidden] {
  display: none !important;
}

.account-panel {
  min-width: 0;
  padding: 16px;
  border-color: var(--account-line);
  border-radius: 10px;
}

.account-intro h1 {
  color: var(--account-ink);
  font-size: 23px;
  font-weight: 550;
  letter-spacing: 0;
}

.account-intro .eyebrow {
  color: var(--account-muted);
}

.account-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.account-section-head h2,
.account-detail h2 {
  margin: 0;
  color: var(--account-ink);
  font-size: 1.125rem;
  line-height: 1.4;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px 6px;
  border: 0;
  border-radius: 10px;
  color: var(--account-ink);
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.account-row + .account-row {
  border-top: 1px solid var(--account-line);
}

.account-row:hover,
.account-row:focus-visible {
  background: #f5f7f1;
}

.account-row-copy {
  display: grid;
  flex: 1;
  gap: 4px;
  min-width: 0;
}

.account-row-copy strong {
  color: var(--account-ink);
  font-size: .95rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.account-row-copy small,
.account-date {
  color: var(--account-muted);
  font-size: .8rem;
  font-weight: 400;
}

.account-date,
.account-amount {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.account-chevron {
  display: grid;
  flex-shrink: 0;
  color: var(--account-muted);
}

.account-chip {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--account-soft);
  color: var(--account-ink);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.3;
}

.account-chip-warm,
.account-icon.account-icon-warm {
  background: var(--account-warm);
  color: #bd3352;
}

.account-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  background: var(--account-soft);
  color: var(--account-ink);
}

.account-form,
.account-detail {
  display: grid;
  align-content: start;
  gap: 18px;
}

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

.account-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--account-ink);
  font-size: .875rem;
  font-weight: 700;
}

.account-field :is(input, select) {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 9px;
  background: #fff;
  color: var(--account-ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}

.account-hint,
.account-body-copy {
  margin: 0;
  color: var(--account-muted);
  font-size: .88rem;
  line-height: 1.65;
}

.account-toggle-row + .account-hint {
  margin: 9px 6px 0;
}

.account-form-error {
  margin: 0;
  color: #a2352b;
  font-size: .86rem;
}

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

.account-actions > * {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.account-keys {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--account-line);
  border-radius: 13px;
  overflow: hidden;
}

.account-keys > div {
  display: grid;
  grid-template-columns: minmax(88px, .8fr) minmax(0, 1.2fr);
  gap: 10px;
  padding: 12px;
}

.account-keys > div + div {
  border-top: 1px solid var(--account-line);
}

.account-keys dt,
.account-keys dd {
  margin: 0;
  color: var(--account-muted);
  font-size: .86rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.account-keys dd {
  text-align: end;
  color: var(--account-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.account-result-head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.account-result-head p {
  margin: 4px 0 0;
  color: var(--account-muted);
  font-size: .86rem;
  line-height: 1.5;
}

.account-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 10px;
}

.account-filters button {
  min-height: 39px;
  padding: 7px 13px;
  border: 1px solid var(--account-line);
  border-radius: 9px;
  background: #fff;
  color: var(--account-muted);
  font: inherit;
  font-size: .83rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.account-filters button[aria-pressed="true"] {
  border-color: #227cc0;
  background: #227cc0;
  color: #fff;
}

.account-amount {
  color: var(--account-ink);
  font-size: .93rem;
  font-weight: 750;
}

.account-amount-credit {
  color: #20734c;
}

.account-empty {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 24px 8px;
  color: var(--account-ink);
  text-align: center;
}

.account-empty p {
  margin: 0;
  color: var(--account-muted);
  font-size: .85rem;
}

.account-receipt-head {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 4px 0 6px;
  text-align: center;
}

.account-receipt-head > strong {
  color: var(--account-ink);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.account-toggle-row {
  cursor: pointer;
}

.account-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 46px;
  margin: 0;
  border: 1px solid #67796e;
  border-radius: 999px;
  appearance: none;
  background: #737f75;
  cursor: pointer;
}

.account-switch::before {
  position: absolute;
  inset: 3px auto 3px 3px;
  width: 18px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 160ms ease;
}

.account-switch:checked {
  border-color: #2386cd;
  background: #2386cd;
}

.account-switch:checked::before {
  transform: translateX(20px);
}

.account-switch:focus-visible {
  outline: 2px solid #2386cd;
  outline-offset: 3px;
}

.account-danger.secondary-button {
  border-color: #e8c0b8;
  color: #994338;
}

.account-danger.secondary-button:hover {
  background: #faefeb;
}

@media (max-width: 420px) {
  .account-row {
    gap: 9px;
    padding-inline: 0;
  }

  .account-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 10px;
  }

  .account-date {
    font-size: .73rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-row,
  .account-switch::before {
    transition: none;
  }
}

#page:has(> .account-app-root) {
  width: 100%;
  padding: 0;
}

.account-app-root {
  color: #222;
  font-size: 15px;
  line-height: 1.45;
}

.account-screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.account-app-title {
  display: grid;
  place-items: center;
  height: 44px;
  background: #fff;
}

.account-app-title h1 {
  color: #262626;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
}

.account-app-inbox {
  padding: 10px;
}

.account-app-message {
  display: grid;
  align-items: start;
  grid-template-columns: 53px minmax(0, 1fr);
  gap: 5px;
  min-height: 94px;
  padding: 11px 15px 13px 12px;
  border-radius: 10px;
  background: #fff;
  color: #222;
}

.account-app-message-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-app-message-copy strong {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}

.account-app-message-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 6px;
  color: #8b8b8b;
  font-size: 12px;
  line-height: 1.4;
}

.account-app-message-meta time {
  color: #999;
  white-space: nowrap;
}

.account-app-message-summary {
  margin-top: 2px;
  font-size: 12px;
}

.account-app-bell {
  display: grid;
  place-items: center;
  width: 53px;
  height: 52px;
}

.account-app-bell:has(> svg) {
  width: 40px;
  height: 40px;
  margin: 5px 0 0 3px;
  border-radius: 50%;
  background: linear-gradient(130deg, #7af8f3, #11c5e5 70%, #69e4ee);
  color: #f4ffff;
}

.account-app-bell > img {
  width: 53px;
  height: auto;
}

.account-profile-root {
  position: relative;
  isolation: isolate;
  padding: 27px 10px 22px;
}

.account-profile-root::before {
  position: absolute;
  z-index: -2;
  inset: 0 0 auto;
  height: 93px;
  background: url("./assets/account-profile-header.webp") top / 100% 27px no-repeat, linear-gradient(180deg, #fc475f, #ee2355);
  border-radius: 0 0 50% 50% / 0 0 11% 11%;
  content: "";
}

.account-app-profile-card {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 25px;
  align-items: center;
  gap: 10px;
  min-height: 100px;
  padding: 10px 11px 10px 7px;
  border-radius: 10px;
  background: #fff;
  color: #222;
}

.account-app-profile-card > img {
  width: 60px;
  height: auto;
}

.account-app-profile-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding-left: 1px;
}

.account-app-profile-copy > strong {
  overflow: hidden;
  color: #242424;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-app-profile-copy > span {
  color: #999;
  font-size: 14px;
  line-height: 1.4;
}

.account-app-chevron {
  justify-self: end;
}

.account-app-links {
  display: grid;
  margin-top: 10px;
  padding: 0 10px;
  border-radius: 10px;
  background: #fff;
}

.account-app-links a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 50px;
  padding: 0 8px;
  color: #222;
  font-size: 16px;
}

.account-app-links a + a {
  border-top: 1px solid #f1f1f1;
}

.account-app-links img {
  width: 26px;
  height: auto;
}

.account-app-support {
  display: grid;
  justify-items: center;
  margin-top: 84px;
  color: #909090;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
}

@media (hover: hover) {
  .account-app-links a:hover,
  .account-app-profile-card:hover,
  .account-app-message:hover {
    box-shadow: inset 0 0 0 1px #ebebeb;
  }

  .account-app-support a:hover {
    color: #9e2847;
  }
}
