:root{--tm-bg:#f4f7fb;--tm-card:#fff;--tm-navy:#0b1f3a;--tm-blue:#356fe8;--tm-muted:#718096;--tm-line:#dce5f0;--tm-soft:#edf3fb;--tm-orange:#f59e0b}
body{background:var(--tm-bg)!important;color:var(--tm-navy)!important;font-family:Inter,Manrope,system-ui,-apple-system,"Segoe UI",sans-serif!important}
body h1,body h2,body h3,body h4,body button,body input,body select,body textarea{font-family:Inter,Manrope,system-ui,-apple-system,"Segoe UI",sans-serif!important}
body:before{display:none!important}
main{width:min(calc(100% - 32px),1040px)!important;padding:24px 0 100px!important}
.tournament-page-head{position:relative!important;overflow:hidden!important;margin:0 0 18px!important;padding:25px 28px!important;background:linear-gradient(135deg,#081b37 0%,#153f7b 70%,#2f6fe5 140%)!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:24px!important;box-shadow:0 18px 42px rgba(10,35,72,.22)!important}
.tournament-page-head:after{content:"";position:absolute;right:-52px;top:-88px;width:250px;height:250px;border:36px solid rgba(255,255,255,.07);border-radius:50%}
.tournament-page-head>a{position:relative;z-index:1;display:inline-flex!important;margin:0 0 20px!important;padding:0!important;min-height:auto!important;color:#d8e7ff!important}
.tournament-page-head .eyebrow{position:relative;z-index:1;display:block;margin-bottom:6px!important;color:#8fb5ff!important}
.tournament-page-head h1{position:relative;z-index:1;margin:0!important;color:#fff!important;font-size:clamp(2.25rem,5vw,3.35rem)!important;font-weight:850!important;letter-spacing:-.05em!important}
.tournament-page-head p{position:relative;z-index:1;max-width:620px;margin:10px 0 0!important;color:#d6e4f8!important;font-size:.96rem!important}
.discovery-tabs{margin:0 0 12px!important;background:#e8eef7!important;border:1px solid var(--tm-line)!important;padding:4px!important}.discovery-tabs button{min-height:40px!important;color:#60708a!important}.discovery-tabs button.active{background:#fff!important;color:#174da7!important}
#newTournament{margin-bottom:20px!important;background:linear-gradient(135deg,#2867df,#4f8cff)!important;color:#fff!important;box-shadow:0 9px 20px rgba(37,99,235,.18)!important}
#createTournament{padding:24px!important;margin:0 0 22px!important;background:#fff!important;border:1px solid var(--tm-line)!important;border-radius:20px!important;box-shadow:0 14px 36px rgba(17,45,82,.1)!important}
#dashboard{margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
#dashboard>.title{padding:22px 24px!important;margin:0 0 14px!important;background:#fff!important;border:1px solid var(--tm-line)!important;border-radius:20px!important;box-shadow:0 10px 28px rgba(17,45,82,.08)!important}
#dashboard>.title h2{margin:0!important;font-family:inherit!important;font-size:1.65rem!important;font-weight:850!important}.title small{margin-top:6px!important;color:var(--tm-muted)!important;font-size:.82rem!important}.title>div:last-child{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important}
#dashboard>.tabs{display:flex!important;width:100%!important;margin:0 0 18px!important;padding:5px!important;background:#e8eef7!important;border:0!important;border-radius:15px!important;overflow:auto!important}.tabs button{flex:1!important;min-width:115px!important;background:transparent!important;color:#61718a!important;box-shadow:none!important}.tabs button.active,.tabs button[aria-selected="true"]{background:#fff!important;color:#2058bd!important;box-shadow:0 5px 14px rgba(20,47,87,.1)!important}
#teamsTab,#fixturesTab,#pointsTab{margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
#addTeam,.fixture-toolbar{margin:0 0 14px!important}
#teamForm,#playerForm,#fixtureForm,#generatorForm{padding:20px!important;margin:0 0 15px!important;background:#fff!important;border:1px solid var(--tm-line)!important;border-radius:18px!important;box-shadow:0 8px 24px rgba(17,45,82,.07)!important}
#playerForm{position:relative!important;color:var(--tm-navy)!important;padding:24px!important;background:#fff!important;border:1px solid #d7e2ef!important;box-shadow:0 18px 42px rgba(15,43,78,.11)!important}
#playerForm .squad-form-head{align-items:flex-start!important;margin:0 0 18px!important;padding:0 0 16px!important;border-bottom:1px solid var(--tm-line)!important}
#playerForm .squad-form-head h3{margin:2px 0 0!important;color:var(--tm-navy)!important;font-size:1.35rem!important;font-weight:850!important}
#playerForm .eyebrow{color:var(--tm-blue)!important}
#playerForm label{display:grid!important;gap:7px!important;color:#40516c!important;font-size:.78rem!important;font-weight:800!important}
#playerForm input,#playerForm select{margin:0!important;background:#f8fafc!important;color:var(--tm-navy)!important;border:1px solid #cfdbea!important;border-radius:13px!important}
#playerForm #squadLookup{padding:16px!important;background:#f7f9fc!important;border:1px solid var(--tm-line)!important;border-radius:15px!important}
#playerForm .form-help{margin:9px 2px 0!important;color:var(--tm-muted)!important}
#playerForm .profile-results{margin:10px 0 0!important}
#playerForm .profile-results>button{min-height:58px!important;padding:9px 11px!important;background:#fff!important;color:var(--tm-navy)!important;border:1px solid var(--tm-line)!important;box-shadow:none!important}
#playerForm .profile-results small,#playerForm .selected-profile small,#playerForm .player-details small,#playerForm .squad-summary small{color:var(--tm-muted)!important}
#playerForm .selected-profile{margin:0 0 14px!important;padding:13px!important;background:#edf4ff!important;color:var(--tm-navy)!important;border:1px solid #bfd2f4!important}
#playerForm .form-actions{margin:16px 0 0!important;padding:0!important}
#playerForm .secondary{background:#edf3fc!important;color:var(--tm-navy)!important;border:1px solid var(--tm-line)!important}
#playerForm #squadPlayers{gap:9px!important;margin-top:20px!important;padding-top:18px!important;border-color:var(--tm-line)!important}
#playerForm .squad-summary{align-items:center!important;margin:0 0 4px!important;color:var(--tm-navy)!important}
#playerForm .squad-player{padding:12px!important;background:#f8fafc!important;color:var(--tm-navy)!important;border:1px solid var(--tm-line)!important;border-radius:14px!important}
#playerForm .player-details b,#playerForm .squad-summary b{color:var(--tm-navy)!important}
#playerForm .role-button{min-height:38px!important;padding:8px 11px!important;background:#e8effa!important;color:#31547e!important;border:1px solid #d3dfed!important;box-shadow:none!important}
#playerForm .role-button.selected{background:var(--tm-orange)!important;color:#172033!important;border-color:var(--tm-orange)!important}
#teams,#fixtures,#tournaments{display:grid!important;gap:12px!important}
#tournaments>article.tournament-card{position:relative!important;min-height:138px!important;padding:22px 24px 22px 27px!important;overflow:hidden!important}
#tournaments>article.tournament-card:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:linear-gradient(#3477ef,#6fa0ff)}
#tournaments>article.tournament-card>div:first-of-type{display:flex!important;flex-direction:column!important;justify-content:center!important}
#tournaments>article.tournament-card h2{order:1!important;margin:7px 0 3px!important;color:var(--tm-navy)!important;font-size:1.45rem!important;font-weight:850!important;letter-spacing:-.035em!important}
#tournaments>article.tournament-card small{order:0!important;margin:0!important;color:#6f819d!important;font-size:.74rem!important;text-transform:capitalize!important}
#tournaments>article.tournament-card span{order:2!important;color:#40516c!important;font-size:.8rem!important;font-weight:700!important;text-transform:capitalize!important}
#tournaments>article.tournament-card button{align-self:center!important;min-width:76px!important;background:#edf4ff!important;color:#2459b5!important;border:1px solid #cbdcf7!important}
#teams>article,#fixtures>article,#tournaments>article{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:18px!important;min-height:0!important;margin:0!important;padding:19px 20px!important;background:#fff!important;border:1px solid var(--tm-line)!important;border-radius:18px!important;box-shadow:0 8px 22px rgba(17,45,82,.065)!important}
#teams>article b,#fixtures>article b,#tournaments>article b{font-family:inherit!important;font-size:1.05rem!important;font-weight:850!important;color:var(--tm-navy)!important}#teams>article small,#fixtures>article small,#tournaments>article small{margin-top:5px!important;color:var(--tm-muted)!important;font-size:.78rem!important}
#teams>article>div:last-child,#fixtures>article>div:last-child,#tournaments>article>div:last-child{display:flex!important;justify-content:flex-end!important;gap:8px!important;margin:0!important}#teams>article button,#fixtures>article button,#tournaments>article button{min-height:40px!important;padding:9px 13px!important;font-size:.78rem!important;box-shadow:none!important}#teams>article button:last-child{background:#fff1f2!important;color:#c83245!important;border:1px solid #ffcfd5!important}
.squad-list{grid-column:1/-1!important;padding-top:13px!important;border-top:1px solid var(--tm-line)!important}.squad-list span{background:#f7f9fc!important;color:var(--tm-navy)!important;border-color:var(--tm-line)!important}
.points-table{background:#fff!important;border-color:var(--tm-line)!important;box-shadow:0 10px 28px rgba(17,45,82,.08)!important}.standings-title,.points-head,.points-note{background:#f3f6fa!important;color:var(--tm-muted)!important}.points-row{color:var(--tm-navy)!important;border-color:var(--tm-line)!important}
@media(max-width:640px){main{width:min(calc(100% - 24px),1040px)!important;padding-top:12px!important}.tournament-page-head{padding:20px!important;border-radius:20px!important}.tournament-page-head>a{margin-bottom:16px!important}.tournament-page-head p{font-size:.86rem!important}#dashboard>.title{padding:18px!important;align-items:flex-start!important}.title>div:last-child{width:100%!important;justify-content:flex-start!important}#teams>article,#fixtures>article,#tournaments>article{grid-template-columns:1fr!important;padding:16px!important}#tournaments>article.tournament-card{min-height:0!important;padding:19px 18px 18px 21px!important}#tournaments>article.tournament-card button{align-self:flex-start!important}#teams>article>div:last-child,#fixtures>article>div:last-child,#tournaments>article>div:last-child{justify-content:flex-start!important}.tabs button{min-width:105px!important}.brand-uploads{grid-template-columns:1fr!important}#playerForm{padding:17px!important}#playerForm .squad-form-head{display:flex!important;flex-direction:row!important;align-items:center!important}#playerForm .squad-form-head h3{font-size:1.15rem!important}#playerForm .squad-summary{display:grid!important;gap:4px!important}#playerForm .squad-player{grid-template-columns:38px minmax(0,1fr) auto auto!important;gap:7px!important}#playerForm .role-button{padding:7px 9px!important}}
@media(max-width:640px){#dashboard>.title{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important}#dashboard>.title>div{min-width:0!important;max-width:100%!important}.title>div:last-child{display:flex!important;flex-wrap:wrap!important}#back,#followTournament{width:auto!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}}
