/* Separate persistent health and skill resources across rooms, parties and battles. */
.pet-health .vital-row,.pet-health>.vital-row:first-child{display:grid;gap:5px;margin:0 0 10px;min-width:0}
.vital-label{display:flex;align-items:baseline;justify-content:space-between;gap:6px;font-size:11px;line-height:1.35;color:#41614c}
.vital-label strong{font-size:11px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
.vital-track,.party-vital-track{display:block;width:100%;height:6px;overflow:hidden;border-radius:99px;background:#dce8df}
.vital-track>i,.party-vital-track>i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#548e65,#87b587);transition:width .24s ease;min-width:0;max-width:100%}
.vital-mp .vital-label{color:#456d99}.vital-mp .vital-track{background:#dbe6f2}.vital-mp .vital-track>i{background:linear-gradient(90deg,#4f81b9,#88afda)}
.pet-health.exhausted .vital-row:not(.vital-mp) .vital-track>i{background:#cc7974}
.pet-health>small{line-height:1.5;margin-top:2px}
.room-rest-panel{grid-template-columns:minmax(108px, .72fr) minmax(0,1.4fr);gap:20px}
.room-rest-panel .vital-row:last-of-type{margin-bottom:0}
.party-vitals{display:grid;gap:7px;width:100%;min-width:0;margin:3px 0}
.party-vital{display:grid;gap:3px;min-width:0;color:#41614c}
.party-vital>span:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:4px;font-size:10px;font-weight:650;line-height:1.25}
.traveller-card .party-vital b{font-size:10px;font-weight:550;font-variant-numeric:tabular-nums;overflow:visible;white-space:nowrap}
.party-vital-track{height:5px}.party-vital.mp{color:#456d99}.party-vital.mp .party-vital-track{background:#dbe6f2}.party-vital.mp .party-vital-track>i{background:linear-gradient(90deg,#4f81b9,#88afda)}
.expedition-member>span{flex:1;min-width:0}.expedition-member{padding:8px;align-items:center}
.traveller-card>.sprite+div{flex:1;min-width:0}.traveller-card>.sprite+div>small{display:block;line-height:1.6;margin-top:7px}
.skill-mp-cost{font-variant-numeric:tabular-nums;white-space:nowrap;color:#486f9e;font-weight:650}
.skill-loadout button small{display:flex;align-items:baseline;justify-content:space-between;gap:10px;width:100%}
.skill-loadout button:disabled{opacity:1;cursor:not-allowed;border-color:#e0e5e9;background:#f0f3f6;color:#8a949e;box-shadow:none}
.skill-loadout button:disabled .skill-mp-cost{color:#8c7681}
.skill-mp-note{font-size:11px;color:#697a82;line-height:1.65;margin:12px 0 0}
.battle-vitals{display:grid;gap:8px;min-width:0}
.battle-vital{display:grid;gap:4px;min-width:0}
.battle-vital>span{display:flex;justify-content:space-between;gap:5px;font-size:11px;font-weight:600;line-height:1.25;font-variant-numeric:tabular-nums;color:#e3f3dc}
.battle-vital.mp>span{color:#bddaff}
.battle-vital .hp-bar,.battle-vital .mp-bar{height:7px;border-radius:99px;overflow:hidden;background:#09191199;border:1px solid #ffffff24;margin:0}
.battle-vital .hp-bar>i,.battle-vital .mp-bar>i{display:block;height:100%;max-width:100%;min-width:0;border-radius:inherit;transition:width .24s ease;background:linear-gradient(90deg,#7bd58a,#bae694)}
.battle-overlay #foe-fighter .battle-vital .hp-bar>i{background:linear-gradient(90deg,#ee956d,#f0cc89)}
.battle-overlay .fighter-status .battle-vital .mp-bar>i,.battle-overlay #foe-fighter .battle-vital .mp-bar>i{background:linear-gradient(90deg,#649ce4,#a4d0ff)}
.battle-vital .mp-bar{background:#08172d99}
.battle-overlay .fighter-status h3{margin-bottom:8px}
.battle-overlay .battle-arena .ultimate-banner{top:182px}
@media(max-width:767px){
 .battle-overlay .fighter-status{padding:10px 10px 9px}
 .battle-overlay .fighter-status h3{font-size:12px;margin-bottom:8px}
 .battle-vitals{gap:7px}.battle-vital>span{font-size:10px;gap:3px}.battle-vital .hp-bar,.battle-vital .mp-bar{height:6px}
 .battle-overlay .battle-arena .ultimate-banner{top:calc(max(12px,env(safe-area-inset-top,0px)) + 204px)}
 .room-rest-panel{grid-template-columns:minmax(94px,.85fr) minmax(0,1.3fr);gap:13px}
}
@media(max-width:380px){
 .expedition-party-list{grid-template-columns:1fr}
 .expedition-member .sprite{width:51px;height:51px!important}
 .party-vitals{max-width:none}
 .room-rest-panel{grid-template-columns:1fr;gap:12px}
 .room-rest-panel .pet-health{display:grid;grid-template-columns:1fr 1fr;gap:10px}
 .room-rest-panel .pet-health .vital-row{margin:0}.room-rest-panel .pet-health>small{grid-column:1/-1}
 .battle-overlay .fighter-status{padding:9px 8px}.battle-vital>span{font-size:9px}
}
@media(max-height:520px) and (min-width:568px){
 .battle-overlay .fighter-status{padding:8px 10px}
 .battle-overlay .fighter-status h3{font-size:11px;margin-bottom:5px}
 .battle-vitals{gap:5px}.battle-vital>span{font-size:9px}.battle-vital .hp-bar,.battle-vital .mp-bar{height:5px}
 .battle-overlay .battle-arena .ultimate-banner{top:128px}
}
@media(prefers-reduced-motion:reduce){.vital-track>i,.party-vital-track>i,.battle-vital .hp-bar>i,.battle-vital .mp-bar>i{transition:none}}

.technique-buttons button>small{display:block;margin-top:4px;color:#557ba4;font-size:10px;font-variant-numeric:tabular-nums}

.battle-attack-down{display:inline-block;margin-top:4px;padding:3px 7px;border:1px solid #c7a66b;border-radius:8px;background:#fff1cc;color:#714813;font-size:10px;font-weight:700;line-height:1.3;white-space:nowrap}.battle-attack-down[hidden]{display:none}
