/* Squad builder (/career/squad-builder). */
.sb-page { max-width: 1180px; margin: 0 auto; padding: 24px var(--page-gutter, 16px) 48px; }
.sb-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sb-head h1 { margin: 4px 0 6px; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.sb-head p { margin: 0; color: #9fb0c4; max-width: 560px; }
.sb-head .eyebrow { color: #6fb2ff; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sb-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.sb-formation { display: grid; gap: 4px; color: #9fb0c4; font-size: .75rem; font-weight: 700; }
.sb-formation select { min-height: 42px; padding: 8px 12px; border: 1px solid #ffffff20; border-radius: 12px; background: #142131; color: #fff; font: inherit; font-size: .95rem; }
.sb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.sb-pitch { position: relative; display: grid; gap: 10px; padding: 22px 12px; border-radius: 20px; overflow: hidden;
  background: repeating-linear-gradient(180deg, #0f3b25 0 60px, #0d3521 60px 120px); border: 1px solid #ffffff14; }
.sb-pitch::before { content: ""; position: absolute; inset: 12px; border: 2px solid #ffffff2a; border-radius: 10px; pointer-events: none; }
.sb-pitch::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; border-top: 2px solid #ffffff2a; pointer-events: none; }
.sb-row { position: relative; z-index: 1; display: flex; justify-content: space-evenly; gap: 6px; }
.sb-slot { position: relative; display: grid; justify-items: center; gap: 2px; width: 96px; padding: 6px 4px; border: 0; border-radius: 14px; background: none; color: #fff; cursor: pointer; font: inherit; }
.sb-slot:hover, .sb-slot:focus-visible { background: #ffffff12; outline: none; }
.sb-slot__face { display: grid; place-items: center; width: 60px; height: 64px; overflow: hidden; border: 2px dashed #ffffff55; border-radius: 14px; background: #0b121b99; color: #ffffffb3; font-size: 1.4rem; }
.sb-slot.is-filled .sb-slot__face { border: 2px solid #ffffff33; background: #0b121b; }
.sb-slot.is-off .sb-slot__face { border-color: #f2a33b; }
.sb-slot__face img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sb-slot__ovr { position: absolute; top: 2px; right: 12px; min-width: 26px; padding: 1px 5px; border-radius: 7px; font-size: .78rem; font-weight: 800; }
.sb-slot__ovr:empty { display: none; }
.sb-slot__ovr.rating--90, .sb-slot__ovr.rating--80 { background: #183323; color: #82eca8; }
.sb-slot__ovr.rating--75, .sb-slot__ovr.rating--65 { background: #2c3216; color: #d6e46a; }
.sb-slot__ovr.rating--57, .sb-slot__ovr.rating--47 { background: #35280f; color: #f2c35b; }
.sb-slot__ovr.rating--low { background: #3a1a1a; color: #ef8f8f; }
.sb-slot__name { max-width: 92px; overflow: hidden; font-size: .76rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px #000; }
.sb-slot__name:empty { display: none; }
.sb-slot__pos { padding: 0 6px; border-radius: 6px; background: #0b121bcc; color: #8cc2ff; font-size: .68rem; font-weight: 800; }
.sb-stats { padding: 16px; border: 1px solid #ffffff12; border-radius: 16px; background: #0d151f; }
.sb-stats h2 { margin: 0 0 10px; font-size: 1rem; }
.sb-stats dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.sb-stats dl div { padding: 10px; border-radius: 12px; background: #111c29; }
.sb-stats dt { color: #9fb0c4; font-size: .74rem; }
.sb-stats dd { margin: 2px 0 0; font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sb-note { margin: 12px 0 0; color: #7d8ea3; font-size: .78rem; }
.sb-picker { width: min(520px, calc(100vw - 24px)); max-height: min(640px, calc(100dvh - 40px)); padding: 0; border: 1px solid #ffffff1f; border-radius: 18px; background: #0d151f; color: #e6eef8; }
.sb-picker::backdrop { background: #000a; }
.sb-picker__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; }
.sb-picker__head h2 { margin: 0; font-size: 1.05rem; }
.sb-picker__close { width: 36px; height: 36px; border: 0; border-radius: 10px; background: #ffffff10; color: #fff; font-size: 1.3rem; cursor: pointer; }
.sb-picker__search { display: block; padding: 0 16px; }
.sb-picker__search input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #ffffff26; border-radius: 12px; background: #142131; color: #fff; font: inherit; }
.sb-picker__hint { margin: 8px 16px 0; color: #9fb0c4; font-size: .8rem; }
.sb-picker__hint:empty { display: none; }
.sb-picker__list { margin: 6px 0 0; padding: 0 8px 8px; list-style: none; overflow-y: auto; max-height: 420px; }
.sb-pick { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-bottom: 1px solid #ffffff10; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sb-pick:hover:not(:disabled) { background: #ffffff0a; }
.sb-pick:disabled { opacity: .45; cursor: default; }
.sb-pick img { flex: none; width: 40px; height: 44px; border-radius: 8px; background: #111c29; object-fit: cover; object-position: top; }
.sb-pick__who { flex: 1; min-width: 0; display: grid; }
.sb-pick__who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-pick__who small { overflow: hidden; color: #9fb0c4; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.sb-pick__ovr { min-width: 34px; padding: 4px 6px; border-radius: 8px; background: #183323; color: #82eca8; text-align: center; }
.sb-pick__ovr.rating--75, .sb-pick__ovr.rating--65 { background: #2c3216; color: #d6e46a; }
.sb-pick__ovr.rating--57, .sb-pick__ovr.rating--47 { background: #35280f; color: #f2c35b; }
.sb-picker__foot { padding: 0 16px 14px; }
@media (max-width: 900px) { .sb-layout { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .sb-pitch { gap: 6px; padding: 16px 4px; }
  .sb-slot { width: 64px; padding: 4px 2px; }
  .sb-slot__face { width: 46px; height: 50px; border-radius: 11px; }
  .sb-slot__ovr { right: 2px; font-size: .7rem; }
  .sb-slot__name { max-width: 62px; font-size: .66rem; }
}

/* Saved squads (SavedSquadsController). */
.sb-saved { margin-top: 16px; padding-top: 14px; border-top: 1px solid #ffffff14; }
.sb-saved h2 { margin: 0 0 8px; font-size: .95rem; }
.sb-saved__form { display: flex; gap: 8px; }
.sb-saved__form input { flex: 1; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid #ffffff20; border-radius: 10px; background: #142131; color: inherit; font: inherit; }
.sb-saved__list { display: grid; gap: 4px; margin: 8px 0 0; padding: 0; list-style: none; }
.sb-saved__list li { display: flex; align-items: center; gap: 8px; }
.sb-saved__list a { flex: 1; min-width: 0; overflow: hidden; color: #8cc2ff; font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.sb-saved__list small { color: #6d7d90; }
.sb-saved__list button { min-width: 32px; min-height: 32px; border: 0; border-radius: 8px; background: transparent; color: #9fb0c4; cursor: pointer; }
.sb-saved__list button:hover { background: #ffffff10; color: #fff; }
