  :root {
    --rind: #5a1f1a;        /* deep wax-rind red */
    --rind-dark: #3d1411;
    --cheddar: #f2a541;
    --gold: #e8b64c;
    --cream: #fdf6e3;
    --butter: #fbecc4;
    --ink: #2a1f1a;
    --muted: #6e5d52;
    --line: #ead9b5;
    --green: #2f7a4d;
    --red: #b23a2e;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(61, 20, 17, .12);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { font-family: 'Inter', system-ui, sans-serif; color: var(--ink); background: var(--cream); line-height: 1.6; }
  h1, h2, h3, .serif { font-family: 'Playfair Display', Georgia, serif; }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
  section { padding: 90px 0; }
  .eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; color: var(--cheddar); }
  .section-title { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--rind); margin: 8px 0 14px; line-height: 1.15; }
  .lead { color: var(--muted); max-width: 680px; font-size: 1.08rem; }
  .btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 600; transition: transform .15s, box-shadow .15s; cursor: pointer; border: none; font-size: 1rem; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
  .btn-gold { background: var(--cheddar); color: var(--rind-dark); }
  .btn-ghost { border: 2px solid rgba(255,255,255,.6); color: #fff; }

  /* Top bar + nav */
  .topbar { background: var(--rind-dark); color: #f3dcc0; font-size: .82rem; }
  .topbar .wrap { display: flex; justify-content: space-between; padding: 8px 24px; gap: 16px; flex-wrap: wrap; }
  nav { background: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
  nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
  .logo { display: flex; align-items: center; gap: 12px; font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.45rem; color: var(--rind); }
  .logo svg { width: 42px; height: 42px; }
  .logo small { display: block; font-family: 'Inter'; font-size: .62rem; letter-spacing: .2em; color: var(--muted); font-weight: 600; }
  .nav-links { display: flex; gap: 28px; font-weight: 500; font-size: .95rem; }
  .nav-links a:hover { color: var(--cheddar); }
  @media (max-width: 900px) { .nav-links { display: none; } }

  /* Hero */
  .hero { background: radial-gradient(circle at 80% 20%, #7a2a22 0%, var(--rind) 45%, var(--rind-dark) 100%); color: #fff; padding: 110px 0 120px; position: relative; overflow: hidden; }
  .hero::after { content: ""; position: absolute; right: -120px; top: -60px; width: 560px; height: 560px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(242,165,65,.35), transparent 60%); }
  .hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
  .hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); line-height: 1.05; margin: 14px 0 22px; }
  .hero h1 em { color: var(--cheddar); font-style: italic; }
  .hero p { font-size: 1.15rem; color: #f3dcc0; max-width: 560px; margin-bottom: 34px; }
  .hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
  .badge-60 { width: 300px; height: 300px; margin: 0 auto; border-radius: 50%; background: var(--gold); color: var(--rind-dark); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 0 0 14px rgba(232,182,76,.25), 0 0 0 28px rgba(232,182,76,.1); position: relative; }
  .badge-60 .num { font-family: 'Playfair Display'; font-size: 6.5rem; font-weight: 800; line-height: 1; }
  .badge-60 .txt { font-weight: 700; letter-spacing: .15em; text-transform: uppercase; font-size: .85rem; }
  .badge-60 .hole { position: absolute; border-radius: 50%; background: rgba(90,31,26,.12); }
  @media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .badge-60 { width: 220px; height: 220px; } .badge-60 .num { font-size: 4.5rem; } }

  /* Stats */
  .stats { background: #fff; padding: 0; }
  .stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); transform: translateY(-50px); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 24px; }
  .stat { text-align: center; padding: 0 12px; border-right: 1px solid var(--line); }
  .stat:last-child { border-right: none; }
  .stat b { display: block; font-family: 'Playfair Display'; font-size: 2.3rem; color: var(--rind); }
  .stat span { color: var(--muted); font-size: .9rem; }
  @media (max-width: 700px) { .stats .wrap { grid-template-columns: 1fr 1fr; gap: 20px; } .stat { border: none; } }

  /* Services */
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 46px; }
  @media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
  .card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .2s, box-shadow .2s; }
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .card .icon { width: 54px; height: 54px; border-radius: 12px; background: var(--butter); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 18px; }
  .card h3 { color: var(--rind); font-size: 1.35rem; margin-bottom: 10px; }
  .card p { color: var(--muted); font-size: .96rem; }
  .card ul { margin-top: 14px; padding-left: 18px; color: var(--ink); font-size: .92rem; }
  .card li { margin: 4px 0; }

  /* Split segments */
  .segments { background: var(--butter); }
  .seg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
  @media (max-width: 900px) { .seg-grid { grid-template-columns: 1fr; } }
  .seg { border-radius: var(--radius); padding: 40px; color: #fff; position: relative; overflow: hidden; }
  .seg.mfg { background: linear-gradient(135deg, var(--rind), #8a3a2a); }
  .seg.retail { background: linear-gradient(135deg, #8a5a14, #c98a2a); }
  .seg h3 { font-size: 1.8rem; margin-bottom: 12px; }
  .seg p { opacity: .9; margin-bottom: 18px; }
  .seg .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
  .seg .kv div { background: rgba(255,255,255,.12); border-radius: 10px; padding: 14px; }
  .seg .kv b { display: block; font-size: 1.4rem; font-family: 'Playfair Display'; }
  .seg .kv span { font-size: .82rem; opacity: .85; }

  /* Timeline */
  .timeline { position: relative; margin-top: 50px; }
  .timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: var(--gold); transform: translateX(-50%); }
  .tl-item { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 34px; position: relative; }
  .tl-item::after { content: ""; position: absolute; left: 50%; top: 22px; width: 18px; height: 18px; border-radius: 50%; background: var(--cheddar); border: 4px solid var(--cream); transform: translateX(-50%); box-shadow: 0 0 0 3px var(--gold); }
  .tl-item .tl-card { background: #fff; padding: 22px 26px; border-radius: var(--radius); border: 1px solid var(--line); }
  .tl-item:nth-child(odd) .tl-card { grid-column: 1; text-align: right; }
  .tl-item:nth-child(even) .tl-card { grid-column: 2; }
  .tl-card .yr { font-family: 'Playfair Display'; font-size: 1.6rem; color: var(--cheddar); font-weight: 800; }
  .tl-card h4 { color: var(--rind); margin: 2px 0 6px; font-size: 1.05rem; }
  .tl-card p { color: var(--muted); font-size: .93rem; }
  @media (max-width: 800px) {
    .timeline::before { left: 10px; }
    .tl-item { grid-template-columns: 1fr; padding-left: 36px; }
    .tl-item::after { left: 10px; }
    .tl-item:nth-child(odd) .tl-card, .tl-item:nth-child(even) .tl-card { grid-column: 1; text-align: left; }
  }

  /* Rates */
  .rates { background: #fff; }
  table.rate { width: 100%; border-collapse: collapse; margin-top: 30px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
  table.rate th { background: var(--rind); color: #fff; text-align: left; padding: 16px 20px; font-weight: 600; font-size: .9rem; }
  table.rate td { padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: .95rem; }
  table.rate tr:nth-child(even) td { background: #fffaf0; }
  table.rate td.num { font-weight: 700; color: var(--green); }
  .cards-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
  @media (max-width: 900px) { .cards-row { grid-template-columns: 1fr 1fr; } }
  .cc { aspect-ratio: 1.586; border-radius: 16px; padding: 18px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); position: relative; overflow: hidden; }
  .cc::before { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.1); right: -40px; top: -40px; }
  .cc .cc-name { font-family: 'Playfair Display'; font-weight: 700; font-size: 1.05rem; }
  .cc .chip { width: 34px; height: 25px; border-radius: 5px; background: linear-gradient(135deg, #f6e27a, #c9a227); }
  .cc .cc-meta { font-size: .75rem; opacity: .9; }
  .cc.cheddar { background: linear-gradient(135deg, #e08e1e, #f2b34a); }
  .cc.gouda { background: linear-gradient(135deg, #b8860b, #e8c25a); color: #3d2a05; }
  .cc.parm { background: linear-gradient(135deg, #6c6c6c, #c4c4c4); }
  .cc.roq { background: linear-gradient(135deg, #111827, #2f3b52); }
  .cc.brie { background: linear-gradient(135deg, #9c7a5b, #d6bf9e); }

  /* Leadership */
  .leaders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; }
  @media (max-width: 900px) { .leaders { grid-template-columns: 1fr 1fr; } }
  .leader { text-align: center; }
  .avatar { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-family: 'Playfair Display'; font-size: 2.2rem; font-weight: 800; color: #fff; }
  .leader h4 { color: var(--rind); font-size: 1.05rem; }
  .leader span { color: var(--muted); font-size: .88rem; }

  /* Testimonials */
  .testi { background: var(--rind); color: #fff; }
  .testi .section-title { color: #fff; }
  .quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
  @media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
  .quote { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 28px; }
  .quote p { font-style: italic; color: #f3dcc0; margin-bottom: 16px; }
  .quote b { color: var(--cheddar); }
  .quote small { display: block; opacity: .75; }

  /* Customer accounts */
  .accounts { background: var(--cream); }
  .demo-note { background: var(--butter); border-left: 4px solid var(--cheddar); padding: 12px 18px; border-radius: 8px; margin-top: 20px; font-size: .9rem; color: var(--muted); }
  .cust-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 26px; }
  .cust-tab { background: #fff; border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; cursor: pointer; font-size: .88rem; font-weight: 500; font-family: inherit; color: var(--ink); transition: all .15s; }
  .cust-tab:hover { border-color: var(--cheddar); }
  .cust-tab.active { background: var(--rind); color: #fff; border-color: var(--rind); }
  .dash { background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
  .dash-head { background: linear-gradient(135deg, var(--rind), #7a2a22); color: #fff; padding: 30px 34px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
  .dash-head h3 { font-size: 1.9rem; }
  .dash-head .sub { color: #f3dcc0; font-size: .92rem; }
  .tier { display: inline-block; background: var(--cheddar); color: var(--rind-dark); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-top: 8px; }
  .networth { text-align: right; }
  .networth small { color: #f3dcc0; display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
  .networth b { font-family: 'Playfair Display'; font-size: 2.2rem; }
  .dash-body { padding: 30px 34px; display: grid; grid-template-columns: 260px 1fr; gap: 30px; }
  @media (max-width: 900px) { .dash-body { grid-template-columns: 1fr; } .dash-head { grid-template-columns: 1fr; } .networth { text-align: left; } }
  .score-box { text-align: center; background: #fffaf0; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
  .score-box h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 8px; }
  .score-box .rating { font-weight: 700; margin-top: 4px; }
  .profile { margin-top: 18px; font-size: .88rem; }
  .profile div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); gap: 10px; }
  .profile div span:first-child { color: var(--muted); }
  .profile div span:last-child { font-weight: 600; text-align: right; }
  .acct-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  @media (max-width: 700px) { .acct-grid { grid-template-columns: 1fr; } }
  .acct { border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
  .acct .type { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
  .acct .nm { font-weight: 600; margin: 2px 0 8px; }
  .acct .bal { font-family: 'Playfair Display'; font-size: 1.7rem; color: var(--rind); font-weight: 700; }
  .acct .meta { font-size: .8rem; color: var(--muted); }
  .sub-h { font-family: 'Playfair Display'; color: var(--rind); font-size: 1.2rem; margin: 26px 0 12px; }
  .cc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
  .cc-wrap .cc { aspect-ratio: auto; min-height: 140px; }
  .util { height: 6px; background: var(--line); border-radius: 4px; margin-top: 8px; overflow: hidden; }
  .util i { display: block; height: 100%; }
  .cc-info { font-size: .8rem; color: var(--muted); margin-top: 8px; display: flex; justify-content: space-between; }
  table.hold { width: 100%; border-collapse: collapse; font-size: .9rem; }
  table.hold th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); }
  table.hold td { padding: 10px; border-bottom: 1px solid var(--line); }
  table.hold td.r, table.hold th.r { text-align: right; }
  .pos { color: var(--green); font-weight: 600; }
  .neg { color: var(--red); font-weight: 600; }
  .empty { color: var(--muted); font-style: italic; font-size: .92rem; padding: 14px; background: #fffaf0; border-radius: 10px; }

  /* Overview table */
  .ov-wrap { overflow-x: auto; margin-top: 40px; }
  table.ov { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .88rem; min-width: 820px; }
  table.ov th { background: var(--rind-dark); color: #fff; padding: 12px 14px; text-align: left; font-weight: 600; }
  table.ov td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
  table.ov td.r, table.ov th.r { text-align: right; }
  table.ov tr { cursor: pointer; }
  table.ov tbody tr:hover td { background: var(--butter); }

  /* Branches / news */
  .branches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
  @media (max-width: 900px) { .branches { grid-template-columns: 1fr 1fr; } }
  .branch { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; font-size: .9rem; }
  .branch b { color: var(--rind); display: block; font-size: 1rem; }
  .branch span { color: var(--muted); }
  .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
  @media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }
  .news { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
  .news .img { height: 150px; display: grid; place-items: center; font-size: 3.5rem; }
  .news .body { padding: 22px; }
  .news .date { font-size: .78rem; color: var(--cheddar); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
  .news h4 { color: var(--rind); margin: 6px 0 8px; font-family: 'Playfair Display'; font-size: 1.15rem; }
  .news p { color: var(--muted); font-size: .9rem; }

  /* CTA + footer */
  .cta { background: linear-gradient(135deg, var(--cheddar), var(--gold)); text-align: center; padding: 70px 0; }
  .cta h2 { font-size: 2.4rem; color: var(--rind-dark); }
  .cta p { color: var(--rind); margin: 10px 0 26px; font-size: 1.1rem; }
  .cta .btn { background: var(--rind); color: #fff; }
  footer { background: var(--rind-dark); color: #d9c3a6; padding: 60px 0 30px; font-size: .9rem; }
  .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
  @media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
  footer h5 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
  footer li { list-style: none; margin: 6px 0; }
  footer a:hover { color: var(--cheddar); }
  .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .78rem; opacity: .75; }

/* Transaction history */
.txn-section { border-top: 1px solid var(--line); padding: 26px 34px 34px; }
.txn-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.txn-count { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.txn-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.txn-filters select, .txn-filters input { font: inherit; font-size: .84rem; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf7; color: var(--ink); }
.txn-filters input { width: 190px; }
.txn-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.txn-stats div { background: #fffaf0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.txn-stats span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.txn-stats b { font-size: 1.05rem; }
@media (max-width: 700px) { .txn-stats { grid-template-columns: 1fr 1fr; } }
.txn-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.txn { width: 100%; border-collapse: collapse; font-size: .8rem; line-height: 1.3; }
table.txn th { position: sticky; top: 0; background: var(--rind-dark); color: #fff; text-align: left; padding: 7px 10px; font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
table.txn td { padding: 5px 10px; border-bottom: 1px solid #f3e7cc; vertical-align: top; }
table.txn tbody tr:nth-child(even) td { background: #fffcf4; }
table.txn tbody tr:hover td { background: var(--butter); }
table.txn tr.pending td { color: var(--muted); font-style: italic; }
table.txn .r { text-align: right; }
table.txn .nowrap { white-space: nowrap; }
table.txn .muted { color: var(--muted); }
.txn-id { font-size: .68rem; color: #b5a48f; }
.cat { background: var(--butter); border-radius: 4px; padding: 1px 6px; font-size: .72rem; white-space: nowrap; }
.tag { background: #eee3cf; border-radius: 4px; padding: 0 5px; font-size: .66rem; font-style: normal; }
.txn-more { text-align: center; margin-top: 14px; }
@media (max-width: 900px) { .txn-section { padding: 20px; } }

/* Account-specific transactions */
.acct-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.acct-tabs .cust-tab { font-size: .82rem; padding: 7px 14px; }
[data-pick] { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.acct[data-pick]:hover { border-color: var(--cheddar); }
.acct.selected { border-color: var(--rind); box-shadow: 0 0 0 2px var(--rind) inset; }
.cc-wrap[data-pick] { border-radius: 16px; padding: 4px; border: 2px solid transparent; }
.cc-wrap.selected { border-color: var(--rind); }
.pick-hint { font-size: .72rem; color: var(--cheddar); font-weight: 600; margin-top: 4px; }

/* ---------- Richer homepage sections ---------- */
.ticker { background: #2a0f0c; color: #f3dcc0; overflow: hidden; white-space: nowrap; font-size: .8rem; border-bottom: 1px solid #4a1d17; }
.ticker-track { display: inline-flex; gap: 42px; padding: 7px 0; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker b { color: #fff; margin: 0 4px; }
.ticker i { font-style: normal; font-weight: 600; }
.ticker .up { color: #7fd39a; } .ticker .dn { color: #f08b7e; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

.awards { background: #fff; border-bottom: 1px solid var(--line); margin-top: -50px; padding: 26px 0; }
.awards .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; font-size: .84rem; color: var(--muted); }
.awards b { color: var(--rind); }
@media (max-width: 900px) { .awards .wrap { grid-template-columns: 1fr 1fr; } }

.finance { background: #fff; }
.fin-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; margin-top: 40px; align-items: start; }
@media (max-width: 900px) { .fin-grid { grid-template-columns: 1fr; } }
.fin-chart { background: #fffaf0; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.fin-chart h4 { color: var(--rind); font-family: 'Playfair Display', serif; margin-bottom: 10px; }
.fin-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fin-kpis div { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.fin-kpis b { display: block; font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--rind); }
.fin-kpis span { font-size: .84rem; color: var(--muted); }
.fin-kpis small { color: #b5a48f; }

.visit { background: var(--butter); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; } }
.addr-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 24px; margin-top: 26px; }
.addr-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.addr-row:last-child { border-bottom: none; }
.addr-row > span { font-size: 1.3rem; }
.addr-row b { color: var(--rind); }
.addr-row small { color: var(--muted); }
.visit-perks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.visit-perks span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .84rem; }
.map-card { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; }
.map-card svg { display: block; width: 100%; height: auto; }

.community { background: #fff; }
.impact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
@media (max-width: 800px) { .impact { grid-template-columns: 1fr 1fr; } }
.impact div { background: var(--rind); color: #fff; border-radius: var(--radius); padding: 22px; text-align: center; }
.impact b { display: block; font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--cheddar); }
.impact span { font-size: .85rem; color: #f3dcc0; }

.faq-list { margin-top: 30px; display: grid; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--rind); }
.faq details p { color: var(--muted); margin-top: 10px; font-size: .95rem; }

/* Homepage online-banking promo (no member data on public pages) */
.online-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: center; }
@media (max-width: 900px) { .online-grid { grid-template-columns: 1fr; } }
.online-list { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.online-list li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: .95rem; }
.online-preview { background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.op-head { background: var(--rind); color: #fff; display: flex; justify-content: space-between; padding: 14px 20px; font-family: 'Playfair Display', serif; font-weight: 700; }
.op-head span:last-child { color: var(--cheddar); letter-spacing: 3px; }
.op-row { display: flex; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); color: var(--muted); }
.op-row b { color: #c9b89e; letter-spacing: 2px; filter: blur(1.5px); }
.op-lock { padding: 18px; text-align: center; font-weight: 600; color: var(--rind); background: var(--butter); }

/* Income & spending panel + transaction memos */
.inc-panel { border: 1px solid var(--line); border-radius: 14px; background: #fffaf0; padding: 18px 20px; margin-bottom: 22px; }
.inc-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.inc-top div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.inc-top span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.inc-top b { display: block; font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--rind); }
.inc-top b i { font-style: normal; font-size: .8rem; color: var(--muted); font-family: 'Inter', sans-serif; }
.inc-top small { color: var(--muted); font-size: .75rem; }
.inc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
.inc-body h5 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.inc-legend { display: flex; gap: 14px; font-size: .72rem; color: var(--muted); margin-top: 4px; }
.inc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.cat-row { display: grid; grid-template-columns: 120px 1fr 42px 80px; gap: 8px; align-items: center; font-size: .8rem; padding: 3px 0; }
.cat-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.cat-bar i { display: block; height: 100%; background: var(--cheddar); }
.cat-row b { text-align: right; color: var(--rind); }
.cat-row small { text-align: right; color: var(--muted); }
@media (max-width: 900px) { .inc-top { grid-template-columns: 1fr 1fr; } .inc-body { grid-template-columns: 1fr; } }
.txn-memo { font-size: .72rem; color: var(--muted); margin-top: 1px; }

/* ---------- Account page: loans, holdings, score history, transfers, statements ---------- */
.head-figs { display: flex; gap: 34px; }
.head-figs .networth b { font-size: 1.8rem; }
@media (max-width: 900px) { .head-figs { gap: 22px; flex-wrap: wrap; } }
.score-hist { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.score-chg { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.score-chg b { margin-left: 4px; }
.acct[data-jump] { cursor: pointer; } .acct[data-jump]:hover { border-color: var(--cheddar); }
.loan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.loan { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fffdf8; }
.loan:hover { border-color: var(--cheddar); }
.loan.selected { border-color: var(--rind); box-shadow: 0 0 0 2px var(--rind) inset; }
.loan .type { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.loan .nm { font-weight: 600; margin: 2px 0 6px; }
.loan .bal { font-family: 'Playfair Display'; font-size: 1.5rem; color: var(--rind); font-weight: 700; }
.loan .meta { font-size: .8rem; color: var(--muted); }
.loan-rows { margin-top: 10px; font-size: .8rem; }
.loan-rows div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px dotted var(--line); }
.loan-rows span { color: var(--muted); }
.loan-rows b { text-align: right; } .loan-rows small { color: var(--muted); font-weight: 400; }
.loan-col { font-size: .74rem; color: var(--muted); margin-top: 8px; }

.dash-tools { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; padding: 0 34px 10px; }
@media (max-width: 900px) { .dash-tools { grid-template-columns: 1fr; padding: 0 20px 10px; } }
.tool { border: 1px solid var(--line); border-radius: 14px; padding: 6px 20px 18px; background: #fffaf0; }
.xfer { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
@media (max-width: 600px) { .xfer { grid-template-columns: 1fr; } }
.xfer label, .stmt-pick { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); }
.xfer label small { font-weight: 400; }
.xfer select, .xfer input, .stmt-pick select { display: block; width: 100%; margin-top: 4px; font: inherit; font-size: .88rem; color: var(--ink); padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.xfer .amt { position: relative; } .xfer .amt span { position: absolute; left: 10px; top: 50%; transform: translateY(-40%); color: var(--muted); }
.xfer .amt input { padding-left: 22px; }
.xfer-hint { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); min-height: 1px; }
.xfer-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.xfer-msg { font-size: .86rem; } .xfer-msg.ok { color: #2f7a4d; font-weight: 600; } .xfer-msg.err { color: #b23a2e; font-weight: 600; }
.xfer-foot { font-size: .76rem; color: var(--muted); margin-top: 12px; }
.linkish { background: none; border: none; padding: 0; color: var(--rind); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.btn-rind { background: var(--rind); color: #fff; padding: 10px 22px; font-size: .9rem; }
.btn-plain { background: #fff; color: var(--rind); border: 1px solid var(--line); padding: 10px 22px; font-size: .9rem; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.stmt-list { list-style: none; margin-top: 12px; }
.stmt-list li { display: flex; justify-content: space-between; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: .88rem; }
.stmt-list a { color: var(--rind); font-weight: 600; }

#inv { padding: 0 34px 10px; }
@media (max-width: 900px) { #inv { padding: 0 20px 10px; } }
.alloc { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; }
.alloc-top { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 10px; }
.alloc-top span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.alloc-top b { font-size: 1.2rem; }
.alloc-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin-bottom: 8px; }
.inv-acct { margin-bottom: 18px; }
.inv-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px 2px; font-size: .92rem; }
table.hold small { color: var(--muted); }

.idle-modal { position: fixed; inset: 0; background: rgba(42,31,26,.55); display: grid; place-items: center; z-index: 100; }
.idle-modal > div { background: #fff; border-radius: 16px; padding: 28px 30px; max-width: 380px; box-shadow: var(--shadow); text-align: center; }
.idle-modal h3 { color: var(--rind); margin-bottom: 8px; }
.idle-modal p { color: var(--muted); margin-bottom: 18px; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  .dash-head { padding: 22px 20px; } .dash-body { padding: 20px; }
  .head-figs .networth b { font-size: 1.4rem; }
  .txn-filters input { width: 100%; }
  .txn-filters { width: 100%; }
  .welcome h1 { font-size: 1.7rem !important; }
  nav .user-pill span { display: none; }
}

/* ---------- Public pages: business, rates, careers, contact, help ---------- */
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-login { padding: 10px 20px !important; font-size: .9rem !important; }
.nav-links a.here { color: var(--rind); box-shadow: 0 2px 0 var(--cheddar); }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 10px 9px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--rind); border-radius: 2px; }
@media (max-width: 900px) {
  .menu-btn { display: flex; }
  nav.open .nav-links { display: flex; flex-direction: column; gap: 0; position: absolute; top: 74px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 24px 16px; }
  nav.open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) { .nav-login { padding: 8px 12px !important; font-size: .8rem !important; } .logo { font-size: 1.15rem; } .logo small { display: none; } .topbar .wrap span:last-child { display: none; } }
.page-hero { background: radial-gradient(circle at 85% 10%, #7a2a22 0%, var(--rind) 45%, var(--rind-dark) 100%); color: #fff; padding: 80px 0 100px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.1; margin: 12px 0 18px; max-width: 860px; }
.page-hero h1 em { color: var(--cheddar); }
.page-hero p { color: #f3dcc0; font-size: 1.1rem; max-width: 680px; }
.page-hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.page-hero + section:not(.stats) { padding-top: 60px; }
.txn-table-wrap:has(> table.rate) { margin-top: 26px; border: none; border-radius: var(--radius); box-shadow: var(--shadow); }
.txn-table-wrap > table.rate { margin-top: 0; box-shadow: none; min-width: 640px; }
.fine { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.feature-list div { border-left: 3px solid var(--cheddar); padding: 4px 0 4px 16px; }
.feature-list b { color: var(--rind); display: block; margin-bottom: 4px; }
.feature-list p { color: var(--muted); font-size: .93rem; }
@media (max-width: 900px) { .feature-list { grid-template-columns: 1fr; } }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.steps li { counter-increment: s; background: var(--cream); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--rind); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps b { display: block; color: var(--rind); margin-bottom: 6px; } .steps span { color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.cd-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 16px; }
.cd-grid div { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.cd-grid div.hot { background: var(--butter); border-color: var(--cheddar); }
.cd-grid span { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }
.cd-grid b { display: block; font-family: 'Playfair Display'; font-size: 2rem; color: var(--rind); }
.cd-grid small { color: var(--muted); }
@media (max-width: 900px) { .cd-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .cards-row { grid-template-columns: 1fr; } .seg-grid { grid-template-columns: 1fr; } }
.job-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.jobs { display: grid; gap: 14px; }
.job { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.job h4 { color: var(--rind); font-size: 1.08rem; } .job p { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.job-meta { display: flex; gap: 16px; align-items: center; flex-shrink: 0; font-size: .86rem; color: var(--muted); }
@media (max-width: 800px) { .job { flex-direction: column; align-items: flex-start; } .job-meta { flex-wrap: wrap; } }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form, .contact-done { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; margin-top: 26px; }
.contact-form h3, .contact-done h3 { color: var(--rind); margin-bottom: 10px; }
.contact-form label { display: block; font-weight: 600; font-size: .86rem; margin: 14px 0 0; }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fffdf7; }
.contact-form button { margin-top: 20px; }
.help-search { display: block; width: 100%; max-width: 620px; margin-top: 26px; padding: 16px 20px; border-radius: 999px; border: none; font: inherit; font-size: 1.05rem; box-shadow: var(--shadow); }
.help-list { display: grid; gap: 34px; max-width: 900px; }
.help-group h3 { color: var(--rind); font-size: 1.5rem; margin-bottom: 12px; }
.help-group details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; margin-bottom: 10px; }
.help-group summary { cursor: pointer; font-weight: 600; }
.help-group details p { color: var(--muted); margin-top: 8px; font-size: .95rem; }
.help-group a { color: var(--rind); font-weight: 600; }
[hidden] { display: none !important; }
@media (max-width: 520px) { .logo, .nav-login { white-space: nowrap; } .logo svg { width: 34px; height: 34px; } nav .wrap { gap: 8px; } }
@media (max-width: 420px) { nav .wrap { padding: 0 14px; } .logo { font-size: 1rem; gap: 8px; } .logo svg { width: 30px; height: 30px; } .nav-login { padding: 7px 10px !important; } .menu-btn { width: 38px; height: 38px; } .nav-right { gap: 8px; } }

/* Market ticker (delayed quotes from /api/quotes) */
.ticker { display: flex; align-items: stretch; }
.ticker-label { flex-shrink: 0; background: var(--rind); color: #fff; font-weight: 700; padding: 7px 14px; z-index: 1; box-shadow: 6px 0 10px rgba(0,0,0,.25); }
.ticker-label small { font-weight: 500; color: #f3dcc0; margin-left: 6px; }
.ticker-view { overflow: hidden; flex: 1; }
.ticker-track span { white-space: nowrap; }
@media (max-width: 600px) { .ticker-label small { display: none; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { color: var(--red); font-weight: 600; font-size: .88rem; margin-top: 12px; }

/* ---------- Accessibility ---------- */
.eyebrow, .pick-hint { color: #9a5408; }   /* 5:1 on cream; cheddar stays on dark backgrounds */
.hero .eyebrow, .page-hero .eyebrow, .login-side .eyebrow, .testi .eyebrow, .seg .eyebrow, .dash-head .eyebrow { color: var(--cheddar); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--rind); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 10px; font-weight: 600; }
.skip:focus { top: 0; }
:focus-visible { outline: 3px solid #1f6feb; outline-offset: 2px; border-radius: 4px; }
main:focus, [tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ticker { display: flex; align-items: stretch; padding: 0; }
.ticker-view { flex: 1; overflow: hidden; }
.ticker-track .dup { display: inline-flex; gap: 42px; }
.ticker-track.paused, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-pause { flex-shrink: 0; background: var(--rind); color: #fff; border: 0; padding: 0 14px; cursor: pointer; font-size: .75rem; }
.ticker-pause:hover { background: #7a2a22; }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: ticker 48s linear infinite; } .ticker-track.paused { animation-play-state: paused; } }

/* ---------- Card controls ---------- */
.cc-wrap { position: relative; }
.lock-badge { display: none; position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(0,0,0,.72); color: #fff; font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.cc-wrap.locked .lock-badge { display: block; }
.cc-wrap.locked .cc { filter: grayscale(.85) brightness(.85); }
.ctl-card { border-bottom: 1px dashed var(--line); padding: 10px 0 12px; }
.ctl-card:last-of-type { border-bottom: 0; }
.ctl-name { font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.switch { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; cursor: pointer; font-size: .86rem; }
.switch small { display: block; color: var(--muted); font-size: .76rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .sw { flex-shrink: 0; width: 40px; height: 22px; border-radius: 22px; background: #cdbfa8; position: relative; transition: background .15s; margin-top: 2px; }
.switch .sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.switch input:checked + .sw { background: var(--green); }
.switch input[data-field="locked"]:checked + .sw { background: var(--red); }
.switch input:checked + .sw::after { transform: translateX(18px); }
.switch input:focus-visible + .sw { outline: 3px solid #1f6feb; outline-offset: 2px; }
.ctl-msg { font-size: .78rem; font-weight: 600; }
.ctl-msg.ok { color: var(--green); } .ctl-msg.err { color: var(--red); }

/* ---------- Alerts ---------- */
.alert-set { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: .84rem; font-weight: 600; }
.alert-set .amt { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 8px; margin-top: 4px; }
.alert-set .amt input { border: 0; padding: 8px 4px; width: 100%; font: inherit; font-weight: 500; background: transparent; }
.alert-set .chk { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.alert-set .xfer-actions { grid-column: 1 / -1; }
.alert-list { list-style: none; max-height: 320px; overflow: auto; border-top: 1px solid var(--line); margin-top: 8px; }
.alert-list li { display: flex; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: .84rem; }
.alert-list li small { display: block; color: var(--muted); font-size: .74rem; }
.alert-list li.warn { background: #fdf0ec; }
.alert-list li.soon { background: #fff6dc; }
.bell { position: relative; font-size: 1.2rem; padding: 4px 6px; }
.bell b { position: absolute; top: -4px; right: -8px; background: var(--red); color: #fff; font-size: .66rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
@media (max-width: 520px) { .alert-set { grid-template-columns: 1fr; } }

/* ---------- Loading states ---------- */
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; margin-right: 8px; }
.spin.dark { border-color: rgba(90,31,26,.2); border-top-color: var(--rind); }
.spin.big { width: 28px; height: 28px; border-width: 3px; display: block; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2s; } }
.switch input:disabled + .sw { opacity: .5; }
.empty[role="status"] { text-align: center; padding: 40px 20px; }

/* ---------- Account page: fixed account list + one account's activity ---------- */
.act-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 26px; align-items: start; }
.act-nav { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.act-nav h5 { text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; color: var(--muted); margin: 14px 8px 6px; }
.act-nav a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; padding: 9px 10px; border-radius: 10px; font-size: .84rem; border-left: 3px solid transparent; }
.act-nav a span { font-weight: 600; line-height: 1.3; }
.act-nav a b { font-size: .84rem; white-space: nowrap; }
.act-nav a small { grid-column: 2; text-align: right; color: var(--muted); font-size: .68rem; margin-top: -4px; }
.act-nav a:hover { background: var(--butter); }
.act-nav a.here { background: #fbeee9; border-left-color: var(--rind); color: var(--rind); }
.act-nav a.going { opacity: .6; }
.act-nav a .spin { position: absolute; margin-left: -22px; }
.act-nav a.act-home { display: block; font-weight: 600; color: var(--rind); border-left: 0; padding: 6px 10px; }
.act-main { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.act-main > :not(.act-head) { margin-left: 26px; margin-right: 26px; }
.act-main > .txn-more { margin-bottom: 22px; }
.act-head { background: linear-gradient(135deg, var(--rind), #7a2a22); color: #fff; padding: 26px; display: grid; grid-template-columns: 1fr auto; gap: 18px 30px; margin-bottom: 18px; }
.act-head .type { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--cheddar); font-weight: 700; }
.act-head h2 { font-size: 1.6rem; margin: 4px 0 8px; }
.act-bal { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; line-height: 1; }
.act-bal small { display: block; font-family: 'Inter', sans-serif; font-size: .78rem; font-weight: 500; color: #f3dcc0; margin-top: 6px; }
.act-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; align-content: center; font-size: .84rem; }
.act-facts span { display: block; color: #f3dcc0; font-size: .74rem; }
.act-actions { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.act-actions .btn { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); padding: 8px 16px; font-size: .84rem; }
.act-actions .btn:hover { background: rgba(255,255,255,.22); }
.lock-tag { color: #fff; background: rgba(0,0,0,.35); padding: 1px 8px; border-radius: 10px; letter-spacing: 0; text-transform: none; }
@media (max-width: 900px) {
  .act-layout { grid-template-columns: 1fr; gap: 16px; }
  /* phones and tablets: the account list becomes a bar fixed to the top of the screen that scrolls sideways */
  .act-nav { top: 0; z-index: 20; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding: 8px; border-radius: 0 0 12px 12px; margin: 0 -24px; }
  .act-nav h5 { display: none; }
  .act-nav a { flex-shrink: 0; grid-template-columns: auto; border-left: 0; border-bottom: 3px solid transparent; padding: 6px 10px; }
  .act-nav a.here { border-bottom-color: var(--rind); }
  .act-nav a small { display: none; }
  .act-nav a .spin { position: static; margin: 0 0 4px; }
  .act-head { grid-template-columns: 1fr; padding: 20px; }
  .act-main > :not(.act-head) { margin-left: 14px; margin-right: 14px; }
}
.act-nav a { position: relative; } .act-nav a.going b { visibility: hidden; } .act-nav a .spin, .act-nav a .spin { position: absolute; right: 10px; top: 50%; margin: -7px 0 0; }
@media (max-width: 900px) { .act-nav a .spin { right: 50%; margin-right: -7px; } .act-nav a.going span { visibility: hidden; } }
section.act-main { padding: 0; }
.act-nav { top: 90px; max-height: calc(100vh - 106px); z-index: 10; }
@media (max-width: 900px) { .act-nav { top: var(--nav-h, 74px); max-height: none; } }
.tool, #inv, .act-main { scroll-margin-top: 90px; }   /* clear the sticky header when jumping to a section */

/* ---------- Breadcrumb + transaction details ---------- */
.act-crumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; margin: -6px 0 16px; color: var(--muted); }
.act-crumbs a { font-weight: 700; color: var(--rind); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; box-shadow: 0 2px 6px rgba(61,20,17,.06); }
.act-crumbs a:hover { border-color: var(--rind); }
.txn-row { cursor: pointer; }
.txn-row:hover td { background: #fff6e3; }
.txn-open { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; font-weight: 600; }
.txn-row:hover .txn-open { text-decoration: underline; color: var(--rind); }
.txn-dialog { border: 0; padding: 0; border-radius: 18px; width: min(480px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: 0 24px 60px rgba(42,15,12,.35); color: var(--ink); }
.txn-dialog::backdrop { background: rgba(42,31,26,.55); }
.txn-dialog[open] { animation: dlgIn .18s ease-out; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .txn-dialog[open] { animation: none; } }
.dlg-head { position: relative; padding: 24px 26px 20px; background: linear-gradient(135deg, var(--rind), #7a2a22); color: #fff; }
.dlg-head h3 { font-size: 1.15rem; line-height: 1.3; margin: 6px 40px 10px 0; word-break: break-word; }
.dlg-kind { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: #f3dcc0; font-weight: 700; }
.dlg-kind .tag { text-transform: none; letter-spacing: 0; }
.tag.ok { background: #e3f3e8; color: var(--green); }
.dlg-amt { font-family: 'Playfair Display', serif; font-size: 2.1rem; font-weight: 700; line-height: 1.1; }
.dlg-head.in .dlg-amt { color: #9be3b2; }
.dlg-date { color: #f3dcc0; font-size: .86rem; margin-top: 4px; }
.dlg-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.12); color: #fff; font-size: .95rem; cursor: pointer; }
.dlg-close:hover { background: rgba(255,255,255,.25); }
.dlg-rows { padding: 8px 26px; margin: 0; }
.dlg-rows div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.dlg-rows div:last-child { border-bottom: 0; }
.dlg-rows dt { color: var(--muted); }
.dlg-rows dd { margin: 0; font-weight: 500; word-break: break-word; }
.dlg-rows code { font-size: .82rem; background: var(--butter); padding: 1px 6px; border-radius: 4px; }
.dlg-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 26px 22px; border-top: 1px solid var(--line); background: #fffaf0; }
.dlg-actions .btn { padding: 8px 16px; font-size: .86rem; }
.dlg-steps { display: flex; gap: 6px; }
.dlg-steps button:disabled { opacity: .4; cursor: default; }
@media (max-width: 520px) { .dlg-rows div { grid-template-columns: 1fr; gap: 2px; } .dlg-head, .dlg-rows, .dlg-actions { padding-left: 18px; padding-right: 18px; } }
.txn-dialog { margin: auto; }   /* the global reset removes the browser's centering */

/* ---------- Site polish: header shadow, back to top, reveal on scroll ---------- */
body > nav { transition: box-shadow .2s; }
body > nav.scrolled { box-shadow: 0 6px 18px rgba(61,20,17,.10); }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--rind); color: #fff; font-size: 1.2rem; box-shadow: var(--shadow); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #7a2a22; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media print { .to-top { display: none; } }

/* ---------- Online banking polish: day groups, category icons, recent activity ---------- */
table.txn tr.day-row th { position: static; background: #fbf3e2; color: var(--rind); text-transform: none; letter-spacing: 0; font-size: .78rem; font-weight: 700; padding: 8px 10px; border-top: 1px solid var(--line); }
.txn-desc { display: flex; gap: 10px; align-items: flex-start; }
.cat-ic { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--butter); display: grid; place-items: center; font-size: .9rem; }
.stmt-list { max-height: 292px; overflow-y: auto; }
.recent-list { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.recent-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; color: inherit; text-align: left; cursor: pointer; }
.recent-list li:last-child .recent-item { border-bottom: 0; }
.recent-item:hover { background: #fff6e3; }
.ri-main { flex: 1; min-width: 0; }
.ri-main b { display: block; font-size: .84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ri-main small { color: var(--muted); font-size: .74rem; }
.ri-amt { font-weight: 700; font-size: .88rem; white-space: nowrap; }
.ri-amt.pos { color: var(--green); }
.recent-all { display: inline-block; margin: 8px 2px 4px; font-size: .84rem; font-weight: 600; color: var(--rind); }
table.txn tbody tr:nth-child(even) td { background: transparent; }   /* day headings replace the zebra stripes */
table.txn tbody tr.txn-row:hover td { background: #fff6e3; }
@media (max-width: 640px) {
  /* phones: just the description and amount; tap a row for everything else */
  .act-main table.txn th:nth-child(2), .act-main table.txn td:nth-child(2),
  .act-main table.txn th:nth-child(3), .act-main table.txn td:nth-child(3),
  .act-main table.txn th:nth-child(5), .act-main table.txn td:nth-child(5) { display: none; }
  .act-main table.txn tr.day-row th { display: table-cell; }
  .act-main .txn-memo { display: none; }
  .act-main .txn-table-wrap { overflow-x: visible; }
}

/* ---------- Account list: a bar fixed under the site header, on every screen size ---------- */
.act-layout { grid-template-columns: 1fr; gap: 18px; }
.act-nav { position: sticky; top: 75px; z-index: 20; max-height: none; display: flex; align-items: stretch; gap: 6px; overflow-x: auto; padding: 8px; margin: 0; border-radius: 14px; scrollbar-width: thin; }
.act-nav h5 { display: flex; align-items: center; margin: 0 2px 0 10px; padding-left: 12px; border-left: 1px solid var(--line); writing-mode: horizontal-tb; white-space: nowrap; font-size: .64rem; }
.act-nav h5:first-child { margin-left: 4px; padding-left: 0; border-left: 0; }
.act-nav a { flex-shrink: 0; display: grid; grid-template-columns: auto; gap: 1px; min-width: 150px; padding: 8px 14px; border-left: 0; border-bottom: 3px solid transparent; border-radius: 10px; }
.act-nav a span { white-space: nowrap; font-size: .82rem; }
.act-nav a b { font-size: .9rem; }
.act-nav a small { grid-column: auto; text-align: left; margin: 0; }
.act-nav a.here { background: #fbeee9; border-bottom-color: var(--rind); }
.act-nav a .spin { right: 10px; margin: -7px 0 0; }
.act-nav a.going span, .act-nav a.going b { visibility: hidden; }
.act-main { scroll-margin-top: 170px; }
@media (max-width: 900px) {
  .act-nav { margin: 0 -24px; border-radius: 0 0 12px 12px; }
  .act-nav h5 { display: none; }
  .act-nav a { min-width: 0; padding: 6px 10px; }
  .act-nav a small { display: none; }
}
.act-crumbs { position: static; z-index: auto; background: none; border: 0; box-shadow: none; }   /* a <nav>, but not the site header */
/* "Account summary" sits at the start of the fixed account bar */
.act-nav a.act-home { display: flex; align-items: center; min-width: 0; padding: 8px 14px; background: var(--rind); color: #fff; border-bottom: 0; font-weight: 700; }
.act-nav a.act-home span { font-weight: 700; }
.act-nav a.act-home:hover { background: #7a2a22; }
.act-nav a.act-home + h5 { margin-left: 6px; padding-left: 10px; border-left: 0; }
@media (max-width: 900px) { .act-nav a.act-home { padding: 6px 12px; } }

/* ---------- More polish: quick actions, toasts, tile hover, 404 ---------- */
.dash-head .eyebrow { display: block; margin-bottom: 4px; }
.quick { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 34px; background: #fffaf0; border-bottom: 1px solid var(--line); }
.quick a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--rind); font-weight: 600; font-size: .88rem; transition: border-color .15s, box-shadow .15s, transform .15s; }
.quick a span { font-size: 1rem; }
.quick a:hover { border-color: var(--cheddar); box-shadow: 0 4px 12px rgba(61,20,17,.08); transform: translateY(-1px); }
@media (max-width: 700px) { .quick { padding: 12px 16px; flex-wrap: nowrap; overflow-x: auto; } .quick a { flex-shrink: 0; } }
.tool { scroll-margin-top: 95px; border-radius: 14px; }
.tool.flash { animation: flash 1.4s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--cheddar); } 100% { box-shadow: 0 0 0 3px transparent; } }
.acct, .cc-wrap, .loan { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.acct[role=link]:hover, .acct[role=button]:hover, .cc-wrap:hover, .loan[role=link]:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(61,20,17,.10); }
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--rind-dark); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: .9rem; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: toast-in .25s ease; transition: opacity .35s, transform .35s; }
.toast span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #2f7a4d; font-size: .8rem; font-weight: 700; }
.toast.err span { background: #b23a2e; }
.toast.bye { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
.reveal { transition-duration: .45s; }
.nf { padding: 90px 0 110px; text-align: center; }
.nf .wrap { max-width: 640px; }
.nf-cheese { font-size: 4.5rem; line-height: 1; margin-bottom: 18px; animation: nf-bob 3s ease-in-out infinite; }
@keyframes nf-bob { 50% { transform: translateY(-8px) rotate(-6deg); } }
.nf h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--rind); margin: 10px 0 16px; line-height: 1.15; }
.nf h1 em { color: var(--cheddar); }
.nf p { color: var(--muted); font-size: 1.05rem; }
.nf-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 28px 0 22px; }
.nf-links { list-style: none; display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; padding: 0; margin: 0 0 22px; }
.nf-links a { color: var(--rind); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .nf-cheese, .tool.flash, .toast { animation: none; } .quick a, .acct, .cc-wrap, .loan { transition: none; } }

/* ---------- Shorter summary: tools, investments and spending share one tabbed panel ---------- */
.dash-body { padding: 26px 34px; gap: 26px; }
.hub { margin: 0 34px 30px; border: 1px solid var(--line); border-radius: 14px; background: #fffaf0; overflow: hidden; scroll-margin-top: 90px; }
.hub-tabs { display: flex; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.hub-tabs [role=tab] { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 14px 18px 12px; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-size: .88rem; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.hub-tabs [role=tab]:hover { color: var(--rind); background: #fffaf0; }
.hub-tabs [role=tab][aria-selected=true] { color: var(--rind); border-bottom-color: var(--rind); background: #fffaf0; }
.hub .tool, .hub #inv { border: 0; border-radius: 0; background: none; padding: 20px 22px 22px; margin: 0; }
.hub .tool:focus { outline: none; }
.hub .tool:focus-visible { box-shadow: inset 0 0 0 2px var(--cheddar); }
.hub .inc-panel { margin-bottom: 0; }
.hub .xfer-box, .hub .stmt-box { max-width: 760px; }
.hub .ctl-box { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 24px; }
.hub .ctl-box > .xfer-foot { grid-column: 1 / -1; }
.hub .alert-box { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 6px 28px; align-items: start; }
.hub .alert-box > .alert-list { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
@media (max-width: 900px) {
  .hub { margin: 0 0 20px; border-radius: 0; border-left: 0; border-right: 0; }
  .hub .tool, .hub #inv { padding: 16px; }
  .hub .alert-box { grid-template-columns: 1fr; } .hub .alert-box > .alert-list { grid-column: auto; grid-row: auto; }
  .dash-body { padding: 20px; }
}
@media (max-width: 600px) {
  .hub #recent { padding: 0 0 10px; }
  .hub #recent .recent-list { border: 0; border-radius: 0; }
  .hub #recent .recent-all { margin-left: 14px; }
  .recent-item { gap: 10px; padding: 10px 12px; align-items: flex-start; }
  .recent-item .cat-ic { margin-top: 2px; }
  .ri-main b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .ri-main small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ri-amt { padding-top: 1px; }
}

/* Account bar: each group's label sits above its accounts; "Account summary" moved to the top header */
.act-nav { align-items: flex-start; gap: 0; padding: 8px 6px; }
.act-group { flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; padding: 0 10px; border-left: 1px solid var(--line); }
.act-group:first-child { border-left: 0; }
.act-nav .act-group h5 { display: block; margin: 0; padding: 2px 4px 0; border: 0; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.act-links { display: flex; gap: 6px; }
@media (max-width: 900px) {
  .act-group { padding: 0 6px; }
  .act-nav .act-group h5 { display: block; font-size: .6rem; }
}

/* ---------- Charts: balance over time, spending donut, tile sparklines ---------- */
.act-charts { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; margin: 0 0 22px; }
.act-charts:has(.donut-card[hidden]) { grid-template-columns: 1fr; }
.chart-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 10px; box-shadow: 0 2px 10px rgba(61,20,17,.04); min-width: 0; }
.chart-card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.chart-card figcaption b { color: var(--rind); font-family: 'Playfair Display', serif; font-size: 1.05rem; }
.chart-card figcaption span { color: var(--muted); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.bal-svg { display: block; width: 100%; height: auto; touch-action: pan-y; cursor: crosshair; }
.bal-svg .grid { stroke: #efe6d6; stroke-width: 1; }
.bal-svg .ax { fill: #9a8a78; font: 500 10px Inter, sans-serif; }
.bal-svg .hl { stroke: #9a8a78; stroke-dasharray: 3 3; }
.donut-wrap { display: flex; gap: 16px; align-items: center; }
.donut { width: 132px; flex-shrink: 0; }
.donut .d-lbl { fill: #9a8a78; font: 600 9px Inter, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.donut .d-val { fill: var(--rind); font: 700 16px 'Playfair Display', serif; }
.donut circle[stroke-dasharray] { transition: stroke-width .15s; }
.donut circle[stroke-dasharray]:hover { stroke-width: 24; }
.donut-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; display: grid; gap: 1px; }
.donut-legend button { width: 100%; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 34px; align-items: center; gap: 8px; padding: 4px 6px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: .8rem; color: var(--ink); text-align: left; cursor: pointer; }
.donut-legend button:hover:not(:disabled) { background: #fff6e3; }
.donut-legend button:disabled { cursor: default; }
.donut-legend i { width: 10px; height: 10px; border-radius: 3px; }
.donut-legend span { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.donut-legend span .cat-ic { width: 20px; height: 20px; font-size: .7rem; flex-shrink: 0; }
.donut-legend b { font-weight: 600; font-variant-numeric: tabular-nums; }
.donut-legend small { color: var(--muted); text-align: right; }
@media (max-width: 900px) { .act-charts { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .donut-wrap { flex-direction: column; align-items: stretch; } .donut { align-self: center; } }
.spark-row { display: flex; align-items: center; gap: 8px; margin: 8px 0 2px; }
.spark { width: 100%; max-width: 120px; height: 28px; flex: 1; }
.spark-row small { font-size: .72rem; font-weight: 600; white-space: nowrap; }
.spark-row small.up { color: #2f7a4d; } .spark-row small.down { color: #b23a2e; }
.spark-row small span { color: var(--muted); font-weight: 500; }
.cc-wrap .spark-row { padding: 0 4px; }
@media (max-width: 480px) { .donut { width: 150px; } .chart-card { padding: 12px 12px 8px; } }

/* ---------- Merchant badges ---------- */
.m-badge { position: relative; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mb, #7a2a22); color: #fff; font: 700 .74rem/1 Inter, sans-serif; letter-spacing: .02em; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.m-badge i { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-style: normal; font-size: .62rem; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.m-badge.person { background: linear-gradient(135deg, #f2c14e, #e08e1e); color: var(--rind-dark); }
.m-badge.boc { background: var(--rind); }
.m-badge.boc svg { width: 22px; height: 22px; }
.txn-desc .m-badge { margin-right: 2px; }
@media (max-width: 600px) { .recent-item .m-badge { margin-top: 2px; } }

/* ---------- Bill pay ---------- */
.bp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.bp .bp-form { max-width: none; }
.bp-add { margin-top: 14px; border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; }
.bp-add summary { cursor: pointer; font-weight: 600; color: var(--rind); font-size: .9rem; }
.bp-add[open] summary { margin-bottom: 6px; }
.bp-side h5 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 4px 0 8px; }
.bp-side h5 + .bp-list { margin-bottom: 18px; }
.bp-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; max-height: 360px; overflow-y: auto; }
.bp-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.bp-list li:last-child { border-bottom: 0; }
.bp-list li > div { flex: 1; min-width: 0; }
.bp-list b { display: block; font-size: .84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-list small { color: var(--muted); font-size: .75rem; }
.bp-list .cust-tab { padding: 5px 14px; font-size: .78rem; }
.bp-list .linkish { font-size: .78rem; }
.bp-amt { font-weight: 700; font-size: .88rem; white-space: nowrap; }
.bp-none { color: var(--muted); font-size: .85rem; justify-content: center; }
.bp-sched li { background: #fffaf0; }
@media (max-width: 900px) { .bp { grid-template-columns: 1fr; } }

/* ---------- Homepage: cave illustration, 60-year seal, live timeline, member stories ---------- */
.hero-art { position: relative; max-width: 440px; margin: 0 auto; width: 100%; }
.cave { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); }
.seal-60 { position: absolute; right: -6px; bottom: 26px; width: 128px; height: 128px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f7d27c, var(--gold) 55%, #c9952f); color: var(--rind-dark); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 0 0 6px rgba(232,182,76,.35), 0 0 0 12px rgba(232,182,76,.12), 0 12px 24px rgba(0,0,0,.35); transform: rotate(-8deg); }
.seal-60::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 2px dashed rgba(61,20,17,.35); }
.seal-60 b { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 800; line-height: .9; }
.seal-60 span { font-size: .6rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.seal-60 small { font-size: .58rem; font-weight: 600; opacity: .75; margin-top: 2px; }
.lantern { transform-origin: 120px 40px; animation: sway 6s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
.flame, .lantern-glow { animation: flicker 3.2s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 30% { opacity: .82; } 55% { opacity: .95; } 70% { opacity: .78; } }
.mote { animation: drift 9s linear infinite; opacity: 0; }
.m2 { animation-delay: -2s; } .m3 { animation-delay: -4.5s; } .m4 { animation-delay: -6.5s; }
@keyframes drift { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .9; } 85% { opacity: .6; } 100% { transform: translate(30px, -60px); opacity: 0; } }
@media (max-width: 900px) { .hero-art { max-width: 340px; margin-top: 10px; } .seal-60 { width: 100px; height: 100px; right: 0; } .seal-60 b { font-size: 2.3rem; } }

.tl-progress { position: absolute; left: 50%; top: 0; width: 3px; height: 0; background: linear-gradient(var(--cheddar), var(--rind)); transform: translateX(-50%); z-index: 0; border-radius: 3px; transition: height .15s linear; }
.timeline::before { background: #eadcc2; }
.tl-item::after { background: #eadcc2; box-shadow: 0 0 0 3px #eadcc2; transition: background .3s, box-shadow .3s, transform .3s; z-index: 1; }
.tl-item.lit::after { background: var(--cheddar); box-shadow: 0 0 0 3px var(--gold), 0 0 0 9px rgba(232,182,76,.25); transform: translateX(-50%) scale(1.15); }
.tl-item .tl-card { opacity: .45; transform: translateX(var(--from, -24px)); transition: opacity .5s ease, transform .5s ease, box-shadow .3s; }
.tl-item:nth-child(odd) .tl-card { --from: 24px; }
.tl-item.lit .tl-card { opacity: 1; transform: none; box-shadow: 0 10px 26px rgba(61,20,17,.08); }
@media (max-width: 900px) { .tl-progress { left: 10px; } .tl-item .tl-card, .tl-item:nth-child(odd) .tl-card { --from: 16px; } }

.story { position: relative; margin: 0; display: flex; flex-direction: column; gap: 16px; padding-top: 34px; }
.story::before { content: "\201C"; position: absolute; top: -18px; left: 20px; font: 800 5.5rem/1 'Playfair Display', serif; color: var(--cheddar); opacity: .55; }
.story blockquote { margin: 0; font-style: italic; color: #f3dcc0; flex: 1; }
.story .since { position: absolute; top: 16px; right: 18px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rind-dark); background: var(--cheddar); padding: 3px 10px; border-radius: 999px; }
.story figcaption { display: flex; align-items: center; gap: 12px; }
.story figcaption b { display: block; }
.avatar { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; font: 700 .95rem 'Playfair Display', serif; box-shadow: 0 0 0 3px rgba(242,165,65,.5); }
.story-fact { font-size: .82rem; color: #fff; background: rgba(255,255,255,.08); border-radius: 10px; padding: 8px 12px; }
@media (prefers-reduced-motion: reduce) { .lantern, .flame, .lantern-glow, .mote { animation: none; } .mote { opacity: 0; } .tl-item .tl-card { transition: none; } }
@media (max-width: 900px) { .bp { grid-template-columns: minmax(0, 1fr); } }
.bp select, .bp input { max-width: 100%; min-width: 0; }
.hub-tabs [role=tab] { padding: 14px 15px 12px; }
