.loadout-header, .loadout-main { width: min(1800px, calc(100% - 32px)); }
.loadout-header h1 { font-size: clamp(1.3rem, 3vw, 2rem); }
.loadout-header nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.loadout-teams { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.loadout-teams button { min-height: 44px; padding: 8px; }
.loadout-intro { background: white; border: 1px solid var(--line); padding: 14px 18px; border-radius: 12px; margin-bottom: 12px; }
.loadout-intro p { margin: 0; font-size: .9rem; line-height: 1.8; }
.loadout-page h2 { margin: 0; font-size: 1.1rem; }
.loadout-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.loadout-board { min-width: 0; padding: 2px 2px 10px; overflow-x: auto; }
.loadout-board:focus-visible { outline: 3px solid #237ba688; outline-offset: 2px; }
.loadout-team-grid { display: grid; grid-template-columns: repeat(8,minmax(140px,1fr)); gap: 8px; }
.loadout-fixed { margin-top: 18px; padding: 2px; }
.loadout-fixed > .loadout-card { width: max(140px,calc((100% - 56px) / 8)); box-sizing: border-box; }
.loadout-fixed-name { display: flex; align-items: center; min-height: 44px; padding: 5px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 7px; background: #eaf2f8; font-size: .8rem; font-weight: 700; box-sizing: border-box; }
.loadout-card { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-width: 0; }
.loadout-cell { display: flex; gap: 2px; align-items: stretch; border: 1px dashed #b8c7d4; border-radius: 7px; margin-bottom: 6px; min-height: 44px; background: #f7f9fb; }
.loadout-cell[data-category="character"] { background: #eaf2f8; border-style: solid; margin-bottom: 12px; }
.loadout-cell[data-category="class"] { background: #f0edf7; border-style: solid; }
.loadout-cell.has-item { border-style: solid; }
.loadout-cell[data-drag-id] { touch-action: pan-y; }
.loadout-cell button { border: 0; background: transparent; color: var(--ink); padding: 5px; font-size: .72rem; line-height: 1.5; }
.loadout-cell .loadout-choose { flex: 1; min-width: 0; overflow-wrap: anywhere; text-align: left; }
.loadout-cell[data-category="character"] .loadout-choose { font-weight: 700; }
.loadout-clear { flex: 0 0 22px; color: var(--muted) !important; font-size: 1rem !important; }
.loadout-cell.is-over { background: #dceff7; outline: 2px solid #237ba6; }
.loadout-page button:focus-visible, .loadout-page input:focus-visible { outline: 3px solid #237ba688; outline-offset: 2px; }
#loadout-picker { width: min(640px,calc(100% - 24px)); max-height: 85vh; padding: 18px; }
.loadout-picker-search { display: block; margin: 14px 0; }
.loadout-picker-items { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 16px; max-height: 48vh; overflow: auto; }
.loadout-picker-items button { min-height: 44px; border: 1px solid var(--line); border-radius: 7px; background: #f7fafc; color: var(--ink); font-size: .9rem; padding: 8px; }
.loadout-drag-preview { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 20; background: var(--navy); color: white; padding: 10px; border-radius: 8px; font-size: .85rem; }
@media(max-width:1100px) { .loadout-cell button { font-size: .8rem; } }
@media(max-width:600px) {
  .loadout-header { gap: 12px; }
  .loadout-header nav { max-width: 132px; }
  .loadout-header .site-home-link { font-size: .72rem; padding: 8px; }
  .loadout-intro { padding: 12px; }
  .loadout-intro p { font-size: .8rem; }
  .loadout-teams { gap: 4px; }
  .loadout-teams button { padding: 4px 2px; font-size: .75rem; }
  .loadout-page .quiet-button { padding: 0 8px; font-size: .8rem; }
  .loadout-picker-items { grid-template-columns: 1fr; }
}
.loadout-picker-search input { min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; width: 100%; font-size: 1rem; }
.loadout-picker-items button:disabled { background: #e2e8ef; color: #667789; cursor: not-allowed; }
.loadout-reset-row { display: flex; justify-content: flex-end; margin-top: 12px; }
.loadout-error { color: #a12626; font-size: .85rem; }
.loadout-picker-note { font-size: .85rem; line-height: 1.6; }
.loadout-class-types { display: block; margin-top: 4px; font-size: .7rem; color: var(--muted); }
