/* Stonevale Bank Online Banking: premium layer on top of site.css (overview, account cards, account detail).
   Matches the public home page (home.css). All motion is switched off for people who ask for reduced motion. */
.online {
  --ink-2: #0a1a31;
  --gold-2: #e9cf98;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M22 1L43 22L22 43L1 22Z' fill='none' stroke='%23c8a45d' stroke-width='1'/%3E%3Cpath d='M22 12L32 22L22 32L12 22Z' fill='none' stroke='%23c8a45d' stroke-width='.6'/%3E%3Ccircle cx='22' cy='22' r='1.5' fill='%23c8a45d'/%3E%3C/svg%3E");
}
.online .topbar { box-shadow: inset 0 -1px 0 rgba(200, 164, 93, .35); }
.online .ov-h { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: -.005em; margin: 0 0 1rem; }
.online .card h2 { font-family: var(--serif); }

/* ---------- welcome band ---------- */
.welcome, .acct-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: 20px; background: linear-gradient(120deg, #0a1a31 0%, #0e2340 45%, #1b3d6b 100%); box-shadow: 0 18px 44px rgba(10, 26, 49, .18), inset 0 1px 0 rgba(255, 255, 255, .08); }
.welcome::before, .acct-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--pattern); background-size: 44px 44px; opacity: .17;
  -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 80%); mask-image: linear-gradient(100deg, transparent 20%, #000 80%); }
.welcome::after, .acct-hero::after { content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 400px; height: 400px; border-radius: 50%; border: 58px solid rgba(200, 164, 93, .12); pointer-events: none; }
.welcome { padding: 1.75rem 2.2rem 1.35rem; margin-bottom: 2.4rem; box-shadow: 0 12px 32px rgba(10, 26, 49, .14), inset 0 1px 0 rgba(255, 255, 255, .08); }
.welcome::before { opacity: .11; }
.welcome-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; }
.welcome-date { color: var(--gold-2); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; margin: 0; }
.welcome h1 { color: #fff; font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; font-size: clamp(1.65rem, 3vw, 2.3rem); margin: .35rem 0 0; }
.welcome-total { text-align: right; display: grid; gap: .05rem; }
.welcome-total small { color: #aebcd1; font-size: .8rem; letter-spacing: .04em; }
.welcome-total strong { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; }
.welcome-total span { color: var(--gold-2); font-size: .82rem; font-weight: 600; }
/* quick actions: one row of slim light-on-navy pills */
.welcome-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid rgba(200, 164, 93, .22); }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .95rem .45rem .8rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06);
  color: #fff; font-size: .86rem; font-weight: 600; line-height: 1.2; text-decoration: none; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.pill svg { flex: none; width: 17px; height: 17px; stroke: #dfe7f2; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill svg .gs { stroke: var(--gold-2); }
