/* Compact recommendation; no queue or per-unit reservation controls. */
.training-advice{border:1px solid var(--line,#594b70);border-radius:12px;padding:14px 16px;margin:10px 0;background:rgba(25,20,41,.54)}
.training-advice-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.training-advice-summary>div{flex:1 1 210px;min-width:0}
.training-advice-summary p{margin:5px 0 2px}
.training-advice-summary small{color:#cbbbd7}
.training-advice-summary button{min-height:42px;white-space:normal}
.training-advice>.muted{display:block;margin-top:7px}
.action-batch-home{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0;justify-content:flex-start}
@media(max-width:530px){.training-advice-summary button{width:100%}.action-batch-home>*{flex:1 1 145px}}
.unit-card .card-actions{flex-wrap:wrap}}

/* Layout refinements: reserve actions in one toolbar, never inside narrow unit cards. */
.unit-card .card-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:8px;width:100%}
.unit-card .card-actions>.btn,.unit-card .card-actions>.btn-wrap{width:100%;min-width:0}
.unit-card .card-actions>.btn-wrap>.btn{width:100%;min-width:0;white-space:normal}
.unit-card .card-actions .btn{min-height:44px;white-space:normal;overflow-wrap:normal;word-break:keep-all;line-height:1.35}
.unit-card .unit-head>div:last-child{min-width:0;flex:1}
.unit-card .unit-head h3{min-height:1.5em}
.unit-card .unit-head .nature-badge{margin:3px 0 0!important}
.fusion-nature-choice{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:10px}
.fusion-nature-choice>b{grid-column:1/-1}
.fusion-nature-choice>button{min-width:0;min-height:56px;justify-content:center!important;padding:10px 12px!important}
.fusion-nature-label{width:100%;display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap}
.fusion-nature-select{font-size:13px;color:#ead7b5}
@media(max-width:530px){.fusion-nature-choice{grid-template-columns:1fr}}
/* Consistent placement even when nature names or level labels differ. */
.unit-card .unit-head{align-items:flex-start}
.unit-card .unit-head>div:last-child .nature-badge{min-height:25px}
.unit-card .card-actions{margin-top:auto}
.fusion-nature-choice>button .nature-badge{white-space:nowrap}

/* Monster card identity: reserve the same rows for stars and temperament.
   Never let the temperament badge share the star line, regardless of text length. */
.unit-card .unit-head>div:last-child{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.unit-card .unit-head .unit-rating-row{display:flex;align-items:center;min-height:27px;line-height:1.3;white-space:nowrap}
.unit-card .unit-head .unit-nature-row{display:flex;align-items:center;min-height:28px;width:100%}
.unit-card .unit-head .unit-nature-row .nature-badge{display:inline-flex;margin:0!important;min-height:23px}

/* v2.59.2: equal-sized fusion nature choices with both effects visible */
.fusion-nature-choice>button .fusion-nature-label{flex-direction:column;gap:5px;align-items:center}
.fusion-nature-choice>button .fusion-nature-effect{display:block;max-width:100%;font-size:12px;line-height:1.5;text-align:center;color:#e0cbb8;white-space:normal}
.fusion-nature-choice>button{min-height:92px}
.formation-unit-info-head{display:flex;align-items:center;gap:16px;margin:12px 0}
.formation-unit-info-head .avatar,.formation-unit-info-head img{max-width:94px;max-height:94px}
.formation-unit-info-head p{margin:6px 0}
.formation-unit-info-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
.formation-unit-info-stats span{display:flex;justify-content:space-between;gap:12px;background:#34263d;padding:10px;border:1px solid #614e6e}
.formation-unit-info .modal-foot{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:18px}
@media(max-width:440px){.formation-unit-info-head{align-items:flex-start;gap:8px}.formation-unit-info-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v2.60.1: keep drawback status beneath the nature badge on narrow monster cards. */
.unit-card .unit-head .unit-nature-row{flex-wrap:wrap;max-width:100%;min-width:0}
.unit-card .unit-head .unit-wanted-row{width:100%;min-width:0;margin-top:4px;line-height:1.4}
.unit-card .unit-wanted-badge{display:inline-flex;max-width:100%;align-items:center;gap:3px;padding:3px 7px;border:1px solid #a8794d;background:#382532;color:#f3c688;font-size:12px;font-weight:700;line-height:1.4;white-space:normal;overflow-wrap:anywhere;word-break:normal;border-radius:3px;}
