:root{--green:#194d3a;--deep:#123c2e;--lime:#d9f176;--paper:#f6f7f2;--ink:#20382d;--muted:#66766e;--line:#dce3d9;--white:#fff;--danger:#ae3434;--radius:18px;font-family:Inter,'Segoe UI',system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #7d9d19;outline-offset:4px}input:focus,select:focus,textarea:focus{outline:2px solid #719341;outline-offset:2px}button{transition:background .15s,transform .15s}button:active:not(:disabled){transform:translateY(1px)}a{color:var(--green)}.global-nav-bar{position:absolute;top:24px;left:0;width:100%;display:flex;justify-content:space-between;padding:0 28px;z-index:5;pointer-events:none}.global-nav-bar a{pointer-events:auto;display:flex;align-items:center;gap:8px;text-decoration:none;color:#718579;font-weight:600}.global-nav-bar a:hover{color:var(--green)}.global-nav-bar>a:first-child>span:first-child{font-size:24px}.wrap{max-width:1240px;margin:auto;padding:0 32px}.masthead{padding-top:83px;padding-bottom:26px;display:flex;justify-content:space-between;gap:28px;align-items:center}.brand{display:flex;align-items:center;gap:18px}.brandmark{background:var(--green);color:var(--lime);width:68px;height:68px;border-radius:20px;display:grid;place-items:center;font-size:54px;line-height:1;font-family:Georgia,serif;transform:rotate(-7deg);flex-shrink:0}.eyebrow{font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:800;color:var(--muted);margin:0 0 8px}h1{font-size:clamp(25px,3vw,36px);letter-spacing:-.045em;line-height:1.1;margin:0;font-weight:800}h2{font-size:25px;letter-spacing:-.035em;margin:0 0 8px}h3{font-size:17px;margin:0}p{line-height:1.55}.subtitle{color:var(--muted);margin:9px 0 0;font-size:14px}.local{font-size:12px;color:var(--muted);display:flex;gap:7px;align-items:center}.dot{width:7px;height:7px;border-radius:100%;background:#5e8b3e;display:inline-block}.workspace{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px}.workspace-left,.toolbar,.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.workspace label{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);font-weight:700;display:block;margin-bottom:4px}.workspace select{border:0;background:transparent;font-size:16px;font-weight:700;padding:3px 25px 3px 0;max-width:290px;color:var(--ink)}.icon-button,.button{border:1px solid var(--line);background:white;color:var(--green);border-radius:10px;min-height:42px;padding:10px 15px;font-weight:650;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:7px}.icon-button{font-size:22px;padding:4px 12px}.button:hover,.icon-button:hover{background:#f0f4e9}.button.primary{background:var(--green);color:#fff;border-color:var(--green)}.button.primary:hover{background:var(--deep)}.button.lime{background:var(--lime);border-color:var(--lime);color:var(--deep)}.button.lime:hover{background:#cbe763}.button.ghost{background:transparent;border-color:transparent}.button.danger{color:var(--danger)}.button.small{padding:7px 10px;min-height:34px;font-size:12px}.segmented{display:flex;background:#eff2ec;padding:4px;border-radius:12px;gap:3px}.segmented button{border:0;background:transparent;border-radius:9px;color:var(--muted);padding:10px 22px;font-size:13px;font-weight:700}.segmented button.active{background:var(--green);color:white;box-shadow:0 2px 6px #143e2215}.tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);margin:22px 0 26px;overflow:auto}.tab{border:0;background:transparent;color:var(--muted);padding:13px 0 16px;font-size:14px;font-weight:650;white-space:nowrap;border-bottom:3px solid transparent}.tab.active{border-color:var(--green);color:var(--green)}.count{background:#e9eedf;padding:2px 6px;font-size:10px;border-radius:5px;margin-left:5px}.page{padding-bottom:35px;min-height:400px}.hero{background:var(--green);color:white;border-radius:var(--radius);padding:27px 30px;display:flex;justify-content:space-between;align-items:center;gap:24px;position:relative;overflow:hidden}.hero:before{content:'∞';position:absolute;right:200px;top:-88px;font:330px Georgia,serif;color:#ffffff07;pointer-events:none}.hero .eyebrow{color:#c4d6b5}.hero h2{font-size:29px;margin-bottom:8px}.hero p{margin:0;color:#d2e2d6;font-size:13px;max-width:650px}.hero .actions{flex-shrink:0;position:relative}.metrics{display:grid;grid-template-columns:repeat(4,1fr);margin:20px 0 26px;gap:14px}.metric{background:#fff;border:1px solid var(--line);border-radius:14px;padding:17px 20px}.metric strong{font-size:26px;letter-spacing:-.05em;font-weight:750;margin-right:7px}.metric span{font-size:12px;color:var(--muted)}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:26px 0 16px}.section-head h2{font-size:20px;margin:0}.section-head p{font-size:13px;color:var(--muted);margin:5px 0 0}.round-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:22px;align-items:start}.courts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.court{border:1px solid var(--line);border-radius:var(--radius);background:#fff;overflow:hidden}.court-head{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid #edf0e8;padding:13px 17px;font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}.badge{font-size:10px;background:#f0f2eb;color:var(--muted);padding:5px 8px;border-radius:5px;letter-spacing:.04em}.badge.done{background:#e8f2cd;color:#3e5c0b}.match-teams{padding:23px 18px;display:grid;grid-template-columns:1fr 26px 1fr;align-items:center;gap:8px;text-align:center;min-height:109px}.match-teams .team{font-size:17px;font-weight:750;line-height:1.4;overflow-wrap:anywhere}.match-teams .vs{font:italic 13px Georgia,serif;color:#89958b}.player-hint{font-size:10px;color:var(--muted);font-weight:500;display:block;margin-top:5px}.results{display:grid;grid-template-columns:1fr .88fr 1fr;gap:5px;padding:0 14px 14px}.result-button{background:#f2f5ed;color:var(--green);border:1px solid transparent;padding:12px 4px;border-radius:9px;font-size:11px;font-weight:650;min-height:42px}.result-button:hover{border-color:#a0b785}.result-button.selected{background:var(--green);color:white}.court-footer{padding:0 14px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px}.text-button{border:0;background:none;padding:5px 0;color:var(--muted);font-size:11px;text-decoration:underline;text-underline-offset:3px;min-height:30px}.text-button:hover{color:var(--green)}.rest-panel{background:#eaf0df;border:1px solid #dae4c8;border-radius:var(--radius);padding:20px}.rest-panel h3{display:flex;justify-content:space-between;font-size:15px}.rest-panel p{font-size:12px;color:#657458;margin:9px 0 16px}.rest-list{display:grid;gap:9px}.rest-person{padding:10px 12px;background:#ffffffb3;border-radius:9px;font-size:13px;font-weight:650;overflow-wrap:anywhere}.rest-person small{display:block;color:var(--muted);font-size:10px;margin-top:3px;font-weight:400}.explanation{font-size:12px;color:var(--muted);margin-top:18px;line-height:1.7}.explanation summary{cursor:pointer;font-weight:600}.progress{height:4px;background:#dce7cc;border-radius:3px;overflow:hidden;margin-top:14px}.progress>span{display:block;height:100%;background:var(--green)}.empty{background:white;border:1px dashed #cbd5c3;border-radius:var(--radius);padding:48px 24px;text-align:center;max-width:100%;margin:22px 0}.empty .symbol{font-size:56px;font-family:Georgia,serif;color:#7f9e57;line-height:1}.empty h2{margin-top:16px}.empty p{font-size:14px;color:var(--muted);max-width:540px;margin:10px auto 23px}.empty .actions{justify-content:center}.table-box{border:1px solid var(--line);border-radius:var(--radius);overflow:auto;background:#fff}table{border-collapse:collapse;width:100%;font-size:13px;white-space:nowrap}th{text-align:center;color:var(--muted);background:#eef2e8;font-size:10px;text-transform:uppercase;letter-spacing:.06em;padding:15px 13px;font-weight:700}td{padding:15px 13px;border-top:1px solid #eef1e9;text-align:center;font-variant-numeric:tabular-nums}th:nth-child(2),td:nth-child(2){text-align:left}td:nth-child(2){font-weight:650;white-space:normal;min-width:140px;overflow-wrap:anywhere}td:first-child{font-weight:700;color:#7c8c75;width:48px}tr:nth-child(even) td{background:#fafbf7}.average{font-weight:800;color:var(--green);font-size:16px}.muted{color:var(--muted)}.help{font-size:12px;color:var(--muted);line-height:1.7}.player-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.player-row{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);padding:13px 14px;border-radius:12px}.player-row.absent{background:#f0f1ed;color:#7b837b}.player-row label{display:flex;gap:12px;align-items:center;flex:1;min-width:0;cursor:pointer;font-size:14px;font-weight:600;overflow-wrap:anywhere}.player-row label span{min-width:0}.player-row small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:3px}input[type=checkbox]{accent-color:var(--green);width:19px;height:19px;flex-shrink:0}.player-row button{background:transparent;border:0;color:var(--muted);font-size:16px;min-width:30px;min-height:34px}.settings{display:flex;gap:18px;flex-wrap:wrap;align-items:end;background:#edf1e7;border-radius:14px;padding:17px 20px;margin:20px 0}.settings label{display:block;font-size:11px;font-weight:650;color:var(--muted);margin-bottom:7px}.settings select,.settings input{background:#fff;color:var(--ink);border:1px solid #d8e1d0;border-radius:8px;padding:9px 10px;min-width:90px;max-width:100%}.settings .help{margin:0;flex:1;min-width:200px}.history-round{background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:12px;overflow:hidden}.history-round>summary{cursor:pointer;padding:20px;display:flex;justify-content:space-between;gap:15px;font-size:14px;font-weight:700;list-style:none}.history-round[open]>summary{border-bottom:1px solid var(--line)}.history-content{padding:0 20px 17px}.history-match{padding:14px 0;border-bottom:1px solid #edf0e8;display:grid;grid-template-columns:60px 1fr auto auto;align-items:center;gap:14px;font-size:13px}.history-match:last-child{border:0}.history-match strong{font-size:12px}.history-round time{font-size:11px;font-weight:400;color:var(--muted)}.notice-inline{background:#f6efdd;border:1px solid #eadcba;border-radius:10px;padding:12px 16px;font-size:12px;line-height:1.6;margin:15px 0;color:#746023}.footer{border-top:1px solid var(--line);padding:20px 0 28px;color:var(--muted);display:flex;justify-content:space-between;gap:12px;font-size:11px}.footer a{color:var(--muted);text-decoration:none;margin-left:12px}dialog{border:1px solid var(--line);border-radius:20px;padding:28px;max-width:540px;width:calc(100% - 32px);color:var(--ink);box-shadow:0 24px 100px #10201733;max-height:90vh}dialog::backdrop{background:#132f2477;backdrop-filter:blur(3px)}dialog h2{font-size:23px;margin:0 0 10px}dialog p{font-size:13px;color:var(--muted)}dialog label{font-size:12px;font-weight:600;display:block;margin-top:17px;margin-bottom:7px}dialog input:not([type=radio]),dialog textarea,dialog select{width:100%;padding:12px;border:1px solid var(--line);border-radius:9px;color:var(--ink);background:#fcfdf9}dialog textarea{resize:vertical;min-height:160px}dialog .actions{margin-top:24px;justify-content:flex-end}dialog .score-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}dialog .error{color:var(--danger);font-size:12px;min-height:16px}#notice{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:20;background:var(--deep);color:white;padding:13px 20px;border-radius:11px;box-shadow:0 4px 20px #12332222;font-size:13px;max-width:calc(100% - 30px);transition:.2s}#notice.show{opacity:1;transform:translate(-50%,0)}#notice.error{background:#9c3535}.hall .workspace,.hall .tabs,.hall .settings,.hall .footer,.hall .global-nav-bar,.hall .masthead{display:none}.hall .wrap{max-width:1800px;padding-top:20px}.hall .round-layout{grid-template-columns:1fr 280px}.hall .match-teams .team{font-size:27px}.hall .courts{grid-template-columns:repeat(auto-fit,minmax(330px,1fr))}.hall .result-button{font-size:14px}.hall .hero{margin-top:0}[hidden]{display:none!important}
@media(max-width:1000px){.round-layout{grid-template-columns:minmax(0,1fr) 220px}.player-list{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace select{max-width:210px}.courts{grid-template-columns:1fr}.hero{padding:24px}.hero h2{font-size:25px}.hero .actions{flex-shrink:1}.local{display:none}}
@media(max-width:640px){.global-nav-bar{padding:0 18px;top:18px}.global-nav-bar .nav-text{display:none}.wrap{padding:0 16px}.masthead{padding-top:66px;padding-bottom:22px}.brand{gap:12px}.brandmark{width:48px;height:48px;border-radius:14px;font-size:42px}.eyebrow{font-size:9px}.subtitle{font-size:12px}.workspace{align-items:stretch;flex-direction:column;padding:14px;gap:14px}.workspace-left{flex-wrap:nowrap;justify-content:space-between}.workspace select{max-width:240px;width:100%}.segmented button{flex:1}.tabs{gap:22px;margin:15px 0 20px}.tab{font-size:12px;padding:12px 0}.hero{align-items:flex-start;flex-direction:column;gap:17px;padding:22px}.hero h2{font-size:24px}.hero p{font-size:12px}.hero .actions{width:100%}.hero .actions>.primary,.hero .actions>.lime{flex:1}.metrics{grid-template-columns:repeat(2,1fr);gap:9px;margin:14px 0 20px}.metric{padding:12px 15px}.metric strong{font-size:23px}.metric span{font-size:11px}.round-layout,.hall .round-layout{grid-template-columns:1fr}.courts{grid-template-columns:1fr}.match-teams .team{font-size:19px}.section-head{align-items:flex-start}.section-head .actions{justify-content:flex-end}.player-list{grid-template-columns:1fr}.settings{padding:15px;gap:14px}.settings>div{flex:1}.settings input,.settings select{width:100%}.footer{flex-direction:column;gap:10px}.footer a{margin:0 15px 0 0}.history-match{grid-template-columns:1fr auto;gap:8px}.history-match>.muted{grid-column:1/-1}.history-round>summary{padding:17px;flex-wrap:wrap}.hall .courts{grid-template-columns:1fr}.hall .wrap{padding:15px}.hall .match-teams .team{font-size:23px}dialog{padding:22px}.empty{padding:32px 20px}.rest-list{grid-template-columns:repeat(2,1fr)}.toolbar{gap:5px}.button{padding:10px 12px}}
@media print{.global-nav-bar,.workspace,.tabs,.settings,.footer,.actions,.results,.court-footer,.text-button{display:none!important}.wrap{max-width:none;padding:0}.masthead{padding:10px 0}.hero{background:white;color:black;border:1px solid #aaa}.hero p,.hero .eyebrow{color:#444}.round-layout{grid-template-columns:1fr}.courts{grid-template-columns:1fr 1fr}.court,.history-round{break-inside:avoid}.table-box{overflow:visible}.rest-panel{background:white}body{background:white}}
.hero .button.ghost{color:#e4efdc;border-color:#ffffff40}.hero .button.ghost:hover{background:#ffffff14}
.round-sidebar{display:grid;gap:14px}.rest-panel h3{margin-bottom:16px}.rest-panel p.empty-rest{font-size:12px;color:#657458;margin:0;line-height:1.55}.progress-panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px}.progress-panel h3{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.07em;margin-bottom:10px}.progress-panel strong{font-size:24px;letter-spacing:-.04em;margin-right:6px}.progress-panel>span{font-size:12px;color:var(--muted)}
