@import url('/fonts/urbanist.css');
:root{color-scheme:dark;--bg:#000000;--panel:#101010;--raised:#242424;--line:#414141;--muted:#b8b8b8;--text:#ffffff;--accent:#ffffff;--green:#d6d6d6;--amber:#eeeeee;--ui:'Urbanist',system-ui,sans-serif;font-family:var(--ui);font-size:15px;color:var(--text);background:var(--bg);font-synthesis:none;font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.35;cursor:default}a{color:inherit}button,input,select,a{outline-offset:4px}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,.table-wrap:focus-visible{outline:2px solid var(--accent)}[hidden]{display:none!important}::selection{background:var(--accent);color:var(--bg)}.skip-link{position:fixed;top:-60px;left:20px;z-index:20;background:white;color:var(--bg);padding:12px}.skip-link:focus{top:10px}
#app{min-height:100vh;padding-left:68px}.sidebar{position:fixed;inset:0 auto 0 0;width:68px;padding:10px;z-index:3;display:flex;flex-direction:column;gap:10px}.brand{height:55px;display:grid;place-items:center;text-decoration:none}.brand{font-size:19px;font-weight:700;letter-spacing:-.5px;color:var(--text)}.sidebar nav{display:flex;flex-direction:column;flex:1;gap:10px}.nav{flex:1;min-height:120px;border:0;background:var(--panel);color:var(--muted);clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px);display:flex;align-items:center;justify-content:center;font-weight:600}.nav span{writing-mode:vertical-rl;transform:rotate(180deg);font-size:15px;letter-spacing:.4px}.nav.active{background:var(--text);color:var(--bg)}.nav:focus-visible{outline:0;background:var(--accent);color:var(--bg)}
main{min-width:0;max-width:1920px;margin:auto;padding:0 30px 22px;background:var(--panel);min-height:100vh}.topbar{min-height:90px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line);margin-bottom:28px}.series{font-size:20px;font-weight:600;display:flex;gap:12px;align-items:center}.series i{display:none}.slash{color:var(--line)}.header-actions{display:flex;gap:24px;align-items:center}.snapshot{color:var(--muted);font-size:13px}.secondary{min-height:40px;padding:9px 16px;background:transparent;border:1px solid var(--line);border-radius:2px;font-size:14px;font-weight:600}#export{background:var(--text);border:0;color:var(--bg);padding-inline:25px;clip-path:polygon(0 0,calc(100% - 9px) 0,100% 9px,100% 100%,9px 100%,0 calc(100% - 9px))}#export:focus-visible{outline:0;background:var(--accent)}
.filters{display:grid;grid-template-columns:145px 185px 220px minmax(180px,1fr);gap:18px;margin-bottom:30px}.filters label{display:grid;gap:9px;font-size:13px;font-weight:500;color:var(--muted)}.filters input,.filters select{min-width:0;width:100%;height:44px;padding:0 12px;background:var(--bg);border:1px solid var(--line);border-radius:2px;font-size:15px}.filters .search{justify-self:end;max-width:350px;width:100%}input::placeholder{color:var(--muted)}
.analysis-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px}.board-panel{min-width:0}.board-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;min-height:40px}.board-tools>div{display:flex;align-items:center;gap:14px}h1{font-size:26px;font-weight:600;letter-spacing:-.6px;margin:0}.board-tools>div>span{font-size:13px;color:var(--muted)}.player-options{font-size:13px;color:var(--muted)}.player-options label{display:flex;align-items:center;gap:10px}.player-options select{background:var(--bg);border:1px solid var(--line);height:40px;padding:0 10px;border-radius:2px}.secondary[aria-pressed=true]{background:var(--text);color:var(--bg);border-color:var(--text)}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:2px;background:var(--panel);scrollbar-color:var(--line) var(--bg)}.board-panel .table-wrap{max-height:calc(100vh - 330px);min-height:250px}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:14px}th{font-size:12px;color:var(--muted);background:#191919;font-weight:500;padding:13px 12px;text-align:right;border-bottom:1px solid var(--line)}th button{border:0;background:none;padding:0;font:inherit;min-height:28px}th small{display:block;font-size:11px;margin-top:3px}.sorted{color:var(--text)}td{height:60px;padding:12px;text-align:right;border-bottom:1px solid #303030}tr:last-child td{border-bottom:0}th:first-child,th:nth-child(2),td:first-child,td:nth-child(2){text-align:left}.board-panel thead{position:sticky;top:0;z-index:2}.board-panel td:first-child,.board-panel th:first-child{position:sticky;left:0;z-index:1;background:var(--panel)}.board-panel th:first-child{background:#191919;z-index:3}.person-cell{display:flex;align-items:center;gap:14px;min-width:200px}.position{font-size:12px;color:var(--muted);width:20px}.person-button{border:0;background:none;padding:3px 0;font-size:15px;font-weight:600;text-align:left;min-height:30px}.team-text{font-size:13px;color:var(--muted);max-width:145px;overflow:hidden;text-overflow:ellipsis}.points{font-weight:700}.split{display:block;margin-top:4px;font-size:11px;color:var(--muted)}.star{border:0;background:none;font-size:23px;color:var(--muted);min-width:34px;min-height:36px}.star.saved{color:var(--accent)}.spark{display:block;color:var(--green);max-width:100%;overflow:visible}.pagination{display:flex;align-items:center;justify-content:space-between;margin-top:18px;font-size:13px;color:var(--muted);gap:12px}.pagination>div{display:flex;gap:8px}
.analysis-rail{display:flex;flex-direction:column;gap:20px;padding-top:60px;min-width:0}.rail-section{position:relative;padding:22px;background:var(--bg);border:1px solid var(--line)}.rail-section::after{content:'';position:absolute;top:-1px;right:-1px;width:16px;height:16px;background:linear-gradient(45deg,transparent 47%,var(--line) 49%,var(--line) 52%,var(--panel) 54%)}.rail-heading{display:flex;justify-content:space-between;gap:10px;margin-bottom:22px;align-items:center}.rail-heading h2{font-size:15px;font-weight:600;margin:0}.rail-heading>span{font-size:11px;color:var(--muted)}.benchmark-number{font-size:52px;font-weight:500;letter-spacing:-2px;line-height:1}.benchmark-number small{display:block;font-size:12px;letter-spacing:0;color:var(--muted);margin-top:8px}.benchmark-name{font-size:20px;font-weight:600;background:none;border:0;padding:0;min-height:34px;margin-top:22px;text-align:left}.benchmark-name span{color:var(--muted);font-size:16px}.rail-muted{font-size:13px;color:var(--muted);line-height:1.6;margin:4px 0 22px}.rail-caption{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-top:12px;gap:8px}.performance{display:flex;align-items:center;justify-content:space-between;width:100%;background:none;border:0;border-top:1px solid var(--line);padding:15px 0;text-align:left;gap:10px}.performance:last-child{padding-bottom:0}.performance strong{display:block;font-size:14px;font-weight:600}.performance small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.performance b{font-size:26px;font-weight:500;text-align:right}.performance b small{font-size:10px}.result-score small{font-size:18px}.game-button{font-size:15px;background:none;border:0;padding:8px 0;text-align:left}.versus{color:var(--muted);margin-inline:6px}
.loading,.empty{padding:70px 24px;text-align:center;color:var(--muted);border:1px solid var(--line);line-height:1.7}.empty strong{display:block;font-size:20px;color:var(--text);font-weight:600;margin-bottom:8px}
#overlay{position:fixed;inset:0;background:#000a;backdrop-filter:blur(3px);z-index:4}.drawer{position:fixed;inset:0 0 0 auto;width:min(660px,100%);background:var(--panel);border-left:1px solid var(--line);padding:30px;z-index:5;overflow:auto}.drawer-top{display:flex;justify-content:space-between;align-items:center;padding-bottom:20px;margin-bottom:28px;border-bottom:1px solid var(--line);font-size:14px;color:var(--muted)}.close{width:42px;height:42px;border:1px solid var(--line);background:var(--bg);font-size:26px}.avatar{width:56px;height:56px;display:grid;place-items:center;font-size:20px;font-weight:600;background:var(--text);color:var(--bg);clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px))}.drawer h2{font-size:34px;font-weight:600;line-height:1.15;letter-spacing:-.8px;margin:18px 0 10px}.drawer-sub{font-size:14px;color:var(--muted);line-height:1.7}.detail-metrics{display:flex;gap:8px;padding:24px 8px;margin:24px 0;border:1px solid var(--line);background:var(--bg)}.detail-metrics>div{flex:1;min-width:0;text-align:center}.detail-metrics strong{display:block;font-size:30px;font-weight:500}.detail-metrics span{display:block;font-size:12px;color:var(--muted);line-height:1.5;margin-top:8px}.drawer h3{font-size:16px;font-weight:600;margin:28px 0 16px}.chart{width:100%;height:145px;background:repeating-linear-gradient(0deg,transparent 0 35px,#303030 35px 36px);border-bottom:1px solid var(--line)}.chart-labels{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-top:10px}.drawer td,.drawer th{font-size:13px;padding:10px;height:auto}.person-meta{font-size:12px;color:var(--muted);font-weight:400}
@media(hover:hover){tbody tr:hover,tbody tr:hover td:first-child{background:var(--raised)}.person-button:hover,.game-button:hover,.benchmark-name:hover,.performance:hover strong{color:var(--accent)}.secondary:hover,.close:hover{background:var(--raised)}.star:hover{color:var(--accent)}.nav:not(.active):hover{background:var(--raised);color:white}#export:hover{background:#dedede}}
@media(min-width:1650px){main{padding-inline:40px}.analysis-layout{grid-template-columns:minmax(0,1fr) 290px;gap:30px}td{padding-inline:16px}}
@media(max-width:1280px){.analysis-layout{grid-template-columns:minmax(0,1fr)}.analysis-rail{display:grid;grid-template-columns:1fr 1fr;padding:0}.rail-section{padding:24px}.board-panel .table-wrap{max-height:680px}.filters{grid-template-columns:130px 170px 180px minmax(160px,1fr);gap:12px}}
@media(max-width:800px){#app{padding-left:0}.sidebar{position:static;width:100%;height:68px;flex-direction:row;padding:10px 16px;background:var(--bg);gap:24px}.brand{height:48px}.sidebar nav{flex-direction:row;gap:10px}.nav{min-height:44px;flex:1}.nav span{writing-mode:horizontal-tb;transform:none;font-size:14px}main{padding:0 18px 24px}.topbar{min-height:90px;margin-bottom:24px;gap:12px}.series{font-size:16px;gap:8px}.header-actions{gap:10px}.snapshot{display:none}#export{font-size:13px;padding-inline:18px}.filters{grid-template-columns:1fr 1fr;gap:16px 12px;margin-bottom:24px}.filters .search{max-width:none}.filters select,.filters input{font-size:16px}.board-tools{flex-wrap:wrap;gap:14px}h1{font-size:24px}.board-tools>div{gap:10px}.player-options{font-size:12px}.player-options .secondary{font-size:13px;padding-inline:12px}.analysis-rail{grid-template-columns:1fr 1fr;gap:16px}.rail-section{padding:20px}.person-cell{min-width:170px;gap:8px}.person-button{font-size:14px}.board-panel .table-wrap{max-height:650px}.drawer{padding:22px}.detail-metrics strong{font-size:26px}.detail-metrics span{font-size:11px}.drawer h2{font-size:30px}}
@media(max-width:520px){.analysis-rail{grid-template-columns:1fr}.series{font-size:15px}.series .slash{margin:0}.secondary{padding-inline:12px}.detail-metrics{gap:4px;padding-inline:4px}.board-panel td:first-child{box-shadow:6px 0 12px #00000066}}
@media(prefers-reduced-motion:no-preference){button{transition:background-color 120ms,color 120ms}.drawer{animation:enter 160ms ease-out}@keyframes enter{from{transform:translateX(20px);opacity:.6}to{transform:translateX(0);opacity:1}}}
@media(prefers-contrast:more){:root{--line:#898989;--muted:#dddddd}}
/* Scouting workspace: same palette and geometry. */
.compare-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0 18px;color:var(--muted);font-size:13px}.compare-bar>div{display:flex;gap:8px}.status-button{background:var(--raised);border:1px solid var(--line);padding:7px 10px;font-size:12px;white-space:nowrap}.note-preview{max-width:180px;text-align:left}.note-preview button{display:block;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:none;border:0;color:var(--muted);padding:8px 0;text-align:left;font-size:13px}input[type=checkbox]{width:18px;height:18px;accent-color:white;cursor:pointer}.status-count{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;border-top:1px solid var(--line);background:none;padding:14px 0;text-align:left;color:var(--muted)}.status-count[aria-pressed=true]{color:white;font-weight:700}.status-count strong{font-weight:500;font-size:20px}.scouting-editor{border-block:1px solid var(--line);padding:0 0 22px;margin-top:24px}.scouting-editor label{display:grid;gap:8px;margin:16px 0;font-size:13px;color:var(--muted)}.scouting-editor select,.scouting-editor textarea{font:inherit;background:var(--bg);color:var(--text);padding:12px;border:1px solid var(--line);border-radius:2px}.scouting-editor textarea{resize:vertical;min-height:100px;font-size:15px;line-height:1.5}.scouting-editor textarea:focus-visible{outline:2px solid white;outline-offset:3px}.note-actions{display:flex;gap:16px;align-items:center}.note-actions span{font-size:12px;color:var(--muted)}.comparison-drawer{width:min(1040px,100%)}.comparison-table th,.comparison-table td{text-align:right!important;min-width:150px;white-space:normal}.comparison-table th:first-child{text-align:left!important;min-width:150px}.comparison-table thead th{font-size:16px;color:var(--text)}.comparison-table th small{font-size:12px;color:var(--muted);margin-top:8px}.comparison-table .comparison-note{white-space:pre-wrap;text-align:left!important;vertical-align:top;overflow-wrap:anywhere}.empty .secondary{margin-top:20px}#save-message{font-size:13px;line-height:1.5;padding:12px;border:1px solid var(--line)}
@media(max-width:520px){.compare-bar{align-items:flex-start;flex-direction:column}.player-options{flex-wrap:wrap}.comparison-table th,.comparison-table td{min-width:130px}}
/* Compact competition title with native, keyboard-accessible menus. */
.competition-switcher{display:flex;align-items:center;gap:10px;min-width:0;font-size:20px;font-weight:600}
.competition-choice{position:relative;display:flex;align-items:center;gap:10px;min-height:42px;padding:6px 3px;cursor:pointer;white-space:nowrap;border-radius:2px}
.competition-choice>svg{color:var(--muted);flex-shrink:0}
.competition-choice select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font:inherit;color:var(--text);background:var(--panel)}
.competition-choice:focus-within{outline:2px solid var(--text);outline-offset:4px}
.competition-choice:hover{background:var(--raised)}
.competition-divider{color:var(--line);font-weight:400}
@media(max-width:800px){.competition-switcher{font-size:16px;gap:7px}.competition-choice{gap:6px}}
@media(max-width:520px){.competition-switcher{font-size:15px;gap:5px}.competition-choice{gap:5px}.competition-choice>svg{width:11px}.topbar{flex-wrap:wrap;padding-block:14px;gap:8px 12px}.header-actions{margin-left:auto}}
.folder-toolbar{border-block:1px solid var(--line);padding:16px 0;margin-bottom:8px;display:grid;gap:14px}.folder-selection,.folder-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.folder-selection label{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}.folder-selection select{background:var(--bg);border:1px solid var(--line);height:40px;padding:0 12px;max-width:300px}.folder-actions span{font-size:12px;color:var(--muted);margin-right:auto}.folder-actions .secondary{font-size:12px;min-height:34px;padding:6px 12px}.folder-form label{display:grid;gap:10px;margin:24px 0}.folder-form input{background:var(--bg);padding:14px;border:1px solid var(--line);width:100%;font-size:16px}.folder-manager>div{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:18px 0}.folder-manager span{flex:1;min-width:0;overflow-wrap:anywhere}.folder-manager small{display:block;margin-top:6px;color:var(--muted)}.membership-list{margin:24px 0}.membership-list label{display:flex;align-items:center;gap:14px;padding:18px 8px;border-bottom:1px solid var(--line);cursor:pointer}.membership-list span{flex:1;overflow-wrap:anywhere}.membership-list small{color:var(--muted)}.star{display:inline-grid;place-items:center}.rank-controls{white-space:nowrap}.rank-controls button{border:1px solid var(--line);background:none;width:30px;min-height:34px;margin:2px}.folder-manager strong{font-weight:600}@media(max-width:520px){.folder-selection label{width:100%;justify-content:space-between}.folder-selection select{max-width:240px}.folder-manager{font-size:13px}.folder-manager .secondary{font-size:12px;padding:8px}.folder-actions span{width:100%}}
/* Account controls follow the existing compact header. */
.account-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.account-controls select{max-width:150px}.auth-gate{min-height:100vh;display:grid;place-content:center;padding:24px;background:#101010;color:#fff}.auth-gate:empty{display:none}[hidden]{display:none!important}#save-message .secondary{margin:6px}#organization-switcher{max-width:210px}
/* Shared identity imagery: fixed dimensions keep rows stable while loading. */
.player-link{display:inline-flex;align-items:center;gap:10px;text-align:left;min-height:40px}
.player-portrait{position:relative;display:inline-grid;place-items:center;flex:none;width:40px;height:40px;border-radius:6px;background:#242424;color:#bcbcbc;font-size:12px;font-weight:600;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff1a;vertical-align:middle}
.player-portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 20%;background:#e8e8e8}
.portrait-profile{width:112px;height:112px;border-radius:8px;font-size:30px}
.club-label{display:inline-flex;align-items:center;gap:8px;vertical-align:middle;max-width:100%;text-align:left}
.club-label>span{overflow:hidden;text-overflow:ellipsis}
.club-logo{width:24px;height:24px;flex:none;object-fit:contain;background:#fff;border-radius:4px;padding:2px}
.team-text{max-width:190px}
.profile-identity{display:flex;align-items:center;gap:22px;margin-bottom:22px}
.profile-identity>div{min-width:0}.profile-identity h2{margin:0 0 10px}.profile-identity .drawer-sub p{margin:8px 0 0}
.benchmark-name{display:flex;align-items:center;gap:10px;text-align:left}
.performance-name{flex:1;min-width:0}.performance .player-portrait{width:34px;height:34px}
.comparison-table thead .player-portrait{margin-bottom:10px}.comparison-name{display:block}.comparison-table thead .club-label{justify-content:flex-end}
.detail-metrics .club-label{display:inline-flex}.detail-metrics .club-label>span{margin:0}
@media(max-width:800px){.person-cell{min-width:210px}.player-link{gap:8px}}
@media(max-width:520px){.profile-identity{gap:16px}.portrait-profile{width:88px;height:88px}.profile-identity h2{font-size:26px}}
.club-list{display:inline-flex;flex-direction:column;gap:5px;vertical-align:middle}.club-list .club-label{white-space:nowrap}
/* Player profiles and sourced biography filters. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.biography-filters{margin:-10px 0 26px;border-block:1px solid var(--line);font-size:13px}
.biography-filters>summary{cursor:pointer;padding:14px 0;font-weight:600;width:fit-content;min-height:44px}.biography-filters summary span{color:var(--muted);margin-left:8px;font-weight:400}
.biography-filter-grid{display:grid;grid-template-columns:1fr 1.2fr 1.2fr 1.2fr auto;gap:18px;align-items:end;padding:4px 0 12px}
.biography-filter-grid>label,.profile-controls label{display:grid;gap:8px;color:var(--muted);font-size:13px}
.biography-filter-grid input,.biography-filter-grid select,.profile-controls select{width:100%;height:40px;border:1px solid var(--line);border-radius:2px;background:var(--bg);padding:0 10px;min-width:0;font-size:14px}
.biography-filter-grid fieldset{display:flex;align-items:center;gap:8px;border:0;padding:0;margin:0;min-width:0}.biography-filter-grid legend{margin-bottom:8px;padding:0;color:var(--muted)}
.biography-filters>p{color:var(--muted);font-size:12px;margin:0 0 16px;line-height:1.5}
.player-profile{width:min(1060px,100%);padding:28px 36px}.player-profile .drawer-top{margin-bottom:26px}
.player-profile .profile-identity{margin-bottom:28px}.player-profile .profile-identity h2{font-size:38px}.profile-save{margin-left:auto;flex:none}
.biography-grid{display:grid;grid-template-columns:1.15fr .8fr 1fr 1.2fr;margin:0;border-block:1px solid var(--line);padding:22px 0;gap:24px}
.biography-grid dt{color:var(--muted);font-size:12px;margin-bottom:10px}.biography-grid dd{margin:0;font-size:21px;font-weight:600;line-height:1.3}.biography-grid small{display:block;color:var(--muted);font-size:12px;margin-top:7px;line-height:1.5}.biography-grid .bio-unknown{color:var(--muted);font-size:16px;font-weight:400}
.bio-sources{font-size:12px;color:var(--muted);margin:12px 0 22px}.bio-sources summary{cursor:pointer;min-height:32px;padding:8px 0;width:fit-content}.bio-sources p{line-height:1.6;max-width:740px}.bio-sources ul{padding-left:18px;line-height:1.8}.bio-sources li{margin:8px 0}.bio-sources li span{display:block}.bio-sources a{color:var(--text);text-underline-offset:3px}
.profile-tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);margin-top:8px}.profile-tabs button{border:0;background:none;padding:14px 0;font-size:14px;color:var(--muted);min-height:44px;border-bottom:2px solid transparent}.profile-tabs button[aria-current=page]{border-bottom-color:var(--text);color:var(--text);font-weight:600}
.profile-controls{display:flex;gap:16px;margin:22px 0 4px}.profile-controls label{min-width:155px}.profile-controls label:last-child{min-width:195px}
.profile-metrics{margin:22px 0 28px}.profile-metrics small{display:block;font-size:11px;color:var(--muted);margin-top:5px}
.profile-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 14px}.profile-section-title h3{margin:0}.profile-section-title>span{color:var(--muted);font-size:12px}.profile-footnote{color:var(--muted);font-size:12px;line-height:1.6;max-width:740px;margin:14px 0 24px}
.career-season{border:0;background:none;padding:8px 0;font-size:13px;white-space:nowrap;text-align:left}.career-season:hover{text-decoration:underline;text-underline-offset:4px}.career-empty td{color:var(--muted)}.career-empty td[colspan]{text-align:left}.career-table td:nth-child(2),.career-table th:nth-child(2){text-align:left}
.profile-empty{padding:24px 0;color:var(--muted)}.player-profile .spark{max-width:100%;height:auto}.player-profile #profile-notes .scouting-editor{margin-top:0;border:0}.player-profile #profile-notes h3{margin-top:22px}
@media(max-width:1000px){.biography-filter-grid{grid-template-columns:1fr 1fr}.biography-filter-grid .secondary{justify-self:start}.biography-grid{gap:16px}.biography-grid dd{font-size:18px}}
@media(max-width:600px){.player-profile{padding:20px}.player-profile .profile-identity{flex-wrap:wrap;gap:16px}.player-profile .profile-identity h2{font-size:28px}.profile-save{margin-left:0}.biography-grid{grid-template-columns:1fr 1fr;gap:24px 18px}.profile-tabs{gap:22px}.profile-tabs button{font-size:13px}.profile-controls{gap:12px}.profile-controls label,.profile-controls label:last-child{min-width:0;flex:1}.profile-section-title{align-items:flex-start;flex-direction:column;gap:6px}.profile-metrics strong{font-size:24px}.biography-filter-grid{gap:16px 12px}.biography-filter-grid input,.biography-filter-grid select{font-size:16px}.player-profile .profile-identity>div{flex:1;min-width:160px}.player-profile .table-wrap{max-width:100%}}
.biography-heading{display:flex;justify-content:space-between;gap:16px;font-size:13px;margin-bottom:12px}.biography-heading small{font-size:12px;color:var(--muted)}
/* Dedicated player pages. Identity stays fixed while statistics are filtered. */
#player-page.profile-page{width:100%;max-width:none;padding:0;min-height:100vh;margin:0;background:var(--bg)}
.profile-page-top{display:flex;align-items:center;gap:32px;min-height:80px;padding:16px 4vw;border-bottom:1px solid var(--line)}
.profile-page-top a{text-decoration:none;color:var(--text);min-height:44px;display:inline-flex;align-items:center}.profile-brand{font-size:24px;font-weight:700;letter-spacing:-1px}.profile-page-top>span{color:var(--muted);font-size:13px}.profile-page-top button{margin-left:auto;min-height:44px}
.profile-page-body{max-width:1540px;margin:auto;padding:44px 4vw 72px}.profile-hero{display:flex;align-items:center;gap:24px;padding-bottom:36px}.profile-hero .profile-identity{margin:0}.profile-hero h1{font-size:clamp(32px,3.8vw,56px);line-height:1.05;letter-spacing:-1.5px;margin:0 0 16px;font-weight:600}.profile-eyebrow{font-size:12px;color:var(--muted);margin:0 0 12px}.profile-last-team{display:flex;align-items:center;gap:20px;font-size:15px}.profile-last-team>span:last-child{font-size:12px;color:var(--muted)}.profile-hero .portrait-profile{width:132px;height:148px;border-radius:6px;outline:1px solid #ffffff1a}
.profile-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:42px;border-top:1px solid var(--line);padding-top:28px}.profile-bio{min-width:0;padding-top:12px}.profile-bio .biography-heading{display:block;font-weight:600}.profile-bio .biography-heading small{display:block;font-weight:400;margin-top:8px}.profile-bio .biography-grid{grid-template-columns:1fr 1fr;border:0;gap:26px 18px;padding-top:18px}.profile-bio .biography-grid dd{font-size:19px}.profile-bio .bio-sources{font-size:12px}.profile-bio .bio-sources ul{padding-left:15px}.profile-bio .bio-sources li{overflow-wrap:anywhere}.profile-main{min-width:0}.profile-main .profile-tabs{margin-top:0;gap:32px}.profile-controls{align-items:end;margin-top:26px}.profile-controls h2{font-size:18px;font-weight:600;margin:auto auto 9px 0}.profile-main h3{font-size:16px;font-weight:600}.profile-main .profile-metrics{background:var(--panel);border:0;box-shadow:0 0 0 1px #ffffff0d;border-radius:6px;padding:26px 8px}.profile-main .profile-metrics strong{font-size:36px;font-variant-numeric:tabular-nums}.profile-main .profile-metrics>div+div{border-left:1px solid var(--line)}
.profile-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.profile-card{padding:22px 24px;background:var(--panel);border-radius:6px;box-shadow:0 0 0 1px #ffffff0d}.profile-card h3{margin:0 0 22px}.shooting-row{margin-bottom:22px}.shooting-row:last-child{margin-bottom:0}.shooting-row>div{display:flex;justify-content:space-between;gap:10px;font-size:13px}.shooting-row strong{font-size:17px;font-variant-numeric:tabular-nums}.shooting-row small{font-size:11px;color:var(--muted)}.shooting-row meter{display:block;width:100%;height:6px;margin:10px 0;appearance:none;background:#353535;border:0;border-radius:3px}.shooting-row meter::-webkit-meter-bar{background:#353535;border:0;height:6px}.shooting-row meter::-webkit-meter-optimum-value{background:#ddd}.shooting-row meter::-moz-meter-bar{background:#ddd}
.recent-head{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;padding-bottom:8px}.profile-recent-game{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:16px;width:100%;border:0;border-top:1px solid var(--line);background:none;padding:10px 0;min-height:44px}.profile-recent-game:hover{background:#ffffff06}.profile-recent-game small{display:block;color:var(--muted);font-size:10px;margin-bottom:5px}.profile-recent-game .club-label{font-size:12px}.profile-recent-game strong{font-size:20px;font-variant-numeric:tabular-nums}.career-summary{border-top:1px solid var(--line);margin-top:24px;padding-top:16px}.career-summary h3{font-size:13px}.career-summary dl{display:flex;justify-content:space-between;gap:12px}.career-summary dt{font-size:11px;color:var(--muted)}.career-summary dd{margin:8px 0;font-size:22px}.career-summary p{font-size:11px;color:var(--muted)}.profile-page .table-wrap{max-width:100%}.profile-page .career-table td,.profile-page .career-table th{font-size:13px;padding:14px 12px}.profile-page .career-season{min-height:40px}.profile-page .secondary:active{transform:scale(.96)}
@media(max-width:1100px){.profile-layout{grid-template-columns:220px minmax(0,1fr);gap:24px}.profile-controls{flex-wrap:wrap}.profile-controls h2{flex-basis:100%}.profile-controls label{flex:1;min-width:0}.profile-card{padding:18px}.profile-last-team{flex-wrap:wrap;gap:8px}}
@media(max-width:760px){.profile-page-top{padding:12px 20px;gap:22px}.profile-page-top>span{display:none}.profile-page-body{padding:26px 20px 48px}.profile-hero{flex-wrap:wrap;padding-bottom:24px}.profile-hero .portrait-profile{width:88px;height:100px}.profile-hero h1{font-size:32px;letter-spacing:-.8px}.profile-layout{grid-template-columns:1fr;gap:22px;padding-top:16px}.profile-bio .biography-grid{grid-template-columns:repeat(4,1fr);gap:16px}.profile-bio .biography-grid dd{font-size:16px}.profile-bio .biography-heading,.career-summary{display:none}.profile-bio .bio-sources{margin-bottom:0}.profile-main .profile-tabs{gap:28px}.profile-main .profile-metrics strong{font-size:28px}.profile-save{margin-left:0}.profile-page .profile-identity>div{min-width:0}.profile-main .profile-controls label:last-child{min-width:0}}
@media(max-width:480px){.profile-bio .biography-grid{grid-template-columns:1fr 1fr}.profile-card-grid{grid-template-columns:1fr}.profile-main .profile-tabs{gap:24px}.profile-main .profile-metrics strong{font-size:24px}.profile-main .profile-metrics span{font-size:10px}.profile-page-top{gap:20px}.profile-page-top button{font-size:12px;padding-inline:12px}}
a.person-button{text-decoration:none}.profile-page-top .account-controls{margin-left:auto}.profile-page-top .account-controls+button{margin-left:0}.profile-page #save-message{margin:16px 0}.profile-page #profile-notes textarea{width:100%;min-height:240px;resize:vertical;line-height:1.7}.profile-page #profile-notes .scouting-editor{padding:24px 0}.profile-page #profile-notes select{min-height:44px}.profile-page #profile-notes label{display:grid;gap:10px;margin-bottom:20px}
@media(max-width:760px){.profile-page-top{flex-wrap:wrap;gap:12px 20px}.profile-page-top .account-controls{order:5;flex-basis:100%;justify-content:flex-end}.profile-page-top #profile-copy{margin-left:auto}}
#profile-title:focus{outline:none}.profile-page .profile-main .table-wrap{overflow-x:auto}.profile-page .profile-controls select{min-height:44px}
/* Research: one source per row, with evidence available in the reading pane. */
.research-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:28px 0 14px}.research-heading h2{margin:0;font-size:24px;font-weight:600;letter-spacing:-.5px}.research-run-controls{display:flex;align-items:end;gap:12px}.research-panel label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--muted)}.research-panel select{min-height:44px;border:1px solid var(--line);border-radius:4px;padding:8px 12px;background:var(--panel);color:var(--text)}.research-panel button{min-height:44px}.research-run{background:var(--text);color:var(--bg);border-color:var(--text)}.research-run:hover:not(:disabled){background:#ddd;color:#000}.research-run:disabled{color:#bbb;background:#242424;border-color:#414141;opacity:1}.research-status{font-size:13px;color:var(--muted);line-height:1.6}.research-status:empty{display:none}.research-history{margin:18px 0 24px}.research-history label{flex-direction:row;align-items:center;gap:12px}.research-history select{max-width:100%;font-size:13px}.research-report-bar{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 0}.research-report-bar>div{display:grid;gap:7px}.research-report-bar strong{font-size:16px;font-weight:500}.research-report-bar span{font-size:12px;color:var(--muted)}.research-quickfacts{display:grid;grid-template-columns:1fr 1fr;background:var(--panel);border-radius:6px;box-shadow:0 0 0 1px #ffffff0d;margin-bottom:28px}.research-quickfacts section{min-width:0;padding:22px 24px}.research-quickfacts section+section{border-left:1px solid var(--line)}.research-quickfacts h3{margin:0 0 12px;font-size:12px;font-weight:500;color:var(--muted)}.research-quickfacts p{font-size:14px;margin:0;color:var(--muted)}.research-quickfacts section>span{display:block;font-size:12px;line-height:1.5;color:var(--muted);margin-top:8px}.research-fact-value{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;background:none;border:0;padding:0;text-align:left;font:inherit;font-size:16px;line-height:1.5;min-height:0!important;cursor:pointer;color:var(--text)}.research-fact-value:hover{text-decoration:underline;text-underline-offset:4px}.research-account-links{display:flex;gap:12px;flex-wrap:wrap}.research-account-links a{font-size:16px;text-decoration:none;line-height:1.5;overflow-wrap:anywhere}.research-account-links a:hover{text-decoration:underline}.research-filters{display:flex;gap:22px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:thin}.research-filters button{display:flex;gap:8px;align-items:center;background:none;border:0;border-bottom:2px solid transparent;color:var(--muted);font-size:13px;padding:10px 0 14px;white-space:nowrap}.research-filters button[aria-pressed=true]{border-bottom-color:var(--text);color:var(--text)}.research-filters button span{font-size:11px;font-variant-numeric:tabular-nums;min-width:18px;padding:2px 5px;border-radius:3px;background:var(--panel);color:var(--muted)}.research-reader{display:grid;grid-template-columns:minmax(220px,.85fr) minmax(0,1.15fr);align-items:start;min-height:350px}.research-source-list{max-height:690px;overflow-y:auto;scrollbar-width:thin;padding:12px 12px 12px 0}.research-source-row{display:block;width:100%;text-align:left;background:none;border:0;border-radius:4px;padding:18px 16px;margin-bottom:4px;color:var(--text);transition:background-color 150ms}.research-source-row:hover{background:#ffffff05}.research-source-row[aria-pressed=true]{background:var(--panel);box-shadow:inset 2px 0 var(--text)}.research-row-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;font-size:11px;color:var(--muted);line-height:1.5}.research-row-meta time{white-space:nowrap}.research-source-row strong{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;font-weight:500;line-height:1.55;margin:10px 0}.research-row-footer{display:flex;justify-content:space-between;color:var(--muted);font-size:11px}.research-reading-pane{border-left:1px solid var(--line);padding:28px 0 28px 28px;min-width:0}.research-reading-pane:focus{outline:none}.research-reading-pane:focus-visible{outline:1px solid var(--muted);outline-offset:4px}.research-source-line{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:12px}.research-reading-pane header h3{font-size:21px;font-weight:500;line-height:1.4;letter-spacing:-.25px;margin:16px 0;text-wrap:pretty;overflow-wrap:anywhere}.research-reading-pane header>a{font-size:13px;text-decoration:none;border-bottom:1px solid var(--muted);padding-bottom:3px}.research-excerpts{margin-top:32px}.research-excerpt-label{font-size:11px;color:var(--muted);letter-spacing:.6px;text-transform:uppercase}.research-excerpt{padding:14px 0 20px;border-bottom:1px solid var(--line)}.research-excerpt:last-child{border:0}.research-excerpt blockquote{margin:0;max-width:65ch;font-size:15px;line-height:1.75;overflow-wrap:anywhere}.research-excerpt details{margin-top:12px;font-size:13px;color:var(--muted)}.research-panel summary{cursor:pointer;min-height:44px;padding:12px 0;line-height:1.5}.research-excerpt details p{line-height:1.6}.research-review{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:18px}.research-review button{font-size:12px}.research-rejected blockquote{text-decoration:line-through;color:var(--muted)}.research-notice{font-size:13px;color:var(--muted);line-height:1.6}.research-coverage{border-top:1px solid var(--line);margin-top:16px;color:var(--muted);font-size:13px}.research-coverage ul{padding-left:20px}.research-coverage li{margin:10px 0;line-height:1.7;overflow-wrap:anywhere}.research-coverage p{line-height:1.6}.research-empty,.research-reader-empty{padding:36px 18px;color:var(--muted);font-size:14px;line-height:1.6}.research-empty strong{display:block;color:var(--text);font-size:16px;font-weight:500}.research-empty p{margin-bottom:0}.research-panel button:focus-visible,.research-panel select:focus-visible,.research-panel summary:focus-visible,.research-panel a:focus-visible{outline:2px solid var(--text);outline-offset:4px}
@media(max-width:1050px){.research-reader{grid-template-columns:1fr}.research-source-list{display:flex;gap:8px;overflow-x:auto;max-height:none;padding:16px 0}.research-source-row{flex:0 0 250px;padding:16px;margin:0}.research-reading-pane{border-left:0;border-top:1px solid var(--line);padding:24px 0}.research-filters{gap:18px}.research-quickfacts section{padding:18px}.research-excerpt blockquote{font-size:16px}}
@media(max-width:600px){.research-heading{align-items:start;flex-direction:column;gap:20px}.research-run-controls{width:100%}.research-run-controls label{flex:1}.research-panel select{font-size:16px;min-width:0}.research-history label{align-items:start;flex-direction:column}.research-history select{width:100%;font-size:14px}.research-quickfacts{grid-template-columns:1fr}.research-quickfacts section+section{border-left:0;border-top:1px solid var(--line)}.research-fact-value{min-height:44px!important}.research-account-links a{min-height:44px;display:inline-flex;align-items:center}.research-reading-pane header h3{font-size:22px}.research-filters{gap:20px}.profile-tabs{overflow-x:auto;white-space:nowrap}.research-report-bar span{line-height:1.6}.research-excerpts{margin-top:24px}}
@media(prefers-reduced-motion:reduce){.research-source-row{transition:none}}
.research-heading .research-history{margin:0;min-width:0}.research-heading .research-history label{flex-direction:column;align-items:stretch;gap:7px}.research-heading .research-history select{max-width:300px}.research-heading{margin:24px 0 8px}.research-report-bar{padding-top:18px}.research-reading-pane header>a{display:inline-flex;align-items:center;min-height:40px}.research-panel .research-fact-value{min-height:44px!important}
@media(max-width:600px){.research-heading .research-history{width:100%}.research-heading .research-history select{max-width:none}.research-heading{gap:14px}.research-report-bar{padding-top:24px}}
.research-digest{padding:24px 26px;margin:2px 0 22px;background:var(--panel);border-radius:6px;box-shadow:0 0 0 1px #ffffff0d}.research-digest>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}.research-digest h3{font-size:16px;margin:0;font-weight:600}.research-digest>div>span{font-size:11px;color:var(--muted)}.research-digest p{font-size:16px;line-height:1.8;max-width:85ch;margin:14px 0 0;text-wrap:pretty}.research-digest sup{font-size:11px;white-space:nowrap}.research-digest sup a{color:var(--muted);text-decoration:none}.research-digest sup a:hover{color:var(--text);text-decoration:underline}@media(max-width:600px){.research-digest{padding:20px}.research-digest p{font-size:15px}}

/* Profile overview: compact identity and aligned comparisons. */
.profile-page-body{max-width:1600px;margin:0 auto;padding-top:28px}
.profile-hero{padding-bottom:26px}.profile-hero .portrait-profile{width:90px;height:104px}.profile-hero h1{font-size:38px;letter-spacing:-1px}.profile-hero .profile-identity{gap:22px}.profile-last-team{margin-top:10px}
.profile-layout{grid-template-columns:200px minmax(0,1fr);gap:32px;padding-top:22px}.profile-bio .biography-grid{gap:22px 12px}.profile-bio .biography-grid dd{font-size:17px}.profile-main .profile-tabs{gap:28px}.profile-controls{margin:22px 0;gap:12px}.profile-controls h2{font-size:16px}.profile-controls select{min-height:42px}.profile-controls label{font-size:12px}.profile-controls label:last-child{min-width:150px}
.overview-comparison{min-width:0}.season-percentiles{background:var(--panel);border-radius:10px;padding:24px;box-shadow:0 0 0 1px #ffffff12;margin-bottom:24px}
.comparison-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:26px}.comparison-heading h3{margin:0;font-size:17px}.comparison-heading p{font-size:12px;color:var(--muted);margin:7px 0 0}.comparison-heading>span{font-size:12px;color:var(--muted);white-space:nowrap}
.comparison-labels,.comparison-row{display:grid;grid-template-columns:minmax(80px,1fr) 62px minmax(70px,1.6fr) 60px;gap:18px;align-items:center}.comparison-labels{font-size:11px;color:var(--muted);padding-bottom:13px}.comparison-labels>span:nth-child(2),.comparison-labels>span:last-child{text-align:right}.comparison-axis{display:flex;justify-content:space-between}.comparison-axis i{font-style:normal}.comparison-row{min-height:70px;border-top:1px solid #ffffff0d}.comparison-name{font-size:14px;font-weight:500}.comparison-name small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.comparison-average{font-size:24px;font-weight:600;text-align:right;letter-spacing:-.4px}.comparison-rank{text-align:right;font-size:14px;font-weight:500}.comparison-average,.comparison-rank{font-variant-numeric:tabular-nums}.comparison-track{height:4px;background:#ffffff15;position:relative;border-radius:3px}.comparison-track:before{content:"";position:absolute;left:50%;top:-5px;height:14px;width:1px;background:#ffffff30}.comparison-fill{height:100%;display:block;background:#ffffff75;border-radius:3px}.comparison-dot{position:absolute;top:50%;transform:translate(-50%,-50%);width:9px;height:9px;background:white;border-radius:50%;box-shadow:0 0 0 3px var(--panel)}.comparison-reason{font-size:11px;color:var(--muted);line-height:1.5}
@media(max-width:1200px){.profile-layout{grid-template-columns:180px minmax(0,1fr);gap:24px}.comparison-row,.comparison-labels{grid-template-columns:minmax(90px,1fr) 70px minmax(120px,2fr) 70px}.season-percentiles{margin-bottom:0}}
@media(max-width:760px){.profile-page-body{padding:22px 20px 40px}.profile-hero h1{font-size:30px}.profile-layout{grid-template-columns:1fr;gap:18px}.profile-hero .portrait-profile{width:72px;height:84px}.profile-hero .profile-identity{gap:16px}.profile-controls{flex-wrap:wrap}.profile-controls h2{flex-basis:100%;margin:0 0 6px}.profile-controls label,.profile-controls label:last-child{min-width:0;flex:1}.profile-main .profile-tabs{gap:24px}.profile-bio .biography-grid{grid-template-columns:repeat(4,1fr)}.season-percentiles{padding:20px}.comparison-row,.comparison-labels{grid-template-columns:minmax(75px,1fr) 60px minmax(65px,1.5fr) 55px;gap:12px}.comparison-heading{margin-bottom:22px}}
@media(max-width:520px){.profile-bio .biography-grid{grid-template-columns:repeat(2,1fr)}.comparison-heading{align-items:flex-start}.comparison-heading h3{font-size:16px}.comparison-heading>span{font-size:11px}.comparison-row,.comparison-labels{grid-template-columns:74px 52px minmax(38px,1fr) 52px;gap:10px}.comparison-labels{font-size:10px}.comparison-average{font-size:21px}.comparison-name{font-size:13px}.comparison-rank{font-size:12px}.season-percentiles{padding:16px}.comparison-row{min-height:66px}.profile-last-team{flex-wrap:wrap}.profile-hero h1{font-size:27px}.profile-hero{gap:18px}}
@media(max-width:520px){.profile-bio .biography-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:10px 0;margin:0}.profile-bio .biography-grid dt{font-size:10px}.profile-bio .biography-grid dd{font-size:13px;margin-top:8px}.profile-bio .biography-grid small{font-size:10px}.profile-bio .biography-grid>div:nth-child(3)>small{display:none}.profile-bio .bio-sources{margin-top:12px;font-size:11px}.profile-controls label:last-child{flex-basis:100%}.profile-controls select{width:100%}.profile-hero{padding-bottom:20px}.profile-layout{padding-top:14px}}

/* Player directory: prioritize scanning and keep optional analysis available. */
#main>.topbar{min-height:76px;margin-bottom:18px}
#main>.filters{margin-bottom:10px;gap:14px}
#main>.filters label{gap:6px}
#main>.filters .search{max-width:400px}
#main>.biography-filters{margin:0 0 14px;border-top:0;border-bottom:1px solid #303030}
#main>.biography-filters>summary{padding:10px 0;min-height:40px}
#board-layout.table-focused{grid-template-columns:minmax(0,1fr)}
#board-layout .board-tools{margin-bottom:12px}
#board-layout #result-count{background:#242424;border-radius:4px;padding:4px 8px}
.player-board .player-options{gap:18px}
.player-board .player-table-wrap{max-height:clamp(560px,calc(100dvh - 260px),1000px);min-height:0;border-color:#383838}
.player-table{border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}
.player-table th{height:48px;padding:4px 14px;font-size:12px}
.player-table th button{min-height:40px;min-width:40px;width:100%;text-align:right}
.player-table th:first-child button{text-align:left}
.player-table th[aria-sort=ascending],.player-table th[aria-sort=descending]{background:#292929}
.player-table td{height:58px;padding:7px 14px;font-size:14px;border-bottom-color:#292929}
.player-table .person-cell{gap:12px;min-width:250px}
.player-table .position{width:22px;flex:none;color:#929292}
.player-table .person-button{font-size:15px;font-weight:600;line-height:1.3;text-decoration:none}
.board-bio{display:block;font-size:12px;line-height:1.4;font-weight:400;color:var(--muted);margin-top:3px}
.player-table .team-text{max-width:210px;font-size:13px}
.player-table .sort-column{background:#ffffff05}
.player-table .trend-cell{width:125px}
.player-table .folder-cell{width:54px;padding:4px 8px}
.player-table .star{width:40px;height:40px;border-radius:4px;display:inline-grid;place-items:center}
.player-table .star:hover,.player-table .star:focus-visible{background:#ffffff0d}
.player-table tbody tr:focus-within td{background:#242424}
#board-layout .pagination{margin-top:0;padding:12px 0;flex-wrap:wrap}
#board-layout .pagination-summary{align-items:center;gap:24px}
.pagination-summary label{display:flex;align-items:center;gap:8px}
.pagination select{height:40px;min-width:64px;border:1px solid var(--line);border-radius:2px;background:var(--bg);padding:0 8px}
#page-number{display:flex;align-items:center;padding-inline:8px;min-width:60px;justify-content:center}
.player-board .analysis-rail{padding-top:52px}
@media(max-width:1280px){.player-board .analysis-rail{padding-top:0}}
@media(max-width:800px){
 #main>.topbar{min-height:80px;flex-wrap:wrap;padding-block:12px}
 #main>.filters{gap:12px;margin-bottom:8px}
 #main>.filters .search{max-width:none}
 .player-board .player-table-wrap{max-height:640px}
 .player-table .person-cell{min-width:220px}
 .player-table td,.player-table th{padding-inline:10px}
 .player-table .person-button{font-size:14px}
 .player-table .star{width:44px;height:44px}
 #board-layout .pagination-summary{gap:12px}
 .pagination select{font-size:16px}
}

.player-table .board-bio{display:flex;align-items:center;gap:8px}
.board-nationalities{display:inline-flex;align-items:center;gap:5px}
.nationality-flag{display:block;width:20px;height:15px;object-fit:contain;border-radius:2px;outline:1px solid #ffffff26}

/* Player profile: identity first, performance second, details on demand. */
#player-page .profile-page-top{min-height:68px;padding:10px max(24px,4vw);gap:28px}
#player-page .profile-brand{font-size:22px}
#player-page .profile-page-body{max-width:1440px;padding:34px max(24px,4vw) 64px}
#player-page .profile-hero{padding-bottom:28px;align-items:center}
#player-page .profile-hero .portrait-profile{width:104px;height:116px;flex-shrink:0}
#player-page .profile-hero h1{font-size:clamp(30px,3vw,44px);line-height:1.15;letter-spacing:-1px;margin-bottom:12px}
#player-page .profile-last-team{gap:16px;margin-top:0;flex-wrap:wrap}
#player-page .profile-last-team>span:last-child{font-size:13px;color:#b0b0b0}
#player-page .profile-save{background:#f5f5f5;color:#111;border:0;padding:0 20px;min-height:44px}
.profile-facts{display:grid;grid-template-columns:.85fr .8fr 1.35fr 1fr;gap:28px;margin:0;padding:24px 0 12px;border-top:1px solid var(--line)}
.profile-facts dt{font-size:13px;color:#aaa;margin-bottom:9px}
.profile-facts dd{margin:0;font-size:19px;font-weight:600;line-height:1.45}
.profile-facts dd>span:not(.profile-country){font-weight:400;font-size:15px;color:#bbb}
.profile-facts small{display:block;font-size:13px;color:#aaa;margin-top:5px}
.profile-countries{display:flex;flex-wrap:wrap;gap:8px 14px}
.profile-country{display:inline-flex;align-items:center;gap:9px}
.profile-sources{margin:0 0 18px;font-size:13px;color:#b0b0b0}
.profile-sources summary{cursor:pointer;min-height:40px;display:flex;align-items:center;gap:8px;width:fit-content}
.profile-sources summary:before{content:'+';font-size:18px;width:14px}
.profile-sources[open] summary:before{content:'−'}
.profile-sources summary::-webkit-details-marker{display:none}
.profile-sources ul{padding:18px 22px;margin:0 0 20px;background:var(--panel);border-radius:6px;list-style:none;line-height:1.7}
.profile-sources li+li{margin-top:14px}
.profile-sources li>span{display:block}
#player-page .profile-layout{display:block;border:0;padding:0}
#player-page .profile-tabs{gap:32px;margin:0;border-bottom:1px solid #363636;overflow-x:auto;white-space:nowrap}
#player-page .profile-tabs button{font-size:15px;padding:16px 2px;min-height:52px}
#player-page .profile-controls{display:flex;align-items:end;gap:12px;margin:28px 0 26px}
#player-page .profile-controls h2{font-size:20px;letter-spacing:-.3px;margin:0 auto 10px 0;flex-basis:auto}
#player-page .profile-controls label,#player-page .profile-controls label:last-child{font-size:13px;min-width:155px;flex:none;gap:8px}
#player-page .profile-controls select{background:#191919;border-color:#363636;font-size:14px;padding-inline:12px;min-height:44px}
.performance-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 18px;gap:18px}
#player-page .performance-heading h3{font-size:17px;margin:0;font-weight:600}
.performance-heading>div{display:flex;gap:14px;align-items:baseline;flex-wrap:wrap}
.performance-heading span{color:#aaa;font-size:13px}
.season-performance+.season-performance{margin-top:32px}
.performance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.performance-stat{padding:24px;background:#191919;border:1px solid #303030;border-radius:8px;min-width:0}
.performance-stat h4{font-size:15px;font-weight:500;margin:0 0 14px;color:#ddd}
.performance-stat h4[title]{cursor:help}
.performance-value{display:block;font-size:40px;letter-spacing:-1px;font-weight:600;line-height:1.1;font-variant-numeric:tabular-nums}
.performance-standing{display:flex;align-items:center;gap:8px;margin:22px 0 14px;font-size:13px;color:#aaa}
.standing-label{font-weight:600;color:#eee;cursor:help}
.performance-bar{height:5px;border-radius:3px;background:#ffffff14;overflow:hidden}
.performance-bar>span{display:block;height:100%;background:#e2e2e2;border-radius:3px}
.performance-unranked{font-size:12px;color:#aaa;line-height:1.4}
#player-page .profile-main .profile-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:24px 0;margin:0}
#player-page .profile-metrics strong{display:block;margin:12px 0;font-size:36px}
#player-page .profile-metrics span{font-size:14px;color:#ccc}
#player-page .profile-metrics small{font-size:13px}
#player-page .profile-section-title{margin-top:0}
#player-page .profile-section-title h3{font-size:17px}
#player-page .profile-main .table-wrap{max-height:640px;border-radius:6px}
#player-page .profile-main th,#player-page .profile-main td{font-size:14px;padding:16px 14px}
#player-page .career-table th{white-space:nowrap}
#player-page .research-panel{margin-top:28px}
#player-page .research-heading label{font-size:14px}
#player-page #profile-notes{max-width:880px}
#player-page #profile-notes h3{font-size:20px;margin-bottom:24px}
#player-page #profile-notes textarea{font-size:16px;background:#191919;border-color:#363636}
@media(max-width:1000px){
 #player-page .profile-controls{flex-wrap:wrap}
 #player-page .profile-controls h2{flex-basis:100%;margin:0 0 8px}
 #player-page .profile-controls label,#player-page .profile-controls label:last-child{flex:1;min-width:0}
 .profile-facts{gap:20px;grid-template-columns:.8fr .8fr 1.3fr 1.1fr}
 .profile-facts dd{font-size:17px}
}
@media(max-width:600px){
 #player-page .profile-page-top{padding:10px 20px;gap:20px}
 #player-page .profile-page-body{padding:24px 20px 48px}
 #player-page .profile-hero{gap:18px;padding-bottom:22px;flex-wrap:wrap}
 #player-page .profile-hero .portrait-profile{width:76px;height:88px}
 #player-page .profile-hero .profile-identity{gap:16px;flex-wrap:nowrap;width:100%}
 #player-page .profile-hero h1{font-size:29px;letter-spacing:-.6px}
 #player-page .profile-last-team{gap:6px;font-size:14px}
 #player-page .profile-last-team>span:last-child{flex-basis:100%;font-size:12px}
 #player-page .profile-save{margin:0}
 .profile-facts{grid-template-columns:1fr 1fr;gap:22px 20px;padding-top:22px}
 .profile-facts dd{font-size:17px}
 #player-page .profile-tabs{gap:24px}
 #player-page .profile-tabs button{font-size:14px}
 #player-page .profile-controls{gap:14px 12px;margin:24px 0}
 #player-page .profile-controls label:last-child{flex-basis:100%}
 #player-page .profile-controls select{font-size:16px;width:100%}
 .performance-heading{align-items:flex-start}
 .performance-heading>div{display:block}
 .performance-heading>div>span{display:block;margin-top:7px}
 .performance-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .performance-stat{padding:18px 16px}
 .performance-value{font-size:32px}
 .performance-stat h4{font-size:14px}
 .performance-standing{font-size:12px;gap:5px;margin:20px 0 12px;flex-wrap:wrap}
 #player-page .profile-main .profile-metrics{grid-template-columns:1fr 1fr;gap:24px 0}
 #player-page .profile-main .profile-metrics>div:nth-child(3){border:0}
}
/* Keep the first performance row visible on typical laptop displays. */
@media(min-width:601px){
 #player-page .profile-page-top{min-height:60px;padding-block:8px}
 #player-page .profile-page-body{padding-top:24px}
 #player-page .profile-hero{padding-bottom:20px}
 #player-page .profile-hero .portrait-profile{width:80px;height:88px}
 #player-page .profile-hero h1{font-size:36px}
 .profile-facts{padding:16px 0 4px}
 .profile-facts dt{margin-bottom:6px}
 .profile-facts small{margin-top:2px}
 .profile-sources{margin-bottom:4px}
 .profile-sources summary{min-height:32px}
 #player-page .profile-tabs button{padding-block:12px;min-height:46px}
 #player-page .profile-controls{margin:22px 0}
 .performance-stat{padding:20px 24px}
 .performance-standing{margin-top:18px}
}

/* Saved player collections. */
.folders-board .folder-toolbar{border:0;padding:0;margin:4px 0 24px;gap:16px;min-width:0}
.folder-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}
.folder-heading h2{font-size:26px;font-weight:600;letter-spacing:-.5px;margin:0}
.folder-primary-actions{display:flex;gap:10px;align-items:center}
#new-folder{background:#f4f4f4;color:#111;border-color:#f4f4f4;min-height:42px}
.folder-tools{position:relative}
.folder-tools summary{display:flex;gap:14px;align-items:center;cursor:pointer;list-style:none;border:1px solid #383838;padding:0 14px;min-height:42px;font-size:13px}
.folder-tools summary::-webkit-details-marker{display:none}
.folder-tools-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:215px;background:#202020;border:1px solid #404040;border-radius:6px;box-shadow:0 12px 32px #0009;padding:6px;z-index:15}
.folder-tools-menu button{display:block;width:100%;min-height:42px;text-align:left;padding:10px 12px;border:0;background:none;font-size:14px;border-radius:3px}
.folder-tools-menu button:hover,.folder-tools-menu button:focus-visible{background:#ffffff10}
.folder-cards{display:flex;gap:12px;overflow-x:auto;padding:2px 2px 8px;scrollbar-width:thin}
.folder-card{display:flex;align-items:center;gap:16px;min-width:190px;max-width:260px;flex:0 0 auto;text-align:left;background:#191919;border:1px solid #343434;border-radius:6px;padding:18px 20px;min-height:86px}
.folder-card[aria-current=page]{background:#262626;border-color:#aaa}
.folder-card>svg{width:24px;height:24px;flex-shrink:0;color:#bdbdbd}
.folder-card span{min-width:0}.folder-card strong{display:block;font-size:15px;font-weight:600;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.folder-card small{display:block;margin-top:7px;color:#aaa;font-size:13px}
.folder-context{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#aaa;font-size:13px;min-height:40px}
.folder-context .secondary{min-height:40px;font-size:13px}
.folder-context .secondary[aria-pressed=true]{background:#f4f4f4;color:#111;border-color:#f4f4f4}
.folders-board .board-tools h1{font-size:20px;max-width:50vw;overflow-wrap:anywhere}
.folders-board #result-count{background:none;padding:0;color:#aaa;font-size:13px}
.folders-board .board-tools{padding-bottom:8px}
.folders-board .table-wrap{max-height:clamp(420px,calc(100dvh - 290px),900px)}
.folder-table{border-collapse:separate;border-spacing:0}
.folder-table th{white-space:nowrap;font-size:12px;height:46px}
.folder-table td{height:66px;font-size:14px;padding:8px 12px}
.folder-table .person-button{min-width:220px}
.folder-table .board-player-name{font-size:15px;font-weight:600}
.folder-table .board-bio{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:400;color:#aaa;margin-top:5px}
.folder-table .status-button{min-height:36px;border-radius:4px;background:#242424;color:#ddd}
.folder-table .note-preview button{min-height:40px;max-width:190px;font-size:13px}
.folder-table .compare-cell{padding:0 4px;width:44px}
.compare-target{display:grid;place-items:center;min-width:40px;min-height:44px;cursor:pointer}
.folder-table tr:has(input:checked){background:#ffffff09}
.folder-table .star{width:40px;min-height:40px}
.folder-table .rank-controls button{width:36px;min-height:40px}
.folders-board .compare-bar{background:#232323;padding:12px 16px;border:1px solid #444;border-radius:6px;margin:0 0 16px;color:#ddd}
.folders-board #compare-open:not(:disabled){background:#eee;color:#111}
.folders-board .empty{padding:56px 24px;border:1px dashed #444;border-radius:6px;line-height:1.7}
@media(max-width:600px){
 .folder-heading{align-items:flex-start;flex-direction:column;gap:16px}
 .folder-primary-actions{width:100%}.folder-tools{margin-left:auto}
 .folder-card{min-width:180px;padding:16px;min-height:80px}
 .folder-context{align-items:flex-start;flex-wrap:wrap;font-size:12px}
 .folder-context>span{max-width:230px;line-height:1.6}
 .folders-board .board-tools{align-items:flex-start;gap:14px}
 .folders-board .board-tools>div:first-child{align-items:flex-start;flex-direction:column;gap:8px}
 .folders-board .board-tools h1{max-width:65vw}
 .folders-board .compare-bar{align-items:stretch}
 .folders-board .compare-bar>div{justify-content:space-between}
 .folder-table .rank-controls button,.folder-table .star{min-width:44px;min-height:44px}
}
/* Reports */
#reports-page{padding:32px 0}.report-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px}.report-heading h1{font-size:32px;margin:0 0 8px}.report-heading p,.report-heading>span,.report-preview small,.report-history span,.report-history small{color:var(--muted)}.report-composer{display:flex;gap:16px;align-items:end;flex-wrap:wrap;padding:20px;border:1px solid var(--line)}.report-composer label{display:grid;gap:8px;font-size:13px}.report-composer label:first-child{flex:1;min-width:200px}.report-composer select,.report-composer input{min-height:44px;padding:10px;color:var(--text);background:var(--bg);border:1px solid var(--line);color-scheme:dark}.report-status{min-height:24px;margin:16px 0}.report-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:28px}.report-layout h2{font-size:20px}.report-history-item{display:grid;width:100%;text-align:left;gap:8px;background:transparent;color:var(--text);padding:18px 14px;border:1px solid var(--line);margin:8px 0;cursor:pointer}.report-history-item.selected{background:#262626;border-color:#aaa}.report-history-item span,.report-history-item small{font-size:12px}.report-preview{border:1px solid var(--line);min-width:0}.report-message-header{padding:28px;border-bottom:1px solid var(--line)}.report-message-header>span{font-size:12px;color:var(--muted)}.report-message-header h2{font-size:28px;margin:14px 0 8px}.report-message-header .secondary{margin-top:16px;background:#f4f4f4;color:#111}.report-message-body{padding:28px}.report-message-body h3{margin:28px 0 12px}.report-summary{line-height:1.6;font-size:17px}.report-games article{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0;border-bottom:1px solid var(--line)}.report-games a{font-weight:600;color:var(--text)}.report-games p{margin:6px 0;color:var(--muted);font-size:14px}.report-stats{display:flex;gap:20px}.report-stats span{display:grid;gap:6px;color:var(--muted);font-size:11px;text-align:right}.report-stats b{font-size:23px;color:var(--text);font-variant-numeric:tabular-nums}.report-message-body footer{font-size:12px;color:var(--muted);padding-top:28px}.report-message-body a{color:inherit}@media(max-width:800px){.report-layout{grid-template-columns:1fr}.report-history{display:flex;gap:8px;overflow:auto}.report-history-item{min-width:220px}.report-heading{align-items:start;flex-direction:column}.report-message-header,.report-message-body{padding:20px}.report-stats{gap:12px}}
.research-background{border:1px solid var(--line);padding:28px;margin:24px 0;max-width:1000px}.research-background>section+section{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.research-background h3{font-size:19px;margin:0 0 14px}.background-narrative{font-size:17px;line-height:1.85;max-width:78ch;margin:0}.research-background ul{padding-left:20px;line-height:1.8}.research-background li{margin:9px 0}.research-background sup{font-size:11px;margin-left:3px}.research-background details{margin-top:24px;color:var(--muted);font-size:13px}.research-background blockquote{line-height:1.6;margin:10px 0 20px;border-left:2px solid var(--line);padding-left:16px}.research-background details summary{cursor:pointer}@media(max-width:600px){.research-background{padding:18px}.background-narrative{font-size:16px}}
/* PDF downloads use the profile's existing actions and work on narrow screens. */
.research-export-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.pdf-message{font-size:12px;color:var(--muted);max-width:240px;line-height:1.5}.profile-page-top{flex-wrap:wrap}.research-export-actions .pdf-message{flex-basis:100%;text-align:right}

/* Internal review register */
#review-page{max-width:1280px;margin:24px auto 60px;padding:0 24px}
.review-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}
.review-heading h1{font-size:32px;margin:6px 0}.review-heading p,.review-eyebrow{color:#aaa;font-size:14px;margin:0}
.review-counts{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:28px}
.review-counts button{background:#171717;border:1px solid #393939;color:#bcbcbc;text-align:left;padding:18px;border-radius:8px;cursor:pointer}
.review-counts button[aria-pressed=true]{border-color:#eee;color:#fff;background:#222}
.review-counts strong{display:block;font-size:30px;font-variant-numeric:tabular-nums;color:#fff;margin-bottom:6px}
.review-counts span{font-size:14px}.review-filters{display:flex;gap:16px;align-items:end;flex-wrap:wrap}
.review-filters label{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#bcbcbc;min-width:150px}.review-search{flex:1}
.review-filters input,.review-filters select{background:#151515;color:#eee;border:1px solid #505050;border-radius:6px;padding:11px 12px;font:inherit;min-height:44px}
.review-list-heading{display:flex;justify-content:space-between;align-items:center;margin:26px 0 12px}.review-list-heading h2{font-size:18px}.review-list-heading span{color:#aaa;font-size:14px}
.review-item{border-top:1px solid #333}.review-item:last-child{border-bottom:1px solid #333}
.review-item>summary{display:flex;align-items:center;gap:18px;cursor:pointer;padding:18px 4px;list-style:none}.review-item>summary::-webkit-details-marker{display:none}
.review-item>summary:hover{background:#191919}.review-item summary:focus-visible{outline:2px solid #fff;outline-offset:2px}
.review-priority{min-width:58px;color:#aaa;font-size:12px}.review-high{color:#fff;font-weight:700}
.review-title{flex:1;min-width:0}.review-title strong{display:block;font-size:16px;font-weight:600}.review-title small{display:block;color:#aaa;font-size:12px;margin-top:6px}
.review-status{font-size:12px;color:#ccc;white-space:nowrap}.review-detail{padding:0 24px 24px 80px;line-height:1.55;color:#ccc}
.review-detail h3{color:#fff;font-size:14px;margin:20px 0 0}.review-detail p{margin:8px 0 16px}.review-detail a{display:inline-block;margin:8px 14px 8px 0;color:#fff}
.review-detail details{margin-top:20px}.review-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#191919;padding:16px;max-height:380px;overflow:auto;font-size:12px}
.review-id{display:block;color:#aaa;overflow-wrap:anywhere;margin-top:18px}
#review-more{display:block;margin:24px auto}.review-scope{margin-top:32px;color:#aaa;font-size:13px;line-height:1.6}
@media(max-width:700px){#review-page{padding:0 10px}.review-counts{grid-template-columns:repeat(2,1fr)}.review-item>summary{gap:10px}.review-priority{min-width:42px}.review-status{max-width:70px;white-space:normal}.review-detail{padding:0 10px 20px}.review-filters label{flex:1}.review-heading h1{font-size:27px}}
/* Agent directory */
#agents-page{padding:28px 0 48px}.agents-heading,.agents-heading>div:last-child,.agent-profile-heading,.agent-linked-section>header,.agent-conversations>header,.agent-picker>header,.agent-dialog header,.agent-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.agents-heading h1{margin:0;font-size:28px}.agents-heading p,.agent-profile-heading p{margin:6px 0;color:var(--muted)}.agent-primary{background:var(--text,#eee);color:var(--bg,#111);border:1px solid var(--text,#eee);padding:10px 16px;min-height:42px;border-radius:4px;font:inherit;font-weight:600;cursor:pointer}.agents-feedback{min-height:24px;margin:12px 0;color:var(--muted)}.agents-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:start}.picker-open .agents-layout{grid-template-columns:230px minmax(300px,1fr) 290px}.agents-directory{position:sticky;top:20px}.agents-directory>input,.agent-picker>input{width:100%;box-sizing:border-box}.agents-archive{display:flex;align-items:center;gap:9px;font-size:13px;margin:14px 0;color:var(--muted)}.agents-archive input,.agent-conversation-players input{width:16px;height:16px;accent-color:var(--text)}.agent-list{display:grid;gap:6px;max-height:72vh;overflow:auto}.agent-card{width:100%;display:flex;align-items:center;text-align:left;gap:12px;padding:14px 12px;background:transparent;color:var(--text);border:1px solid transparent;border-radius:5px;cursor:pointer;min-height:84px;font:inherit}.agent-card:hover,.agent-card.selected{background:var(--surface,#222);border-color:var(--line,#444)}.agent-card.drop-target{outline:2px solid var(--text);outline-offset:-2px;background:var(--surface,#222)}.agent-card>span:last-child{display:grid;gap:4px;min-width:0}.agent-card strong{font-size:14px;overflow-wrap:anywhere}.agent-card span span,.agent-card small{color:var(--muted);font-size:12px}.agent-avatar{width:36px;height:36px;flex-shrink:0;background:var(--surface,#242424);border:1px solid var(--line);display:grid;place-items:center;border-radius:50%;font-size:12px}.agent-detail{border:1px solid var(--line);border-radius:6px;padding:28px;min-width:0;min-height:420px}.agent-profile-heading{align-items:start}.agent-profile-heading h2{font-size:26px;margin:4px 0 0;overflow-wrap:anywhere}.agent-profile-heading p{font-size:13px}.agent-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:28px 0}.agent-contact-grid>div{display:grid;gap:6px;min-width:0}.agent-contact-grid span{font-size:12px;color:var(--muted)}.agent-contact-grid strong{font-size:14px;font-weight:400;overflow-wrap:anywhere}.agent-detail a{color:inherit;text-underline-offset:3px}.agent-general-notes{border-top:1px solid var(--line);padding-top:20px}.agent-general-notes p,.agent-note-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:14px}.agent-detail h3{font-size:16px;margin:0}.agent-detail h3 span{color:var(--muted);font-weight:400;margin-left:6px}.agent-linked-section,.agent-conversations{border-top:1px solid var(--line);margin-top:26px;padding-top:22px}.agent-linked-players{margin-top:14px}.agent-linked-player,.agent-candidate{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.agent-linked-player img,.agent-candidate img,.agent-player-initials{height:42px;width:42px;object-fit:cover;object-position:top;border-radius:50%;flex-shrink:0;background:var(--surface,#222)}.agent-player-initials{display:grid;place-items:center;font-size:12px;color:var(--muted)}.agent-linked-player>div,.agent-candidate>div{min-width:0;flex:1;display:grid;gap:5px}.agent-linked-player a,.agent-candidate strong{font-size:14px;font-weight:600;text-decoration:none;overflow-wrap:anywhere}.agent-linked-player small,.agent-candidate small{font-size:12px;color:var(--muted)}.agent-relationship{background:transparent;border:0;color:var(--text);font:inherit;font-size:13px;text-align:right;cursor:pointer;padding:8px;min-height:44px}.agent-relationship small{display:block;margin-top:4px}.agent-muted{color:var(--muted);font-size:13px}.agent-conversation{padding:20px 0;border-bottom:1px solid var(--line)}.agent-conversation header,.agent-conversation footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.agent-conversation header strong{color:var(--text);font-size:14px}.agent-conversation footer strong{font-weight:500;color:var(--text)}.agent-note-players{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.agent-note-players a{font-size:12px;padding:5px 8px;border:1px solid var(--line);border-radius:4px;text-decoration:none}.agent-picker{position:sticky;top:20px;min-width:0;border-left:1px solid var(--line);padding-left:20px}.agent-picker h2{font-size:16px;margin:0}.agent-picker>p{color:var(--muted);font-size:12px;line-height:1.5}.agent-player-results{max-height:65vh;overflow:auto}.agent-candidate{cursor:grab;gap:8px}.agent-candidate .secondary{font-size:12px;padding:6px 10px}.agent-empty{padding:32px 12px;color:var(--muted);line-height:1.6}.agent-empty h2{font-size:18px;color:var(--text);margin:0}.agent-empty p{font-size:14px}.agent-dialog{background:var(--bg,#111);color:var(--text,#eee);border:1px solid var(--line,#444);border-radius:8px;width:min(620px,calc(100vw - 40px));padding:28px;max-height:85vh;overflow:auto;box-shadow:0 20px 70px #0008;box-sizing:border-box}.agent-dialog::backdrop{background:#0009}.agent-dialog header{margin-bottom:24px}.agent-dialog h2{font-size:22px;margin:0}.agent-dialog label:not(.agents-archive){display:grid;gap:8px;font-size:13px;color:var(--muted);margin-bottom:18px}.agent-dialog input,.agent-dialog textarea,.agent-dialog select{width:100%;box-sizing:border-box;color:var(--text);background:var(--surface,#222);font:inherit}.agent-dialog textarea{resize:vertical;line-height:1.5;padding:12px}.agent-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.agent-dialog footer{justify-content:flex-end;margin-top:20px}.agent-form-error{color:#ffaaaa;font-size:13px}.agent-conversation-players{border:1px solid var(--line);padding:12px;margin:0 0 18px;max-height:180px;overflow:auto}.agent-conversation-players legend{font-size:13px;color:var(--muted)}.agent-dialog .agent-conversation-players label{display:flex;align-items:center;gap:8px;margin:8px 0;color:var(--text)}.agent-dialog .agent-conversation-players input{width:16px;height:16px}.agent-dialog button:disabled,.agents-layout button:disabled{opacity:.6;cursor:not-allowed}.agent-conversations>[data-older]{margin-top:16px}
@media(max-width:1250px){.picker-open .agents-layout{grid-template-columns:220px minmax(0,1fr)}.agent-picker{grid-column:1/-1;position:static;border-left:0;border-top:1px solid var(--line);padding:20px 0}.agent-player-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;max-height:320px}}
@media(max-width:760px){.agents-layout,.picker-open .agents-layout{grid-template-columns:1fr}.agents-directory{position:static}.agent-list{max-height:260px}.agent-detail{padding:20px}.agent-contact-grid,.agent-form-grid{grid-template-columns:1fr}.agents-heading{align-items:start}.agents-heading>div:last-child{flex-wrap:wrap;justify-content:flex-end}.agent-profile-heading h2{font-size:22px}.agent-dialog{padding:20px}.agent-player-results{grid-template-columns:1fr}.agent-linked-player{gap:8px}.agent-relationship{max-width:145px}}
.agent-drag-handle{border:0;background:transparent;color:var(--muted);font-size:24px;padding:6px;min-width:30px;min-height:44px;cursor:grab;touch-action:none;user-select:none}.agent-drag-handle:active{cursor:grabbing}.agents-directory>input,.agent-picker>input{background:var(--raised);color:var(--text);border:1px solid var(--line);border-radius:4px;padding:11px 12px;min-height:42px}
.agent-dialog input:not([type=checkbox]),.agent-dialog select{min-height:42px;padding:9px 11px;border:1px solid var(--line);border-radius:4px}.agent-dialog .agents-archive input{width:16px;height:16px;min-height:0;padding:0;flex:none}.agent-dialog .agents-archive{align-items:center;line-height:1.5}
/* Product tasks */
#tasks-page{padding:20px 0 40px}.tasks-heading,.tasks-heading>div:last-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.tasks-heading h1{margin:0;font-size:28px}.tasks-heading p{margin:6px 0;color:var(--muted)}.task-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:28px 0 0}.task-search{flex:1;min-width:220px}.task-filters input[type=search],.task-filters select{width:100%;min-height:42px;padding:10px 12px;border:1px solid var(--line);border-radius:4px;background:var(--raised);color:var(--text)}.task-archive{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.task-archive input{accent-color:white}.task-view-switch{display:flex;gap:4px}.task-view-switch [aria-pressed=true]{background:var(--text);color:var(--bg)}.task-feedback{min-height:20px;font-size:13px;color:var(--muted);margin:14px 0}.task-group{min-width:0}.task-group>header{display:flex;align-items:center;gap:10px;padding:16px 0}.task-group h2{font-size:15px;font-weight:600;margin:0}.task-group>header>span{font-size:12px;color:var(--muted);border:1px solid var(--line);border-radius:4px;padding:2px 6px}.task-card{width:100%;display:flex;align-items:center;justify-content:space-between;gap:20px;border:0;border-top:1px solid var(--line);background:transparent;color:var(--text);padding:18px 12px;text-align:left;cursor:pointer;font:inherit}.task-card:hover{background:var(--raised)}.task-card-main{min-width:0}.task-card strong{font-size:15px;line-height:1.5;overflow-wrap:anywhere;font-weight:600}.task-card-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:8px}.task-card-side{display:grid;gap:6px;text-align:right;font-size:12px;color:var(--muted);flex-shrink:0}.task-card-side small{font-size:12px}.task-priority{color:var(--text)}.priority-high,.priority-urgent{font-weight:700}.priority-urgent::before{content:'! ';}.task-internal{border:1px solid var(--line);border-radius:3px;padding:2px 5px;color:var(--muted)}.task-overdue{color:#f5b2ac}.task-empty{margin:0;padding:18px 12px;border-top:1px solid var(--line);color:var(--muted);font-size:13px}.task-list .task-group{margin-bottom:18px}.task-board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(240px,1fr);gap:16px;overflow:auto;padding-bottom:20px}.task-board .task-group{border:1px solid var(--line);padding:0 12px 16px;border-radius:5px;min-height:330px}.task-board .task-group.drop-target{outline:2px solid var(--text);outline-offset:-2px}.task-board .task-card{display:block;border:1px solid var(--line);border-radius:4px;margin-top:10px;background:var(--bg);padding:14px;cursor:grab}.task-board .task-card-side{text-align:left;margin-top:18px}.task-board .task-card strong{font-size:14px}.task-dialog{width:min(760px,calc(100vw - 40px))}.task-dialog>header{align-items:flex-start}.task-dialog h2{line-height:1.4;overflow-wrap:anywhere}.task-detail-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:13px}.task-facts{display:flex;gap:48px;margin:24px 0}.task-facts dt{font-size:12px;color:var(--muted);margin-bottom:6px}.task-facts dd{font-size:14px;margin:0}.task-prose{border-top:1px solid var(--line);margin-top:24px;padding-top:6px}.task-prose h3,.task-activity h3{font-size:15px;margin:22px 0 10px}.task-prose p{white-space:pre-wrap;font-size:14px;line-height:1.65;overflow-wrap:anywhere}.task-prose a{font-size:13px;overflow-wrap:anywhere}.task-activity{border-top:1px solid var(--line);margin-top:24px}.task-event{padding:14px 0;border-bottom:1px solid var(--line)}.task-event header{margin:0;display:flex;gap:16px;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted)}.task-event p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6;color:var(--muted);margin:8px 0 0}.task-event.comment p{color:var(--text);font-size:14px}.task-comment{margin-top:24px}.task-comment textarea{width:100%;padding:12px}.task-error{color:#ffaaaa;font-size:13px}.task-activity [data-older]{margin-top:16px}.task-list .task-group-items{border-bottom:1px solid var(--line)}
@media(max-height:850px) and (min-width:761px){.sidebar nav{gap:6px}.sidebar .nav{min-height:82px}}
@media(max-width:760px){.tasks-heading{align-items:flex-start}.tasks-heading>div:last-child{flex-wrap:wrap;justify-content:flex-end}.task-card{align-items:flex-start;padding:16px 8px;gap:10px}.task-card-side{max-width:105px}.task-card-meta{gap:8px}.task-filters{gap:8px}.task-search{flex-basis:100%}.task-facts{gap:24px}.task-board{grid-auto-columns:260px}.task-event header{align-items:flex-start;flex-wrap:wrap}}

/* Owner tools stay outside scouting navigation. */
.admin-menu{position:relative;margin-left:auto}.admin-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;width:36px;height:36px;border-radius:4px;color:var(--muted);cursor:pointer}.admin-menu>summary::-webkit-details-marker{display:none}.admin-menu>summary:hover,.admin-menu[open]>summary{background:var(--raised);color:var(--text)}.admin-menu>summary:focus-visible{outline:2px solid var(--text);outline-offset:2px}.admin-menu-items{position:absolute;right:0;top:calc(100% + 8px);z-index:80;min-width:170px;padding:6px;background:var(--bg);border:1px solid var(--line);border-radius:6px;box-shadow:0 8px 24px #0006}.admin-menu-items button{display:block;width:100%;border:0;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer;padding:12px;border-radius:3px}.admin-menu-items button:hover,.admin-menu-items button:focus-visible{background:var(--raised)}
.topbar>.header-actions{margin-left:auto}.admin-menu{order:10}
/* Tasks: milestone table and contextual detail panel. */
#tasks-page{padding-top:24px}.tasks-heading{margin-bottom:24px}.task-eyebrow{font-size:12px;color:var(--muted);margin-bottom:8px}.tasks-heading h1{display:flex;align-items:center;gap:12px;font-size:30px;letter-spacing:-.7px}.tasks-heading [data-total]{font-size:14px;font-weight:500;color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:3px 8px;letter-spacing:0}.tasks-heading [data-refresh]{font-size:22px;width:42px;padding:0}.task-status-strip{display:flex;gap:6px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:12px;overflow:auto}.task-status-strip button{display:flex;align-items:center;gap:9px;flex-shrink:0;background:transparent;color:#a8a8a8;border:1px solid transparent;border-radius:6px;padding:9px 12px;min-height:42px;font:inherit;font-size:13px;cursor:pointer}.task-status-strip button:hover{color:#fff;background:#1c1c1c}.task-status-strip button[aria-pressed=true]{color:#fff;background:#252525;border-color:#434343}.task-status-strip strong{font-size:11px;font-weight:500;min-width:19px;text-align:center;background:#303030;border-radius:4px;padding:2px 4px;color:#ccc;font-variant-numeric:tabular-nums}.task-all-icon{font-size:20px;line-height:16px}.task-state-icon{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;flex:0 0 14px;border:1.5px solid #929292;border-radius:50%;box-sizing:border-box;font-size:10px;line-height:1;color:#fff}.state-agreed{border-style:dashed;border-color:#e0e0e0}.state-in_progress{border-color:#fff;background:linear-gradient(90deg,#eee 50%,transparent 50%)}.state-review{border:0;font-size:24px}.state-done{background:#e8e8e8;border-color:#e8e8e8;color:#111;font-weight:800}.task-filters{margin-top:18px;gap:12px}.task-search{min-width:180px;max-width:330px}.task-search input{font-size:13px;background:transparent!important}.task-filter-field{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:12px;color:var(--muted)}.task-filter-field select{font-size:13px;min-width:108px;background:transparent}.task-filters [data-visibility]{font-size:13px;background:transparent}.task-view-switch{margin-left:auto;background:#191919;border:1px solid #353535;border-radius:6px;padding:3px;gap:2px}.task-view-switch .secondary{border:0;border-radius:4px;min-height:34px;font-size:12px;padding:7px 13px;color:#aaa;background:transparent}.task-view-switch [aria-pressed=true]{background:#373737;color:#fff}.task-feedback{min-height:0;height:auto;font-size:12px;margin:10px 0}.task-feedback:empty{margin:12px 0}.task-table-scroll{overflow:auto;border:1px solid #323232;border-radius:8px}.task-table{width:100%;min-width:1020px;table-layout:fixed;border-collapse:separate;border-spacing:0;white-space:normal;font-size:13px}.task-col-title{width:38%}.task-col-status{width:20%}.task-col-priority{width:12%}.task-col-owner{width:17%}.task-col-date{width:13%}.task-table th,.task-table td{position:static;text-align:left!important;padding:0 14px;height:56px;border:0;border-bottom:1px solid #292929;background:transparent;vertical-align:middle;color:#ddd}.task-table thead th{background:#181818;font-size:11px;color:#a2a2a2;height:40px;font-weight:500;letter-spacing:.2px}.task-table th+th,.task-table td+td{border-left:1px solid #232323}.task-table tbody tr:last-child td{border-bottom:1px solid #292929}.task-table tbody:last-child tr:last-child td{border-bottom:0}.task-table tbody tr[data-row]:hover td,.task-table tbody tr[data-row]:focus-within td{background:#191919}.task-table .task-milestone-row th{padding:0;height:48px;background:#1c1c1c;border:0;border-bottom:1px solid #353535}.task-group-toggle{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;border:0;background:transparent;color:#eee;padding:8px 14px;font:inherit;text-align:left;cursor:pointer}.task-group-toggle strong{font-size:13px;font-weight:600}.task-chevron{font-family:Arial,sans-serif;font-size:18px;color:#aaa;width:12px;text-align:center}.task-group-count{color:#a2a2a2;font-size:11px}.task-group-progress{display:flex;align-items:center;gap:10px;margin-left:auto;color:#999;font-size:11px;font-weight:400}.task-progress-track{display:block;width:70px;height:4px;border-radius:3px;background:#393939;overflow:hidden}.task-progress-track i{display:block;height:100%;background:#ddd;border-radius:3px}.task-title-button{display:flex;align-items:center;gap:10px;text-align:left;min-height:56px;width:100%;padding:8px 0;border:0;background:transparent;color:#eee;font:inherit;cursor:pointer}.task-row-title{line-height:1.45;font-size:13px;font-weight:500}.task-private{font-size:10px;color:#a3a3a3;border:1px solid #393939;padding:2px 4px;border-radius:3px;flex-shrink:0}.task-comment-count{white-space:nowrap;font-size:11px;color:#aaa}.task-open-arrow{margin-left:auto;color:#888;opacity:0}.task-title-button:hover .task-open-arrow,.task-title-button:focus-visible .task-open-arrow{opacity:1}.task-status-cell,.task-priority-cell{display:flex;align-items:center;gap:8px;border-radius:5px;padding-left:7px;min-height:38px}.task-status-cell{background:#222;border:1px solid #343434;max-width:178px}.task-table select{border:0;background:transparent;color:#ddd;font:inherit;font-size:12px;padding:8px 2px;min-height:38px;min-width:0;width:100%;cursor:pointer}.task-table select option{background:#222;color:#eee}.task-table select:disabled{cursor:default;opacity:.6}.task-priority-cell{padding-left:0;gap:6px}.task-priority-bars{display:flex;align-items:flex-end;gap:2px;flex-shrink:0;height:13px}.task-priority-bars i{width:3px;background:#ddd;border-radius:1px;height:5px}.task-priority-bars i:nth-child(2){height:9px}.task-priority-bars i:nth-child(3){height:13px}.bars-normal i:nth-child(3),.bars-low i:nth-child(n+2){background:#454545}.bars-urgent i{background:#fff}.task-owner-cell,.task-date-cell{display:flex;align-items:center;gap:8px;border:0;background:transparent;color:#ccc;min-height:44px;padding:4px 0;font:inherit;font-size:12px;cursor:pointer;text-align:left;max-width:100%}.task-owner-cell>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-avatar{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:25px;height:25px;border-radius:50%;background:#353535;color:#ddd;font-size:10px;letter-spacing:.4px}.unassigned{color:#999}.unassigned .task-avatar{border:1px dashed #5a5a5a;background:transparent;font-size:17px;color:#888}.task-date-cell{flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;white-space:nowrap}.task-date-cell small{font-size:10px;color:#e9b4af}.task-no-date{color:#8e8e8e}.task-date-cell:hover,.task-owner-cell:hover{color:#fff}.task-no-results{padding:60px 20px;text-align:center;border:1px dashed #383838;border-radius:8px}.task-no-results strong{font-size:16px}.task-no-results p{color:var(--muted);font-size:13px}.task-board .task-group>header{gap:8px}.task-board .task-group>header>span:last-child{margin-left:auto}.task-sidepanel{position:fixed;inset:0 0 0 auto;margin:0;width:min(570px,100vw);height:100dvh;max-height:100dvh;border-radius:0;border-width:0 0 0 1px;padding:28px;box-shadow:-20px 0 70px #0006}.task-sidepanel::backdrop{background:#0006;backdrop-filter:none}.task-sidepanel>header{border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:22px;gap:20px}.task-sidepanel h2{font-size:23px;letter-spacing:-.3px;line-height:1.4}.task-sidepanel [data-close]{min-width:40px;font-size:23px;padding:0}.task-detail-status{display:inline-flex;align-items:center;gap:8px;color:#eee}.task-sidepanel .task-facts{background:#1c1c1c;border:1px solid #333;border-radius:6px;padding:16px;gap:32px}.task-sidepanel .task-prose{border:0;margin-top:18px}.task-sidepanel .task-prose p{color:#c9c9c9}.task-sidepanel .task-event header{font-size:11px}.task-sidepanel .task-edit label{font-size:12px}.task-sidepanel .task-edit textarea{font-size:14px;line-height:1.5}.task-table button:focus-visible,.task-group-toggle:focus-visible,.task-status-strip button:focus-visible{outline:2px solid #ddd;outline-offset:-2px;border-radius:3px}
@media(max-width:760px){.task-filters{gap:8px}.task-search{flex-basis:100%;max-width:none}.task-filter-field{gap:5px}.task-filter-field select{min-width:90px}.task-view-switch{margin-left:0}.task-status-strip{margin-right:-12px}.task-status-strip button{min-height:44px}.task-sidepanel{padding:22px 18px}.task-table{min-width:980px}.task-table select{min-height:44px}.task-group-progress{gap:6px}.task-progress-track{width:44px}.tasks-heading{margin-bottom:18px}.tasks-heading h1{font-size:27px}}

/* PBS club onboarding and membership management. */
.clubs-dialog{width:min(760px,calc(100vw - 32px));max-height:85dvh;padding:24px;background:var(--panel,#101010);color:var(--text,#151515);border:1px solid var(--line,#ddd);border-radius:12px;box-shadow:0 24px 80px #0003;overflow:auto}
.clubs-dialog::backdrop{background:#0008}
.clubs-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}
.clubs-dialog h2,.clubs-dialog h3,.clubs-dialog h4{margin:0 0 12px}.clubs-dialog h4{margin-top:24px}
.clubs-dialog label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600}
.clubs-dialog input,.clubs-dialog select,.club-selector select{min-height:40px;padding:8px 12px;border:1px solid var(--line,#ccc);border-radius:6px;background:var(--panel,#101010);color:inherit;font:inherit;max-width:100%}
.club-create-form,.club-invite-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:16px}
.club-create-form h3{flex-basis:100%}.club-create-form label,.club-invite-form label:first-child{flex:1;min-width:170px}
.club-access-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid var(--line,#ddd)}
.club-access-row strong{font-size:14px;overflow-wrap:anywhere}.club-access-row p,.club-help{font-size:13px;line-height:1.5;color:var(--muted,#666);margin:5px 0}
.club-row-actions{display:flex;align-items:center;gap:8px}.club-error{color:#ff9ca9}.club-error:empty,.club-notice:empty{display:none}.club-notice{font-size:14px}
.club-onboarding{width:min(540px,calc(100vw - 40px));margin:auto;padding:32px;border:1px solid var(--line,#ddd);border-radius:12px;background:var(--panel,#101010);color:var(--text,#151515)}
.club-onboarding>button{margin:20px 8px 0 0}.club-onboarding h1{font-size:26px}.club-onboarding p{line-height:1.5}
.clubs-dialog button,.club-onboarding button{min-height:40px}.club-selector select{max-width:190px}
@media(max-width:600px){.club-access-row{align-items:flex-start;flex-direction:column;gap:12px}.club-row-actions{flex-wrap:wrap}.clubs-dialog{padding:18px}.club-onboarding{padding:24px}.account-controls{flex-wrap:wrap}}
.clubs-dialog .primary,.club-onboarding .primary{background:var(--accent);color:var(--bg);border:1px solid var(--accent);border-radius:6px;padding:10px 14px;font-weight:600}

.review-updates{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border:1px solid var(--border,#353535);padding:18px 20px;margin:20px 0}.review-updates p{margin:6px 0 0;color:var(--muted,#b6b6b6)}.review-updates [role="status"]:empty{display:none}.review-updates [role="status"]{flex-basis:100%}
