/* Shared product rhythm: readable figures, a single active view and clear actions. */
body{font-family:"Segoe UI","Microsoft YaHei UI","Microsoft YaHei",sans-serif}
button,input,select,textarea{font-family:inherit}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #2563eb;outline-offset:3px}
.product-view-hidden{display:none!important}
.tactical-views{display:flex;gap:6px;padding:5px;background:#eaf0f8;border:1px solid #e0e8f3;border-radius:11px;margin:0 0 18px;max-width:100%;overflow-x:auto;scrollbar-width:thin}
.tactical-views button{border:0;background:transparent;color:#4c637d;padding:11px 24px;min-height:46px;white-space:nowrap;font-size:17px;font-weight:500;border-radius:7px;cursor:pointer;flex:1}
.tactical-views button:hover{background:#f8faff;color:#245fc3}
.tactical-views button[aria-selected=true]{background:#fff;color:#174fb7;box-shadow:0 2px 5px #22456c0e;font-weight:600}
#workspace .product-secondary-panel[data-tactical-pane]{margin-top:0;overflow:visible}
#workspace .product-secondary-panel[data-tactical-pane]>summary[hidden]{display:none}
#workspace .product-secondary-panel[data-tactical-pane]>.card{margin:0}
#workspace .tactics-method{margin:8px 0 0;color:#566c84;font-size:15px}
.tactics-method>summary,.research-calculation>summary{cursor:pointer;min-height:32px;display:list-item}
#workspace .tactics-method .card-footnote{margin:6px 0 0}
#tacticalMatchPanels{padding:0 22px 20px}
#tacticalMatchPanels .annotation-analysis{margin-top:0}
#tacticalMatchPanels .annotation-panel:first-child{border-top:0}
#workspace #tacticsReportView #teamsPanel{margin:18px 0 0}
.tactics-summary-card[hidden]{display:none}
#workspace #researchCard .research-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:24px}
#researchCard .research-layout>div{min-width:0}
#researchCard .research-summary{gap:0;border:1px solid #dfE7f2;border-radius:10px;overflow:hidden;margin:18px 0 24px;background:#f8faff}
#researchCard .research-stat{border:0;border-radius:0;border-right:1px solid #dfe7f2;padding:14px 18px;background:transparent}
#researchCard .research-stat:last-child{border-right:0}
#researchCard .research-stat b{font-size:28px;line-height:1.4;font-variant-numeric:tabular-nums;color:#235fae}
#researchCard .research-stat span{color:#526c86;line-height:1.5}
#researchCard .research-controls select{flex:1 0 190px;min-width:190px;max-width:280px;margin:0}
#researchCard .research-layout h3{font-size:20px;margin:0 0 12px}
#researchActions{max-height:470px;scrollbar-width:thin;border:1px solid #e2e9f2;border-radius:9px;overscroll-behavior:contain}
#researchActions table{table-layout:fixed;min-width:0;width:100%;font-size:15px}
#researchActions th{position:sticky;top:0;background:#f5f8fc;z-index:1;font-size:14px;white-space:normal;line-height:1.5;padding:10px 12px}
#researchActions th:first-child{width:39%}
#researchActions th:nth-child(2){width:21%}
#researchActions td{padding:11px 12px;vertical-align:middle;font-variant-numeric:tabular-nums}
#researchActions td:not(:first-child),#researchActions th:not(:first-child){text-align:right}
#researchActions .research-pass-select{display:flex;flex-direction:column;gap:4px;width:100%;min-height:44px}
#researchActions time{font-variant-numeric:tabular-nums;color:#60758e;font-size:14px}
#researchActions .team-player{font-size:15px;max-width:100%;overflow-wrap:anywhere;text-align:left}
#researchCard .research-pass-selection{display:block;background:#f8faff;border-color:#dce6f3;padding:14px 16px}
#researchCard .research-pass-selection[hidden]{display:none}
.research-selection-heading{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}
#researchCard .research-selection-tools{flex-wrap:wrap;justify-content:flex-end;max-width:180px}
#researchCard .research-selection-tools .icon-button{font-size:22px;min-width:32px;min-height:34px}
.research-selected-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px;margin:14px 0 0;padding-top:12px;border-top:1px solid #e0e8f4}
.research-selected-metrics dt{font-size:14px;color:#61758b;line-height:1.5}
.research-selected-metrics dd{font-size:17px;font-weight:600;color:#254663;margin:3px 0 0;font-variant-numeric:tabular-nums}
.research-calculation{margin-top:10px;font-size:15px;color:#60748c}
.roster-filters{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 20px 16px;flex-wrap:wrap}
.roster-team-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.roster-team-buttons>button{display:flex;align-items:center;gap:12px;background:#fff;color:#526b82;border:1px solid #dce5ef;border-radius:8px;min-height:42px;padding:7px 13px;font-size:15px;cursor:pointer}
.roster-team-buttons>button[aria-pressed=true]{border-color:#95b7ec;background:#eef4ff;box-shadow:inset 0 0 0 1px #b7cff1}
.roster-team-buttons b{font-size:14px;font-weight:500;color:#61758b;font-variant-numeric:tabular-nums}
#workspace .players-card .table-scroll{max-height:calc(100dvh - 260px);min-height:250px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.players-card thead th{position:sticky;top:0;z-index:1;background:#f4f7fb;font-weight:500}
#playersTable tr[data-player-id]{cursor:pointer}
#playersTable td{height:69px;font-variant-numeric:tabular-nums}
#playersTable td:nth-child(n+3):nth-child(-n+6){text-align:right}
.players-card thead th:nth-child(n+3):nth-child(-n+6){text-align:right}
#playersTable .coverage{justify-content:flex-end}
#playersTable .link-button{font-size:15px;color:#245fbe;white-space:nowrap;text-decoration:none;min-height:40px;padding:7px 10px;border-radius:6px}
#playersTable tr:hover .link-button{background:#e9f1ff}
.profile-browser{display:flex;align-items:center;gap:5px;border:1px solid #dce5f0;border-radius:8px;padding:0 4px;margin-right:6px;font-size:14px;color:#60748a;white-space:nowrap;font-variant-numeric:tabular-nums}
.profile-browser .icon-button{font-size:25px;min-width:33px;min-height:38px}
#profileContent .profile-tabs{position:sticky;top:var(--profile-sticky-top,100px);z-index:1;background:#fff;padding:6px 0 0;overflow-x:auto;white-space:nowrap;scrollbar-width:thin}
#profileContent .profile-meta .badge{border:0;background:transparent;padding:0 12px 0 0;border-right:1px solid #dce5f0;border-radius:0;font-size:14px}
#profileContent .profile-meta .badge:last-child{border-right:0}
#profileContent .profile-meta .badge.warning{background:#fff6e8;border:1px solid #edd3a8;padding:2px 8px;border-radius:5px}
.profile-dialog{height:94dvh;scrollbar-width:thin;overscroll-behavior:contain}
.profile-header{scroll-margin-top:0}
#profileContent .profile-content{background:#fff}
.club-insight .club-evidence-links{gap:8px}
.club-summary strong,.team-summary-values strong,.stat-value{font-variant-numeric:tabular-nums}
@media(min-width:761px){#workspace .workspace-heading{scroll-margin-top:14px}.players-card .table-tools{gap:8px}.players-card .table-tools #playerSearch{max-width:210px}}
@media(max-width:1150px){#workspace #researchCard .research-layout{grid-template-columns:1fr}.research-pitch-column{max-width:750px;width:100%;margin:auto}#researchActions{max-height:420px}.profile-actions{flex-wrap:wrap}.tactical-views button{padding:10px 15px}}
@media(max-width:760px){.tactical-views{gap:3px}.tactical-views button{font-size:16px;padding:10px 14px;flex:none}.roster-filters{padding:0 16px 14px}#workspace .players-card .table-scroll{max-height:none;min-height:0}#playersTable td{height:auto}#playersTable td:nth-child(n+3):nth-child(-n+6){text-align:left}#researchCard .research-stat{padding:12px 14px}.research-selected-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.research-selection-heading{flex-wrap:wrap}#researchCard .research-selection-tools{max-width:none}#researchActions th,#researchActions td{padding:10px 7px}.profile-browser{margin-right:auto}#tacticalMatchPanels{padding:0 16px 16px}#profileContent .profile-tabs{gap:24px}#profileContent .profile-meta{row-gap:8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Avoid empty progress strips and make the active view distinct from hover. */
.reviewed-match-clock:empty{display:none!important}
.tactical-views button{transition:none}
.tactical-views button:not([aria-selected=true]):hover{background:#f3f6fb;box-shadow:none}
#researchActions th{overflow:visible;overflow-wrap:anywhere}
#shapeChart[data-chart-selectable=true]{cursor:crosshair}
.shape-chart-hint{font-size:14px!important;color:#61748b;margin:9px 0 0}
#researchCard>.research-controls{align-items:center;row-gap:10px}
#researchCard .research-selected-metrics dt{overflow-wrap:anywhere}
@media(min-width:761px) and (max-width:1350px){#workspace #researchCard .research-layout{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)}#researchActions th{padding-inline:8px}#researchCard>.research-controls select{max-width:none;flex-basis:25%}}
@media(max-width:1150px){#workspace #researchCard .research-layout{grid-template-columns:1fr}}
@media(max-width:760px){#researchCard>.research-controls select{flex-basis:100%;max-width:none}}

#researchCard .research-tools{margin-left:auto;flex-shrink:0}#researchCard .research-tools .product-tools-popover{z-index:8;min-width:230px}#researchCard .research-tools .product-tools-popover .button{width:100%;text-align:left}
