/* The Classic interface keeps the original styles. */
html[data-premium] {
  --p-bg:#0d121b;
  --p-rail:#101722;
  --p-surface:#151e2b;
  --p-raised:#1b2737;
  --p-input:#111a26;
  --p-line:#354354;
  --p-text:#f2f6fb;
  --p-muted:#b1bfce;
  --p-accent:#68ead4;
  --p-brand:#41ceba;
  --p-on-accent:#102521;
  --p-tint:#223b41;
  --p-shadow:0 12px 32px #0003;
  --workspace-bg:var(--p-bg);
  --workspace-surface:var(--p-surface);
  --workspace-input:var(--p-input);
  --workspace-border:var(--p-line);
  --workspace-text:var(--p-text);
  --workspace-muted:var(--p-muted);
  --workspace-accent:var(--p-accent);
  --workspace-focus:var(--p-accent);
  --workspace-selection:var(--p-tint);
  --muted:var(--p-muted);
  --rail-width:13.9rem;
  color-scheme:dark;
}
html[data-premium="light"] {
  --p-bg:#bac7cd;
  --p-rail:#ccd8dd;
  --p-surface:#dce5e8;
  --p-raised:#cdd9de;
  --p-input:#d1dce0;
  --p-line:#9cabb2;
  --p-text:#182d35;
  --p-muted:#3b505b;
  --p-accent:#095f57;
  --p-brand:#268477;
  --p-on-accent:#fff;
  color-scheme:light;
  --p-tint:#c0d8d8;
  --p-shadow:0 .45rem 1.35rem #263c3820;
}
[data-premium] body {
  background:var(--p-bg);
  color:var(--p-text);
  font-size:1rem;
}
[data-premium] #shell {
  margin:0 auto;
  padding:1.55rem clamp(1rem, 3vw, 2.8rem) 3rem;
  width:100%;
  max-width:110rem;
}
[data-premium] #pageTitle {
  border:0;
  padding:0;
  color:var(--p-text);
  font-size:clamp(1.65rem, 2.5vw, 2.45rem)!important;
  font-weight:800;
  line-height:1.1;
}
[data-premium] #shell:has(#homePage:not([hidden])) {
  max-width:110rem;
  padding:1.55rem clamp(1rem, 3vw, 2.8rem) 3rem;
}
[data-premium] #storageState {color:var(--p-muted); font-size:.8rem; margin:.6rem 0 1.15rem;}
[data-premium] #storageState:empty {display:none;}
[data-premium] #sidebar {
  color:var(--p-text);
  background:var(--p-rail)!important;
  border-color:var(--p-line);
  box-shadow:none;
  gap:.25rem;
}
[data-premium] #sidebar > small {
  color:var(--p-muted);
  font-size:.75rem;
  padding:0 .7rem;
  margin:.65rem 0 .3rem;
}
[data-premium] #sidebar > small:last-of-type {display:none;}
[data-premium] #sidebar button:not(.gr-home-logo) {
  display:flex!important;
  align-items:center;
  gap:.6rem;
  text-align:left;
  min-height:2.55rem;
  padding:.55rem .7rem!important;
  border:1px solid transparent;
  border-radius:.6rem!important;
  font-size:.89rem!important;
  color:var(--p-text)!important;
  background:transparent!important;
}
[data-premium] #sidebar button:not(.gr-home-logo):hover {background:var(--p-raised)!important;}
[data-premium] #sidebar button:not(.gr-home-logo).active {
  background:var(--p-tint)!important;
  color:var(--p-accent)!important;
  border-color:color-mix(in srgb,var(--p-accent) 40%,transparent)!important;
  box-shadow:inset 3px 0 var(--p-brand)!important;
}
[data-premium] #sidebar .navicon {display:inline-flex; width:1.25rem; justify-content:center; color:var(--p-accent);}
[data-premium] #sidebar .gr-home-logo .navicon {display:none;}
html[data-premium] #sidebar .gr-home-logo img {width:9rem!important; margin:0!important;}
[data-premium] #sidebar .gr-home-logo {
  flex:none!important;
  background:#101a25!important;
  border-radius:.8rem!important;
  margin:0!important;
  justify-content:center;
  padding:.5rem!important;
}
[data-premium] #gr-user {color:var(--p-muted); font-size:.75rem; overflow:hidden; text-overflow:ellipsis;}
[data-premium] #gr-account #gr-logout {border-color:var(--p-line); font-size:.81rem!important;}
@media (min-width: 1080px) {
  [data-premium] #sidebar {
    position:fixed;
    inset:0 auto 0 0;
    width:var(--rail-width);
    flex-direction:column;
    flex-wrap:nowrap;
    align-items:stretch;
    z-index:12;
    padding:1rem!important;
    overflow-y:auto;
    overflow-x:hidden;
    border-right:1px solid var(--p-line);
  }
  html[data-premium] body #sidebar button.gr-home-logo[data-page="home"] {
    display:flex!important;
    width:100%!important;
    flex:0 0 auto!important;
    margin:0 0 .8rem!important;
  }
  [data-premium] #sidebar > button:not(.gr-home-logo) {width:100%;}
  [data-premium] #gr-account:not([hidden]) {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 3.8rem;
    border-top:1px solid var(--p-line);
    padding-top:.8rem;
    margin-top:auto;
  }
  [data-premium] #gr-account #grLanguagePicker {grid-column:1/-1;justify-self:start;}
  [data-premium] #gr-user, [data-premium] #gr-account > button {grid-column:1/-1;}
  [data-premium] #shell, [data-premium] #shell:has(#homePage:not([hidden])) {
    margin-left:var(--rail-width);
    width:calc(100% - var(--rail-width));
  }
}
[data-premium] :is(#gr-form,#shell .panel,#shell .clubcard,#shell .lineupStudio,#shell .roster22table,#shell .profile22,#shell .serverCard,#shell .lineupRoster) {
  background:var(--p-surface)!important;
  color:var(--p-text)!important;
  border:1px solid var(--p-line)!important;
  border-radius:.9rem!important;
  box-shadow:var(--p-shadow)!important;
}
[data-premium] #shell .panel:hover {border-color:var(--p-line)!important;}
[data-premium] #shell :is(h1,h2,h3,h4,.home-section-title) {
  color:var(--p-text)!important;
  font-style:normal!important;
  letter-spacing:-.03em;
}
[data-premium] #shell :is(h2,h3) {font-size:clamp(1.15rem, 1.8vw, 1.55rem)!important;}
[data-premium] #shell :is(label,small,.muted,#filterCount,#coverage) {color:var(--p-muted);}
[data-premium] :is(#shell,#sidebar,#gr-form) :is(input:not([type="checkbox"],[type="range"],[type="color"]),select,textarea,button),
[data-premium] body > dialog :is(input,textarea,select,button) {
  background:var(--p-input);
  border:1px solid var(--p-line);
  border-radius:.55rem;
  color:var(--p-text);
  padding:.48rem .7rem;
  min-height:2.35rem;
  font-size:.88rem;
}
[data-premium] :is(#shell,#gr-form,dialog) :is(a,.grOfficialLink) {color:var(--p-accent)!important;}
[data-premium] :is(#shell,#gr-form) :is(.primary,#confirmDVW,#gr-submit),
[data-premium] .gr-saved-toolbar button[data-primary],
[data-premium] .gr-dialog-actions button[data-primary] {
  background:var(--p-accent)!important;
  color:var(--p-on-accent)!important;
  border-color:transparent!important;
  font-weight:750;
}
[data-premium] #shell button:not(:disabled):hover {filter:none; transform:none; border-color:var(--p-accent);}
[data-premium] :is(button,input,select,textarea,a,summary):focus-visible {
  outline:2px solid var(--p-accent);
  outline-offset:3px;
}
[data-premium] :is(input,textarea)::placeholder {color:var(--p-muted);opacity:1;}
[data-premium] input:is([type="range"],[type="checkbox"]) {accent-color:var(--p-accent);}
[data-premium] input[type="range"] {padding:0; border:0; background:transparent; min-width:0; max-width:100%; cursor:pointer;}
[data-premium] button:disabled {opacity:.55;}
[data-premium] table {width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums;}
[data-premium] :is(th,td) {color:var(--p-text); border-bottom:1px solid var(--p-line); padding:.55rem .62rem;}
[data-premium] th {background:var(--p-raised); color:var(--p-muted); text-align:left;}
[data-premium] .gr-standing-selected :is(td,th), [data-premium] .selected22 :is(td,th) {background:var(--p-tint); color:var(--p-text);}
[data-premium] #gr-login {background:radial-gradient(ellipse at 32% 20%,var(--p-tint),transparent 55%),var(--p-bg);}
[data-premium] #gr-form img {display:block; background:transparent; border-radius:.65rem; padding:.7rem; margin-inline:auto;}

html[data-premium] #homePage > .panel {
  background:none!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
}
html[data-premium] #homePage .home-intro {
  position:relative;
  justify-content:center;
  align-items:flex-start;
  gap:.9rem;
  border:1px solid #536a7c;
  border-left:4px solid var(--p-brand);
  border-radius:1rem;
  padding:clamp(1rem,3vw,2.4rem)!important;
  background-color:#101a25;
  box-shadow:var(--p-shadow);
}
html[data-premium] #homePage .home-intro > div {max-width:28rem;}
html[data-premium] #homePage .home-intro :is(h2,em,p,small) {color:#f3f8fc!important;}
html[data-premium] #homePage .home-intro h2 {
  font-size:clamp(1.8rem,4vw,3.8rem)!important;
  line-height:1.06!important;
  max-width:19ch;
}
html[data-premium] #homePage .home-intro p {line-height:1.4;}
[data-premium] #homePage .home-intro button[data-page="files"] {
  background:#152637!important;
  border:1px solid #708595!important;
  color:#fff!important;
}
.premium-only,[data-premium] .classic-only {display:none!important;}
[data-premium] .premium-only {display:revert!important;}
[data-premium] #homePage .homeworkspace {gap:1rem;}
[data-premium] #homePage .clubgrid {grid-template-columns:repeat(auto-fill,minmax(min(100%,8.6rem),1fr)); gap:.65rem;}
[data-premium] #homePage .clubcard h3 {font-size:1rem!important; min-height:0;}
[data-premium] .clubcard:hover {transform:none!important;}
[data-premium] #homePage .clubcard :is(h3,small,button) {color:var(--p-text)!important;}
[data-premium] .own-heading {margin:.45rem 0 .7rem;}
[data-premium] #homeSearch {width:100%;}
[data-premium] #grStandings {overflow:auto;}
[data-premium] #grStandings table {min-width:16rem;}