.pill:hover, .pill:focus-visible { color: #fff; background: rgba(255, 255, 255, .13); border-color: rgba(233, 207, 152, .6); }

/* ---------- 2-step reminder (only while 2-step is off) ---------- */
.nudge { display: flex; align-items: center; gap: .7rem; margin: -1.2rem 0 2.2rem; padding: .55rem .6rem .55rem .9rem; border-radius: 12px; background: #fbf6ea; color: var(--ink); font-size: .9rem; }
.nudge a { color: var(--navy-3); font-weight: 600; }
.nudge-ic { flex: none; display: grid; place-items: center; }
.nudge-ic svg { width: 18px; height: 18px; stroke: var(--navy-3); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nudge-ic svg .gs { stroke: var(--gold-dark); stroke-width: 2; }
.nudge-x { margin-left: auto; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.nudge-x svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.nudge-x:hover, .nudge-x:focus-visible { background: rgba(14, 35, 64, .07); color: var(--ink); }

/* ---------- overview layout: accounts, then activity + this month on one quiet surface ---------- */
.ov-accounts { margin-bottom: 2.6rem; }
.ov-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.ov-head .ov-h { margin: 0; }
.ov-more { font-size: .88rem; font-weight: 600; color: var(--navy-3); text-decoration: none; }
.ov-more:hover, .ov-more:focus-visible { text-decoration: underline; }
.ov-label { color: var(--muted); font-size: .84rem; }
.ov-lower { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); background: var(--surface); border-radius: 18px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.ov-lower > section { padding: 1.6rem 1.9rem 1.4rem; }
.ov-lower > section + section { border-left: 1px solid var(--line-2); }
.ov-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1.5rem; margin: 1.6rem .2rem 0; color: var(--muted); font-size: .8rem; }
.ov-foot a { color: var(--muted); font-weight: 600; }

/* ---------- account cards, styled like bank cards ---------- */
.acct-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.acct.acct-card { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; gap: .4rem;
  aspect-ratio: 1.7; min-height: 148px; padding: 1rem 1.15rem; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14); color: #fff; text-decoration: none;
  box-shadow: 0 8px 20px rgba(10, 26, 49, .14), inset 0 1px 0 rgba(255, 255, 255, .14); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.acct.acct-card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .18) 48%, transparent 60%); background-size: 250% 100%; background-position: 150% 0; transition: background-position .9s var(--ease); pointer-events: none; }
