.jersey-shell{display:grid;gap:16px}
.jersey-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.jersey-heading-row,.jersey-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.jersey-setup-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:16px}
.jersey-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.jersey-form-grid .wide{grid-column:1/-1}
.jersey-form-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}
.jersey-color-row{display:grid;grid-template-columns:minmax(0,1fr) 64px;gap:8px;align-items:end}
.jersey-color-row input[type="color"]{width:64px;height:42px;padding:3px;cursor:pointer}
.kit-card-list{display:grid;gap:8px;margin-top:12px}
.kit-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fff}
.kit-card.archived{opacity:.62;background:#f5f5f5}
.kit-swatch{width:38px;height:38px;border-radius:10px;border:1px solid rgba(0,0,0,.18);box-shadow:inset 0 0 0 2px rgba(255,255,255,.42)}
.kit-copy strong{display:block;font-size:.86rem}.kit-copy small{color:var(--muted);font-size:.7rem}
.kit-actions,.jersey-row-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.jersey-filters{display:grid;grid-template-columns:minmax(160px,1.2fr) minmax(130px,.7fr) minmax(130px,.7fr);gap:8px;align-items:end;margin:12px 0}
.jersey-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}
.jersey-table{min-width:820px;margin:0}.jersey-table td{vertical-align:middle}
.jersey-identity{display:flex;align-items:center;gap:8px}.jersey-number-badge{display:grid;place-items:center;min-width:38px;height:34px;border-radius:9px;background:#751630;color:#fff;font-weight:950;font-size:.78rem}
.jersey-kit-label{display:inline-flex;align-items:center;gap:7px;font-weight:850}.jersey-kit-dot{width:13px;height:13px;border-radius:50%;border:1px solid rgba(0,0,0,.22)}
.jersey-state{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:.64rem;font-weight:950;text-transform:uppercase;letter-spacing:.05em}
.jersey-state.on_hand{background:#e4f4ed;color:#236b55}.jersey-state.unavailable{background:#fff0d8;color:#8a5712}.jersey-state.retired{background:#ececef;color:#666a73}
.jersey-empty{padding:22px;text-align:center;color:var(--muted);font-size:.84rem}
.jersey-schema-notice{display:none;padding:14px;border:1px solid #e5c46e;background:#fff8de;border-radius:12px;color:#684c0a;font-size:.82rem;line-height:1.45}.jersey-schema-notice.visible{display:block}
.temp-player-form{grid-template-columns:minmax(0,1fr) minmax(190px,1.35fr) auto}
.temp-player-form select{min-height:36px;padding:7px 8px;font-size:.74rem;min-width:0}
.temp-jersey-detail{display:block;color:var(--muted);font-size:.62rem;font-weight:700;margin-top:2px}
body.viewer-mode .jersey-write-only{display:none!important}
.jersey-bulk-panel{display:grid;gap:10px;border:1px solid #e2ccd3;border-radius:12px;padding:12px;margin:12px 0;background:#fcf8f9;min-width:0}
.jersey-bulk-top,.jersey-bulk-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.jersey-bulk-top strong{margin-right:auto;font-size:.84rem}
.jersey-bulk-actions>div{flex:1 1 220px;min-width:0}
.jersey-bulk-actions select{width:100%;min-width:0;min-height:44px}
.jersey-bulk-panel button{min-height:44px}
.jersey-bulk-panel p{margin:0;font-size:.75rem;line-height:1.4;color:var(--muted)}
.jersey-bulk-panel .form-status{margin:0;min-height:18px}
.jersey-select-cell{width:56px;min-width:56px;text-align:center!important;position:sticky;left:0;background:#fff;z-index:1;padding:4px!important}
.jersey-select-hitbox{display:grid;place-items:center;width:44px;height:44px;margin:0;cursor:pointer}
.jersey-select-hitbox input[type="checkbox"]{width:20px;height:20px;min-height:20px;margin:0;padding:0;accent-color:var(--maroon)}
.jersey-bulk-panel button:disabled{opacity:.55;cursor:default}
@media(max-width:720px){.jersey-bulk-actions{display:grid;grid-template-columns:minmax(0,1fr)}.jersey-bulk-actions>div{min-width:0}.jersey-bulk-actions button{width:100%}.jersey-bulk-top strong{flex:1 1 100%}.jersey-bulk-top button{flex:1}}
@media(max-width:980px){.jersey-setup-grid{grid-template-columns:1fr}.jersey-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.jersey-form-grid,.jersey-filters{grid-template-columns:1fr}.jersey-form-grid .wide{grid-column:auto}.jersey-filters .mini-btn{width:100%}.jersey-metrics{grid-template-columns:1fr 1fr}}

