/* v21.1: scoped layout repair; keep v21 comparison/rounding logic untouched. */
.atlas-screen.atlas-reference-v4 .atlas-summary-premium.lm21-overall-card {
 container-type:inline-size; box-sizing:border-box; width:100%; min-width:0;
 height:auto!important; min-height:211px; flex-shrink:0; align-items:stretch!important;
 justify-content:flex-start; gap:5px!important;
}
.atlas-screen.atlas-reference-v4 .lm21-overall-card h2 {margin:0!important;flex:none;overflow-wrap:normal}
.atlas-screen.atlas-reference-v4 .lm21-overall-card .atlas-summary-context {flex:none;line-height:1.3}
.atlas-screen.atlas-reference-v4 .lm21-overall-card .atlas-summary-main {
 display:grid!important; width:100%!important; box-sizing:border-box;
 grid-template-columns:minmax(0,1fr) 86px!important; gap:8px!important;
 flex:0 0 auto!important; min-height:96px!important; align-items:center!important;
 justify-items:stretch!important; margin:0!important;
}
.atlas-screen.atlas-reference-v4 .lm21-overall-card .atlas-summary-copy {width:100%;min-width:0;container-type:normal;text-align:left}
.atlas-screen.atlas-reference-v4 .lm21-overall-card .atlas-summary-copy .atlas-total {
 display:block!important; white-space:nowrap!important; overflow-wrap:normal!important;
 word-break:normal!important; font-size:clamp(22px,10cqw,36px)!important;
 line-height:1.15!important;letter-spacing:-.8px; margin:2px 0!important;
}
.atlas-screen.atlas-reference-v4 .lm21-overall-card .atlas-total em {font-size:11px!important;letter-spacing:0}
.atlas-screen.atlas-reference-v4 .lm21-overall-card .atlas-target-caption {line-height:1.3;max-width:100%;box-sizing:border-box}
.atlas-screen.atlas-reference-v4 .lm21-overall-card .atlas-achievement-ring {
 box-sizing:border-box!important;width:86px!important;height:86px!important;
 min-width:86px;max-width:86px!important;aspect-ratio:1;padding:8px!important;
 grid-area:auto!important;justify-self:end;align-self:center;flex:none;
}
.atlas-screen.atlas-reference-v4 .lm21-overall-card .atlas-achievement-ring>div {width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;gap:2px}
.atlas-screen.atlas-reference-v4 .lm21-overall-card .atlas-achievement-ring strong {font-size:24px!important;line-height:1.1;white-space:nowrap;letter-spacing:-1px}
.atlas-screen.atlas-reference-v4 .lm21-overall-card .atlas-achievement-ring span {font-size:9px!important;line-height:1.2;white-space:nowrap}
.atlas-screen.atlas-reference-v4 .lm21-overall-card .lm21-yoy-overall {
 width:100%;min-width:0;flex:none;grid-template-columns:minmax(0,1fr) auto auto;
 margin:0!important;gap:4px;padding:6px;min-height:35px;
}
.atlas-screen.atlas-reference-v4 .lm21-overall-card .lm21-yoy-title {font-size:10px;line-height:1.2}
.atlas-screen.atlas-reference-v4 .lm21-overall-card .lm21-yoy-percent,
.atlas-screen.atlas-reference-v4 .lm21-overall-card .lm21-yoy-money {font-size:11px;padding:4px 3px}
/* Accommodate the actual rail width, independently of viewport/sidebar width. */
@container (max-width:245px) {
 .atlas-screen.atlas-reference-v4 .lm21-overall-card .atlas-summary-main {grid-template-columns:minmax(0,1fr) 72px!important;gap:5px!important}
 .atlas-screen.atlas-reference-v4 .lm21-overall-card .atlas-achievement-ring {width:72px!important;height:72px!important;min-width:72px;max-width:72px!important;padding:7px!important}
 .atlas-screen.atlas-reference-v4 .lm21-overall-card .atlas-achievement-ring strong {font-size:21px!important}
 .atlas-screen.atlas-reference-v4 .lm21-overall-card .atlas-achievement-ring span {font-size:8px!important}
 .atlas-screen.atlas-reference-v4 .lm21-overall-card .lm21-yoy-overall {grid-template-columns:1fr auto}
 .atlas-screen.atlas-reference-v4 .lm21-overall-card .lm21-yoy-title {grid-column:1/-1}
}
/* Let the rail fit its contents rather than compress the revenue/ring above the pill. */
.atlas-screen.atlas-reference-v4 .atlas-stage-premium:has(.lm21-overall-card) {height:auto!important;min-height:clamp(448px,29vw,538px)}
.atlas-screen.atlas-reference-v4 .atlas-left-rail:has(>.lm21-overall-card) {height:auto!important;grid-template-rows:minmax(min-content,46fr) minmax(min-content,54fr)!important;overflow:visible}
