#player-analysis-v1 { margin: 1.25rem 0; min-width:0; }
.pa-controls { display:flex; flex-wrap:wrap; gap:.65rem; margin:.8rem 0; }
.pa-controls label { display:flex; flex-direction:column; flex:1 1 145px; min-width:0; }
.pa-controls select,.pa-controls input { width:100%; max-width:100%; min-width:0; }
.pa-summaries { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
.pa-summaries article { border:1px solid var(--border,#455365); border-radius:10px; padding:.8rem; overflow-wrap:anywhere; }
.pa-card-head,.pa-empty-card,.pa-picker-head { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:.6rem; }
.pa-card-head div,.pa-empty-card div { display:grid; gap:.25rem; }
.pa-card-head strong { font-size:1.2rem; }
.pa-card-head button,.pa-empty-card button { min-height:36px; padding:.4rem .7rem; }
.pa-card-head small,.pa-stats dt,.pa-stats small,.pa-empty-card small,.pa-basis { color:var(--muted,#627084); }
.pa-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.45rem; margin:.85rem 0 0; }
.pa-stats dt,.pa-stats small { font-size:.77rem; }
.pa-stats dd { margin:.1rem 0; font-size:1.25rem; font-weight:700; }
.pa-load-status { margin:.25rem 0; }
.pa-load-status:empty { display:none; }
.pa-basis { display:block; margin-top:.45rem; }
.pa-primary label { flex:0 1 160px; }
.pa-more,.pa-game-log,.pa-leader-section { margin:.55rem 0; border-top:1px solid var(--border,#ccd2da); padding:.55rem 0; }
#player-analysis-v1 summary { cursor:pointer; font-weight:650; }
.pa-picker { width:min(34rem,calc(100% - 1.5rem)); max-height:85vh; padding:1rem; border:1px solid var(--border,#ccd2da);
  border-radius:12px; color:var(--ink,#162334); background:var(--panel,#fff); }
.pa-picker::backdrop { background:rgba(15,23,42,.52); }
.pa-picker-head h4 { margin:.35rem 0; }
.pa-picker label { display:grid; gap:.25rem; margin:.55rem 0; }
.pa-picker input { width:100%; min-width:0; }
.pa-picker-groups { display:flex; gap:.4rem; flex-wrap:wrap; }
.pa-picker-groups [aria-pressed="true"] { outline:2px solid currentColor; outline-offset:-2px; }
.pa-picker-results { display:grid; gap:.3rem; margin:.6rem 0; max-height:44vh; overflow:auto; }
.pa-picker-results button { display:grid; gap:.15rem; text-align:left; white-space:normal; min-width:0; }
.pa-picker-results small { color:var(--muted,#627084); }
.signal-compare-row { display:flex; gap:.35rem; min-width:0; align-items:center; }
.signal-compare-row .beacon-signal-row,.trade-player-link .partner-player { flex:1; min-width:0; }
.trade-player-link { display:flex; gap:.25rem; align-items:center; }
.signal-compare-action { font-size:.77rem; white-space:nowrap; padding:.3rem .45rem; }
.pa-scroll { overflow:auto; max-width:100%; }
.pa-scroll svg { width:100%; max-height:300px; color:inherit; }
.pa-scroll svg text { fill:currentColor; font-size:12px; }
.pa-0 { fill:#65b5ef; }
.pa-1 { fill:#e9ad61; stroke:currentColor; stroke-dasharray:3 2; }
.pa-weekly { width:100%; margin:1rem 0; min-width:0; }
.pa-weekly figcaption { font-weight:700; margin-bottom:.35rem; }
.pa-weekly svg { display:block; width:100%; color:inherit; }
.pa-weekly svg text { fill:currentColor; font-size:11px; }
.pa-weekly [data-pa-series="0"] { --pa-series:#2563a5; }
.pa-weekly [data-pa-series="1"] { --pa-series:#a45216; }
.pa-chart-legend { display:flex; flex-wrap:wrap; gap:.25rem .85rem; font-size:.82rem; margin-bottom:.25rem; }
.pa-chart-legend b { color:var(--pa-series); }
.pa-weekly .pa-axis,.pa-weekly .pa-grid { stroke:currentColor; opacity:.35; }
.pa-weekly .pa-grid { opacity:.15; }
.pa-weekly .pa-bar { fill:var(--pa-series); fill-opacity:.48; }
.pa-weekly .pa-alt-bar { fill:none; stroke:var(--pa-series); }
.pa-weekly .pa-line { fill:none; stroke:var(--pa-series); stroke-width:2.25; stroke-linejoin:round; }
.pa-weekly .pa-line[data-pa-series="1"] { stroke-dasharray:5 3; }
.pa-weekly .pa-dot { fill:var(--pa-series); }
.pa-weekly [data-pa-week] { cursor:pointer; outline:none; }
.pa-weekly [data-pa-week] rect { fill:transparent; }
.pa-weekly [data-pa-week]:hover rect,.pa-weekly [data-pa-week]:focus rect { fill:currentColor; fill-opacity:.08; }
.pa-weekly [data-pa-week]:focus-visible rect { stroke:currentColor; stroke-width:1; }
.pa-chart-value { font-size:.82rem; min-height:2.5em; margin:.25rem 0 0; overflow-wrap:anywhere; }
.pa-scroll table { border-collapse:collapse; width:100%; font-size:.85rem; }
.pa-scroll th,.pa-scroll td { padding:.45rem; text-align:left; }
.pa-scroll button { white-space:normal; }
@media(max-width:600px) { .pa-summaries {grid-template-columns:1fr;} #player-analysis-v1 {width:100%;} }
@media(max-width:600px) {
 .pa-primary label {flex:1 1 44%;font-size:.78rem;}
 .pa-primary label:has(#pa-preset) {flex-basis:100%;}
 .signal-compare-row { flex-wrap:wrap; }
 .signal-compare-row .beacon-signal-row { flex-basis:100%; }
 #pa-leaders table {table-layout:fixed;font-size:.75rem;}
 #pa-leaders td,#pa-leaders th {padding:.25rem;overflow-wrap:anywhere;}
 #pa-leaders button {width:100%;padding:.3rem;font-size:.75rem;min-width:0;}
 #pa-leaders th:nth-child(1) {width:9%;} #pa-leaders th:nth-child(2) {width:27%;}
 #pa-leaders th:nth-child(3) {width:14%;} #pa-leaders th:nth-child(4) {width:12%;}
 #pa-leaders th:nth-child(5) {width:16%;} #pa-leaders th:nth-child(6) {width:22%;}
}
.pa-production { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 16px; padding:12px 0; border-top:1px solid var(--line); font-size:.85rem; }
.pa-production>small { grid-column:1/-1; }
.pa-production>div { display:flex; flex-direction:column; gap:4px; min-width:0; overflow-wrap:anywhere; }
.pa-production small { color:var(--muted); }
@media(max-width:600px) { .pa-production {grid-template-columns:1fr;} }