html[data-premium] #staffMain {padding:0; max-width:none;}
html[data-premium] #staffMain[data-view="analysis"] {
  display:grid!important;
  align-items:start;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:none;
  gap:.58rem;
}
html[data-premium] #staffMain[data-view="analysis"] > *,
html[data-premium] #staffMain[data-view="analysis"] #individualLayout > * {
  grid-area:auto!important;
  min-width:0;
  margin:0;
}
html[data-premium] [hidden] {display:none!important;}
html[data-premium] #staffMain[data-view="analysis"][hidden],
html[data-premium] #staffMain[data-view="analysis"] #individualLayout[hidden] {display:none!important;}
html[data-premium] #staffMain[data-view="analysis"] #individualLayout:not([hidden]) {
  display:grid!important;
  grid-template-columns:minmax(0,2.25fr) minmax(16rem,1fr);
  gap:.7rem;
  align-items:start;
}
[data-premium] #staffMain :is(#clubOptions,#filters,#visual,#report) {
  background-image:none!important;
}
html[data-premium] #staffMain :is(#clubOptions,#filters) {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  padding:.6rem .72rem!important;
  gap:.45rem .7rem!important;
  margin:0!important;
}
[data-premium] #staffMain .gr-section-heading {
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  position:static;
  min-height:0;
  padding:0;
  margin:0 0 .5rem;
  justify-content:start;
}
[data-premium] #staffMain :is(#clubOptions,#filters) .gr-section-heading {display:none!important;}
[data-premium] .gr-section-heading :is(.gr-section-number,small) {display:none!important;}
[data-premium] #staffMain .gr-section-heading h2 {
  color:var(--p-text)!important;
  font-size:1.1rem!important;
  letter-spacing:-.02em!important;
}
[data-premium] #staffMain :is(#clubOptions,#filters) label {
  display:flex;
  align-items:center;
  flex-direction:row;
  flex-wrap:wrap;
  margin:0!important;
  font-size:.85rem!important;
}
html[data-premium] #staffMain :is(#clubOptions,#filters) :is(select,input:not([type="checkbox"]),button) {
  min-height:2.15rem!important;
  font-size:.84rem!important;
}
[data-premium] #staffMain #filters :is(.premium-filter-group,.filtertools,#combos) {min-width:0;}
[data-premium] #staffMain .filtertools {margin-left:auto;display:flex;align-items:center;gap:.5rem;}
[data-premium] .premium-fold {
  max-width:100%;
  color:var(--p-text);
  border:1px solid var(--p-line);
  border-radius:.55rem;
  background:var(--p-input);
}
[data-premium] .premium-fold > summary {cursor:pointer; padding:.5rem .65rem; font-size:.85rem;}
[data-premium] .premium-fold[open] {flex-basis:100%;}
[data-premium] .premium-fold[open] > summary {border-bottom:1px solid var(--p-line);}
[data-premium] .premium-fold-body {display:flex; align-items:center; flex-wrap:wrap; gap:.55rem .8rem; padding:.65rem;}
[data-premium] #clubOptions #logoView {width:2rem;height:2rem;object-fit:contain;order:-1;}
[data-premium] #sidebar > button:not(.gr-home-logo,.active) {border-color:transparent!important;}
[data-premium] #clubOptions #status {color:var(--p-muted);font-size:.84rem;}
[data-premium] #clubOptions details:not(.premium-fold) summary {cursor:pointer;}
[data-premium] #nav, [data-premium] #attackPresets {
  display:flex;
  flex-wrap:wrap;
  gap:.35rem;
  background:var(--p-rail);
  border:1px solid var(--p-line);
  border-radius:.75rem;
  padding:.32rem;
}
[data-premium] #nav button {display:block!important; min-height:2.25rem; font-weight:650;}
[data-premium] #attackPresets button {min-height:1.85rem; padding:.26rem .55rem; font-size:.8rem;}
[data-premium] #shell :is(#nav,#attackPresets,#serviceControls,.overviewTop) button.active {
  background:var(--p-tint)!important;
  color:var(--p-accent)!important;
  border-color:var(--p-accent)!important;
  box-shadow:none;
}
[data-premium] #staffMain #visual {padding:.78rem;}
[data-premium] .premium-court-tools {display:flex; flex-wrap:wrap; align-items:center; gap:.35rem;}
[data-premium] .premium-court-tools button {flex:none; font-weight:650;}
[data-premium] #layers {display:flex; flex-wrap:wrap; gap:.35rem; margin:.5rem 0;}
[data-premium] #layers label {display:flex;align-items:center;gap:.3rem; padding:.37rem .49rem; background:var(--p-input);border:1px solid var(--p-line);border-radius:.5rem;font-size:.81rem;}
[data-premium] #layers label:has(input:checked) {background:var(--p-tint); color:var(--p-accent); border-color:var(--p-accent);}
html[data-premium] #staffMain #visual #court {
  width:100%!important;
  height:clamp(24rem,54vh,45rem)!important;
  border:1px solid var(--p-line);
  border-radius:.75rem;
}
html[data-premium] #staffMain #visual.expanded #court {height:calc(100dvh - 13rem)!important;}
[data-premium] .premium-court-tuning {margin-top:.65rem;}
[data-premium] .premium-court-tuning .premium-fold-body label {display:grid;grid-template-columns:minmax(8rem,auto) minmax(4rem,1fr) minmax(2rem,auto);align-items:center;gap:.45rem;font-size:.8rem;}
[data-premium] .premium-court-tuning label:has(#showEstimates) {grid-template-columns:auto 1fr;}
[data-premium] .premium-court-tuning output {min-width:1.9rem;color:var(--p-accent);font-variant-numeric:tabular-nums;}
[data-premium] .premium-court-tuning .premium-extra-players {flex-basis:100%;}
[data-premium] #staffMain #report {padding:.8rem;box-shadow:none!important;}
[data-premium] .statstrip {grid-template-columns:repeat(2,minmax(0,1fr)); gap:.4rem; margin:.5rem 0;}
[data-premium] .statstrip div {
  padding:.6rem;
  background:var(--p-raised)!important;
  border:1px solid var(--p-line);
  color:var(--p-muted);
}
[data-premium] .statstrip b {color:var(--p-text)!important; font-size:clamp(1.2rem,2vw,1.8rem);}
[data-premium] #report .playerhead {background:var(--p-raised)!important;border-color:var(--p-line);}
[data-premium] :is(.gr-quick-notes,.gr-advanced-tactical-library,.gr-saved-card,.gr-plan-diagram) {
  background:var(--p-raised);
  border-color:var(--p-line)!important;
}
[data-premium] #staffMain[data-view="plans"] #individualLayout {display:block;}
[data-premium] #staffMain[data-view="plans"] #gamePlanEditor textarea {width:100%;}
[data-premium] #workspaceTheme {max-width:none; width:100%; padding:0; margin:.6rem 0 0;}
#workspaceTheme .premium-preferences {display:grid;gap:.6rem; width:100%;}
.premium-color-fields {display:flex; flex-wrap:wrap; align-items:end; gap:.6rem;}
.premium-color-fields label {display:grid;gap:.2rem;}
.premium-color-fields input[type="color"] {width:3.3rem;height:2.1rem;}
#localBackup {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr));gap:.75rem;align-items:start;}
.gr-account-section {min-width:0;margin:0;}
#workspaceTheme {order:-1;}
.gr-account-section h2 {margin-top:0;}
.gr-account-section input[type="file"] {max-width:100%;}
[data-premium] body > dialog:not(.gr-plan-print), [data-premium] #shell dialog {
  background:var(--p-surface)!important; color:var(--p-text)!important; border:1px solid var(--p-line)!important;
}
[data-premium] #grBack23 {color:var(--p-text);}
@media (max-width: 1079px) {
  [data-premium] #sidebar{width:auto;inset:auto;position:sticky;top:0;padding:.6rem!important;flex-wrap:wrap;}
  [data-premium] #sidebar:not(.open){display:none;}
  [data-premium] #sidebar.open{display:flex;}
  [data-premium] #sidebar .gr-home-logo {display:none!important;}
  [data-premium] #mobileNav {display:inline-flex!important; margin-bottom:.65rem;}
  [data-premium] #sidebar > small{display:none!important;}
  [data-premium] #gr-account:not([hidden]){margin-left:0; width:100%;}
  html[data-premium] #staffMain[data-view="analysis"] #individualLayout:not([hidden]) {grid-template-columns:minmax(0,2fr) minmax(13rem,1fr);}
}
@media (max-width: 760px) {
  html[data-premium] #staffMain[data-view="analysis"] #individualLayout:not([hidden]) {grid-template-columns:minmax(0,1fr);}
  html[data-premium] #staffMain #visual #court {height:clamp(20rem,56vh,32rem)!important;}
  [data-premium] #staffMain .filtertools {margin-left:0;}
  [data-premium] #homePage .homeworkspace {grid-template-columns:minmax(0,1fr)!important;}
}
@media print {
  html[data-premium] body {background:white;color:black;}
  html[data-premium] #sidebar {display:none!important;}
}
/* Capture and plan components retain usable styling in Classic as well. */
.gr-saved { margin-top:1rem; padding-top:.85rem; border-top:1px solid var(--workspace-border,#47717e); }
.gr-saved-form {display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); gap:.55rem .7rem; margin:.6rem 0;}
.gr-saved-form label, .gr-tactical-dialog form label {display:grid; gap:.3rem; min-width:0;}
.gr-saved-form :is(input,textarea), .gr-tactical-dialog :is(input,textarea,select) {width:100%; min-width:0;}
.gr-saved-toolbar,.gr-dialog-actions {display:flex; align-items:center; flex-wrap:wrap; gap:.38rem;}
.gr-saved-status:empty {display:none;}
.gr-saved-card,.gr-plan-diagram {border:1px solid var(--workspace-border,#47717e); padding:.65rem; border-radius:.65rem; min-width:0;}
.gr-saved-card {--capture-text-size:1rem;}
.gr-saved-card h3 {font-size:var(--capture-text-size);}
[data-premium] #shell .gr-saved-card h3 {font-size:var(--capture-text-size)!important;}
.gr-saved-card h3 {line-height:1.3; margin:.2rem 0 .4rem;}
.gr-saved-preview {display:block; width:100%; padding:0!important; overflow:hidden; cursor:zoom-in;}
.gr-saved-preview img {width:100%; aspect-ratio:3/2; object-fit:cover;}
.gr-saved-note {font-size:1.5rem; font-weight:600; line-height:1.4; white-space:pre-wrap; overflow-wrap:anywhere; margin:.65rem 0;}
.gr-capture-image-dialog {--capture-text-size:1.25rem;}
.gr-capture-image-dialog .gr-saved-note {
  font-size:clamp(1.75rem,4.5vw,2.375rem);
  margin:.25rem 0 .55rem;
  text-align:center;
}
.gr-query-captures {flex:1 0 100%;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));}
.gr-saved-toolbar details summary {cursor:pointer;}
.gr-saved-toolbar details button {margin-right:.25rem;}
.gr-tactical-dialog {width:min(36rem,calc(100% - 1.6rem)); color:#edf5fa; background:#142633; border:1px solid #47717e; border-radius:.85rem; padding:1rem;}
.gr-tactical-dialog::backdrop {background:#080e18ad;}
.gr-tactical-dialog form {display:grid; gap:.7rem;}
.gr-tactical-dialog .gr-diagram-full {display:block; max-width:100%; max-height:72vh; margin-bottom:.65rem;}
.gr-tactical-dialog:has(.gr-diagram-full) {width:fit-content; max-width:min(96vw,72rem);}
.gr-tactical-dialog:has(.gr-diagram-full) > h2 {font-size:var(--capture-text-size,1.08rem); line-height:1.3; margin:0 0 .5rem; overflow-wrap:anywhere;}
.gr-capture-image-dialog:has(.gr-diagram-full) > h2 {text-align:center; margin-bottom:.2rem;}
.gr-capture-image-dialog .gr-diagram-full {margin:0 auto;}
.gr-movement-editor {margin:0;min-width:0;padding:.65rem;}
.gr-movement-tools {display:flex;flex-wrap:wrap;gap:.35rem;}
.gr-movement-tools button[aria-pressed] {font-size:1.15rem;min-width:2.5rem;}
.gr-movement-tools button[aria-pressed="true"] {background:#9e1620;color:white;border-color:#ff5961;}
.gr-movement-editor p {margin:.45rem 0;font-size:.85rem;}
.gr-movement-editor canvas:not([hidden]) {display:block;width:auto;height:auto;max-width:100%;max-height:52vh;margin:auto;cursor:crosshair;}
.gr-plan-diagram {margin:.5rem 0;}
@media (max-width:640px) {.gr-saved-form {grid-template-columns:1fr;}}
html[data-premium] #filters #grAttackAdvanced {display:none!important;}
html[data-premium] #filters.gr-attack-simple:not(.gr-advanced-open) > label:has(#money),
html[data-premium] #filters.gr-attack-simple:not(.gr-advanced-open) .filtertools {display:flex!important;}
.gr-plan-original {margin-top:.65rem;}
.gr-plan-original summary {cursor:pointer;}
.gr-plan-original img {display:block;max-width:100%;margin-top:.55rem;border-radius:.5rem;}

/* Dashboard and scouting controls */
#homePage .home-intro {
  --cover-mobile-height:clamp(8.5rem,46vw,23rem);
  background-image:var(--cover-image,var(--cover-default))!important;
  --cover-height:clamp(15.5rem,25vw,25rem);
  background-size:var(--cover-width,min(58%,calc(2.2 * var(--cover-height)))) auto!important;
  background-position:var(--cover-position,right center)!important;
  background-repeat:no-repeat!important;
  min-height:var(--cover-height)!important;
  justify-content:center;
  text-shadow:0 2px 6px #081821;
}
#homePage .home-intro > div {max-width:33%;}
.cover-settings {
  position:absolute;
  right:.65rem;
  bottom:.65rem;
  z-index:4;
  color:#edf7f8;
}
.cover-settings > summary {
  display:grid;
  place-items:center;
  width:1.9rem;
  height:1.9rem;
  margin-left:auto;
  border:1px solid #d5e5e660;
  border-radius:.45rem;
  background:#10212bbe;
  cursor:pointer;
  line-height:1;
  list-style:none;
}
.cover-settings > summary::-webkit-details-marker {display:none;}
.cover-settings > summary:hover, .cover-settings > summary:focus-visible {background:#0b1c29;}
.cover-settings-body {
  position:absolute;
  right:0;
  bottom:2.3rem;
  box-sizing:border-box;
  width:min(16rem,calc(100vw - 3.8rem));
  padding:.75rem;
  background:#0d202b;
  color:#edf7f8;
  border:1px solid #90aeb8;
  border-radius:.6rem;
  box-shadow:0 .5rem 1.5rem #08182155;
}
.cover-settings-body label {display:grid;grid-template-columns:4.75rem minmax(0,1fr);align-items:center;gap:.45rem;font-size:.78rem;}
.cover-settings-body label:first-child {grid-template-columns:minmax(0,1fr);margin-bottom:.4rem;}
.cover-settings-body :is(input, small) {display:block;width:100%;min-width:0;}
.cover-settings-body [role="status"]:empty {display:none;}
@media (max-width:780px) {
  html[data-premium] #homePage .home-intro,
  #homePage .home-intro {
    padding:calc(var(--cover-mobile-height) + .75rem) 1rem 1rem!important;
    background-size:var(--cover-width,100%) auto!important;
    background-position:var(--cover-position,center top)!important;
  }
  #homePage .home-intro > div {max-width:100%;}
  .cover-settings {top:.65rem;bottom:auto;}
  .cover-settings-body {top:2.3rem;bottom:auto;}
}
.home-champion-quote:not([hidden]) {
  display:grid;
  grid-template-columns:minmax(0,1fr) max-content;
  align-items:baseline;
  gap:.35rem 1.35rem;
  margin:.8rem 0 1.05rem;
  padding:.8rem 1rem .75rem 1.2rem;
  border-inline-start:3px solid var(--workspace-accent,#baf375);
  border-radius:0 .55rem .55rem 0;
  background:var(--workspace-input,#182f3a);
}
.home-champion-quote blockquote {
  margin:0;
  font-size:clamp(1.05rem,2vw,1.35rem);
  font-style:italic;
  line-height:1.35;
}
.home-champion-quote a {
  color:var(--workspace-accent,#baf375);
  text-decoration-thickness:1px;
  text-underline-offset:.2em;
  font-size:.82rem;
}
@media (max-width:780px) {
  .home-champion-quote:not([hidden]) {grid-template-columns:1fr;}
}
#homePage .homeworkspace > .myteam {
  display:grid!important;
  grid-template-columns:minmax(0,1fr);
  align-content:start;
  gap:1.05rem;
}
.myteam-header {display:grid;gap:.5rem;}
#homePage .myteam #myTeamHeading {font-size:clamp(1.5rem,2.4vw,2rem)!important;font-style:normal;margin:0;}
#homePage .myteam .own-heading {min-height:0;margin:0;gap:.65rem;}
#homePage .myteam #myTeamName {font-size:1.02rem!important;font-style:normal;margin:0;}
#homePage .myteam :is(#ownCrest,#ownCrest .crest) {width:3.4rem!important;height:3.4rem!important;}
#homePage #ownCrest:empty {display:none;}
#homePage .myteam :is(#myOfficialMatches section,#myUpcomingMatches,#homeResults,#grLeaguePanel) {border-top:1px solid var(--workspace-border,#28434d);padding-top:.68rem;}
#homeResults:empty,
#myOfficialMatches[data-results="true"] + #homeResults,
#myOfficialMatches:not([hidden])[data-competition]:not([data-competition="regular"]) + #homeResults {display:none;}
#homePage .myteam h3 {font-size:1rem!important;margin:0 0 .45rem;}
#myOfficialMatches:not([hidden]), #myCompetitionFixtures {display:grid;gap:.65rem;}
.myteam-competitions {display:flex;flex-wrap:wrap;gap:.35rem;}
.myteam-competitions button {font-size:.77rem;min-height:2.1rem;padding:.3rem .55rem;}
.myteam-competitions button[aria-pressed="true"] {background:var(--workspace-accent,#baf375);color:#0e151a;font-weight:700;}
.myteam-competition-status {margin:0;color:var(--workspace-muted,#abc1cc);font-size:.83rem;}
.myteam-fixtures {display:grid;gap:.2rem;list-style:none;padding:0;margin:0;}
.myteam-fixtures li {
  display:grid;
  grid-template-columns:minmax(4.5rem,1fr) minmax(8.15rem,1.25fr);
  align-items:center;
  gap:.35rem;
  padding:.32rem .48rem;
  border-radius:.45rem;
  background:var(--workspace-input,#182f3a);
}
.myteam-fixtures small {font-size:.77rem;white-space:nowrap;}
.fixture-score {display:grid;grid-template-columns:2.3rem minmax(2.6rem,1fr) 2.3rem;align-items:center;justify-items:center;gap:.25rem;}
.fixture-score strong {font-variant-numeric:tabular-nums;white-space:nowrap;font-size:.9rem;}
.fixture-report-row {display:flex;align-items:center;justify-content:flex-end;gap:.3rem;min-width:0;}
.fixture-report {
  display:inline-grid;
  place-items:center;
  flex:none;
  width:1.75rem;
  min-height:1.55rem;
  color:var(--p-accent,var(--workspace-text));
  border:1px solid currentColor;
  border-radius:.25rem .4rem .25rem .25rem;
  font-size:.58rem;
  font-weight:800;
  text-decoration:none;
}
.fixture-report:hover {background:var(--p-raised,#233642);}
@media(max-width:480px) {
  .fixture-report-row {flex-wrap:wrap;}
}
#homePage .myteam .myteam-fixtures .crest {width:2.3rem!important;height:2.3rem!important;border-radius:.32rem;background:var(--workspace-surface,#e8f0f2);color:var(--workspace-text,#19333c);font-size:.63rem;}
.myteam-fixtures img {width:100%;height:100%;object-fit:contain;}
.myteam #grLeaguePanel summary {cursor:pointer;font-size:.86rem;}
.myteam-links {display:flex;flex-wrap:wrap;column-gap:.7rem;}
.myteam .myteam-more {justify-self:start;text-align:left;}
#gamePlanPlaceholder {padding:clamp(1rem,3vw,2rem);color:var(--workspace-muted,#a3b8c2);}
#staffMain[data-view="plans"] #individualLayout {display:none!important;}

#filters #combos {flex-basis:100%;width:100%;border-color:var(--workspace-border,#29404b);}
#filters #combos h3 {font-size:.95rem!important;font-style:normal;margin:.1rem 0 .55rem;}
.combo-grid {
  display:grid;
  grid-template-columns:repeat(var(--combo-columns,1), minmax(8rem,1fr));
  gap:.35rem;
  overflow-x:auto;
}
.combo-choice {max-width:24rem;}
html #staffMain #filters .combo-choice {
  display:flex;
  align-items:center;
  gap:.4rem;
  min-width:0;
  margin:0;
  padding:.35rem .5rem;
  border:1px solid var(--workspace-border,#29404b);
  border-radius:.45rem;
  background:var(--workspace-input,#142a35);
  cursor:pointer;
}
.combo-choice:has(input:checked) {outline:1px solid var(--workspace-accent,#74dce7);outline-offset:-1px;}
html #staffMain #filters .combo-choice label {display:flex;flex:1;align-items:center;margin:0;min-width:0;cursor:pointer;}
html #staffMain #filters .combo-choice button {flex:none;font-size:.92rem;padding:.15rem .35rem;min-height:1.7rem;cursor:pointer;}
.combo-grid strong {display:block;font-size:.82rem;}
.combo-grid small {display:block;font-size:.7rem;overflow-wrap:anywhere;}
html #shell button.portrait-edit {
  position:relative;
  display:grid;
  place-items:center;
  flex:none;
  width:clamp(3.2rem,7vw,5.2rem);
  aspect-ratio:4/5;
  min-height:0;
  margin:0;
  padding:0!important;
  border-radius:.65rem;
  overflow:hidden;
  color:var(--workspace-muted,#c0d2df);
  background:var(--workspace-input,#142a35);
  cursor:pointer;
}
html #shell .portrait-edit img.portrait {
  position:absolute;
  inset:0;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center 20%;
  margin:0!important;
  border:0!important;
}

/* Premium Light uses the existing mark in a single dark ink. */

html[data-premium="light"] #sidebar button.gr-home-logo,
html[data-premium="light"] #gr-form img {background:transparent!important;box-shadow:none!important;}
html[data-premium="light"] body #sidebar button.gr-home-logo img,
html[data-premium="light"] #gr-form img {
  filter:brightness(0) saturate(100%) invert(15%) sepia(15%) saturate(1700%) hue-rotate(121deg) brightness(94%) contrast(89%)!important;
}
html[data-premium="light"] :is(#homePage .homeworkspace>.panel,#shell #report .playerhead,#shell #serviceControls,#shell .overviewTop,#shell #clubDetail .hero,#shell #individualLayout,#shell .analysis22tiles button,body > dialog) {
  background:var(--p-surface)!important;
  color:var(--p-text)!important;
  border-color:var(--p-line)!important;
  box-shadow:none!important;
}
html[data-premium="light"] :is(#grStandings,#shell .lineupLibero,#shell #report .statstrip div,#shell #report table,#shell .lineupTop,#shell .service-chips,body > dialog fieldset) {
  background:var(--p-raised)!important;
  color:var(--p-text)!important;
  border-color:var(--p-line)!important;
}
html[data-premium="light"] #shell :is(#court,.serviceMiniCourt,#homePage .myteam,#grLeaguePanel a,#homePage .clubcard,.librarytable) {border-color:var(--p-line)!important;}
html[data-premium="light"] #shell :is(.profile22hero,.serverCard,.service-chips,#grStandings) :is(small,span,p,b,strong) {color:var(--p-text);}
html[data-premium="light"] #shell .home-intro {border-color:var(--p-line)!important;}
html[data-premium="light"] #homePage .cover-settings-body {
  background:var(--p-surface);
  color:var(--p-text);
  border-color:var(--p-line);
  text-shadow:none;
}
html[data-premium="light"] #homePage .cover-settings-body :is(label,small) {color:var(--p-text)!important;}
html[data-premium="light"] #shell .premium-fold > summary {color:var(--p-accent)!important;}

html[data-premium="light"] #homePage .homeworkspace :is(.clubcard button,.myteam-more),
html[data-premium="light"] #shell .premium-extra-players button {
  background:var(--p-input)!important;
  color:var(--p-text)!important;
  border-color:var(--p-line)!important;
}
html[data-premium="light"] #homePage #grLeaguePanel :is(summary,a) {color:var(--p-accent)!important;}

/* Service gallery and receive setup */
html #shell #serviceOverview .serviceGrid {
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
html #shell #serviceOverview .serverCard {
  align-items:stretch;
  gap:.55rem!important;
}
html #shell #serviceOverview .serverCard .service-open {
  display:block;
  width:100%!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  cursor:zoom-in;
}
html #shell #serviceOverview .serviceMiniCourt {
  width:100%;
  height:clamp(12.5rem,24vw,18rem);
  border-color:var(--workspace-border,#366274);
}
#staffMain[data-service-view="individual"] #layers label:has([data-layer="Ombre"]),
#staffMain[data-service-view="individual"] #visual :is(label:has(#shadeNear,#shadeDepth,#shadeOpacity,#sw,#sa),.premium-extra-players) {
  display:none!important;
}
.service-note {margin:.75rem 0;display:grid;gap:.35rem;}
.service-note label {font-weight:700;}
.service-note textarea {width:100%;min-width:0;resize:vertical;}
.service-note small:empty {display:none;}
@media (min-width:1080px) {
  html[data-premium] #staffMain[data-service-view="individual"] #individualLayout:not([hidden]) {
    grid-template-columns:minmax(0,3fr) minmax(13rem,1fr);
  }
}
@media (max-width:980px) {
  html #shell #serviceOverview .serviceGrid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
#staffMain[data-service-view="team"] #filters > label:has(#player),
#staffMain:is([data-service-view="team"],[data-service-view="individual"]) #filters :is(.premium-filter-group,label:has(#setter,#rotation,#receiver,#call,#phase)) {
  display:none!important;
}
@media (max-width:780px) {
  #homePage .homeworkspace > .myteam {order:-1;}
}

#captureLibraryGrid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,16rem),1fr));
  gap:.85rem;
  margin-top:.7rem;
}
#captureLibraryGrid .gr-saved-card h3 {text-align:center;margin:0 0 .2rem;}
#captureLibraryGrid .gr-saved-preview img {height:auto;aspect-ratio:auto;display:block;}
#captureLibraryGrid .gr-saved-note {font-size:1.875rem;text-align:center;margin:.25rem 0 .45rem;}
#captureLibraryStatus:empty {display:none;}
.gr-saved-delete {color:#ffd2d4!important;}
html[data-premium="light"] .gr-saved-delete {color:#8e3238!important;}
.gr-capture-selection {
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  margin-right:auto;
  cursor:pointer;
}
.gr-saved-card:has(.gr-capture-selection input:checked),
.gr-video-capture:has(.gr-capture-selection input:checked) {
  border-color:var(--workspace-accent,#74dce7);
}

.home-club-filters {display:flex;flex-wrap:wrap;gap:.45rem;}
#homePage .home-club-filters #homeSearch {flex:1 1 12rem;min-width:0;width:auto;}

/* Club marks retain contrast when the source image is transparent. */
#shell .gr-crest:has(img:not([hidden])),
#shell #logoView[src]:not([hidden]) {
  box-sizing:border-box;
  background:#fff!important;
  border:1px solid #dfe5e9!important;
  border-radius:.45rem!important;
  padding:.2rem!important;
}
#shell .gr-crest img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
body #sidebar button.gr-home-logo,
body #sidebar button.gr-home-logo img {
  transition:none!important;
  transform:none!important;
}
#captureFolders {display:flex;flex-wrap:wrap;gap:.32rem;margin:0 0 .65rem;}
#captureFolders button {
  display:inline-flex;align-items:center;gap:.32rem;
  min-height:2.35rem;max-width:100%;
  padding:.28rem .52rem;font-size:.81rem;line-height:1.2;
  padding-inline-start:calc(.52rem + var(--capture-folder-indent, 0rem));
}
#captureFolders button[aria-current="true"] {outline:1px solid var(--p-accent,var(--workspace-accent,#74dce7));outline-offset:-1px;}
#captureFolders svg {width:.82rem;height:.82rem;flex:none;}
#captureFolders button span {overflow-wrap:anywhere;min-width:0;}
#captureFolders button small {font-size:.72rem;flex:none;opacity:.8;}
.gr-capture-folder {display:block;margin:.35rem 0;color:var(--workspace-muted,#a3b8c2);overflow-wrap:anywhere;}

#homePage .home-intro > .cover-court {
  position:absolute;
  z-index:0;
  top:4%;
  left:14%;
  width:28.8%;
  height:94%;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  opacity:.46;
  pointer-events:none;
  mask-image:linear-gradient(90deg,transparent,#000 15% 80%,transparent 100%);
}
#homePage .home-intro > div {position:relative;z-index:1;}
@media (max-width:780px) {
  #homePage .home-intro > .cover-court {
    top:auto;
    left:auto;
    right:4%;
    bottom:.2rem;
    width:68.4%;
    height:clamp(9rem,32.4vw,14.4rem);
    max-height:calc(100% - var(--cover-mobile-height) - .85rem);
    opacity:.32;
    mask-image:linear-gradient(90deg,transparent,#000 37%);
  }
}

#grLanguagePicker {width:4.5rem;min-width:0;margin-right:auto;text-align:left;}
#homePage .myteam #grStandings {
  padding:.65rem .5rem;
  border-top:1px solid var(--workspace-border,#28434d);
  border-radius:.4rem;
}
#grStandingRows table {font-size:.8rem;margin-bottom:.3rem;}

.gr-local-video {width:min(56rem,calc(100% - 1.6rem));max-height:92dvh;overflow:auto;}
.gr-local-video > select {margin:.5rem 0;width:100%;}
.gr-local-video video {display:block;max-height:48dvh;background:#091018;}
.gr-video-source {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.35rem .65rem;margin:.5rem 0;}
.gr-video-source label {display:grid;gap:.22rem;min-width:0;}
.gr-video-source input {max-width:100%;}
.gr-video-source-title {grid-column:1 / -1;}
.gr-video-dialog-actions {display:flex;justify-content:flex-end;gap:.45rem;margin-top:.75rem;}
.gr-video-player {
  box-sizing:border-box;
  width:100%;
  max-height:none;
  padding:.65rem;
  margin:.6rem 0;
  border:1px solid var(--p-border,#35495b);
  border-radius:.75rem;
  background:var(--p-panel,#14232e);
  overflow:visible;
}
.gr-video-header {display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;}
.gr-video-header h3 {flex:1 0 100%;margin:0 0 .25rem;}
.gr-video-player :is(video,.gr-video-empty,button)[hidden] {display:none;}
.gr-video-screen,.gr-watch-preview {
  color:#e7f2fa;
  background:#091018;
  border:1px solid var(--p-border,#35495b);
  border-radius:.6rem;
  margin:.45rem 0;
  overflow:hidden;
}
.gr-video-review {container-type:inline-size;}
.gr-video-screen {position:relative;}
body:not(.gr-video-window) .gr-video-player:not(.gr-video-enlarged) .gr-video-screen {
  max-width:28rem;
  margin-inline:auto;
}
.gr-video-screen video {width:100%;aspect-ratio:16/9;object-fit:contain;}
.gr-video-player:not(.gr-video-enlarged) .gr-video-screen video {max-height:none;}
.gr-video-action-window {
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr);
  gap:.28rem;
  width:min(16.5rem,calc(100% - 1rem));
  margin:.5rem .5rem .5rem auto;
  padding:.35rem;
  border:1px solid #536a7b;
  border-radius:.5rem;
  color:#e7f2fa;
  background:#0b1824f2;
  font-size:.75rem;
}
.gr-video-action-window .gr-video-navigation > div {display:grid;grid-template-columns:1fr auto;gap:.45rem;min-width:0;}
.gr-video-action-window .gr-video-position {font-variant-numeric:tabular-nums;white-space:nowrap;}
.gr-video-navigation {display:flex;align-items:center;justify-content:space-between;gap:.45rem;}
.gr-video-action-window .gr-video-step {min-width:2.75rem;min-height:2.75rem;}
#shell .gr-video-navigation .gr-video-step:not(:disabled) {
  color:#11200d!important;
  background:#b9f574!important;
  font-size:1.1rem!important;
}
.gr-video-playlist {
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
}
.gr-video-playlist > [role="option"] {
  display:grid;
  grid-template-columns:2em minmax(0,1fr) max-content;
  gap:.3rem;
  padding:.24rem .35rem;
  border-radius:.22rem;
  cursor:pointer;
  font-variant-numeric:tabular-nums;
}
.gr-video-playlist > [role="option"] span {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.gr-video-playlist > [role="option"]:hover,
.gr-video-playlist > [aria-selected="true"] {background:#233642;}
.gr-video-playlist > [aria-selected="true"] {color:#b9f574;box-shadow:inset 3px 0 #b9f574;}
@container(min-width:42rem) {
  .gr-video-screen:has(video:not([hidden])) > .gr-video-action-window {
    position:absolute;
    right:.65rem;
    bottom:3.1rem;
    max-height:calc(100% - 3.8rem);
    margin:0;
  }
}
@media(hover:hover) and (pointer:fine) {
  @container(min-width:42rem) {
    .gr-video-action-window .gr-video-step {display:none;}
    .gr-video-action-window .gr-video-navigation > div {width:100%;}
  }
}
.gr-video-folder {margin:.5rem 0;}
.gr-video-folder .gr-video-folder {margin-inline-start:.85rem;}
.gr-video-sequence-list {max-height:13rem;overflow:auto;min-width:0;}
.gr-video-player .gr-video-sequence-list label {display:flex;align-items:flex-start;}
.gr-video-player .gr-video-sequence-list input {flex:none;}
.gr-video-empty,.gr-watch-preview {
  display:grid;
  justify-items:center;
  align-content:center;
  gap:.35rem;
  min-height:7rem;
  padding:.55rem;
  text-align:center;
  overflow-wrap:anywhere;
}
.gr-video-empty p {margin:0;}
.gr-watch-preview span {color:var(--p-accent,#b9f574);}
.gr-watch-action:has(> .gr-video-player) > .gr-watch-preview {display:none;}
.gr-video-player .gr-saved-toolbar {display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;}
.gr-video-player :is(small,option) {overflow-wrap:anywhere;}
.gr-video-player :is(select,input) {box-sizing:border-box;min-width:0;max-width:100%;}
.gr-video-player [role="status"]:empty {display:none;}
.gr-video-player > small {display:block;margin-top:.35rem;}
.gr-video-link-state:not([hidden]) {
  display:inline-flex;
  align-items:center;
  gap:.25rem;
  padding:.15rem .35rem;
  border:1px solid currentColor;
  border-radius:.4rem;
  white-space:nowrap;
  font-size:.78rem;
}
.gr-video-link-state:is([data-state="linked"],[data-state="calibrated"]) {color:#b9f574;}
html[data-premium="light"] .gr-video-link-state:is([data-state="linked"],[data-state="calibrated"]) {color:#286437;}
.gr-video-window {
  margin:0;
  color:#ecf5fb;
  background:#0c151d;
  color-scheme:dark;
}
.gr-video-window #shell {width:auto;margin:0 auto;padding:.65rem;max-width:none;}
.gr-video-window :is(button,input,select) {
  padding:.45rem .65rem;
  color:inherit;
  background:#203542;
  border:1px solid #456471;
  border-radius:.4rem;
}
.gr-video-window button:disabled {opacity:.55;}
.gr-video-player details {margin-top:.65rem;}
.gr-live-arrows {display:flex;align-items:center;flex-wrap:wrap;gap:.35rem;margin:.5rem 0;}
.gr-live-arrows[hidden] {display:none;}
.gr-placing-arrow {cursor:crosshair;touch-action:none;}
.gr-video-player-filters,.gr-video-tag-tools {display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:.5rem;}
.gr-video-player-filters label {display:grid;min-width:0;gap:.2rem;}
.gr-video-player-filters select {max-width:100%;}
.gr-video-tag-tools[hidden] {display:none;}
.gr-video-playlist [data-tagged] > :first-child {color:#b7ef72;}
.gr-video-tag-dialog label {display:grid;gap:.3rem;margin:.75rem 0;}
.gr-video-tag-tools button {padding:.25rem .5rem;min-height:1.75rem;}
body:not(.gr-video-window) .gr-video-player:not(.gr-video-enlarged) .gr-video-tag-tools {gap:.2rem;margin-bottom:.2rem;}
.gr-video-player details label {display:grid;gap:.25rem;margin:.5rem 0;}
.gr-video-player.gr-video-enlarged {
  position:fixed;
  z-index:200;
  inset:50% 1rem auto;
  transform:translateY(-50%);
  width:auto;
  max-width:76rem;
  max-height:calc(100dvh - 2rem);
  margin:0 auto;
  overflow:auto;
  overscroll-behavior:contain;
  box-shadow:0 0 0 100vmax #000b;
}
.gr-video-enlarged video {max-height:70dvh;}
.gr-video-enlarged .gr-video-empty {min-height:clamp(7rem,32vh,16rem);}
#videoCaptureList {container-type:inline-size;}
.gr-video-capture-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.65rem;
}
@container(min-width:36rem) {
  .gr-video-capture-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@container(min-width:52rem) {
  .gr-video-capture-grid {grid-template-columns:repeat(4,minmax(0,1fr));}
}
@container(min-width:68rem) {
  .gr-video-capture-grid {grid-template-columns:repeat(5,minmax(0,1fr));}
}
.gr-video-capture {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-width:0;
  gap:.35rem;
  padding:.45rem;
  border:1px solid var(--p-border,#35495b);
  border-radius:.5rem;
}
.gr-video-capture .gr-video-capture-open {
  display:grid;
  gap:.38rem;
  width:100%;
  min-width:0;
  padding:0;
  overflow:hidden;
  text-align:start;
}
.gr-video-capture-thumbnail {
  display:grid;
  width:100%;
  aspect-ratio:16/9;
  place-items:center;
  position:relative;
  overflow:hidden;
  background:#0b1824;
}
.gr-video-capture-thumbnail img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.gr-video-capture-thumbnail span {
  position:relative;
  padding:.25rem .4rem;
  border-radius:.35rem;
  background:#0b1824d9;
  color:#e7f2fa;
}
.gr-video-capture-title {padding:0 .4rem .38rem;font-weight:650;overflow-wrap:anywhere;}
.gr-video-capture-current {font-weight:700;color:#b9f574;overflow-wrap:anywhere;}
.club-video-captures .gr-club-video-player .gr-video-review {
  display:grid;
  grid-template-columns:minmax(0,1fr) clamp(14rem,30%,24rem);
  gap:.75rem;
  align-items:start;
}
body:not(.gr-video-window) .gr-club-video-player:not(.gr-video-enlarged) .gr-video-screen {max-width:none;}
.gr-club-video-player .gr-video-review > div {min-width:0;}
.gr-club-capture-browser {
  min-width:0;
  padding:.5rem;
  border:1px solid var(--p-border,#35495b);
  border-radius:.5rem;
}
.gr-club-capture-browser h4 {margin:0 0 .4rem;}
.gr-club-capture-list {max-height:14rem;overflow:auto;overscroll-behavior:contain;}
.gr-club-capture-list button {
  display:block;
  width:100%;
  margin-bottom:.2rem;
  text-align:start;
  white-space:normal;
  overflow-wrap:anywhere;
}
#shell .gr-club-capture-list button[aria-current="true"] {border-color:#b9f574;color:#b9f574;}
.gr-video-action-window:has(.gr-video-capture-current:not([hidden])) {grid-template-rows:auto auto auto minmax(0,1fr) auto;}
.gr-club-video-player .gr-video-playlist {max-height:16rem;}
@media(max-width:740px) {
  .club-video-captures .gr-club-video-player .gr-video-review {grid-template-columns:minmax(0,1fr);}
}
.gr-video-actions {margin:.2rem 0;}

.gr-video-window .gr-video-review {
  display:grid;
  grid-template-columns:minmax(0,1fr) clamp(16.5rem,24vw,27rem);
  align-items:start;
  gap:.75rem;
}
.gr-video-window .gr-video-review > div,.gr-video-sidebar {min-width:0;}
.gr-video-sidebar {
  display:grid;
  align-content:start;
  gap:.65rem;
  margin-top:.45rem;
}
.gr-video-sidebar .gr-video-action-window {width:100%;margin:0;box-sizing:border-box;}
.gr-video-sidebar .gr-video-action-window .gr-video-navigation > div {width:auto;flex:1;}
.gr-video-sidebar .gr-video-step {display:inline-flex;align-items:center;justify-content:center;}
.gr-video-sidebar .gr-video-action-match {display:block;color:#abc0ce;}
.gr-video-action-match {display:none;}
.gr-video-context {
  display:grid;
  gap:.6rem;
}
.gr-video-context > label {
  display:grid;
  gap:.3rem;
  color:#b9ec8a;
  font-weight:650;
  font-size:.86rem;
}
.gr-video-context .setter-card {
  background:#13242f;
  border:1px solid #35495b;
  border-radius:.6rem;
}
.gr-video-context .setter-court {min-height:0;}
.gr-video-context .setter-slot {
  box-sizing:border-box;
  min-block-size:0;
  font-size:.7rem;
}
.gr-video-context .setter-slot strong {font-size:clamp(.85rem,1.35vw,1.2rem);}
.gr-video-context .setter-slot img {height:20px;width:20px;}
.gr-video-diagram-note {margin:.3rem 0 0;font-size:.8rem;white-space:pre-wrap;overflow-wrap:anywhere;}
@media(max-width:740px) {
  .gr-video-window .gr-video-review {grid-template-columns:minmax(0,1fr);}
}

.gr-video-match-boundary {
  border-top:1px solid #536a7b;
  color:#bed7e5;
  padding:.28rem .4rem;
  font-size:.72rem;
  font-weight:650;
  overflow-wrap:anywhere;
}
.gr-video-match-boundary:first-child {border-top:0;}
.gr-video-court {
  display:grid;
  justify-items:center;
  gap:.25rem;
  margin:0;
  padding:.45rem;
  border:1px solid #35495b;
  border-radius:.6rem;
  background:#13242f;
}
.gr-video-court[hidden] {display:none;}
.gr-video-court canvas {display:block;width:100%;max-width:34rem;height:auto;aspect-ratio:6/5;border-radius:.35rem;}
.gr-video-court small {text-align:center;}


.gr-account-invitation {width:min(28rem, calc(100vw - 2rem));}
.gr-account-invitation form {display:grid;gap:.7rem;}
.gr-account-invitation label {display:grid;gap:.25rem;}
.gr-account-invitation p:empty, .gr-invitation-delivery:empty {display:none;}
.gr-invitation-delivery {display:flex;flex-wrap:wrap;align-items:center;gap:.55rem;margin:.5rem 0;}
.gr-invitation-delivery input {flex-basis:100%;}


.gr-club-provision {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:.9rem 0;}
.gr-club-provision label {display:grid;gap:.25rem;}
.gr-club-provision button {grid-column:1 / -1;}
.gr-club-accounts {display:grid;gap:.65rem;}
.gr-club-accounts section {border-top:1px solid var(--workspace-border,#28434d);padding-top:.65rem;}
.gr-club-accounts :is(h3,p) {margin:0 0 .25rem;}
.gr-club-plan-controls {display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.35rem;}
@media (max-width:570px) {
  .gr-club-provision {grid-template-columns:minmax(0,1fr);}
}


#staffMain[data-match-review] #clubOptions {grid-area:context!important;}
#staffMain[data-match-review] :is(#filters,#serviceControls) {display:none!important;}
#matchReview {grid-area:overview;min-width:0;}
#matchReview h2 {margin-top:0;}
.match-review-filters {display:flex;flex-wrap:wrap;gap:.65rem;align-items:end;}
.match-review-filters label:not([hidden]) {display:grid;gap:.25rem;min-width:0;}
.match-review-filters select {max-width:100%;}
#matchReview [data-review-launch] {margin-top:.65rem;}
#matchReview [role="status"]:empty {display:none;}
html[data-premium="workstation"] #staffMain[data-match-review] {
  grid-template-areas:"context" "nav" "overview"!important;
  grid-template-columns:minmax(0,1fr)!important;
}
@media (max-width:780px) {
  html[data-premium="workstation"] #staffMain[data-match-review] {grid-template-areas:"nav" "context" "overview"!important;}
}


#wellnessPage {max-width:76rem;margin-inline:auto;}
#wellnessPage [role="status"]:empty {display:none;}
.wellness-form {display:grid;gap:.8rem;max-width:48rem;}
.wellness-form fieldset {min-width:0;border:1px solid var(--workspace-border,#28434d);border-radius:.5rem;}
.wellness-form fieldset > legend {padding:0 .25rem;font-weight:650;}
.wellness-scale {display:flex;flex-wrap:wrap;gap:.35rem;}
.wellness-scale label {position:relative;cursor:pointer;margin:0;}
.wellness-scale input {position:absolute;opacity:0;inset:auto;width:1px;height:1px;}
.wellness-scale span {display:grid;place-items:center;min-height:44px;min-width:44px;border:1px solid var(--workspace-border,#28434d);border-radius:.4rem;}
.wellness-scale input:checked + span {background:var(--workspace-accent,#baf375);color:#101820;font-weight:700;}
.wellness-scale input:focus-visible + span {outline:2px solid currentColor;outline-offset:2px;}
.wellness-scale-ends {display:flex;justify-content:space-between;gap:.45rem;margin-top:.35rem;font-size:.81rem;}
.wellness-form textarea {display:block;width:100%;}
.wellness-filters {display:flex;align-items:end;flex-wrap:wrap;gap:.6rem;margin:.75rem 0;}
.wellness-filters label {display:grid;gap:.25rem;}


#planningPage {max-width:76rem;margin-inline:auto;}
#teamPlanningStatus:empty {display:none;}
#teamPlanningContent iframe {
  display:block;
  width:100%;
  height:clamp(34rem,75vh,52rem);
  margin-top:.75rem;
  border:0;
  background:#fff;
  border-radius:.45rem;
}
#sidebar :is(#openPlanning,#openWellness)[hidden] {display:none!important;}
html[data-premium="workstation"] #sidebar #openPlanning .navicon::before {content:"▦";}

.gr-club-diagram-window {background:#0b1824;}
.gr-club-diagram-window .gr-diagram-full {object-fit:contain;}
.gr-video-selection-tools select {max-width:100%;}

.wellness-import {margin:.75rem 0;}
.wellness-import > label {display:grid;gap:.3rem;justify-content:start;margin-top:.7rem;}
.wellness-import select {max-width:18rem;width:100%;}
.wellness-import button + button {margin-inline-start:.5rem;}

#wellnessPage:has(.wellness-report) {max-width:96rem;}
.wellness-report h3 {margin:.8rem 0 .4rem;}
.wellness-response-filters {padding:.65rem .75rem;border:1px solid var(--p-line,#344957);border-radius:.7rem;background:var(--p-rail,#111d27);}
.wellness-response-filters select {max-width:min(100%,19rem);}
.wellness-response-filters .wellness-remarks-filter {display:flex;align-items:center;gap:.45rem;min-height:44px;margin-inline-start:auto;}
.wellness-overview {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;margin:.75rem 0;}
.wellness-overview > div {display:flex;flex-direction:column;justify-content:space-between;gap:.18rem;padding:.5rem .7rem;border:1px solid var(--p-line,#344957);border-radius:.65rem;}
.wellness-overview span {color:var(--p-muted,#aabdc8);font-size:.875rem;}
.wellness-overview strong {font-variant-numeric:tabular-nums;font-size:1.55rem;line-height:1.15;}
.wellness-table {max-height:70vh;overflow:auto;border:1px solid var(--p-line,#344957);border-radius:.7rem;}
.wellness-table > p {padding:.65rem .8rem;}
.wellness-table table {width:100%;border-collapse:separate;border-spacing:0;font-size:.88rem;}
.wellness-table th {position:sticky;top:0;background:var(--p-raised,#1b2c38);z-index:1;}
.wellness-table :is(td,th) {padding:.48rem .35rem;vertical-align:middle;}
.wellness-table td {min-width:0;}
.wellness-table .wellness-date {white-space:nowrap;font-variant-numeric:tabular-nums;}
.wellness-table .wellness-player {min-width:8rem;font-weight:650;}
.wellness-table .wellness-metric {text-align:center;}
.wellness-score {display:inline-flex;align-items:center;justify-content:center;min-width:2rem;min-height:1.85rem;padding:.12rem .25rem;background:var(--p-raised,#1b2c38);border-radius:.38rem;font-weight:650;font-variant-numeric:tabular-nums;}
.wellness-score-missing {background:transparent;color:var(--p-muted,#aabdc8);}
.wellness-table .wellness-remark {min-width:9rem;max-width:23rem;white-space:pre-wrap;overflow-wrap:anywhere;}
.wellness-mobile-label {display:none;}
.wellness-visually-hidden {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
@media (max-width:1000px) {
  .wellness-response-filters .wellness-remarks-filter {margin-inline-start:0;}
  .wellness-table {max-height:none;overflow:visible;border:0;}
  .wellness-table :is(table,tbody) {display:block;}
  .wellness-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
  .wellness-table tbody {display:grid;gap:.55rem;}
  .wellness-table tbody tr {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.45rem;padding:.65rem;border:1px solid var(--p-line,#344957);border-radius:.7rem;background:var(--p-surface,#14232e);}
  .wellness-table tbody td {width:auto;min-width:0;padding:0;border:0;}
  .wellness-table .wellness-date {grid-column:3 / -1;grid-row:1;text-align:right;color:var(--p-muted,#aabdc8);}
  .wellness-table .wellness-player {grid-column:1 / 3;grid-row:1;overflow-wrap:anywhere;}
  .wellness-table .wellness-metric {display:grid;gap:.15rem;justify-items:center;}
  .wellness-table .wellness-remark {grid-column:1 / -1;max-width:none;padding-top:.45rem;border-top:1px solid var(--p-line,#344957);}
  .wellness-table .wellness-no-remark {display:none;}
  .wellness-mobile-label {display:block;white-space:normal;color:var(--p-muted,#aabdc8);font-size:.8rem;}
}
