body[data-game=defense] .target-orders[data-cluster-order=true] > div {
  grid-template-columns: repeat(2, minmax(0,1fr));
}
body[data-game=defense][data-field-dock=portrait] .target-orders[data-cluster-order=true] > div {
  grid-template-columns: repeat(4, minmax(0,1fr));
}
body[data-game=defense] .target-orders button[data-target-policy=cluster][aria-pressed=true] {
  background: #454367;
  border-color: #d6c8ff;
  color: #faf7ff;
}

/* A promotion receipt can scroll inside the inspector during formation work. */
body[data-game=defense][data-field-dock=portrait][data-inspection-open=true][data-battle-phase=prepare]:has(#fusion-receipt[open]) .layout {
  grid-template-rows: minmax(0, 1fr) min(34dvh, 270px);
}
body[data-game=defense][data-field-dock=portrait][data-inspection-open=true][data-battle-phase=prepare]:has(#fusion-receipt[open]) .tactical-content {
  height: calc(min(34dvh, 270px) - 46px);
  max-height: calc(min(34dvh, 270px) - 46px);
}
