/* Loadout builder (/loadouts/<slug>/), loaded only on those pages */
.lo-facts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.lo-facts div { display: grid; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.lo-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.lo-side { position: sticky; top: 72px; max-height: calc(100vh - 84px); overflow: auto; }
@media (max-width: 900px) { .lo-grid { grid-template-columns: 1fr; } .lo-side { position: static; max-height: none; overflow: visible; order: -1; } }
.lo-slot { display: grid; gap: 6px; padding: 10px 12px; margin: 8px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.lo-slot.changed { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.lo-slot select { width: 100%; padding: 8px; font: inherit; color: var(--text); background: var(--panel-solid); border: 1px solid var(--line); border-radius: 8px; }
.lo-fixed { color: var(--muted); }
.lo-info { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; }
.lo-stats { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 8px 0 12px; }
.lo-stat { display: grid; }
.lo-stat b { font-size: 1.1rem; }
.lo-d { font-size: 0.8rem; font-weight: 600; }
.lo-d.up { color: var(--credit); }
.lo-d.down { color: var(--warn); }
.lo-sum h3, .lo-act h3 { font-size: 1rem; margin: 14px 0 4px; }
.lo-bar { margin: 8px 0; }
.lo-bar-h { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--muted); }
.lo-bar-t { height: 8px; border-radius: 999px; background: var(--panel-solid); border: 1px solid var(--line); overflow: hidden; }
.lo-bar-f { height: 100%; background: var(--accent); }
.lo-bar.over .lo-bar-f { background: var(--warn); }
.lo-warn { color: var(--warn); }
.lo-cost { margin: 12px 0 0; }
.lo-modes { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.lo-slider { display: grid; gap: 2px; margin: 10px 0; }
.lo-slider-h { display: flex; justify-content: space-between; font-size: 0.9rem; }
.lo-slider input { width: 100%; accent-color: var(--accent); }
.lo-save { display: flex; gap: 8px; margin: 8px 0; }
.lo-save input { flex: 1; min-width: 0; padding: 7px 9px; font: inherit; color: var(--text); background: var(--panel-solid); border: 1px solid var(--line); border-radius: 8px; }
.lo-saves { padding-left: 18px; margin: 4px 0; }
.linkbtn { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; font: inherit; padding: 0; }
