.gp-theme{display:inline-grid;place-items:center;flex:none;min-height:44px;width:44px;padding:0;background:transparent;color:#cbe8f7;border:1px solid #455562;border-radius:50%;cursor:pointer}
.gp-theme svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.gp-theme .gp-moon,html[data-theme=light] .gp-theme .gp-sun{display:none}
html[data-theme=light] .gp-theme .gp-moon{display:block}
.gp-preferences{display:contents}
@media(max-width:640px){
  header.gp-head .gp-inner{grid-template-columns:minmax(0,1fr) auto}
  .gp-head .gp-preferences{--rail:#16232e;--edge:#2d465b;display:flex;align-items:center;grid-column:2;grid-row:1;position:relative;isolation:isolate}
  .gp-preferences::before{content:"";position:absolute;inset:6px 0;z-index:-1;border-radius:10px;border:1px solid var(--edge);background:var(--rail)}
  .gp-preferences::after{content:"";position:absolute;left:43px;top:50%;height:14px;width:1px;transform:translateY(-50%);background:var(--edge);pointer-events:none}
  header.gp-head .gp-preferences .gp-theme,header.gp-head .gp-preferences .gp-language{border:0;background:transparent;color:inherit}
  .gp-preferences .gp-theme svg{width:16px;height:16px}
  .gp-preferences .gp-language summary{min-height:44px;min-width:48px;justify-content:center;padding:0 9px;gap:6px;font-size:13px}
  .gp-preferences .gp-orb{display:none}
  html[data-theme=light] .gp-preferences{--rail:#eff4f7;--edge:#cbd8df}
}
html[data-theme=light]{
  color-scheme:light;--night:#f6f9fa;--bg:#f6f9fa;--dark:#eaf0f3;--surface:#fff;--panel:#fff;--inset:#edf2f5;--line:#cfdae0;--ice:#172530;--ink:#172530;--muted:#495a68;--violet:#4a8baf;--cyan:#4a8baf;--pink:#97416b;--gold:#885900;
  background-color:var(--bg);
}
html[data-theme=light] body,html[data-theme=light] .app,html[data-theme=light] .tournament-loading{background:linear-gradient(160deg,#e9f1f6,transparent 38rem),var(--bg);color:var(--ink)}
html[data-theme=light]{
  & header.gp-head,& .gp-locales,& .gp-head .gp-language,& .gp-theme{background:#fff;color:var(--ink);border-color:var(--line)}
  & .gp-head .gp-logo,& .gp-locales button{color:var(--ink)}
  & .gp-head .gp-logo b,& .foot-brand,& .foot-brand b{color:#4a8baf}
  & .gp-head nav.gp-tabs{background:var(--line);border-color:var(--line)}
  & .gp-head .gp-tabs a{color:var(--ink)}
  & .gp-tabs a:not([aria-current])::before{background:#f2f6f8}
  & .gp-tabs a:not([aria-current]):hover::before,& .gp-locales button[aria-pressed=true]{background:#dfedf4}
  & .gp-tabs a:not([aria-current]) svg,& .gp-locales button[aria-pressed=true]::after{color:var(--violet)}
  & .gp-head :focus-visible{outline-color:#4a8baf}
  & :is(.panel,.event,.event-strip,.entry-view .event-strip,.event-tabs,.entry-view .event-tabs,.seed-board,.score,.site-footer,.stage-list,.player-ladder,.forecast-ticket,.circuit-empty,.loading-card,.topbar,.sidebar,.bottom-nav,.info-panel,.prize-item,dialog){background:#fff;color:var(--ink);border-color:var(--line);box-shadow:0 5px 18px #2842560a}
  & :is(.masters,.season-prizes,.ladder-cutoff,.ladder-leader,.predictions-strip,.draw-match .won,.cut,.status,.tag,.notice,.pair-box header,.featured-stop){background:linear-gradient(115deg,#e2edf3,#f7fafc);color:var(--ink);border-color:var(--line)}
  & .stage-list{--beam:#4a819f}
  & .stage-list :is(summary,h3){background:linear-gradient(125deg,#e7f0f5,#dae8ef);color:var(--ink)}
  & .stage-list summary::after{background:white;color:var(--violet)}
  & .fixture-deck .fixture{--accent:#4a8baf;background:#f8fbfd;color:var(--ink);border-color:var(--line)}
  & .fixture[data-division="Divizia 4"]{--accent:#4c83a1}
  & .fixture[data-division="Divizia 5"]{--accent:#166052}
  & .fixture[data-division^="Mix"]{--accent:#893364}
  & :is(.stop-date time,.featured-stop h3,.loading-card h1,.loading-brand,.forecast-fixture strong,.season-total,.masters h2,.fixture strong){color:var(--ink)}
  & :is(.stop-date span,.predictions-strip p,.forecast-fixture>span,.loading-copy,.loading-footnote,.loading-brand small,.sidebar nav button,.stage-list .fixture-meta){color:var(--muted)}
  & :is(.entry-view .event-strip b,.event-strip b,.open-label,.ladder-leader .ladder-place,.ladder-leader .ladder-score,.forecast-date,.forecast-arrow,.forecast-fixture small,.stage-track [aria-current],.score b,.masters em){color:var(--violet)}
  & :is(#tabs [aria-pressed=true],.event-tabs a[aria-current],.map-branches [aria-current],.sidebar nav button.active){background:#ddfa5b;color:#172530}
  & :is(.hero,.eventHero,.finals-cover,.forecast-poster){color:#fff;--muted:#dfe9ef;--violet:#c5e8fb}
  & .finals-cover p{color:#dfe9ef}
  & :is(.gp-predict,.forecast-action,.button,.btn.lime){background:#d6f744;color:#1d2020}
  & .forecast-ticket{--iris:var(--violet)}
  & :is(input,textarea,select){color-scheme:light}
}
html[data-theme=light]{
  & :is(.player-summary,.match-card,.tournament-header,.mobile-bottom-nav,.champion-prediction,.modal,.all-picked,.division-empty,.team-option,.team-letter){background:var(--surface);color:var(--ink);border-color:var(--line)}
  & :is(.score small,.forecast-fixture>span,.loading-copy,.loading-eyebrow,.loading-footnote,.mobile-bottom-nav button){color:var(--muted)}
  & :is(.loading-card h1,.loading-brand,.team-name,.modal h2){color:var(--ink)}
  & :is(.mobile-bottom-nav button.active,.loading-brand b,.organizer-link,.foot-grid .foot-brand,.topbar .text-button){color:var(--violet)}
  & :is(.team-option.chosen,.unanswered-prompt){background:#eaf4d5;color:#25330e;border-color:#799144}
  & .score div{border-color:var(--line)}
}

:root{accent-color:#7cb3d1}
:where(button,input[type=button],input[type=submit]){color:inherit}
:where(button,a,select,summary){-webkit-tap-highlight-color:rgba(133,190,221,.22)}
