/* Cash page composition. Reuses foundation tokens; Transfer stays unchanged.
   This owns the compact hero, connected results and adaptive ranking layout. */
.cash-app { --cash-section-gap:24px; }
.app .cash-compact-hero { display:grid; grid-template-columns:minmax(0,1fr) 148px; gap:14px 28px; align-items:center; padding:8px 0 22px; }
.app .cash-compact-hero .cash-hero-copy { max-width:760px; }
.app .cash-compact-hero h1 { font-size:clamp(28px,3.4vw,40px); line-height:1.25; letter-spacing:-.025em; margin:4px 0 0; text-wrap:balance; display:flex; flex-wrap:wrap; column-gap:.25em; }
.app .cash-compact-hero .hero-line { display:inline; }
.app .cash-compact-hero .cash-hero-accent { color:var(--fx-primary); }
.app .cash-compact-hero .hero-sub { font-size:15px; line-height:1.6; margin:8px 0 0; max-width:620px; }
.cash-app .cash-hero-art { display:flex; justify-content:end; }
.cash-app .cash-hero-image { display:block; width:148px; height:148px; max-width:100%; object-fit:contain; }
.app .cash-compact-hero .cash-builder { grid-column:1/-1; margin:0; padding:20px; }
.cash-app .cash-builder-meta { align-items:center; flex-wrap:wrap; }
.cash-app .cash-builder-meta .scenario-hint { max-width:660px; text-align:start; font-size:14px; line-height:1.6; }
.cash-app .cash-reverse,.cash-app .cash-action { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:8px 12px; border:1px solid var(--fx-line); border-radius:var(--fx-radius-sm); background:var(--fx-surface); color:var(--fx-primary); font:600 14px/1.5 var(--fx-font); box-shadow:none; cursor:pointer; text-decoration:none; }
.app .cash-builder-grid .cash-reverse { height:44px; min-height:44px; width:44px; }
.cash-app .cash-reverse:hover,.cash-app .cash-action:hover { background:var(--fx-primary-soft); }
.cash-app .cash-field input { font-variant-numeric:tabular-nums; }
.cash-app .cash-dashboard { gap:0; padding:0; overflow:hidden; margin-bottom:var(--cash-section-gap); }
.cash-app .cash-answer { padding:24px; border:0; border-bottom:1px solid var(--fx-line); margin:0; }
.cash-app .cash-provider-line { align-items:start; }
.cash-app .cash-provider-line strong { font-size:18px; line-height:1.45; }
.cash-app .cash-provider-line span { white-space:normal; overflow-wrap:anywhere; }
.cash-app .cash-provider-badge { flex:0 0 38px; }
.cash-app .answer-kicker { color:var(--fx-positive); font-size:14px; line-height:1.5; letter-spacing:0; }
.cash-app .cash-answer-actions { min-width:0; }
.cash-app .cash-answer-actions .cash-action { min-height:44px; display:flex; align-items:center; justify-content:center; font-size:14px; padding:10px 12px; }
.cash-app .cash-answer-total > strong { letter-spacing:-.025em; }
.cash-app .cash-table-card { padding:22px 24px; border:0; box-shadow:none; }
.cash-app .cash-table-card .section-head { display:flex; flex-wrap:wrap; gap:10px; align-items:start; justify-content:space-between; }
.cash-app .section-head h2,.cash-app .cash-history-heading h2 { font-size:22px; line-height:1.4; letter-spacing:-.015em; }
.cash-app .cash-live-count { font-size:13px; min-height:30px; line-height:1.5; }
.cash-app .cash-table { table-layout:fixed; width:100%; border:0 !important; }
.cash-app .cash-table th:first-child,.cash-app .cash-table td:first-child { width:64px; }
.cash-app .cash-table th:nth-child(2) { width:38%; }
.cash-app .cash-table :is(th,td) { padding:14px 10px; overflow-wrap:anywhere; white-space:normal; }
.cash-app .cash-table th { font-size:13px; line-height:1.5; }
.cash-app .cash-table .bank { align-items:start; min-width:0; gap:9px; }
.cash-app .cash-table .bank > div { min-width:0; }
.cash-app .cash-table .bank :is(strong,small) { white-space:normal; overflow:visible; text-overflow:clip; }
.cash-app .cash-table .bank small { display:block; margin-top:4px; line-height:1.6; }
.cash-app .cash-table .bank small { color:var(--fx-muted) !important; }
.cash-app .cash-table .bank small a { color:var(--fx-primary) !important; }
.cash-app .cash-table .bank a { display:inline-flex; align-items:center; min-height:32px; }
.cash-app .cash-table td > strong { font-size:16px !important; font-variant-numeric:tabular-nums; }
.cash-app .cash-table .bank-badge { width:32px; height:32px; min-width:32px; border-radius:8px; background:var(--fx-surface-soft); color:var(--fx-muted); font-size:12px; }
.cash-app .cash-mobile-label { display:none; }
.cash-app .cash-locator { margin-block:var(--cash-section-gap); scroll-margin-top:12px; }
.cash-app .cash-time-chart { margin-block:var(--cash-section-gap); padding:24px; }
.cash-app :is(#cashHistoryDescription,.cash-history-footnote,.cash-history-coverage) { font-size:14px; line-height:1.65; }
.cash-app .cash-history-plot { min-width:0; }
.cash-app .cash-history-ranges { height:auto; gap:3px; }
.cash-app .cash-history-ranges button { min-height:44px; font-size:13px; line-height:1.4; }
.cash-app .cash-time-chart .cash-history-chip { font-size:13px; min-height:44px; padding:9px 12px; }
.cash-app .cash-time-chart .cash-history-more { font-size:14px; min-height:44px; }
.cash-app .cash-history-source-topline h3 { font-size:15px; }
.cash-app .cash-advanced-area { margin:0; gap:12px; }
.cash-app :is(.cash-analysis-disclosure,.cash-guide-disclosure,.cash-reference-disclosure,.cash-coverage-panel) { margin:12px 0; }
.cash-app :is(.cash-reference-disclosure,.cash-coverage-panel) > summary { min-height:52px; padding:16px 20px; font-size:15px; font-weight:600; line-height:1.6; }
.cash-app :is(.cash-help-card p,.cash-context-item strong,.cash-provider-source small,.cash-bank-reference-row small) { font-size:14px; line-height:1.6; }
.cash-app .cash-footnote { font-size:13px; line-height:1.7; gap:12px; }
@media(max-width:1024px){
 .cash-app .cash-builder-grid { grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr); }
 .cash-app .cash-location-field { grid-column:1/3; }
 .cash-app .cash-compare { grid-column:3; }
 .cash-app .cash-answer { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,.8fr); }
 .cash-app .cash-answer-actions { grid-column:1/-1; flex-direction:row; }
}
@media(max-width:680px){
 .app .cash-compact-hero { grid-template-columns:minmax(0,1fr) 80px; gap:12px; padding:4px 0 20px; }
 .app .cash-compact-hero h1 { font-size:clamp(24px,6vw,30px); line-height:1.3; }
 .app .cash-compact-hero .hero-line { display:block; }
 .app .cash-compact-hero .hero-sub { font-size:14px; margin-top:6px; }
 .cash-app .cash-hero-image { width:80px; height:80px; }
 .app .cash-compact-hero .cash-builder { padding:16px; }
 .cash-app .cash-builder-meta { gap:10px; }
 .cash-app .cash-answer { padding:18px; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px 12px; }
 .cash-app .cash-answer-main { grid-column:1/-1; }
 .cash-app .cash-answer-total { grid-column:1/-1; }
 .cash-app .cash-answer-rate { grid-column:1/-1; }
 .cash-app .cash-answer-total > strong { font-size:34px; }
 .cash-app .cash-answer-actions { flex-wrap:wrap; }
 .cash-app .cash-answer-actions a { flex:1; }
 .cash-app .cash-table-card { padding:18px; }
 .cash-app .cash-table-card .table-scroll { overflow:visible; }
 .cash-app .cash-table,.cash-app .cash-table tbody { display:block; width:100%; }
 .cash-app .cash-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .cash-app .cash-table tbody tr { display:grid; grid-template-columns:34px minmax(0,1fr); gap:8px 10px; padding:14px 0; border-top:1px solid var(--fx-line); background:transparent; }
 .cash-app .cash-table :is(td,td:first-child) { display:block; width:auto; border:0 !important; padding:0 !important; min-width:0; text-align:start; }
 .cash-app .cash-table td:nth-child(2) { grid-column:2; }
 .cash-app .cash-table td:nth-child(3) { grid-column:2; }
 .cash-app .cash-table td:nth-child(4) { grid-column:2; }
 .cash-app .cash-table td:nth-child(3),.cash-app .cash-table td:nth-child(4) { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 8px; }
 .cash-app .cash-table td:nth-child(3) .cash-mobile-label { flex:1 0 100%; }
 .cash-app .cash-table td:nth-child(4) .cash-mobile-label { flex:1 0 100%; }
 .cash-app .cash-table .bank-badge { display:none; }
 .cash-app .cash-mobile-label { display:block; font-size:13px; line-height:1.6; color:var(--fx-muted); }
 .cash-app .cash-table td:nth-child(4) > strong { font-size:22px !important; }
 .cash-app .cash-table .bank small { font-size:13px; }
 .cash-app .cash-time-chart { padding:16px; }
 .cash-app .section-head h2,.cash-app .cash-history-heading h2 { font-size:20px; }
}
@media(prefers-reduced-motion:reduce){.cash-app {scroll-behavior:auto}}
@media(max-width:380px){
 .app .cash-compact-hero { grid-template-columns:minmax(0,1fr) 56px; }
 .app .cash-compact-hero h1 { font-size:22px; }
 .cash-app .cash-hero-image { width:56px; height:56px; }
}
