/* Replaces the existing preparation sentence, never overlays the battlefield. */
body[data-game=defense] .stage-note[data-preparation-action=true] #coach{display:none!important}
body[data-game=defense] .stage-note[data-preparation-action=true] .coverage-key{display:none!important}
body[data-game=defense] .stage-note[data-preparation-action=true]{grid-template-rows:18px 44px!important}
body[data-game=defense] .stage-note[data-preparation-action=true] .battle-guide{min-height:44px!important;height:44px!important;align-items:stretch;justify-content:stretch}
body[data-game=defense] .stage-note[data-preparation-action=true]{min-height:66px!important;padding:2px 8px!important}
body[data-game=defense] .stage-note[data-preparation-action=true] .battle-guide:has(>#preparation-action){min-height:44px!important;height:44px!important;max-height:44px!important;overflow:visible;align-self:stretch;align-items:stretch;grid-row:2}
body[data-game=defense] .stage-note .preparation-action{
 display:flex;align-items:center;justify-content:space-between;gap:12px;pointer-events:auto;
 min-height:44px;max-width:100%;width:100%;padding:4px 9px;margin:0;
 border:1px solid #689795;border-radius:9px;background:linear-gradient(110deg,#203f48,#1d3446);color:#f1f4e9;text-align:left;
}
body[data-game=defense] .stage-note .preparation-action[hidden]{display:none!important}
body[data-game=defense] .preparation-action-copy{min-width:0;flex:1}
body[data-game=defense] .preparation-action-copy b{font-size:12px;line-height:16px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-game=defense] .stage-note .preparation-action small{display:block;font-size:10px;line-height:14px;height:auto;color:#c7dad5}
body[data-game=defense] .preparation-action-value{flex-shrink:0;text-align:right}
body[data-game=defense] .preparation-action-value b{display:block;font-size:15px;line-height:18px;color:#b7f5d9;font-variant-numeric:tabular-nums}
body[data-game=defense] #preparation-action>span{height:32px;min-height:0;display:flex;flex-direction:column;justify-content:center}
body[data-game=defense] #preparation-action small{height:14px!important;min-height:0!important;max-height:14px!important;line-height:14px!important;margin:0;padding:0;white-space:nowrap}
body[data-game=defense] .preparation-action[data-kind=inspect]{border-color:#c4a17c}
body[data-game=defense] .preparation-action[data-kind=inspect] .preparation-action-value b{color:#ffcc9c}
body[data-game=defense] #preparation-action[data-applied=true]{opacity:1;border-color:#81c6a2;background:#23483f;cursor:default}
@media(min-width:1000px) and (min-height:601px){body[data-game=defense] .stage-note .preparation-action{min-width:275px;max-width:450px}}
@media(orientation:landscape) and (max-height:600px){body[data-game=defense] .stage-note .preparation-action{min-height:44px;min-width:270px;margin-top:0}}
body[data-game=defense][data-field-dock=landscape]:has(.stage-note[data-preparation-action=true]) .shell{grid-template-rows:66px minmax(0,1fr) 46px}
body[data-game=defense][data-field-dock=portrait] .world-area:has(>.stage-note[data-preparation-action=true]){grid-template-rows:66px minmax(0,1fr) 44px}
body[data-game=defense][data-field-dock=portrait] .world-area>.stage-note[data-preparation-action=true]{height:66px!important;grid-template-rows:18px 44px!important}
@media(prefers-reduced-motion:reduce){body[data-game=defense] .preparation-action{transition:none}}
