.ws-players-section { margin-top: 32px; padding-top: 28px; border-top: 1px solid #D8DDD9; }
.ws-players-section h2, .ws-player-settings h2 { margin: 0; font-size: 21px; line-height: 1.4; }
.ws-player-tools, .ws-group-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ws-group-filter { margin-bottom: 14px; }
.ws-group-filter label { font-size: 13px; font-weight: 700; }
.ws-player-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.ws-player-card { display: grid; grid-template-columns: 128px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 10px 18px; align-items: center; min-height: 236px; padding: 20px; background: #FFF; border: 1px solid #DDE2DF; border-radius: 6px; position: relative; color: #273832; }
.ws-player-photo { grid-column: 1; grid-row: 1 / 3; width: 128px; height: auto; aspect-ratio: 3 / 4; display: grid; place-items: center; background: #EEF2F0; color: #71867D; overflow: hidden; border-radius: 4px; }
.ws-player-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ws-player-photo svg { width: 48px; height: 48px; }
.ws-player-info { grid-column: 2; grid-row: 1; min-width: 0; padding-right: 28px; align-self: end; }
.ws-player-card:not(:has(.ws-player-radar)) .ws-player-info { grid-row: 1 / 3; align-self: center; }
.ws-player-info h3 { font-size: 20px; line-height: 1.35; margin: 6px 0; overflow-wrap: anywhere; letter-spacing: 0; }
.ws-player-info p { font-size: 14px; line-height: 1.6; margin: 0 0 8px; color: #626B66; overflow-wrap: anywhere; }
.ws-player-group { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 5px; overflow-wrap: anywhere; }
.ws-player-group::before { content: ""; width: 7px; height: 7px; background: var(--group-color); border-radius: 50%; flex: 0 0 7px; }
.ws-player-state { font-size: 12px; line-height: 1.5; padding: 3px 8px; display: inline-block; background: #E4F4EF; color: #17634D; border-radius: 3px; }
.ws-player-state.is-training { background: #E6EFF8; color: #285F8E; }
.ws-player-state.is-recovery { background: #FAE8EC; color: #923D55; }
.ws-player-state.is-rest { background: #F7EEDB; color: #7B5B1D; }
.ws-player-radar { grid-column: 2; grid-row: 2; min-width: 0; display: flex; align-items: center; gap: 8px; }
.ws-player-radar canvas { display: block; width: 76px; height: 76px; flex: 0 0 76px; }
.ws-player-radar span { font-size: 11px; color: #65716C; overflow-wrap: anywhere; }
.ws-player-edit { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 6px; }
.ws-player-edit svg { width: 16px; height: 16px; }
.ws-people-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.ws-people-controls .ws-group-filter { margin: 0; }
.ws-view-switch { display: inline-flex; padding: 3px; border: 1px solid #CCD3CD; background: #FFF; border-radius: 4px; flex-shrink: 0; }
.ws-view-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 2px; background: transparent; color: #52625A; min-height: 38px; padding: 8px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.ws-view-switch button[aria-pressed=true] { background: #263F37; color: #FFF; }
.ws-view-switch svg, .ws-selection-bar button svg, .ws-delete-dialog button svg { width: 17px; height: 17px; flex-shrink: 0; }
.ws-selection-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; min-height: 44px; }
.ws-select-all { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 13px; cursor: pointer; }
.ws-selection-count { font-size: 13px; color: #53655D; font-variant-numeric: tabular-nums; }
.ws-selection-bar [data-delete-people] { margin-left: auto; }
.ws-selection-bar button, .ws-delete-dialog button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.ws-selection-check { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 36px; cursor: pointer; }
.ws-selection-cell { width: 48px; text-align: center !important; padding: 8px !important; }
input[data-select-person], input[data-select-all-people] { width: 18px; height: 18px; margin: 0; accent-color: #147D73; cursor: pointer; flex-shrink: 0; }
[data-person-row].is-selected { background-color: #F0F8F4; outline: 1px solid #72A592; outline-offset: -1px; }
.ws-people-profiles { margin-top: 0; }
.ws-people-profiles .ws-player-info { padding-right: 0; }
.ws-people-profiles .ws-player-marking { font-size: 12px; color: #53665D; }
.ws-player-card--selectable { padding-top: 48px; min-height: 264px; }
.ws-person-select { position: absolute; left: 12px; top: 8px; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; }
.ws-person-card-head > .ws-selection-check { flex: 0 0 32px; }
.ws-person-card-head > div { min-width: 0; flex: 1; }
.ws-person-card-head strong { overflow-wrap: anywhere; }
.ws-delete-dialog { box-sizing: border-box; width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 28px; border: 1px solid #D7DEDA; border-radius: 6px; background: #FFF; color: #263B32; }
.ws-delete-dialog::backdrop { background: rgba(20, 30, 25, .60); }
.ws-delete-dialog h2 { font-size: 21px; line-height: 1.4; margin: 0 0 16px; overflow-wrap: anywhere; }
.ws-delete-dialog p { font-size: 14px; line-height: 1.75; margin: 12px 0; }
.ws-delete-names { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 14px 0; margin: 0; max-height: 156px; overflow: auto; border-block: 1px solid #E0E6E2; }
.ws-delete-names li { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.ws-delete-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.ws-delete-actions .ws-button--danger { background: #A73532; border-color: #A73532; color: #FFF; }
.ws-delete-actions .ws-button--danger:hover { background: #862823; color: #FFF; }
.ws-delete-dialog button:disabled { opacity: .55; cursor: wait; }
.ws-view-switch button:focus-visible, .ws-selection-bar button:focus-visible, .ws-delete-dialog button:focus-visible, input[data-select-person]:focus-visible, input[data-select-all-people]:focus-visible { outline: 2px solid #2468AA; outline-offset: 3px; }
@media (max-width: 680px) {
  .ws-people-controls { align-items: stretch; }
  .ws-view-switch { margin-left: auto; }
  .ws-player-card.ws-player-card--selectable { padding-top: 48px; }
  .ws-selection-bar { gap: 8px; }
  .ws-selection-bar [data-delete-people] { padding-inline: 12px; }
  .ws-delete-dialog { padding: 22px 18px; }
  .ws-delete-actions button { flex: 1; padding-inline: 12px; }
}
.ws-player-settings { padding: 28px 0; border-top: 1px solid #D8DDD9; margin-top: 24px; max-width: 880px; }
.ws-group-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 16px 0; }
.ws-group-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #DFE3E0; min-width: 0; }
.ws-group-row strong { font-size: 14px; flex: 1; overflow-wrap: anywhere; }
.ws-group-row > span:not(.ws-group-dot) { color: #66736C; font-size: 12px; white-space: nowrap; }
.ws-group-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ws-group-form { display: grid; grid-template-columns: minmax(0, 1fr) 68px auto 38px; gap: 12px; align-items: end; }
.ws-group-form .ws-form-status { grid-column: 1 / -1; margin: 0; }
.ws-group-color input { width: 100%; height: 44px; padding: 4px; cursor: pointer; }
.ws-group-presets { display: flex; gap: 10px; align-items: end; margin-top: 8px; max-width: 280px; }
.ws-group-presets .ws-field { flex: 1; }
.ws-player-settings svg, .ws-portrait-editor button svg, #playerRosterForm button svg { width: 17px; height: 17px; flex-shrink: 0; }
.ws-portrait-editor { margin-top: 28px; border-top: 1px solid #D8DDD9; padding-top: 24px; }
#member-panel-player { padding: 0 24px 28px; }
#member-panel-player .ws-section-heading { margin: 16px 0; }
#member-panel-player .ws-section-heading h3 { font-size: 18px; margin: 0; }
.ws-field small { font-weight: 400; font-size: 12px; color: #65716B; }
.ws-photo-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ws-photo-inputs .ws-field { min-width: 0; }
.ws-photo-inputs input[type=file] { width: 100%; font-size: 12px; padding: 8px; }
.ws-photo-source, .ws-uniform-reference { display: grid; place-items: center; height: 176px; background: #EFF3F1; border: 1px solid #DAE1DC; border-radius: 4px; overflow: hidden; }
.ws-photo-source img, .ws-uniform-reference img { width: 100%; height: 100%; object-fit: contain; }
.ws-photo-source > svg, .ws-uniform-reference > svg { width: 34px; height: 34px; color: #819289; }
.ws-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.65; color: #47574F; cursor: pointer; }
.ws-consent input { width: 17px; height: 17px; margin: 3px 0 0; flex: 0 0 17px; accent-color: #147D73; }
.ws-consent span { min-width: 0; overflow-wrap: anywhere; }
.ws-current-portrait { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.ws-current-portrait img { width: 72px; height: 96px; object-fit: cover; border-radius: 4px; }
.ws-portrait-result { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; align-items: center; border-block: 1px solid #D8E4DE; background: #F1F7F3; padding: 20px; margin-bottom: 24px; }
.ws-portrait-result > img { width: 180px; height: 240px; object-fit: cover; border-radius: 4px; }
.ws-portrait-result p { font-size: 13px; color: #5B6A62; }
.ws-portrait-warning { display: flex; align-items: flex-start; gap: 10px; border-left: 3px solid #A47716; background: #FFF8E6; color: #604711; padding: 12px 14px; margin: 12px 0; font-size: 13px; line-height: 1.65; }
.ws-portrait-warning > svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; }
.ws-portrait-warning > div { min-width: 0; overflow-wrap: anywhere; }
.ws-portrait-warning strong { font-size: 13px; color: #604711; }
.ws-portrait-warning p { margin: 4px 0 0; color: #604711; }
.ws-portrait-warning ul { margin: 8px 0 0; padding-left: 18px; }
.ws-portrait-warning li + li { margin-top: 4px; }
.ws-photo-decisions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ws-portrait-progress { display: grid; gap: 10px; padding: 20px; margin-bottom: 20px; background: #EEF5F7; font-size: 13px; line-height: 1.6; }
.ws-portrait-progress progress { width: 100%; height: 6px; accent-color: #147D73; }
.ws-uniform-settings-preview { display: flex; gap: 20px; align-items: center; margin: 20px 0; }
.ws-uniform-settings-preview > img, .ws-uniform-settings-preview > svg { width: 104px; height: 128px; object-fit: contain; background: #EEF2EF; border-radius: 4px; padding: 8px; }
#portraitUniformForm { max-width: 620px; }
.ws-player-tools .ws-filter { max-width: 200px; }
.ws-player-settings button, #member-panel-player button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ws-player-settings input, .ws-player-settings select { min-width: 0; }
@media (max-width: 1280px) {
  .ws-player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .ws-player-grid { grid-template-columns: minmax(0, 1fr); }
  .ws-players-section .ws-section-heading { align-items: flex-start; gap: 12px; flex-direction: column; }
  .ws-player-card { grid-template-columns: 112px minmax(0, 1fr); padding: 16px; gap: 10px 14px; }
  .ws-player-photo { width: 112px; }
  .ws-group-list { grid-template-columns: minmax(0, 1fr); }
  .ws-group-form { grid-template-columns: minmax(0, 1fr) 64px; }
  .ws-group-form > button { min-height: 42px; }
  .ws-group-form > .ws-icon-button { justify-self: center; }
  #member-panel-player { padding: 0 16px 24px; }
  .ws-photo-inputs { gap: 12px; }
  .ws-photo-source, .ws-uniform-reference { height: 140px; }
  .ws-portrait-result { grid-template-columns: 1fr; padding: 16px; gap: 14px; }
  .ws-portrait-result > img { justify-self: center; }
  .ws-photo-decisions .ws-button { flex: 1; padding: 12px; }
  .ws-member-tabs { overflow-x: auto; }
  .ws-member-tabs button { white-space: nowrap; flex-shrink: 0; }
}
