.spend-report-dialog { width:min(100% - 24px,480px); max-height:94dvh; }
.spend-report { padding:0 20px; }
.spend-report>p:first-child { margin:4px 0 16px; font-size:var(--text-xs); }
.spend-report-frame { width:min(100%,340px); margin:0 auto; border-radius:var(--radius-xl); overflow:hidden; background:#193c48; box-shadow:0 16px 40px #061c2426; }
.spend-report canvas { display:block; width:100%; height:auto; aspect-ratio:3/4; }
.report-art-options { display:flex; gap:4px; padding:4px; margin:16px 0; border:1px solid var(--border); border-radius:var(--radius-control,12px); background:var(--subtle); }
.report-art-options legend { font-size:var(--text-xs); color:var(--muted); margin-bottom:6px; }
.report-art-options button { flex:1; min-width:0; min-height:44px; padding:6px; border-radius:var(--radius-xs); color:var(--muted); font-size:var(--text-sm); }
.report-art-options[hidden]{display:none}
.report-art-options button[aria-pressed=true] { color:var(--text); background:var(--surface); box-shadow:0 1px 4px #0001; }
.report-amounts { display:flex; align-items:center; gap:10px; min-height:44px; font-size:var(--text-sm); }
.report-amounts input { width:22px; height:22px; margin:0; flex:none; }
.report-status { min-height:40px; margin:8px 0; font-size:var(--text-xs); }
.spend-report .dialog-footer { position:sticky; bottom:0; margin:0 -20px; padding:12px 20px calc(12px + env(safe-area-inset-bottom)); background:var(--surface); border-top:1px solid var(--border); }
.stats-scope-caption:has([data-action=spend-report]) { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 12px; }
.stats-scope-caption [data-action=spend-report] { min-height:44px; font-size:var(--text-xs); color:var(--link); }
@media(max-width:639px){.spend-report-dialog.simple-dialog { width:calc(100% - 16px); max-height:94dvh; }.spend-report { padding:0 16px; }.spend-report-frame { width:min(100%,320px); }.spend-report .dialog-footer { margin-inline:-16px; padding-inline:16px; }.spend-report .dialog-footer .button { flex:1; min-width:0; }}

/* Gradient choices stay readable on a phone; exported artwork keeps its 1080x1440 detail. */
.spend-report .report-art-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(82px,1fr));gap:4px}
.spend-report .report-art-options button{min-height:48px;border-radius:var(--radius-sm);white-space:normal;line-height:1.4}
.spend-report .spend-report-frame{background:#153554;border-radius:var(--radius-lg)}

.spend-report .dialog-footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.spend-report [data-report-share]{grid-column:1/-1}
.spend-report .dialog-footer .button{min-height:48px;font-size:var(--text-sm);white-space:nowrap;padding:10px 12px}