.acct.acct-card:hover, .acct.acct-card:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(10, 26, 49, .2), inset 0 1px 0 rgba(255, 255, 255, .14); }
.acct.acct-card:hover::after { background-position: -100% 0; }
.acct.acct-card.tone-checking { background: linear-gradient(135deg, #1b3d6b 0%, #0e2340 55%, #0a1a31 100%); }
.acct.acct-card.tone-checking::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, #c8a45d, #e9cf98, #c8a45d); }
.acct.acct-card.tone-savings { background: linear-gradient(135deg, #fbf3e2 0%, #efdcb0 55%, #d9b874 100%); color: var(--ink-2); border-color: rgba(154, 122, 58, .35); }
.acct.acct-card.tone-other { background: linear-gradient(135deg, #2b5f66 0%, #17414a 55%, #0e2c33 100%); }
.ac-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; }
.ac-top img { flex: none; width: 26px; height: 26px; }
.ac-name { font-weight: 700; font-size: .98rem; line-height: 1.25; }
.ac-kind { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; opacity: .72; margin-top: .15rem; }
.ac-mid { display: flex; align-items: center; gap: .8rem; }
.ac-chip { width: 32px; height: 23px; border-radius: 5px; background: linear-gradient(135deg, #e9cf98, #b48d43); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.tone-savings .ac-chip { background: linear-gradient(135deg, #1b3d6b, #0e2340); }
.ac-num { letter-spacing: .16em; font-size: .95rem; opacity: .9; }
.ac-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: .6rem; }
.ac-foot small { display: block; font-size: .72rem; opacity: .78; }
.ac-foot strong { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.1; }
.ac-held { text-align: right; opacity: .85 !important; }
.tone-checking .ac-foot small:first-child, .tone-other .ac-foot small:first-child { color: #c9d5e6; opacity: 1; }

/* ---------- activity (overview list and account table) ---------- */
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line-2); }
.activity li:first-child { padding-top: .2rem; }
.activity .tx-ic { width: 34px; height: 34px; }
.activity .tx-ic svg { width: 16px; height: 16px; }
.activity li:last-child { border-bottom: 0; }
.tx-ic { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #edf1f7; color: var(--navy-3); }
.tx-ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tx-ic.in { background: #e6f3ec; color: var(--pos); }
.tx-memo { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-sub { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-amt { font-weight: 600; text-align: right; }
.tx-cell { display: flex; gap: .75rem; align-items: flex-start; }
.tx-cell .tx-ic { width: 32px; height: 32px; margin-top: .05rem; }
.tx-cell .tx-ic svg { width: 16px; height: 16px; }
#tx td.pos { font-weight: 600; }

/* ---------- this month ---------- */
.flow-row { margin-bottom: 1.25rem; }
.flow-top { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; margin-bottom: .45rem; font-size: .88rem; color: var(--muted); }
.flow-top strong { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.flow-top strong.pos { color: var(--pos); }
.flow-bar { display: block; overflow: visible; }
.flow-bar .track { fill: #eef1f5; }
.flow-bar .val-in { fill: #18794e; }
.flow-bar .val-out { fill: #0e2340; }
.flow-bar .val { transform-box: fill-box; transform-origin: left center; }
.flow-net { display: flex; justify-content: space-between; border-top: 1px solid var(--line-2); padding-top: .9rem; font-weight: 600; font-size: .92rem; }
.flow-note { margin: .9rem 0 0; color: var(--muted); font-size: .74rem; }

/* ---------- account detail header ---------- */
.acct-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 360px); gap: 1.2rem 2rem; align-items: end; padding: 1.7rem 2rem; margin-bottom: 1.25rem; }
.ah-meta { color: #c9d5e6; font-size: .9rem; }
.ah-meta .num { color: #fff; letter-spacing: .06em; }
.ah-toggle { color: var(--gold-2) !important; }
.acct-hero h1 { color: #fff; font-family: var(--serif); font-weight: 600; font-size: clamp(1.55rem, 2.7vw, 2.1rem); margin: .3rem 0 1rem; }
.ah-bal small { display: block; color: #aebcd1; font-size: .8rem; }
.ah-bal strong { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.1; }
.ah-sub { color: #aebcd1; font-size: .86rem; margin-top: .25rem; }
.acct-hero ~ .btn-row { margin: 0 0 1.25rem; }
.ah-trend { margin: 0; }
.ah-trend svg { display: block; width: 100%; height: 84px; overflow: visible; }
.ah-trend .line { fill: none; stroke: var(--gold-2); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ah-trend figcaption { color: #aebcd1; font-size: .78rem; text-align: right; margin-top: .35rem; }

/* ---------- entrance motion ---------- */
@keyframes ov-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes spark-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sheet-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.view-in .acct-card, .view-in .ov-lower { animation: ov-rise .5s var(--ease) both; }
.view-in .acct-card:nth-child(1) { animation-delay: .06s; }
.view-in .acct-card:nth-child(2) { animation-delay: .12s; }
.view-in .acct-card:nth-child(n+3) { animation-delay: .18s; }
.view-in .ov-lower { animation-delay: .2s; }
.view-in .flow-bar .val { animation: bar-grow .9s .4s var(--ease) both; }
.view-in .ah-trend svg { animation: spark-reveal 1.1s .2s var(--ease) both; }

/* ---------- phone-only pieces: hidden on wider screens, so desktop looks exactly as before ---------- */
.tabbar-wrap, .flow-compact, .lbl-short { display: none; }
.pill-ic { display: inline-flex; }
/* iPhone landscape with viewport-fit=cover: keep text clear of the notch (env() is 0 everywhere else) */
.online .topbar-inner, .online .mainnav-inner, .online .page { padding-left: max(1.25rem, env(safe-area-inset-left)); padding-right: max(1.25rem, env(safe-area-inset-right)); }

/* ---------- phone and tablet ---------- */
@media (max-width: 900px) {
  .ov-lower { grid-template-columns: minmax(0, 1fr); }
  .ov-lower > section + section { border-left: 0; border-top: 1px solid var(--line-2); }
  .acct-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  /* bottom app bar replaces the top tab strip */
  .online .mainnav { display: none; }
  .online .page { padding-top: 1.1rem; padding-bottom: calc(5.4rem + env(safe-area-inset-bottom)); }
  .tabbar-wrap { display: block; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px;
    padding: 5px max(6px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(10, 26, 49, .07); }
  .tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 4px 2px 3px; margin: 0;
    border: 0; border-radius: 12px; background: none; color: var(--muted); font: inherit; font-size: .68rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; }
  .tab svg { box-sizing: content-box; width: 22px; height: 22px; padding: 3px 14px; border-radius: 999px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: background-color .2s var(--ease); }
  .tab-l { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab:hover, .tab:focus-visible { color: var(--navy); }
  .tab.active { color: #7d6129; }
  .tab.active svg { background: #f6ecd6; stroke: var(--navy); }
  .tab.active svg .gs { stroke: var(--gold-dark); }
  .tab.active::before { content: ""; position: absolute; top: -5px; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
  .tab-more[aria-expanded="true"] { color: var(--navy); }
  .tab-more[aria-expanded="true"] svg { background: #eef1f5; }
  /* "More" sheet: sits just above the bar, the bar stays usable */
  .more-sheet { position: fixed; inset: 0; z-index: 39; }
  .more-sheet[hidden] { display: none; }
  .more-backdrop { position: absolute; inset: 0; background: rgba(9, 18, 33, .38); animation: fade-in .18s ease both; }
  .more-list { position: absolute; left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: calc(70px + env(safe-area-inset-bottom));
    padding: .45rem; border-radius: 16px; background: #fff; box-shadow: 0 18px 44px rgba(10, 26, 49, .28); animation: sheet-up .22s var(--ease) both; }
  .more-h { margin: .35rem .7rem .3rem; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
  .more-list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 48px; padding: .55rem .75rem; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; }
  .more-list a + a { border-top: 1px solid var(--line-2); }
  .more-list a svg { flex: none; width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .more-list a:hover, .more-list a:focus-visible { background: #f1f4f8; }
  .more-list a.active { background: #fbf6ea; color: var(--navy); box-shadow: inset 3px 0 0 var(--gold); }
  .online .install-banner { bottom: calc(76px + env(safe-area-inset-bottom)); }

  /* welcome band: date, greeting, total, then one row of round actions */
  .welcome { padding: 1rem 1.1rem .95rem; border-radius: 16px; margin-bottom: 1.1rem; }
  .welcome-row { gap: .45rem; }
  .welcome h1 { font-size: 1.35rem; margin-top: .2rem; }
  .welcome-total { text-align: left; gap: 0; }
  .welcome-total small { font-size: .74rem; }
  .welcome-total strong { font-size: 1.75rem; }
  .welcome-total span { display: none; }
  .welcome-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; margin-top: .85rem; padding-top: .8rem; }
  .pill { flex-direction: column; justify-content: flex-start; gap: .3rem; padding: 0; border: 0; border-radius: 0; background: none; font-size: .72rem; text-align: center; }
  .pill-ic { width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); transition: background-color .25s var(--ease), border-color .25s var(--ease); }
  .pill svg { width: 19px; height: 19px; }
  .pill:hover, .pill:focus-visible { background: none; }
  .pill:hover .pill-ic, .pill:focus-visible .pill-ic { background: rgba(255, 255, 255, .16); border-color: rgba(233, 207, 152, .6); }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }

  /* 2-step reminder: one line */
  .nudge { margin: -.3rem 0 1.2rem; padding: .3rem .3rem .3rem .75rem; gap: .55rem; font-size: .86rem; }
  .nudge-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nudge-lead { display: none; }
  .nudge a { display: inline-block; }
  .nudge a::first-letter { text-transform: uppercase; }
  .nudge-x { width: 34px; height: 34px; }

  /* accounts: one slim row per account (name and last 4 left, balance right) */
  .ov-accounts { margin-bottom: 1.4rem; }
  .online .ov-h { font-size: 1.08rem; margin-bottom: .65rem; }
  .online .ov-head .ov-h { margin: 0; }
  .ov-head { margin-bottom: .55rem; }
  .acct.acct-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: .8rem; row-gap: .05rem; aspect-ratio: auto; min-height: 0; padding: .75rem 1rem; border-radius: 14px; }
  .acct-card .ac-top, .acct-card .ac-mid, .acct-card .ac-foot { display: contents; }
  .acct-card .ac-top > div { grid-column: 1; grid-row: 1; min-width: 0; }
  .acct-card .ac-top img, .acct-card .ac-chip { display: none; }
  .ac-name { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ac-kind { margin-top: 0; }
  .acct-card .ac-num { grid-column: 1; grid-row: 2; font-size: .8rem; letter-spacing: .12em; }
  .acct-card .ac-foot > div { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
  .acct-card .ac-foot small { font-size: .66rem; }
  .acct-card .ac-foot strong { font-size: 1.22rem; }
  .acct-card .ac-foot > .badge, .acct-card .ac-held { grid-column: 2; grid-row: 3; justify-self: end; text-align: right; }

  /* recent activity: 3 rows, one line each, date only */
  .ov-lower { border-radius: 16px; }
  .ov-lower > section { padding: 1rem 1rem .9rem; }
  .ov-activity .activity li:nth-child(n+4) { display: none; }
  .ov-activity .activity li:nth-child(3) { border-bottom: 0; }
  .activity li { gap: .7rem; padding: .6rem 0; }
  .activity .tx-ic { width: 30px; height: 30px; }
  .activity .tx-ic svg { width: 15px; height: 15px; }
  .activity .tx-memo { font-size: .9rem; }
  .activity .tx-sub { font-size: .76rem; }
  .activity .tx-amt { font-size: .9rem; }
  .tx-acct { display: none; }

  /* this month: one line, one combined bar, small net line */
  .flow-compact { display: block; margin-bottom: .6rem; }
  .month-card .flow-row, .flow-note { display: none; }
  .flow-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .35rem; margin: 0 0 .5rem; color: var(--muted); font-size: .82rem; }
  .flow-line strong { color: var(--ink); font-size: .9rem; font-weight: 700; }
  .flow-line strong.pos { color: var(--pos); }
  .flow-net { padding-top: .55rem; font-size: .8rem; }

  /* footer: kept, smaller */
  .ov-foot { flex-direction: column; gap: .15rem; margin-top: 1rem; font-size: .72rem; }
  .acct-hero { padding: 1.35rem 1.35rem 1.2rem; border-radius: 16px; }
  .online .topbar-user .avatar { display: inline-flex; } /* site.css hides spans in the top bar on phones; keep the profile initials */
  .acct-cards { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  /* account transactions: each row becomes a compact block (date + description left, amount + balance right) */
  #tx table.data thead { display: none; }
  #tx table.data tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .8rem; row-gap: .15rem; padding: .7rem 0; border-bottom: 1px solid var(--line-2); }
  #tx table.data tbody tr:last-child { border-bottom: 0; }
  #tx table.data td { padding: 0; border: 0; }
  #tx table.data td:nth-child(1) { grid-column: 1; grid-row: 1; font-size: .78rem; color: var(--muted); }
  #tx table.data td:nth-child(2) { grid-column: 1; grid-row: 2; }
  #tx table.data td:nth-child(3) { grid-column: 2; grid-row: 1; align-self: end; }
  #tx table.data td:nth-child(4) { grid-column: 2; grid-row: 2; align-self: start; font-size: .76rem; color: var(--muted); }
  #tx table.data td:nth-child(4)::before { content: "Balance "; }
  #tx table.data td[colspan] { grid-column: 1 / -1; grid-row: 1; padding: .5rem 0; font-size: inherit; }
  .acct-hero ~ .btn-row .btn { padding: .55em .9em; }
  .tx-cell { gap: .5rem; }
  .tx-cell .tx-ic { width: 26px; height: 26px; }
  .tx-cell .tx-ic svg { width: 14px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .view-in .acct-card, .view-in .ov-lower, .view-in .flow-bar .val, .view-in .ah-trend svg { animation: none !important; }
  .acct.acct-card, .acct.acct-card::after, .pill, .pill-ic, .tab svg { transition: none !important; }
  .more-list, .more-backdrop { animation: none !important; }
  .acct.acct-card:hover, .acct.acct-card:focus-visible { transform: none; }
}
