.bank-site {
  --bank-line: #dce6f1;
  --bank-control-height: 48px;
  min-height: 100vh;
  background: radial-gradient(ellipse at 92% 1%, #e2f3fb, transparent 46%), #f3f6fa;
}
.bank-site :is(a, button, summary) { touch-action: manipulation; }
.bank-site :is(a, button, input, textarea, summary):focus-visible { outline: 3px solid #1d6da1; outline-offset: 3px; }
.bank-site button:disabled { cursor: default; }
.bank-header { border-bottom-color: var(--bank-line); background: #ffffffed; }
.bank-header .header-inner { min-height: 68px; }
.bank-header .brand small { margin-top: 3px; }
.bank-header nav a { display: inline-flex; color: var(--action); }
.bank-header nav svg { width: 16px; height: 16px; }
.bank { max-width: 1120px; padding-block: clamp(28px, 5vw, 68px) 0; min-height: 74vh; }
.bank-login {
  --bank-inset: clamp(12px, 2vw, 36px);
  display: grid;
  min-height: 100svh;
  padding: var(--bank-inset);
  background: linear-gradient(145deg, #e5edf5, #cdd9e6 54%, #b9c9db);
}
.bank-login-card {
  grid-template-rows: auto 1fr;
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: clamp(16px, 1.8vw, 28px);
  background: #fff;
  box-shadow: 0 20px 52px #17224c26;
}
.bank-login .bank-header { background: #fff; }
.bank-login .header-inner { width: 100%; min-height: 67px; padding-inline: clamp(16px, 3vw, 56px); }
.bank-login .bank { display: grid; width: 100%; max-width: none; min-height: 0; padding: 0; }
.bank h1 { color: var(--navy); font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.058em; }
.bank h2 { color: var(--navy); font-size: clamp(1.45rem, 2.3vw, 1.85rem); line-height: 1.12; letter-spacing: -.038em; }
.bank .button { min-height: 48px; padding-inline: 17px; border-radius: 12px; }
.bank .button.secondary { border-color: #a9bfd6; }
.bank .button:active { transform: translateY(1px); }
.bank-dark { position: relative; isolation: isolate; overflow: hidden; color: white; background: linear-gradient(125deg, #17224c, #242a75 70%, #214579); }
.bank-dark::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: repeating-radial-gradient(ellipse at 95% 105%, transparent 0 30px, #9fdbf330 31px 32px, transparent 33px 55px);
  mask-image: linear-gradient(120deg, transparent 12%, black);
}
.bank-welcome {
  display: grid;
  grid-template-columns: minmax(0, 37fr) minmax(0, 63fr);
}
.bank-welcome-brand, .bank-welcome-content { padding: clamp(24px, 4vw, 72px); }
.bank-welcome-brand {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(18px, 3vh, 32px);
  background: radial-gradient(ellipse at 50% 42%, #3c8ec763, transparent 59%), linear-gradient(145deg, #151e48, #262974 66%, #195779);
}
.bank-welcome-summary { color: #e1edff; font-size: clamp(1.1rem, 2vw, 1.65rem); font-weight: 700; line-height: 1.25; text-align: center; }
.bank-welcome-summary small { display: block; max-width: 32ch; margin: .55rem auto 0; color: #cbdcf4; font-size: .94rem; font-weight: 450; line-height: 1.45; }
.bank-card-art { position: relative; width: min(100%, clamp(250px, 54vh, 460px)); aspect-ratio: 1.55; }
.bank-card-back, .bank-card-front { position: absolute; inset: 5%; border: 1px solid #b5e5ff77; border-radius: 17px; }
.bank-card-back { transform: rotate(-9deg) translate(-4%, -2%); background: #a4ddec24; }
.bank-card-front {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: space-between;
  align-items: start;
  padding: clamp(16px, 2.7vw, 28px);
  transform: rotate(6deg) translateX(3%);
  background: radial-gradient(ellipse at 100% 100%, #04badd87, transparent 62%), linear-gradient(130deg, #244784, #23509b 60%, #224080);
  box-shadow: 0 19px 42px #0b133d75;
}
.bank-card-chip { width: 31px; height: 23px; border: 1px solid #e7f5ffb0; border-radius: 6px; background: repeating-linear-gradient(90deg, #e7f5ff54 0 5px, #c1e0f5af 6px 8px); }
.bank-card-mark { color: #def7ff; }
.bank-card-name { align-self: end; font-size: clamp(.8rem, 2.2vw, 1.23rem); font-weight: 760; letter-spacing: .18em; }
.bank-card-name > span { display: block; margin-top: 3px; color: #e5f5ff; font-size: .54em; letter-spacing: .19em; }
.bank-card-dots { align-self: end; color: #d3f3ff; letter-spacing: .16em; }
.bank-welcome-content {
  display: grid;
  grid-template-columns: minmax(0, 40rem);
  align-content: start;
  justify-content: center;
  gap: 16px;
  padding-block-start: clamp(56px, 6.5vw, 112px);
  background: linear-gradient(145deg, #fff 55%, #f1f7fc);
}
.bank-welcome-content h1 { font-size: clamp(2rem, 3.6vw, 3.35rem); line-height: 1.08; letter-spacing: -.052em; text-wrap: balance; }
.bank-welcome-content .bank-lead { font-size: 1.08rem; }
.bank-lead { color: var(--muted); }
.bank-welcome-content form { margin-top: 8px; }
.bank-welcome-content form .button { width: 100%; min-height: 56px; justify-content: space-between; font-size: 1rem; }
.bank-sign-in-guide { margin-top: 10px; padding: clamp(14px, 2vw, 22px); border: 1px solid var(--bank-line); border-radius: 16px; background: linear-gradient(120deg, #f6f9fe, #eaf3fa); }
.bank .bank-sign-in-guide h2 { margin: 0 0 12px; font-size: 1rem; letter-spacing: 0; }
.bank-sign-in-guide ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.bank-sign-in-guide li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
.bank-sign-in-guide li strong { display: block; color: var(--navy); font-size: .92rem; }
.bank-sign-in-guide li p { color: var(--muted); font-size: .875rem; }
.bank-icon { display: inline-grid; flex: none; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: #eaf0fb; color: var(--action); }
.bank-icon svg { width: 20px; height: 20px; }
.bank-signed-in {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(12px, 2.5vw, 28px);
  height: 100dvh;
  min-height: 0;
  padding-bottom: clamp(12px, 2.5vw, 28px);
  overflow: hidden;
  background: #e8eff6;
}
.bank-signed-in .bank {
  max-width: 1200px;
  min-height: 0;
  padding: clamp(18px, 3vw, 38px);
  border: 1px solid #d5e2ee;
  border-radius: clamp(14px, 2vw, 24px);
  background: #f8fafd;
  box-shadow: 0 10px 35px #1a28560b;
  overflow: auto;
  scrollbar-gutter: stable;
}
.bank-signed-in #main:focus-visible { outline: 3px solid var(--focus); outline-offset: -4px; }
.bank-menu { border-top: 1px solid var(--bank-line); }
.bank-menu-inner { display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; }
.bank-menu nav { margin: 0; gap: 12px; }
.bank-menu nav a, .bank-menu button { padding-inline: 12px; }
.bank-menu nav a {
  display: inline-flex;
  min-height: 52px;
  border-bottom: 3px solid transparent;
  padding-top: 3px;
  color: var(--muted);
  transition: background-color .16s, color .16s;
}
.bank-menu nav a:hover, .bank-menu button:hover { background: #eaf0f8; color: var(--action); text-decoration: none; }
.bank-menu nav a[aria-current="page"] { border-color: var(--action); color: var(--action); font-weight: 760; }
.bank-menu nav a:focus-visible { outline-offset: -4px; }
.bank-menu button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--action);
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
}
.bank-menu svg { width: 18px; height: 18px; }
.bank-page-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 10px; margin-bottom: clamp(18px, 3vw, 28px); }
.bank .bank-page-heading h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.bank-page-heading h1 { overflow-wrap: anywhere; }
.bank-heading-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.bank-section-jump { display: none; }
.bank-columns { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(16px, 2.2vw, 26px); align-items: start; }
.bank-account-stack { display: grid; min-width: 0; gap: 25px; }
.bank-balance {
  display: grid;
  align-content: center;
  min-height: 170px;
  padding: clamp(22px, 3.4vw, 40px);
  border-radius: 20px;
  background: radial-gradient(ellipse at 96% 100%, #175777, transparent 72%), linear-gradient(115deg, #17224c 10%, #272d77);
}
.bank-balance::before {
  background: radial-gradient(circle at 93% 105%, transparent 0 4rem, #b2e8ff26 4rem 4.05rem, transparent 4.05rem 6rem, #b2e8ff24 6rem 6.05rem, transparent 6.05rem 8rem, #b2e8ff20 8rem 8.05rem, transparent 8.05rem);
  mask-image: linear-gradient(90deg, transparent 40%, black);
}
.bank .bank-balance h2 { color: #e5f5ff; font-size: .95rem; font-weight: 630; letter-spacing: 0; }
.bank-balance strong, .account-card strong { display: block; font-variant-numeric: tabular-nums; letter-spacing: -.045em; line-height: 1.08; overflow-wrap: anywhere; }
.bank-balance strong { margin-block: 8px; font-size: clamp(1.85rem, 6.8vw, 3.55rem); }
.bank-balance p { color: #daeaf9; font-size: .875rem; }
.bank .bank-section-title { margin-bottom: 12px; font-size: 1.18rem; letter-spacing: -.022em; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.account-card, .bank-panel { min-width: 0; padding: clamp(17px, 2.5vw, 27px); border: 1px solid var(--bank-line); border-radius: 18px; background: var(--paper); box-shadow: 0 8px 24px #1a285609; }
.account-card strong { margin-top: 19px; color: var(--navy); font-size: clamp(1.38rem, 3vw, 2rem); }
.bank-card-title { display: flex; align-items: center; gap: 10px; }
.bank-card-title h3 { color: var(--navy); font-size: .96rem; line-height: 1.25; overflow-wrap: anywhere; }
.bank-card-title p, .bank-label { color: var(--muted); font-size: .83rem; }
.bank-card-title p { margin-top: 3px; }
.bank-card-title > div { min-width: 0; }
.bank-full-number { display: block; color: var(--navy); font-variant-numeric: tabular-nums; font-weight: 710; }
.bank-text-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--action);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bank-text-action:hover { color: var(--focus); }
.bank-text-action svg { width: 16px; height: 16px; }
.account-card + .account-card .bank-icon { color: #00617b; background: #e4f3f8; }
.bank-label { display: block; margin-top: 4px; }
.bank .bank-panel-heading h2 { font-size: clamp(1.25rem, 2.5vw, 1.55rem); letter-spacing: -.032em; }
.bank-panel-heading p { margin-top: 6px; color: var(--muted); font-size: .88rem; }
.bank-rows { margin: 12px 0 0; }
.bank-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; padding-block: 13px; }
.bank-rows > div + div { border-top: 1px solid var(--bank-line); }
.bank-rows > div:last-child { padding-bottom: 0; }
.bank-rows dt { display: flex; align-items: center; min-width: 0; gap: 10px; color: var(--navy); font-size: .94rem; font-weight: 670; overflow-wrap: anywhere; }
.bank-rows dt small { display: block; color: var(--muted); font-size: .81rem; font-weight: 450; }
.bank-rows dd { flex: none; margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bank-rows .credit { color: #116552; }
.bank-icon.credit { background: #e3f4ee; }
.bank-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 5px;
  margin: 18px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--bank-line);
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
}
.bank-pagination a, .bank-pagination a:first-child { display: inline-flex; color: var(--action); font-size: inherit; }
.bank-pagination a[rel="prev"] { justify-self: start; }
.bank-pagination a[rel="next"] { justify-self: end; }
.bank-pagination svg { width: 15px; height: 15px; }
.bank-payee-rows { padding: 0; list-style: none; }
.bank-payee-rows li { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; padding-block: 10px; }
.bank-payee-rows li + li { border-top: 1px solid var(--bank-line); }
.bank-payee-identity { display: flex; align-items: center; min-width: 0; gap: 10px; font-weight: 670; overflow-wrap: anywhere; }
.bank-payee-identity small, .bank-directions small { display: block; color: var(--muted); font-size: .8rem; font-weight: 450; }
.bank-payee-rows .bank-text-action { flex: none; }
.bank-empty { display: flex; align-items: center; gap: 12px; margin-top: 17px; padding: 16px; border-radius: 12px; background: #f3f6fa; color: var(--muted); }
.bank-payee-setup { border-top: 3px solid var(--action); }
.bank-form { display: grid; gap: 16px; margin-top: 18px; }
.bank-form label { display: block; margin-bottom: 5px; color: var(--navy); font-weight: 680; font-size: .92rem; }
.bank-form input:not([type="radio"]) { width: 100%; min-height: 48px; padding: 9px 12px; border: 1px solid #91a8c2; border-radius: 10px; background: #fbfdff; color: var(--ink); font: inherit; }
.bank-directions { min-width: 0; border: 0; padding: 0; margin: 0; }
.bank-directions legend { padding: 0; margin-bottom: 6px; color: var(--navy); font-size: .92rem; font-weight: 680; }
.bank-directions > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: 8px; }
.bank-form .bank-directions label { display: flex; align-items: center; gap: 8px; padding: 9px; margin: 0; min-height: 48px; border: 1px solid #91a8c2; border-radius: 10px; cursor: pointer; }
.bank-directions label:has(:checked) { border-color: var(--action); background: #eaf0fb; }
.bank-directions label:has(:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.bank-directions input { appearance: none; flex: none; width: 16px; height: 16px; margin: 0; border: 1px solid var(--action); border-radius: 50%; background: var(--paper); }
.bank-directions input:checked { background: var(--action); box-shadow: inset 0 0 0 3px var(--paper); }
.bank-form p { margin-top: 5px; color: var(--muted); font-size: .83rem; }
.bank-form .button { justify-content: space-between; }
.bank-payee-notice { display: flex; align-items: center; gap: 9px; }
.bank-payee-notice svg { width: 20px; height: 20px; }
.bank .bank-payee-notice { margin: 0 0 16px; }
.bank-notice { margin-block: 8px; padding: 10px 12px; border: 1px solid #efd0ca; border-radius: 10px; background: #f9eae5; color: #7a3227; font-size: .9rem; }
.bank-notice-success { border-color: #bce6d8; background: #e5f6ef; color: #135847; }

.bank-chat-launcher {
  position: fixed;
  right: clamp(16px, 3vw, 38px);
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 10px 17px;
  border: 1px solid #65d7ec;
  border-radius: 30px;
  background: var(--action);
  box-shadow: 0 8px 26px #14265055;
  color: white;
  font-size: .9rem;
  font-weight: 740;
}
.bank-chat-launcher svg { width: 25px; height: 25px; color: #8cecff; }
.bank-chat-launcher:hover { background: var(--navy); }
.bank-signed-in .bank { padding-bottom: max(clamp(18px, 3vw, 38px), 76px); }
.bank-dialog {
  position: fixed;
  width: min(440px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--bank-line);
  border-radius: 21px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 22px 70px #12234c42;
}
.bank-dialog::backdrop { background: #10214488; }
.bank-dialog[open] { display: grid; }
.bank-dialog [hidden] { display: none; }
.bank-dialog-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--bank-line);
}
.bank-dialog-header h2 { color: var(--navy); font-size: 1.14rem; line-height: 1.2; }
.bank-dialog-header p { color: var(--muted); font-size: .84rem; }
.bank-dialog-close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-left: auto;
  border: 1px solid var(--bank-line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--action);
}
.bank-dialog-close:hover { background: var(--soft); }
.bank-chat {
  inset: auto clamp(12px, 3vw, 38px) max(14px, env(safe-area-inset-bottom)) auto;
  margin: 0;
  grid-template-rows: auto minmax(90px, 1fr) auto;
  width: min(660px, calc(100vw - 24px));
  height: min(730px, calc(100dvh - 28px));
  transform-origin: calc(100% - 114px) calc(100% - 28px);
}
.bank-chat::backdrop { background: #10214455; }
.bank-chat .bank-dialog-header { background: linear-gradient(120deg, #edf4ff, #ecfafd); }
.bank-chat-thread { padding: 18px; overflow: auto; background: #f6f8fc; }
.bank-chat-thread > p, .bank-chat-message { width: fit-content; max-width: min(100%, 62ch); margin-bottom: 10px; padding: 12px 16px; border: 1px solid var(--bank-line); border-radius: 4px 14px 14px; background: var(--paper); overflow-wrap: anywhere; }
.bank-chat-thread .bank-chat-user { max-width: min(100%, 52ch); margin-left: auto; border-radius: 14px 4px 14px 14px; background: #e5efff; white-space: pre-wrap; }
.bank-chat-message > * + * { margin-top: .65em; }
.bank-chat-message :is(h1, h2, h3, h4, h5, h6) { color: var(--navy); font-size: 1.05rem; }
.bank-chat-message :is(ul, ol) { padding-inline-start: 1.4em; }
.bank-chat-message li + li { margin-top: .3em; }
.bank-chat-message table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.bank-chat-message :is(th, td) { padding: .35em .6em; border-bottom: 1px solid var(--bank-line); text-align: start; }
.bank-chat-message pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.bank-chat-plain { white-space: pre-wrap; }
.bank-chat-approval { display: grid; gap: 6px; justify-items: start; margin-bottom: 10px; padding: 10px; border: 1px solid var(--bank-line); border-radius: 12px; background: var(--paper); }
.bank-chat-approval .button, .bank-poa-footer .button { min-height: 44px; }
.bank-chat-composer { padding: 12px 16px 16px; border-top: 1px solid var(--bank-line); }
.bank-chat-composer label { font-size: .86rem; font-weight: 700; }
.bank-chat-composer > div { display: grid; grid-template-columns: minmax(0, 1fr) 56px; align-items: stretch; gap: 9px; margin-top: 6px; }
.bank-chat-composer textarea { min-width: 0; height: 56px; padding: 8px 11px; resize: none; border: 1px solid #9fb3cb; border-radius: 10px; background: #f3f6fa; font: inherit; line-height: 1.25; }
.bank-chat-composer .button:disabled { opacity: .55; }
.bank-chat-feedback { margin-top: 5px; color: var(--muted); font-size: .85rem; }
.bank-chat-feedback:not([hidden]) { display: flex; align-items: center; gap: 8px; }
.bank-chat-composer:has(button:disabled) .bank-chat-feedback:not([hidden])::before,
.bank-nav-progress:not(:empty)::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  border: 2px solid var(--bank-line);
  border-top-color: var(--action);
  border-radius: 50%;
}
.bank-nav-progress:not(:empty) { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); }
.bank-menu .bank-nav-progress:not(:empty) { margin: 0 8px; font-size: .9rem; }
.bank-poa {
  inset: 0;
  margin: auto;
  width: min(740px, calc(100vw - 24px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 14px;
  background: #f2f5fa;
}
.bank-poa .bank-dialog-header { background: #060c2d; color: #fff; }
.bank-poa .bank-dialog-header h2 { color: #fff; font-size: clamp(1.2rem, 2.4vw, 1.65rem); }
.bank-poa .bank-dialog-header p { margin-bottom: 4px; color: #c7d6ee; }
.bank-poa .bank-dialog-header .bank-icon { color: #d5eaff; background: #182248; }
.bank-poa .bank-dialog-close { color: #fff; border-color: #8294b4; background: #182248; }
.bank-poa .bank-dialog-close:hover { background: #293d64; }
.bank-poa-body { padding: clamp(16px, 4vw, 24px); overflow: auto; }
.bank-poa-amount { display: grid; gap: 3px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--bank-line); border-radius: 8px; background: #fff; }
.bank-poa-amount span, .bank-poa-details dt, .bank-poa-note { color: var(--muted); font-size: .875rem; }
.bank-poa-amount strong { color: var(--navy); font-size: clamp(1.7rem, 5vw, 2.2rem); font-variant-numeric: tabular-nums; }
.bank-poa-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0; }
.bank-poa-details div:nth-child(n+3) { grid-column: 1 / -1; }
.bank-poa-details dd { margin: 2px 0 0; color: var(--navy); font-weight: 650; overflow-wrap: anywhere; }
.bank-poa-note { margin-top: 18px; }
.bank-poa-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--bank-line); }
.bank-poa-footer .button.primary { background: #10198b; min-height: var(--bank-control-height); border-radius: 8px; }
.bank-poa-footer .button.primary:hover { background: #070e67; }
.bank-verification { width: min(860px, calc(100vw - 24px)); grid-template-rows: auto minmax(0, 1fr) auto; }
.bank-verification-stage { min-height: 0; height: min(620px, calc(100dvh - 170px)); }
.bank-verification-stage iframe { display: block; width: 100%; height: 100%; border: 0; background: #edf3fa; }
.bank-verification-status { display: grid; justify-items: center; gap: 10px; padding: 28px 18px; text-align: center; }
.bank-verification-status strong { color: var(--navy); font-size: 1.38rem; }
.bank-verification-status p { color: var(--muted); }
.bank-verification-spinner, .bank-verification-check, .bank-verification-stop { display: grid; width: 55px; height: 55px; place-items: center; border-radius: 50%; }
.bank-verification-spinner { border: 3px solid var(--bank-line); border-top-color: var(--action); }
.bank-verification-check { background: #e0f6ed; color: #12624b; }
.bank-verification-stop { background: #f9eae5; color: #7a3227; }
.bank-verification-check svg, .bank-verification-stop svg { width: 29px; height: 29px; }
.bank-verification-footer { display: flex; justify-content: end; gap: 8px; padding: 8px 16px; }
.bank-verification-footer:not(:has(button:not([hidden]))) { display: none; }
.bank-verification-relay { display: grid; place-items: center; padding: 18px; text-align: center; }
.bank-verification-relay main { display: grid; justify-items: center; gap: 12px; width: min(100%, 520px); padding: clamp(24px, 5vw, 48px); border: 1px solid var(--bank-line); border-radius: 20px; background: var(--paper); }
.bank-verification-relay h1 { font-size: clamp(1.5rem, 5vw, 2.35rem); color: var(--navy); }
.bank-heading-note { margin-top: 8px; color: var(--muted); }
.bank-profile-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.bank-profile-card { display: flex; flex-direction: column; gap: 16px; }
.bank-profile-footer { margin-top: auto; }
.bank-profile-footer .bank-form { margin: 0; }
.bank-security-heading { display: flex; align-items: flex-start; gap: 12px; }
.bank-security-heading .bank-icon { flex: none; }
.bank-passkey-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bank-passkey-list details { overflow: hidden; border: 1px solid var(--bank-line); border-radius: 12px; }
.bank-passkey-list summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 10px 14px; color: var(--navy); cursor: pointer; }
.bank-passkey-list summary:focus-visible { outline-offset: -4px; }
.bank-passkey-list summary::-webkit-details-marker { display: none; }
.bank-passkey-list summary svg { width: 18px; height: 18px; }
.bank-passkey-list details[open] summary svg { transform: rotate(90deg); }
.bank-passkey-list summary small { display: block; color: var(--muted); }
.bank-passkey-actions { padding: 14px; border-top: 1px solid var(--bank-line); }
.bank-security-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bank-security-actions .button { justify-content: center; }
.bank-security-actions .bank-destructive { color: #8a2a32; border-color: #e2aeb2; background: #fff4f4; }
.bank-security-actions .bank-destructive:hover { background: #fce3e4; }
.bank-face-state { padding: 10px 14px; border: 1px solid var(--bank-line); border-radius: 12px; color: var(--navy); }
.bank-face-state p { color: var(--muted); font-size: .88rem; }

@media (min-width: 1440px) {
  .bank-signed-in .shell { width: min(100% - 104px, 1456px); max-width: none; }
  .bank-signed-in .bank { padding-bottom: 100px; }
  .bank-site { --bank-control-height: 54px; }
  .bank-signed-in .bank .button, .bank-menu nav a, .bank-menu button { min-height: var(--bank-control-height); }
  .bank-panel, .account-card { padding: 28px; }
  .bank-chat { width: min(800px, 52vw); height: min(840px, 87dvh); }
  .bank-chat-thread { padding: 24px; font-size: 1.08rem; }
  .bank-chat-composer { padding: 16px 24px 20px; }
  .bank-verification { width: min(1040px, calc(100vw - 48px)); }
  .bank-verification-stage { height: min(740px, calc(100dvh - 174px)); }
}

@keyframes bank-chat-open {
  from { opacity: 0; transform: translateY(10px) scale(.18); }
  to { opacity: 1; transform: none; }
}
@keyframes bank-verification-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: no-preference) {
  .bank-chat[open] { animation: bank-chat-open 320ms cubic-bezier(.2,.75,.25,1) both; }
  .bank-verification[open] { animation: dashboard-card-in 230ms ease-out both; }
  .bank-verification-spinner { animation: bank-verification-spin 820ms linear infinite; }
  .bank-nav-progress::before, .bank-chat-feedback::before { animation: bank-verification-spin 820ms linear infinite; }
}
@media (max-width: 700px) {
  .bank-welcome { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .bank-welcome-brand { grid-template-columns: minmax(0,1fr) 4rem; align-items: center; gap: 12px; padding: 16px 18px; }
  .bank-welcome-content { padding: 24px 18px; }
  .bank-card-art { grid-column: 2; grid-row: 1; }
  .bank-card-front { padding: 5px; }
  .bank-card-front .bank-card-chip { width: 12px; height: 9px; border-radius: 3px; }
  .bank-card-mark svg { width: 12px; height: 12px; }
  .bank-card-name, .bank-card-dots { display: none; }
  .bank-welcome-summary { grid-column: 1; grid-row: 1; justify-self: start; text-align: left; }
  .bank-welcome-summary small { margin-inline: 0; }
  .bank-login .header-inner { flex-wrap: nowrap; }
  .bank-login .brand { width: auto; }
}
@media (max-width: 800px) {
  .bank-columns { grid-template-columns: 1fr; }
  .bank-section-jump {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--action);
    font-size: .87rem;
    font-weight: 690;
    text-decoration: none;
  }
  .bank-section-jump:hover { text-decoration: underline; }
  .bank-section-jump svg { width: 16px; height: 16px; }
}
@media (max-width: 620px) {
  .bank-signed-in .shell { width: calc(100% - 32px); }
  .bank-signed-in .bank { scrollbar-gutter: auto; }
  .bank-signed-in .header-inner { gap: 0 14px; }
  .bank-signed-in .bank-utilities { margin-left: 0; gap: 14px; flex-wrap: wrap; }
  .bank-signed-in .bank-utilities a { min-height: 44px; font-size: .8rem; }
}
@media (max-width: 400px) {
  .bank-login .brand > span { display: none; }
}
@media (max-width: 440px) {
  .account-grid { grid-template-columns: 1fr; }
  .bank-header .brand { width: auto; }
  .bank-header .brand img { width: 112px; }
  .bank-header .brand > span { font-size: .91rem; }
  .bank-menu-inner { flex-wrap: wrap; gap: 0 6px; }
  .bank-menu nav { flex-wrap: wrap; gap: 4px; }
  .bank-menu nav a, .bank-menu button { padding-inline: 8px; font-size: .83rem; }
  .bank-menu nav svg { display: none; }
  .bank-payee-rows li { flex-wrap: wrap; }
}

@keyframes welcome-content-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes bank-shell-in {
  from { opacity: .55; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes welcome-art-settle {
  50% { transform: translateY(-7px); }
}
@keyframes welcome-card-in {
  0% { opacity: 0; transform: translate(-13%, 18%) rotate(-12deg) scale(.91); }
  70% { opacity: 1; transform: translate(5%, -4%) rotate(10deg) scale(1.035); }
  100% { opacity: 1; transform: rotate(6deg) translateX(3%); }
}
@keyframes welcome-card-back-in {
  from { opacity: 0; transform: translate(8%, 12%) rotate(4deg); }
  to { opacity: 1; transform: rotate(-9deg) translate(-4%, -2%); }
}
@keyframes welcome-pattern-in {
  from { opacity: .25; transform: translate(32px, 22px) scale(1.08); }
  to { opacity: 1; transform: translate(0) scale(1); }
}
@keyframes dashboard-card-in {
  from { opacity: 0; transform: translateY(11px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .bank-login-card { animation: bank-shell-in 450ms cubic-bezier(.22,.75,.25,1) both; }
  .bank-welcome-content { animation: welcome-content-in 390ms ease-out both; }
  .bank-welcome-brand::before { animation: welcome-pattern-in 950ms ease-out both; }
  .bank-card-art { animation: welcome-art-settle 2.6s ease-in-out 800ms; }
  .bank-card-back { animation: welcome-card-back-in 640ms ease-out both; }
  .bank-card-front { animation: welcome-card-in 780ms cubic-bezier(.22,.65,.28,1) 80ms both; }
  .bank-welcome-summary { animation: dashboard-card-in 440ms ease-out 210ms both; }
  .bank-sign-in-guide { animation: dashboard-card-in 450ms ease-out 150ms both; }
  .bank-balance, .bank-columns > .bank-panel { animation: dashboard-card-in 280ms ease-out both; }
  .account-card { animation: dashboard-card-in 300ms ease-out 50ms both; }
  .account-card + .account-card, .bank-columns > .bank-panel + .bank-panel { animation-delay: 85ms; }
}
