:root{color-scheme:dark;--bg:#080b0f;--panel:#11171e;--panel2:#18212b;--line:#2a3643;--text:#f7f9fc;--muted:#9eacba;--blue:#4c8dff;--lime:#b8ef59}*{box-sizing:border-box}html{background:var(--bg);scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select{font:inherit;color:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}main{width:min(100%,960px);margin:auto;padding:0 15px 45px}.mast{height:74px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;border:0;background:none;padding:0;text-align:left}.brand i{display:grid;place-items:center;width:43px;height:43px;border-radius:11px;background:var(--blue);font-style:normal;font-weight:950}.brand span,.brand b,.brand small{display:block}.brand b{font-size:18px}.brand small{color:var(--muted);font-size:12px}.mast em{font-style:normal;color:var(--lime);font-size:11px;font-weight:900;letter-spacing:.09em;border:1px solid var(--line);border-radius:8px;padding:7px 9px}main>nav{position:sticky;top:0;z-index:10;display:grid;grid-template-columns:repeat(4,1fr);gap:3px;margin:10px 0;padding:5px;border:1px solid var(--line);border-radius:13px;background:#0d1219e8;backdrop-filter:blur(14px)}main>nav button{min-height:46px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-weight:800}main>nav .on{background:var(--blue);color:white}.hero{padding:40px 2px 27px}.hero>span,.title span,.head>span,.records span,.docs span,.eyebrow{color:var(--lime);font-size:12px;font-weight:900;letter-spacing:.11em}.hero h1,.head h1,.admin h1{max-width:780px;margin:8px 0 10px;font-size:clamp(40px,8vw,66px);line-height:.98;letter-spacing:-.055em}.hero p,.head p,.lede{margin:0;color:var(--muted);font-size:18px}.summary{display:flex;gap:8px;margin-top:24px}.summary div{flex:0 1 115px;padding:12px 14px;border:1px solid var(--line);border-radius:11px;background:var(--panel)}.summary b,.summary small{display:block}.summary b{font-size:26px}.summary small{color:var(--muted)}.section{margin-top:24px}.title{display:flex;align-items:end;justify-content:space-between;margin:0 2px 12px}.title h2{margin:3px 0 0;font-size:29px;letter-spacing:-.035em}.title>button{border:0;background:none;color:var(--blue);font-weight:800}.division-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.division,.leaders,.bowler-list{overflow:hidden;border:1px solid var(--line);border-radius:13px;background:var(--panel)}.division>header{display:flex;justify-content:space-between;padding:11px 14px;background:var(--panel2)}.division header small{color:var(--muted)}.division>button,.team>button{width:100%;display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:9px;padding:13px 14px;border:0;border-top:1px solid var(--line);background:transparent;text-align:left}.division button>strong{color:var(--muted)}.division button span b,.division button span small,.team button span b,.team button span small{display:block}.division button span small,.team button span small{color:var(--muted);font-size:12px}.division button em,.team button em{font-style:normal;font-weight:900}.team{border-top:1px solid var(--line)}.team>button{border:0}.leaders>div{display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:9px;padding:14px;border-top:1px solid var(--line)}.leaders>div:first-child{border:0}.leaders span b,.leaders span small{display:block}.leaders span small{color:var(--muted);font-size:12px}.leaders em{font-size:20px;font-style:normal;font-weight:900}.records{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:10px}.records article{padding:17px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}.records b{display:block;font-size:29px;margin:5px 0}.records p{margin:0;color:var(--muted)}.page{padding-top:28px}.head{padding:0 2px 22px}.head h1{font-size:45px}.roster{padding:0 14px 8px 53px;background:#0b1117}.roster>div{display:flex;justify-content:space-between;padding:11px 0;border-top:1px solid var(--line)}.roster span b,.roster span small,.roster>div>strong small{display:block}.roster span small,.roster>div>strong small{color:var(--muted);font-size:11px}.tools{display:grid;grid-template-columns:1fr 165px auto;gap:8px;margin-bottom:10px}.tools>input,.tools>select{min-height:49px;border:1px solid var(--line);border-radius:10px;background:var(--panel);padding:0 13px}.tools label{display:flex;align-items:center;gap:7px;color:var(--muted)}.bowler-list>header,.bowler-list>div{display:grid;grid-template-columns:minmax(180px,1fr) 75px 60px 60px;align-items:center;gap:7px;padding:13px 15px}.bowler-list>header{background:var(--panel2);color:var(--muted);font-size:11px;font-weight:900}.bowler-list>div{border-top:1px solid var(--line)}.bowler-list>div>span:first-child b,.bowler-list>div>span:first-child small{display:block}.bowler-list>div>span:first-child small{color:var(--muted);font-size:12px}.bowler-list>div>*:not(:first-child),.bowler-list>header>*:not(:first-child){text-align:right}.rulebox{padding:16px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}.rulebox label{display:block;font-size:18px;font-weight:850;margin-bottom:9px}.rulebox form>div{display:flex}.rulebox input{width:100%;min-height:50px;border:1px solid var(--line);border-radius:9px 0 0 9px;background:#090d12;padding:0 13px}.rulebox form button{border:0;border-radius:0 9px 9px 0;background:var(--blue);font-weight:850;padding:0 17px}.rulebox article{margin-top:12px;padding:14px;border-left:4px solid var(--lime);background:#0b1117}.rulebox article>b{text-transform:capitalize;color:var(--lime)}.rulebox article p{margin:5px 0}.rulebox article small{color:var(--muted)}.chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.chips button{padding:8px 11px;border:1px solid var(--line);border-radius:99px;background:var(--panel2)}.docs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.docs a{min-height:145px;display:flex;flex-direction:column;padding:17px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}.docs b{font-size:21px;margin-top:auto}.docs small{color:var(--blue);font-weight:800;margin-top:8px}footer{display:flex;justify-content:space-between;padding:30px 2px 0;color:var(--muted);font-size:13px}footer b{color:white}.admin{max-width:850px}.admin>header{display:flex;justify-content:space-between;padding:22px 0;border-bottom:1px solid var(--line)}.admin>header a{color:var(--blue)}.admin>header span{font-size:11px;color:var(--lime);font-weight:900}.admin>section{padding:35px 0}.admin h1{font-size:48px}.admin-settings{display:grid;grid-template-columns:1fr 150px 1fr;gap:9px;margin:25px 0 12px}.admin-settings label{color:var(--muted);font-size:12px;font-weight:800}.admin-settings input,.admin-settings select,.admin-row input{width:100%;min-height:47px;margin-top:5px;border:1px solid var(--line);border-radius:9px;background:var(--panel);padding:0 12px}.admin-list{border:1px solid var(--line);border-radius:13px;overflow:hidden}.admin-head,.admin-row{display:grid;grid-template-columns:55px 1fr 1fr;gap:9px;align-items:center;padding:10px 13px}.admin-head{background:var(--panel2);color:var(--muted);font-size:11px;font-weight:900}.admin-row{border-top:1px solid var(--line)}.admin-row input{margin:0}.save{width:100%;min-height:50px;margin-top:12px;border:0;border-radius:10px;background:var(--blue);font-weight:900}.save-message{color:var(--lime)}@media(max-width:650px){main{padding-inline:11px}.mast{height:67px}.brand small{display:none}main>nav{margin-inline:-2px}main>nav button{font-size:14px}.hero{padding:29px 2px 20px}.hero h1{font-size:42px}.hero p,.head p,.lede{font-size:16px}.division-grid,.records,.docs{grid-template-columns:1fr}.head h1,.admin h1{font-size:38px}.tools{grid-template-columns:1fr 125px}.tools label{grid-column:1/-1;padding:4px 2px}.bowler-list{overflow-x:auto}.bowler-list>header,.bowler-list>div{min-width:480px}.rulebox form>div{display:block}.rulebox input,.rulebox form button{width:100%;border-radius:9px}.rulebox form button{min-height:47px;margin-top:7px}.admin-settings{grid-template-columns:1fr 1fr}.admin-settings label:last-child{grid-column:1/-1}.admin-head{display:none}.admin-row{grid-template-columns:42px 1fr}.admin-row input:last-child{grid-column:2}.admin-row{padding:10px}footer{display:block}footer span{display:block;margin-top:4px}}

/* Readability and density refresh */
.team>button{grid-template-columns:28px minmax(0,1fr) 42px 96px}.team>button>em{text-align:right}.team>button>em small{display:block;color:var(--muted);font-size:9px;letter-spacing:.08em}.team-action{display:flex;align-items:center;justify-content:flex-end;gap:7px;color:var(--blue);font-size:12px;font-weight:850;white-space:nowrap}.chevron{width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .18s ease}.chevron.up{transform:rotate(225deg) translate(-1px,-1px)}.division button:focus-visible,.team button:focus-visible,main>nav button:focus-visible{outline:3px solid var(--lime);outline-offset:-3px}.hero h1{max-width:690px}.summary{max-width:365px}.page{padding-top:22px}.head{padding-bottom:17px}
@media(max-width:650px){body{font-size:15px}.mast{height:62px}.brand i{width:38px;height:38px}.brand b{font-size:16px}.mast em{padding:5px 7px}main>nav{margin-top:7px;margin-bottom:7px;padding:4px}main>nav button{min-height:41px;font-size:13px}.hero{padding:22px 2px 16px}.hero h1{font-size:34px;line-height:1.02;margin-block:6px 8px}.hero>span,.title span,.head>span,.records span{font-size:10px}.hero p{font-size:15px;line-height:1.35}.summary{margin-top:15px;gap:0;border:1px solid var(--line);border-radius:10px;background:var(--panel);overflow:hidden}.summary div{flex:1;padding:8px 10px;border:0;border-left:1px solid var(--line);border-radius:0;background:transparent}.summary div:first-child{border-left:0}.summary b{font-size:20px}.summary small{font-size:11px}.section{margin-top:18px}.title{margin-bottom:8px}.title h2{font-size:22px}.title>button{font-size:12px}.section .division-grid{grid-template-columns:1fr 1fr;gap:7px}.division>header{padding:8px 9px;font-size:12px}.division>header small{font-size:9px}.section .division>button{grid-template-columns:20px minmax(0,1fr) auto;gap:4px;padding:8px 9px}.section .division button span b{font-size:12px;line-height:1.15}.section .division button span small{display:none}.section .division button em{font-size:12px}.leaders>div{padding:10px 12px}.leaders em{font-size:16px}.records{grid-template-columns:repeat(3,1fr);gap:7px}.records article{padding:11px 9px}.records b{font-size:21px;margin:3px 0}.records p{font-size:10px;line-height:1.25}.page{padding-top:18px}.head{padding-bottom:14px}.head h1{font-size:31px;margin-block:5px 7px}.head p{font-size:14px}.page .division-grid{grid-template-columns:1fr}.team>button{grid-template-columns:24px minmax(0,1fr) 38px 88px;padding:10px 11px;gap:6px}.team>button span b{font-size:14px}.team-action{font-size:11px}.roster{padding-left:41px}.roster>div{padding:9px 0}.tools>input,.tools>select{min-height:43px}.bowler-list{overflow:hidden}.bowler-list>header,.bowler-list>div{min-width:0;grid-template-columns:minmax(128px,1fr) 53px 39px 44px;padding:10px 9px;gap:4px}.bowler-list>header{font-size:9px}.bowler-list>div>span:first-child b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bowler-list>div>span:first-child small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bowler-list>div>strong{font-size:14px}.bowler-list>div>span:not(:first-child){font-size:13px}}

.season-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:22px 0 18px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(100deg,var(--panel),#121c27)}.season-bar>div{display:flex;align-items:baseline;gap:12px}.season-bar span{color:var(--lime);font-size:11px;font-weight:900;letter-spacing:.1em}.season-bar b{font-size:18px}.season-bar>small{color:var(--muted);font-size:13px;white-space:nowrap}
@media(max-width:650px){.season-bar{margin:13px 0 14px;padding:11px 12px}.season-bar>div{display:block}.season-bar span,.season-bar b{display:block}.season-bar b{font-size:16px;margin-top:2px}.season-bar>small{font-size:11px}}
.rulebox form button{white-space:nowrap;min-width:108px}

/* Final accessibility polish */
.division button:focus-visible,.team button:focus-visible{outline:2px solid var(--lime);outline-offset:-2px}main>nav button:focus-visible{outline:2px solid #8db8ff;outline-offset:-3px}.bowler-list>header{position:static}.sub-toggle{cursor:pointer;user-select:none}.sub-toggle input{position:absolute;opacity:0;pointer-events:none}.sub-toggle>span{position:relative;width:38px;height:22px;flex:0 0 auto;border:1px solid var(--line);border-radius:99px;background:#0b1117;transition:.18s ease}.sub-toggle>span:after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:var(--muted);transition:.18s ease}.sub-toggle input:checked+span{border-color:var(--blue);background:var(--blue)}.sub-toggle input:checked+span:after{left:19px;background:white}.sub-toggle input:focus-visible+span{outline:2px solid #8db8ff;outline-offset:2px}.sub-toggle b{font-weight:500}
@media(max-width:650px){.division button span small,.team button span small,.roster span small,.bowler-list>div>span:first-child small{font-size:11px}.team>button>em small{font-size:10px}.docs a{min-height:104px;padding:14px 16px}.docs b{font-size:18px}.docs small{margin-top:5px}.sub-toggle{min-height:34px}}.login{max-width:480px;display:grid;gap:12px;margin-top:24px}.login label{display:grid;gap:5px;color:var(--muted);font-size:13px;font-weight:800}.login input{min-height:48px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:white;padding:0 13px}.admin a{color:var(--blue)}
/* Admin workspace refresh */
.admin{max-width:940px}.admin-nav{position:static;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:18px 0 0;padding:5px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.admin-nav a{display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:8px;border-radius:8px;color:var(--muted);font-size:14px;font-weight:850;text-align:center}.admin-nav a.on{background:var(--blue);color:#fff}.admin-nav small{padding:2px 5px;border:1px solid currentColor;border-radius:99px;font-size:8px;letter-spacing:.06em;text-transform:uppercase}.admin-alert{margin:16px 0 0;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.admin-alert.error{border-color:#8d3e49;color:#ffabb5}.admin-alert.success{border-color:#5f7832;color:var(--lime)}.admin-period{display:grid;grid-template-columns:1fr 165px 90px;gap:9px;align-items:end;margin:25px 0 12px}.admin-period label,.division-name-grid label,.admin-row label{color:var(--muted);font-size:12px;font-weight:800}.admin-period input,.admin-period select,.division-name-grid input,.admin-row input,.admin-row select{width:100%;min-height:47px;margin-top:5px;border:1px solid var(--line);border-radius:9px;background:var(--panel);padding:0 12px}.admin-period button{min-height:47px;border:1px solid var(--line);border-radius:9px;background:var(--panel2);font-weight:850}.division-editor{margin:18px 0 14px;padding:15px;border:1px solid var(--line);border-radius:12px;background:#0c1117}.division-editor legend{padding:0 7px;color:var(--lime);font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.division-name-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.admin-row label{display:block}.admin-row select{margin:0}.mobile-label{display:none}.admin-callout{margin:20px 0;padding:16px 18px;border:1px solid #395477;border-left:4px solid var(--blue);border-radius:10px;background:#101925}.admin-callout p{margin:5px 0 0;color:var(--muted)}.upload-card{margin-top:14px;padding:18px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}.file-drop{display:grid;gap:4px;padding:20px;border:1px dashed #53749b;border-radius:10px;background:#0b1118}.file-drop span{font-size:18px;font-weight:900}.file-drop small{color:var(--muted)}.file-drop input{margin-top:12px}.file-requirements{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.file-requirements>div{padding:13px;border:1px solid var(--line);border-radius:9px;background:#0c1117}.file-requirements strong{display:block;margin-bottom:7px}.file-requirements code{display:inline-block;margin:3px 4px 3px 0;padding:4px 6px;border-radius:5px;background:var(--panel2);color:#b8d9ff}.file-requirements p{margin:9px 0 0;color:var(--muted);font-size:13px}.admin-subhead{display:flex;align-items:end;justify-content:space-between;margin:30px 0 10px}.admin-subhead h2{margin:3px 0 0}.status{display:inline-flex;align-items:center;padding:5px 8px;border-radius:99px;font-size:10px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}.status.planned{border:1px solid var(--line);color:var(--muted)}.status.received{background:#263b20;color:var(--lime)}.empty-state{padding:25px;border:1px dashed var(--line);border-radius:10px;color:var(--muted);text-align:center}.import-list{overflow:hidden;border:1px solid var(--line);border-radius:11px}.import-list article{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 14px;border-top:1px solid var(--line);background:var(--panel)}.import-list article:first-child{border:0}.import-list strong,.import-list small{display:block}.import-list small{margin-top:3px;color:var(--muted);font-size:11px}.roadmap-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}.roadmap-grid article{display:flex;gap:12px;padding:17px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.roadmap-grid article>span{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:50%;background:var(--blue);font-weight:950}.roadmap-grid p{margin:4px 0 0;color:var(--muted);font-size:14px}.future-note{display:flex;align-items:center;gap:9px;color:var(--muted)}
@media(max-width:650px){.admin-nav{grid-template-columns:1fr;margin-top:12px}.admin-nav a{min-height:41px}.admin>section{padding-top:25px}.admin-period{grid-template-columns:1fr 1fr}.admin-period button{grid-column:1/-1}.division-name-grid{grid-template-columns:1fr 1fr}.admin-row{grid-template-columns:30px 1fr}.admin-row label:last-child{grid-column:2}.mobile-label{display:block;margin-bottom:4px}.admin-row input,.admin-row select{margin:0}.file-requirements,.roadmap-grid{grid-template-columns:1fr}.upload-card{padding:12px}.file-drop{padding:15px}.future-note{align-items:flex-start}}

/* Weekly review and approval */
.import-period{display:grid;grid-template-columns:1fr 180px;gap:9px;margin-bottom:14px}.import-period label{color:var(--muted);font-size:12px;font-weight:800}.import-period input,.import-period select{width:100%;min-height:47px;margin-top:5px;border:1px solid var(--line);border-radius:9px;background:#0b1118;padding:0 12px}.review-list article{align-items:flex-start}.batch-summary{display:grid;gap:3px}.batch-summary span{color:#cce1f6;font-size:13px}.batch-actions{display:grid;justify-items:end;gap:9px}.status.ready{background:#302b17;color:#ffd56a}.status.published{background:#213b2c;color:#8ef0ac}.publish{min-height:38px;padding:0 12px;border:0;border-radius:8px;background:var(--lime);color:#111;font-weight:900;white-space:nowrap}
@media(max-width:650px){.import-period{grid-template-columns:1fr 1fr}.review-list article{display:grid}.batch-actions{justify-items:start}.batch-actions form,.publish{width:100%}}.review-points{margin-top:5px}.review-points summary{color:var(--blue);font-size:12px;font-weight:800;cursor:pointer}.review-points>div{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-top:8px}.review-points span{display:flex;justify-content:space-between;gap:7px;padding:4px 6px;border:1px solid var(--line);border-radius:5px;color:var(--muted);font-size:11px}.review-points b{color:white}
@media(max-width:650px){.review-points>div{grid-template-columns:repeat(3,1fr)}}.vacant-row{opacity:.68;background:#0b1015}.vacant-row input[readonly]{color:var(--muted)}.vacant-label{display:flex;align-items:center;min-height:47px;padding:0 12px;border:1px dashed var(--line);border-radius:9px;color:var(--muted);font-size:13px;font-weight:700}
/* Weekly results */
main>nav{grid-template-columns:repeat(5,minmax(0,1fr))}
.night-callout{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:18px;border:1px solid #45632e;border-radius:13px;background:#142019;text-align:left}
.night-callout small,.night-callout b{display:block}.night-callout small{color:var(--lime);font-size:10px;font-weight:900;letter-spacing:.1em}.night-callout b{margin-top:4px;font-size:18px}.night-callout>strong{color:var(--lime);white-space:nowrap}
.night-tools{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.night-tools label{font-size:12px;color:var(--muted);font-weight:700}.night-tools select,.night-tools input{display:block;width:100%;min-height:46px;margin-top:6px;background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:8px;color:var(--text)}
.night-legend{font-size:12px;color:var(--muted);line-height:1.6;margin:16px 0}.night-grid{display:grid;grid-template-columns:1fr;gap:18px}.night-card{border:1px solid var(--line);border-radius:13px;overflow:hidden;background:var(--panel)}.night-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--panel2);padding:14px 16px}.night-card h2{font-size:21px;margin:2px 0 0;letter-spacing:-.02em}.night-card header small{color:var(--lime);font-size:11px}.night-points{white-space:nowrap;color:var(--muted);font-size:12px}.night-points b{color:var(--text);font-size:23px;margin-right:3px}.night-table{border-collapse:collapse;width:100%;table-layout:fixed}.night-table th,.night-table td{text-align:right;border-top:1px solid var(--line);padding:12px 10px;font-variant-numeric:tabular-nums}.night-table th:first-child{text-align:left;width:44%;padding-left:16px}.night-table th:last-child,.night-table td:last-child{width:19%;padding-right:16px}.night-table thead th{font-size:11px;color:var(--muted)}.night-table tbody th{font-size:14px;font-weight:600;overflow-wrap:anywhere}.night-table td{font-size:15px}.night-table td small{display:block;color:var(--muted);font-size:10px}.marked{color:var(--lime)}.muted{color:var(--muted)}.team-night-totals{display:flex;flex-wrap:wrap;gap:14px 26px;padding:14px 16px;background:#0c1219;border-top:1px solid var(--line)}.team-night-totals span{font-size:11px;color:var(--muted)}.team-night-totals b{display:block;margin-top:3px;font-size:14px;color:var(--text);font-variant-numeric:tabular-nums}.night-empty{padding:0 16px;color:var(--muted);font-size:12px}.results-link button{border:0;background:transparent;color:var(--blue);font-weight:700;padding:10px 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.division-name-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:650px){main>nav button{font-size:11px;padding:4px;line-height:1.15}.night-tools{grid-template-columns:1fr 1fr;gap:8px}.night-tools label:last-child{grid-column:1/-1}.night-callout{padding:13px}.night-callout b{font-size:15px}.night-callout>strong{font-size:12px}.night-table th,.night-table td{padding:10px 5px}.night-table th:first-child{width:41%;padding-left:10px}.night-table th:last-child,.night-table td:last-child{width:21%;padding-right:10px}.night-table tbody th{font-size:12px}.night-table td{font-size:13px}.night-card>header{padding:12px}.night-card h2{font-size:18px}.team-night-totals{padding:12px;gap:10px 18px}.team-night-totals b{font-size:12px}}

main>nav.admin-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.score-scroll{overflow-x:auto}.review-games{margin-top:12px}.review-games summary{cursor:pointer;color:var(--blue);font-weight:700}.review-games table{min-width:330px}.review-games>small{display:block;padding-top:8px}

/* Compact results and readable rows — v1.9 */
.results-page{padding-top:18px}.results-page .head{padding-bottom:14px}.results-page .head h1{font-size:32px;line-height:1.1;margin:5px 0 6px;letter-spacing:-.035em}.results-page .head p{font-size:14px}.results-page .head>span{font-size:10px}
.night-tools{gap:10px}.night-tools select,.night-tools input{min-height:40px;margin-top:4px;padding:7px 10px}.night-tools label{font-size:11px}
.score-key{margin:10px 2px 12px;color:var(--muted);font-size:11px}.score-key summary{cursor:pointer;width:fit-content;padding:3px 0}.score-key summary span{color:#c2cfdb}.score-key p{max-width:680px;margin:6px 0 0;line-height:1.5}.score-key summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:3px}
.night-grid{gap:12px;align-items:start}.night-card{min-width:0;border-radius:10px}.night-card>header{padding:10px 12px;gap:8px}.night-card h2{font-size:17px;line-height:1.2;margin-top:3px}.night-card header small{font-size:10px}.night-points{font-size:10px}.night-points b{font-size:21px}
.night-card .night-table th,.night-card .night-table td{padding:8px 8px}.night-card .night-table th:first-child{width:44%;padding-left:12px}.night-card .night-table th:last-child,.night-card .night-table td:last-child{width:19%;padding-right:12px}.night-card .night-table thead th{padding-top:7px;padding-bottom:7px;font-size:10px}.night-card .night-table tbody th{font-size:12px;font-weight:600}.night-card .night-table td{font-size:13px}.night-card .night-table td small{font-size:9px;line-height:1.2;margin-top:2px}
.night-table tbody tr:nth-child(odd){background:#111922}.night-table tbody tr:nth-child(even){background:#1a2531}.night-table tbody tr:hover,.night-table tbody tr:focus-within{background:#263e54}.night-table tbody tr:hover>th:first-child{box-shadow:inset 3px 0 var(--blue)}
.team-night-totals{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;padding:9px 12px}.team-night-totals span{font-size:9px;line-height:1.3}.team-night-totals b{font-size:11px;margin-top:4px;white-space:nowrap}.night-empty{font-size:11px;line-height:1.5}.results-page>.night-legend{margin:12px 2px;font-size:11px}
.bowler-list>div:nth-of-type(even),.leaders>div:nth-child(even),.roster>div:nth-child(even){background:#18232e}.bowler-list>div:hover,.leaders>div:hover,.roster>div:hover{background:#263e54}.division>button:nth-of-type(even),.division>.team:nth-of-type(even){background:#16212b}.division>button:hover,.team>button:hover,.team>button:focus-visible{background:#263e54}
@media(min-width:850px){.night-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.night-grid.single-team{grid-template-columns:minmax(0,1fr);max-width:660px}}
@media(max-width:650px){.results-page{padding-top:12px}.results-page .head h1{font-size:27px}.results-page .head p{font-size:13px}.night-tools select,.night-tools input{min-height:43px}.night-grid{gap:10px}.night-card .night-table th,.night-card .night-table td{padding:9px 5px}.night-card .night-table th:first-child{padding-left:10px;width:42%}.night-card .night-table th:last-child,.night-card .night-table td:last-child{padding-right:10px;width:20%}.team-night-totals{padding:9px 10px;gap:6px}.team-night-totals b{font-size:10px}}

/* Teams: keep expanded rosters tidy without stretching adjacent divisions. */
.page .division-grid{align-items:start}
.roster{padding:0 0 8px;background:#0b1117}
.roster>div{margin:0;padding:10px 14px 10px 53px;gap:14px;border-top:1px solid var(--line)}
.roster>div>span{min-width:0}.roster>div>span>b{overflow-wrap:anywhere}
.roster>div>strong{flex-shrink:0;text-align:right}
@media(max-width:650px){.roster{padding:0 0 6px}.roster>div{padding:9px 11px 9px 41px}}

/* Matched opponents and individual points */
.matchup{margin:0 0 18px;border:1px solid #34485b;border-radius:12px;overflow:hidden;background:#0c1219}.matchup-header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;background:#1c2c3b;font-size:12px}.matchup-header>b{color:var(--lime);font-size:20px;white-space:nowrap}.matchup-header small{font-size:10px}.matchup .night-grid{gap:0;align-items:stretch}.matchup .night-card{border:0;border-radius:0}.matchup .night-card+article{border-left:1px solid var(--line)}.match-note{font-size:11px;color:var(--muted);padding:10px 12px;margin:0;border-top:1px solid var(--line)}.match-details{border-top:1px solid var(--line)}.match-details summary{padding:12px;color:var(--blue);font-size:12px;font-weight:700;cursor:pointer}.match-details summary span{color:var(--lime);font-size:10px;margin-left:8px}.h2h-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}.h2h-table caption{text-align:left;padding:10px 12px;background:#18212b;color:var(--lime);font-weight:700}.h2h-table th,.h2h-table td{padding:9px 8px;text-align:center;border-bottom:1px solid var(--line)}.h2h-table th:first-child,.h2h-table th:last-child{width:30%;text-align:left;overflow-wrap:anywhere}.h2h-table thead th{color:var(--muted);font-size:10px}.h2h-table tbody tr:nth-child(even){background:#1a2531}.h2h-table tbody tr:hover{background:#263e54}.night-card .night-table th:first-child{width:39%}.night-card .night-table th:last-child,.night-card .night-table td:last-child{width:10%;padding-right:10px}.individual-points{color:var(--lime);font-weight:700}.night-card .night-table td:nth-last-child(2){font-weight:700}.night-card .night-table td small{font-weight:400}.matchup .night-card>header{min-height:67px}
@media(max-width:849px){.matchup .night-card+article{border-left:0;border-top:2px solid #34485b}.matchup .night-grid{grid-template-columns:1fr}.matchup-header{font-size:11px}.h2h-table{font-size:11px}.h2h-table th,.h2h-table td{padding:8px 4px}.night-card .night-table th:first-child{width:38%}.night-card .night-table td{font-size:12px}.night-card .night-table th:last-child,.night-card .night-table td:last-child{width:11%;padding-right:8px}}

/* Mobile navigation, aligned point totals and expanded rosters — v1.11 */
main>nav button{white-space:nowrap;min-width:0;padding-inline:5px}
.night-table tfoot{background:#152534}.night-card .night-table tfoot th,.night-card .night-table tfoot td{font-size:11px;padding-top:7px;padding-bottom:7px;color:#ccdcea}.night-card .night-table tfoot th{font-weight:600}.night-card .night-table tfoot .points-total>*{background:#203b37;color:#d5ff9c;font-weight:800;border-top:2px solid #55764a;font-size:12px}.night-table tfoot td:empty{background:transparent}
.team.expanded>button{background:#263e54;box-shadow:inset 3px 0 var(--blue)}.team.expanded .roster{background:#253647;padding-bottom:0;border-top:1px solid #59718a}.team.expanded .roster>div{background:#253647;border-top:1px solid #41586d;padding-left:24px;padding-right:18px}.team.expanded .roster>div:nth-child(even){background:#2e4256}.team.expanded .roster>div:hover{background:#3b536b}.team.expanded .roster small{color:#c5d7e7}.team.expanded .roster b,.team.expanded .roster strong{color:#fff}
@media(max-width:849px){.page .division-grid{grid-template-columns:1fr}.team.expanded .roster>div{padding-left:22px}.team>button{grid-template-columns:24px minmax(0,1fr) 42px 90px}}
@media(max-width:650px){main>nav button{font-size:11px}.night-card .night-table tfoot th,.night-card .night-table tfoot td{font-size:10px}.night-card .night-table tfoot .points-total>*{font-size:11px}.team.expanded .roster>div{padding:11px 14px 11px 22px}.team.expanded .roster span b{font-size:14px}.team.expanded .roster span small{font-size:11px}}

/* Winning scores: inset outlines preserve compact table alignment. */
.score-outcome{display:inline-block;border-radius:5px;padding:2px 3px;margin:-2px -3px;white-space:nowrap}.score-outcome.win{outline:1.5px solid #b8ef59;background:#b8ef5917;color:#e4ffb3}.score-outcome.tie{outline:1.5px dashed #8fbfff;background:#8fbfff12;color:#d6e8ff}.legend-win,.legend-tie{display:inline-block;padding:0 4px;margin:0 3px;border-radius:4px;font-weight:700}.legend-win{border:1px solid #b8ef59;color:#d5ff9c}.legend-tie{border:1px dashed #8fbfff;color:#cde3ff}
/* Give team summaries a distinct, high-contrast panel below the bowler rows. */
.night-card .night-table tfoot tr:not(.points-total)>*{background:#2b4053;color:#edf5fc;border-bottom:1px solid #476075}
.night-card .night-table tfoot tr:nth-child(even):not(.points-total)>*{background:#25394b}
.night-card .night-table tfoot tr:first-child>*{border-top:3px solid #7898b4;padding-top:10px}
.night-card .night-table tfoot tr:not(.points-total)>th{color:#fff;font-weight:700}
main.admin-settings-page{width:min(100%,1280px);max-width:1280px;padding:24px}main.admin-settings-page>nav.admin-nav{grid-template-columns:repeat(2,minmax(0,1fr));position:static}.admin-settings-page>section{padding-top:24px}.admin-settings-page h1{font-size:36px}@media(max-width:650px){main.admin-settings-page{padding:14px}}

main>nav[aria-label="League sections"]{grid-template-columns:repeat(6,minmax(0,1fr))}.schedule-nav-link{display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--muted);font-size:14px;border-radius:9px}.schedule-nav-link:hover{background:var(--panel2);color:white}@media(max-width:650px){.schedule-nav-link{font-size:10px}main>nav[aria-label="League sections"] button{font-size:10px}}

main.admin-settings-page>nav.admin-nav{grid-template-columns:repeat(2,minmax(0,1fr))}

main>nav[aria-label="League sections"] .schedule-nav-link{min-height:46px;padding:8px 5px;border-radius:9px;line-height:1.45}

.bowler-group{margin-top:20px}.bowler-group h2{font-size:18px;margin:0 0 10px}.substitute-group{padding:15px;border:1px solid #6886a2;border-left:4px solid #87bce8;border-radius:12px;background:#142637}.substitute-group h2{color:#b9dfff}.substitute-group .bowler-list>header{background:#2b455c}.substitute-group .bowler-list>div:nth-child(odd){background:#20374a}main>nav[aria-label="League sections"] .schedule-nav-link{font-size:16px}@media(max-width:650px){main>nav[aria-label="League sections"] .schedule-nav-link{font-size:10px}.substitute-group{padding:10px}}

.point-owner{display:block;color:var(--muted);font-size:10px;font-weight:400;margin-top:3px}

/* Spare details live outside the tables so opposing score rows stay aligned. */
.spare-badge{display:inline;font-size:9px;font-weight:600;color:#b9dfff;border:1px solid #607f99;border-radius:4px;padding:1px 3px;margin-left:3px;white-space:nowrap;vertical-align:middle}
.spare-credits{display:flex;flex-wrap:wrap;gap:5px 24px;padding:9px 12px;border-top:1px solid #40596e;background:#142332;color:#b6cee3;font-size:11px;line-height:1.5}.spare-credits b{color:#e0edf8;font-weight:600}

.bowler-filters{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:12px}.bowler-filters label,.bowler-sort label{display:grid;gap:5px;font-size:12px;color:var(--muted)}.bowler-filters input,.bowler-filters select,.bowler-sort select{width:100%;min-height:44px}.bowler-sort{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:14px 0}.bowler-sort small{color:var(--muted);font-size:12px}.bowler-table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:10px}.bowler-stats{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}.bowler-stats th,.bowler-stats td{padding:10px 12px;text-align:right;border-bottom:1px solid var(--line)}.bowler-stats thead th{font-size:11px;color:var(--muted);background:var(--panel2)}.bowler-stats th:first-child{text-align:left;width:36%;min-width:150px}.bowler-stats tbody th{font-weight:400}.bowler-stats small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.bowler-stats tbody tr:nth-child(even){background:#192733}.bowler-stats tbody tr:hover{background:#243b4d}.bowler-stats .playing-average{background:#4c87ff0f;font-weight:600}.bowlers-page .substitute-group{padding:0 0 0 12px;border:0;border-left:3px solid #6886a2;border-radius:0;background:transparent}@media(max-width:650px){.bowler-filters{grid-template-columns:minmax(0,1fr) 130px}.bowler-sort{align-items:start;flex-direction:column}.bowler-stats th,.bowler-stats td{padding:9px 8px}.bowler-stats{min-width:530px}.bowler-filters input,.bowler-filters select,.bowler-sort select{font-size:16px}}

/* Match bowler filters to the shared results form controls. */
.bowler-filters input,.bowler-filters select,.bowler-sort select{display:block;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:9px;padding:7px 10px;min-height:43px;font-weight:400}.bowler-filters input::placeholder{color:var(--muted);opacity:.7}.bowler-sort select{min-width:250px;max-width:100%}@media(max-width:650px){.bowler-sort label{width:100%}.bowler-sort select{min-width:0}}

.roster-stats{display:flex;gap:18px;align-items:center;flex-shrink:0}.roster-stats strong{min-width:38px}.roster-stats small{display:block;font-size:10px;color:var(--muted)}

/* Compact mobile spreadsheet and single-row navigation. */
.bowler-short-label{display:none}
@media(max-width:650px){main>nav[aria-label="League sections"]{grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;padding:3px}main>nav[aria-label="League sections"] button{font-size:clamp(11px,3vw,13px);min-height:44px;padding:7px 0;letter-spacing:-.25px}.bowler-stats{min-width:0;width:100%;table-layout:fixed;font-size:12px}.bowler-stats th:first-child{width:31%;min-width:0}.bowler-stats th,.bowler-stats td{padding:9px 3px}.bowler-stats thead th{font-size:10px;white-space:normal}.bowler-stats tbody th{overflow-wrap:anywhere}.bowler-stats small{font-size:10px;line-height:1.3}.bowler-stats .bowler-long-label{display:none}.bowler-stats .bowler-short-label{display:inline}.bowlers-page .substitute-group{padding-left:5px}.schedule-filters label{min-width:0;width:100%;flex:auto}.schedule-tab .schedule-matchups a{font-size:13px}.schedule-week>header>div{flex-wrap:wrap}}

.footer-links{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.footer-links a{color:var(--muted);font-size:12px}.footer-links a:hover{color:var(--text);text-decoration:underline}

.leader-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.leader-board{min-width:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--panel)}.leader-board header{background:var(--panel2);padding:12px;display:flex;align-items:center;justify-content:space-between;gap:8px}.leader-board h3{font-size:15px;margin:0}.leader-board small,.leader-note{color:var(--muted);font-size:11px}.weekly-result{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px;border-top:1px solid var(--line)}.weekly-result:nth-child(3){background:var(--panel2)}.leader-label{display:block;font-size:10px;letter-spacing:.8px;color:var(--muted);margin-bottom:5px}.weekly-result b,.weekly-result small{display:block}.weekly-result b{font-size:14px}.weekly-result small{margin:3px 0 6px}.weekly-result strong{font-size:29px;color:var(--lime);font-variant-numeric:tabular-nums}.league-leaders .season-leader-title{margin-top:28px}.leader-board table{width:100%;border-collapse:collapse;font-size:13px}.leader-board th,.leader-board td{padding:10px 8px;border-top:1px solid var(--line);text-align:right;font-variant-numeric:tabular-nums}.leader-board th:nth-child(2){text-align:left}.leader-board thead th{color:var(--muted);font-size:11px;font-weight:500}.leader-board tbody th small{display:block;font-weight:400;margin-top:3px}.leader-board td:first-child{text-align:center;color:var(--muted);width:28px}.leader-board td:last-child{font-weight:750}.leader-board tbody tr:nth-child(even){background:var(--panel2)}.leader-board tbody tr:first-child td:last-child{color:var(--lime)}@media(max-width:600px){.leader-grid{grid-template-columns:1fr}}
.weekly-category{padding:14px 15px 8px;border-top:1px solid var(--line)}.weekly-category:nth-child(3){background:var(--panel2)}.weekly-category .weekly-result{padding:0;margin:7px 0 12px;border:0;background:transparent}.weekly-runners{list-style:none;padding:0;margin:0;border-top:1px solid var(--line)}.weekly-runners li{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:7px;padding:8px 0;font-size:12px}.weekly-runners li+li{border-top:1px solid var(--line)}.runner-rank{color:var(--muted);font-size:11px}.weekly-runners b{font-variant-numeric:tabular-nums}
.bowler-link:hover{text-decoration:underline;color:var(--blue)}.profile-back{color:var(--blue);font-size:13px}.profile-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px}.profile-next{background:var(--panel2);border:1px solid var(--line);border-radius:9px;padding:12px 16px}.profile-next>div{display:flex;gap:28px;margin-top:8px}.profile-next b{font-size:22px}.profile-next small,.profile-stats small{display:block;color:var(--muted);font-size:11px;font-weight:400}.profile-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;border-block:1px solid var(--line);padding:16px 0;margin:20px 0}.profile-stats b{display:block;font-size:24px;margin-top:4px}.profile-chart-panel{border:1px solid var(--line);background:var(--panel);border-radius:10px;padding:16px;margin-bottom:24px}.profile-chart-panel header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.profile-chart-panel h2{margin:0;font-size:18px}.profile-chart-panel button{padding:7px 10px;border:1px solid var(--line);border-radius:6px;background:transparent;font-size:12px}.profile-chart-panel button[aria-pressed=true]{background:var(--blue);color:white}.profile-chart-panel small{color:var(--muted)}#profile-chart svg{width:100%;display:block}#profile-chart text{fill:var(--muted);font-size:11px}.profile-history-head,.profile-night summary{display:grid;grid-template-columns:minmax(140px,1fr) repeat(3,48px) 60px 38px 55px;gap:8px;align-items:center;text-align:right;padding:12px;background:var(--panel);font-size:13px}.profile-history-head{background:var(--panel2);font-size:11px;color:var(--muted)}.profile-night summary{list-style:none;cursor:pointer;border-bottom:1px solid var(--line)}.profile-night summary>:first-child,.profile-history-head>:first-child{text-align:left}.profile-night summary small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.profile-expand{color:var(--blue);font-size:11px}.profile-night[open] .profile-expand{font-size:0}.profile-night[open] .profile-expand:after{content:'Close';font-size:11px}.profile-night-detail{padding:14px;background:var(--panel2);overflow-x:auto}.profile-night-detail table{border-collapse:collapse;width:100%;font-size:12px}.profile-night-detail td,.profile-night-detail th{padding:8px;text-align:left;border-bottom:1px solid var(--line)}.profile-night-detail p{font-size:11px;color:var(--muted)}@media(max-width:600px){.profile-heading{flex-wrap:wrap}.profile-next{width:100%}.profile-stats{grid-template-columns:repeat(3,1fr)}.profile-history-head,.profile-night summary{grid-template-columns:minmax(75px,1fr) repeat(3,28px) 37px 22px;gap:3px;padding:10px 4px;font-size:11px}.profile-expand,.profile-history-head>span:last-child{display:none}}
.league-leaders .title{flex-wrap:wrap;gap:12px}.league-leaders .leader-period-caption{display:block;color:var(--muted);font-size:11px;margin-top:5px}.leader-period-toggle{display:flex;gap:3px;padding:4px;background:var(--panel);border:1px solid var(--line);border-radius:9px}.league-leaders .title .leader-period-toggle button{font:600 13px/1.4 Inter,system-ui,sans-serif;padding:9px 14px;border:0;border-radius:6px;background:transparent;color:var(--muted);white-space:nowrap}.league-leaders .title .leader-period-toggle button[aria-pressed=true]{background:var(--blue);color:white}

.entering-average-mark{font-size:9px;font-weight:500;color:var(--muted);margin-left:2px;vertical-align:super;line-height:0}

/* Let the document scroll while each table header follows the main navigation. */
.bowlers-page .bowler-table-scroll{overflow:visible}
.bowlers-page .bowler-stats thead th{position:sticky;top:var(--bowler-header-top,58px);z-index:5;background:var(--panel2);box-shadow:0 1px 0 var(--line)}
.bowlers-page .bowler-stats thead th:first-child{border-top-left-radius:9px}
.bowlers-page .bowler-stats thead th:last-child{border-top-right-radius:9px}
/* Small interaction feedback; no scroll-triggered entrances. */
@media(prefers-reduced-motion:no-preference){main>nav[aria-label="League sections"] button,.division>button,.team>button,.bowler-stats tbody tr{transition:background-color 160ms ease,color 160ms ease}.team-arrival>button{animation:team-arrival-glow 1100ms ease-out}.team.expanded .roster{overflow:hidden}}
@keyframes team-arrival-glow{0%,35%{background-color:#304c45;box-shadow:inset 3px 0 var(--lime)}100%{box-shadow:inset 3px 0 transparent}}
.leader-period-toggle{position:relative;isolation:isolate}.leader-period-pill{position:absolute;z-index:-1;background:var(--blue);border-radius:6px;pointer-events:none}.league-leaders .title .leader-period-toggle button[aria-pressed=true]{background:transparent}.leader-period-toggle button{position:relative}
.share-stats-button{background:var(--panel2);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:9px 14px;margin-top:12px;font:inherit;font-size:13px}.stats-share-dialog{width:510px;max-width:calc(100% - 24px);max-height:90dvh;overflow:auto;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:12px;padding:20px}.stats-share-dialog::backdrop{background:#000b}.stats-share-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.stats-share-dialog h2{margin:0;font-size:20px}.stats-share-dialog button,.stats-share-dialog select{font:inherit;font-size:14px;border:1px solid var(--line);border-radius:7px;padding:9px 12px;background:var(--panel2);color:var(--text)}.stats-share-dialog button:disabled{opacity:.5}.share-card-controls{display:flex;gap:12px;margin:16px 0}.share-card-controls label{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:12px}.share-card-controls label[hidden]{display:none}.stats-share-dialog canvas{display:block;width:100%;height:auto}.share-card-actions{display:flex;gap:8px;margin-top:16px}.share-card-actions button:first-child{background:var(--blue);color:white}.share-card-status{font-size:12px;color:var(--muted);margin-bottom:0}

.stats-share-overlay{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;background:#000b;padding:12px;box-sizing:border-box}.stats-share-overlay .stats-share-dialog{box-sizing:border-box;max-width:100%;max-height:90dvh}

/* Profile chart and game breakdown polish. */
.profile-chart-toggle{position:relative;isolation:isolate;display:grid;grid-template-columns:1fr 1fr;padding:3px;gap:3px;border:1px solid var(--line);border-radius:9px;background:#0c131b}.profile-chart-toggle:before{content:"";position:absolute;inset:3px auto 3px 3px;width:calc((100% - 9px)/2);border-radius:6px;background:var(--blue);z-index:-1;transition:transform .24s ease}.profile-chart-toggle[data-mode=average]:before{transform:translateX(calc(100% + 3px))}.profile-chart-panel .profile-chart-toggle button{border:0;background:transparent;min-height:32px}.profile-chart-panel .profile-chart-toggle button[aria-pressed=true]{background:transparent}.profile-chart-toggle button:focus-visible{outline:2px solid var(--lime);outline-offset:-2px}#profile-chart circle{transition:r .15s ease}#profile-chart circle:hover{r:5}
.profile-history-head{border:1px solid var(--line);border-radius:10px 10px 0 0}.profile-night{border-inline:1px solid var(--line)}.profile-night:last-child{border-bottom:1px solid var(--line);border-radius:0 0 10px 10px;overflow:hidden}.profile-night summary::-webkit-details-marker{display:none}.profile-night summary:hover{background:#1b2b3a}.profile-night summary:focus{outline:none}.profile-night summary:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}.profile-night[open]>summary{background:#203447;box-shadow:inset 3px 0 var(--blue)}.profile-expand,.profile-night[open] .profile-expand{display:flex;align-items:center;justify-content:flex-end;gap:7px;font-size:11px;color:var(--muted)}.profile-night[open] .profile-expand:after{content:none}.profile-expand i{display:block;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .18s ease}.profile-night[open] .profile-expand i{transform:rotate(225deg)}.profile-night-detail{background:#101b25;padding:12px}.profile-game-table thead{background:#1d2d3b;color:var(--muted)}.profile-game-table thead th{font-size:10px;font-weight:600;letter-spacing:.04em}.profile-game-table tbody tr:nth-child(even){background:#182735}.profile-game-table tbody tr:hover{background:#203447}.profile-game-table small{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:3px}.profile-game-table td strong{font-size:16px;font-variant-numeric:tabular-nums}.profile-game-table .profile-game-points{font-weight:700;text-align:right;font-size:16px}.profile-game-table thead th:last-child{text-align:right}.profile-game-number{font-weight:800}.profile-result{display:inline-block;padding:3px 8px;border-radius:5px;font-size:11px;border:1px solid var(--line)}.profile-result.win{color:var(--lime);background:#b8ef5910;border-color:#b8ef5955}.profile-result.tie{color:#bddaff;background:#4c8dff18;border-color:#4c8dff66}.profile-result.loss,.profile-result.unknown{color:var(--muted)}
@media(max-width:600px){.profile-history-head,.profile-night summary{grid-template-columns:minmax(75px,1fr) repeat(3,28px) 37px 22px 15px}.profile-expand>span{display:none}.profile-history-head>span:last-child{display:block}.profile-night-detail{padding:8px}.profile-game-table td,.profile-game-table th{padding:7px 4px}.profile-game-table small{font-size:10px}.profile-game-table .profile-result{padding:2px 4px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.profile-chart-toggle:before,.profile-expand i,#profile-chart circle{transition:none}}

.absent-score{color:var(--muted);font-variant-numeric:tabular-nums}.absent-badge{display:inline-block;vertical-align:middle;font-size:10px;font-weight:500;color:var(--muted);border:1px solid var(--line);border-radius:4px;padding:1px 4px;margin-left:3px}.absence-legend{font-size:11px;color:var(--muted);margin:8px 0 14px}

.spare-badge,.absent-badge,.prebowled-badge{display:inline-block;vertical-align:middle;white-space:nowrap;font-size:9px;line-height:1.3;font-weight:500;color:#b9cbdc;border:1px solid #506475;background:transparent;border-radius:4px;padding:1px 3px;margin-left:3px}
