#starting-formations { margin: 12px 0; border-top: 1px solid #777f72; }
#starting-formations summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.formation-content p { margin: 4px 0 10px; font-size: 14px; overflow-wrap: anywhere; }
.formation-presets { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.formation-presets legend { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.formation-presets label { position: relative; min-width: 0; cursor: pointer; }
.formation-presets input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.formation-presets span { display: grid; border: 1px solid #a6b0a0; background: #24322b; padding: 4px; color: #f5f1df; }
.formation-presets canvas { width: 100%; height: auto; aspect-ratio: 1.8; }
.formation-presets strong { font-size: 13px; text-align: center; font-weight: 700; padding-bottom: 4px; }
.formation-presets input:checked + span { border: 2px solid #f0cf45; padding: 3px; }
.formation-presets input:focus-visible + span { outline: 3px solid #f5f1df; outline-offset: 2px; }
.formation-presets input:disabled + span { opacity: .45; border-style: dashed; cursor: not-allowed; }
.formation-actions { display: flex; gap: 8px; margin-top: 10px; }
.formation-actions button { min-height: 44px; border: 1px solid #a6b0a0; border-radius: 3px; padding: 8px 12px; font: inherit; font-size: 14px; color: #f5f1df; background: #24322b; }
.formation-actions button:first-child { color: #111911; background: #f0cf45; border-color: #f0cf45; font-weight: 700; }
.formation-actions button:focus-visible { outline: 3px solid #f5f1df; outline-offset: 3px; }
