/* Personal and league analytics share the established V3 desk components. */
.insight-page {position:relative;isolation:isolate;padding:12px;border-radius:8px;font-family:"Segoe UI",Arial,sans-serif;color:#10245f;--v3-text:#10245f;--v3-muted:#536898}
.insight-page::before {content:"";position:absolute;z-index:-1;inset:-24px -24px auto;height:410px;background:linear-gradient(180deg,#cedbe6 0%,#e5ecf1 38%,#f3f5f800 100%);pointer-events:none}
.insight-page h1,.insight-page h2,.insight-page h3 {font-family:"Segoe UI",Arial,sans-serif;color:#07194f;letter-spacing:-.025em}
.insight-page .muted {color:#536898}
.insight-page .insight-positive {color:#078452;font-weight:600}
.insight-page .insight-negative {color:#d13b50;font-weight:600}
.insight-page .desk-table thead th {background:#f0f5ff;color:#243d79}
.insight-page .insight-clubs tbody th {color:#21418d}
.insight-page .insight-column .insight-picks {min-width:0;width:100%;table-layout:fixed;font-size:.72rem}
.insight-picks th:first-child {width:38%}.insight-picks th:nth-child(2) {width:30%}
.insight-picks td {white-space:normal;overflow-wrap:anywhere;vertical-align:middle}
.insight-picks td:nth-child(2) {text-align:center}
.insight-fixture-away,.insight-pick-caption {display:block}
.insight-pick-caption {color:#2369de;font-size:.6rem;margin-top:4px}
.insight-picks .insight-picked {background:linear-gradient(135deg,#5194ff,#2670ed);color:white;box-shadow:0 3px 7px #266eee26;white-space:normal}
.insight-column .insight-metrics > div {border-top:3px solid #4f8ff1;background:#f0f6ff}
.insight-column .insight-metrics [data-metric="Correct"] {border-color:#10b981;background:#eafff4;color:#04764b}
.insight-column .insight-metrics [data-metric="Incorrect"] {border-color:#f05b70;background:#fff0f2;color:#c33147}
.insight-column .insight-metrics [data-metric="Draws"] {border-color:#8491ad;background:#f1f3f8;color:#536078}
.insight-column .insight-metrics [data-metric="Net"] {background:#e9efff;color:#174ed1}
.insight-performance,.insight-recent {border:1px solid #e1eafb;border-radius:7px;padding:10px;margin-top:16px;background:linear-gradient(135deg,#fff,#f8fbff)}
.insight-performance-chart {display:block;width:100%;height:220px;font:10px "Segoe UI",Arial,sans-serif;fill:#536898}
.insight-recent-content {display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.insight-form-tiles {display:flex;gap:9px;flex-wrap:wrap}
.insight-form-tiles > div {text-align:center}
.insight-form-tiles .insight-result {width:34px;height:34px;border-radius:7px;font-size:.95rem}
.insight-form-tiles small,.insight-recent-total small {display:block;color:#536898;font-size:.65rem;margin-top:7px}
.insight-recent-total strong {font-size:.9rem;color:#10245f}
.insight-page .insight-column .insight-matrix {min-width:350px;width:100%;font-size:.67rem;table-layout:auto;border-collapse:separate;border-spacing:2px}
.insight-page .insight-matrix th,.insight-page .insight-matrix td {padding:8px 3px;text-align:center;border:0;white-space:nowrap;overflow-wrap:normal}
.insight-matrix td small {display:block;font-size:.6rem}
.insight-page .insight-matrix--win {background:#e1f8ed;color:#078452;border-radius:4px}
.insight-page .insight-matrix--loss {background:#fff0f2;color:#b93249;border-radius:4px}
.insight-page .insight-matrix--draw {background:#eef3ff;color:#37518e;border-radius:4px}
.insight-h2h-details {margin-top:12px;font-size:.75rem}
.insight-h2h-details summary {cursor:pointer;color:#2364cb}
.insight-chart-legend > span {font-size:.75rem}
.insight-page .insight-column .insight-weekly-results {min-width:340px;width:100%;font-size:.62rem;table-layout:auto}
.insight-page .insight-weekly-results th,.insight-page .insight-weekly-results td {padding:6px 3px;text-align:center;white-space:nowrap}
.insight-page .insight-weekly-results thead th {font-size:.55rem;letter-spacing:0}
.insight-page .insight-weekly-results tbody {font-size:.67rem}
.insight-page .insight-weekly-results tbody td:nth-child(2) {text-align:left}
.insight-page .insight-weekly-results .insight-opponent-group {background:#e9f5ef;color:#176544}
.insight-weekly-results tbody td:nth-child(7) {border-left:1px solid #dce7f6}
.insight-dossier-grid,.insight-league-grid {display:grid;grid-template-columns:1fr 1.12fr 1fr;gap:14px;align-items:start}
.insight-column {min-width:0;display:grid;gap:14px}
.insight-page .insight-player-name {font:600 .9rem var(--v3-font);margin:12px 0}
.insight-page .insight-player-picker {margin:8px 0;display:flex;justify-content:flex-end}
.insight-column .insight-placeholder {background:linear-gradient(130deg,#edf4ff,#f9fbff);min-height:160px}
.insight-picked {display:inline-block;flex-shrink:0;background:#e3edff;color:#17468a;border-radius:5px;padding:6px 8px;font-weight:600;font-size:.7rem}
.insight-page .insight-column .insight-section {margin:0;padding:16px;border:1px solid #dce7f6;box-shadow:none;border-radius:7px}
.insight-column .desk-table {min-width:440px;font-size:.72rem}
.insight-column [aria-label="Head-to-head meetings"] .desk-table,.insight-column [aria-label="Recent league form"] .desk-table {min-width:0}
.insight-column [aria-label="Club records"] .desk-table {min-width:340px;font-size:.65rem}
.insight-column .desk-table th,.insight-column .desk-table td {padding:8px 6px}
.insight-column .insight-metrics {grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.insight-column .insight-metrics > div {padding:10px 6px;border:1px solid #e5edf8;background:#f8fbff;border-radius:7px}
.insight-column .insight-metrics dd {font-size:1.2rem}
.insight-column .insight-leaders {grid-template-columns:1fr 1fr;gap:8px}
.insight-column .insight-leaders article {background:#f5f8fd;border:1px solid #e3ebf6;border-radius:6px;padding:10px}
.insight-column .insight-leaders strong {font-size:.95rem}
.insight-column .insight-chart {height:250px}
.insight-column .insight-filters {gap:8px;display:grid;grid-template-columns:1fr 1fr}
.insight-column .insight-section h2 {font-size:1.05rem}
.insight-matchup-pair {display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}
.insight-matchup-pair article {padding:14px 10px;border:1px solid #e3ebf6;border-radius:8px;background:#f8fbff;text-align:center}
.insight-avatar {display:flex;margin:0 auto 10px;width:44px;height:44px;align-items:center;justify-content:center;border-radius:50%;background:#dcf5e9;color:#176544;font-weight:700;font-size:1.3rem}
.insight-matchup-pair article:nth-child(2) .insight-avatar {background:#f2eadd;color:#8c5c20}
.insight-matchup-pair strong,.insight-matchup-pair small {display:block}
.insight-matchup-pair small {font-size:.7rem;color:var(--v3-muted);margin-top:4px}
.insight-matchup-pair dl {display:flex;justify-content:space-around;gap:8px;margin:18px 0 0}
.insight-matchup-pair dd {margin:0;font-weight:700}.insight-matchup-pair dt {font-size:.65rem;color:var(--v3-muted)}
.insight-overview {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:16px 0}
.insight-overview article {display:flex;gap:12px;align-items:center;padding:18px;border:1px solid #dce7f6;border-radius:7px;background:#fbfdff}
.insight-overview strong {font-size:1.4rem}.insight-overview small {display:block;font-size:.75rem;color:var(--v3-muted)}
.insight-stat-mark {display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:#e5efff;color:#2469d2;font-size:1.5rem}
@media(max-width:1100px) {.insight-dossier-grid,.insight-league-grid {grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.insight-column:last-child {grid-column:1/-1}}
@media(max-width:760px) {.insight-page::before {inset:-16px -16px auto}}
@media(max-width:700px) {.insight-page {padding:0}.insight-dossier-grid,.insight-league-grid {grid-template-columns:minmax(0,1fr)}.insight-overview {grid-template-columns:repeat(2,minmax(0,1fr))}.insight-overview article {padding:12px}.insight-column:last-child {grid-column:auto}}
.insight-page .insight-section {margin:18px 0;padding:20px}
.insight-section h2 {margin:0;font-size:1.2rem}
.insight-section h3 {font-size:.95rem;margin:12px 0 8px}
.insight-section > p {font-size:.85rem;margin:6px 0 16px}
.insight-section a {font-size:.85rem}
.insight-placeholder {background:#f6f8fb}
.insight-player-name {font:700 1.7rem Georgia,serif;margin:20px 0}
.insight-player-name small {font:400 .8rem var(--v3-font);color:var(--v3-muted);margin-left:12px}
.insight-filters {display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:16px 0}
.insight-filters label {display:flex;flex-direction:column;gap:4px;font-size:.75rem;min-width:0}
.insight-filters select,.insight-filters button {font:inherit;font-size:.8rem;border:1px solid var(--v3-border);border-radius:6px;padding:8px 10px;background:white;color:var(--v3-text);max-width:100%}
.insight-filters button {background:var(--v3-navy);color:white;cursor:pointer}
.insight-metrics {display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:14px;margin:20px 0}
.insight-metrics dt {font-size:.75rem;color:var(--v3-muted)}
.insight-metrics dd {margin:4px 0 0;font-size:1.5rem;font-weight:700}
.insight-section .insight-note {font-size:.75rem;color:var(--v3-muted);margin:12px 0}
.insight-form {display:inline-flex;gap:5px;align-items:center}
.insight-result {display:inline-flex;width:25px;height:25px;align-items:center;justify-content:center;border-radius:50%;font-size:.7rem;font-weight:700}
.insight-result--w {background:#e1f1e8;color:#176544}
.insight-result--l {background:#fbe7e9;color:#a03240}
.insight-result--d {background:#e9edf4;color:#496079}
.insight-leaders {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px}
.insight-leaders article {padding:12px 0;border-top:1px solid var(--v3-border)}
.insight-leaders h3 {font-size:.75rem;color:var(--v3-muted);font-weight:500;margin:0 0 6px}
.insight-leaders strong {font-size:1.2rem}
.insight-leaders p {font-size:.8rem;margin:6px 0}
.insight-chart-legend {display:flex;flex-wrap:wrap;gap:10px 18px;margin:16px 0}
.insight-key {display:inline-block;width:18px;height:3px;background:var(--series-color)}
.insight-chart {display:block;width:100%;height:300px;font:12px var(--v3-font);color:var(--v3-muted)}
.insight-chart text {fill:currentColor}
.insight-chart-grid {stroke:#e5eaf0;stroke-width:1}
.insight-chart-data {margin-top:12px;font-size:.8rem}
.insight-chart-data summary {cursor:pointer;margin:8px 0}
.insight-empty {padding:30px 8px;text-align:center;color:var(--v3-muted)}
.insight-briefs {margin:0;padding-left:1.1rem;font-size:.86rem;line-height:1.45}
.insight-briefs li + li {margin-top:12px}
.insight-briefs strong {font-size:.8rem}
.insight-briefs p {margin:4px 0 0}
@media(max-width:900px) {.insight-metrics {grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px) {
 .insight-page .insight-section {padding:14px}
 .insight-metrics {gap:16px 8px}
 .insight-metrics dd {font-size:1.15rem}
 .insight-leaders {grid-template-columns:minmax(0,1fr)}
 .insight-filters {display:grid;grid-template-columns:1fr 1fr;gap:10px}
 .insight-filters button {min-height:36px}
 .insight-form {gap:3px}
 .insight-result {width:22px;height:22px}
}
