@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');
:root {
  --workspace-font: "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  font-family: var(--workspace-font);
}
body, button, input, select, textarea { font-family: var(--workspace-font); }
#homePage .home-intro {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
}
#homePage .home-intro h2 { letter-spacing: -.035em; }
#homePage .home-intro > div { max-width: min(100%, 30rem); }
#homePage .home-intro button { align-self: flex-start; }
#clubDetail > .roster22 { margin: 16px 0 20px; scroll-margin-top: 110px; }
#clubDetail .lineupStudio { scroll-margin-top: 110px; }
.roster22table { overflow-x: auto; }
.roster22table tbody tr:focus-visible,
:where(button, input, select, textarea, a):focus-visible {
  outline: 2px solid var(--workspace-focus, #7ce0e9);
  outline-offset: 3px;
}
#workspaceTheme { display: grid; gap: 8px; max-width: 24rem; margin: 16px 0; }
#officialMatches { margin-bottom: 24px; }
#officialMatches > .librarytable { max-height: 33rem; overflow: auto; }
.scoutfile-toolbar,.scoutfile-summary {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.5rem;
}
.scoutfile-toolbar input {flex:1 1 13rem; min-width:0;}
.scoutfile-summary {margin:.65rem 0;}
.scoutfile-summary p {margin:0;}
.scoutfile-table {width:100%; table-layout:fixed;}
#library .scoutfile-table :is(td,th) {padding:.45rem .5rem; vertical-align:middle;}
.scoutfile-table .scoutfile-select {width:2.5rem;}
.scoutfile-table .scoutfile-select input {margin:0;}
.scoutfile-table .scoutfile-select label span {display:none;}
.scoutfile-table .scoutfile-date {width:6.5rem; white-space:nowrap; font-variant-numeric:tabular-nums;}
.scoutfile-import-date {display:block;white-space:normal;margin-top:.2rem;}
.scoutfile-table :is(.scoutfile-home,.scoutfile-away) {width:14%; overflow-wrap:anywhere;}
.scoutfile-table .scoutfile-score {width:4rem; text-align:center; white-space:nowrap;}
.scoutfile-table .scoutfile-name {overflow-wrap:anywhere; font-size:.86em;}
.scoutfile-table .scoutfile-video {width:15%;}
.scoutfile-video ul {list-style:none;padding:0;margin:0;overflow-wrap:anywhere;}
.scoutfile-video li+li {margin-top:.25rem;}
.scoutfile-video-label {display:none;}
.scoutfile-table .scoutfile-actions {width:9rem;}
.scoutfile-video-tools,.scoutfile-actions > div {display:flex; align-items:center; flex-wrap:wrap; gap:.3rem;}
.gr-space-catalog > summary {cursor:pointer;font-size:1.08rem;font-weight:700;}
:is(.gr-space-catalog > ul,.gr-local-video-queue) {list-style:none;padding:0;margin:.35rem 0;max-height:17rem;overflow:auto;}
:is(.gr-space-catalog > ul,.gr-local-video-queue):empty,.gr-space-catalog > p:empty {display:none;}
:is(.gr-space-catalog,.gr-local-video-queue) li {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.45rem;padding:.45rem 0;border-bottom:1px solid var(--workspace-border,#47717e);}
.gr-space-catalog li > div {min-width:0;overflow-wrap:anywhere;}
.gr-space-catalog li small {display:block;}
.gr-local-video select {max-width:100%;}
.scoutfile-table :is(.scoutfile-actions,.scoutfile-video) button {
  padding:.3rem .47rem!important;
  font-size:.81rem!important;
  min-height:2rem;
  white-space:nowrap;
}
@media(max-width:850px) {
  .scoutfile-table,.scoutfile-table :is(thead,tbody) {display:block;}
  #library .scoutfile-table {min-width:0;}
  .scoutfile-table thead th:not(.scoutfile-select) {display:none;}
  .scoutfile-table thead .scoutfile-select {width:auto;}
  .scoutfile-table .scoutfile-select label {display:flex; align-items:center; gap:.45rem;}
  .scoutfile-table .scoutfile-select label span {display:inline;}
  #library .scoutfile-table tbody tr {
    display:grid;
    grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr);
    gap:.4rem;
    margin:.4rem 0;
    padding:.55rem;
    border:1px solid var(--p-line,var(--workspace-border,#35495b));
    border-radius:.6rem;
  }
  #library .scoutfile-table tbody td {width:auto; min-width:0; border:0; padding:0;}
  .scoutfile-table tbody .scoutfile-select {grid-column:1; grid-row:1;}
  .scoutfile-table tbody .scoutfile-date {grid-column:2 / -1; grid-row:1; text-align:right;}
  .scoutfile-table .scoutfile-home {grid-column:1; grid-row:2;}
  .scoutfile-table .scoutfile-score {grid-column:2; grid-row:2;}
  .scoutfile-table .scoutfile-away {grid-column:3; grid-row:2; text-align:right;}
  .scoutfile-table .scoutfile-name {grid-column:1 / -1; grid-row:3;}
  .scoutfile-table .scoutfile-online {grid-column:1 / -1; grid-row:4;}
  .scoutfile-table .scoutfile-local {grid-column:1 / -1; grid-row:5;}
  .scoutfile-video-label {display:block;font-weight:650;}
  .scoutfile-table .scoutfile-actions {grid-column:1 / -1; grid-row:6;}
  .scoutfile-table .scoutfile-actions > div {justify-content:flex-end;}
}
#grStandings table { text-align: left; }
#grStandings td, #grStandings th { padding: .35rem; }
.gr-standing-selected { background: var(--workspace-selection, #125360); color: #fff; font-weight: bold; }
[data-theme="ardoise"] {
  --workspace-bg: #141920;
  --workspace-surface: #232d39;
  --workspace-input: #2a3848;
  --workspace-border: #8293a9;
  --workspace-text: #f3f7fc;
  --workspace-muted: #cbd8e7;
  --workspace-accent: #a9ccff;
  --workspace-focus: #f9da86;
  --workspace-selection: #354f78;
}
[data-theme="contraste"] {
  --workspace-bg: #070809;
  --workspace-surface: #14181a;
  --workspace-input: #242a2d;
  --workspace-border: #adb9bd;
  --workspace-text: #ffffff;
  --workspace-muted: #e0ecee;
  --workspace-accent: #ffe880;
  --workspace-focus: #ffe880;
  --workspace-selection: #36505a;
}
html[data-theme] body,
html[data-theme] #sidebar { background: var(--workspace-bg); color: var(--workspace-text); }
html[data-theme] :is(.panel,#homePage .homeworkspace>.panel,#sidebar,.clubcard,.lineupStudio,.lineupRoster,.profile22,.roster22table,.serverCard,#report,#visual,#nav,#attackPresets,.statstrip div,#serviceControls) {
  background: var(--workspace-surface) !important;
  border-color: var(--workspace-border) !important;
  color: var(--workspace-text);
}
html[data-theme] :is(button,input,select,textarea,#homeSearch) {
  background: var(--workspace-input);
  border-color: var(--workspace-border);
  color: var(--workspace-text);
}
html[data-theme] :is(.muted,small,label,th,.home-section-title span,#filterCount) { color: var(--workspace-muted); }
html[data-theme] :is(a,.home-intro em,#homeResults b) { color: var(--workspace-accent); }
html[data-theme] :is(button.active,.roster22table .selected22) {
  background: var(--workspace-selection) !important;
  color: white !important;
}
html[data-theme] .roster22table tr:nth-child(even) { background: var(--workspace-input); }
html[data-theme] #homePage .home-intro :is(h2,p,small) { text-shadow: 0 1px 5px #000, 0 1px 10px #000; }
@media (max-width: 650px) {
  #homePage .home-intro { justify-content: flex-start; }
  #homePage .home-intro > div { max-width: 100%; }
  #grStandings { overflow-x: auto; }
}
#court { border: 1px solid #316276; border-radius: 14px; touch-action: none; }
#visual > small { display: block; margin: 8px 0; max-width: 90ch; }
#coverage { color: #c5e0e9; font-variant-numeric: tabular-nums; }
#serviceOverview .serviceMiniCourt {
  display: block;
  width: min(180px,100%);
  height: 250px;
  flex: none;
  border: 1px solid #366274;
  border-radius: 10px;
}
.lineupFloor { filter: drop-shadow(0 0 11px #138f9e49); }
#lineupStudio .lineupFloor polygon, .lineupFloor polygon { stroke: var(--workspace-accent, #87f3ff); }
#court285 stop:first-child { stop-color: var(--workspace-surface, #123c49); }
#court285 stop:last-child { stop-color: var(--workspace-bg, #091b26); }
#staffMain[data-view="plans"] { display: flex; flex-direction: column; gap: 12px; }
#staffMain[data-view="plans"] #gamePlanEditor { order: 1; }
#staffMain[data-view="plans"] #individualLayout { order: 2; grid-template-columns: minmax(0,1fr); }
/* Hide optional navigation without removing the underlying modules. */
#sidebar button:is([data-page="competitions"],[data-page="tend"],[data-page="changes"]) { display:none !important; }
#nav button:nth-child(5), #nav button:nth-child(6) { display:none !important; }
.lineupSlot > small { display:none; }
.lineupSlot button .portrait { border-radius:50%; object-fit:cover; }
#homePage .myteam :is(h3,.home-section-title) { font-family:var(--workspace-font); font-weight:750; letter-spacing:-.025em; }
@media(max-width:650px){ #homePage .home-intro { min-height:200px !important; } }

/* Club lineup: roster already appears above the court. */
#clubDetail .clubLineupLayout { grid-template-columns: minmax(0, 1fr) !important; }
#clubDetail .clubLineupLayout > .lineupRoster { display: none !important; }
#clubDetail .clubLineupLayout > .lineupStudio { width: 100%; box-sizing: border-box; }

/* Unified typography system */
:root { --workspace-font: "Inter", "Segoe UI", Arial, sans-serif; --heading-font: "Manrope", "Inter", "Segoe UI", Arial, sans-serif; }
body, body :is(button,input,select,textarea,table,th,td,label,small,p,a,.clubcard,.clubcard *, .lineupRoster,.lineupRoster *) { font-family: var(--workspace-font) !important; font-stretch: normal !important; }
body :is(h1,h2,h3,h4,.home-section-title) { font-family: var(--heading-font) !important; font-stretch: normal !important; letter-spacing: -.025em; }
#homePage .home-intro h2 { font-size: clamp(30px,3vw,46px) !important; font-weight: 850; }
#homePage :is(.home-section-title,h3), #clubDetail :is(h2,h3), #staffMain h2 { font-size: clamp(23px,2vw,32px) !important; font-weight: 800 !important; line-height: 1.2; color: var(--workspace-accent,#74dce7); }
#homePage .myteam :is(h2,h3,h4) { font-size: clamp(23px,2vw,30px) !important; font-style: normal; }
#homePage .clubcard :is(b,strong,h3,h4) { font-family: var(--workspace-font) !important; font-size: 14px !important; font-weight: 650 !important; font-style: normal !important; line-height: 1.35; color: var(--workspace-text,#f0f7fa); }
#homePage .clubcard :is(small,a,button) { font-size: 12px !important; }
#homePage .myteam :is(p,a,button,select,td) { font-size: 14px !important; line-height: 1.5; }
#homePage .myteam small { font-size: 12px !important; }
#homePage .home-section-title span { font-size: 12px; letter-spacing: .12em; }

/* Stronger hierarchy, including legacy condensed headings. */

body :is(h1,h2,h3,h4,.home-section-title) { font-family: var(--heading-font) !important; font-stretch: normal !important; }
#homePage :is(h2,.home-section-title), #clubDetail h2, #staffMain h2 { font-size:clamp(28px,3vw,38px) !important; font-weight:800 !important; line-height:1.15 !important; color:var(--workspace-accent,#74dce7) !important; }
#homePage h3, #clubDetail h3, #staffMain h3 { font-size:22px !important; font-weight:750 !important; line-height:1.3 !important; }
#homePage .clubcard :is(h3,h4,b,strong) { font-size:15px !important; font-weight:650 !important; color:var(--workspace-text,#f0f7fa) !important; }

#gr-account:not([hidden]){display:flex!important;align-items:center;gap:10px;flex-wrap:wrap}
#grLanguagePicker{position:static!important;margin:0!important;align-self:center;min-height:36px}
#pageTitle{font-family:Manrope,Inter,system-ui,sans-serif!important;font-size:clamp(28px,3vw,40px)!important;font-weight:800!important;letter-spacing:-.035em!important}
.gr-section-heading{display:flex!important;align-items:center;gap:12px;width:100%;flex-basis:100%;grid-column:1/-1;margin:0 0 16px;padding:0 0 12px;border-bottom:1px solid #75dce52b}
.gr-section-heading h2{font-family:Manrope,Inter,system-ui,sans-serif!important;font-size:clamp(19px,2vw,26px)!important;font-weight:800!important;letter-spacing:.025em!important;line-height:1.2!important;color:var(--workspace-accent,#74dce7)!important;margin:0!important}
.gr-section-heading small{font-size:12px!important;color:inherit;opacity:.72}
.gr-section-number{font:800 17px Manrope,system-ui,sans-serif;color:var(--workspace-accent,#74dce7);border:1px solid currentColor;border-radius:8px;padding:8px 10px}
#clubOptions,#filters,#visual,#report{background-image:linear-gradient(125deg,#79d8e50b,transparent 65%)!important;box-shadow:0 8px 24px #0002}
#nav button.active,#attackPresets button.active{box-shadow:inset 0 -3px 0 var(--workspace-accent,#74dce7)}

/* Sport performance visual identity */
#shell .panel{border-radius:16px;transition:border-color .18s,box-shadow .18s}
#shell .panel:hover{border-color:var(--workspace-accent,#74dce7)}
#shell button{transition:transform .15s,filter .15s,background-color .15s}
#shell button:not(:disabled):hover{filter:brightness(1.15);transform:translateY(-1px)}
#shell button:not(:disabled):active{transform:translateY(0)}
#pageTitle{display:table;padding-bottom:10px;border-bottom:3px solid var(--workspace-accent,#74dce7)}
.gr-section-number{background:linear-gradient(145deg,#76dce52b,#76dce506);box-shadow:0 0 18px #76dce512}
#clubOptions,#filters,#visual,#report{background-image:radial-gradient(ellipse at top right,#42b7d01a,transparent 55%),linear-gradient(135deg,#ffffff05,transparent 70%)!important}
#shell .clubcard{transition:transform .2s,box-shadow .2s;border-radius:14px}
#shell .clubcard:hover{transform:translateY(-3px);box-shadow:0 10px 24px #0004}
@media(prefers-reduced-motion:reduce){#shell .panel,#shell button,#shell .clubcard{transition:none!important;transform:none!important}}

/* Compact scouting setup: prioritize the court and performance data. */
#staffMain :is(#clubOptions,#filters){padding:8px 12px!important;margin-bottom:8px!important;min-height:0!important;gap:6px!important}
#staffMain :is(#clubOptions,#filters) .gr-section-heading{justify-content:flex-start!important;gap:8px!important;margin:0 0 5px!important;padding:0 0 5px!important;min-height:0!important}
#staffMain :is(#clubOptions,#filters) .gr-section-heading h2{font-size:16px!important;line-height:1.15!important;font-style:normal!important;text-align:left!important}
#staffMain :is(#clubOptions,#filters) .gr-section-heading small{display:none!important}
#staffMain :is(#clubOptions,#filters) .gr-section-heading>span{padding:3px 6px!important;min-width:0!important;min-height:0!important;font-size:12px!important}
#staffMain :is(#clubOptions,#filters) label{margin:2px 5px!important;gap:5px!important;font-size:12px!important}
#staffMain :is(#clubOptions,#filters) :is(button,select,input){padding:5px 8px!important;font-size:12px!important;min-height:0!important}
#staffMain #filters #combos{padding:5px 0 0!important;margin:4px 0 0!important;gap:5px!important}
#staffMain #clubOptions details{margin:3px 0 0!important;padding:0!important}

/* Attack workspace: compact left column, full tactical court right. */
@media(min-width:1050px){
#staffMain.gr-attack-layout[data-view="analysis"]{display:grid!important;grid-template-columns:minmax(0,38fr) minmax(0,62fr);grid-template-rows:auto auto auto 1fr;gap:12px 24px;align-items:start}
#staffMain.gr-attack-layout[data-view="analysis"] #individualLayout{display:contents!important}
#staffMain.gr-attack-layout[data-view="analysis"] #clubOptions{grid-column:1;grid-row:1}
#staffMain.gr-attack-layout[data-view="analysis"] #nav{grid-column:1;grid-row:2}
#staffMain.gr-attack-layout[data-view="analysis"] #filters{grid-column:1;grid-row:3}
#staffMain.gr-attack-layout[data-view="analysis"] #report{grid-column:1;grid-row:4;min-width:0}
#staffMain.gr-attack-layout[data-view="analysis"] #visual{grid-column:2;grid-row:1 / span 4;min-width:0;align-self:start}
#staffMain.gr-attack-layout[data-view="analysis"] #visual #court{width:100%;height:clamp(420px,55vw,760px)}
#staffMain.gr-attack-layout[data-view="analysis"] #serviceControls:empty{display:none}
}
.gr-saved-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.gr-saved-grid img{width:100%;height:auto;display:block;border-radius:6px}
.gr-saved-grid article{min-width:0;overflow-wrap:anywhere}
@media(max-width:650px){.gr-saved-grid{grid-template-columns:1fr}}

.reception-court {
  position:relative;
  max-width:42rem;
  margin:.85rem auto;
}
.reception-court canvas {
  display:block;
  width:100%;
  height:clamp(22rem,65vw,34rem);
  border-radius:.6rem;
}
.reception-court-zones {
  position:absolute;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:repeat(3,minmax(0,1fr));
  box-shadow:0 -2px 0 #fff5e6;
}
.reception-zone {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border:1px solid #fff5;
  background:var(--zone-fill);
  color:#fff;
  text-shadow:0 1px 3px #000;
  line-height:1.15;
  text-align:center;
}
.reception-zone strong {
  font-size:clamp(1.05rem,3.8vw,2rem);
  font-variant-numeric:tabular-nums;
}
.reception-qualities {
  margin:.85rem 0 .4rem;
  padding:.55rem .65rem;
  border:1px solid var(--p-line,var(--workspace-border,#29404b));
  border-radius:.6rem;
  display:flex;
  flex-wrap:wrap;
  gap:.35rem;
}
#serviceOverview .reception-qualities label {
  display:inline-flex;
  gap:.35rem;
  align-items:center;
  min-width:2.55rem;
  padding:.32rem .48rem;
  border:1px solid var(--p-line,var(--workspace-border,#29404b));
  border-radius:.38rem;
  cursor:pointer;
}
#serviceOverview .reception-qualities label:has(input:checked) {
  border-color:var(--p-accent,var(--workspace-accent,#87f3ff));
  background:var(--p-tint,var(--workspace-surface,#123c49));
  color:var(--p-accent,var(--workspace-accent,#87f3ff));
}
.reception-table {overflow-x:auto;}
.gr-tactical-dialog.gr-reception-comparison {width:min(72rem,calc(100% - 1.6rem));}
.gr-reception-comparison .reception-table thead th {white-space:nowrap;background:#21375e;color:white;}
.gr-reception-comparison .reception-table :is(td,th) {text-align:center;min-width:2.9rem;border-color:#d7e1ec;}
.gr-reception-comparison .reception-table tbody :is(td,th) {background:#fff;color:#152739;}
.gr-reception-comparison .reception-table th[scope="row"] {text-align:left;white-space:normal;min-width:9rem;}
.gr-reception-comparison .reception-table .portrait {width:2.25rem;height:2.25rem;object-fit:cover;object-position:center 25%;}
.gr-reception-comparison .reception-table td.reception-weaker-serve {font-weight:750;color:#b51e27;background:#fce9e9;}

:is(#clubDetail,#clubLineupDialog) .lineupCourt {
  display:grid!important;
  grid-template-columns:minmax(4rem,13%) minmax(0,1fr);
  grid-template-areas:"side court";
  align-items:center;
  gap:clamp(.25rem,1.2vw,1.2rem);
  aspect-ratio:auto!important;
  max-width:76rem!important;
}
.lineupStage {
  grid-area:court;
  position:relative;
  min-width:0;
  aspect-ratio:650 / 410;
  container-type:inline-size;
}
.lineupSide {grid-area:side;min-width:0;display:grid;justify-items:center;gap:.45rem;}
:is(#clubDetail,#clubLineupDialog) .lineupSide :is(.lineupLibero,.lineupCrest) {
  position:static!important;
  width:100%!important;
}
:is(#clubDetail,#clubLineupDialog) .lineupSide .lineupCrest .crest {max-width:3.25rem;margin-inline:auto;}
:is(#clubDetail,#clubLineupDialog) .lineupSide .lineupLibero button {display:grid;justify-items:center;gap:.23rem;}
:is(#clubDetail,#clubLineupDialog) .lineupStage .lineupSlot {
  display:grid;
  justify-items:center;
  align-content:center;
  width:21%!important;
}
:is(#clubDetail,#clubLineupDialog) .lineupStage .lineupSlot:is([data-slot="4"],[data-slot="3"],[data-slot="2"]) {top:44%!important;}
:is(#clubDetail,#clubLineupDialog) .lineupStage .lineupSlot:is([data-slot="5"],[data-slot="6"],[data-slot="1"]) {top:76%!important;}
:is(#clubDetail,#clubLineupDialog) .lineupStage .lineupSlot[data-slot="4"] {left:29%!important;}
:is(#clubDetail,#clubLineupDialog) .lineupStage .lineupSlot[data-slot="3"],
:is(#clubDetail,#clubLineupDialog) .lineupStage .lineupSlot[data-slot="6"] {left:50%!important;}
:is(#clubDetail,#clubLineupDialog) .lineupStage .lineupSlot[data-slot="2"] {left:71%!important;}
:is(#clubDetail,#clubLineupDialog) .lineupStage .lineupSlot[data-slot="5"] {left:24%!important;}
:is(#clubDetail,#clubLineupDialog) .lineupStage .lineupSlot[data-slot="1"] {left:76%!important;}
#clubDetail .lineupStage .lineupSlot .portrait-edit {
  width:clamp(1.35rem,9cqw,3rem)!important;
  min-height:0;
}
#clubDetail .lineupStage .lineupSlot .portrait-edit img {width:100%!important;height:100%!important;}
#clubDetail .lineupLibero img.portrait {width:min(100%,2.6rem)!important;height:auto!important;aspect-ratio:4/5;object-fit:cover;}
#clubDetail .lineupLibero strong {font-size:.72rem!important;overflow-wrap:anywhere;}
:is(#clubDetail,#clubLineupDialog) .lineupStage .lineup-player-link {width:auto;min-height:0;}
:is(#clubDetail,#clubLineupDialog) .lineupStage select[hidden] {display:none!important;}
#captureLineupStatus {display:block;margin-top:.25rem;}
@media(max-width:600px){
  #clubDetail .lineupCourt {grid-template-columns:minmax(0,1fr);grid-template-areas:"court" "side";}
  #clubDetail .lineupSide {grid-template-columns:3rem minmax(0,1fr);}
  #clubDetail .lineupSide .lineupLibero {display:flex;flex-wrap:wrap;align-items:center;gap:.3rem;}
  #clubDetail .lineupSide .lineupLibero button {flex:0 1 4.65rem;}
}

.roster22table th {white-space:nowrap;}
#shell .roster22table th button.roster22-sort {
  appearance:none;
  background:none;
  border:0;
  border-radius:0;
  box-shadow:none;
  padding:0;
  min-height:1.75rem;
  color:inherit;
  font:inherit;
  text-align:left;
  cursor:pointer;
}
.roster22table th button.roster22-sort:hover {text-decoration:underline;}
.roster22table th button.roster22-sort:focus-visible {outline:2px solid currentColor;outline-offset:3px;}
.roster22-sort::after {content:"↕";display:inline-block;width:1em;margin-inline-start:.35em;opacity:.65;}
.roster22table [aria-sort="ascending"] .roster22-sort::after {content:"↑";opacity:1;}
.roster22table [aria-sort="descending"] .roster22-sort::after {content:"↓";opacity:1;}
.roster22table td {white-space:nowrap;}
.roster22table td:nth-child(n+4) {font-variant-numeric:tabular-nums;}
.analysis22tiles .roster22-reception {grid-column:1 / -1;}
.club-overview {display:grid;grid-template-columns:minmax(0,1.32fr) minmax(0,1fr);align-items:start;gap:1rem;}
#clubDetail .club-overview .roster22 {grid-template-columns:minmax(0,1fr);min-width:0;margin:0;}
.club-overview .roster22table {min-width:0;}
.club-roster-scroll {overflow-x:auto;}
.club-roster-scroll .roster22name .portrait {flex:none;}
#clubDetail .club-roster-scroll :is(th,td) {padding-inline:.4rem;}
#clubDetail .club-roster-scroll :is(th,td):not(:nth-child(2),:nth-child(3)) {width:1%;}
@media (max-width:1600px) {
  #clubDetail .club-roster-scroll th:nth-child(n+4) .roster22-sort {white-space:normal;line-height:1.2;}
}
.club-overview-side,.club-team-summary {display:grid;gap:.65rem;min-width:0;}
.club-team-summary > :is(.panel,.lineupStudio) {min-width:0;margin:0;}
#shell #clubDetail {--club-heading-color:#bef578;}
html[data-premium="light"] #shell #clubDetail {--club-heading-color:#3a6515;}
#shell #clubDetail :is(.club-team-summary h2,.lineup-openings h3,.club-team-photo h2,.roster22table h2,.profile22 h2,.profile22 h3) {color:var(--club-heading-color)!important;}
#clubDetail .club-results {display:grid;grid-template-rows:auto auto minmax(0,1fr);padding:.65rem .8rem;}
#shell #clubDetail .club-results h2 {margin:0 0 .3rem;font-size:1.05rem!important;}
.club-results .librarytable {grid-row:3;max-height:14rem;overflow:auto;}
.club-results table {font-size:.875rem;}
.club-results thead th {position:sticky;top:0;background:var(--p-raised,#1b2c38);}
.club-results [data-club-results-status] {margin:.3rem 0;font-size:.8rem;}
.lineup-openings table {width:100%;text-align:center;font-variant-numeric:tabular-nums;}
.lineup-openings th {text-align:center;}
.lineup-openings {margin:.75rem 0;}
.lineup-openings h3 {margin:0 0 .4rem;}
.club-lineup-heading {
  position:sticky;top:0;z-index:2;display:flex;flex-wrap:wrap;justify-content:space-between;
  align-items:center;gap:.45rem;background:var(--p-surface,#14232e);padding:.25rem 0 .45rem;
}
#shell #clubLineupTitle {margin:0;}
#clubDetail .lineupStage {aspect-ratio:650 / 330;}
.club-team-summary .lineupTop {display:grid;gap:.35rem;margin:.2rem 0;}
.lineup-controls {display:flex;align-items:center;gap:.3rem;flex-wrap:wrap;}
#captureLineupStatus:empty {display:none;}
#shell #clubDetail :is(.lineup-controls button,.club-lineup-heading button) {
  font-size:.8rem!important;padding:.32rem .5rem!important;min-height:2rem;
}
#clubLineupDialog {width:min(95vw,68rem);max-height:92dvh;overflow:auto;box-sizing:border-box;}
#clubLineupDialog > header {display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;}
#clubLineupDialog header :is(h2,p) {margin:0 0 .3rem;}
#clubLineupDialog .lineupCourt {grid-template-columns:minmax(5rem,15%) minmax(0,1fr);}
#clubLineupDialog .lineupSlot strong {font-size:clamp(.65rem,1.5cqw,.95rem)!important;text-align:center;}
#clubLineupDialog .lineupSlot img.portrait {width:clamp(1.85rem,12cqw,6.6rem)!important;}
#clubLineupDialog .lineupLibero {display:grid;gap:.55rem;text-align:center;}
#clubLineupDialog .lineup-libero-player {display:grid;justify-items:center;gap:.2rem;}
#clubLineupDialog .lineupLibero img.portrait {width:min(95%,6rem)!important;height:auto!important;aspect-ratio:4/5;object-fit:cover;}
#shell #clubDetail :is(.club-diagram-gallery,.club-video-captures) {margin-top:1rem;}
.club-diagram-groups {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;}
#shell #clubDetail .club-diagram-groups > section:only-child {grid-column:1 / -1;}
#shell #clubDetail .club-diagram-gallery h2 {margin-top:0;color:var(--club-heading-color)!important;}
#clubDetail .club-diagram-groups .gr-saved-grid {grid-template-columns:repeat(auto-fill,minmax(min(100%,8rem),1fr));gap:.5rem;}
#shell #clubDetail .club-diagram-groups .gr-saved-card h3 {font-size:.875rem!important;overflow-wrap:anywhere;}
#clubDetail .club-diagram-groups img {aspect-ratio:4/3;object-fit:contain;display:block;width:100%;}
#shell #clubDetail .club-video-captures h2 {margin-top:0;color:var(--club-heading-color)!important;}
#clubCaptureManager {margin-top:.75rem;}
#clubCaptureManager > summary {cursor:pointer;}
.gr-capture-image-navigation {display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:.5rem 0;}
.gr-capture-image-navigation button {min-width:2.75rem;min-height:2.5rem;font-size:1.15rem;}
.gr-capture-image-navigation span {white-space:nowrap;font-variant-numeric:tabular-nums;}
@media (max-width:600px) {
  #clubLineupDialog .lineupCourt {grid-template-columns:minmax(0,1fr);grid-template-areas:"court" "side";}
  #clubLineupDialog .lineupSide {grid-template-columns:3rem minmax(0,1fr);}
  #clubLineupDialog .lineupLibero {display:flex;flex-wrap:wrap;align-items:center;}
  #clubLineupDialog .lineupLibero img.portrait {width:min(20vw,4.5rem)!important;}
  .club-diagram-groups {grid-template-columns:minmax(0,1fr);}
}
.club-team-photo {margin-top:1rem;}
.club-team-photo img {width:auto;max-width:100%;max-height:42rem;display:block;margin:.5rem auto;border-radius:14px;}
.club-team-photo label {display:block;margin:.5rem 0;}
html[data-team-readonly] .club-team-photo label {display:none;}
@media (min-width:1001px) {
  .club-overview:has(.club-team-summary:not([hidden])) {align-items:stretch;}
  .club-overview-side:has(.club-team-summary:not([hidden])) {contain:size;min-height:39rem;grid-template-rows:minmax(0,1fr);}
  .club-team-summary {min-height:0;grid-template-rows:minmax(0, 7fr) minmax(0, 3fr);}
  #clubDetail .club-team-summary .lineupStudio {min-height:0;overflow:auto;padding:1rem;}
  .club-results .librarytable {max-height:none;}
}
@media (max-width:1000px) {
  .club-overview {grid-template-columns:minmax(0,1fr);}
}

#scoutMatches {min-width:0;max-width:100%;}
#scoutMatches summary {cursor:pointer;}
#scoutMatches #matches {max-height:17rem;overflow:auto;overflow-wrap:anywhere;}
#scoutMatches #matches label {display:inline-flex;align-items:flex-start;gap:.3rem;}
#scoutMatches #matches label:has(#recent) {display:none;}
.scout-match-actions {display:flex;flex-wrap:wrap;gap:.3rem;margin:.45rem 0;}

html[data-team-readonly] :is(#importMount,#deleteSelectedDVW,#library [data-delete],#library .scoutfile-select,
  #deleteSelectedCaptures,#moveSelectedCaptures,#createCaptureFolder,.gr-saved-card .gr-saved-delete,
  .gr-capture-panel,.gr-capture-launch,.gr-saved-card .gr-saved-toolbar > details,
  #captureLineup,[data-setter-capture],.gr-diagram-batch,.setter-comment,
  #logo,#clubLogoEdit,#saveMeta,#lineupEdit20,#lineupReset,#serviceNote) {display:none!important;}
html[data-team-readonly] .portrait-edit {pointer-events:none;cursor:default;}
.gr-club-merge {margin-top:.7rem;}
.gr-club-merge form {display:flex;flex-wrap:wrap;gap:.45rem;align-items:end;margin-top:.5rem;}
.gr-club-merge label {display:grid;min-width:0;gap:.2rem;}
.gr-club-merge select {max-width:100%;}
.gr-club-merge li {margin:.3rem 0;}
.scoutfile-import-by,.gr-video-linked-by:not([hidden]) {display:block;font-size:.75rem;color:var(--p-muted,#a8bcc8);}
.scout-video-badge:not([hidden]) {
  display:inline-grid;
  place-items:center;
  flex:none;
  align-self:center;
  width:1.04rem;
  height:1.04rem;
  color:#11200d;
  background:#b9f574;
  border-radius:50%;
  font-size:.72rem;
  font-weight:800;
  line-height:1;
}

.club-shortcuts,.scoutfile-shortcuts,.scout-filter-summary {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.45rem;
  margin:.65rem 0;
}
.club-shortcuts button,.scoutfile-shortcuts button,.scout-filter-chip {
  padding:.42rem .65rem;
  min-height:2.4rem;
}
#clubDetail:not(:has(.club-diagram-gallery:not([hidden]),#clubVideoCaptures:not([hidden]))) [data-club-capture-shortcut],
#filesPage:not(:has(#spaceVideoCatalog:not([hidden]))) [data-space-catalog-shortcut] {display:none;}
.scout-filter-summary {grid-column:1 / -1;min-width:0;}
.scout-filter-chip {display:inline-flex;align-items:center;gap:.45rem;max-width:100%;text-align:left;}
.scout-filter-chip strong {overflow-wrap:anywhere;}
.scout-filter-chip [aria-hidden] {margin-inline-start:.15rem;}
#clubDetail :is(.lineupStudio,.club-results,.roster22,.profile22,.club-diagram-gallery,#clubVideoCaptures),
#filesPage :is(.panel,#spaceVideoCatalog) {scroll-margin-top:5.25rem;}
.club-overview {grid-template-areas:"roster details";}
.club-overview > .roster22 {grid-area:roster;}
.club-overview > .club-overview-side {grid-area:details;}
[data-scoutfile-report]:empty {display:none;}
@media (max-width:1000px) {
  .club-overview {grid-template-areas:"details" "roster";}
  .club-shortcuts button,.scoutfile-shortcuts button,.scout-filter-chip {min-height:44px;}
}
