:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0f172a;--panel:#1e293b;--ink:#f8fafc;--muted:#94a3b8;--amber:#fbbf24;--sky:#38bdf8;--ok:#4ade80}*{box-sizing:border-box}body{background:var(--bg);color:var(--ink);margin:0;font:16px/1.4 system-ui,sans-serif}button{font:inherit;color:var(--ink);background:var(--panel);cursor:pointer;border:1px solid #334155;border-radius:10px;min-height:44px;padding:.7rem 1rem}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible{outline:3px solid var(--sky);outline-offset:2px}.primary{background:var(--amber);color:#111827;border-color:var(--amber);font-weight:700}.home{max-width:720px;margin:0 auto;padding:1.5rem 1rem}.muted{color:var(--muted)}.grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.75rem;display:grid}.card{text-align:left;flex-direction:column;align-items:flex-start;gap:.25rem;padding:1rem;display:flex}.card span{color:var(--muted);font-size:.9rem}.badge{background:#334155;border-radius:999px;padding:.2rem .6rem;font-size:.85rem;display:inline-block}.badge.synced{background:#14532d}.badge.waiting{background:#78350f}.scorer{max-width:960px;margin:0 auto;padding:.75rem}.scorer header{justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.5rem;display:flex}.alert{background:var(--amber);color:#111827;border-radius:12px;flex-direction:column;gap:.2rem;margin-bottom:.5rem;padding:.75rem 1rem;display:flex}.pt{color:var(--amber);text-align:center;margin:.25rem 0;font-weight:700}.layout{grid-template-columns:1fr;gap:1rem;display:grid}@media (width>=720px){.layout{grid-template-columns:1fr 1fr;align-items:start}}.sides{gap:.75rem;display:grid}.side{background:var(--panel);text-align:center;border:3px solid #0000;border-radius:16px;padding:1rem}.side.serving{border-color:var(--amber)}.who{font-weight:700}.games{color:var(--muted)}.score{font-variant-numeric:tabular-nums;margin:.25rem 0 .75rem;font-size:5.5rem;font-weight:800;line-height:1}.big{width:100%;min-height:72px;font-size:1.25rem;font-weight:700}.court{background:var(--panel);border-radius:16px;margin:0;padding:.75rem}.court svg{width:100%;max-height:70vh}.court-floor{fill:#14532d;stroke:#f8fafc;stroke-width:3px}.box{fill:#0000;stroke:#f8fafc;stroke-width:2px}.box.server{fill:#fbbf248c}.box.receiver{fill:#38bdf880}.net{stroke:#f8fafc;stroke-width:5px;stroke-dasharray:8 6}.player circle{fill:#0f172a;stroke:#f8fafc;stroke-width:2px}.player.is-server circle{stroke:var(--amber);stroke-width:4px}.player.is-receiver circle{stroke:var(--sky);stroke-width:4px}.player text{fill:#f8fafc;font-size:14px;font-weight:700}.player .pname{font-size:11px;font-weight:400}.key{color:#111827;border-radius:6px;padding:.1rem .5rem;font-size:.8rem}.key.server{background:var(--amber)}.key.receiver{background:var(--sky)}figcaption p{margin:.5rem 0 0}.row{flex-wrap:wrap;align-items:center;gap:.5rem;margin:1rem 0;display:flex}.history{color:var(--muted)}.form{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));align-items:end;gap:.75rem;margin:1rem 0;display:grid}.form label{color:var(--muted);flex-direction:column;gap:.25rem;font-size:.9rem;display:flex}select{font:inherit;color:var(--ink);background:var(--panel);border:1px solid #334155;border-radius:10px;min-height:44px;padding:.6rem}.courts{gap:.75rem;padding:0;list-style:none;display:grid}.courts li{background:var(--panel);border-radius:12px;justify-content:space-between;align-items:center;gap:1rem;padding:.75rem 1rem;display:flex}.pin code{letter-spacing:.2em;color:var(--amber);font-size:1.5rem}.pinpad{text-align:center;max-width:360px;margin:0 auto;padding:1.5rem 1rem}.dots{justify-content:center;gap:1rem;margin:1rem 0;display:flex}.dots span{border:2px solid var(--muted);border-radius:50%;width:18px;height:18px}.dots span.on{background:var(--amber);border-color:var(--amber)}.pin-msg{color:#fca5a5;min-height:1.5rem}.keys{grid-template-columns:repeat(3,1fr);gap:.6rem;display:grid}.keys button{min-height:64px;font-size:1.4rem}.confirm{background:var(--panel);border-radius:16px;margin-top:1rem;padding:1rem}.confirm.done{border:2px solid var(--ok)}.confirm h2{margin:.2rem 0 .5rem;font-size:1.2rem}.confirm dl{grid-template-columns:max-content 1fr;gap:.25rem 1rem;margin:0;display:grid}.confirm dt{color:var(--muted)}.confirm dd{margin:0}.desk{max-width:1400px;margin:0 auto;padding:.75rem 1rem 3rem}.desk-bar{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.desk-bar h1{margin:0;font-size:1.25rem}.bar-stats{flex-wrap:wrap;gap:.5rem 1rem;margin-left:auto;font-size:.9rem;display:flex}.bar-stats .late{color:#fca5a5;font-weight:700}.bar-stats .ontime{color:#86efac}.toolbar{flex-wrap:wrap;align-items:center;gap:.5rem;margin:.75rem 0;display:flex}.tabs{gap:.25rem;display:inline-flex}.tabs .active{outline:2px solid #38bdf8}.warn,.error{border-radius:8px;margin:.5rem 0;padding:.5rem .75rem}.warn{color:#fde68a;background:#422006}.error{color:#fecaca;background:#450a0a}.court-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:.75rem;margin:.5rem 0 1rem;display:grid}.court-grid.expanded{grid-template-columns:repeat(auto-fit,minmax(420px,1fr))}.court-grid.dense{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:.4rem}.court-card{background:var(--panel);border:2px solid #0000;border-radius:12px;flex-direction:column;gap:.5rem;padding:.75rem;display:flex}.court-card.dense{gap:.25rem;padding:.4rem;font-size:.8rem}.court-card header{justify-content:space-between;align-items:center;display:flex}.court-card.overdue{border-color:#ef4444}.court-card.confirm{border-color:#f59e0b}.court-card.playing{border-color:#22c55e}.court-card.called{border-color:#38bdf8}.court-card.paused,.court-card.closed{opacity:.65}.pill{white-space:nowrap;background:#334155;border-radius:999px;padding:.1rem .5rem;font-size:.75rem}.pill.overdue{background:#b91c1c}.pill.called{background:#0369a1}.pill.playing{background:#15803d}.pill.confirm{background:#b45309}.live-score{font-size:1.4rem;font-weight:700}.court-card.dense .live-score{font-size:1rem}.vs{opacity:.6;font-size:.8rem}.expanded-extra{grid-template-columns:1fr 1fr;gap:.5rem;display:grid}.rally-log{max-height:10rem;margin:0;padding-left:1.1rem;font-size:.8rem;overflow:auto}.overdue-actions{flex-direction:column;align-items:stretch}.zone>summary{cursor:pointer;padding:.25rem 0;font-weight:700}.queues{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1rem;margin-top:1rem;display:grid}.queue{flex-direction:column;gap:.4rem;margin:0;padding:0;list-style:none;display:flex}.queue li{background:var(--panel);border-radius:10px;justify-content:space-between;align-items:center;gap:.5rem;padding:.5rem .75rem;display:flex}.queue-actions,.call-control{align-items:center;gap:.4rem;display:flex}.count{background:#334155;border-radius:999px;padding:0 .5rem;font-size:.8rem}.panel{background:var(--panel);border-radius:12px;margin:.5rem 0;padding:.75rem 1rem}.panel header{justify-content:space-between;align-items:center;display:flex}.players{max-height:50vh;padding:0;list-style:none;overflow:auto}.players li{border-bottom:1px solid #1e293b;justify-content:space-between;align-items:center;padding:.3rem 0;display:flex}.players li.scratched{opacity:.5;text-decoration:line-through}.stats{grid-template-columns:max-content 1fr;gap:.2rem 1rem;display:grid}.modal-back{z-index:50;background:#000000b3;place-items:center;display:grid;position:fixed;inset:0}.modal{background:#0f172a;border-radius:16px;width:92vw;max-width:520px;padding:1.25rem}.pin-list{flex-direction:column;gap:.5rem;padding:0;list-style:none;display:flex}.pin-list li{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.pin-big{letter-spacing:.3em;font-size:2rem;font-weight:800}.desk-foot{opacity:.7;margin-top:2rem}.muted{opacity:.7}.small{font-size:.8rem}@media (width<=640px){.expanded-extra,.court-grid.expanded{grid-template-columns:1fr}}.pub{max-width:720px;margin:0 auto;padding:1rem}.pub-list{flex-direction:column;gap:.5rem;padding:0;list-style:none;display:flex}.pub-court,.pub-next{background:var(--panel);border-left:4px solid #334155;border-radius:12px;padding:.6rem .8rem}.pub-court.playing{border-left-color:#22c55e}.pub-court.called{border-left-color:#38bdf8}.pub-court.mine,.pub-next.mine{background:#2a2412;border-left-color:#f59e0b}.pub-court-head{align-items:center;gap:.4rem;display:flex}.pub-court-head .pill{margin-left:auto}.pub-teams{grid-template-columns:1fr auto;gap:.1rem .75rem;font-size:1.1rem;display:grid}.pub-teams b{text-align:right;font-size:1.4rem}.serving:before{content:"● ";color:#facc15}.pub-next{align-items:center;gap:.75rem;display:flex}.order{min-width:1.5rem;font-size:1.2rem;font-weight:800}.tabs.big{gap:.25rem;margin:.75rem 0;display:flex}.tabs.big button{flex:1;padding:.6rem .25rem}.following{flex-direction:column;gap:.4rem;margin:.5rem 0;display:flex}.follow-row{background:var(--panel);border-radius:10px;justify-content:space-between;align-items:center;gap:.5rem;padding:.4rem .7rem;display:flex}.banner{color:#fef3c7;background:#78350f;border-radius:10px;margin:0;padding:.6rem .8rem;font-weight:600}.bracket{gap:1rem;padding-bottom:.5rem;display:flex;overflow-x:auto}.round{flex-direction:column;justify-content:space-around;gap:.5rem;min-width:200px;display:flex}.round h4{margin:.2rem 0}.bm{background:var(--panel);border-radius:8px;padding:.4rem .6rem;font-size:.9rem}.bm .win{font-weight:700}.bm .lose{opacity:.55}.podium ul{padding:0;font-size:1.1rem;list-style:none}.tv{color:#fff;background:#000;flex-direction:column;min-height:100vh;padding:2vh 2vw;display:flex}.tv header{justify-content:space-between;align-items:baseline;display:flex}.tv h1{margin:0 0 1vh;font-size:4vh}.tv-clock{opacity:.8;font-size:3.5vh}.tv-body{flex:1;grid-template-columns:2fr 1fr;gap:2vw;min-height:0;display:grid}.tv-courts{grid-template-columns:repeat(2,1fr);align-content:start;gap:1.2vh;display:grid}.tv-courts.nfew{grid-template-columns:1fr}.tv-courts.nmany{grid-template-columns:repeat(3,1fr)}.tv-court{background:#0b1220;border-left:.8vh solid #334155;border-radius:1.2vh;padding:1.2vh 1.2vw}.tv-court.playing{border-left-color:#22c55e}.tv-court.called{border-left-color:#38bdf8}.tv-court-name{opacity:.7;font-size:2.4vh}.tv-line{justify-content:space-between;gap:1vw;font-size:3.4vh;font-weight:700;display:flex}.tv-line b{font-size:4.4vh}.tv-idle{opacity:.5;font-size:3vh}.tv-tag{color:#7dd3fc;font-size:2.4vh}.tv-next{background:#0b1220;border-radius:1.2vh;flex-direction:column;padding:1.5vh 1.5vw;display:flex}.tv-next h2{margin:0 0 1vh;font-size:3.4vh}.tv-next ol{flex-direction:column;gap:1.2vh;margin:0;padding:0;font-size:2.8vh;list-style:none;display:flex}.tv-next li{gap:1vw;display:flex}.tv-next li span{color:#facc15;font-weight:800}.tv-next i{opacity:.6}.tv-sponsor{text-align:center;opacity:.9;border-top:1px solid #1e293b;margin-top:auto;padding-top:2vh;font-size:3vh}html.transparent,html.transparent body{background:0 0!important}.bug-wrap{position:fixed;left:2vw}.bug-wrap.bottom{bottom:4vh}.bug-wrap.top{top:3vh}.bug{color:#fff;background:#0f172ae0;border-radius:8px;min-width:280px;font-family:system-ui,sans-serif;overflow:hidden}.bug-row{align-items:center;gap:.6rem;padding:.3rem .7rem;font-size:1.2rem;display:flex}.bug-row+.bug-row{border-top:1px solid #ffffff1f}.bug-name{flex:1;font-weight:600}.bug-game{opacity:.65;text-align:center;min-width:1.4rem}.bug-score{color:#111;text-align:center;background:#facc15;border-radius:4px;min-width:2.2rem;padding:0 .3rem}.dot{background:0 0;border-radius:50%;width:.6rem;height:.6rem}.dot.on{background:#facc15}.bug-sponsor{opacity:.6;text-align:right;padding:.15rem .6rem;font-size:.7rem}.poster{max-width:900px;margin:0 auto;padding:1rem}.sheet{text-align:center;color:#000;background:#fff;border-radius:12px;margin-top:1rem;padding:2rem}.sheet h1{margin:0;font-size:2.6rem}.sheet .lead{font-size:1.4rem}.qr{width:min(70vw,420px);margin:1rem auto}.qr svg{width:100%;height:auto}.url{word-break:break-all;font-family:monospace}.wifi{font-size:1.4rem}@media print{body{background:#fff}.no-print{display:none!important}.sheet{border-radius:0;padding:0}}.embed{padding:.5rem;font-family:inherit}.embed.dark{color:#e2e8f0;background:0 0}.embed.light{color:#0f172a;background:0 0}.embed.light .pub-court,.embed.light .pub-next,.embed.light .bm{background:#f1f5f9}.embed{--accent:#38bdf8}.embed .pub-court.playing,.embed .pill.playing{border-left-color:var(--accent)}.embed .pill.playing{background:var(--accent);color:#000}.embed-title{margin:.2rem 0 .6rem}.reg{flex-direction:column;gap:.75rem;display:flex}.steps{gap:.5rem;margin:0;padding:0;list-style:none;display:flex}.steps li{text-align:center;opacity:.6;background:#1e293b;border-radius:8px;flex:1;padding:.35rem;font-size:.85rem}.steps li.on{opacity:1;outline:2px solid #38bdf8}.steps li.past{opacity:.9}.rf-set{border:1px solid #334155;border-radius:12px;flex-direction:column;gap:.6rem;padding:.75rem;display:flex}.rf-set legend{padding:0 .4rem;font-weight:700}.rf{flex-direction:column;gap:.2rem;display:flex}.rf input,.rf select{color:inherit;background:#0f172a;border:1px solid #475569;border-radius:8px;padding:.5rem;font-size:1rem}.rf-check{align-items:flex-start;gap:.5rem;font-size:.9rem;display:flex}.field-error{color:#fca5a5}.error-list{color:#fecaca;background:#450a0a;border-radius:8px;margin:0;padding:.6rem 1.4rem}.div-opt{padding:.25rem 0;display:block}.div-opt.off{opacity:.45}.waiver-text{white-space:pre-wrap;background:#0b1220;border-radius:8px;max-height:11rem;padding:.6rem;font-family:inherit;font-size:.85rem;overflow:auto}.url{word-break:break-all;background:#0b1220;border-radius:8px;padding:.5rem;display:block}.standings{border-collapse:collapse;width:100%;margin:.5rem 0;font-size:.9rem}.standings caption{text-align:left;padding:.2rem 0;font-weight:700}.standings th,.standings td{text-align:right;border-bottom:1px solid #1e293b;padding:.25rem .4rem}.standings th:nth-child(2),.standings td:nth-child(2){text-align:left}.plan{border-collapse:collapse;width:100%}.plan th,.plan td{text-align:left;vertical-align:top;border-bottom:1px solid #1e293b;padding:.4rem .5rem}
