/* Responsive shell: allow content to shrink instead of widening the page. */
body>div:has(>aside),body>div:has(main),main{min-width:0}
@media(max-width:600px){
 header.sticky{height:auto;min-height:72px;flex-wrap:wrap;gap:8px;padding:10px 12px}
 header.sticky>div{min-width:0;max-width:100%;flex-wrap:wrap}
 header.sticky>div:first-child{gap:8px}
 header.sticky>div:first-child p:first-child{font-size:15px}
 header.sticky>div:last-child{margin-left:auto;gap:8px}
 header.sticky a{white-space:nowrap}
 .mobilebar{flex-wrap:wrap;gap:8px;padding:10px}
 .mobilebar-date{min-width:0;font-size:13px}
 .nav-account{max-width:100%;overflow-wrap:anywhere}
}
@media(max-width:360px){
 header.sticky>div:last-child{width:100%;justify-content:space-between}
 main{max-width:100%}
}

/* Keep home statistics readable when each card has little inline space. */
@media (max-width: 600px) {
  main section > .grid.grid-cols-2:has(> div > p.tabular-nums) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  main section > .grid.grid-cols-2:has(> div > p.tabular-nums) > div {
    min-width: 0;
    padding-inline: 8px;
    overflow-wrap: anywhere;
  }

  main section > .grid.grid-cols-2 > div > p.tabular-nums {
    font-size: clamp(14px, 6vw, 22px);
    line-height: 1.25;
  }
}

@media (max-width: 260px) {
  main section > .grid.grid-cols-2:has(> div > p.tabular-nums) {
    grid-template-columns: minmax(0, 1fr);
  }
}
