:root {
  --ink: #17201c;
  --muted: #637067;
  --line: #d9dfd9;
  --paper: #f6f4ee;
  --panel: #fffefa;
  --green: #164b36;
  --green-2: #1f6f4b;
  --gold: #b48a34;
  --red: #9f352b;
  --blue: #243f78;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 430px);
  min-height: 100vh;
}

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 7vw, 92px);
  background:
    linear-gradient(135deg, rgba(22, 75, 54, 0.92), rgba(36, 63, 120, 0.82)),
    url("/vault.svg") center / cover;
  color: #fff;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
  font-size: 34px;
}

.brand-mark.small {
  width: 36px;
  height: 36px;
  border-color: var(--line);
  color: var(--green);
  background: #eef4ef;
  font-size: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-panel .eyebrow,
.brand-panel .lead {
  color: rgba(255, 255, 255, 0.78);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: 56px;
  line-height: 0.98;
  letter-spacing: 0;
}

/* Public banking pages are separate from the account workspace. */
section.login-layout { display: block; background: #fff; }
.landing-width { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.login-layout a { color: inherit; text-decoration: none; }
.login-layout a:hover { text-decoration: underline; text-underline-offset: 5px; }
.utility-bar { background: #173f35; color: white; font-size: 12px; }
.utility-bar .landing-width { display: flex; align-items: center; gap: 26px; min-height: 36px; }
.utility-bar span { margin-right: auto; }
.bank-masthead { display: flex; align-items: center; gap: 28px; min-height: 94px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-family: Georgia, serif; font-size: 31px; font-weight: bold; }
.wordmark-period { color: #a82d44; margin-left: -10px; }
.wordmark .brand-mark { background: #173f35; color: white; border: 0; font-family: Georgia, serif; }
.masthead-note { color: #66716c; font-size: 13px; border-left: 1px solid #d9dfd9; padding-left: 28px; }
.signin-link { margin-left: auto; color: #173f35 !important; font-weight: 700; font-size: 14px; }
.product-nav { display: flex; align-items: center; gap: 38px; min-height: 53px; font-size: 14px; font-weight: 600; }
.banking-stage { border-top: 1px solid #d9dfd9; background: linear-gradient(90deg, #f0f3f0f5, #f0f3f08a 55%, #f0f3f033), url('/bank-home.jpg') center 58% / cover; }
.stage-inner { display: flex; align-items: center; justify-content: space-between; gap: 44px; min-height: 480px; padding-block: 34px; }
.bank-introduction { max-width: 470px; padding: 24px 0; }
.bank-introduction .eyebrow { color: #173f35; }
.bank-introduction h1 { font-family: Georgia, serif; color: #173f35; font-size: 54px; line-height: 1.12; margin-bottom: 16px; }
.bank-tagline { font-family: Georgia, serif; font-size: 32px; line-height: 1.2; margin-bottom: 18px; }
.intro-copy { font-size: 15px; line-height: 1.7; max-width: 355px; }
.editorial-link { display: inline-block; font-size: 14px; font-weight: 700; padding-block: 10px; border-bottom: 2px solid #a82d44; }
.login-layout .login-card { flex: 0 0 330px; padding: 27px; gap: 13px; background: #fff; border: 1px solid #d9dfd9; border-top: 4px solid #173f35; box-shadow: 0 8px 24px #17201c12; }
.login-card h2 { font-size: 21px; margin-bottom: 4px; }
.login-card .eyebrow { color: #637067; font-size: 11px; }
.login-card input { border-radius: 2px; padding: 11px; }
.login-card .primary { border-radius: 2px; padding: 12px; }
.login-card .message { margin: 0; min-height: 0; font-size: 13px; }
.login-card .message:empty { display: none; }
.signin-help { font-size: 12px; color: #173f35; line-height: 1.5; }
.signin-help summary { cursor: pointer; }
.signin-help p { margin: 10px 0 0; }
.login-card .fine-print { border-top: 1px solid #e4e7e4; padding-top: 12px; margin-top: 0; font-size: 11px; line-height: 1.5; }
.banking-services { padding-block: 38px 44px; }
.section-heading .eyebrow { color: #8f3448; font-size: 11px; }
.section-heading h2 { font-family: Georgia, serif; font-size: 28px; }
.product-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; }
.product-list article { padding: 0 24px; border-left: 1px solid #d9dfd9; scroll-margin-top: 24px; }
.product-list article:first-child { padding-left: 0; border: 0; }
.product-number { font-size: 10px; color: #737b76; }
.product-list h3 { margin: 14px 0 10px; font-family: Georgia, serif; font-size: 21px; }
.product-list p { color: #637067; font-size: 13px; line-height: 1.65; min-height: 65px; }
.product-list a { color: #173f35; font-size: 12px; font-weight: 700; }
.security-band { background: #f0f3f4; border-block: 1px solid #e0e5e6; padding-block: 30px; }
.security-band .landing-width { display: flex; gap: 60px; align-items: center; }
.security-band h2 { font-family: Georgia, serif; font-size: 23px; margin: 0; }
.security-band .eyebrow { color: #8f3448; }
.security-band p:last-child { max-width: 480px; margin: 0; font-size: 13px; line-height: 1.7; color: #59655f; }
.bank-footer { display: flex; align-items: center; gap: 30px; padding-block: 28px; font-size: 11px; color: #637067; }
.bank-footer strong { font-family: Georgia, serif; font-size: 21px; color: #173f35; }
.bank-footer p { max-width: 570px; line-height: 1.6; margin: 0; }
.bank-footer > span { margin-left: auto; white-space: nowrap; }
@media (max-width: 900px) {
  .masthead-note { display: none; }
  .stage-inner { gap: 24px; }
  .bank-introduction h1 { font-size: 42px; }
  .bank-tagline { font-size: 27px; }
  .product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .product-list article:nth-child(3) { border: 0; padding-left: 0; }
  .security-band .landing-width { gap: 24px; }
}
@media (max-width: 620px) {
  .landing-width { width: calc(100% - 36px); }
  .utility-bar .landing-width { gap: 16px; font-size: 10px; }
  .bank-masthead { min-height: 76px; gap: 12px; }
  .wordmark { font-size: 26px; }
  .product-nav { gap: 10px; justify-content: space-between; font-size: 11px; min-height: 45px; }
  .stage-inner { flex-direction: column; align-items: stretch; padding-block: 24px; }
  .bank-introduction { padding: 0; }
  .bank-introduction h1 { font-size: 38px; margin-bottom: 10px; }
  .bank-tagline { font-size: 25px; }
  .intro-copy { display: none; }
  .login-layout .login-card { flex-basis: auto; padding: 22px; }
  .product-list article { padding-right: 12px; padding-left: 16px; }
  .product-list h3 { font-size: 19px; }
  .product-list p { min-height: 0; }
  .security-band .landing-width, .bank-footer { flex-direction: column; align-items: flex-start; gap: 18px; }
  .bank-footer > span { margin-left: 0; }
}

h2 {
  margin-bottom: 16px;
  font-size: 28px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 16px;
}

.lead {
  max-width: 670px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.lead.compact {
  font-size: 15px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.trust-row span,
.session-chip {
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  font-size: 13px;
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(28px, 5vw, 64px);
  background: var(--panel);
  border-left: 1px solid var(--line);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(31, 111, 75, 0.14);
}

.primary {
  border: 0;
  border-radius: 6px;
  padding: 14px 18px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.primary:disabled {
  cursor: wait;
  background: #88978d;
}

.message {
  min-height: 22px;
  color: var(--red);
  font-weight: 700;
}

.fine-print {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.hidden {
  display: none !important;
}

.bank-view {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 26px;
  border-right: 1px solid var(--line);
  background: #fffefa;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  border: 0;
  border-radius: 6px;
  padding: 12px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-weight: 800;
}

.nav-item.active,
.nav-item:hover {
  background: #eef4ef;
  color: var(--green);
}

.advisor {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8faf7;
}

.advisor span,
.advisor small {
  display: block;
  color: var(--muted);
}

.workspace {
  padding: clamp(24px, 4vw, 48px);
}

.workspace-message {
  display: none;
  margin: 0 0 14px;
  border: 1px solid #c7d9ca;
  border-radius: 6px;
  padding: 10px 12px;
  background: #f1f8f2;
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
}

.workspace-message.visible {
  display: block;
}

.topbar,
.hero-balance,
.dialog-head,
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar .session-chip,
.admin-header .session-chip {
  border-color: var(--line);
  background: #fff;
  color: var(--green);
}

.hero-balance {
  margin: 24px 0;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
}

.balance {
  margin-bottom: 8px;
  color: var(--green);
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 850;
  line-height: 1;
}

.grid,
.monitor-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fffefa;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0 18px;
}

.section-row h2 {
  margin: 0;
}

.activity,
.cards,
.events,
.session-list {
  display: grid;
  gap: 10px;
}

.row,
.card-row,
.event,
.session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.row:last-child,
.card-row:last-child,
.event:last-child,
.session-row:last-child {
  border-bottom: 0;
}

.amount {
  font-weight: 850;
}

.text-action,
.secondary-action {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--green);
  font-weight: 800;
}

.text-action {
  flex: 0 0 auto;
  padding: 8px 11px;
  font-size: 12px;
}

.secondary-action {
  padding: 10px 13px;
  font-size: 13px;
}

.text-action:hover,
.secondary-action:hover {
  border-color: #adc0b2;
  background: #eef4ef;
}

.limit-list {
  display: grid;
  gap: 12px;
}

.limit-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.limit-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.limit-list span,
.managed-card small {
  color: var(--muted);
  font-size: 13px;
}

.card-management {
  display: grid;
  gap: 14px;
}

.managed-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fffefa;
}

.managed-card span,
.managed-card strong,
.managed-card small {
  display: block;
}

.managed-card span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.managed-card strong {
  margin-bottom: 5px;
  color: var(--green);
  font-size: 20px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.vault-panel .row span {
  font-weight: 750;
}

dialog {
  width: min(820px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(8, 19, 15, 0.55);
}

.dialog-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fffefa;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wire-grid label:nth-child(3),
.wire-grid label:nth-child(5),
.wire-grid label:nth-child(11) {
  grid-column: 1 / -1;
}

.captcha-visual {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: monospace;
  display: grid;
  min-height: 132px;
  place-items: center;
  border: 1px dashed #bac4bc;
  border-radius: 8px;
  padding: 16px;
  background: #f8faf7;
  color: var(--green);
  font-weight: 850;
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ledger td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
}

.ledger tr:nth-child(3) {
  background: #fff2c7;
}

.meter {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #d9dfd9;
}

.meter span {
  display: block;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, var(--green-2), var(--gold), var(--red));
  transition: width 180ms ease;
}

.admin-body {
  background: #101714;
  color: #f4f7f2;
}

.admin-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px;
}

.admin-body .panel {
  border-color: #2a3a32;
  background: #17201c;
}

.admin-body .event,
.admin-body .session-row {
  border-color: #2a3a32;
}

.event {
  align-items: flex-start;
  font-size: 14px;
}

.event code,
.session-row code {
  color: #c7d7ff;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .login-layout,
  .bank-view,
  .grid,
  .monitor-grid {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: 46vh;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-item {
    text-align: center;
  }

  .hero-balance,
  .topbar,
  .admin-header,
  .section-row,
  .managed-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  nav {
    grid-template-columns: 1fr 1fr;
  }

  .workspace,
  .admin-shell {
    padding: 18px;
  }
}
