/* Court-inspired visual layer. All artwork and fonts work offline. */
:root,:root[data-theme="light"]{--floor:#f5f5ef;--card:#fffefa;--ink:#17372c;--muted:#63766c;--home:#24754f;--away:#426dac;--line:#dce3d7;--line2:#eaf0e5;--chip:#edf1e8;--focus:#26805a;--court:#153f30;--court-deep:#0d2d22;--lime:#d5f188;--sh:0 8px 32px -24px #17372c40}
body{background:var(--floor);font-size:15px;line-height:1.55}button,a,input,select{touch-action:manipulation}button,a{-webkit-tap-highlight-color:transparent}button{transition:background .18s,transform .18s,box-shadow .18s}button:not(:disabled):active,.btn:active{transform:translateY(1px) scale(.985)}a{color:var(--home)}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:4px}h1,h2,h3{letter-spacing:-.045em}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.ui-icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}.eyebrow{font-size:10px!important;letter-spacing:.18em;font-weight:700;line-height:1.6;margin:0 0 14px;text-transform:uppercase;color:var(--muted)}
.chrome{background:var(--floor);border:0}.bar{background:transparent}.bar-in{max-width:1120px;padding:20px 26px;gap:14px}.mark{align-items:center;gap:10px}.mark>.ui-icon{width:38px;height:38px;background:var(--court);color:var(--lime);padding:8px;border-radius:12px;transform:rotate(-14deg)}.mark b{font-size:21px;letter-spacing:-.05em}.mark b span{font:inherit;color:inherit;letter-spacing:-.05em}.mark small{display:block;color:var(--muted);font-size:8px;font-weight:600;letter-spacing:.17em;margin-top:1px}.ghost{display:flex;align-items:center;gap:7px;min-height:44px;padding:10px 15px;border-radius:12px;font-size:12px}.ghost .ui-icon{width:17px;height:17px}.new-button{background:var(--court);color:var(--lime);border-color:var(--court)}.new-button:hover{background:#24583e}.sync-pill{display:flex;align-items:center;gap:6px;border:0;background:none;cursor:pointer;font-size:11px;color:var(--muted);padding:8px;min-height:44px}.sync-pill i{width:6px;height:6px;display:block;border-radius:50%;background:#91a29a}.sync-pill.saved i{background:#379b65}.sync-pill.pending{color:var(--flag)}.sync-pill.pending i{background:var(--flag)}.sync-pill.working i{background:var(--warn)}
.wrap{max-width:1120px;padding:0 26px 70px}.app-nav{gap:4px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:7px 0;margin:0 0 26px}.app-nav .mini{border:0;background:transparent;display:flex;align-items:center;justify-content:center;gap:9px;border-radius:10px;min-height:43px;color:var(--muted);font-size:12px}.app-nav .ui-icon{width:18px;height:18px}.app-nav [aria-current="page"]{background:var(--chip);color:var(--ink);font-weight:700}.captain-dashboard{padding:28px;border-radius:20px;margin-top:0;box-shadow:var(--sh)}.captain-dashboard h2{font-size:32px;line-height:1.15}.page-intro{color:var(--muted);font-size:14px;margin:10px 0 24px}.btn{border-radius:12px;font-size:13px;min-height:48px;display:flex;justify-content:center;align-items:center;gap:9px;background:var(--court);color:var(--lime)}.btn.sec{color:var(--ink);border-color:var(--line);background:transparent}.mini{min-height:42px;border-radius:10px;font-size:12px;padding:9px 13px}.text-button{display:flex;gap:8px;align-items:center;justify-content:center;background:transparent;border:0;color:var(--home);font-size:12px;font-weight:700;cursor:pointer;padding:12px 0;min-height:44px}.text-button .ui-icon{width:17px;height:17px}.hint{font-size:12px;line-height:1.7}input[type=text],input[type=email],input[type=date],input[type=search],select,textarea{min-height:48px;border-radius:11px;background-color:var(--floor);font-size:15px}select{background-position:calc(100% - 17px) 21px,calc(100% - 12px) 21px}input[type=email]{border:1px solid var(--line);padding:10px 11px;color:var(--ink)}
/* A clear hierarchy: club, next game, cards. */
#captainDashboard{background:transparent;border:0;padding:0;box-shadow:none;overflow:visible}.club-hero{position:relative;isolation:isolate;background:var(--court);color:#fbfff6;border-radius:22px;padding:32px 36px;overflow:hidden;display:grid;grid-template-columns:1.4fr 1fr;gap:24px;align-items:center}.club-hero::before{content:"";position:absolute;z-index:-1;right:-20px;top:-90px;width:370px;height:330px;border:1px solid #c9e3bc25;transform:rotate(-24deg);box-shadow:inset 0 0 0 30px #ffffff03}.club-hero-copy .eyebrow{color:var(--lime);font-size:9px!important}.club-hero h2{font-size:42px;color:#fff;letter-spacing:-.055em}.club-hero #captainIdentity{font-size:11px;color:#c0d4c5;margin:8px 0}.club-tagline{font-size:13px;color:#dbe7d9;margin:14px 0 0}.hero-shuttle{position:absolute;left:45%;bottom:-35px;opacity:.07;pointer-events:none;transform:rotate(-28deg);z-index:-1}.hero-shuttle .ui-icon{width:210px;height:210px;stroke-width:.7}.team-picker{align-self:center;background:#08281b3b;padding:16px 18px;border:1px solid #c9e3bc30;border-radius:14px}.team-picker label{font-size:10px;font-weight:600;letter-spacing:.06em;color:#dbe7d9}.team-picker select{background-color:#214c39;border-color:#6684745c;color:#fff;margin-top:7px;min-height:44px;font-size:12px}.team-picker #spaceHint{font-size:10px;color:#b8cebd;margin:8px 0 0;line-height:1.6}.home-section-title{display:flex;align-items:center;justify-content:space-between;margin:26px 0 14px}.home-section-title h3{font-size:20px;margin:0}.home-section-title>span{font-size:8px;font-weight:600;letter-spacing:.14em;color:var(--muted)}.home-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:18px}.next-match-panel,.home-action-panel,.list-panel{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:24px}.next-match-panel{position:relative;overflow:hidden;border-top:4px solid #8cae63}.next-match-panel .eyebrow{color:var(--home);margin-bottom:6px}.next-match-panel>h3,.home-action-panel>h3{font-size:25px;line-height:1.25;margin:0 0 15px}.next-match-panel::after{content:"";position:absolute;right:-40px;top:-65px;width:190px;height:190px;border:1px solid var(--line);border-radius:50%;box-shadow:0 0 0 15px var(--floor),0 0 0 16px var(--line);opacity:.5;pointer-events:none}.next-match-panel #nextFixture{position:relative;z-index:1}.next-match-panel .fixture-card{border:0;display:block;padding:12px 0 8px;font-weight:700;font-size:24px;letter-spacing:-.035em;line-height:1.35}.next-match-panel .fixture-card small{font-size:12px;font-weight:400;letter-spacing:0;line-height:1.8;margin:10px 0 20px}.next-match-panel .fixture-card button{width:100%;background:var(--court);color:var(--lime);border:0;border-radius:11px;min-height:46px}.next-match-panel>.text-button{margin:0 auto}.home-action-panel{background:var(--chip)}.home-action-panel .eyebrow{font-size:8px!important}.home-action-panel>p:not(.eyebrow){color:var(--muted);font-size:13px;max-width:280px;margin:0 0 20px}.home-action-panel .btn{margin-top:9px;background:var(--card);border:1px solid var(--line);color:var(--ink)}.home-action-panel .btn.sec{background:transparent}.home-action-panel>.text-button{margin:2px auto 0}.home-lists{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.list-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.list-heading h3{font-size:17px;margin:0}.count-badge{border:1px solid var(--line);border-radius:99px;padding:1px 8px;font-size:11px;min-width:24px;text-align:center;color:var(--home);background:var(--chip)}.list-panel .fixture-card{margin-top:12px;padding-top:15px;font-size:12px;line-height:1.5;gap:8px}.list-panel .fixture-card small{font-size:10px}.list-panel .fixture-card .mini{font-size:10px;padding:7px 10px}.list-panel>div>.hint{padding:20px 0 5px;font-size:12px}.home-footnote{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--muted);font-size:10px;margin:28px 0 0}.home-footnote .ui-icon{width:15px;height:15px;transform:rotate(-25deg)}
/* Account details are available when needed, without filling the home screen. */
.account-page{max-width:780px;margin-left:auto;margin-right:auto}.account-page .phone-install{margin:15px 0;background:var(--floor);border-radius:13px}.account-page summary{font-size:13px;padding:14px 0}.settings-group{margin-top:26px}.settings-group>details{border-top:1px solid var(--line);padding:4px 0 15px}.settings-group>button{margin-top:22px}.account-page .phone-status{font-size:11px}.account-page #cloudStatus{font-size:14px;color:var(--ink)}#cloudPanel[open]{border-color:var(--home)}.settings-group .actions{grid-template-columns:repeat(3,1fr)}.fixture-card .mini:hover{background:var(--chip)}
/* Sign-in: a proper badminton welcome, with no external image requests. */
.auth-gate{margin:5vh auto;border-radius:24px;padding:32px;width:calc(100% - 32px);max-width:540px;animation:court-enter .55s both}.auth-gate:not(.welcome) h1{font-size:36px}.auth-gate:not(.welcome)>p:not(.eyebrow){font-size:14px;color:var(--muted)}.welcome{max-width:1060px;min-height:640px;padding:0;display:grid;grid-template-columns:1.05fr 1fr;background:var(--card);box-shadow:0 24px 90px -54px #0b362d70;overflow:hidden;margin:7vh auto}.welcome-court{background:var(--court);position:relative;isolation:isolate;overflow:hidden;padding:34px 38px;color:#fff;display:flex;flex-direction:column;justify-content:flex-start}.court-brand{display:flex;gap:10px;align-items:center;font-size:15px;font-weight:700;letter-spacing:.02em}.court-brand>.ui-icon{color:var(--lime);width:32px;height:32px;transform:rotate(-25deg)}.court-brand b{font-weight:400;color:#d3e2d5}.welcome-heading{position:relative;z-index:2;margin-top:48px}.welcome-heading .eyebrow{color:#abc7b6;font-size:8px!important}.welcome-heading h2{font-size:53px;line-height:1.05;letter-spacing:-.065em;font-weight:800}.welcome-heading em{font-style:normal;color:var(--lime)}.welcome-heading>p:last-child{font-size:13px;color:#bdd2c4;line-height:1.7;margin-top:20px}.court-art{position:absolute;inset:0;z-index:-1;overflow:hidden}.court-lines{position:absolute;width:400px;height:540px;border:1px solid #d5f18830;right:-55px;bottom:-350px;transform:rotate(-25deg);box-shadow:inset 0 0 0 25px #ffffff03}.court-lines::before{content:"";position:absolute;inset:25px;border:1px solid #d5f18830}.court-lines i{position:absolute;background:#d5f18830}.court-lines i:nth-child(1){width:1px;height:100%;left:50%}.court-lines i:nth-child(2){width:100%;height:1px;top:45%}.court-lines i:nth-child(3){width:100%;height:1px;top:60%}.racket-art{width:370px;position:absolute;right:-25px;bottom:40px;filter:drop-shadow(0 15px 10px #00190d30);animation:racket-arrive 1.1s cubic-bezier(.2,.8,.3,1) both}.flying-shuttle{transform-origin:300px 55px;animation:shuttle-arrive 1.5s cubic-bezier(.18,.72,.3,1) both}.court-foot{display:flex;justify-content:space-between;gap:15px;font-size:7px;letter-spacing:.18em;color:#b6ccba;margin-top:auto;padding-top:250px}.welcome-form{padding:72px 54px 42px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.welcome-form>.eyebrow{font-size:8px!important;letter-spacing:.13em;margin-bottom:24px}.welcome-form h1{font-size:46px;line-height:1.08;letter-spacing:-.06em;margin:0 0 18px}.welcome-intro{font-size:14px;color:var(--muted);margin:0 0 28px;line-height:1.8!important}.welcome .google-signin{display:flex;justify-content:flex-start;width:100%;gap:11px;background:var(--ink);color:var(--card);font-size:13px;border-radius:12px;min-height:54px;margin:0;box-shadow:0 8px 22px -15px #153f3080}.google-signin .ui-icon{margin-left:auto;width:17px}.google-letter{font-family:Arial,sans-serif;font-size:20px;font-weight:700;color:inherit}.auth-message{font-size:11px;color:var(--muted);margin:12px 0 0;min-height:18px}.welcome #authRetry{margin:12px 0;font-size:12px;min-height:40px}.welcome-benefits{display:flex;flex-wrap:wrap;gap:8px 15px;margin:22px 0;color:var(--muted);font-size:9px}.welcome-benefits span::before{content:"✓";color:var(--home);font-weight:800;margin-right:5px}.welcome-note{font-size:11px;color:var(--muted);line-height:1.8!important;border-top:1px solid var(--line);padding-top:22px;margin:0}.privacy-link{font-size:10px;color:var(--muted);margin-top:18px;text-underline-offset:4px}.auth-leaving .google-signin{pointer-events:none;opacity:.7}.auth-leaving .google-signin .ui-icon{animation:serve-out .65s ease both}.auth-leaving .flying-shuttle{animation:serve-out .65s ease both}
/* Scoring stays calm and legible during play. */
#scoreEditor{max-width:850px;margin:auto}.score-tools{padding:4px 0 10px}.tally{border-radius:20px;border:0;background:var(--court);color:#fff;padding:23px 26px;box-shadow:0 12px 32px -24px #082a1a90}.tally .tname.h{color:var(--lime)}.tally .tname.a{color:#bcd2f8}.tally .big{font-size:54px}.tally .rowlab,.tally .gnum,.tally .pts{color:#bbcfbf;border-color:#446250}.tally .pts b{color:#fff}#scoreEditor section{border-radius:17px}.head{padding:18px}.head h2{font-size:15px}.body{padding:8px 18px 20px}.sheet-in{border-radius:22px;padding:24px;box-shadow:0 25px 100px #081b1c40}.sheet[open] .sheet-in{animation:court-enter .25s both}.toast{background:var(--ink);color:var(--card);border-radius:12px;font-size:12px;max-width:min(90vw,480px)}.league-tabs [aria-pressed=true]{background:var(--court);color:var(--lime);border-color:var(--court)}.league-table th{background:var(--chip)}.league-match,.league-summary>div{background:var(--card);border-radius:14px}.league-match h3{letter-spacing:-.02em}#leaguePage>.hint:last-child{font-size:10px}#teamAccessPanel .fixture-card{padding:18px 0}#inviteForm{margin:20px 0;padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--floor)}#inviteForm>.btn{margin-top:16px}
.page-arrive{animation:court-enter .32s cubic-bezier(.2,.8,.3,1) both}@keyframes court-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes racket-arrive{from{opacity:0;transform:translate(25px,35px) rotate(8deg)}to{opacity:1;transform:none}}@keyframes shuttle-arrive{from{opacity:0;translate:65px -90px}to{opacity:1;translate:0 0}}@keyframes serve-out{to{opacity:0;translate:45px -35px}}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){--floor:#10231d;--card:#193229;--ink:#f2f5e9;--muted:#adbbaf;--home:#bddf88;--away:#a2bfee;--line:#334d3f;--line2:#284135;--chip:#223e30;--focus:#c5e697;--court:#204831;--court-deep:#0d2d22;--lime:#d5f188}.welcome-form{background:var(--card)}.next-match-panel::after{opacity:.25}.new-button{border:1px solid #587147}.club-hero{background:#224831}}
:root[data-theme="dark"]{--floor:#10231d;--card:#193229;--ink:#f2f5e9;--muted:#adbbaf;--home:#bddf88;--away:#a2bfee;--line:#334d3f;--line2:#284135;--chip:#223e30;--focus:#c5e697;--court:#204831;--lime:#d5f188}
@media(max-width:760px){.bar-in{padding:14px 18px;gap:8px}.mark b{font-size:18px}.mark small{font-size:6px}.mark>.ui-icon{width:32px;height:32px;padding:7px}.sync-pill{font-size:10px;gap:5px}.wrap{padding:0 18px calc(105px + env(safe-area-inset-bottom,0px))}.app-nav{position:fixed;bottom:0;left:0;right:0;z-index:45;margin:0;background:var(--card);padding:8px max(10px,env(safe-area-inset-left,0px)) calc(8px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);border-bottom:0;box-shadow:0 -8px 30px #10231d08}.app-nav .mini{flex-direction:column;gap:4px;min-height:49px;font-size:9px;padding:6px 3px;border-radius:10px}.app-nav .ui-icon{width:20px;height:20px}.club-hero{padding:25px;grid-template-columns:1fr;gap:20px;border-radius:20px;margin-top:8px}.club-hero h2{font-size:35px}.club-tagline{font-size:12px;margin-top:12px}.team-picker{padding:12px 14px}.team-picker #spaceHint{display:none}.team-picker select{font-size:16px}.hero-shuttle{left:auto;right:4%;bottom:90px;opacity:.08}.home-section-title>span{display:none}.home-grid{grid-template-columns:1fr 1fr;gap:12px}.home-lists{gap:12px}.next-match-panel,.home-action-panel,.list-panel{padding:20px}.next-match-panel>h3,.home-action-panel>h3{font-size:21px}.next-match-panel .fixture-card{font-size:21px}.home-action-panel>p:not(.eyebrow){font-size:12px}.home-footnote{margin:24px 0}.captain-dashboard{padding:22px;margin-top:12px}.captain-dashboard h2{font-size:28px}.toast{bottom:calc(87px + env(safe-area-inset-bottom,0px))}.welcome{grid-template-columns:1fr 1fr;min-height:560px;margin:25px auto}.welcome-court{padding:28px}.welcome-form{padding:38px 28px}.welcome-heading h2{font-size:40px}.welcome-form h1{font-size:36px}.racket-art{width:290px;right:-50px;bottom:55px}.welcome-heading{margin-top:35px}.court-foot{padding-top:240px}.welcome-benefits{gap:8px}.court-brand{font-size:12px}.court-foot span:last-child{display:none}}
@media(max-width:520px){.bar-in{gap:5px;padding:12px 14px}.mark{gap:7px}.mark b{font-size:17px}.mark small{display:none}.mark>.ui-icon{width:29px;height:29px}.ghost{padding:8px 10px;gap:5px;font-size:10px;border-radius:10px}.ghost>.ui-icon{width:15px;height:15px}.sync-pill{padding:6px;min-width:25px}.sync-pill #syncLabel{display:none}.sync-pill::after{content:attr(data-short);font-size:9px}.sync-pill.pending #syncLabel{display:block;max-width:60px;font-size:9px;line-height:1.1}.wrap{padding-left:14px;padding-right:14px}.club-hero{padding:23px}.home-grid,.home-lists{grid-template-columns:1fr}.home-action-panel{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:17px}.home-action-panel>.eyebrow,.home-action-panel>h3,.home-action-panel>p:not(.eyebrow){display:none}.home-action-panel .btn{margin:0;font-size:12px;padding:12px 8px}.home-action-panel>.text-button{grid-column:1/-1;font-size:11px;min-height:28px;padding:2px}.home-lists{margin-top:12px}.next-match-panel{padding:23px}.next-match-panel>h3{font-size:25px}.next-match-panel .fixture-card{font-size:26px}.list-panel{padding:21px}.list-panel .fixture-card{font-size:13px}.list-panel .fixture-card small{font-size:11px}.home-section-title{margin-top:23px}.home-section-title h3{font-size:19px}.account-page .settings-group .actions{grid-template-columns:1fr}.tally{padding:17px}.tally .big{font-size:44px}.head .state{font-size:10px}.welcome{grid-template-columns:1fr;width:calc(100% - 24px);margin:12px auto 26px;min-height:0;border-radius:23px}.welcome-court{padding:23px 25px;min-height:275px}.court-brand{font-size:12px}.court-brand>.ui-icon{width:26px;height:26px}.welcome-heading{margin-top:24px;max-width:240px}.welcome-heading .eyebrow{font-size:6px!important;letter-spacing:.12em;margin-bottom:9px}.welcome-heading h2{font-size:37px}.welcome-heading>p:last-child{display:none}.court-foot{padding-top:22px;font-size:6px}.racket-art{width:220px;right:-28px;bottom:7px;opacity:.75}.court-lines{bottom:-370px;right:-65px}.welcome-form{padding:30px 26px 28px}.welcome-form>.eyebrow{margin-bottom:13px;font-size:7px!important}.welcome-form h1{font-size:36px;margin-bottom:13px}.welcome-form h1 br{display:none}.welcome-intro{font-size:13px;line-height:1.7!important;margin-bottom:22px}.welcome-intro br{display:none}.welcome-benefits{font-size:8px;margin:17px 0}.welcome-note{font-size:10px;padding-top:16px}.privacy-link{font-size:9px;margin-top:12px}.auth-message{font-size:10px}.auth-gate:not(.welcome){padding:25px;margin:20px auto}.auth-gate:not(.welcome) h1{font-size:31px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.captain-dashboard:not([hidden]),#scoreEditor:not([hidden]){animation:court-enter .3s both}

@media(max-width:520px){#btnSaved{display:none}.sync-pill #syncLabel{display:block;font-size:10px}.sync-pill{margin-left:auto}.sync-pill::after{content:none}}

/* One front door: choose a league and open an upcoming match. */
#navFixtures,#navScore{display:none}.simple-heading{padding:20px 0 12px}.simple-heading h2{font-size:34px!important}.simple-heading .eyebrow{color:var(--home)}.match-filters{display:grid;grid-template-columns:1fr 1fr;gap:16px;background:var(--card);padding:22px;border:1px solid var(--line);border-radius:18px}.match-filters label,.account-team-view label{display:block;font-size:13px;font-weight:700;margin-bottom:8px}.match-filters select{width:100%;font-size:16px}.upcoming-list{margin-top:18px;background:var(--card);border:1px solid var(--line);border-radius:18px;padding:0 24px}.upcoming-list .fixture-card{padding:22px 0;font-size:18px}.upcoming-list .fixture-card small{font-size:13px;margin-top:8px}.upcoming-list .fixture-card:last-child{border-bottom:0}.upcoming-list .mini{background:var(--court);color:var(--lime);white-space:nowrap}.upcoming-list>.hint{padding:20px 0}.account-team-view{margin-bottom:24px}.setup-reminders{margin:20px 0}.setup-reminders summary{cursor:pointer;font-size:14px;color:var(--muted)}
@media(max-width:520px){.simple-heading{padding:14px 0 8px}.match-filters{padding:16px;gap:12px}.match-filters label{font-size:12px}.upcoming-list{padding:0 17px}.upcoming-list .fixture-card{flex-direction:column;align-items:stretch;gap:14px;font-size:19px}.upcoming-list .mini{width:100%}.home-section-title #matchCount{display:block;font-size:11px}.bar-in #btnNew{display:none}.app-nav .mini{font-size:11px}}

.match-status{display:table;margin-top:10px;padding:4px 9px;border-radius:6px;background:var(--chip);font-size:11px;font-weight:700;color:var(--muted)}.match-status.uploaded{background:#d9ebd4;color:#214b2a}.match-status.completed{background:#fff0c4;color:#6b4c09}.past-matches{margin:24px 0}.past-matches>summary{font-size:14px;font-weight:700;cursor:pointer}.grid2>*{min-width:0}#fDate{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;min-height:50px;font-size:16px;line-height:1.4;color:var(--ink);padding:12px;appearance:none;-webkit-appearance:none}#fDate::-webkit-date-and-time-value{text-align:left;min-height:1.4em}#fDate::-webkit-calendar-picker-indicator{opacity:.8;flex-shrink:0}:root[data-theme="dark"] #fDate{color-scheme:dark}:root[data-theme="light"] #fDate{color-scheme:light}@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) #fDate{color-scheme:dark}}

/* Fixture whose date differs between the league sheet and the league site. */
.fixture-card.date-check{border-left:4px solid #d99a1e;padding-left:14px}
.date-check-note{margin:8px 0 0;padding:8px 10px;border-radius:10px;background:#fff0c4;color:#6b4c09;font-size:12.5px;font-weight:600;line-height:1.4}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .date-check-note{background:#4a3a12;color:#ffe6a3}}
:root[data-theme="dark"] .date-check-note{background:#4a3a12;color:#ffe6a3}

/* A finished card whose score differs from the league site. */
.match-status.mismatch{background:#fde2dc;color:#8a2a17}.uploadstate.mismatch{background:#fde2dc;color:#8a2a17;border-radius:10px;padding:10px 12px}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .match-status.mismatch,:root:not([data-theme="light"]) .uploadstate.mismatch{background:#4d2018;color:#ffcfc4}}
:root[data-theme="dark"] .match-status.mismatch,:root[data-theme="dark"] .uploadstate.mismatch{background:#4d2018;color:#ffcfc4}

/* Player stats */
.st-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 4px}
.st-fact{background:var(--chip);border-radius:14px;padding:12px 10px;min-width:0}
.st-fact b{display:block;font-size:20px;line-height:1.15;color:var(--ink);font-variant-numeric:tabular-nums}
.st-fact span{display:block;font-size:12px;color:var(--muted);margin-top:4px;line-height:1.3}
.st-title{margin:22px 0 6px;font-size:15px}
.st-list{display:flex;flex-direction:column}
.st-row{padding:10px 0;border-bottom:1px solid var(--line2)}
.st-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.st-name{font-weight:700;font-size:15px;min-width:0}
.st-value{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.st-bar{height:10px;border-radius:5px;background:var(--line);margin:8px 0 6px;overflow:hidden}
.st-bar span{display:block;height:100%;border-radius:5px;background:var(--home)}
.st-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12.5px;color:var(--muted)}
.st-form{display:flex;gap:4px;flex-wrap:wrap;margin-top:6px}.st-meta .st-form{margin-top:0}
.st-chip{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:7px;font-size:12px;font-weight:800}
.st-chip.won{background:var(--home);color:var(--card)}
.st-chip.lost{background:transparent;color:var(--muted);border:1.5px solid var(--line)}
.st-chip.open{background:transparent;color:var(--muted);border:1.5px dashed var(--line)}
.st-note{margin-top:16px}
.stats-pick{display:block;margin:8px 0;font-size:13px;font-weight:700}.stats-pick select{display:block;width:100%;margin-top:4px}

/* iPhone date fields have a built-in minimum width and ignore width:100%, so in a
   two-column layout they overflow into each other. Switch off the native box. */
input[type="date"]{-webkit-appearance:none;appearance:none;display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;min-height:46px;text-align:left}
input[type="date"]::-webkit-date-and-time-value{text-align:left;margin:0}
.league-filters>div{min-width:0}

/* Club night */
.cn-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.cn-form label{display:block;font-size:13px;font-weight:700;min-width:0}.cn-form select,.cn-form input{display:block;width:100%;margin-top:4px;box-sizing:border-box}
.cn-form .cn-wide{grid-column:1/-1}
.cn-sub{margin:22px 0 8px;font-size:16px}
.cn-courts{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin:12px 0}
.cn-court{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px}
.cn-court h4{margin:0 0 8px;font-size:14px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.cn-teams{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin-bottom:10px}
.cn-side{margin:0;font-weight:800;font-size:16px;line-height:1.3}.cn-teams .cn-side:last-child{text-align:right}
.cn-vs{margin:0;color:var(--muted);font-weight:700}
.cn-score{display:grid;grid-template-columns:64px 1fr 64px;align-items:center;gap:8px;margin-bottom:10px}
.cn-score input{width:100%;box-sizing:border-box;text-align:center;font-size:18px;font-weight:700}
.cn-score span{text-align:center;font-size:12px;color:var(--muted)}
.cn-court .actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.cn-court .actions .btn{min-height:48px;white-space:normal;line-height:1.2}
.cn-court .text-button{margin-top:8px}
.cn-add{display:flex;gap:8px;margin-bottom:8px}.cn-add input{flex:1;min-width:0}
.cn-player{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line2)}
.cn-player.paused{opacity:.6}
.cn-who{flex:1;min-width:0}.cn-who b{display:block}.cn-who small{color:var(--muted)}
.cn-level{display:inline-grid;place-items:center;min-width:36px;height:28px;padding:0 6px;border-radius:8px;background:var(--chip);font-size:12px;font-weight:800}

/* Badminton helper */
.helper-ideas{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
#helperQuestion{display:block;width:100%;box-sizing:border-box;margin:4px 0 10px;font:inherit}
.helper-answer{background:var(--chip);border-radius:14px;padding:12px 14px;margin-top:12px;line-height:1.5}
.helper-answer p{margin:0 0 10px}.helper-answer p:last-child{margin:0}
.helper-q{font-weight:700;color:var(--muted)}
.cn-add .btn{width:auto;flex:0 0 auto;padding-left:22px;padding-right:22px}.cn-add input{flex:1 1 auto;min-width:0;width:auto}

/* Club night shortcut on the Matches screen */
.club-night-link{display:flex;align-items:center;gap:14px;width:100%;margin:14px 0 22px;padding:16px 18px;border:1px solid var(--line);border-radius:18px;background:var(--card);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.club-night-link .ui-icon{width:36px;height:36px;padding:8px;border-radius:12px;background:var(--home);color:var(--card);flex-shrink:0}
.club-night-link b{display:block;font-size:16px}.club-night-link small{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.club-night-link:active{transform:scale(.99)}

/* Fields on the Club night page and the helper box: use the app's colours in light
   and dark mode (they were inheriting light text on the browser's white background). */
.cn-form input,.cn-form select,.cn-add input,.cn-score input,#helperQuestion{
  background-color:var(--floor);color:var(--ink);border:1.5px solid var(--line);border-radius:12px;
  padding:10px 12px;min-height:46px;box-sizing:border-box;font-size:16px;-webkit-text-fill-color:var(--ink)}
.cn-form select{padding-right:34px}
.cn-form input::placeholder,.cn-add input::placeholder,.cn-score input::placeholder,#helperQuestion::placeholder{color:var(--muted);-webkit-text-fill-color:var(--muted);opacity:1}
.cn-form input:focus,.cn-form select:focus,.cn-add input:focus,.cn-score input:focus,#helperQuestion:focus{outline:3px solid var(--focus);outline-offset:1px;border-color:var(--home)}
/* Score boxes: no spinner arrows, just a big number */
.cn-score input{appearance:textfield;-moz-appearance:textfield;padding:8px 4px;font-size:20px;font-weight:800}
.cn-score input::-webkit-outer-spin-button,.cn-score input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
/* Player name: keep suggestions while typing, hide the grey dropdown button */
.cn-add input::-webkit-calendar-picker-indicator{display:none!important;opacity:0}

/* Scorecard player names: keep suggestions while typing, hide the grey dropdown button */
.prow input::-webkit-calendar-picker-indicator{display:none!important;opacity:0}
a.st-name{color:inherit;text-decoration:underline;text-underline-offset:3px}
.fixture-card a.text-button{display:inline-block;margin-top:8px;font-size:13px;font-weight:700}

/* View-only scorecard: entered by someone else */
.lock-note{margin:0 0 12px;padding:10px 12px;border-radius:12px;background:var(--chip);color:var(--ink);font-weight:700;font-size:14px}
body.card-locked #scoreEditor input,body.card-locked #scoreEditor select,body.card-locked #scoreEditor textarea,body.card-locked #scoreEditor .pad{opacity:.55;filter:grayscale(1)}
body.card-locked #btnSaveClose,body.card-locked #saveCloseHint,body.card-locked #btnUploaded,body.card-locked #scoreEditor .award,body.card-locked #scoreEditor .padrow button,body.card-locked #btnSwap,body.card-locked #undoEdit,body.card-locked #redoEdit{display:none!important}

/* Club night: time left, who's next, timers */
.cn-time{font-weight:800;margin:4px 0 10px}.cn-next{margin:10px 0;padding:10px 12px;border-radius:12px;background:var(--chip);font-size:14px}
.cn-next b{display:block;font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:2px}
.cn-check{display:flex;align-items:center;gap:8px;font-size:13px;margin:6px 0}.cn-check input{width:auto;min-height:0}
.cn-timer{float:right;font-size:12px;font-weight:700;color:var(--muted)}.cn-timer.long{color:#b5651d}
.cn-group{margin:10px 0;padding:10px;border:1px solid var(--line);border-radius:12px}.cn-group h4{margin:0 0 6px}
.cn-move{min-width:0;width:auto;max-width:160px;font-size:13px;padding:6px}
