@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){@media (hover:hover) and (pointer:fine){tbody tr:hover,tbody tr:hover td:first-child{background:var(--raised)}}@media (hover:hover) and (pointer:fine){.person-button:hover,.game-button:hover,.benchmark-name:hover,.performance:hover strong{color:var(--accent)}}@media (hover:hover) and (pointer:fine){.secondary:hover,.close:hover{background:var(--raised)}}@media (hover:hover) and (pointer:fine){.star:hover{color:var(--accent)}}@media (hover:hover) and (pointer:fine){.nav:not(.active):hover{background:var(--raised);color:white}}@media (hover:hover) and (pointer:fine){#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}@media (hover:hover) and (pointer:fine){.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}@media (hover:hover) and (pointer:fine){.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}@media (hover:hover) and (pointer:fine){.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)}@media (hover:hover) and (pointer:fine){.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)}@media (hover:hover) and (pointer:fine){.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}@media (hover:hover) and (pointer:fine){.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}@media (hover:hover) and (pointer:fine){.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}@media (hover:hover) and (pointer:fine){.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(320px,calc(100dvh - 400px),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 10px;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:64px;padding:9px 10px;font-size:14px;border-bottom-color:#292929;vertical-align:middle}
.player-table .person-cell{gap:10px;min-width:270px}
.player-table .person-cell>.player-link{flex:none;padding:0}
.player-table .board-player-name{min-width:0}
.player-table .board-player-name>.player-link{padding:0;min-height:24px;line-height:1.4}
.player-table .board-bio{line-height:1.5;margin-top:2px}
.player-table .trend-cell .spark{margin-left:auto}
.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{width:180px;min-width:150px;max-width:210px;font-size:13px;text-align:left;white-space:normal;overflow:visible}
.player-table .club-list{display:flex;align-items:flex-start;gap:5px}
.player-table .club-label{display:flex;line-height:1.35;white-space:normal}
.player-table .club-label>span{overflow:visible;overflow-wrap:anywhere}
.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:focus-visible{background:#ffffff0d}@media (hover:hover) and (pointer:fine){.player-table .star:hover{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:clamp(320px,calc(100dvh - 400px),640px)}
 .player-table .person-cell{min-width:250px}
 .player-table .person-cell>.player-link{min-height:44px}
 .player-table .team-text{min-width:150px}
 .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:.7fr .7fr 1.1fr 1.5fr 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 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:.7fr .7fr 1.1fr 1.5fr 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;z-index:3}
.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:focus-visible{background:#ffffff10}@media (hover:hover) and (pointer:fine){.folder-tools-menu button:hover{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:80px;font-size:14px;padding:12px;vertical-align:middle}
.folder-table .person-cell{gap:12px;min-width:260px}
.folder-table .person-button{min-width:0;min-height:40px;padding:0;text-decoration:none}
.folder-table .person-cell>.player-link{flex:none}
.folder-table .player-portrait{width:44px;height:44px}
.folder-table .board-player-name>.player-link{display:flex;min-height:24px;line-height:1.4}
.folder-table .folder-player-cell{width:29%;padding-left:4px}
.folder-table .folder-team-heading,.folder-table .folder-status-heading,.folder-table .folder-notes-heading,.folder-table .team-text,.folder-table .folder-status-cell{text-align:left}
.folder-table .team-text{width:22%;min-width:180px;max-width:260px;white-space:normal;overflow:visible}
.folder-table .club-list{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.folder-table .club-label{display:flex;line-height:1.35;white-space:normal}
.folder-table .club-label>span{overflow:visible;overflow-wrap:anywhere}
.folder-table .note-preview{text-align:left;min-width:112px}
.folder-table .note-preview button{padding:8px;max-width:160px}@media (hover:hover) and (pointer:fine){.folder-table .note-preview button:hover{color:#fff;background:#ffffff08;border-radius:4px}}
.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:var(--muted);margin-top:4px;line-height:1.5}
.folder-table .status-button{min-height:40px;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:48px;min-width:48px}
.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:40px;min-height:40px}
@media(max-width:800px){.folder-table .person-cell{min-width:240px}.folder-table .team-text{min-width:170px}.folder-table .compare-target,.folder-table .status-button,.folder-table .person-cell>.player-link{min-height:44px}}
.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(auto-fit,minmax(130px,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}@media (hover:hover) and (pointer:fine){.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.selected{background:var(--surface,#222);border-color:var(--line,#444)}@media (hover:hover) and (pointer:fine){.agent-card:hover{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}@media (hover:hover) and (pointer:fine){.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[open]>summary{background:var(--raised);color:var(--text)}@media (hover:hover) and (pointer:fine){.admin-menu>summary:hover{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:focus-visible{background:var(--raised)}@media (hover:hover) and (pointer:fine){.admin-menu-items button:hover{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}@media (hover:hover) and (pointer:fine){.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]:focus-within td{background:#191919}@media (hover:hover) and (pointer:fine){.task-table tbody tr[data-row]:hover 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:focus-visible .task-open-arrow{opacity:1}@media (hover:hover) and (pointer:fine){.task-title-button:hover .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}@media (hover:hover) and (pointer:fine){.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%}
.agents-view-tabs{display:flex;gap:8px;margin:0 0 24px}.agents-view-tabs [aria-pressed=true]{background:var(--text,#f3f3f3);color:var(--bg,#111);border-color:var(--text,#f3f3f3)}.agents-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px 0}.agents-pagination span{font-size:12px;color:#b8b8b8}.agent-linked-section>p a{color:inherit}.agent-linked-player>a:last-child{margin-left:auto;font-size:12px;white-space:nowrap}

.profile-facts>div{min-width:0}
.profile-agent-names{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.profile-agent-link{padding:0;border:0;border-radius:0;background:none;color:inherit;font:inherit;text-align:left;line-height:inherit;cursor:pointer;overflow-wrap:anywhere;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:4px}@media (hover:hover) and (pointer:fine){.profile-agent-link:hover{background:none;color:var(--text);text-decoration-color:currentColor}}
.profile-agent-link:focus-visible{outline:2px solid currentColor;outline-offset:4px}

.report-email-form{margin-top:24px}.report-email-form fieldset{border:1px solid var(--line);padding:16px;margin:0 0 16px}.report-email-form label{display:flex;align-items:center;gap:8px;margin:10px 0;flex-wrap:wrap}.report-email-form small,.report-email-history small{color:var(--muted)}.report-email-history{margin-top:24px}

/* Club identity and a single workspace menu keep the header focused. */
.brand img,.profile-brand img{display:block;object-fit:contain}
html[data-club="paris"] .brand{height:64px}
html[data-club="paris"] .brand img{width:52px;height:52px}
.workspace-menu{position:relative}
.workspace-menu>summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:40px;padding:8px 12px;cursor:pointer;font-size:13px;color:var(--muted);border-radius:4px}
.workspace-menu>summary::-webkit-details-marker{display:none}.workspace-menu[open]>summary{background:#242424;color:var(--text)}@media (hover:hover) and (pointer:fine){.workspace-menu>summary:hover{background:#242424;color:var(--text)}}
.workspace-menu-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:80;min-width:220px;display:grid;gap:12px;background:#191919;padding:16px;border:1px solid #383838;border-radius:8px;box-shadow:0 16px 48px #0008}
.workspace-menu-panel select,.workspace-menu-panel .club-selector{width:100%;max-width:none}
.workspace-menu-panel .snapshot{display:block;font-size:11px;padding-top:8px;border-top:1px solid #333}
.header-actions{gap:12px}.account-controls{gap:10px;flex-wrap:nowrap}
.profile-page-top .profile-brand img{max-height:44px;width:44px}
@media(max-width:760px){.profile-page-top .account-controls{order:0;flex-basis:auto}.workspace-menu>summary{padding-inline:8px}}
.auth-club-brand{display:flex;align-items:center;justify-content:center;gap:14px;margin-bottom:24px;font-size:20px}.auth-club-brand img{object-fit:contain}
.workspace-menu:not([open])>.workspace-menu-panel{display:none}
.workspace-menu-panel>strong{font-size:14px;font-weight:600}
.workspace-menu-panel .admin-menu{order:0;margin:0}
.workspace-menu-panel .admin-menu>summary{justify-content:flex-start;width:auto;height:36px;font-size:13px;padding-inline:8px}
.workspace-menu-panel .admin-menu-items{position:static;box-shadow:none;border:0;padding:0;min-width:0}
.workspace-menu-panel .admin-menu:not([open])>.admin-menu-items{display:none}
/* Member email subscriptions */
.email-heading h1{margin:0}.email-heading p{font-size:14px;color:var(--muted);margin:10px 0 0}.email-heading strong{font-weight:400;color:var(--text)}#reports-page button{min-height:40px;font:inherit;cursor:pointer}#reports-page .email-primary{background:#f3f3f3;color:#111;border:1px solid #f3f3f3;border-radius:5px;padding:10px 18px;font-weight:500}.email-tabs{display:flex;gap:28px;border-bottom:1px solid var(--line)}.email-tabs button{background:none;border:0;border-bottom:2px solid transparent;color:var(--muted);padding:12px 0}.email-tabs button[aria-pressed=true]{color:var(--text);border-bottom-color:var(--text)}.email-tabs span{margin-left:8px;font-size:12px;background:var(--panel);padding:3px 7px;border-radius:4px}.email-status{min-height:20px;color:var(--muted);font-size:13px}.email-list{display:grid;gap:12px}.email-subscription{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;background:var(--panel);border-radius:8px;box-shadow:0 0 0 1px #ffffff0c}.email-sub-main{min-width:0}.email-sub-title{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.email-sub-title h2{font-size:18px;font-weight:500;margin:0}.email-badge{font-size:12px;padding:5px 9px;border-radius:4px;color:#bbb;background:#ffffff08;white-space:nowrap}.email-badge.is-active{color:#b8d8c2;background:#b8d8c20d}.email-sub-main>p{font-size:13px;line-height:1.6;color:var(--muted);margin:12px 0}.email-timing{display:flex;gap:20px;flex-wrap:wrap;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.email-actions{display:flex;align-items:center;gap:8px}.email-actions button,.email-actions summary,.email-editor button{background:transparent;color:var(--text);border:1px solid var(--line);padding:9px 13px;border-radius:5px}.email-actions details{position:relative}.email-actions summary{list-style:none;cursor:pointer;min-height:40px;box-sizing:border-box}.email-actions details>div{position:absolute;right:0;top:45px;z-index:3;background:#222;padding:6px;border-radius:6px;box-shadow:0 8px 24px #0008;min-width:140px}.email-actions details button{display:block;width:100%;text-align:left;border:0}@media (hover:hover) and (pointer:fine){.email-actions button:hover,.email-editor button:hover{background:#ffffff09}}.email-empty{padding:44px 0 28px}.email-empty h2{font-size:24px;font-weight:500;margin:0 0 10px}.email-empty p{color:var(--muted);font-size:14px;line-height:1.7}.email-starters{margin-top:40px}.email-starters>h2{font-size:14px;font-weight:500;color:var(--muted);margin-bottom:18px}.email-starters>div{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.email-starters button{background:transparent;border:1px solid var(--line);border-radius:8px;text-align:left;padding:24px;color:var(--text);transition:background-color 150ms,border-color 150ms}@media (hover:hover) and (pointer:fine){.email-starters button:hover{background:var(--panel);border-color:#777}}.email-template-icon{display:block;font-size:24px;margin-bottom:28px}.email-starters strong{font-size:17px;font-weight:500}.email-starters p{color:var(--muted);font-size:14px;line-height:1.7;margin:12px 0 24px}.email-starters button>span:last-child{font-size:13px}.email-editor{width:min(1060px,calc(100vw - 48px));max-height:calc(100dvh - 48px);padding:0;color:var(--text);background:var(--bg);border:1px solid #444;border-radius:10px;box-shadow:0 24px 90px #0009;overflow:auto}.email-editor::backdrop{background:#000a;backdrop-filter:blur(3px)}.email-settings>header,.email-sent>header{display:flex;justify-content:space-between;align-items:center;padding:24px 28px;border-bottom:1px solid var(--line)}.email-settings>header span{font-size:12px;color:var(--muted)}.email-settings h2{margin:7px 0 0;font-size:22px;font-weight:500}.email-settings>header button{font-size:24px;border:0;min-width:44px}.email-editor-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr)}.email-fields{padding:0 28px 24px}.email-fields section{padding:22px 0;border-bottom:1px solid var(--line)}.email-fields h3,.email-preview-side h3{font-size:14px;font-weight:500;margin:0 0 18px}.email-fields label{display:grid;gap:8px;font-size:12px;color:var(--muted);margin:0 0 16px}.email-fields input:not([type=checkbox]),.email-fields select{width:100%;min-width:0;box-sizing:border-box;background:var(--panel);border:1px solid #444;color:var(--text);border-radius:4px;min-height:42px;padding:10px 12px;font:inherit;font-size:14px;color-scheme:dark}.email-field-pair{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.email-fields details{font-size:13px;margin:10px 0}.email-fields summary{cursor:pointer;min-height:40px;display:flex;align-items:center;justify-content:space-between}.email-leagues>div{display:grid;grid-template-columns:1fr 1fr;gap:4px}.email-leagues>div label,.email-fields .email-check{display:flex;align-items:center;gap:9px;min-height:36px;color:var(--text);margin:0}.email-fields input[type=checkbox]{accent-color:#ddd;min-width:16px;width:16px;height:16px}.email-leagues p,.email-field-note{font-size:12px;color:var(--muted);line-height:1.6}.email-preview-side{padding:24px;border-left:1px solid var(--line);background:#ffffff02}.email-preview-side>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.email-preview-side h3{margin:0}.email-preview-side>p{font-size:13px;line-height:1.7;color:var(--muted)}.email-preview-side iframe{width:100%;height:520px;background:white;border:0;border-radius:5px;margin:12px 0 18px}.email-settings>footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 28px;border-top:1px solid var(--line);background:var(--bg);position:sticky;bottom:0}.email-settings>footer>span{font-size:12px;color:var(--muted)}.email-settings>footer>div{display:flex;gap:8px}.email-editor [hidden]{display:none!important}.email-history-list>button{width:100%;display:flex;align-items:center;gap:20px;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--line);color:var(--text);padding:20px 8px}.email-history-list>button>span:first-child{flex:1;display:grid;gap:8px}.email-history-list strong{font-size:16px;font-weight:500}.email-history-list small{color:var(--muted);font-size:12px}.email-sent{padding:24px}.email-sent>header{padding:0 0 20px}.email-sent>p{color:var(--muted);font-size:13px}.email-sent article{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:20px 0;border-top:1px solid var(--line)}.email-sent article p,.email-sent article small{color:var(--muted);font-size:13px}.email-sent article strong{font-size:14px}.email-error{color:#edc5a4!important}#reports-page button:focus-visible,.email-editor :is(button,input,select,summary):focus-visible{outline:2px solid #eee;outline-offset:3px}#reports-page button:disabled{opacity:.5;cursor:wait}@media(max-width:850px){.email-subscription{align-items:flex-start;flex-direction:column}.email-starters>div{grid-template-columns:1fr}.email-editor-body{grid-template-columns:1fr}.email-preview-side{border-left:0;border-top:1px solid var(--line)}.email-editor{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.email-settings>footer>span{display:none}.email-settings>footer{justify-content:flex-end}.email-sent article{align-items:flex-start;flex-direction:column}.email-heading{align-items:flex-start}.email-heading>button{width:100%}}

/* Loading follows real work; navigation remains usable. */
.request-progress{position:fixed;inset:0 0 auto;height:3px;z-index:10000;pointer-events:none;overflow:hidden;background:#333}
.request-progress i,.loading-track i{display:block;height:100%;width:40%;background:#ededed;animation:pbs-loading 1.15s ease-in-out infinite}
.loading-state{display:flex;min-height:200px;align-items:center;justify-content:center;flex-direction:column;gap:18px;padding:32px;color:#bdbdbd;font-size:14px}
.loading-state img{object-fit:contain}
.loading-dot{width:8px;height:8px;border-radius:50%;background:#eee}
.loading-track{width:100px;height:2px;background:#343434;overflow:hidden}
.agent-list>.loading-state{min-height:360px}
.request-progress[hidden]{display:none}
@keyframes pbs-loading{0%{transform:translateX(-110%)}100%{transform:translateX(360%)}}
@media(prefers-reduced-motion:reduce){.request-progress i,.loading-track i{animation:none;transform:none;width:100%;opacity:.65}}

/* Admin monitoring: the status stays visible; diagnostics are collapsed. */
.monitor-summary{margin:24px 0;padding:22px 24px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.monitor-summary h2{margin:0 0 10px;font-size:20px;line-height:1.3;color:var(--text)}
.monitor-summary p{margin:8px 0 0;max-width:85ch;color:var(--muted);font-size:14px;line-height:1.5}
.monitor-summary [role="alert"]{color:var(--text);font-weight:600}
.review-updates>div:first-child{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.review-updates>div:first-child p{flex-basis:100%}
@media(max-width:600px){.monitor-summary{padding:18px}.monitor-summary h2{font-size:18px}}
/* Statistic filters: one rule at a time, with the active criteria kept visible. */
.stat-filter-section{margin:-12px 0 24px;border-bottom:1px solid var(--line)}
.stat-filter-section>details>summary{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;font-size:13px;font-weight:600;list-style:none;width:fit-content}
.stat-filter-section>details>summary::-webkit-details-marker{display:none}
#stat-filter-count{color:var(--muted);font-weight:400}.filter-chevron{color:var(--muted);transition:transform .16s}.stat-filter-section details[open] .filter-chevron{transform:rotate(180deg)}
.stat-filter-body{max-width:920px;padding:0 0 16px}.stat-filter-basis{font-size:12px;color:var(--muted);margin:0 0 14px}
.stat-filter-rows{display:grid;gap:12px}.stat-filter-row{display:grid;grid-template-columns:minmax(170px,1.4fr) minmax(90px,1fr) minmax(90px,1fr) auto;gap:12px;align-items:end}.stat-filter-row:has(.stat-attempts){grid-template-columns:minmax(170px,1.4fr) minmax(90px,1fr) minmax(90px,1fr) minmax(120px,1fr) auto}
.stat-filter-row label{display:grid;gap:7px;font-size:12px;color:var(--muted);min-width:0}.stat-filter-row input,.stat-filter-row select{min-width:0;width:100%;height:42px;border:1px solid var(--line);border-radius:4px;background:var(--bg);color:var(--text);padding:0 10px;font:inherit;font-size:14px;font-variant-numeric:tabular-nums}
.stat-filter-row input:focus-visible,.stat-filter-row select:focus-visible{outline:2px solid var(--text);outline-offset:2px}.stat-filter-remove{width:42px;height:42px;border:1px solid var(--line);border-radius:4px;background:transparent;color:var(--muted);font-size:22px}@media (hover:hover) and (pointer:fine){.stat-filter-remove:hover{color:var(--text);background:var(--panel)}}
.stat-filter-actions{display:flex;gap:12px;align-items:center;margin-top:12px}.stat-filter-actions button{min-height:42px;padding:0 14px;border:1px solid var(--line);background:transparent;border-radius:4px;color:var(--text);font-size:13px}.stat-filter-actions [data-stat-clear]{border-color:transparent;color:var(--muted)}.stat-filter-error{color:#ffb3b3;font-size:13px;margin:10px 0 0}.stat-filter-error:empty{display:none}.stat-filter-chips{display:flex;gap:8px;flex-wrap:wrap}.stat-filter-chips:not(:empty){padding:0 0 14px}.stat-filter-chips span{font-size:12px;color:var(--text);background:var(--panel);border:1px solid var(--line);padding:6px 10px;border-radius:4px}
.email-settings .stat-filter-row,.email-settings .stat-filter-row:has(.stat-attempts){grid-template-columns:minmax(130px,1.5fr) minmax(70px,1fr) minmax(70px,1fr) 42px}.email-settings .stat-attempts{grid-column:1/4}.email-settings .stat-filter-remove{grid-column:4;grid-row:1}.email-stat-context{font-size:12px;line-height:1.5;color:var(--muted);margin:10px 0 14px}
@media(max-width:650px){.stat-filter-row,.stat-filter-row:has(.stat-attempts){grid-template-columns:1fr 1fr 42px;gap:10px}.stat-filter-metric{grid-column:1/3}.stat-filter-remove{grid-column:3;grid-row:1}.stat-attempts{grid-column:1/3}.stat-filter-row input,.stat-filter-row select{font-size:16px}}
.email-player-filters{margin-top:22px;padding-top:14px;border-top:1px solid var(--line)}.email-player-filters>summary{min-height:40px;font-size:13px;font-weight:600;cursor:pointer}.email-player-filters[open] .email-field-pair{margin-top:12px}
@media(max-width:650px){.email-settings .stat-filter-row,.email-settings .stat-filter-row:has(.stat-attempts){grid-template-columns:minmax(0,1fr) minmax(0,1fr) 42px}.email-settings .stat-filter-metric,.email-settings .stat-attempts{grid-column:1/3}}
@media(max-width:650px){.email-settings .stat-filter-remove{grid-column:3;grid-row:1}}

/* Club access: management stays inside the selected club. */
.clubs-dialog{width:min(860px,calc(100vw - 32px));max-height:90dvh;padding:28px}.clubs-dialog>header{align-items:center;gap:24px}.clubs-content{min-height:180px}.club-members-heading,.club-members-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0}.club-members-heading h3{font-size:24px;margin:0}.club-member-tabs{display:flex;gap:4px}.club-member-tabs button{background:transparent;color:var(--muted);border-color:transparent}.club-member-tabs button[aria-selected=true]{color:var(--text);background:var(--panel);border-color:var(--line)}.club-access-row{padding:20px 0;gap:20px}.club-access-row>div:first-child{min-width:0}.club-access-row strong{overflow-wrap:anywhere}.club-access-row p{margin:6px 0 0;color:var(--muted);font-size:13px}.club-access-row small{display:block;margin-top:6px;color:var(--muted)}.club-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.club-row-actions button{white-space:nowrap}.club-badge{display:inline-block;margin-left:10px;padding:3px 7px;border:1px solid var(--line);border-radius:4px;font-size:11px;font-weight:500;color:var(--muted);vertical-align:middle}.club-invite-form{padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:8px}.club-invite-form .club-help{grid-column:1/-1;margin:0;font-size:13px;line-height:1.6}.club-danger{color:#ffb4b4;background:#391d22;border:1px solid #85424a}.club-empty{padding:44px 8px;color:var(--muted)}.club-create-section{border-top:1px solid var(--line);margin-top:28px;padding-top:20px}.club-create-section summary{cursor:pointer;color:var(--muted)}.club-create-section form{margin-top:20px}.club-notice:empty,.club-error:empty{display:none}.club-notice{padding:12px 14px;border:1px solid var(--line);border-radius:6px;line-height:1.5}.club-onboarding h2{font-size:18px;margin-top:28px}.club-onboarding>.club-row-actions{justify-content:flex-start;margin-top:24px}.clubs-dialog button:disabled{opacity:.5;cursor:not-allowed}.club-selector{display:grid;gap:6px}.club-onboarding{max-width:620px}
@media(max-width:640px){.clubs-dialog{padding:18px}.club-members-toolbar,.club-access-row{align-items:stretch;flex-direction:column}.club-row-actions{justify-content:flex-start}.club-members-heading{align-items:flex-start;flex-direction:column}.club-invite-form{display:flex;flex-direction:column}.club-member-tabs{flex-wrap:wrap}}

/* Player scouting: notes and a scoped file library. */
.player-scouting{padding-top:8px}.scouting-title{margin-bottom:24px}.scouting-title h2{font-size:24px;font-weight:600;letter-spacing:-.025em}.scouting-workspace-grid{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.7fr);gap:36px;align-items:start}.player-scouting .scouting-editor{margin:0;padding:24px;background:#181818;border:1px solid #333;border-radius:8px}.player-scouting .scouting-editor h3{font-size:17px;margin:0 0 22px}.player-scouting .scouting-editor textarea{min-height:280px;resize:vertical;line-height:1.7}.player-scouting .note-actions{flex-wrap:wrap;gap:12px}.player-scouting .note-actions span{font-size:12px;color:#aaa}.material-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.material-heading h2{font-size:18px;line-height:1.4;margin:0}.material-heading h2 span{font-size:14px;color:#999;font-weight:400}.material-heading p{font-size:12px;color:#aaa;margin:6px 0 0}.material-actions{display:flex;gap:8px;flex-shrink:0}.material-actions button,.material-dialog button,.material-dialog a.secondary{font:inherit;font-size:13px;min-height:40px;padding:9px 14px;border-radius:5px}.material-upload{background:#f5f5f5;color:#111;border:1px solid #f5f5f5;cursor:pointer;font-weight:600}@media (hover:hover) and (pointer:fine){.material-upload:hover{background:#ddd}}.material-upload:disabled{opacity:.6;cursor:wait}.material-drop{display:flex;align-items:center;gap:15px;border:1px dashed #555;border-radius:8px;padding:22px;cursor:pointer;background:#151515;margin-bottom:20px}.material-drop strong{font-size:14px;font-weight:500}.material-drop p{font-size:12px;color:#aaa;margin:4px 0 0}.material-drop-hint{margin-left:auto;max-width:125px;line-height:1.6;font-size:11px;color:#aaa}.material-drop.dragging{border-color:#ddd;background:#202020}@media (hover:hover) and (pointer:fine){.material-drop:hover{border-color:#ddd;background:#202020}}.material-drop:focus-visible,.material-open:focus-visible{outline:2px solid #eee;outline-offset:4px}.material-filters{display:flex;gap:6px;flex-wrap:wrap;margin:20px 0 18px}.material-filters button{padding:7px 12px;font-size:12px;color:#bbb;border:1px solid transparent;border-radius:5px;background:transparent}.material-filters button[aria-pressed=true]{color:#fff;background:#292929;border-color:#444}@media (hover:hover) and (pointer:fine){.material-filters button:hover{background:#222}}.material-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.material-card{min-width:0;border:1px solid #353535;border-radius:8px;background:#171717;overflow:hidden}@media (hover:hover) and (pointer:fine){.material-card:hover{border-color:#666}}.material-open{display:block;width:100%;padding:0;text-align:left;background:none;border:0;color:inherit;cursor:pointer;border-radius:0}.material-visual{height:132px;background:#222;display:flex;align-items:center;justify-content:center;position:relative;color:#ddd;overflow:hidden}.material-visual.video,.material-visual.youtube{background:#202020}.material-visual>svg{position:relative;z-index:1}.material-visual.youtube>svg{padding:8px;width:48px;height:48px;background:#111c;border-radius:50%}.material-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.75}.material-kind-badge{position:absolute;bottom:10px;left:12px;font-size:10px;letter-spacing:.03em;background:#111c;padding:3px 7px;border-radius:3px;color:#ddd;max-width:calc(100% - 24px);text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.material-card-copy{padding:15px 16px 10px;display:grid;gap:6px;min-width:0}.material-card-copy strong{font-size:13px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4}.material-card-copy>span{font-size:11px;color:#aaa}.material-card-meta{padding:0 16px 14px;display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:10px;color:#999}.material-card-meta>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.material-card-meta button{font:inherit;background:none;border:0;padding:4px 0;color:#bbb;cursor:pointer}@media (hover:hover) and (pointer:fine){.material-card-meta button:hover{color:#fff;text-decoration:underline}}.material-empty{grid-column:1/-1;padding:36px 20px;text-align:center;border:1px solid #333;border-radius:8px}.material-empty strong{font-size:14px;font-weight:500}.material-empty p{font-size:12px;color:#aaa;margin:8px 0 0}.material-notice{font-size:12px;color:#bbb;margin:14px 0}.material-notice.error,.material-playback-error{color:#ffb7b7}.material-loading{font-size:13px;color:#aaa;padding:20px 0}.material-transfer{border:1px solid #444;border-radius:8px;padding:18px;background:#1b1b1b;margin:18px 0}.material-transfer>div{display:flex;justify-content:space-between;gap:14px;align-items:center}.material-transfer strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.material-transfer button{font-size:11px;padding:5px 10px;white-space:nowrap}.material-transfer progress{width:100%;height:5px;accent-color:#eee;margin-top:18px}.material-transfer p{font-size:11px;color:#bbb;margin:8px 0 0}.material-dialog{background:#161616;color:#eee;border:1px solid #444;border-radius:10px;padding:24px;width:min(940px,calc(100vw - 32px));max-height:90svh}.material-dialog::backdrop{background:#000b;backdrop-filter:blur(4px)}.material-dialog header{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:22px}.material-dialog h2{font-size:19px;line-height:1.4;font-weight:550;overflow-wrap:anywhere;margin:0}.material-dialog footer{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-top:20px;font-size:12px;color:#aaa}.material-dialog a.secondary{color:#eee;text-decoration:none;border:1px solid #555;white-space:nowrap}.material-viewer{background:#0c0c0c;border:1px solid #333;border-radius:6px;overflow:hidden}.material-viewer video,.material-viewer img{width:100%;max-height:65svh;object-fit:contain;display:block}.material-viewer iframe{display:block;width:100%;height:65svh;border:0}.material-dialog form{max-width:580px}.material-dialog form label{display:grid;gap:8px;font-size:13px;margin:18px 0}.material-dialog form input{width:100%;padding:12px;border:1px solid #555;border-radius:5px;background:#101010;color:#eee;font:inherit}.material-form-help{font-size:12px;color:#aaa}.material-dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.material-danger{border:1px solid #a66;background:#301b1b;color:#ffc3c3;cursor:pointer}.material-playback-error{padding:12px;font-size:13px}@media(max-width:1000px){.scouting-workspace-grid{grid-template-columns:1fr;gap:28px}.player-scouting .scouting-editor textarea{min-height:160px}}@media(max-width:580px){.material-heading{flex-direction:column}.material-actions{width:100%}.material-actions button{flex:1}.material-drop-hint{display:none}.material-list{gap:10px}.material-visual{height:110px}.material-card-copy,.material-card-meta{padding-left:12px;padding-right:12px}.material-dialog{padding:18px}.material-dialog footer{flex-wrap:wrap}.material-card-meta{align-items:flex-start;flex-direction:column}}@media(prefers-reduced-motion:no-preference){.material-card,.material-drop{transition:border-color .15s ease,background-color .15s ease}}
.player-profile #profile-notes .scouting-editor{padding:24px;border:1px solid #333}.player-profile #profile-notes .scouting-editor h3{margin:0 0 22px}.player-profile #profile-notes .scouting-editor textarea{min-height:280px}@media(max-width:1000px){.player-profile #profile-notes .scouting-editor textarea{min-height:160px}}

/* Birth-date disagreements stay visible without hiding the agreed birth year. */
.birth-conflict-button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 8px;margin:-8px 0 -8px 2px;border:1px solid var(--line);border-radius:6px;background:var(--raised);color:var(--text);font-size:14px;font-weight:700;vertical-align:middle;flex:none}@media (hover:hover) and (pointer:fine){.birth-conflict-button:hover{border-color:var(--text)}}
.birth-conflict-button:active{background:var(--line)}
.birth-conflict-sources{list-style:none;margin:24px 0;padding:0}
.birth-conflict-sources li{padding:18px 0;border-top:1px solid var(--line);line-height:1.65}
.birth-conflict-sources strong{display:block;margin-bottom:8px}
.birth-conflict-sources a{display:inline-block;min-height:44px;padding:10px 0;overflow-wrap:anywhere}
.player-table .board-player-name>.player-link{display:inline-block}

.profile-stat-details{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}
.profile-stat-details h3{font-size:16px;margin:0 0 14px}.profile-stat-details dl{margin:0}.profile-stat-details dl>div{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid var(--line)}.profile-stat-details dt{color:var(--muted);font-size:14px}.profile-stat-details dd{margin:0;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
@media(max-width:650px){.profile-stat-details{grid-template-columns:1fr;gap:24px}}

.profile-stat-heading{grid-column:1/-1;display:flex;align-items:baseline;justify-content:space-between;gap:16px}.profile-stat-heading h3{margin:0}.profile-stat-heading span{font-size:12px;color:var(--muted)}

.profile-shooting{margin-top:28px}.profile-shooting table{width:100%;font-variant-numeric:tabular-nums}.profile-shooting th:not(:first-child),.profile-shooting td{text-align:right;white-space:nowrap}.profile-shooting tbody th{font-size:14px;font-weight:500;text-align:left;color:var(--text)}

/* Global profile corrections: only platform administrators see this editor. */
.profile-hero-actions{display:flex;gap:8px;flex-shrink:0;align-items:center}
.profile-edit-dialog{width:min(620px,calc(100vw - 32px));max-height:90dvh;margin:auto;padding:24px;background:var(--panel,#171717);color:var(--text,#f5f5f5);border:1px solid #484848;border-radius:12px;box-shadow:0 24px 80px #0008;overflow:auto}
.profile-edit-dialog::backdrop{background:#0009}.profile-edit-dialog>header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}.profile-edit-dialog h2{font-size:22px;margin:0 0 8px}.profile-edit-dialog header p{color:var(--muted,#b9b9b9);font-size:13px;line-height:1.5;margin:0;max-width:380px}.profile-edit-dialog button{min-height:36px}.profile-edit-fields{display:grid;gap:18px}.profile-edit-field-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;gap:16px}.profile-edit-field-title>label:first-child{font-weight:600;font-size:14px}.profile-edit-toggle{display:flex;gap:6px;align-items:center;font-size:12px;color:#ccc}.profile-edit-dialog input[type=checkbox]{width:16px;height:16px;accent-color:#eee;margin:0}.profile-edit-dialog input:not([type=checkbox]),.profile-edit-dialog select,.profile-edit-dialog textarea{width:100%;box-sizing:border-box;min-height:40px;color:#f5f5f5;background:#101010;border:1px solid #555;border-radius:5px;padding:9px 10px;font:inherit;font-size:14px;color-scheme:dark}.profile-edit-dialog :focus-visible{outline:2px solid #f5f5f5;outline-offset:3px}.profile-edit-source{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:4px;font-size:12px;color:#b9b9b9}.profile-edit-source span{overflow-wrap:anywhere}.profile-edit-source button{background:none;color:#ddd;border:0;padding:0;text-decoration:underline;text-underline-offset:3px;white-space:nowrap;font-size:12px}.profile-edit-chips{display:flex;flex-wrap:wrap;gap:7px}.profile-edit-chips label{display:flex;gap:6px;align-items:center;border:1px solid #484848;border-radius:5px;padding:8px;font-size:12px}.profile-edit-chips label:has(:checked){background:#333;border-color:#aaa}.profile-edit-countries [data-countries]{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.profile-edit-reason{display:block;margin:20px 0;font-size:14px}.profile-edit-reason>span{color:#aaa;font-size:12px;margin-left:6px}.profile-edit-reason textarea{margin-top:8px}.profile-edit-history{font-size:13px;color:#bbb}.profile-edit-history summary{cursor:pointer;padding:8px 0}.profile-edit-history article{padding:12px 0;border-bottom:1px solid #333}.profile-edit-history time{display:block;margin-top:4px;font-size:12px}.profile-edit-history p{margin:8px 0 0;overflow-wrap:anywhere}.profile-edit-dialog [data-error]{color:#ffb5b5;font-size:13px;line-height:1.5}.profile-edit-dialog footer{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:20px;position:sticky;bottom:-24px;background:var(--panel,#171717);padding:16px 0 8px}.profile-edit-dialog footer>div{display:flex;gap:8px}.profile-edit-save{background:#f2f2f2;color:#111;border:1px solid #f2f2f2;border-radius:4px;padding:8px 12px;font-weight:600}.profile-edit-dialog :disabled{opacity:.55;cursor:wait}@media(max-width:600px){.profile-hero-actions{flex-wrap:wrap}.profile-edit-dialog{padding:18px}.profile-edit-dialog footer{position:static;flex-wrap:wrap}.profile-edit-toggle{font-size:11px}}

.email-recipient-summary,.email-owner{font-size:12px;color:var(--muted);margin:8px 0!important}.email-recipient-summary{color:var(--text)!important}.email-recipient-picker input[type=search]{width:100%;box-sizing:border-box;margin:0 0 12px;background:#111;border:1px solid #505050;color:#eee;padding:10px 12px;font:inherit;border-radius:5px}.email-recipient-list{max-height:240px;overflow:auto;border:1px solid #3f3f3f;border-radius:6px}.email-recipient-list>label{display:flex!important;flex-direction:row!important;align-items:center;gap:12px!important;padding:12px!important;margin:0!important;cursor:pointer;border-bottom:1px solid #333}.email-recipient-list>label:last-child{border-bottom:0}.email-recipient-list>label[hidden]{display:none!important}.email-recipient-list input{width:16px!important;height:16px;flex-shrink:0;accent-color:#ddd;margin:0!important}.email-recipient-list>label:has(:checked){background:#242424}.email-recipient-list span{display:grid;gap:3px;min-width:0}.email-recipient-list strong{font-size:13px;font-weight:500}.email-recipient-list small{font-size:12px;color:#aaa;overflow-wrap:anywhere}.email-recipient-list strong small{font-size:10px;border:1px solid #666;padding:1px 5px;margin-left:5px;border-radius:4px}.email-recipient-settings{padding:24px;width:min(500px,calc(100vw - 80px));color:var(--text);background:var(--panel,#171717)}.email-editor:has(.email-recipient-settings){width:auto;max-width:calc(100vw - 32px);border:1px solid #484848;border-radius:10px}.email-recipient-settings>header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}.email-recipient-settings h2{font-size:21px;margin:0 0 6px}.email-recipient-settings header p{font-size:13px;color:var(--muted);margin:0}.email-recipient-settings footer{display:flex;justify-content:flex-end;gap:8px;padding-top:12px}.email-recipient-settings [data-feedback]{font-size:13px;color:#ffb5b5}.email-recipients-section{margin-top:24px}.email-recipient-settings .email-field-note{font-size:12px;line-height:1.5;color:#aaa}.email-tabs{flex-wrap:wrap}
.email-editor:has(.email-recipient-settings){width:fit-content}

/* Agent directory: compact, aligned rows without hiding contact details. */
#agents-page{padding:20px 0 32px}
.agents-view-tabs{margin-bottom:18px}
.agents-heading{margin-bottom:16px}
.agents-heading>[data-total]{font-size:13px;color:var(--muted)}
.agents-layout{grid-template-columns:320px minmax(0,1fr);gap:20px}
.agent-list{gap:3px;max-height:clamp(240px,calc(100dvh - 360px),760px);padding-top:6px;scrollbar-width:thin}
.agent-card{min-height:72px;padding:8px 10px;gap:10px;align-items:center}
.agent-card>span:last-child{gap:2px;flex:1}
.agent-card strong{line-height:1.3}
.agent-card>span:last-child>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.25}
.agent-card small{line-height:1.25}
.agent-avatar{width:32px;height:32px}
.agent-detail{padding:24px}
.agent-profile-heading{gap:20px}
.agent-profile-heading>div:first-child{min-width:0}
.agent-profile-heading .profile-hero-actions{flex-shrink:0;flex-wrap:wrap;gap:8px}
.agent-contact-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:22px 0}
.agent-contact-grid strong{line-height:1.5}
.agent-linked-section,.agent-conversations{margin-top:20px;padding-top:18px}
.agent-linked-section>p{margin:10px 0;line-height:1.5}
.agent-linked-player,.agent-candidate{min-height:60px;padding:8px 0;gap:10px}
.agent-linked-player>div,.agent-candidate>div{gap:3px;line-height:1.4}
.agent-linked-player>a:last-child{display:inline-flex;align-items:center;min-height:40px;padding:0 8px}
.agent-linked-section details>summary{min-height:40px;align-content:center;font-size:13px;cursor:pointer}
.agents-pagination{padding:10px 0;gap:6px}
.agents-pagination .secondary{padding:8px 12px}
.agents-feedback:empty,[data-directory-feedback]:empty{display:none}
@media(max-width:1100px){.agents-layout{grid-template-columns:280px minmax(0,1fr)}.agent-contact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.agent-profile-heading{flex-wrap:wrap}}
@media(max-width:760px){.agents-layout,.picker-open .agents-layout{grid-template-columns:1fr;gap:18px}.agent-list{max-height:280px}.agent-detail{padding:18px}.agent-contact-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.agent-card{min-height:72px}.agent-profile-heading .profile-hero-actions{width:100%}.agent-linked-player>a:last-child{min-height:44px}.agents-heading{gap:16px;flex-wrap:wrap}}
@media(max-width:420px){.agent-contact-grid{grid-template-columns:1fr}}

/* Player stat filters: aligned fields and a single clear disclosure bar. */
.stat-filter-section{margin:0 0 18px;border-bottom-color:#303030}
.stat-filter-section>details>summary{width:100%;min-height:40px;gap:8px}
.stat-filter-section .filter-chevron{margin-left:auto}
#stat-filter-count:not(:empty){background:#292929;color:#ddd;padding:3px 7px;border-radius:4px;font-size:11px}
.stat-filter-body{padding:12px 0 14px;max-width:940px}
.stat-filter-basis{margin:0 0 12px;line-height:1.5}
.stat-filter-body:has(.stat-filter-row){margin-bottom:12px;padding:14px;background:#171717;border:1px solid #333;border-radius:6px}
#stat-filter-editor .stat-filter-rows{gap:10px}
#stat-filter-editor .stat-filter-row,#stat-filter-editor .stat-filter-row:has(.stat-attempts){grid-template-columns:minmax(180px,2fr) minmax(90px,1fr) minmax(90px,1fr) minmax(130px,1fr) 40px;gap:10px}
#stat-filter-editor .stat-filter-remove{grid-column:5;width:40px;height:40px}
#stat-filter-editor .stat-filter-row input,#stat-filter-editor .stat-filter-row select{height:40px}
#stat-filter-editor .stat-filter-row label{gap:5px}
#stat-filter-editor .stat-filter-actions{margin-top:10px;gap:8px;flex-wrap:wrap}
#stat-filter-editor .stat-filter-actions button{min-height:40px;padding:0 12px}
.stat-filter-chips:not(:empty){padding-bottom:12px;gap:6px}
.stat-filter-chips span{padding:5px 8px;line-height:1.4;background:#222;border-color:#383838}
@media(max-width:650px){
 #stat-filter-editor .stat-filter-row,#stat-filter-editor .stat-filter-row:has(.stat-attempts){grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;gap:10px}
 #stat-filter-editor .stat-filter-metric{grid-column:1/3}
 #stat-filter-editor .stat-filter-remove{grid-column:3;grid-row:1;width:44px;height:44px}
 #stat-filter-editor .stat-attempts{grid-column:1/3}
 #stat-filter-editor .stat-filter-row input,#stat-filter-editor .stat-filter-row select{height:44px}
}

/* Reports: compact summaries and settings grouped around delivery decisions. */
#reports-page{padding:20px 0 32px}
#reports-page .email-heading{margin-bottom:16px;align-items:center;flex-direction:row}
.email-heading h1{font-size:28px}
.email-tabs{gap:24px;align-items:center}
.email-tabs button{font-size:13px;padding:10px 0}
.email-tabs .email-refresh{margin-left:auto;padding:8px 12px;border:1px solid #383838;border-radius:4px;min-height:36px}
.email-status:empty{display:none}
.email-content{padding-top:18px}
.email-list{gap:10px}
.email-subscription{padding:18px;gap:20px;align-items:flex-start;border-radius:6px}
.email-sub-title{gap:10px}
.email-sub-title h2{font-size:16px;font-weight:600;line-height:1.4}
.email-sub-main>p{margin:8px 0;font-size:13px;line-height:1.5;max-width:80ch}
.email-timing{gap:6px 18px;line-height:1.5}
.email-last-check{font-size:11px!important;margin-bottom:0!important}
.email-actions{flex-shrink:0;flex-wrap:wrap;gap:6px}
.email-actions button,.email-actions summary{padding:8px 10px;font-size:13px}
.email-badge{font-size:11px;padding:4px 7px}
.email-empty{padding:20px 0 12px}
.email-empty h2{font-size:20px;margin-bottom:6px}
.email-empty p{margin:6px 0;line-height:1.5}
.email-starters{margin-top:24px}
.email-starters>h2{margin:0 0 12px}
.email-starters>div{gap:12px}
.email-starters button{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px 10px;padding:18px;border-radius:6px;min-height:146px;align-content:start}
.email-template-icon{margin:0;font-size:20px;line-height:1.3}
.email-starters strong{font-size:15px;line-height:1.5}
.email-starters p{grid-column:2;margin:0 0 4px;font-size:13px;line-height:1.5}
.email-starters button>span:last-child{grid-column:2;font-size:12px}
.email-history-list>button{padding:14px 8px;gap:14px;min-height:68px}
.email-history-list>button>span:first-child{gap:5px;min-width:0}
.email-history-list strong{font-size:14px}
.email-history-list small{line-height:1.5;overflow-wrap:anywhere}
.email-editor:has(.email-settings){width:min(900px,calc(100vw - 32px));max-height:calc(100dvh - 32px)}
.email-settings>header{padding:18px 24px;gap:16px}
.email-settings h2{font-size:20px;margin-top:4px;line-height:1.4}
.email-editor-body{display:block}
.email-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 28px;padding:0 24px 16px;align-items:start}
.email-report-section,.email-filter-settings{grid-column:1/-1}
.email-fields>section{padding:18px 0;margin:0;min-width:0}
.email-fields h3{margin-bottom:14px;font-size:14px;font-weight:600}
.email-field-pair{gap:0 12px}
.email-fields label{gap:6px;margin-bottom:12px;line-height:1.4}
.email-fields input:not([type=checkbox]),.email-fields select{min-height:40px;padding:8px 10px}
.email-fields .email-check{min-height:40px;align-items:center;line-height:1.5}
.email-fields .email-leagues{margin:0}
.email-leagues>summary{min-height:40px}
.email-leagues>div{gap:2px 16px}
.email-leagues>div label{min-height:40px}
.email-recipients-section .email-recipient-list{max-height:150px}
.email-recipients-section .email-recipient-list>label{min-height:54px;padding:8px 10px!important;gap:10px!important}
.email-recipient-picker input[type=search]{min-height:40px;padding:8px 10px;margin-bottom:8px}
.email-field-note{margin:8px 0;line-height:1.5}
.email-fields>.email-filter-settings{margin:0;border-bottom:1px solid var(--line)}
.email-filter-settings>summary{gap:12px;min-height:48px!important;font-weight:600}
.email-filter-settings>summary>span{margin-left:auto;color:var(--muted);font-size:12px;font-weight:400}
.email-filter-settings-body{padding:4px 0 16px}
.email-filter-settings .stat-filter-row,.email-filter-settings .stat-filter-row:has(.stat-attempts){grid-template-columns:minmax(180px,2fr) minmax(80px,1fr) minmax(80px,1fr) minmax(120px,1fr) 40px;gap:10px}
.email-filter-settings .stat-attempts{grid-column:auto}
.email-filter-settings .stat-filter-remove{grid-column:5;grid-row:1;width:40px;height:40px;align-self:end}
.email-filter-settings .stat-filter-row label{margin:0}
.email-filter-settings .stat-filter-actions{margin-top:10px}
.email-filter-settings .stat-filter-actions button{min-height:40px}
.email-filter-settings .email-player-filters{margin-top:14px;padding-top:8px}
.email-preview-side{padding:16px 24px;border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:center}
.email-preview-side>div{justify-content:flex-start;gap:16px}
.email-preview-side>p{margin:0;font-size:12px;line-height:1.5}
.email-preview-side [data-preview-note]{grid-column:1;grid-row:2}
.email-preview-side [data-test]{grid-column:2;grid-row:1/3;min-height:40px}
.email-preview-side iframe{grid-column:1/-1;margin:8px 0 0}
.email-preview-side .email-editor-status{grid-column:1/-1}
.email-editor-status:empty{display:none}
.email-settings>footer{padding:14px 24px;gap:12px}
.email-settings>footer>span{max-width:40ch;line-height:1.5}
@media(max-width:850px){.email-subscription{gap:14px}.email-starters>div{grid-template-columns:repeat(3,minmax(0,1fr))}.email-starters button{padding:14px}.email-heading>button{width:auto}}
@media(max-width:650px){
 .email-tabs{gap:16px 20px}.email-tabs .email-refresh{margin-left:0}
 .email-fields{grid-template-columns:minmax(0,1fr);padding-inline:18px;gap:0}
 .email-settings>header,.email-settings>footer{padding:14px 18px}
 .email-settings h2{font-size:18px}
 .email-report-section,.email-filter-settings{grid-column:auto}
 .email-preview-side{padding:16px 18px;grid-template-columns:minmax(0,1fr)}
 .email-preview-side [data-test]{grid-column:1;grid-row:auto;justify-self:start}
 .email-preview-side>div{justify-content:space-between;flex-wrap:wrap}
 .email-preview-side [data-preview-note]{grid-row:auto}
 .email-starters>div{grid-template-columns:1fr}
 .email-starters button{min-height:0;padding:16px}
 .email-actions{width:100%}
 .email-filter-settings .stat-filter-row,.email-filter-settings .stat-filter-row:has(.stat-attempts){grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px}
 .email-filter-settings .stat-filter-metric,.email-filter-settings .stat-attempts{grid-column:1/3}
 .email-filter-settings .stat-filter-remove{grid-column:3;width:44px;height:44px}
 .email-fields input:not([type=checkbox]),.email-fields select{min-height:44px;font-size:16px}
}

.email-leagues>summary::after,.email-filter-settings>summary::after{content:'⌄';color:var(--muted);font-size:14px}
.email-leagues>summary{gap:10px}.email-leagues>summary>span{margin-left:auto}
.email-leagues[open]>summary::after,.email-filter-settings[open]>summary::after{transform:rotate(180deg)}

/* Player profiles: one alignment system for identity, controls and statistics. */
#player-page .profile-page-top{gap:20px;padding:8px max(32px,calc((100vw - 1376px)/2));min-height:60px}
#player-page .profile-top-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex-wrap:wrap;justify-content:flex-end}
#player-page .profile-top-actions>button{margin-left:0;font-size:13px;min-height:40px;padding:8px 12px}
#player-page .profile-top-actions .account-controls{margin-right:8px}
#player-page .profile-page-body{max-width:1440px;padding:20px 32px 48px}
#player-page .profile-hero{gap:20px;padding-bottom:18px;justify-content:space-between}
#player-page .profile-hero .profile-identity{min-width:0;gap:18px;flex:1}
#player-page .profile-hero .profile-identity>div{min-width:0}
#player-page .profile-hero h1{font-size:34px;line-height:1.2;letter-spacing:-.7px;margin:0 0 8px;overflow-wrap:anywhere}
#player-page .profile-hero-actions{margin-left:auto;gap:8px;flex-wrap:wrap;justify-content:flex-end}
#player-page .profile-hero-actions>.secondary{font-size:13px;padding:8px 14px;min-height:40px}
#player-page .profile-last-team{gap:8px 12px;line-height:1.4}
#player-page .profile-facts{gap:20px;grid-template-columns:.7fr .7fr 1.3fr 1.5fr 1.1fr;padding:16px 0 6px}
#player-page .profile-facts dt{font-size:12px;margin-bottom:5px}
#player-page .profile-facts dd{font-size:17px;line-height:1.4;overflow-wrap:anywhere}
#player-page .profile-facts dd>span:not(.profile-country){font-size:14px}
#player-page .profile-facts small{font-size:12px;line-height:1.5;margin-top:3px}
#player-page .profile-country{gap:7px}
#player-page .profile-sources{margin:0 0 6px}
#player-page .profile-sources summary{min-height:40px;padding:8px 0}
#player-page .profile-sources ul{padding:14px 18px;margin-bottom:12px}
#player-page .profile-sources li+li{margin-top:10px}
#player-page .profile-tabs{gap:26px}
#player-page .profile-tabs button{min-height:44px;font-size:14px;padding:10px 2px}
#player-page .profile-controls{margin:18px 0;gap:12px}
#player-page .profile-controls h2{font-size:18px;min-height:40px;display:flex;align-items:center;margin:0 auto 0 0}
#player-page .profile-controls label,#player-page .profile-controls label:last-child{min-width:150px;font-size:12px;gap:6px}
#player-page .profile-controls select{min-height:40px;padding:8px 10px}
#player-page .performance-heading{margin-bottom:12px;gap:12px}
#player-page .performance-heading h3{font-size:15px}
#player-page .performance-heading span{font-size:12px;line-height:1.5}
#player-page .performance-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
#player-page .performance-stat{padding:16px;border-radius:6px;display:flex;flex-direction:column}
#player-page .performance-stat h4{font-size:13px;margin:0 0 10px;line-height:1.4}
#player-page .performance-value{font-size:32px;letter-spacing:-.5px;line-height:1.15}
#player-page .performance-standing{margin:12px 0 8px;gap:5px;flex-wrap:wrap;font-size:12px;line-height:1.4}
#player-page .performance-bar{margin-top:auto;height:4px}
#player-page .performance-unranked{font-size:11px;line-height:1.4}
#player-page .season-performance+.season-performance{margin-top:22px}
#player-page .profile-main .profile-metrics{padding:16px 0}
#player-page .profile-metrics strong{font-size:30px;margin:8px 0}
#player-page .profile-metrics span,#player-page .profile-metrics small{font-size:12px}
#player-page .profile-main .table-wrap{max-height:min(65dvh,640px);border-radius:4px}
#player-page .profile-main th,#player-page .profile-main td{font-size:13px;padding:8px 10px;vertical-align:middle}
#player-page .profile-main td{height:52px}
#player-page .profile-main thead th{position:sticky;top:0;z-index:1;height:44px;background:#191919}
#player-page .career-table :is(td,th):nth-child(-n+3),#player-page .profile-game-table :is(td,th):nth-child(-n+5){text-align:left}
#player-page .career-table :is(td,th):nth-child(n+4),#player-page .profile-game-table :is(td,th):nth-child(n+6){text-align:right}
#player-page .career-table td:nth-child(3),#player-page .profile-game-table td:nth-child(4),#player-page .profile-game-table td:nth-child(5){min-width:150px;max-width:230px;white-space:normal}
#player-page .profile-main .club-label{line-height:1.35;white-space:normal}
#player-page .profile-main .club-label>span{overflow:visible;overflow-wrap:anywhere}
#player-page .profile-main .club-list{align-items:flex-start}
#player-page .career-season{padding:0;min-height:40px}
#player-page .profile-game-table .game-button{padding:0;min-height:40px}
#player-page .profile-section-title{margin-bottom:12px;align-items:center}
#player-page .profile-section-title h3{font-size:15px}
#player-page .profile-footnote:empty{display:none}
#player-page .profile-shooting{margin-top:22px}
#player-page .profile-shooting tbody th{background:transparent}
#player-page .profile-stat-details{gap:20px 28px;margin-top:22px;padding-top:18px}
#player-page .profile-stat-details h3{font-size:15px;margin-bottom:10px}
#player-page .profile-stat-details dl>div{padding:9px 0;align-items:baseline}
#player-page .profile-stat-details dt{font-size:13px;line-height:1.5}
#player-page .profile-stat-details dd{font-size:14px;flex-shrink:0}
#player-page .profile-stat-heading{align-items:baseline;flex-wrap:wrap;gap:6px 16px}
#player-page .profile-stat-heading h3{margin:0}
#player-page .research-panel{margin-top:18px}
#player-page .research-heading{margin:0 0 12px;gap:16px;flex-wrap:wrap}
#player-page .research-report-bar{padding:12px 0;gap:12px}
#player-page .research-quickfacts{margin-bottom:18px}
#player-page .research-quickfacts section{padding:16px 20px}
#player-page .research-digest{padding:18px 20px;margin-bottom:18px}
#player-page .research-digest p{margin-top:10px;line-height:1.7}
#player-page .research-source-row{padding:12px;margin-bottom:3px}
#player-page .research-source-row strong{margin:6px 0;line-height:1.45}
#player-page .research-reading-pane{padding:20px 0 20px 20px}
#player-page .research-excerpts{margin-top:20px}
#player-page .player-scouting{padding-top:18px}
#player-page .scouting-title{margin-bottom:16px}
#player-page .scouting-title h2{font-size:20px;margin:0}
#player-page .scouting-workspace-grid{gap:24px}
#player-page .player-scouting .scouting-editor{padding:18px}
#player-page .player-scouting .scouting-editor textarea{min-height:200px}
@media(max-width:1150px){#player-page .performance-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){#player-page .profile-hero{flex-wrap:wrap}#player-page .profile-hero-actions{margin-left:0;justify-content:flex-start}#player-page .profile-controls h2{flex-basis:100%;margin:0}#player-page .profile-controls label,#player-page .profile-controls label:last-child{flex:1;min-width:0}}
@media(max-width:600px){
 #player-page .profile-page-top{padding:8px 18px;gap:8px 16px}
 #player-page .profile-top-actions{flex-basis:100%;justify-content:flex-start;margin-left:0;gap:8px}
 #player-page .profile-top-actions .account-controls{margin-right:auto}
 #player-page .profile-top-actions>button{min-height:44px;padding:8px 10px}
 #player-page .profile-page-body{padding:18px 18px 36px}
 #player-page .profile-hero .profile-identity{gap:14px}
 #player-page .profile-hero h1{font-size:28px}
 #player-page .profile-hero .portrait-profile{width:68px;height:76px}
 #player-page .profile-hero-actions{width:100%}
 #player-page .profile-hero-actions>.secondary{min-height:44px}
 #player-page .profile-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;padding-top:16px}
 #player-page .profile-facts>div:last-child{grid-column:1/-1}
 #player-page .profile-tabs{gap:22px}
 #player-page .profile-controls{gap:12px;margin:16px 0}
 #player-page .profile-controls label:last-child{flex-basis:100%}
 #player-page .profile-controls select{min-height:44px;font-size:16px}
 #player-page .performance-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #player-page .performance-stat{padding:14px}
 #player-page .performance-value{font-size:30px}
 #player-page .profile-main .profile-metrics{gap:16px 0}
 #player-page .profile-stat-details{grid-template-columns:1fr;gap:20px}
 #player-page .research-heading .research-history select{width:100%}
 #player-page .research-reading-pane{padding:16px 0;border-left:0}
 #player-page .research-quickfacts section{padding:14px}
 #player-page .scouting-workspace-grid{gap:20px}
 #player-page .player-scouting .scouting-editor textarea{min-height:160px}
}
@media(max-width:1050px){#player-page .research-reading-pane{padding:18px 0;border-left:0}}
@media(max-width:600px){
 #player-page .profile-page-top{position:relative}
 #player-page .profile-top-actions .account-controls{position:absolute;top:8px;right:18px;margin:0}
 #player-page #profile-back{margin-right:130px}
}

/* Responsive consistency: contain content and keep touch controls usable. */
.agent-detail{scroll-margin-top:16px}
.email-schedule-section .email-field-pair:has([data-weekday][hidden]) label:has([name=timezone]){grid-column:1/-1}
@media(max-width:800px){
 .sidebar{gap:12px;padding:10px 12px}
 .sidebar .brand{width:36px;flex:none}
 .sidebar nav{gap:6px;min-width:0}
 .sidebar .nav{min-width:0;padding:2px 4px}
 .sidebar .nav span{font-size:13px;letter-spacing:0}
 #main>.topbar:has(>.competition-switcher[hidden]){min-height:60px;margin-bottom:8px;padding-block:8px}
 #main .board-tools{gap:12px}
 .player-board .board-tools .player-options{display:grid;grid-template-columns:minmax(110px,1.5fr) minmax(70px,.8fr) auto;gap:8px;align-items:end;width:100%}
 .player-board .player-options label{display:grid;gap:5px;min-width:0;font-size:12px}
 .player-board .player-options label:has(#table-view){grid-column:1;grid-row:1}
 .player-board .player-options label:has(#minimum){grid-column:2;grid-row:1}
 .player-board #overview-toggle{grid-column:3;grid-row:1;align-self:end;min-height:44px;font-size:13px;padding:8px 10px;white-space:nowrap}
 .player-board .player-options select{width:100%;min-width:0;min-height:44px;font-size:16px;padding:0 8px}
 .player-table .person-cell{min-width:200px;gap:8px}
 .player-table .person-cell>.position{display:none}
 .player-table .player-portrait{width:34px;height:40px}
 .player-table .board-player-name{width:150px;max-width:150px}
 .player-table .board-player-name>.player-link{white-space:normal;overflow-wrap:anywhere;font-size:14px}
 .player-table .board-bio{flex-wrap:wrap;gap:3px 5px;font-size:11px}
 .player-table .board-bio>span:first-child{white-space:normal}
 .player-table .team-text{min-width:140px}
 .pagination{gap:10px;flex-wrap:wrap}
 #board-layout .pagination>div{gap:6px;max-width:100%;flex-wrap:wrap}
 .pagination .secondary{min-height:44px;padding:8px 12px}
 .table-wrap{overscroll-behavior-x:contain}
 .folder-primary-actions{flex-wrap:wrap;gap:8px}
 .folder-primary-actions .secondary,.folder-tools summary{white-space:nowrap;min-height:44px;font-size:13px}
 #folder-scope{flex:1;min-width:130px}
 #new-folder{flex:1;min-width:120px}
 .folder-primary-actions .folder-tools{flex:1;margin-left:0;min-width:120px}
 .folder-tools summary{justify-content:space-between}
 .folder-context{gap:10px}
 .folder-table .person-cell{min-width:210px}
 .folder-card{min-height:76px;padding:14px 16px}
 .agent-detail:has(>.agent-muted:only-child){min-height:140px}
 .agents-archive{min-height:44px}
 .agents-view-tabs .secondary,.agents-pagination .secondary{min-height:44px}
 .email-tabs button{min-height:44px!important}
 .email-settings button,.email-recipient-settings button,.email-editor summary{min-height:44px}
 .email-leagues>div{grid-template-columns:repeat(2,minmax(0,1fr))}
 .email-leagues>div label{min-width:0;overflow-wrap:anywhere;min-height:44px}
 .email-recipient-settings{max-width:100%;padding:18px}
 .email-confirm{max-width:100%;overflow-wrap:anywhere}
 .workspace-menu-panel{min-width:min(220px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
 .profile-edit-dialog button,.agent-dialog button,.clubs-dialog button,.material-dialog button{min-height:44px}
 .profile-edit-dialog input:not([type=checkbox]),.profile-edit-dialog select,.profile-edit-dialog textarea,.agent-dialog input:not([type=checkbox]),.agent-dialog select,.agent-dialog textarea,.clubs-dialog input,.clubs-dialog select,.folder-form input,.scouting-editor select,.scouting-editor textarea,.material-dialog input{font-size:16px;min-height:44px}
 .club-row-actions,.material-actions,.material-dialog-actions{flex-wrap:wrap}
 .club-access-row>div{min-width:0}
 .club-access-row strong,.club-access-row p,.club-access-row small{overflow-wrap:anywhere}
}
@media(max-width:600px){
 .folder-primary-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%}
 #folder-scope{grid-column:1/-1;width:100%;min-width:0}
 #new-folder,.folder-primary-actions .folder-tools{min-width:0;width:100%}
 .folder-tools summary{padding-inline:12px}
 .folder-context>span{max-width:none;flex:1 1 180px}
 .folders-board .board-tools>div:first-child{gap:5px}
 .folders-board .player-options{width:100%;justify-content:flex-end}
 .folder-table .compare-target{min-height:44px}
 .profile-edit-dialog footer>div{flex-wrap:wrap;justify-content:flex-end;width:100%}
 .agent-dialog header,.material-dialog header{gap:12px;align-items:flex-start}
 .agent-dialog header>button,.material-dialog header>button{flex-shrink:0}
 .clubs-dialog>header{gap:12px;align-items:flex-start}
 .clubs-dialog h2{font-size:20px;line-height:1.3}
 .clubs-dialog .club-invite-form{display:flex;align-items:stretch}
 .club-invite-form label{min-width:0!important}
}
@media(max-width:420px){
 .email-report-section>.email-field-pair:first-of-type{grid-template-columns:minmax(0,1fr)}
 .email-leagues>div{grid-template-columns:minmax(0,1fr)}
 .email-settings>footer>div{flex-wrap:wrap;justify-content:flex-end}
 .research-run-controls{flex-wrap:wrap}
 .research-run-controls label{min-width:0}
 .research-heading select{width:100%}
}
@media(max-width:360px){.sidebar .nav span{font-size:12px}.sidebar{gap:8px}.sidebar nav{gap:4px}}

.email-heading-actions{display:flex;align-items:center;gap:8px}
#reports-page .email-heading-actions>.email-refresh{border:1px solid #383838;background:transparent;border-radius:4px;padding:8px 12px;color:var(--muted);font-size:13px}
@media(max-width:800px){
 .profile-edit-toggle,.profile-edit-field-title{min-height:44px}
 .email-heading-actions{gap:6px}
 #reports-page .email-heading{gap:12px;flex-wrap:wrap}
 #reports-page .email-heading-actions>.email-primary{font-size:13px;padding:8px 12px}
 #reports-page .email-heading-actions>button{min-height:44px}
}
@media(max-width:600px){
 .folders-board .board-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}
 .folders-board .board-tools .player-options{grid-column:2;grid-row:1;width:auto}
 .folders-board .player-options label{display:grid;gap:5px;font-size:12px}
 .folders-board .player-options select{max-width:122px;width:100%;min-height:44px}
}
@media(max-width:360px){#reports-page .email-heading h1{font-size:24px}#reports-page .email-heading-actions>.email-refresh{padding-inline:8px}}
/* Admin update controls use the same field and action sizing as the product. */
.review-updates{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:18px;border-radius:6px}
.review-updates>div:first-child{display:grid;gap:10px;min-width:0}
.review-updates>div:first-child>p{margin:0;font-size:13px;line-height:1.5}
.review-updates label{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.review-updates select{min-height:40px;min-width:130px;padding:8px 10px;border:1px solid var(--line);border-radius:4px;background:#151515;color:var(--text);font:inherit}
.review-updates>div:nth-child(2){display:flex;gap:8px;align-self:end;flex-wrap:wrap}
#review-update-status:empty{display:none}
@media(max-width:700px){
 .review-updates{grid-template-columns:minmax(0,1fr);padding:16px}
 .review-updates select{min-height:44px;font-size:16px}
 .review-updates button{min-height:44px}
 .review-filters label{min-width:0;width:100%}
 .review-filters input,.review-filters select{font-size:16px;min-width:0;width:100%}
 .task-filter-field select,.task-search input{font-size:16px}
 .task-status-strip{margin-right:0}
}
@media(max-width:800px){
 .sidebar .brand img{width:36px;height:36px}
 .competition-switcher{min-width:0;max-width:100%;gap:6px}
 .competition-choice{min-width:0}
 .competition-choice:first-child{max-width:42%}
 .competition-choice:last-child{flex:1}
 .competition-choice>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .biography-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .biography-filter-grid>label{min-width:0}
 .biography-filter-grid input,.biography-filter-grid select{min-height:44px;font-size:16px}
 .biography-filter-grid .secondary{min-height:44px}
}
@media(max-width:420px){.biography-filter-grid fieldset{grid-column:1/-1}}
@media(max-width:420px){
 .email-filter-settings-body>.email-field-pair{grid-template-columns:minmax(0,1fr)}
 .email-player-filters label:has([name=nationality]){grid-column:1/-1}
}
@media(max-width:800px){#new-folder{min-height:44px}}
@media(max-width:700px){
 .review-heading{flex-wrap:wrap;gap:12px}
 #review-export{white-space:nowrap;min-height:44px}
}
.profile-agent-selected{display:grid;gap:8px;margin-bottom:12px}
.profile-agent-selected>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#1b1b1b;border-radius:4px}
.profile-agent-selected span{min-width:0;overflow-wrap:anywhere}
.profile-agent-selected strong,.profile-agent-selected small,.profile-agent-results strong,.profile-agent-results small{display:block}
.profile-agent-selected small,.profile-agent-results small,.profile-agent-help{color:var(--muted);font-size:12px;line-height:1.5}
.profile-agent-help{margin:8px 0}
.profile-agent-results{max-height:240px;overflow-y:auto;overscroll-behavior:contain;display:grid;gap:4px}
.profile-agent-results>button{text-align:left;background:#191919;color:var(--text);border:1px solid var(--line);padding:10px 12px;border-radius:4px;min-height:44px;overflow-wrap:anywhere}@media (hover:hover) and (pointer:fine){.profile-agent-results>button:hover{background:#292929}}
.profile-agent-results>button:focus-visible{outline:2px solid #fff;outline-offset:-2px}
.agents-directory-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.agent-origin-filter{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;font-size:12px;color:var(--muted)}
.agent-origin-filter select{min-width:0;max-width:190px;min-height:40px;border:1px solid var(--line);background:#151515;color:var(--text);padding:8px 10px;font:inherit;border-radius:4px}
.agent-entry-origin{padding:10px 12px;border:1px solid var(--line);border-radius:4px;color:var(--muted);font-size:12px}
.agent-create-dialog{max-width:560px}
.agent-create-notice{font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 18px}
.agent-create-field-label{display:flex;align-items:baseline;gap:8px}
.agent-create-field-label small{font-size:12px}
.agent-create-dialog details{border-block:1px solid var(--line);padding-block:12px}
.agent-create-dialog summary{cursor:pointer;min-height:40px;align-content:center;font-size:14px}
.agent-create-dialog details .agent-form-grid{margin-top:12px}
.agent-create-matches h3{font-size:13px;margin:0 0 8px;color:var(--muted)}
.agent-create-matches>div{display:grid;gap:6px}
.agent-existing-match{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:12px;padding:10px 12px;min-height:44px;border:1px solid var(--line);border-radius:4px;background:#1c1c1c;color:var(--text)}
.agent-existing-match strong,.agent-existing-match small{display:block;overflow-wrap:anywhere}
.agent-existing-match small,.agent-existing-match>span:last-child{font-size:12px;color:var(--muted)}
.agent-existing-match>span:first-child{min-width:0}
.agent-existing-match>span:last-child{flex:none}
.agent-create-dialog footer{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
[data-create-agent]{margin-top:12px;min-height:40px}
@media(max-width:800px){.agent-origin-filter select{min-height:44px;font-size:16px}.agents-directory-actions{gap:12px}.agent-create-dialog summary,[data-create-agent]{min-height:44px}.agent-create-dialog .agent-form-grid{grid-template-columns:minmax(0,1fr)}}
.agent-player-dialog{max-width:600px}
.agent-player-dialog header>div{min-width:0}
.agent-player-dialog header p{font-size:13px;color:var(--muted);margin:6px 0 0;overflow-wrap:anywhere}
.agent-link-explainer{font-size:13px;color:var(--muted);line-height:1.6;margin:0 0 18px}
.agent-link-results{display:grid;gap:6px;max-height:260px;overflow-y:auto;overscroll-behavior:contain}
.agent-link-results>button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:10px 12px;text-align:left;background:#1c1c1c;border:1px solid var(--line);border-radius:4px;color:var(--text)}
.agent-link-results>button[aria-pressed=true]{border-color:#eee}
.agent-link-results>button>span:first-child{min-width:0}
.agent-link-results strong,.agent-link-results small{display:block;overflow-wrap:anywhere}
.agent-link-results small,.agent-link-results>button>span:last-child{font-size:12px;color:var(--muted)}
.agent-link-results>button>span:last-child{flex:none}
.agent-player-dialog [data-selection]{margin-top:18px;padding:14px;background:#1a1a1a;border-radius:4px;overflow-wrap:anywhere}
.agent-player-dialog [data-selection] h3{font-size:15px;margin:0 0 8px}
.agent-player-dialog [data-selection] p,.agent-player-dialog [data-catalog-status]{font-size:13px;line-height:1.6;color:var(--muted)}
.agent-player-dialog [data-error]{font-size:13px;line-height:1.5;color:#ffaaaa}
.agent-player-dialog footer{justify-content:flex-end;flex-wrap:wrap}
.agent-linked-section>header{flex-wrap:wrap}

/* Error references appear only after a failure; never cover a full screen. */
#pbs-error-reference{position:fixed;bottom:16px;right:16px;left:auto;z-index:10000;display:flex;align-items:center;gap:10px;max-width:calc(100vw - 32px);box-sizing:border-box;padding:12px 14px;border:1px solid #555;border-radius:6px;background:#181818;color:#f5f5f5;font:13px/1.5 system-ui,sans-serif;box-shadow:0 4px 18px #0005}
#pbs-error-reference[hidden]{display:none}
#pbs-error-reference>span{flex:1;min-width:0}
#pbs-error-reference button{flex-shrink:0;min-height:44px;min-width:44px;font:inherit;color:inherit;background:transparent;border:1px solid #666;border-radius:4px;padding:5px 8px;cursor:pointer}
#pbs-error-reference button:focus-visible{outline:2px solid #fff;outline-offset:3px}
/* Access management shares the compact member-dialog rhythm. */
.club-global-access{padding:16px;border:1px solid var(--line,#393939);border-radius:6px;margin-bottom:16px;background:#191919}
.club-global-access p{margin:8px 0;font-size:14px;overflow-wrap:anywhere}
.platform-admin-search,.platform-admin-confirm{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:16px 0;border-top:1px solid #393939}
.platform-admin-search label,.platform-admin-confirm label{display:flex;flex:1 1 220px;min-width:0;flex-direction:column;gap:8px;font-size:14px}
.platform-admin-search input,.platform-admin-confirm input{width:100%;min-width:0;min-height:44px;font-size:16px}
.platform-admin-search .club-help,.platform-admin-confirm>p,.platform-admin-confirm>h3,.platform-admin-confirm .club-row-actions{flex-basis:100%;margin:0}
.platform-admin-event{padding:12px 0;border-top:1px solid #393939;font-size:14px;overflow-wrap:anywhere}
.platform-admin-event p{margin:6px 0}
@media(max-width:600px){.platform-admin-dialog .club-access-row{align-items:stretch}.platform-admin-dialog button{min-height:44px;white-space:normal}.platform-admin-confirm .club-row-actions{flex-wrap:wrap}}

/* Player-table stat filters share the native disclosure used by Player filters. */
.stat-filter-section>details>summary{display:list-item;list-style:disclosure-closed inside;width:fit-content;padding:10px 0;min-height:40px}
.stat-filter-section>details[open]>summary{list-style-type:disclosure-open}
.stat-filter-section>details>summary::-webkit-details-marker{display:inline}
.stat-filter-section>details>summary span{margin-left:8px}
.stat-filter-section .stat-filter-pending{color:#dedede;font-size:12px;font-weight:400}
.stat-filter-body{max-width:800px;padding:4px 0 14px}
.stat-filter-body:has(.stat-filter-row){padding:12px;margin-bottom:12px}
#stat-filter-editor .stat-filter-rows{gap:12px}
#stat-filter-editor .stat-filter-row{grid-template-columns:minmax(200px,2fr) minmax(90px,1fr) minmax(90px,1fr) 40px;gap:6px 10px}
#stat-filter-editor .stat-filter-row:has(.stat-attempts){grid-template-columns:minmax(200px,2fr) minmax(80px,1fr) minmax(80px,1fr) minmax(110px,1fr) 40px}
#stat-filter-editor .stat-filter-remove{grid-column:-2;grid-row:1}
.stat-filter-row [data-stat-hint]{grid-column:1/-1;font-size:12px;color:var(--muted);line-height:1.4}
.stat-filter-row [data-stat-hint][hidden]{display:none}
#stat-filter-editor .stat-filter-actions{gap:8px;margin-top:12px}
#stat-filter-editor [data-stat-apply]{background:var(--text);color:var(--bg);border-color:var(--text);font-weight:600;margin-left:auto}
#stat-filter-editor [data-stat-apply]:disabled{opacity:.45;cursor:default}
.stat-filter-pending[hidden],.stat-filter-actions button[hidden]{display:none}
.stat-filter-actions .stat-filter-pending{font-size:12px;color:var(--muted)}
@media(max-width:650px){
 #stat-filter-editor .stat-filter-row,#stat-filter-editor .stat-filter-row:has(.stat-attempts){grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;gap:8px}
 #stat-filter-editor .stat-filter-remove{grid-column:3}
 #stat-filter-editor .stat-filter-actions button{min-height:44px}
 #stat-filter-editor [data-stat-apply]{margin-left:0}
 .stat-filter-actions .stat-filter-pending{flex-basis:100%}
 .stat-filter-section>details>summary{min-height:44px}
}
.stat-filter-section details[open]>summary .stat-filter-pending{display:none}
#main .biography-filters{margin-bottom:4px}
@media(max-width:650px){#stat-filter-editor [data-stat-apply]{width:100%}}

/* A shared field treatment for the player directory's filter surfaces. */
#main>.filters{gap:12px;margin-bottom:16px}
#main>.filters input,#main>.filters select,.biography-filter-grid input,.biography-filter-grid select,#stat-filter-editor input,#stat-filter-editor select{background:#1b1b1b;border:1px solid #3b3b3b;border-radius:6px;transition:border-color .15s,background-color .15s;box-shadow:0 1px 2px #0002}@media (hover:hover) and (pointer:fine){#main>.filters input:hover,#main>.filters select:hover,.biography-filter-grid input:hover,.biography-filter-grid select:hover,#stat-filter-editor input:hover,#stat-filter-editor select:hover{border-color:#686868;background:#202020}}
#main>.filters input:focus-visible,#main>.filters select:focus-visible,.biography-filter-grid input:focus-visible,.biography-filter-grid select:focus-visible,#stat-filter-editor input:focus-visible,#stat-filter-editor select:focus-visible{outline:2px solid #fff;outline-offset:2px;border-color:#9a9a9a}
#main .biography-filters,.stat-filter-section{margin:0 0 8px;border:1px solid #303030;border-radius:8px;background:#131313}
#main .biography-filters>summary,.stat-filter-section>details>summary{padding:11px 14px;min-height:44px;width:100%;font-size:13px;line-height:20px;font-weight:600;border-radius:8px}@media (hover:hover) and (pointer:fine){#main .biography-filters>summary:hover,.stat-filter-section>details>summary:hover{background:#ffffff05}}
#main .biography-filters[open]>summary,.stat-filter-section>details[open]>summary{border-radius:8px 8px 0 0}
#main .biography-filters>.biography-filter-grid{padding:8px 14px 14px;gap:12px}
#main .biography-filters>p{padding:0 14px 12px;margin:0;font-size:12px;line-height:1.5}
.stat-filter-section{margin-bottom:16px}
.stat-filter-body,.stat-filter-body:has(.stat-filter-row){max-width:960px;margin:0;padding:0 14px 14px;border:0;background:transparent;border-radius:0}
.stat-filter-basis{margin:0;padding:0 0 10px;color:#a9a9a9;font-size:12px}
#stat-filter-editor .stat-filter-rows{gap:0}
#stat-filter-editor .stat-filter-row,#stat-filter-editor .stat-filter-row:has(.stat-attempts){grid-template-columns:minmax(220px,2fr) minmax(180px,1.6fr) minmax(130px,1fr) 40px;gap:6px 12px;padding:10px 0;align-items:end}
#stat-filter-editor .stat-filter-row+.stat-filter-row{border-top:1px solid #ffffff0a}
#stat-filter-editor .stat-filter-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-column:2/4;gap:0;min-width:0;border:0;padding:0;margin:0}
#stat-filter-editor .stat-filter-row:has(.stat-attempts) .stat-filter-range{grid-column:2}
#stat-filter-editor .stat-filter-range label:first-of-type input{border-radius:6px 0 0 6px}
#stat-filter-editor .stat-filter-range label:last-of-type input{border-radius:0 6px 6px 0}
#stat-filter-editor .stat-filter-range label:last-of-type input:not(:focus-visible){border-left-color:transparent}
#stat-filter-editor .stat-filter-range label:last-of-type>span{padding-left:10px}
#stat-filter-editor .stat-filter-row label{font-size:12px;color:#bbb;gap:6px}
#stat-filter-editor .stat-filter-row input,#stat-filter-editor .stat-filter-row select{height:40px;padding:0 12px}
#stat-filter-editor .stat-filter-remove{grid-column:4;grid-row:1;border-color:transparent;background:transparent;border-radius:6px;color:#aaa}@media (hover:hover) and (pointer:fine){#stat-filter-editor .stat-filter-remove:hover{background:#ffffff0a;color:#fff}}
#stat-filter-editor .stat-filter-remove:active{scale:.96}
#stat-filter-editor .stat-filter-actions{max-width:none;margin-top:10px;padding-top:12px;border-top:1px solid #303030;gap:10px}
#stat-filter-editor .stat-filter-actions button{border-radius:6px;padding-inline:14px;font-weight:600;transition:background-color .15s,border-color .15s,scale .12s}
#stat-filter-editor .stat-filter-actions button:active:not(:disabled){scale:.96}
#stat-filter-editor [data-stat-add]{background:#202020;border-color:#444}@media (hover:hover) and (pointer:fine){#stat-filter-editor [data-stat-add]:hover{background:#2b2b2b;border-color:#666}}
#stat-filter-editor [data-stat-clear]{color:#c5c5c5}@media (hover:hover) and (pointer:fine){#stat-filter-editor [data-stat-clear]:hover{background:#ffffff08;color:#fff}}@media (hover:hover) and (pointer:fine){#stat-filter-editor [data-stat-apply]:not(:disabled):hover{background:#e2e2e2}}
#stat-filter-editor [data-stat-apply]:disabled{opacity:1;background:#333;color:#aaa;border-color:#444}
.stat-filter-actions .stat-filter-pending{display:inline-flex;align-items:center;gap:7px;color:#ddd;font-size:12px}
.stat-filter-actions .stat-filter-pending:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;flex:none}
.stat-filter-chips:not(:empty){padding:0 14px 12px;gap:6px}
.stat-filter-chips span{background:#242424;border-color:#414141;border-radius:5px;padding:5px 9px}
@media(max-width:760px){
 #stat-filter-editor .stat-filter-row,#stat-filter-editor .stat-filter-row:has(.stat-attempts){grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;gap:10px;padding:12px 0}
 #stat-filter-editor .stat-filter-metric{grid-column:1/3}
 #stat-filter-editor .stat-filter-range,#stat-filter-editor .stat-filter-row:has(.stat-attempts) .stat-filter-range{grid-column:1/3}
 #stat-filter-editor .stat-filter-remove{grid-column:3;grid-row:1;width:44px;height:44px}
 #stat-filter-editor .stat-attempts{grid-column:1/3}
 #stat-filter-editor .stat-filter-row input,#stat-filter-editor .stat-filter-row select,#stat-filter-editor .stat-filter-actions button{height:44px;font-size:16px}
 #stat-filter-editor .stat-filter-actions{gap:8px}
 #stat-filter-editor [data-stat-apply]{width:100%;margin-left:0;font-size:14px}
 .stat-filter-actions .stat-filter-pending{flex-basis:100%;padding:2px 0}
}
@media(prefers-reduced-motion:reduce){#stat-filter-editor .stat-filter-actions button,#main>.filters input,#main>.filters select,.biography-filter-grid input,.biography-filter-grid select,#stat-filter-editor input,#stat-filter-editor select{transition:none}}
#stat-filter-editor .stat-filter-range label:focus-within{position:relative;z-index:1}
@media(max-width:760px){#stat-filter-editor .stat-filter-range,#stat-filter-editor .stat-filter-row:has(.stat-attempts) .stat-filter-range,#stat-filter-editor .stat-attempts{grid-column:1/-1}}
/* Keep condition editors at a readable width on wide scouting tables. */
#main .biography-filters,.stat-filter-section{max-width:960px}

/* Folders have their own search; discovery filters keep their board state. */
#main>.filters.folder-search{grid-template-columns:minmax(0,1fr)}
#main>.filters.folder-search .search{justify-self:start;width:100%;max-width:400px}

.agent-search-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:8px 0 12px;color:var(--muted);font-size:12px}
.agent-search-summary .secondary,[data-more-agents]{min-height:40px}
@media(max-width:760px){.agent-search-summary .secondary,[data-more-agents]{min-height:44px}}

/* Keep mobile agent navigation and player-search actions reachable. */
.agent-list-back{display:none}
.agent-player-dialog[open]{display:flex;flex-direction:column;max-height:calc(100dvh - 24px);overflow:hidden}
.agent-player-dialog>header,.agent-player-dialog>footer{flex:none}
.agent-player-dialog-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.agent-player-dialog>footer{padding-top:12px;border-top:1px solid var(--line);margin-top:12px}
@media(max-width:760px){
 .agent-list-back{display:inline-flex;align-items:center;min-height:44px;margin-bottom:14px}
 .agent-linked-player [data-open-player]{display:flex;align-items:center;min-height:44px}
 .agent-linked-player>div{gap:0}
 .agent-note-players a{display:inline-flex;align-items:center;min-height:44px}
 .agent-player-dialog{width:calc(100vw - 24px);padding:16px}
 .agent-player-dialog>header{margin-bottom:16px}
 .agent-player-dialog-body .agent-link-results{max-height:min(260px,40dvh)}
}
@media(max-width:600px){
 #player-page #profile-back{margin-right:0;min-height:44px;display:inline-flex;align-items:center}
 #player-page .profile-top-actions .account-controls{position:static;inset:auto;flex:1 1 100%;width:100%;margin:0;justify-content:flex-start}
}
@media(max-width:800px){
 #player-page .profile-controls select,#player-page .profile-top-actions>button{min-height:44px;font-size:16px}
 #player-page #profile-back,.agent-linked-player [data-open-player],#player-page .profile-agent-link{display:inline-flex;align-items:center;min-height:44px}
}

/* Phone tables retain player identity while statistics scroll horizontally. */
.table-scroll-hint{display:none}
@media(max-width:800px){
 .table-scroll-hint{display:block;margin:0 0 8px;color:var(--muted);font-size:12px}
 .player-table .board-player-name>.player-link,.folder-table .board-player-name>.player-link{display:flex;align-items:center;min-height:44px}
 .player-table th:first-child,.player-table td:first-child,.folder-table th:nth-child(2),.folder-table td:nth-child(2){position:sticky;left:0;background:var(--bg);z-index:2}
 .player-table thead th:first-child,.folder-table thead th:nth-child(2){z-index:4;background:#191919}
 .player-table .person-cell{min-width:180px}
 .player-table .board-player-name{width:130px;max-width:130px}
 .folder-table th,.folder-table td{padding-inline:8px}
 .folder-table .person-cell{min-width:180px;gap:8px}
 .folder-table .player-portrait{width:34px;height:40px}
 .folder-table .board-player-name{max-width:132px}
 .folder-table .board-bio{font-size:11px;flex-wrap:wrap}
 .folder-table button,.pagination button,#reports-page button,#reports-page .email-actions summary{min-height:44px}
 #reports-page .email-sent a[data-history-player]{display:inline-flex;align-items:center;min-height:44px}
}
/* Recipient actions remain available while long member lists scroll. */
.email-editor:has(.email-recipient-settings){width:min(500px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:hidden}
.email-recipient-settings{display:flex;flex-direction:column;width:100%;max-height:inherit;overflow:hidden}
.email-recipient-settings>header,.email-recipient-settings>footer{flex:none}
.email-recipient-settings-body{min-height:0;overflow-y:auto;overscroll-behavior:contain}
@media(max-width:800px){
 .player-table th,.folder-table th{padding-block:6px}
 .player-table th button,.folder-table th button,.folder-table .rank-controls button,.folder-table .star,.folder-table .compare-target{min-width:44px;min-height:44px}
 .folder-table .rank-controls button,.folder-table .star{width:44px}
}
@media(max-width:800px){
 #folder-toolbar .folder-tools-menu button,.drawer .close{min-width:44px;min-height:44px}
}

/* Player directory: stable controls, floating refinement editors, flexible table. */
#main:has(.player-board:not([hidden]))>.topbar{min-height:64px;margin-bottom:12px}
#main:has(.player-board:not([hidden]))>.filters{margin-bottom:10px;gap:12px 18px}
#board-layout.player-board .board-tools{position:relative;gap:12px;margin-bottom:8px;z-index:3;flex-wrap:wrap}
#board-layout .board-filter-panels{display:flex;align-items:center;gap:8px;min-width:0}
#board-layout.player-board .board-filter-panels{flex:1;margin:0}
#board-layout .board-filter-panels>.biography-filters,#board-layout .board-filter-panels>.stat-filter-section{position:static;flex:none;max-width:100%;margin:0;background:transparent;border:0;min-width:0}
#board-layout .board-filter-panels>.biography-filters>summary,#board-layout .board-filter-panels>.stat-filter-section>details>summary{min-height:40px;padding:9px 10px;font-size:14px;line-height:20px;border:1px solid #383838;border-radius:5px;white-space:normal;background:transparent}@media (hover:hover) and (pointer:fine){#board-layout .board-filter-panels summary:hover{background:#ffffff08;border-color:#696969}}
#board-layout .board-filter-panels details[open]>summary{background:#242424;border-color:#8a8a8a;border-radius:5px}
#board-layout .board-filter-panels .biography-filter-body,#board-layout .board-filter-panels .stat-filter-body{position:absolute;z-index:8;top:calc(100% + 4px);left:0;width:min(840px,100%);max-width:none;max-height:min(560px,65dvh);overflow:auto;margin:0;padding:16px;background:#191919;border:1px solid #555;border-radius:8px;box-shadow:0 16px 40px #0009,0 4px 12px #0006}
#board-layout .board-filter-panels .biography-filter-grid{padding:0;gap:12px}
#board-layout .biography-filter-body>p{font-size:12px;line-height:1.5;color:var(--muted);margin:12px 0 0}
#board-layout #stat-filter-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 8px;padding:0;border:0;background:none;flex-shrink:0}
#board-layout #stat-filter-chips:empty{display:none}
#board-layout #stat-filter-chips>span{padding:4px 9px;line-height:20px;font-size:13px;border:1px solid #3c3c3c;border-radius:5px;background:#1b1b1b}
.player-board .board-tools h1{font-size:25px}
.player-board .player-options{font-size:13px;gap:12px;flex:none}
.player-board .player-options select{font-size:15px;height:40px;border-color:#383838;border-radius:5px;background:#151515}
.player-board .player-options label{gap:7px}
.player-board .player-table th{font-size:13px;height:44px;padding-block:2px}
.player-board .player-table td{font-size:15px;padding-block:7px}
.player-board .person-button{font-size:16px}
.player-board .board-bio,.player-board .team-text{font-size:13px}
#board-layout.player-board .pagination{padding-block:8px;font-size:14px}
@media(min-width:1200px){
 #main:has(.player-board:not([hidden]))>.filters{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px}
 #main:has(.player-board:not([hidden]))>.filters label{display:flex;align-items:center;gap:8px;font-size:13px;white-space:nowrap;min-width:0;flex:none}
 #main:has(.player-board:not([hidden]))>.filters label:has(#season){width:170px}
 #main:has(.player-board:not([hidden]))>.filters label:has(#phase){width:200px}
 #main:has(.player-board:not([hidden]))>.filters label:has(#team){width:260px}
 #main:has(.player-board:not([hidden]))>.filters .search{margin-left:auto;width:320px;max-width:320px;flex:1 1 240px}
 #main:has(.player-board:not([hidden]))>.filters input,#main:has(.player-board:not([hidden]))>.filters select{height:40px;font-size:15px;padding-inline:10px;flex:1;min-width:0;background:#151515;border-color:#383838;border-radius:5px;box-shadow:none}
}
@media(min-width:801px){
 #main:has(.player-board:not([hidden])){height:100dvh;min-height:600px;display:flex;flex-direction:column;padding-bottom:8px}
 #main:has(.player-board:not([hidden]))>.topbar,#main:has(.player-board:not([hidden]))>.filters{flex-shrink:0}
 #main:has(.player-board:not([hidden]))>.analysis-layout{flex:1;min-height:240px}
 .player-board>.board-panel{display:flex;flex-direction:column;min-height:0}
 .player-board .board-tools,.player-board .pagination{flex-shrink:0}
 .player-board #content{flex:1;min-height:180px}
 .player-board .player-table-wrap{height:100%;max-height:100%;min-height:0}
 .player-board .analysis-rail{overflow:auto;min-height:0}
}
@media(min-width:801px) and (max-width:1199px){#board-layout.player-board .board-filter-panels{order:3;flex-basis:100%}}
@media(max-width:800px){
 #board-layout.player-board .board-filter-panels{order:3;flex-basis:100%;gap:8px}
 #board-layout .board-filter-panels>.biography-filters>summary,#board-layout .board-filter-panels>.stat-filter-section>details>summary{min-height:44px;padding-block:11px;font-size:15px}
 #board-layout .board-filter-panels .biography-filter-body,#board-layout .board-filter-panels .stat-filter-body{padding:12px;max-height:60dvh}
 #main:has(.player-board:not([hidden]))>.filters{gap:10px;margin-bottom:10px}
 #main:has(.player-board:not([hidden]))>.filters label{font-size:13px;gap:4px}
 .player-board .player-table th{font-size:12px}
 .player-board .player-table td{font-size:14px}
 .player-board .person-button{font-size:15px}
}
@media(max-width:800px){
 #board-layout .board-filter-panels .biography-filter-body,#board-layout .board-filter-panels .stat-filter-body{position:fixed;top:auto;bottom:12px;left:12px;width:calc(100vw - 24px);max-height:70dvh;overscroll-behavior:contain;z-index:10}
 #board-layout .board-filter-panels .stat-filter-actions{position:sticky;bottom:-12px;z-index:1;background:#191919;padding-bottom:12px;box-shadow:0 -8px 12px #191919}
}

/* Shared workspace density: the same controls and rhythm as the player board. */
#main>.topbar{min-height:64px;margin-bottom:12px}
#main:has(.folders-board:not([hidden]))>.filters{margin-bottom:12px}
#main>.filters.folder-search .search{display:flex;align-items:center;gap:8px;font-size:13px;max-width:320px}
#main>.filters.folder-search input{height:40px;font-size:15px;border-radius:5px;background:#151515;border-color:#383838}
#folder-toolbar .folder-heading{gap:12px}
#folder-toolbar .folder-heading h2,#agents-page .agents-heading h1,#reports-page .email-heading h1{font-size:25px;line-height:1.2;letter-spacing:-.4px}
#folder-toolbar .folder-primary-actions{gap:8px}
#folder-toolbar .secondary,#folder-toolbar .folder-tools summary{min-height:40px;padding:8px 12px;font-size:14px;border-radius:5px}
.folders-board #folder-toolbar{gap:10px;margin:0 0 12px}
#folder-toolbar .folder-cards{gap:8px;padding-bottom:6px}
#folder-toolbar .folder-card{min-width:155px;max-width:220px;min-height:60px;padding:10px 12px;gap:10px;border-radius:5px}
#folder-toolbar .folder-card>svg{width:18px;height:18px}
#folder-toolbar .folder-card small{margin-top:3px;font-size:12px}
#folder-toolbar .folder-context{min-height:30px;font-size:12px;gap:8px}
#board-layout.folders-board .board-tools{padding:0;margin-bottom:8px;gap:12px}
#board-layout.folders-board .board-tools h1{font-size:23px}
.folders-board .player-options{font-size:13px;gap:12px}
.folders-board .player-options select{height:40px;border-radius:5px;background:#151515;border-color:#383838;font-size:15px}
.folders-board .folder-table th{height:44px;padding-block:2px;font-size:13px}
.folders-board .folder-table td{height:64px;padding:7px 10px;font-size:15px}
.folders-board .folder-table .player-portrait{width:40px;height:40px}
.folders-board .folder-table .board-bio{margin-top:2px}
#board-layout.folders-board .pagination{padding-block:8px;font-size:14px}
#agents-page,#reports-page{padding:4px 0 24px;min-width:0}
#agents-page{position:relative}
#agents-page .agents-heading{min-height:40px;gap:12px;margin-bottom:12px}
#agents-page .agents-view-tabs{gap:6px;margin-bottom:12px}
#agents-page .agents-view-tabs button{min-height:40px;padding:8px 12px;border-radius:5px;font-size:14px}
#agents-page .agent-primary,#agents-page .secondary,#reports-page .email-primary{min-height:40px;padding:8px 12px;font-size:14px;border-radius:5px}
#agents-page .agents-layout{gap:16px;grid-template-columns:290px minmax(0,1fr)}
#agents-page .agents-directory>input,#agents-page .agent-picker>input{min-height:40px;padding:9px 10px;border-radius:5px;background:#151515;border:1px solid #383838;font-size:15px}
#agents-page .agent-origin-filter{margin:8px 0;gap:8px;font-size:13px}
#agents-page .agent-origin-filter select{min-height:40px;padding:8px 10px;border-radius:5px;font-size:14px}
#agents-page .agent-list{gap:3px;max-height:calc(100dvh - 275px)}
#agents-page .agent-card{min-height:68px;padding:9px 10px;gap:10px}
#agents-page .agent-card strong{font-size:15px;line-height:1.3}
#agents-page .agent-card>span:last-child{gap:3px}
#agents-page .agent-detail{padding:18px;min-height:280px}
#agents-page .agent-profile-heading{margin-bottom:14px;gap:12px}
#agents-page .agent-profile-heading h2{font-size:24px;line-height:1.25}
#agents-page .agent-contact-grid{gap:12px;padding-block:14px}
#agents-page .agent-linked-section,#agents-page .agent-conversations{margin-top:18px}
#agents-page .agent-search-summary{margin:6px 0 10px}
#agents-page .agents-feedback:empty{display:none}
#reports-page .email-heading{min-height:40px;margin-bottom:10px;gap:12px}
#reports-page .email-tabs{gap:20px}
#reports-page .email-tabs button{min-height:40px;padding:8px 0;font-size:14px}
#reports-page .email-content{padding-top:12px}
#reports-page .email-subscription{padding:14px 16px;gap:16px;border-radius:5px}
#reports-page .email-sub-main>p{margin-block:6px;line-height:1.45}
#reports-page .email-timing{gap:4px 14px;font-size:13px}
#reports-page .email-actions{gap:6px}
#reports-page .email-actions button,#reports-page .email-actions summary{min-height:40px;padding:8px 10px;font-size:14px;border-radius:5px}
#reports-page .email-empty{padding:12px 0 8px}
#reports-page .email-empty h2{font-size:18px}
#reports-page .email-starters{margin-top:18px}
#reports-page .email-starters>div{gap:10px}
#reports-page .email-starters button{padding:14px;min-height:104px;gap:6px 10px;border-radius:5px}
#reports-page .email-editor .email-settings>header{padding:14px 20px}
#reports-page .email-editor .email-fields{padding:0 20px 12px;column-gap:20px}
#reports-page .email-editor .email-fields>section,#reports-page .email-editor .email-filter-settings{padding-block:14px}
#reports-page .email-editor .email-fields label{margin-bottom:10px;gap:5px;font-size:13px}
#reports-page .email-editor input:not([type=checkbox]),#reports-page .email-editor select{min-height:40px;padding:8px 10px;border-radius:5px;background:#151515;border-color:#383838;font-size:15px}
#reports-page .email-editor .email-settings>footer{padding:12px 20px}
@media(min-width:801px){
 #agents-page>.agents-view-tabs{position:absolute;top:4px;left:110px;margin:0}
 #main:has(.folders-board:not([hidden])){height:100dvh;min-height:650px;display:flex;flex-direction:column;padding-bottom:8px}
 #main:has(.folders-board:not([hidden]))>.topbar,#main:has(.folders-board:not([hidden]))>.filters{flex-shrink:0}
 #main:has(.folders-board:not([hidden]))>.analysis-layout{flex:1;min-height:260px}
 .folders-board>.board-panel{display:flex;flex-direction:column;min-height:0}
 .folders-board #folder-toolbar,.folders-board .board-tools,.folders-board .pagination,.folders-board .compare-bar{flex-shrink:0}
 .folders-board #content{flex:1;min-height:140px}
 .folders-board .table-wrap{height:100%;max-height:100%;min-height:0}
}
@media(max-width:1100px){#agents-page .agents-layout{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:800px){
 #main>.topbar{min-height:60px;margin-bottom:10px}
 #folder-toolbar .folder-heading{flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px}
 #folder-toolbar .folder-heading h2,#agents-page .agents-heading h1,#reports-page .email-heading h1{font-size:24px}
 #folder-toolbar .folder-primary-actions{width:100%;display:flex;flex-wrap:wrap;gap:8px}
 #folder-toolbar .folder-tools{margin-left:auto}
 #folder-toolbar .secondary,#folder-toolbar .folder-tools summary{min-height:44px;padding-inline:10px;font-size:14px}
 #folder-toolbar .folder-card{min-height:56px;min-width:150px;padding:8px 10px}
 #folder-toolbar .folder-context{align-items:center;gap:8px;font-size:12px}
 #folder-toolbar .folder-context>span{max-width:none}
 #board-layout.folders-board .board-tools{gap:10px}
 #board-layout.folders-board .board-tools>div:first-child{flex-direction:row;align-items:center;flex-wrap:wrap}
 .folders-board .player-options{width:100%;flex-wrap:wrap;gap:8px}
 .folders-board .player-options label{min-width:0;gap:6px;flex-wrap:wrap}
 .folders-board .player-options select{max-width:100%;min-height:44px;font-size:16px}
 .folders-board .folder-table td{font-size:14px}
 #main>.filters.folder-search .search{max-width:none}
 #main>.filters.folder-search input{min-height:44px;font-size:16px}
 #agents-page .agents-layout,#agents-page.picker-open .agents-layout{grid-template-columns:minmax(0,1fr);gap:14px}
 #agents-page .agents-view-tabs{position:static;gap:8px}
 #agents-page .agents-view-tabs button,#agents-page .agent-primary,#agents-page .secondary{min-height:44px}
 #agents-page .agents-heading{flex-wrap:wrap;gap:8px}
 #agents-page .agents-heading>div:last-child{flex-wrap:wrap;gap:8px;min-width:0}
 #agents-page .agents-directory>input,#agents-page .agent-origin-filter select{min-height:44px;font-size:16px}
 #agents-page .agent-list{max-height:260px}
 #agents-page .agent-detail{padding:14px;min-height:180px}
 #agents-page .agent-profile-heading h2{font-size:22px;overflow-wrap:anywhere}
 #reports-page .email-heading{flex-wrap:wrap;gap:10px}
 #reports-page .email-tabs{gap:14px;flex-wrap:wrap}
 #reports-page .email-tabs button,#reports-page .email-primary,#reports-page .email-actions button,#reports-page .email-actions summary{min-height:44px}
 #reports-page .email-subscription{padding:12px;gap:12px;flex-wrap:wrap}
 #reports-page .email-actions{flex-wrap:wrap}
 #reports-page .email-starters>div{grid-template-columns:minmax(0,1fr)}
 #reports-page .email-starters button{min-height:96px;padding:12px}
 #reports-page .email-editor .email-settings>header,#reports-page .email-editor .email-settings>footer{padding:12px 14px}
 #reports-page .email-editor .email-fields{padding:0 14px 12px}
 #reports-page .email-editor input:not([type=checkbox]),#reports-page .email-editor select{min-height:44px;font-size:16px;max-width:100%}
 #reports-page .email-editor .email-fields label{min-width:0}
}
@media(min-width:1251px){#agents-page.picker-open .agents-layout{grid-template-columns:230px minmax(300px,1fr) 260px}}
@media(min-width:1100px){
 #main:has(.folders-board:not([hidden])){position:relative}
 #main:has(.folders-board:not([hidden]))>.filters.folder-search{position:absolute;top:76px;right:30px;width:320px;margin:0;display:block}
 #main:has(.folders-board:not([hidden])) .folder-heading{padding-right:340px;min-height:40px}
}
@media(max-width:800px){
 #folder-toolbar .folder-tools summary{width:44px;min-height:44px;padding:0;font-size:0;gap:0;justify-content:center}
 #folder-toolbar .folder-tools summary>span{display:none}
 #folder-toolbar .folder-tools summary::after{content:'Tools';font-size:12px;letter-spacing:0}
}

/* A consistent inset for collapsed native selects; their menus stay native. */
:where(#main,#player-page,#drawer,dialog) select:not(#country):not(#league):not([multiple]):not([size]){
 appearance:none;
 -webkit-appearance:none;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23b8b8b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
 background-repeat:no-repeat;
 background-size:14px 14px;
 background-position:right 12px center;
 padding-inline-end:36px;
}
@media(min-width:1200px){#main:has(.player-board:not([hidden]))>.filters label:has(#season){width:184px}}
@media(forced-colors:active){
 :where(#main,#player-page,#drawer,dialog) select:not(#country):not(#league):not([multiple]):not([size]){appearance:auto;-webkit-appearance:auto;background-image:none;padding-inline-end:12px}
}

/* PDF exports share the profile toolbar and stay within narrow screens. */
.profile-export-menu{position:relative;flex-shrink:0}
.profile-export-menu>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;min-height:40px;padding:9px 14px}
.profile-export-menu>summary::-webkit-details-marker{display:none}
.profile-export-menu>div{position:absolute;right:0;top:calc(100% + 6px);z-index:60;width:200px;padding:5px;background:#1b1b1b;border:1px solid #404040;border-radius:8px;box-shadow:0 12px 32px #0008}
.profile-export-menu button{display:block;width:100%;text-align:left;padding:10px 12px;min-height:40px;border:0;background:transparent;border-radius:4px}.profile-export-menu button:focus-visible{background:#303030}@media (hover:hover) and (pointer:fine){.profile-export-menu button:hover{background:#303030}}
.pdf-export-dialog{color:#f4f4f4;background:#161616;border:1px solid #414141;border-radius:12px;width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;overflow:auto;box-shadow:0 24px 80px #0009}
.pdf-export-dialog::backdrop{background:#0009}
.pdf-export-dialog header,.pdf-export-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;background:#161616;position:sticky;z-index:1}
.pdf-export-dialog header{top:0;border-bottom:1px solid #333}.pdf-export-dialog footer{bottom:0;border-top:1px solid #333;flex-wrap:wrap}
.pdf-export-dialog h2{font-size:20px;margin:0}.pdf-export-dialog h3{font-size:15px;margin:20px 0 8px}
.pdf-export-dialog button{min-height:40px}.pdf-export-body{padding:12px 20px}.pdf-export-context,.pdf-export-feedback{font-size:13px;color:#bcbcbc;line-height:1.5}
.pdf-export-choice{display:grid;grid-template-columns:18px minmax(0,1fr);gap:10px;align-items:start;padding:12px 0;border-bottom:1px solid #2b2b2b;cursor:pointer;font-size:15px;overflow-wrap:anywhere}
.pdf-export-choice input{width:17px;height:17px;margin:3px 0;accent-color:#fff}.pdf-export-preview{grid-column:2;white-space:pre-wrap;max-height:140px;overflow:auto;margin:0;font-size:13px;color:#bcbcbc;line-height:1.5}
.pdf-export-dialog .pdf-message{font-size:13px;overflow-wrap:anywhere}
@media(max-width:640px){.profile-export-menu>summary,.profile-export-menu button,.pdf-export-dialog button{min-height:44px}.pdf-export-dialog header,.pdf-export-dialog footer{padding:12px 16px}.pdf-export-body{padding:10px 16px}.pdf-export-choice{min-height:44px}}

.folder-pdf-dialog{width:min(620px,calc(100vw - 24px))}
.folder-pdf-bulk{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.folder-pdf-player{border:1px solid #363636;border-radius:8px;margin:10px 0;overflow:hidden}
.folder-pdf-player>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;cursor:pointer;min-height:48px;list-style:none}
.folder-pdf-player>summary::-webkit-details-marker{display:none}
.folder-pdf-player>summary::before{content:'›';font-size:20px;color:#aaa;flex-shrink:0}
.folder-pdf-player[open]>summary::before{transform:rotate(90deg)}
.folder-pdf-player>summary strong{font-size:15px;flex:1;min-width:0;overflow-wrap:anywhere}
.folder-pdf-count{font-size:12px;color:#bcbcbc;text-align:right;max-width:120px}
.folder-pdf-choices{border-top:1px solid #333;padding:0 14px 8px}
.folder-pdf-dialog .pdf-export-body>p:first-child{margin-top:0}

.pdf-export-dialog header h2{min-width:0;overflow-wrap:anywhere}.pdf-export-dialog header>button{flex-shrink:0}

.biography-fields,#player-page .profile-last-team>span:last-child{display:inline-flex;flex-wrap:wrap;align-items:center;column-gap:12px;row-gap:3px}.biography-fields>span{white-space:nowrap}

.pdf-theme-picker{display:flex;align-items:center;gap:6px;border:0;padding:0;margin:0;min-width:0;flex-wrap:wrap}
.pdf-theme-picker legend{font-size:12px;color:#bcbcbc;margin-bottom:6px;padding:0}
.pdf-theme-picker label{display:flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid #484848;border-radius:6px;cursor:pointer;font-size:14px;min-height:40px;box-sizing:border-box}
.pdf-theme-picker label:has(input:checked){border-color:#eee;background:#303030;color:#fff}
.pdf-theme-picker label:has(input:focus-visible){outline:2px solid #fff;outline-offset:3px}
.pdf-theme-picker input{width:14px;height:14px;margin:0;accent-color:#fff}
.pdf-theme-picker label:has(input:disabled){opacity:.6;cursor:wait}
.pdf-theme-swatch{display:block;width:13px;height:17px;border:1px solid #777;border-radius:2px}
.pdf-theme-dark{background:#171717}.pdf-theme-light{background:#fff}
@media(max-width:640px){.pdf-theme-picker label{min-height:44px}.pdf-export-dialog footer>.pdf-theme-picker{flex:1 1 100%}}

/* Scouting: one spacing and type scale for notes, documents and videos. */
#player-page .scouting-workspace-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:28px}
.player-scouting{--scout-border:#353535;--scout-surface:#181818;--scout-muted:#aaa}
.scout-notebook,#profile-materials{min-width:0}
.scout-notebook-top,#player-page .material-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 16px;min-height:72px}
.scout-notebook-top>div:first-child,.material-heading>div:first-child{min-width:0}
#player-page .scout-notebook h3,#player-page .material-heading h2{display:flex;align-items:center;gap:8px;font-size:17px;font-weight:600;line-height:1.5;margin:0}
.scout-section-count,#player-page .material-heading h2 span{display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:400;line-height:22px;min-width:22px;color:#bbb;background:#292929;border-radius:4px;padding:0 5px;box-sizing:border-box}
.scout-notebook-top p,#player-page .material-heading p{font-size:12px;line-height:1.5;color:var(--scout-muted);margin:4px 0 0;overflow-wrap:anywhere}
.scout-notebook-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.scout-add-note{background:#f4f4f4;border:1px solid #f4f4f4;color:#111;font:inherit;font-weight:600;font-size:13px;border-radius:6px;padding:8px 12px;min-height:40px;cursor:pointer;white-space:nowrap}@media (hover:hover) and (pointer:fine){.scout-add-note:hover{background:#ddd}}.scout-add-note:disabled{opacity:.55;cursor:wait}
.scout-status-row{padding:0;border:0}
#player-page #profile-notes .scout-status-row label{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;color:var(--scout-muted)}
#player-page #profile-notes .scout-status-row select{font:inherit;font-size:13px;color:#eee;background:#1b1b1b;border:1px solid #444;border-radius:6px;padding:8px 30px 8px 10px;min-height:40px;width:auto;max-width:100%}
.scout-note-feedback{font-size:12px;color:#bcbcbc;margin:8px 0;line-height:1.5}.scout-note-feedback:empty{display:none}.scout-note-feedback.error{color:#ffb7b7}
.scout-note-list{display:grid;gap:12px;margin:0}
.scout-note-card{border:1px solid var(--scout-border);border-radius:8px;background:var(--scout-surface);padding:16px;min-width:0;overflow-wrap:anywhere}
.scout-note-card>header{display:block}.scout-note-card>header>div{min-width:0}
.scout-note-card h4{margin:0;font-size:16px;font-weight:600;line-height:1.4}.scout-note-meta{font-size:12px;line-height:1.5;color:var(--scout-muted);margin:5px 0 0}
.scout-note-body{font-size:15px;line-height:1.6;white-space:pre-wrap;margin-top:12px;color:#ddd}.scout-note-body.collapsed{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.scout-note-card>footer{display:flex;align-items:center;gap:12px;margin-top:12px;border-top:1px solid #2d2d2d;padding-top:4px;flex-wrap:wrap}
.scout-note-text-button{min-width:44px;font:inherit;font-size:13px;background:transparent;border:0;color:#bbb;padding:8px 4px;min-height:40px;cursor:pointer}@media (hover:hover) and (pointer:fine){.scout-note-text-button:hover{color:#fff;text-decoration:underline}}
.scout-note-order{display:flex;gap:2px;margin-left:auto;flex-shrink:0}.scout-note-order button{display:grid;place-items:center;font:inherit;font-size:18px;width:40px;min-height:40px;padding:4px;background:transparent;border:0;border-radius:5px;color:#ccc;cursor:pointer}@media (hover:hover) and (pointer:fine){.scout-note-order button:hover:not(:disabled){background:#303030}}.scout-note-order button:disabled{opacity:.25;cursor:default}
.scout-note-edited{flex-basis:100%;font-size:12px;color:var(--scout-muted);line-height:1.5}
.scout-note-form{border:1px solid #666;background:var(--scout-surface);border-radius:8px;padding:16px;margin:0 0 12px}.scout-note-form h4{font-size:16px;margin:0 0 14px}
#player-page #profile-notes .scout-note-form label{display:grid;gap:7px;margin:12px 0;font-size:13px;color:#bbb}
.scout-note-form input,.scout-note-form textarea{box-sizing:border-box;width:100%;min-width:0;font:inherit;font-size:15px;color:#eee;background:#111;border:1px solid #484848;border-radius:6px;padding:10px;line-height:1.5}
#player-page #profile-notes .scout-note-form textarea{min-height:150px;line-height:1.6;resize:vertical}.scout-note-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.scout-note-form-actions button{min-height:40px;font-size:13px}
.scout-note-empty,.player-scouting .material-empty{padding:24px 16px;text-align:center;border:1px dashed #444;border-radius:8px;background:transparent}.scout-note-empty strong,.player-scouting .material-empty strong{font-size:15px;font-weight:500}.scout-note-empty p,.player-scouting .material-empty p{font-size:13px;line-height:1.5;color:var(--scout-muted);margin:6px 0 0}
.player-scouting .material-actions{display:flex;gap:8px;flex-shrink:0;width:auto}.player-scouting .material-actions button{font-size:13px;min-height:40px;padding:8px 12px;border-radius:6px;white-space:nowrap}
.player-scouting .material-drop{gap:10px;padding:12px;border-color:#414141;background:transparent;margin:0 0 12px;min-height:64px;box-sizing:border-box}.player-scouting .material-drop>span:first-child{display:grid;place-items:center;color:#bbb}.player-scouting .material-drop svg{width:24px;height:24px}.player-scouting .material-drop strong{font-size:13px}.player-scouting .material-drop p{font-size:12px;line-height:1.5;margin:2px 0 0}.player-scouting .material-drop-hint{font-size:12px;line-height:1.5;max-width:115px;display:block}
.player-scouting .material-filters{gap:4px;flex-wrap:nowrap;overflow-x:auto;margin:0 0 12px;padding:2px 0;scrollbar-width:thin}.player-scouting .material-filters button{min-height:40px;padding:8px 10px;font:inherit;font-size:13px;white-space:nowrap;flex-shrink:0}
.player-scouting .material-list{grid-template-columns:minmax(0,1fr);gap:10px}
.player-scouting .material-card{background:var(--scout-surface);border-color:var(--scout-border);border-radius:8px}
.player-scouting .material-open{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:center;padding:12px 12px 0;box-sizing:border-box;border-radius:7px}
.player-scouting .material-visual{height:56px;border:1px solid #333;border-radius:5px;background:#242424}.player-scouting .material-visual>svg{width:24px;height:24px}.player-scouting .material-visual.youtube>svg{width:24px;height:24px;padding:5px}.player-scouting .material-kind-badge{display:none}
.player-scouting .material-card-copy{padding:0;gap:4px}.player-scouting .material-card-copy strong{font-size:15px;font-weight:500;line-height:1.4;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.player-scouting .material-card-copy>span{font-size:12px;line-height:1.5;color:var(--scout-muted);overflow-wrap:anywhere}
.player-scouting .material-card-meta{display:flex;flex-direction:row;align-items:center;padding:0 12px 6px 88px;gap:8px;min-height:40px;font-size:12px;color:var(--scout-muted)}.player-scouting .material-card-meta>span{white-space:normal;overflow-wrap:anywhere;line-height:1.5}.player-scouting .material-card-meta button{min-height:40px;min-width:44px;flex-shrink:0;font-size:12px;padding:8px 0}
.player-scouting .material-notice{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.scout-note-card h4:focus-visible{outline:2px solid #ddd;outline-offset:4px;border-radius:2px}
@media(max-width:1100px){.scout-notebook-top,#player-page .material-heading{min-height:0}.scout-notebook-tools,.player-scouting .material-actions{width:100%}.scout-notebook-tools{justify-content:space-between}.player-scouting .material-actions button{flex:1}}
@media(max-width:1000px){#player-page .scouting-workspace-grid{grid-template-columns:1fr;gap:28px}#player-page #profile-materials{padding-top:24px;border-top:1px solid #333}.scout-notebook-tools,.player-scouting .material-actions{width:auto}.player-scouting .material-actions button{flex:initial}}
@media(max-width:640px){.scout-note-card,.scout-note-form{padding:14px}.scout-note-order button{width:44px;min-height:44px}.scout-add-note,.scout-note-text-button,.scout-note-form-actions button,.player-scouting .material-actions button,.player-scouting .material-filters button,.player-scouting .material-card-meta button{min-height:44px}#player-page #profile-notes .scout-status-row select{min-height:44px;font-size:16px}.scout-note-form input,.scout-note-form textarea{font-size:16px}.scout-notebook-top,#player-page .material-heading{gap:12px;flex-direction:column;margin-bottom:12px}.scout-notebook-tools,.player-scouting .material-actions{width:100%}.scout-notebook-tools{justify-content:space-between}.player-scouting .material-actions button{flex:1}.player-scouting .material-drop-hint{display:none}.player-scouting .material-card-meta{min-height:44px;padding-bottom:4px}.material-dialog{box-sizing:border-box;padding:16px;max-height:calc(100dvh - 24px);width:calc(100vw - 24px)}.material-dialog header{gap:12px;margin-bottom:16px}.material-dialog header button{flex-shrink:0}.material-dialog button,.material-dialog a.secondary{min-height:44px}.material-dialog form input{font-size:16px;min-width:0;box-sizing:border-box}.material-dialog footer{gap:12px;overflow-wrap:anywhere}.material-form-help{font-size:13px;line-height:1.5}.material-viewer iframe{height:52svh}}

.scouting-jumps{display:none}#profile-notes,#profile-materials{scroll-margin-top:80px}
@media(max-width:1000px){#player-page .scouting-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.scouting-jumps{display:flex;gap:16px}.scouting-jumps button{display:inline-flex;align-items:center;min-height:44px;font:inherit;font-size:13px;color:#bbb;background:transparent;border:0;padding:0;text-underline-offset:4px;text-decoration:none}@media (hover:hover) and (pointer:fine){.scouting-jumps button:hover{text-decoration:underline;color:#fff}}}

#player-page .material-heading h2 span:empty{display:none}

/* Keep initials beneath a portrait, including a verified missing-photo response. */
.agent-player-photo{display:grid;flex:none}.agent-player-photo>*{grid-area:1/1}.agent-player-photo img{z-index:1;background:var(--bg,#111)}

/* Mobile platform behavior: one vertical page, native horizontal tables. */
html{-webkit-text-size-adjust:100%}
button,[role=button],summary{-webkit-user-select:none;user-select:none;touch-action:manipulation}
a{touch-action:manipulation}
@media(pointer:coarse){
 html{-webkit-tap-highlight-color:transparent}
 #app input,#app select,#app textarea,#player-page input,#player-page select,#player-page textarea,dialog input,dialog select,dialog textarea,.drawer input,.drawer select,.drawer textarea{font-size:max(16px,1rem)!important}
 button:not(:disabled):active,summary:active{filter:brightness(.82)}
 a:active{opacity:.72}
}
@media(max-width:800px){
 #app,main{min-height:100svh}
 main{padding-left:max(18px,env(safe-area-inset-left,0px));padding-right:max(18px,env(safe-area-inset-right,0px));padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
 .sidebar{height:auto;min-height:68px;padding-top:calc(10px + env(safe-area-inset-top,0px));padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
 #board-layout .table-wrap,#player-page .profile-main .table-wrap{height:auto;min-height:0;max-height:none;overflow-x:auto;overscroll-behavior-x:contain;overscroll-behavior-y:auto}
 #agents-page .agent-list,.research-source-list{max-height:none;min-height:0;overflow:visible}
 .drawer{height:100dvh;max-height:100dvh;overscroll-behavior:contain;padding:calc(20px + env(safe-area-inset-top,0px)) max(18px,env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px))}
 dialog{max-height:calc(100dvh - 24px);overscroll-behavior:contain}
 body:has(dialog[open]){overflow:hidden}
 #board-layout .board-filter-panels .biography-filter-body,#board-layout .board-filter-panels .stat-filter-body{bottom:max(12px,env(safe-area-inset-bottom,0px));max-height:70dvh}
 .player-scouting .material-filters,.profile-tabs,.folder-cards{overscroll-behavior-x:contain}
}
@media(max-width:800px){
 html{scroll-padding-top:calc(78px + env(safe-area-inset-top,0px))}
 .sidebar{position:sticky;top:0;z-index:4}
}
/* Short landscape windows need reachable navigation and document scrolling too. */
@media(max-width:1000px) and (max-height:500px){
 #app{padding-left:0}
 .sidebar{position:sticky;inset:0 0 auto;width:100%;height:auto;min-height:60px;flex-direction:row;gap:12px;padding:8px max(16px,env(safe-area-inset-right,0px)) 8px max(16px,env(safe-area-inset-left,0px));z-index:4;background:var(--bg)}
 .sidebar .brand{height:44px;flex-shrink:0}
 .sidebar nav{flex-direction:row;gap:6px;min-width:0}
 .sidebar .nav{min-height:44px;min-width:0}
 .sidebar .nav span{writing-mode:horizontal-tb;transform:none;font-size:13px}
 #main:has(.player-board:not([hidden])),#main:has(.folders-board:not([hidden])){height:auto;min-height:100svh;display:block}
 #board-layout .table-wrap,#player-page .profile-main .table-wrap{height:auto;max-height:none;min-height:0;overflow-x:auto;overscroll-behavior-y:auto}
 #agents-page .agent-list{max-height:none;overflow:visible}
 html{scroll-padding-top:68px}
}
@media(max-width:420px){
 .header-actions,.account-controls{min-width:0;max-width:100%;flex-wrap:wrap}
 .account-controls{gap:8px}
}
@media(max-width:1000px) and (max-height:500px){
 main{padding-left:max(18px,env(safe-area-inset-left,0px));padding-right:max(18px,env(safe-area-inset-right,0px));padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
}
@media(pointer:coarse){#pbs-error-reference{bottom:calc(16px + env(safe-area-inset-bottom,0px))}}
@media(max-width:800px){
 .player-table .board-bio,.folder-table .board-bio{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:6px}
 .player-table .biography-fields,.folder-table .biography-fields{column-gap:6px;row-gap:2px;min-width:0}
 .player-table .board-nationalities,.folder-table .board-nationalities{align-self:end;flex-wrap:wrap;max-width:44px}
}
.mobile-filter-heading{display:none}
@media(max-width:800px){
 .mobile-filter-heading{position:sticky;top:-12px;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-12px -12px 12px;padding:8px 12px;background:#191919;border-bottom:1px solid var(--line)}
 .mobile-filter-heading strong{font-size:15px;font-weight:600}
 .mobile-filter-heading button{width:44px;min-height:44px;padding:0;font-size:22px}
 body:has(.board-filter-panels details[open]){overflow:hidden}
}
@media(max-width:800px){
 .email-editor .email-settings>header{position:sticky;top:0;z-index:4;background:var(--panel)}
 .email-editor:has(.email-settings){scroll-padding-top:110px}
}

/* Mobile account controls remain reachable with a short viewport or keyboard. */
.mobile-workspace-heading{display:none}
.club-access-notice{padding:12px;border:1px solid #626262;border-radius:6px;overflow-wrap:anywhere}
@media(max-width:800px),(max-width:1000px) and (max-height:500px){
 .workspace-menu-panel{position:fixed;top:calc(72px + env(safe-area-inset-top,0px));right:12px;left:auto;width:min(300px,calc(100vw - 24px));min-width:0;max-width:calc(100vw - 24px);max-height:calc(100dvh - 96px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:64px 16px}
 .mobile-workspace-heading{display:flex;position:sticky;top:-16px;z-index:2;align-items:center;justify-content:space-between;gap:12px;margin:-16px -16px 0;padding:8px 12px;background:#191919;border-bottom:1px solid #383838;order:-2}
 .mobile-workspace-heading strong{font-size:15px;font-weight:600}
 .mobile-workspace-heading button{width:44px;min-height:44px;padding:0;font-size:22px}
}

@media(max-width:800px),(max-width:1000px) and (max-height:500px){.workspace-menu-panel select{min-height:44px;font-size:16px}}
