/* Player-facing responsive presentation. Decorative local artwork; no remote requests. */
body[data-home="app"],body[data-hub="player"],body[data-hub="organiser"]{--rp-bg:#0B111E;--rp-panel:#121B2D;--rp-lime:#D4FF33;--rp-pink:#FF2E93;--rp-blue:#51B7FF;--rp-line:rgba(255,255,255,.15);background:var(--rp-bg);color:#fff}
body[data-hub="player"] .site-header,body[data-home="app"] .site-header{background:#0B111E}
body[data-hub="player"] .app-head h1{color:#fff}
body[data-hub="player"] .find-card{background:var(--rp-panel);border-color:var(--rp-line)}
body[data-hub="player"] .find-card[data-look="pink"]{border-color:var(--rp-pink)}
body[data-hub="player"] .find-day{color:var(--rp-blue)}
body[data-hub="player"] .gh-cta,body[data-hub="player"] .header-cta{background:var(--rp-lime);color:var(--rp-bg)}
body[data-hub="player"] .hub-bar a[aria-current="page"]{color:var(--rp-lime)}
body[data-hub="player"] .find-card-host-name,body[data-hub="player"] .gh-row-main strong,body[data-hub="player"] .gh-row-main span{white-space:normal;overflow-wrap:anywhere}
body[data-home="app"] .format-card{border-inline-start:4px solid var(--rp-pink)}
body[data-home="app"] .format-cards li:nth-child(2) .format-card{border-inline-start-color:var(--rp-blue)}
body[data-home="app"] .join-bar button{background:var(--rp-lime);color:var(--rp-bg)}
@media(min-width:760px){
 body[data-home="app"] .app-shell{max-width:760px;padding:40px 24px}
 body[data-home="app"] .format-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-home="app"] .format-card{height:100%;box-sizing:border-box}
}
@media(min-width:1024px){
 body[data-home="app"] .site-header>.wrap,body[data-home="app"] .site-footer>.wrap,body[data-hub="player"] .site-header>.wrap,body[data-hub="player"] .site-footer>.wrap,body[data-hub="player"] .player-app{width:100%;max-width:var(--rp-width);box-sizing:border-box;padding-inline:var(--rp-gutter)}
 html[data-signed="in"]:not([data-organising="no"]) body[data-home="app"]{padding-bottom:0}
 html[data-signed="in"]:not([data-organising="no"]) body[data-home="app"] .app-tabs{display:none}
 html[data-signed="in"]:not([data-organising="no"]) body[data-home="app"] .cookie-banner{bottom:0}
 body[data-home="app"] .app-home{background:linear-gradient(90deg,#0B111E 35%,rgba(11,17,30,.65)),url("brand/padel-court-art.svg") right top/auto 560px no-repeat,#0B111E}
 body[data-home="app"] .app-shell{max-width:var(--rp-width);padding:64px var(--rp-gutter) 48px;box-sizing:border-box}
 body[data-home="app"] .launch h1{font-size:clamp(44px,5vw,72px)}
 body[data-home="app"] .launch-help{max-width:620px;font-size:18px}
 body[data-home="app"] .format-cards{gap:24px;margin-top:32px}
 body[data-home="app"] .format-card{min-height:180px;padding:28px;background:linear-gradient(90deg,#121B2D 40%,rgba(18,27,45,.82)),url("brand/padel-court-art.svg") right center/cover}
 body[data-home="app"] .fc-title{font-size:34px}
 body[data-home="app"] .fc-sub{font-size:16px}
 body[data-home="app"] .join-wrap{margin-top:24px}
 body[data-home="app"] .join-bar{padding:16px 20px;background:#121B2D}
 body[data-home="app"] .join-bar label{font-size:18px}
 body[data-home="app"] .join-bar input{width:180px}
 body[data-home="app"] .tool-list{grid-template-columns:repeat(3,minmax(0,1fr))}
 body[data-hub="player"] .player-app{padding-top:28px;padding-bottom:40px}
 body[data-hub="player"] .app-head{padding:30px 28px;margin:0 0 24px;border-radius:18px;background:linear-gradient(90deg,#121B2D 40%,rgba(18,27,45,.78)),url("brand/padel-court-art.svg") right center/auto 100% no-repeat,#121B2D;border:1px solid var(--rp-line)}
 body[data-hub="player"] .app-head h1{font-size:clamp(36px,4vw,56px)}
 body[data-hub="player"] .app-head p{max-width:65ch;color:#D5DCE6}
 body[data-hub="player"] .find-list{display:flex;flex-direction:column;gap:14px;align-items:stretch}
 body[data-hub="player"] .find-card{display:grid;grid-template-columns:minmax(110px,17%) minmax(0,1fr) minmax(180px,25%);grid-template-rows:auto auto;gap:12px 24px;padding:18px;align-items:center}
 body[data-hub="player"] .find-card::before{content:"";grid-column:1;grid-row:1/3;align-self:stretch;min-height:126px;border-radius:12px;background:url("brand/padel-court-art.svg") center/cover}
 body[data-hub="player"] .find-card-top{grid-column:2;grid-row:1;margin:0;min-width:0}
 body[data-hub="player"] .find-main{grid-column:2;grid-row:2}
 body[data-hub="player"] .find-card h3{font-size:24px;display:block;overflow-wrap:anywhere}
 body[data-hub="player"] .find-actions{grid-column:3;grid-row:1/3;flex-direction:column;align-items:stretch;border-inline-start:1px solid var(--rp-line);padding-inline-start:20px}
 body[data-hub="player"] .find-cta{min-height:44px}
 body[data-hub="player"] .gh-head{padding:20px}
 body[data-hub="player"] .gh-tabs{display:flex;width:fit-content;max-width:100%;flex-wrap:wrap}
 body[data-hub="player"] .gh-tab{padding-inline:28px}
 body[data-hub="player"] .gh-row{min-height:88px;padding:14px 20px;gap:20px}
 body[data-hub="player"] .gh-row-main strong{font-size:19px}
 body[data-hub="player"] .gh-row-main span{font-size:15px}
 body[data-hub="player"] .gh-date{width:64px;min-height:56px}
}
@media(max-width:1023.98px){
 body[data-hub="player"] .hub-bar{padding-bottom:env(safe-area-inset-bottom)}
 body[data-home="app"] .format-card{min-height:96px}
}
@media(max-width:359px){body[data-home="app"] .format-card{padding:14px;gap:10px}body[data-home="app"] .fc-title{font-size:22px}}

/* Shared desktop shell: same navigation origin and content gutter on all hub pages. */
body[data-hub="organiser"] .site-header{background:var(--rp-bg)}
body[data-hub="organiser"] .guide-shell{--gs-bg:var(--rp-bg);--gs-surface:var(--rp-panel);--gs-text:#D5DCE6;--gs-muted:#B9C4D2;--gs-blue:var(--rp-blue);background:var(--rp-bg)}
body[data-hub="organiser"] #acct-root{--org-card:var(--rp-panel);--org-line:var(--rp-line);--org-muted:#B9C4D2}
body[data-hub="organiser"] #acct-root .acct-card,body[data-hub="organiser"] #acct-root .ev-card,body[data-hub="organiser"] #acct-root .you-card,body[data-hub="player"] #me .pp-card{background:var(--rp-panel);border:1px solid var(--rp-line);border-radius:18px}
body[data-hub="organiser"] #acct-root .ev-card{border-inline-start:3px solid var(--rp-blue)}
body[data-hub="organiser"] #acct-root .acct-btn:not(.ghost):not(.danger),body[data-hub="organiser"] .header-cta,body[data-hub="player"] #me .pp-btn:not(.ghost):not(.danger){background:var(--rp-lime);color:var(--rp-bg)}
body[data-hub="organiser"] #acct-root .acct-btn:focus-visible,body[data-hub="player"] #me .pp-btn:focus-visible{outline:3px solid #fff;outline-offset:2px}
body[data-hub="organiser"] #acct-root .ev-form.ev-app,body[data-hub="organiser"] #acct-root .ev-app-foot{background:var(--rp-bg)}
body[data-hub="organiser"] #acct-root .ev-app-row{background:var(--rp-panel)}
body[data-hub="organiser"] #acct-root .acct-tile{background:var(--rp-panel);border-top:3px solid var(--rp-blue)}
body[data-hub="organiser"] #acct-root .acct-tile:nth-child(2){border-top-color:var(--rp-pink)}
body[data-hub="organiser"] #acct-root .acct-tile:nth-child(3){border-top-color:var(--rp-lime)}
body[data-hub="organiser"] #acct-root .ev-titlebar{flex-wrap:wrap}
body[data-hub="organiser"] .hub-bar a[aria-current="page"]{color:var(--rp-lime)}
.rp-login-art{display:none}
@media(min-width:1024px){
 html{scrollbar-gutter:stable}
 body:is([data-home="app"],[data-hub="player"],[data-hub="organiser"]) .site-header>.wrap,body:is([data-home="app"],[data-hub="player"],[data-hub="organiser"]) .site-footer>.wrap,body[data-hub="organiser"] .acct-panes,body[data-hub="organiser"] .org-hero>.wrap{width:100%;max-width:1440px;margin-inline:auto;padding-inline:clamp(24px,3vw,56px);box-sizing:border-box}
 .rp-primary-nav a:hover,.rp-primary-nav a[aria-current="page"]{color:var(--rp-lime);box-shadow:inset 0 -3px var(--rp-lime)}
 .rp-primary-nav a:focus-visible{outline:3px solid #fff;outline-offset:2px}
 body[data-hub="organiser"] .guide-shell{padding:28px 0 48px}
 body[data-hub="organiser"] #acct-root .ev-home-head,body[data-hub="organiser"] #acct-root .ev-titlebar{padding:26px 28px;border:1px solid var(--rp-line);border-radius:18px;background:linear-gradient(90deg,#121B2D 45%,rgba(18,27,45,.85)),url("brand/padel-court-art.svg") right center/auto 100% no-repeat,#121B2D;margin-bottom:24px}
 body[data-hub="organiser"] #acct-root .ev-home-head h1,body[data-hub="organiser"] #acct-root .ev-titlebar h1{font-size:clamp(32px,3.5vw,48px)}
 body[data-hub="organiser"] #acct-root .acct-card{padding:26px}
 body[data-hub="organiser"] #acct-root .ev-list{gap:16px}
 body[data-hub="organiser"] #acct-root .ev-card{padding:24px}
 body[data-hub="organiser"] #acct-root .acct-tiles{gap:16px}
 body[data-hub="organiser"] #acct-root .acct-tile{padding:20px}
 body[data-hub="organiser"] #acct-root .you{max-width:none}
 body[data-hub="player"] #me [data-player-profile="me"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
 body[data-hub="player"] #me [data-player-profile="me"]>.pp-card{margin:0;min-width:0;padding:24px}
 body[data-hub="player"] #me .pp-privacy{margin-top:16px;padding:24px}
 body[data-page="login"] .login-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,480px);gap:20px 40px;max-width:1440px;width:100%;box-sizing:border-box;padding:48px clamp(24px,3vw,56px)}
 body[data-page="login"] .rp-login-art{display:block;grid-column:1;grid-row:1/3;min-height:420px;border-radius:22px;background:url("brand/padel-court-art.svg") center/cover;border:1px solid var(--rp-line)}
 body[data-page="login"] .login-card{grid-column:2;padding:32px;align-self:start}
 body[data-page="login"] .login-alt{grid-column:2;margin:0}
}
@media(max-width:1023.98px){
 body[data-hub="organiser"] .guide-shell{padding-top:18px}
 body[data-page="login"] .login-shell{max-width:480px}
}

/* Player performance dashboard — existing data and entitlement rules. */
[data-player-profile="activity"] .rp-insights-hero{padding:24px;border-radius:20px;background:linear-gradient(90deg,#121B2D 30%,rgba(18,27,45,.88)),url("brand/padel-court-art.svg") right center/auto 100% no-repeat,#121B2D;border:1px solid #344359}
.rp-insights-hero h1{margin:0;color:#fff;font-size:clamp(30px,4vw,48px)}
.rp-insights-hero p{margin:8px 0 0;color:#D5DCE6;max-width:42ch}
.rp-insights-kicker{color:#51B7FF;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
[data-player-profile] .pp-progress{background:#121B2D;border:1px solid #344359;border-radius:20px;padding:clamp(14px,2vw,28px)}
[data-player-profile] .ppx-hero-tile,[data-player-profile] .ppx-chem-card,[data-player-profile] .ppx-chart-card{background:#0B131F;border:1px solid #344359;border-radius:16px}
[data-player-profile] .ppx-hero-tile{padding:16px 8px}
[data-player-profile] .ppx-chem-card{border-top:3px solid #51B7FF;padding:16px}
[data-player-profile] .ppx-chem-card:nth-child(even){border-top-color:#FF2E93}
[data-player-profile] .pp-progress .pp-sub{font-family:'Bricolage Grotesque',sans-serif;font-size:20px;color:#fff;margin:24px 0 12px}
[data-player-profile] .ppx-chart-card{padding:16px}
[data-player-profile] .ppx-chart{width:100%;max-height:320px}
[data-player-profile] .pp-progress select{min-height:44px;max-width:100%}
[data-player-profile] .rp-insights-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}
.rp-insights-totals .act-tile{background:#121B2D;border:1px solid #344359;border-top:3px solid #51B7FF;border-radius:14px;padding:16px}
.rp-insights-totals .act-tile:nth-child(2){border-top-color:#D4FF33}
.rp-insights-totals .act-tile:nth-child(3){border-top-color:#FF2E93}
.rp-insights-totals .act-tile strong{font-size:32px;color:#fff}
@media(min-width:1024px){
 [data-player-profile] .pp-progress-out .ppx-hero{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
 [data-player-profile] .pp-progress-out .ppx-chem-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 [data-player-profile] .rp-insights-totals{grid-template-columns:repeat(3,minmax(0,1fr))}
 [data-player-profile] .ppx-games{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
}

/* Performance-first insights: natural reading order on mobile, dashboard on desktop. */
[data-player-profile] .rp-insight-panel{min-width:0;background:#0B131F;border:1px solid #344359;border-radius:18px;padding:clamp(14px,2vw,24px);margin:16px 0}
[data-player-profile] .rp-insight-panel>.pp-sub:first-child{margin-top:0}
[data-player-profile] .rp-performance{border-top:3px solid #D4FF33}
[data-player-profile] .rp-chemistry{border-top:3px solid #51B7FF}
[data-player-profile] .rp-period-note{color:#B9C4D2;font-size:13px;margin:8px 0 16px}
[data-player-profile] .ppx-hero-tile:first-child .ppx-ring svg{visibility:hidden}
[data-player-profile] .ppx-hero-tile .ppx-hero-label{white-space:normal;text-align:center;line-height:1.4}
[data-player-profile] .rp-performance .ppx-chart-card{border:0;padding:8px 0;background:transparent}
[data-player-profile] .ppx-games button:focus-visible,[data-player-profile] .pp-progress select:focus-visible{outline:3px solid #51B7FF;outline-offset:3px}
@media(min-width:1024px){
 [data-player-profile] .pp-progress-out{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px;align-items:start}
 [data-player-profile] .pp-progress-out>*{grid-column:1/-1;min-width:0}
 [data-player-profile] .pp-progress-out>.rp-performance{grid-column:1;margin:0}
 [data-player-profile] .pp-progress-out>.rp-chemistry{grid-column:2;margin:0}
 [data-player-profile] .rp-chemistry .ppx-chem-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 [data-player-profile] .rp-performance .ppx-chart{max-height:none}
}

/* Shared sports shell: one desktop navigation, one content measure and title scale. */
body{--rp-bg:#0B111E;--rp-panel:#121B2D;--rp-lime:#D4FF33;--rp-blue:#51B7FF;--rp-pink:#FF2E93;--rp-line:#344359;--rp-width:1440px;--rp-gutter:clamp(16px,3vw,56px);--rp-title:clamp(28px,2.5vw,38px)}
.site-main :is(.app-head,.rp-insights-hero,.ev-home-head,.ev-titlebar,.page-hero,.pro-hero) h1,.site-main .content-title{font:800 var(--rp-title)/1.08 'Bricolage Grotesque',sans-serif;letter-spacing:-.025em;overflow-wrap:anywhere}
body[data-hub] .site-main :is(.app-head,.rp-insights-hero){padding:clamp(16px,2vw,24px);margin:0 0 20px;border:1px solid var(--rp-line);border-radius:18px;background:linear-gradient(90deg,#121B2D 48%,rgba(18,27,45,.45)),url("brand/padel-court-art.svg") right center/auto 100% no-repeat,#121B2D}
.rp-results-link{border:1px solid var(--rp-blue);border-radius:14px;padding:14px;margin:12px 0;color:#BCE5FF;min-height:44px;box-sizing:border-box}
.site-header .rp-primary-nav a.rp-insights-link,.hub-bar a.rp-insights-link{color:var(--rp-lime);font-weight:800}
html[data-signed="in"] body .site-header .hub-mode-pill{background:#51B7FF;color:#0B111E;border-color:#8ED4FF}
@media(min-width:1024px){
 html body .site-header:has(.rp-primary-nav) .logo-img{max-width:122px;object-fit:contain;object-position:left center}
 html body :is(.site-footer>.wrap,.player-app,.acct-panes,.club-wrap,.pro-shell,.page-hero>.wrap,.guide-shell>.wrap){width:100%;max-width:var(--rp-width);margin-inline:auto;padding-inline:var(--rp-gutter);box-sizing:border-box}
 body[data-hub] .book-shell{max-width:840px}
 body[data-hub] :is(.pp-card,.gh-head,.gh-panel,.club-card){border-radius:18px}
}
@media(max-width:1023.98px){
 .hub-bar .hub-list[data-hub-list="player"] a{font-size:11px}
 .hub-bar .hub-list[data-hub-list="player"] .rp-insights-link{background:rgba(212,255,51,.08);border-radius:10px}
}
@media(prefers-reduced-motion:reduce){.site-header a,.hub-bar a,.rp-results-link{transition:none}}


/* Approved two-row sports shell. Each control has its own grid cell. */
@media(min-width:1024px){
 html body .site-header:has(.rp-primary-nav)>.wrap{display:grid;grid-template-columns:minmax(132px,1fr) auto auto auto;grid-template-rows:auto auto;align-items:center;gap:12px 14px;width:100%;max-width:var(--rp-width);margin:auto;padding:12px var(--rp-gutter);min-height:0;box-sizing:border-box}
 html body .site-header:has(.rp-primary-nav) .logo{grid-area:1/1;width:132px;margin:0;justify-self:start}
 html body .site-header:has(.rp-primary-nav) .switch-mode{grid-area:1/3;margin:0;white-space:nowrap;font:700 14px/1.2 'DM Sans',sans-serif}
 html body .site-header:has(.rp-primary-nav) :is(.hub-avatar,.header-login){grid-area:1/4;justify-self:end;margin:0!important;min-width:44px}
 html body .site-header:has(.rp-primary-nav) .header-login{min-width:96px}
 html[data-signed="in"] body .site-header:has(.rp-primary-nav) .hub-mode-pill{grid-area:1/2;justify-self:end;margin:0;width:max-content;padding:6px 12px;background:#51B7FF;color:#0B111E}
 html body .site-header:has(.rp-primary-nav) .rp-primary-nav{display:flex;grid-area:2/1/3/4;align-items:center;justify-content:flex-start;gap:8px;min-width:0;flex-wrap:wrap;border-top:1px solid var(--rp-line);padding-top:12px}
 html body .site-header .rp-primary-nav a{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 12px;font:700 14px/1.2 'DM Sans',sans-serif;color:#D5DCE6;background:none;border-radius:10px;text-decoration:none;box-shadow:none}
 html body .site-header .rp-primary-nav a.rp-insights-link{color:#D4FF33}
 html body .site-header .rp-primary-nav a[aria-current="page"]{color:#fff;background:#253249;box-shadow:none}
 html body .site-header:has(.rp-primary-nav) .hub-links{display:none!important}
 html body .site-header:has(.rp-primary-nav) .header-cta{grid-area:2/4;justify-self:end;margin:0!important;min-height:44px;white-space:nowrap;align-self:end}
 body[data-hub="player"] .player-app{padding-top:12px}
 body[data-hub="player"] .site-main .app-head h1,body[data-hub="organiser"] #acct-root :is(.ev-home-head,.ev-titlebar) h1{font-size:var(--rp-title)}
}
.site-main :is(.app-head,.rp-insights-hero) h1{margin:0 0 8px}
.rp-section-kicker{display:block;color:#51B7FF;font:800 12px/1.4 'DM Sans',sans-serif;letter-spacing:.06em;text-transform:uppercase;margin-bottom:8px}
body[data-hub] .site-main :is(.app-head,.rp-insights-hero){background:linear-gradient(90deg,#121B2D 65%,rgba(18,27,45,.12)),url("brand/padel-court-art.svg") right center/auto 100% no-repeat,#121B2D}
@media(max-width:600px){body[data-hub] .site-main :is(.app-head,.rp-insights-hero){background:linear-gradient(90deg,#121B2D 60%,rgba(18,27,45,.85)),url("brand/padel-court-art.svg") right center/auto 100% no-repeat,#121B2D}}

/* Compact shared phone header; desktop menu remains desktop-only. */
@media(max-width:1023.98px){
 html body .site-header .rp-primary-nav{display:none!important}
 html body .site-header:has(.rp-primary-nav)>.wrap{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;width:100%;max-width:100%;min-height:64px;padding:8px 12px;box-sizing:border-box}
 html body .site-header:has(.rp-primary-nav) .logo{flex:1 1 0;min-width:0;width:auto;margin:0;padding:0}
 html body .site-header:has(.rp-primary-nav) .logo-img{max-width:100%;object-fit:contain;object-position:left center}
 html body .site-header:has(.rp-primary-nav) .hub-mode-pill{flex:none;margin:0;padding:0 7px}
 html body .site-header:has(.rp-primary-nav) .switch-mode{flex:none;width:44px;min-height:44px;justify-content:center;padding:0;margin:0;box-sizing:border-box}
 html body .site-header .switch-mode .sw-short,html body .site-header .switch-mode .sw-long{display:none}
 html body .site-header .switch-mode .sw-swap{display:inline;font-size:22px;opacity:1}
 html body .site-header:has(.rp-primary-nav) :is(.hub-avatar,.header-login){flex:none;margin:0!important}
 html body .site-header:has(.rp-primary-nav) :is(.hub-links,.header-cta){display:none!important}
 .hub-bar .hub-list[data-hub-list="player"] .rp-insights-link:not([aria-current="page"]){background:transparent;color:#B9C4D2}
 .club-cta-row{flex-wrap:wrap;gap:8px}
 .club-cta-row .pp-btn{flex:1 1 auto;min-width:0;min-height:44px;white-space:normal}
}
body[data-hub] :is(.app-head,.rp-insights-hero,.ev-home-head,.ev-titlebar) h1{font:800 var(--rp-title)/1.08 'Bricolage Grotesque',sans-serif;letter-spacing:-.025em;overflow-wrap:anywhere}

/* Desktop layout contract: Quick Play is the reference for all standard page shells.
   Keep internal forms and specialist scoring layouts independent. */
@media(min-width:1024px){
 html[data-hub]{--hub-w:1440px}
 html body :is(.site-header>.wrap,.site-footer>.wrap,.site-main>.wrap,.site-main .app-shell,.site-main .player-app,.site-main .acct-panes,.site-main .club-wrap,.site-main .pro-shell,.site-main .page-hero>.wrap,.site-main .guide-shell>.wrap){width:100%;max-width:var(--rp-width);margin-inline:auto;padding-inline:var(--rp-gutter);box-sizing:border-box}
 html body[data-hub="player"] .player-app :is(.app-pane,[data-player-profile="games"],[data-player-profile="activity"],.gh){width:100%;max-width:none;min-width:0;box-sizing:border-box}
}

/* Readable selected and unselected player tabs, independent of club look. */
html body [data-player-profile="activity"] .gh-tabs .gh-tab{background:transparent;color:#D5DCE6}
html body [data-player-profile="activity"] .gh-tabs .gh-tab.on,html body [data-player-profile="activity"] .gh-tabs .gh-tab[aria-selected="true"]{background:#D4FF33;color:#0B111E}
.ev-followers .ev-invite-player{display:grid;gap:12px;padding:18px;margin:12px 0 20px;border:1px solid #344359;border-radius:16px;background:#121B2D;color:#fff}
.ev-invite-player label{display:grid;gap:6px;font-weight:700;min-width:0}
.ev-invite-player input{width:100%;min-width:0;box-sizing:border-box;min-height:44px;padding:10px 12px;border:1px solid #536174;border-radius:10px;background:#0B111E;color:#fff;font:inherit}
.ev-invite-player .acct-btn{min-height:44px;background:#D4FF33;color:#0B111E}
.ev-followers .ev-csv-add{padding:16px;border:1px solid #344359;border-radius:16px;margin-block:16px}

/* Player invitation workspace: scoped to this dialog, not other sheets. */
.ev-home-sheet .ev-sheet:has(.ev-followers){background:#101725;color:#F4F7FC}
.ev-home-sheet .ev-followers{display:grid;gap:14px;padding:0;border:0;background:transparent;min-width:0}
.ev-home-sheet .ev-followers > *{min-width:0;margin:0}
.ev-home-sheet .ev-followers h4{margin:0 0 8px;font-size:1rem;line-height:1.4}
.ev-home-sheet .ev-followers .ev-invite-player,.ev-home-sheet .ev-followers .ev-csv-add,.ev-home-sheet .ev-followers .ev-share{background:#192333;border:1px solid #344359;border-radius:14px;padding:16px;margin:0;box-sizing:border-box}
.ev-home-sheet .ev-followers .ev-invite-player{gap:10px}
.ev-home-sheet .ev-followers .ev-invite-player label{font-size:.9rem;gap:5px}
.ev-home-sheet .ev-followers .ev-text{width:100%;box-sizing:border-box;background:#0D131F;color:#E4EAF3;overflow-wrap:anywhere;font-size:.95rem}
.ev-home-sheet .ev-followers .acct-row{display:flex;flex-wrap:wrap;gap:8px}
.ev-home-sheet .ev-followers .acct-btn.ghost{background:#263244;color:#F4F7FC}
.ev-home-sheet .ev-followers .ev-wa{background:#D4FF33;color:#0B111E}
.ev-home-sheet .ev-sheet:has(.ev-followers) .ev-sheet-foot .acct-btn{background:#D4FF33;color:#0B111E}
.ev-home-sheet .ev-followers .ev-csv-add input[type=file]{max-width:100%;font:inherit;color:#D5DCE6}
.ev-home-sheet .ev-followers .ev-csv-add input[type=file]::file-selector-button{background:#263244;color:#fff;border:1px solid #536174;border-radius:8px;padding:10px;margin-right:8px;font:inherit;cursor:pointer}
.ev-home-sheet .ev-followers .ev-book-stats{display:flex;flex-wrap:wrap;gap:8px}
@media(min-width:1024px){
 .ev-home-sheet .ev-sheet:has(.ev-followers){width:min(1000px,calc(100vw - 64px));max-width:1000px;max-height:calc(100dvh - 48px)}
 .ev-home-sheet .ev-followers{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:14px 20px}
 .ev-home-sheet .ev-followers > .acct-hint,.ev-home-sheet .ev-followers > .ev-book-stats,.ev-home-sheet .ev-followers > .acct-details{grid-column:1/-1}
 .ev-home-sheet .ev-followers > .ev-invite-player{grid-column:1;grid-row:2/span 3}
 .ev-home-sheet .ev-followers > h4,.ev-home-sheet .ev-followers > .ev-share,.ev-home-sheet .ev-followers > .acct-row,.ev-home-sheet .ev-followers > .ev-follow-qr{grid-column:2}
 .ev-home-sheet .ev-followers > .ev-csv-add{grid-column:1/-1}
 .ev-home-sheet .ev-sheet:has(.ev-followers) .ev-sheet-foot{display:flex;justify-content:flex-end}
 .ev-home-sheet .ev-sheet:has(.ev-followers) .ev-sheet-foot .acct-btn{width:auto;min-width:120px}
}

/* Organiser Insights: aligned controls and evenly spaced KPI rows. */
#acct-root .ev-insights{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-bottom:24px;align-items:start}
#acct-root .ev-insights .ev-insights-head,#acct-root .ev-insights .ev-ins-subtabs{margin:0;justify-self:start;min-width:0;max-width:100%;box-sizing:border-box}
#acct-root .ev-insights .ev-seg{border-radius:14px;padding:4px;gap:4px}
#acct-root .ev-insights .ev-seg button{min-height:44px;border-radius:10px;color:#D5DCE6;background:transparent;box-shadow:none;padding:8px 14px}
#acct-root .ev-insights .ev-seg button[aria-pressed="true"]{background:#D4FF33;color:#0D1117;box-shadow:none}
#acct-root .ev-insights .ev-sessions-ins{display:flex;flex-direction:column;gap:16px;min-width:0}
#acct-root .ev-insights .ev-stat-grid{gap:16px;margin:0;grid-template-columns:repeat(2,minmax(0,1fr))}
#acct-root .ev-insights .ev-stat{box-sizing:border-box;min-width:0;min-height:116px;padding:18px;gap:5px;background:#151D2A;border:1px solid #303B4D;border-radius:16px}
#acct-root .ev-insights .ev-stat strong{font-size:30px;line-height:1.15}
#acct-root .ev-insights .ev-stat small{color:#B9C4D2}
#acct-root .ev-insights>.ev-admin-drawer-btn{justify-self:start;margin:0}
#acct-root .ev-insights>.ev-hint{margin:0;color:#B9C4D2;font-size:13px}
@media(min-width:720px){
 #acct-root .ev-insights{grid-template-columns:minmax(0,1fr) auto;align-items:center}
 #acct-root .ev-insights>.ev-ins-subtabs{grid-column:2;grid-row:1;justify-self:end}
 #acct-root .ev-insights>:not(.ev-insights-head):not(.ev-ins-subtabs){grid-column:1/-1}
 #acct-root .ev-insights .ev-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:480px){
 #acct-root .ev-insights .ev-insights-head{width:100%}
 #acct-root .ev-insights .ev-insights-head .ev-seg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;box-sizing:border-box}
 #acct-root .ev-insights .ev-seg button{padding:8px 5px;font-size:13px}
 #acct-root .ev-insights .ev-stat-grid{gap:10px}
 #acct-root .ev-insights .ev-stat{padding:12px;min-height:112px}
}

/* Players directory and invitation workspace */
#acct-root .ev-known-players{display:grid;gap:16px;padding:20px;border:1px solid #303B4D;border-radius:18px;background:#121A28;min-width:0}
#acct-root .ev-known-players .ev-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0}
#acct-root .ev-known-players .ev-chip{min-height:44px;padding:8px 14px;border-radius:10px}
#acct-root .ev-known-players .ev-chip.on{background:#D4FF33;color:#0D1117;border-color:#D4FF33}
#acct-root .ev-directory-alphabet{padding:12px 0;border-block:1px solid #303B4D}
#acct-root .ev-known-players .acct-hint{margin:0;color:#B9C4D2}
#acct-root .ev-known-list{display:grid;gap:12px;list-style:none;padding:0;margin:0}
#acct-root .ev-known-list>li{padding:16px;border:1px solid #344359;border-radius:14px;background:#192333;min-width:0}
#acct-root .ev-known-list>.ev-group-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
#acct-root .ev-known-list .ev-book-who{display:grid;gap:6px;flex:1 1 180px;min-width:0;overflow-wrap:anywhere}
#acct-root .ev-directory-actions{display:flex;flex-wrap:wrap;gap:8px}
.ev-home-sheet .ev-followers .ev-invite-share{display:flex;flex-direction:column;gap:12px;padding:18px;background:#192333;border:1px solid #344359;border-radius:14px;box-sizing:border-box;min-width:0}
.ev-home-sheet .ev-followers .ev-invite-share .ev-share{padding:0;border:0;background:transparent}
.ev-home-sheet .ev-followers .ev-invite-share h4{margin:0}
.ev-home-sheet .ev-followers .ev-invite-share .ev-text{overflow-wrap:anywhere;word-break:break-word}
.ev-home-sheet .ev-followers .ev-csv-add{display:grid;gap:12px;padding:20px}
.ev-home-sheet .ev-followers .ev-csv-add input[type=file]{min-height:44px;line-height:44px}
.ev-home-sheet .ev-followers .acct-msg:empty,.ev-home-sheet .ev-followers .ev-csv-results:empty{display:none}
@media(min-width:720px){
 .ev-home-sheet .ev-followers{gap:20px;align-items:stretch}
 .ev-home-sheet .ev-followers>.ev-invite-player{grid-column:1;grid-row:2;align-content:start}
 .ev-home-sheet .ev-followers>.ev-invite-share{grid-column:2;grid-row:2}
 .ev-home-sheet .ev-followers>.ev-csv-add{grid-row:3}
}
@media(max-width:600px){#acct-root .ev-known-players{padding:12px;gap:12px}#acct-root .ev-known-list>li{padding:12px}}

/* Player activity dashboard */
.rp-activity-dashboard{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:18px;align-items:start;margin-top:16px}.rp-activity-side{display:grid;gap:14px;min-width:0}.rp-activity-dashboard .pp-card{margin:0;min-width:0;padding:clamp(16px,2vw,26px)}.rp-activity-results .act-list a{padding:18px 14px;min-height:76px;border:1px solid rgba(255,255,255,.1);border-radius:14px}.rp-activity-results .act-place{font-size:20px;min-width:48px;min-height:48px}.rp-activity-results .act-list a strong{font-size:18px}.rp-activity-results .act-list a:hover{background:rgba(255,255,255,.09)}@media(max-width:800px){.rp-activity-dashboard{grid-template-columns:minmax(0,1fr)}}

/* Community cards: ordinary clubs have their own identity; ambassador spotlight stays untouched. */
body[data-hub="player"] .clubs-sec:has(#clubs-yours-h) .clubs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:18px;max-width:none}
body[data-hub="player"] .clubs-grid>li{min-width:0}
body[data-hub="player"] .rp-community-card{position:relative;overflow:hidden;display:flex;flex-direction:column;min-height:230px;height:100%;box-sizing:border-box;padding:0;isolation:isolate}
.rp-community-cover{height:86px;position:relative;overflow:hidden;background:linear-gradient(125deg,var(--lk-a99db0),transparent 85%);background:linear-gradient(125deg,color-mix(in srgb,currentColor 18%,transparent),transparent 85%);display:flex;align-items:flex-start;padding:12px 16px;box-sizing:border-box}
.rp-community-cover:after{content:"";position:absolute;width:65%;height:130%;right:-8%;top:-20%;border:1px solid currentColor;opacity:.18;transform:rotate(-28deg);background:repeating-linear-gradient(90deg,transparent 0 35px,currentColor 36px,transparent 37px 70px)}
.rp-community-cover span{font-size:10px;font-weight:700;letter-spacing:.13em;opacity:.8}
.rp-community-card[data-community-style="1"] .rp-community-cover{background:linear-gradient(35deg,transparent,color-mix(in srgb,currentColor 19%,transparent))}
.rp-community-card[data-community-style="2"] .rp-community-cover{background:repeating-linear-gradient(135deg,transparent 0 22px,color-mix(in srgb,currentColor 8%,transparent) 23px 24px),linear-gradient(110deg,color-mix(in srgb,currentColor 15%,transparent),transparent)}
.rp-community-card .org-card-top{padding:16px 16px 8px;align-items:center;min-width:0;flex-wrap:wrap}.rp-community-card .org-card-who{min-width:0;flex:1}.rp-community-card h3{font-size:clamp(19px,2vw,24px);overflow-wrap:anywhere}.rp-community-card .org-card-foot{margin-top:auto;padding:16px;gap:10px;flex-wrap:wrap}.rp-community-card .org-card-go{font-weight:700}.rp-community-bio{padding:0 16px;margin:8px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rp-community-card:focus-within{outline:2px solid currentColor;outline-offset:3px}

/* Adapt the personal club collection to its actual size, without touching featured hosts. */
body[data-hub="player"] .clubs-sec:has(#clubs-yours-h) .clubs-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
body[data-hub="player"] .clubs-sec:has(#clubs-yours-h) .clubs-grid:has(>li:only-child){grid-template-columns:minmax(0,1fr)}
body[data-hub="player"] .clubs-sec:has(#clubs-yours-h) .clubs-grid:has(>li:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-hub="player"] .clubs-sec:has(#clubs-yours-h) .clubs-grid>li:only-child .rp-community-cover{height:clamp(130px,15vw,210px)}
body[data-hub="player"] .clubs-sec:has(#clubs-yours-h) .clubs-grid>li:only-child .rp-community-card .org-card-top{padding:clamp(18px,3vw,32px);gap:16px}
body[data-hub="player"] .clubs-sec:has(#clubs-yours-h) .clubs-grid>li:only-child .rp-community-card h3{font-size:clamp(25px,3vw,38px)}
body[data-hub="player"] .clubs-sec:has(#clubs-yours-h) .clubs-grid>li:only-child .rp-community-bio{padding-inline:clamp(18px,3vw,32px);max-width:75ch}
body[data-hub="player"] .clubs-sec:has(#clubs-yours-h) .clubs-grid>li:only-child .org-card-foot{padding:clamp(18px,3vw,32px);border-top:1px solid color-mix(in srgb,currentColor 12%,transparent)}
body[data-hub="player"] .clubs-sec:has(#clubs-yours-h) .clubs-grid>li:only-child .org-card-go{padding:12px 20px;border:1px solid currentColor;border-radius:12px}
@media(max-width:1000px){body[data-hub="player"] .clubs-sec:has(#clubs-yours-h) .clubs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){body[data-hub="player"] .clubs-sec:has(#clubs-yours-h) .clubs-grid,body[data-hub="player"] .clubs-sec:has(#clubs-yours-h) .clubs-grid:has(>li:nth-child(2):last-child){grid-template-columns:minmax(0,1fr)}}

/* Premium community identity, scoped to ordinary cards. Gold spotlight is unchanged. */
body[data-hub="player"] .rp-community-card{--rp-accent:#a6d96a;border:2px solid var(--rp-accent);border-radius:20px;box-shadow:0 8px 24px color-mix(in srgb,var(--rp-accent) 12%,transparent)}
body[data-hub="player"] .rp-community-card[data-community-style="1"]{--rp-accent:#72baf0}
body[data-hub="player"] .rp-community-card[data-community-style="2"]{--rp-accent:#c0a0e8}
body[data-hub="player"] .rp-community-card .rp-community-cover{height:76px;background:linear-gradient(110deg,color-mix(in srgb,var(--rp-accent) 30%,transparent),color-mix(in srgb,var(--rp-accent) 8%,transparent));color:var(--rp-accent);border-bottom:1px solid var(--rp-accent)}
body[data-hub="player"] .rp-community-card .org-card-top{padding:18px;gap:14px}
body[data-hub="player"] .rp-community-card .org-card-foot{padding:14px 18px;border-top:1px solid color-mix(in srgb,var(--rp-accent) 35%,transparent);background:color-mix(in srgb,var(--rp-accent) 7%,transparent)}
body[data-hub="player"] .rp-community-card .org-card-go{color:var(--rp-accent);border:1px solid var(--rp-accent);border-radius:10px;padding:10px 14px}
body[data-hub="player"] .rp-community-card .org-card-stretch:focus-visible{outline:3px solid var(--rp-accent);outline-offset:-5px}
.rp-community-welcome{margin:0 18px 10px;font-size:13px;font-weight:600;color:var(--rp-accent)}
body[data-hub="player"] .clubs-sec:has(#clubs-yours-h) .clubs-grid>li:only-child .rp-community-cover{height:92px}
body[data-hub="player"] .clubs-sec:has(#clubs-yours-h) .clubs-grid>li:only-child .rp-community-card .org-card-top{padding:20px 24px}
body[data-hub="player"] .clubs-sec:has(#clubs-yours-h) .clubs-grid>li:only-child .rp-community-card .org-card-foot{padding:16px 24px}
body[data-hub="player"] .clubs-sec:has(#clubs-yours-h) .clubs-grid>li:only-child .rp-community-welcome{margin-inline:24px}

/* Personal sporting activity feed; scoped away from insights and live scoring. */
body[data-hub="player"] .rp-matchday-feed{display:grid;gap:14px;margin-top:18px}
body[data-hub="player"] .rp-activity-results .rp-matchday-feed .rp-matchday-card{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:20px;border:1px solid currentColor;border-radius:18px;background:linear-gradient(135deg,color-mix(in srgb,currentColor 9%,transparent),transparent);text-decoration:none;min-width:0}
.rp-matchday-kicker{font-size:11px;letter-spacing:.14em;font-weight:800}.rp-matchday-name{font-size:clamp(19px,2.5vw,28px);overflow-wrap:anywhere}.rp-matchday-metrics{display:flex;flex-wrap:wrap;gap:12px;margin:8px 0}.rp-matchday-metrics>div{flex:1;min-width:100px;padding:14px;border:1px solid color-mix(in srgb,currentColor 24%,transparent);border-radius:12px;display:flex;flex-direction:column;gap:4px}.rp-matchday-metrics strong{font-size:30px!important;line-height:1.1}.rp-matchday-metrics span{font-size:12px;opacity:.8}.rp-matchday-cta{font-weight:700;border-top:1px solid color-mix(in srgb,currentColor 24%,transparent);padding-top:12px}.rp-matchday-card:focus-visible{outline:3px solid currentColor;outline-offset:3px}
