/* Separate artwork from two-line names at both tablet and phone sizes. */
.battle049 #choices .choice,.battle049 #choices[data-wide039="true"] .choice,.battle049 .army-card049{
 grid-template-rows:minmax(0,1fr) 2.6em var(--card-info049)!important;
 font-size:14px;isolation:isolate;
}
.battle049 #choices .choice>img,.battle049 .army-card049>img{
 grid-area:1/1/2/2!important;max-height:100%;min-width:0;min-height:0;align-self:stretch;
}
.battle049 #choices .choice>strong,.battle049 #choices[data-wide039="true"] .choice>strong,.battle049 .army-card049>strong{
 grid-area:2/1/3/2!important;position:relative;z-index:1;display:flex;align-items:center;justify-content:center;
 font-size:14px!important;line-height:1.3!important;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;
 width:100%;height:100%;min-width:0;box-sizing:border-box;overflow:visible;text-align:center;
}
#atlasV3 .v3-mini-unit{justify-content:flex-start;gap:3px}
#atlasV3 .v3-mini-unit>img{flex-shrink:0}
#atlasV3 .v3-mini-unit>strong,#atlasV3 .flow-node048 strong{
 white-space:normal;word-break:keep-all;overflow-wrap:anywhere;overflow:visible;line-height:1.35;min-height:2.7em;
}
#atlasV3 .v3-mini-unit>strong{display:flex;align-items:center;justify-content:center;text-align:center}
#atlasV3 .flow-node048>span{flex:1;min-width:0;overflow:visible}
#atlasV3 .flow-node048 small{white-space:normal;overflow-wrap:anywhere}
@media(max-height:450px){
 .battle049 .army-cards049{grid-auto-columns:clamp(128px,18vw,166px)}
 .battle049 #choices .choice,.battle049 #choices[data-wide039="true"] .choice,.battle049 .army-card049{font-size:11px}
 .battle049 #choices .choice>strong,.battle049 #choices[data-wide039="true"] .choice>strong,.battle049 .army-card049>strong{font-size:11px!important}
}

/* Keep army level and owned count clear of the frame and name. */
.battle049 .army-card049{--card-info049:20px;grid-template-rows:minmax(0,1fr) auto var(--card-info049)!important}
.battle049 .army-card049>strong{min-height:1.3em;height:auto;padding:0 2px;max-height:2.6em}
.battle049 .army-card049>small.army-stats049{grid-area:3/1/4/2;display:flex;align-items:center;justify-content:space-between;gap:4px;align-self:stretch;min-width:0;width:100%;padding:1px 4px;background:#081626;line-height:18px;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;text-shadow:0 1px #000}
.battle049 .army-stats049 .army-level049{color:#ffe2a0;white-space:nowrap}
.battle049 .army-stats049 .army-count049{color:#e3f8ff;white-space:nowrap;border-left:1px solid #607782;padding-left:5px;margin-left:auto}
@media(max-height:450px){.battle049 .army-card049>small.army-stats049{font-size:12px}.battle049 .army-card049{padding-bottom:7px!important}}

/* Workshop batch preview uses the existing panel and button palette. */
.bulk-upgrade086{display:flex!important;flex-direction:column;gap:10px;overflow-y:auto!important;padding:14px!important}
.bulk-upgrade086 p{margin:0;line-height:1.5}.bulk-upgrade086>small{line-height:1.5;color:#c6dce4}
.bulk-upgrade-list086{display:grid;gap:6px;max-height:35vh;overflow-y:auto;flex-shrink:0;padding:8px;background:#102a36;border:1px solid #6b858c}
.bulk-upgrade086>button{flex-shrink:0;min-height:44px}
.work-toolbar089>[data-bulk-upgrade]{width:auto;min-height:36px;padding:4px 12px;white-space:nowrap;font-size:12px}

.bulk-cost086{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.bulk-cost086 img{width:24px;height:24px;object-fit:contain}

/* A full-height portrait row and one continuous name/details plate. */
.battle049 #choices,.battle049 #choices[data-wide039="true"],.battle049 .army-cards049{grid-template-rows:minmax(0,1fr);align-content:stretch}
.battle049 #choices .choice,.battle049 #choices[data-wide039="true"] .choice,.battle049 .army-card049{height:100%!important;box-sizing:border-box;align-self:stretch;grid-template-rows:minmax(0,1fr) auto var(--card-info049)!important}
.battle049 #choices .choice>strong,.battle049 #choices[data-wide039="true"] .choice>strong,.battle049 .army-card049>strong{height:100%;min-height:1.3em;max-height:none;margin:0;background:#081626;align-self:stretch}
.battle049 #choices .choice>.combo-synergy,.battle049 .army-card049>small.army-stats049{margin:0;box-sizing:border-box;height:100%;align-self:stretch;background:#081626}
@media(max-height:450px){
 .battle049 #choices,.battle049 #choices[data-wide039="true"],.battle049 .army-cards049{scrollbar-width:none;padding-bottom:0}
 .battle049 #choices .choice,.battle049 #choices[data-wide039="true"] .choice,.battle049 .army-card049{padding:3px 5px!important}
 .battle049 .army-card049{--card-info049:18px}
 .battle049 .army-card049>small.army-stats049{padding:0 4px;line-height:18px}
}
