/* Norths: quiet typography, generous controls, and a phone-first workspace. */
:root { --ink: #203b33; --green: #153e35; --green-2: #28634e; --paper: #f5f4ef; --panel: #fffefa; --line: #e0e4dc; --muted: #6b776e; --gold: #947342; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { -webkit-font-smoothing: antialiased; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, a, input, select { touch-action: manipulation; }
button { transition: background .18s, box-shadow .18s, transform .18s; }
button:active { transform: translateY(1px); }
:focus-visible { outline: 3px solid #af8750; outline-offset: 4px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.eyebrow { font-size: 10px; letter-spacing: .14em; font-weight: 650; }
.primary { min-height: 50px; border-radius: 12px; font-size: 14px; font-weight: 650; }
.primary:hover { background: #245547; box-shadow: 0 5px 16px #163f3518; }
.secondary-action, .text-action { min-height: 44px; border-radius: 10px; font-weight: 600; }
input, select { min-height: 50px; border-radius: 10px; font-size: 16px; }
input::placeholder { color: #939c94; font-weight: 400; }
label { font-size: 12px; font-weight: 600; gap: 9px; }
.landing-width { width: min(1200px, calc(100% - 80px)); }
section.login-layout { background: var(--panel); }
.utility-bar { background: var(--green); }
.utility-bar .landing-width { min-height: 40px; }
.utility-bar a { display: flex; align-items: center; min-height: 40px; }
.language-select { min-height: 36px; border-radius: 8px; }
.bank-masthead { min-height: 100px; }
.wordmark { font-size: 30px; letter-spacing: -.8px; }
.brand-mark.small { border-radius: 10px; }
.wordmark-period { color: #b28d51; }
.signin-link { padding: 12px 18px; border: 1px solid var(--line); border-radius: 99px; }
.product-nav { border-top: 1px solid var(--line); min-height: 54px; font-size: 13px; }
.product-nav a { display: flex; align-items: center; min-height: 48px; }
.banking-stage { position: relative; border: 0; background: linear-gradient(90deg, #153e35f2 0%, #153e35c9 45%, #153e3550 100%), url('/bank-home.jpg') center / cover; }
.stage-inner { min-height: 570px; gap: 64px; padding-block: 52px; }
.bank-introduction { max-width: 570px; color: #fffaf0; }
.bank-introduction .eyebrow { color: #d3c49e; margin-bottom: 26px; }
.bank-introduction h1 { color: inherit; font-size: clamp(40px, 4.3vw, 62px); font-weight: 400; line-height: 1.1; letter-spacing: -1.8px; margin-bottom: 26px; }
.bank-introduction h1 em { color: #d9dbbc; font-weight: 400; }
.intro-copy { color: #e1e6dc; max-width: 365px; font-size: 14px; line-height: 1.8; }
.editorial-link { border-color: #bca573; font-size: 13px; margin-top: 8px; }
.login-layout .login-card { flex-basis: 370px; flex-shrink: 0; padding: 32px; gap: 20px; border: 1px solid #ffffff50; border-radius: 20px; background: #fffefa; box-shadow: 0 20px 60px #071f2920; scroll-margin-top: 24px; }
.login-card h2 { font-family: Georgia, serif; color: var(--green); font-size: 27px; font-weight: 400; letter-spacing: -.6px; }
.login-card .eyebrow { color: #758075; margin-bottom: 10px; }
.login-card input { border-radius: 10px; padding: 14px; background: #fff; }
.login-card .primary { border-radius: 10px; position: relative; }
.login-card .primary::after { content: '→'; position: absolute; right: 18px; font-size: 20px; top: 12px; }
.login-card .primary[aria-busy="true"]::after { content: ''; width: 16px; height: 16px; border: 2px solid #ffffff55; border-top-color: white; border-radius: 50%; animation: spin .8s linear infinite; top: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.password-field { display: flex; position: relative; }
.password-field input { padding-right: 52px; min-width: 0; }
.password-field button { position: absolute; inset: 3px 3px 3px auto; width: 46px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 8px; }
.password-field button[aria-pressed="true"] { color: var(--green); background: #edf2eb; }
.signin-help summary { min-height: 32px; padding-block: 7px; }
.login-card .fine-print { font-size: 11px; padding-top: 16px; text-align: center; }
.banking-services { padding-block: 64px; }
.section-heading h2 { font-size: 36px; font-weight: 400; letter-spacing: -.8px; }
.section-heading .eyebrow, .security-band .eyebrow { color: #8b744d; }
.product-list { margin-top: 38px; }
.product-list h3 { font-weight: 400; font-size: 24px; }
.product-number { letter-spacing: .08em; color: #8b744d; }
.product-list a { display: inline-flex; min-height: 44px; align-items: center; gap: 12px; }
.security-band { background: #eaf0e7; border: 0; padding-block: 40px; }
.security-band h2 { font-weight: 400; font-size: 28px; }
.bank-footer { padding-block: 32px; }

/* Account workspace */
.bank-view { grid-template-columns: 228px minmax(0, 1fr); }
.sidebar { padding: 36px 22px; background: #edf0e8; border-color: #dde3d7; }
.logo-row { gap: 10px; }
.logo-row strong { font: 700 23px Georgia, serif; letter-spacing: -.6px; }
.logo-row .brand-mark { background: var(--green); color: #fff; border: 0; font-family: Georgia, serif; }
.sidebar nav { margin-top: 34px; gap: 8px; }
.nav-item { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 14px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.nav-item.active { color: #fff; background: var(--green); box-shadow: 0 5px 12px #153e3510; }
.nav-item:hover:not(.active) { background: #e0e7da; }
.advisor { border: 0; border-top: 1px solid #d4dece; border-radius: 0; background: transparent; padding: 24px 0 0; font-size: 12px; line-height: 1.8; }
.advisor strong { font: 400 20px Georgia, serif; }
.workspace { min-width: 0; width: 100%; max-width: 1450px; margin-inline: auto; padding: 40px clamp(24px, 4vw, 64px); }
.topbar { gap: 14px; flex-direction: row; align-items: center; }
.topbar > div:first-child { margin-right: auto; min-width: 0; }
.topbar h2 { font: 400 30px Georgia, serif; letter-spacing: -.7px; margin: 0; }
.topbar .eyebrow { color: var(--muted); }
.topbar .session-chip { background: transparent; border: 0; padding: 0; font-size: 11px; white-space: nowrap; }
.session-chip::before { content: ''; display: inline-block; width: 6px; height: 6px; background: #48745a; border-radius: 50%; margin-right: 7px; }
.topbar .language-select { min-height: 40px; }
.topbar .secondary-action { background: transparent; min-height: 40px; font-size: 12px; }
.hero-balance { position: relative; isolation: isolate; overflow: hidden; padding: 36px; margin: 32px 0 28px; min-height: 250px; border: 0; border-radius: 22px; background: var(--green); color: #eef2df; flex-direction: row; align-items: flex-end; }
.hero-balance::after { content: ''; z-index: -1; position: absolute; width: 370px; height: 370px; border: 1px solid #ccdbb626; border-radius: 50%; right: -100px; top: -170px; box-shadow: 0 0 0 40px #ccdbb608, 0 0 0 80px #ccdbb606, 0 0 0 120px #ccdbb604; }
.hero-balance .eyebrow { color: #c5d2b8; margin-bottom: 18px; }
.balance { color: #fffbed; font-size: clamp(36px, 4.8vw, 66px); font-weight: 450; letter-spacing: -.055em; line-height: 1.1; font-variant-numeric: tabular-nums; margin-bottom: 24px; }
.account-details { display: flex; flex-wrap: wrap; gap: 8px 22px; color: #c6d2c2; font-size: 11px; margin: 0; }
.hero-balance .primary { background: #e6ebd2; color: var(--green); white-space: nowrap; padding-inline: 24px; }
.hero-balance .primary::before { content: '↗'; margin-right: 12px; font-size: 19px; }
.hero-balance .primary:hover { background: #fffbed; }
.grid { gap: 22px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.panel { min-width: 0; border: 1px solid #e3e6de; border-radius: 18px; padding: 26px; background: var(--panel); }
.panel h3 { font: 400 23px Georgia, serif; letter-spacing: -.4px; margin-bottom: 22px; }
.activity { gap: 0; }
.row { padding: 16px 0; font-size: 13px; line-height: 1.45; gap: 12px; }
.transaction { gap: 12px; }
.transaction-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 12px; background: #eff2e9; color: #44614d; font-size: 20px; }
.transaction-description { flex: 1; min-width: 0; }
.transaction-description > span { display: block; font-weight: 550; }
.transaction-description small { display: block; margin-top: 4px; color: #798277; font-size: 11px; }
.amount { font-size: 12px; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.amount.incoming { color: #2f7150; }
.cards { gap: 14px; }
.card-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 20px; border: 0; border-radius: 13px; background: #e9eddf; }
.card-row:nth-child(2) { background: #ede9df; }
.card-chip { width: 26px; height: 21px; border: 1px solid #9e9976; border-radius: 5px; background: linear-gradient(90deg, transparent 30%, #9e997650 31%, #9e997650 34%, transparent 35%, transparent 65%, #9e997650 66%, #9e997650 69%, transparent 70%); }
.card-row > span:not(.card-chip) { font-size: 12px; font-weight: 600; }
.card-row small { display: block; font-size: 10px; font-weight: 400; color: #717a68; margin-top: 5px; }
.card-row strong { grid-column: 2; font-size: 21px; font-weight: 450; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.section-row { margin: 36px 0 24px; }
.section-row h2 { font: 400 32px Georgia, serif; }
.managed-card { padding: 26px; border-radius: 18px; }
.managed-card strong { font-size: 25px; font-weight: 500; margin-block: 12px; }
.managed-card small { line-height: 1.6; }
.limit-list { font-size: 13px; }
.limit-list strong { text-align: right; }
.workspace-message { margin-top: 20px; }

/* Dialogs retain native focus management and become sheets on phones. */
dialog { width: min(720px, calc(100vw - 40px)); max-height: calc(100dvh - 48px); border-radius: 22px; overscroll-behavior: contain; }
dialog::backdrop { background: #0d261eb3; backdrop-filter: blur(5px); }
.dialog-card { padding: 32px; border: 0; border-radius: 22px; gap: 22px; }
.dialog-card h2 { font: 400 29px Georgia, serif; letter-spacing: -.5px; margin-bottom: 6px; }
.dialog-head { align-items: flex-start; }
.dialog-head .icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; }
.form-grid { gap: 20px 18px; }
.form-grid > label { min-width: 0; }
.form-grid input, .form-grid select { min-width: 0; }
.captcha-visual { border-radius: 14px; }
@media (max-width: 1150px) {
  .topbar .session-chip { display: none; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .hero-balance { flex-direction: column; align-items: flex-start; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-row { padding: 18px; }
}
@media (max-width: 900px) {
  .bank-view { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: contents; }
  .sidebar > .logo-row, .sidebar > .advisor { display: none; }
  .sidebar nav { position: fixed; z-index: 20; bottom: 0; left: 0; right: 0; margin: 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: #fffefaf5; backdrop-filter: blur(20px); border-top: 1px solid #dce2d5; box-shadow: 0 -6px 24px #12362405; }
  .nav-item { justify-content: center; flex-direction: column; gap: 5px; padding: 8px 4px; min-height: 57px; font-size: 11px; border-radius: 12px; }
  .nav-item.active { background: #e7eddf; color: var(--green); box-shadow: none; }
  .nav-item svg { width: 21px; height: 21px; }
  .workspace { padding: 28px 28px calc(110px + env(safe-area-inset-bottom)); }
  .stage-inner { gap: 28px; }
  .login-layout .login-card { flex-basis: 330px; padding: 28px; }
  .bank-introduction h1 { font-size: 44px; }
  .landing-width { width: calc(100% - 48px); }
  .hero-balance { flex-direction: row; align-items: flex-end; }
  .balance { font-size: 54px; }
}
@media (max-width: 620px) {
  .landing-width { width: calc(100% - 40px); }
  .utility-bar .landing-width { min-height: 38px; gap: 18px; font-size: 10px; }
  .utility-bar .landing-width > span { display: block; font-size: 10px; }
  .utility-bar a { display: none; }
  .utility-bar .language-select { min-height: 30px; width: 52px; min-width: 52px; border-color: #ffffff33; }
  .bank-masthead { min-height: 76px; }
  .wordmark { font-size: 26px; gap: 8px; }
  .wordmark .brand-mark { width: 31px; height: 34px; font-size: 20px; }
  .signin-link { font-size: 11px; padding: 11px 14px; }
  .product-nav { display: none; }
  .banking-stage { background: linear-gradient(180deg, #153e35e8, #153e35c7), url('/bank-home.jpg') center top / auto 360px no-repeat; background-color: var(--green); }
  .stage-inner { min-height: 0; padding-block: 28px 24px; gap: 24px; }
  .bank-introduction { padding: 0 4px; max-width: none; }
  .bank-introduction .eyebrow { font-size: 9px; letter-spacing: .14em; margin-bottom: 14px; }
  .bank-introduction h1 { font-size: clamp(32px, 8.5vw, 46px); line-height: 1.12; letter-spacing: -1.2px; margin: 0; }
  .bank-introduction .editorial-link { display: none; }
  .login-layout .login-card { flex-basis: auto; padding: 24px; gap: 17px; border-radius: 18px; box-shadow: 0 14px 35px #071f2926; }
  .login-card h2 { font-size: 25px; }
  .login-card .eyebrow { font-size: 9px; margin-bottom: 8px; }
  .login-card .fine-print { padding-top: 13px; }
  .banking-services { padding-block: 38px; }
  .section-heading h2 { font-size: 29px; max-width: 260px; margin-bottom: 0; }
  .product-list { grid-template-columns: 1fr; gap: 0; margin-top: 24px; }
  .product-list article, .product-list article:first-child, .product-list article:nth-child(3) { padding: 22px 0; border: 0; border-top: 1px solid var(--line); }
  .product-list h3 { font-size: 23px; margin: 10px 0 8px; }
  .product-list p { margin: 0; max-width: 330px; font-size: 13px; line-height: 1.6; }
  .product-list a { font-size: 12px; }
  .security-band { padding-block: 30px; }
  .security-band .landing-width { gap: 16px; }
  .security-band h2 { font-size: 27px; line-height: 1.15; }
  .bank-footer { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; font-size: 10px; }
  .workspace { padding: 26px 20px calc(106px + env(safe-area-inset-bottom)); }
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
  .topbar h2 { font-size: 25px; line-height: 1.15; }
  .topbar .eyebrow { font-size: 8px; letter-spacing: .1em; }
  .topbar .language-select { min-width: 48px; width: 48px; font-size: 11px; }
  .topbar .secondary-action { padding: 8px 10px; font-size: 11px; }
  .hero-balance { padding: 26px; margin: 26px 0 24px; min-height: 0; border-radius: 20px; flex-direction: column; align-items: stretch; gap: 25px; }
  .hero-balance .eyebrow { font-size: 9px; margin-bottom: 17px; }
  .balance { font-size: clamp(32px, 9vw, 52px); letter-spacing: -.05em; margin-bottom: 20px; }
  .account-details { gap: 7px; flex-direction: column; font-size: 10px; }
  .hero-balance .primary { width: 100%; min-height: 48px; }
  .panel { padding: 22px 18px; border-radius: 17px; }
  .panel h3 { font-size: 23px; margin-bottom: 12px; }
  .grid { gap: 20px; }
  .row { font-size: 12px; gap: 10px; padding: 15px 0; }
  .transaction-icon { width: 29px; height: 32px; flex-basis: 29px; border-radius: 10px; font-size: 17px; }
  .transaction-description > span { font-size: 12px; line-height: 1.5; }
  .transaction-description small { font-size: 10px; }
  .amount { font-size: 12px; letter-spacing: -.2px; }
  .cards { grid-template-columns: 1fr; }
  .card-row { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 11px; padding: 20px 16px; }
  .card-row > span:not(.card-chip) { font-size: 11px; }
  .card-row strong { grid-column: auto; font-size: 18px; }
  .section-row { margin-top: 28px; align-items: stretch; gap: 20px; }
  .section-row .primary, .section-row .secondary-action { width: 100%; }
  .managed-card { padding: 24px; align-items: stretch; gap: 22px; }
  .card-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .card-actions button { font-size: 12px; padding: 10px 8px; }
  .limit-list { font-size: 12px; }
  .limit-list span { font-size: 12px; }
  dialog { width: 100%; max-width: 100%; max-height: calc(100dvh - 20px); margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .dialog-card { padding: 28px 22px calc(28px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; gap: 22px; }
  .dialog-card::before { content: ''; width: 36px; height: 4px; border-radius: 4px; background: #cdd5ca; justify-self: center; margin-top: -15px; margin-bottom: -6px; }
  .dialog-card h2 { font-size: 27px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .captcha-visual.game-host { padding: 12px; }
  .game-grid.symbols { gap: 5px; }
  .game-grid.symbols button { min-width: 0; font-size: 24px; }
  .human-check label { padding: 14px 6px; font-size: 18px; }
}
@media (max-width: 359px) {
  .workspace { padding-inline: 14px; }
  .landing-width { width: calc(100% - 28px); }
  .topbar h2 { font-size: 22px; }
  .topbar { gap: 7px; }
  .hero-balance { padding: 22px; }
  .transaction-icon { display: none; }
  .card-row strong { font-size: 15px; }
  .login-layout .login-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
