/* Axle weight breakdown cards (owner's phone notes): title + status pill on row one, the rig on its own full-width row, then a tall progress bar
   that carries its own percentage. Loaded after fixes.css so these rules win without touching the baselined files. */
.axc-results .axl-card .axl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 0; }
.axc-results .axl-card .axl-name { flex: 1 1 auto; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.axc-results .axl-card .axl-room { flex: 0 1 auto; max-width: 100%; }

/* The rig: about three times the old title-row thumbnail, scaled by the card, never taller than 120px. */
.axc-results .axl-card .axl-truck { width: 100%; max-width: 480px; max-height: 120px; justify-self: start; display: flex; align-items: center; }
.axc-results .axl-card .axl-truck .axr { width: 100%; max-height: 120px; height: auto; }

/* The bar is a 28px pill; its fill colour follows the percentage (see below) and is dark enough for white text at every point. */
.axc-results .axl-card .axl-bar { position: relative; height: 28px; border-radius: 9999px; background: var(--surface-2); border: 1px solid var(--border); box-sizing: border-box; overflow: hidden; }
.axc-results .axl-card .axl-fill { display: flex; align-items: center; justify-content: flex-end; box-sizing: border-box; min-width: 0; padding-inline: 8px; background: color-mix(in oklch, color-mix(in oklch, var(--axl-g), var(--axl-a) calc(min(var(--axl-p, 0), 75) / 75 * 100%)), var(--axl-r) calc(max(var(--axl-p, 0) - 75, 0) / 25 * 100%)); color: var(--accent-ink); overflow: hidden; }
/* THE FILL COLOUR FOLLOWS THE PERCENTAGE, not the status band: green at 0, amber at 75, red at 100 and over, blended in between (--axl-p is the card's width in percent, set by axleCard). All three stops are dark enough for white text. */
:root { --axl-g: #15803D; --axl-a: #B45309; --axl-r: #B91C1C; }
.axc-results .axl-card .axl-pctin, .axc-results .axl-card .axl-pctout { font-size: 13px; line-height: 1.4; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.axc-results .axl-card .axl-pctout { position: absolute; top: 0; bottom: 0; right: 8px; display: flex; align-items: center; color: var(--ink); }
.axc-results .axl-card .axl-fill:empty { padding: 0; }
