/* Strong contrast is scoped to the player sheet; result colours keep their meaning. */
#player-dialog{background:#edf2f8;color:#102541;border:1px solid #6e87a7;box-shadow:0 24px 100px #07182b99}
#player-dialog .p-head{background:#102d50;color:#fff;border-bottom:2px solid #6d8fb8;padding:18px 22px;gap:14px;align-items:center}
#player-dialog .p-avatar{background:#fff;color:#102d50;border:1px solid #fff;font-weight:800;flex:none}
#player-dialog .p-identity{min-width:0;flex:1}
#player-dialog .p-key{color:#d5e2f4;font-weight:700;font-size:10px;letter-spacing:.8px}
#player-dialog .p-head h2{font-size:26px;font-weight:800;line-height:1.2;letter-spacing:-.4px;color:#fff;margin:4px 0 5px;overflow-wrap:anywhere}
#player-dialog .p-head p{font-size:12px;font-weight:500;line-height:1.5;color:#e0eaf7;margin:0}
#player-dialog .p-close{margin:0;display:grid;place-items:center;width:40px;height:40px;border:1px solid #bacce3;border-radius:5px;background:#fff;color:#102d50;font-size:26px}
#player-dialog .p-player-switch{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:7px;margin:0;flex:none;overflow:visible}
#player-dialog .p-player-switch>button{display:grid;place-items:center;border:1px solid #bacce3;background:#fff;color:#102d50;width:40px;height:40px;padding:7px;border-radius:5px;flex:none}
#player-dialog .p-player-switch svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
#player-dialog .p-player-switch>button:hover:not(:disabled),#player-dialog .p-close:hover{background:#dce9fa;border-color:#fff}
#player-dialog .p-player-switch>button:disabled{background:#244565;border-color:#7290af;color:#aabed4;cursor:default}
#player-dialog .p-player-count{text-align:center;min-width:56px;line-height:1.25}
#player-dialog .p-player-count strong{display:block;color:#fff;font-size:14px;font-weight:800;font-variant-numeric:tabular-nums}
#player-dialog .p-player-count small{display:block;color:#d5e2f4;font-size:10px;font-weight:600;margin-top:3px}
#player-dialog .p-head button:focus-visible{outline:3px solid #fff;outline-offset:3px}
#player-dialog .p-main{background:#edf2f8;padding:18px 22px 24px}
#player-dialog .p-tabs{background:#fff;border:1px solid #8299b6;border-radius:6px;gap:0;margin:0 0 15px;overflow:hidden;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
#player-dialog .p-tabs button{font-size:12px;font-weight:700;color:#233e60;background:#fff;border:0;border-right:1px solid #b5c4d6;min-height:42px;padding:10px 8px;line-height:1.4}
#player-dialog .p-tabs button:last-child{border-right:0}
#player-dialog .p-tabs button.active{background:#153e73;color:#fff;border-color:#153e73}
#player-dialog .p-tabs button:not(.active):hover{background:#e0eaf6}
#player-dialog :is(.p-filter-row label,.p-mobile-filters>summary){color:#233e60;font-size:11px;font-weight:700}
#player-dialog .p-filter-row{gap:10px;margin-bottom:12px}
#player-dialog :is(select,input:not([type="checkbox"])){background:#fff;color:#102541;border:1px solid #7c93b0;border-radius:5px;font-size:12px;font-weight:500;min-height:38px}
#player-dialog select:focus-visible,#player-dialog button:focus-visible,#player-dialog summary:focus-visible{outline:2px solid #153e73;outline-offset:2px}
#player-dialog .p-windows{margin:8px 0 12px;gap:6px}
#player-dialog .p-windows button{background:#fff;color:#183b64;border:1px solid #7c93b0;border-radius:4px;font-size:12px;font-weight:700;min-height:34px;padding:6px 11px}
#player-dialog .p-windows button.active{background:#153e73;border-color:#153e73;color:#fff}
#player-dialog .p-windows .text-button{text-decoration:underline;text-underline-offset:3px}
#player-dialog .p-progress{font-size:11px;color:#304b6b;line-height:1.5;font-weight:500}
#player-dialog :is(.p-info,.p-chart-note,.p-hover,.p-method,.p-news-legend,.p-allowed-title span){color:#344e70;font-size:11px;line-height:1.6}
#player-dialog .p-summary{gap:9px;margin:12px 0}
#player-dialog .p-stat{background:#fff;border:1px solid #7189a7;border-top:3px solid #153e73;border-radius:6px;padding:12px 13px}
#player-dialog .p-stat label{color:#2c4564;font-size:11px;font-weight:700;margin-bottom:5px;line-height:1.4}
#player-dialog .p-stat strong{color:#102d50;font-size:29px;font-weight:800;line-height:1.2;letter-spacing:-.6px}
#player-dialog .p-stat small{color:#3b5270;font-size:10px;font-weight:500;line-height:1.5;margin-top:5px}
#player-dialog :is(.p-chart-head h3,.p-analysis-card h3,.p-context h3,.p-allowed-title h3){color:#102d50;font-size:14px;font-weight:800}
#player-dialog .p-source-line{background:#153e73;color:#fff;border:1px solid #153e73;font-size:11px;font-weight:700;padding:7px 10px;border-radius:4px}
#player-dialog .p-chart-scroll{background:#fff;border:1px solid #7189a7;border-radius:6px}
#player-dialog .p-chart-svg text{fill:#2d4766}
#player-dialog .p-chart-svg .p-axis-label{fill:#17395f;font-weight:600}
#player-dialog .p-chart-svg .p-value{fill:#17395f;font-size:11px;font-weight:600}
#player-dialog .p-chart-svg .p-grid{stroke:#dce4ef}
#player-dialog .p-chart-svg .p-reference{stroke:#163d6c;stroke-width:1.6}
#player-dialog .p-trends span{background:#fff;border:1px solid #7189a7;color:#2b4565;font-size:11px;border-radius:4px;padding:6px 9px}
#player-dialog .p-trends strong{color:#102d50;font-weight:800}
#player-dialog :is(.p-context,.p-analysis-card){background:#fff;border:1px solid #7189a7;border-radius:6px;padding:13px;margin-top:0}
#player-dialog .p-context{margin-top:12px}
#player-dialog :is(.p-context p,.p-context-row,.p-context small,.p-analysis-card p){color:#304b6b;font-size:12px;line-height:1.65}
#player-dialog .p-context-track{background:#d7e1ef}
#player-dialog .p-context-track span{background:#244e7f}
#player-dialog .p-context-row.league .p-context-track span{background:#7a94b4}
#player-dialog .p-verdict{border:1px solid #8299b6;border-left:4px solid var(--rank-color,#153e73);background:#fff;color:#102d50}
#player-dialog .p-verdict strong{color:#102d50;font-size:17px}
#player-dialog .p-verdict span{color:#304b6b;font-size:11px}
#player-dialog .rank-chip small{color:#304b6b;font-size:10px;font-weight:600}
#player-dialog .rank-chip strong{color:#102d50;font-weight:800}
#player-dialog :is(.p-log-details,.p-method){background:#fff;border:1px solid #7189a7;border-radius:6px;padding:11px 12px;margin-top:12px}
#player-dialog :is(.p-log-details,.p-method)>summary{font-size:12px;font-weight:700;color:#183b64;cursor:pointer;line-height:1.5}
#player-dialog .p-log-table table{font-size:12px}
#player-dialog .p-log-table th{background:#153e73;color:#fff;border-color:#153e73;font-size:10px;font-weight:700}
#player-dialog .p-log-table td{color:#1f3a5b;border-bottom:1px solid #acbdd2}
#player-dialog .p-log-table tr:nth-child(even){background:#edf2f8}
#player-dialog a{color:#123d72;font-weight:600;text-underline-offset:3px}
#player-dialog .p-news{background:#fff;border:1px solid #7189a7;border-left-width:4px;border-radius:5px;padding:11px 13px}
#player-dialog .p-news.red{border-left-color:#b3233e}
#player-dialog .p-news.yellow{border-left-color:#8f680a}
#player-dialog .p-news.blue{border-left-color:#164b83}
#player-dialog .p-news h3{color:#102d50;font-size:13px;font-weight:800}
#player-dialog .p-news p{color:#304b6b;font-size:12px}
#player-dialog .p-news small{color:#405875;font-size:11px}
#player-dialog .p-news.red .p-badge{color:#8b1830;background:#fce8ed}
#player-dialog .p-news.yellow .p-badge{color:#674900;background:#fff1c7}
#player-dialog .p-news.blue .p-badge{color:#143d69;background:#e2edfb}
#player-dialog .p-news.gray .p-badge{color:#334b68;background:#e7edf5}
#player-dialog .p-empty{background:#fff;color:#304b6b;border:1px solid #7189a7;font-size:12px}
#player-dialog .p-error{background:#fff1f3;color:#8b1830;border-color:#c78695}
@media(max-width:700px){
 #player-dialog{border:0}
 #player-dialog .p-head{display:grid;grid-template-columns:34px minmax(0,1fr) 44px;padding:12px 14px;gap:9px 10px}
 #player-dialog .p-avatar{width:34px;height:34px;font-size:12px;grid-column:1;grid-row:1}
 #player-dialog .p-identity{grid-column:2;grid-row:1}
 #player-dialog .p-head h2{font-size:21px;line-height:1.18;margin:3px 0 4px}
 #player-dialog .p-key{font-size:8px;letter-spacing:.5px}
 #player-dialog .p-head p{font-size:11px}
 #player-dialog .p-close{grid-column:3;grid-row:1;width:44px;height:44px;align-self:start}
 #player-dialog .p-player-switch{grid-column:1/-1;grid-row:2;justify-content:space-between;gap:10px}
 #player-dialog .p-player-switch>button{width:48px;height:44px}
 #player-dialog .p-player-count{flex:1;display:flex;gap:8px;align-items:baseline;justify-content:center}
 #player-dialog .p-player-count small{font-size:10px;margin:0}
 #player-dialog .p-main{padding:12px 12px 24px}
 #player-dialog .p-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
 #player-dialog .p-tabs button{min-height:44px;border-bottom:1px solid #b5c4d6}
 #player-dialog .p-tabs button:nth-child(2n){border-right:0}
 #player-dialog .p-tabs button:nth-child(n+3){border-bottom:0}
 #player-dialog .p-windows button{min-height:40px;padding:7px 11px}
 #player-dialog select{font-size:16px;min-height:44px}
 #player-dialog .p-stat{padding:10px 8px}
 #player-dialog .p-stat label{font-size:10px}
 #player-dialog .p-stat strong{font-size:25px}
 #player-dialog .p-stat small{font-size:10px}
 #player-dialog .p-summary{gap:6px}
 #player-dialog .p-chart-head{gap:8px;flex-wrap:wrap}
 #player-dialog .p-chart-head h3{font-size:13px}
 #player-dialog .p-log-details>summary,#player-dialog .p-method>summary{min-height:28px}
}
@media(prefers-reduced-motion:reduce){#player-dialog *{scroll-behavior:auto}}
