/* Outfit presets (js/presets.js, Gage 11-24): the Locker's preset bar under the loadout card and its sheet.
   Same plates as the Locker's tabs and collection line: #22241e plates, #5b4e3a frames, the red plate for what you wear. */
.lk-presets { margin: 0 0 8px; padding: 6px 8px 8px; border: 1px solid #4d4434; background: #171a15cc; }
.lk-presets header { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.lk-presets header b { font: 400 15px var(--display); text-transform: uppercase; letter-spacing: .06em; color: #d8cfbf; }
.lk-presets header small { font: 400 15px var(--display); color: var(--muted); }
.pre-edit { margin-left: auto; min-height: 32px; padding: 0 12px; border: 1px solid #5b4e3a; background: #22241e; color: #f2c84b; font: 400 15px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.pre-edit:disabled { color: #6f685b; border-color: #3a352a; }
.pre-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.pre-chip { position: relative; min-width: 0; min-height: 48px; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; padding: 0 3px 5px; background: #22241e; border: 1px solid #5b4e3a; color: #d8cfbf; font: 400 14px/1.05 var(--display); text-transform: uppercase; text-align: center; overflow: hidden; }
.pre-chip .pre-sw { display: block; height: 7px; margin: 0 -3px; border-bottom: 1px solid #0b0b0b; }
.pre-chip span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; line-height: 1.05; max-height: 2.1em; }
.pre-chip.on { background: #89282c; border-color: #f3aa7c; color: #fff; }
.pre-chip .pre-on { position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; }
.pre-chip .pre-on .wi { width: 14px; height: 14px; }
.pre-chip.empty { justify-content: center; align-items: center; gap: 1px; padding: 4px 2px; border-style: dashed; border-color: #4d4434; background: #131510; color: #8d8574; }
.pre-chip.empty b { font: 400 20px/1 var(--display); color: #c99c4d; }
.pre-chip:focus-visible, .pre-edit:focus-visible { outline: 2px solid #f2c84b; outline-offset: 1px; }

/* The sheet */
.preset-sheet .setup-body { display: flex; flex-direction: column; gap: 8px; }
.pre-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.pre-tabs button { position: relative; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 2px 4px; background: #22241e; border: 1px solid #5b4e3a; color: #d8cfbf; font: 400 16px/1 var(--display); overflow: hidden; }
.pre-tabs button .pre-sw { align-self: stretch; height: 6px; }
.pre-tabs button.empty { border-style: dashed; background: #131510; color: #8d8574; padding-top: 4px; }
.pre-tabs button.empty b { font: 400 16px/1 var(--display); color: #c99c4d; }
.pre-tabs button.on { background: #89282c; border-color: #f3aa7c; color: #fff; }
.pre-name { display: flex; align-items: center; gap: 6px; }
.pre-name > span { font: 400 15px var(--display); text-transform: uppercase; color: var(--muted); }
.pre-name input { flex: 1; min-width: 0; min-height: 40px; padding: 0 10px; border: 1px solid #5b4e3a; background: #0d100c; color: #f4e7c9; font: 600 16px var(--body, inherit); }
.pre-name .btn { flex: none; min-height: 40px; padding: 0 12px; }
.pre-what { margin: 0; font-size: 13px; color: var(--muted); }
.preset-sheet .loadout { margin: 0; }
.pre-miss { display: flex; gap: 6px; align-items: flex-start; margin: 0; padding: 6px 8px; border: 1px solid #8a5a2c; background: #2a1f14; color: #f1d7b0; font-size: 13px; }
.pre-miss .wi { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.preset-sheet .setup-footer { display: flex; flex-wrap: wrap; gap: 6px; }
.preset-sheet .setup-footer .btn { flex: 1 1 0; min-width: 0; min-height: 44px; }
.preset-sheet .setup-footer .btn.primary { flex: 1 1 100%; }
.preset-sheet .btn.danger { color: #ff8a80; border-color: #8a2c2c; }
@media (max-width: 360px) {
  .pre-chip { font-size: 13px; }
  .pre-name > span { display: none; }
}
