/* Stable columns prevent different count lengths from shifting the bars. */
html[data-cosy-android="true"] body #root .app-shell .stats-reference-breakdown-row {
  grid-template-columns: minmax(0, .78fr) minmax(0, 1fr) 6ch !important;
}
html[data-cosy-android="true"] body #root .app-shell .stats-reference-breakdown-row strong {
  font-variant-numeric: tabular-nums;
}
/* Keep the Stats illustration beside its text on phones in both themes. */
@media (max-width: 620px) {
  html[data-cosy-android="true"] body #root .app-shell .stats-reference-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) clamp(112px, 35vw, 180px) !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 0 !important;
    padding: 18px 12px !important;
  }
  html[data-cosy-android="true"] body #root .app-shell .stats-reference-title-copy {
    width: auto !important;
    min-width: 0 !important;
    grid-column: 1 !important;
  }
  html[data-cosy-android="true"] body #root .app-shell .stats-reference-hero-art {
    position: relative !important;
    inset: auto !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: 128px !important;
    margin: 0 !important;
    transform: none !important;
  }
  html[data-cosy-android="true"] body #root .app-shell .stats-reference-header::after { display: none !important; }
}
