/* MONEY & TODAY additions. Uses the tokens defined in app.css (:root). */
.g4{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}
.money-overview .card{display:flex;flex-direction:column;gap:2px}
.money-overview .stat{font-size:24px;font-variant-numeric:tabular-nums}
.mt-stat .stat{font-variant-numeric:tabular-nums}
.money-alerts{border-color:var(--line2);margin-bottom:16px}
.money-alerts .item{align-items:flex-start}
.alert-dot{flex:none;width:10px;height:10px;border-radius:50%;margin-top:6px;background:var(--fine)}
.alert-high .alert-dot{background:var(--bad)}
.alert-medium .alert-dot{background:var(--warn)}
.alert-low .alert-dot{background:var(--orange)}
.pill.warn{border-color:var(--warn);color:#ffe3a3}
.item.wrap{flex-wrap:wrap}
.item.wrap>.grow{flex:1 1 220px}
.money-table th{font-weight:600}
/* TODAY */
.focus-list{list-style:none;margin:0;padding:0;display:grid;gap:8px;counter-reset:focus}
.focus-list li{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:var(--r-sm);background:var(--panel2);border:1px solid var(--line)}
.focus-list li::before{counter-increment:focus;content:counter(focus);flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font:700 13px 'Space Grotesk',sans-serif;background:var(--orange);color:#1a0b02}
.day-money{display:grid;gap:8px}
.day-money .row{justify-content:space-between}
.conflict{border-left:3px solid var(--warn);padding-left:10px}
@media (max-width:520px){.money-overview .stat{font-size:21px}}
/* MONEY intelligence pages */
dialog.wide{width:min(900px,calc(100% - 32px));max-height:calc(100vh - 32px);overflow:auto}
.table-scroll{max-width:100%;overflow-x:auto}
.table-scroll .money-table input{min-height:34px;padding:4px 8px;width:100%;min-width:110px}
.table-scroll .money-table input[type=checkbox]{width:20px;min-width:0;min-height:20px}
.money-table tr.done td{opacity:.55}
.hist{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px;align-items:end;height:150px;margin-top:8px}
.hcol{display:flex;flex-direction:column;align-items:center;gap:4px;height:100%}
.hbars{flex:1;width:100%;display:flex;gap:3px;align-items:flex-end;justify-content:center}
.hb{display:block;width:min(18px,40%);border-radius:3px 3px 0 0;min-height:2px}
.hb.in,.key.in{background:var(--good,#5bbf7a)}
.hb.out,.key.out{background:var(--orange)}
.key{display:inline-block;width:10px;height:10px;border-radius:2px;vertical-align:middle}
.card.inner{background:var(--panel2);box-shadow:none}
/* 2026-10 mockup refresh: balance hero, icon tiles, spending donut */
.money-overview{gap:12px}
.money-hero{background:radial-gradient(circle at 100% 0,#ff741b33,transparent 55%),linear-gradient(180deg,#160f0a,#0c0907);border-color:#5a3418}
.money-hero-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.money-hero .money-big{font-size:clamp(30px,8vw,40px);line-height:1.1}
.money-hero-cone{filter:drop-shadow(0 6px 18px #ff741b77);flex:none}
.money-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.money-tile{padding:12px;gap:6px}
.money-tile .stat{font-size:18px}
.money-tile .mt-stat .fine{font-size:12px}
.money-tile-ico{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#ff741b1f;color:var(--orange)}
@media (max-width:520px){.money-overview .money-tile .stat{font-size:16px}.money-tile{padding:10px}}
.donut-wrap{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:12px}
.donut{flex:none}
.donut-total{fill:var(--text);font:700 14px 'Space Grotesk',sans-serif}
.donut-sub{fill:var(--muted);font-size:9px}
.donut-legend{flex:1 1 180px;margin:0}
.donut-legend td{padding:4px 4px}
.swatch{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:8px;vertical-align:0}
.money-overview{margin-bottom:16px}.money-left{margin-top:4px;font-weight:600}

/* Money on phones: detail cards fold to their title row (js/money-fold.js); long lists show 6 rows first.
   Desktop and tablets show everything, as before. */
.fold-toggle, .cap-more { display: none; }
@media (max-width: 700px) {
  .fold-toggle, .cap-more { display: inline-flex; }
  .money-fold.is-folded > :not(.fold-head) { display: none; }
  .money-fold.is-folded > .fold-head { margin-bottom: 0; }
  .list.is-capped > .cap-extra { display: none; }
  .cap-more { margin-top: 8px; width: 100%; justify-content: center; }
}
