.players-editor {max-width: 850px; width:100%;}
.players-grid {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 20px;}
.player-slot {position:relative; min-width:0;}
.player-slot > label {display:block; margin-bottom:7px; font-weight:700;}
.player-input-shell {min-height:46px;}
.player-input-shell input {width:100%; box-sizing:border-box; min-height:46px;}
.player-chip {display:flex; align-items:center; gap:9px; min-height:46px; border:1px solid var(--edge-line,#d8dfe7); border-radius:8px; padding:5px 9px; box-sizing:border-box; background:var(--edge-surface,#fff); color:inherit;}
.player-chip span {overflow-wrap:anywhere; flex:1;}
.player-chip img,.player-results img {width:28px; height:28px; border-radius:50%; object-fit:cover;}
.player-chip button {border:0; background:transparent; color:inherit; font-size:24px; padding:0 6px; cursor:pointer; min-width:30px;}
.player-results {position:absolute; z-index:35; top:77px; width:100%; max-height:270px; overflow:auto; border:1px solid var(--edge-line,#d8dfe7); border-radius:9px; background:var(--edge-surface,#fff); color:inherit; box-shadow:0 10px 30px #0002;}
.player-results button {display:flex; align-items:center; gap:9px; width:100%; padding:11px; text-align:left; border:0; background:transparent; color:inherit; cursor:pointer; box-sizing:border-box;}
.player-results button:hover,.player-results button[aria-selected="true"] {background:#e31b2312;}
.player-search-status {display:block; min-height:18px; font-size:12px; color:var(--edge-muted,#66758b); padding-top:3px;}
.player-editor-hint {display:block; margin-top:12px;}
.players-editor [hidden],.completion-editor [hidden] {display:none!important;}
.completion-editor {margin-bottom:20px;}
.run-players-fieldset,.completion-editor {border:0; padding:0; margin:20px 0 28px; min-width:0;}
.run-players-fieldset legend {font-weight:700; margin-bottom:15px;}
.completion-editor legend {font-weight:700; margin-bottom:8px;}
.completion-modes {display:flex; gap:8px; flex-wrap:wrap; margin:8px 0 15px;}
.completion-modes label {display:flex; align-items:center; gap:7px; padding:9px 14px; border:1px solid var(--edge-line,#d8dfe7); border-radius:8px; cursor:pointer;}
.completion-modes label:has(input:checked) {background:#e31b2312; border-color:#e31b23;}
.completion-modes input {width:auto!important; min-height:auto!important; margin:0;}
.completion-custom {display:flex; gap:14px; align-items:center; flex-wrap:wrap;}
.completion-custom label {display:block; margin-bottom:6px;}
.completion-custom input {width:auto; min-width:155px; color-scheme:light;}
.completion-zone {font-size:13px; color:var(--edge-muted,#66758b);}
.run-players {display:inline-flex; align-items:center; flex-wrap:wrap; gap:6px;}
html[data-theme="dark"] .player-chip,html[data-theme="dark"] .player-results {background:#211f2c; border-color:#48434f; color:#eee8f3;}
html[data-theme="dark"] .player-results button:hover,html[data-theme="dark"] .player-results button[aria-selected="true"] {background:#ec85ae25;}
html[data-theme="dark"] .completion-modes label {border-color:#48434f;}
html[data-theme="dark"] .completion-modes label:has(input:checked) {background:#ec85ae20; border-color:#ec85ae;}
html[data-theme="dark"] .completion-custom input {color-scheme:dark;}
body:not(.runner-ui) .players-editor {color:var(--body-fg,#333);}
body:not(.runner-ui) .player-chip,body:not(.runner-ui) .player-results {background:var(--body-bg,#fff); border-color:var(--hairline-color,#ddd); color:var(--body-fg,#333);}
@media(max-width:620px) {.players-grid {grid-template-columns:1fr;}.completion-custom {gap:12px;} .completion-custom input {max-width:100%;}}
