:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#18392c;background:#f6f7f2;font-synthesis:none;--green:#176647;--line:#dfe5dc;--muted:#65756b}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:9px;padding:11px 16px;font-size:13px;font-weight:650;transition:background .15s,transform .15s}button:hover:not(:disabled){filter:brightness(.94);transform:translateY(-1px)}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #e6ac3a;outline-offset:3px}.primary{background:var(--green);color:white}.secondary{background:#eef3eb;color:#24523b;border:1px solid #d7e2d2}.quiet{background:transparent;color:var(--muted);padding:8px}.danger{background:#fff0ed;color:#a52c20}.wide{width:100%}
.topbar{max-width:1280px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:25px 40px;border-bottom:1px solid var(--line);gap:15px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit;font-size:15px;font-weight:850;letter-spacing:1.5px}.brand-icon{font-size:23px;letter-spacing:0}.local-pill{font-size:9px;letter-spacing:1px;background:#e6ecdF;padding:6px 8px;border-radius:5px;color:#5d735d}.backup-actions{display:flex;gap:10px}main{max-width:1200px;margin:auto;padding:0 28px}.hero{display:grid;grid-template-columns:1fr 370px;align-items:center;gap:40px;padding:48px 0 38px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:800;color:#67816e;margin:0 0 13px}h1{font-size:clamp(46px,6vw,72px);line-height:1.05;letter-spacing:-3px;margin:0;font-weight:850}h1 span{color:var(--green)}.intro{font-size:16px;line-height:1.7;color:var(--muted);margin:20px 0 0}h2{font-size:21px;letter-spacing:-.6px;margin:0}h3{font-size:17px;margin:0 0 10px}.pitch-art{height:218px;border-radius:18px;background:#174b36;border:12px solid #174b36;position:relative;box-shadow:0 14px 40px #18392c12;transform:rotate(-3deg)}.pitch-art:before{content:"";position:absolute;inset:8px;border:1px solid #ffffff35;border-radius:3px}.pitch-art:after{content:"";position:absolute;left:9px;top:55px;width:40px;height:80px;border:1px solid #ffffff35}.pitch-line{position:absolute;top:9px;bottom:9px;left:50%;border-left:1px solid #ffffff35}.pitch-circle{position:absolute;width:70px;height:70px;border:1px solid #ffffff35;border-radius:50%;left:calc(50% - 35px);top:calc(50% - 35px)}.dot{position:absolute;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#deeca8;font-size:11px;font-weight:800;color:#174b36;box-shadow:0 4px 8px #0002}.d1{left:7%;top:42%}.d2{left:29%;top:20%}.d3{left:29%;top:65%}.d4{left:58%;top:22%}.d5{left:58%;top:65%}.d6{left:80%;top:42%}.pitch-caption{position:absolute;bottom:-37px;right:7px;font-size:8px;letter-spacing:1.5px;color:#6b7c6c;font-weight:750}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start}.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:25px;box-shadow:0 3px 10px #18392c03}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.count{font-size:12px;color:#5e7863;background:#edf2e9;border-radius:20px;padding:4px 9px;margin-left:5px;vertical-align:middle}.muted{color:var(--muted);font-size:13px;line-height:1.65}.small{font-size:12px;line-height:1.6}.roster-tools{display:flex;align-items:center;gap:8px;margin:23px 0 15px}.roster-tools input{flex:1;min-width:80px}input:not([type=checkbox]):not([type=range]),textarea{width:100%;border:1px solid var(--line);border-radius:8px;background:#fbfcf9;color:inherit;padding:11px 12px;font-size:13px}textarea{resize:vertical;margin:6px 0 12px}input[type=checkbox]{width:18px;height:18px;accent-color:var(--green);cursor:pointer}input[type=range]{accent-color:var(--green);width:100%}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}th{text-align:left;font-size:10px;letter-spacing:.5px;color:var(--muted);padding:13px 6px;border-bottom:1px solid var(--line)}td{padding:13px 6px;border-bottom:1px solid #edf0e9}td:nth-child(3),th:nth-child(3),td:nth-child(n+5):nth-child(-n+9),th:nth-child(n+5):nth-child(-n+9){text-align:center}td:nth-child(2){font-weight:650;white-space:normal;min-width:90px}abbr{text-decoration:none}.rating{display:inline-grid;place-items:center;border-radius:6px;min-width:25px;height:25px;background:#f1f4ed;color:#4c6450;font-size:12px;font-weight:700}.rating.high{background:#e4f2df;color:#287036}.rating.low{background:#fff2e1;color:#8e652e}tr.selected{background:#f5faf0}.empty{text-align:center;padding:43px 10px}.empty p{color:var(--muted);font-size:13px;line-height:1.8}.empty-ball{font-size:34px;margin-bottom:16px}.storage-note{color:#7b897d;font-size:11px;line-height:1.5;margin:21px 0 0;border-top:1px solid var(--line);padding-top:17px}.sidebar{display:grid;gap:20px}.availability{font-size:13px;font-weight:750;border-radius:6px;padding:6px 10px;background:#eef3e7}.progress{height:5px;background:#edf1e7;border-radius:10px;margin:18px 0 25px;overflow:hidden}.progress div{height:100%;background:#72a66a;transition:width .2s}label{font-size:13px;font-weight:650;display:block}.generate-card{background:#edf3e7}.generate-card h2{font-size:22px;max-width:220px;line-height:1.3}.generate-card .primary{margin:10px 0}.notice{border-radius:9px;background:#e7f1df;border:1px solid #cbdcbc;padding:13px 17px;font-size:13px;margin-bottom:20px;line-height:1.6}.notice.error{background:#fff0ed;border-color:#f0c9c0;color:#923127}.match-list{list-style:none;padding:0;margin:15px 0;max-height:250px;overflow:auto;font-size:12px}.match-list li{padding:8px 0;border-bottom:1px solid var(--line);line-height:1.5}.matched{color:#276d3d}.unknown,.ambiguous{color:#a05223}.duplicate{color:var(--muted)}
#results{margin-top:42px;scroll-margin-top:20px}.results-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.results-heading h2{font-size:29px}.result-actions{display:flex;gap:10px}.teams{display:grid;grid-template-columns:1fr 1fr;gap:22px}.team-card{border:1px solid var(--line);border-radius:14px;background:white;overflow:hidden}.team-banner{padding:24px;display:flex;justify-content:space-between;align-items:center;background:#174b36;color:white}.team-b .team-banner{background:#365681}.team-banner h3{margin:0;font-size:22px}.team-banner span{font-size:11px;font-weight:650;opacity:.8;letter-spacing:1px}.lineup{list-style:none;margin:0;padding:10px 24px 20px}.lineup li{display:flex;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #edf0e9}.shirt{background:#edf3e7;width:29px;height:29px;display:grid;place-items:center;border-radius:8px;font-size:12px;font-weight:800}.team-b .shirt{background:#edf1f9;color:#365681}.lineup strong{font-size:14px;flex:1}.role{font-size:11px;color:var(--muted)}.comparison{margin-top:22px}.metric-row{display:grid;grid-template-columns:1fr 60px 60px 80px;gap:10px;align-items:center;font-size:13px;border-bottom:1px solid #edf0e9;padding:11px 0}.metric-row span:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}.metric-row.header{font-size:10px;font-weight:750;color:var(--muted);text-transform:uppercase}footer{padding:35px 0;font-size:11px;color:#728174;display:flex;justify-content:space-between;gap:14px}
dialog{border:1px solid var(--line);border-radius:17px;padding:27px;color:inherit;background:#fff;width:min(460px,calc(100% - 30px));box-shadow:0 25px 100px #0003}dialog::backdrop{background:#16392970;backdrop-filter:blur(3px)}dialog .section-heading{margin-bottom:22px}dialog input#player-name{margin-top:8px}.rating-input{display:grid;grid-template-columns:100px 1fr 28px;align-items:center;gap:13px;margin:21px 0}.rating-input output{text-align:right;font-weight:750;font-size:14px}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.dialog-actions .danger{margin-right:auto}.form-error{font-size:12px;color:#a52c20;line-height:1.5}
.workspace>*{min-width:0}.player-total{text-align:center;font-weight:800;font-variant-numeric:tabular-nums;color:#176647}.sort-button{padding:6px 2px;background:transparent;color:inherit;font-size:10px;letter-spacing:.5px;white-space:nowrap}.sort-button:hover:not(:disabled){transform:none;background:#edf3e7}th[aria-sort=ascending],th[aria-sort=descending]{color:#176647}.sort-arrow{font-size:12px}
[hidden]{display:none!important}
.header-identity{display:flex;align-items:center;gap:22px;flex-wrap:wrap}.app-identity{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700}.topbar{flex-wrap:wrap}
.app-status{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;flex-wrap:wrap}.app-status p{font-size:12px;color:var(--muted);margin:0;flex:1;min-width:160px}.app-status>div{display:flex;gap:10px}.app-status .pwa-error{color:#a52c20}
@media(max-width:1000px){.workspace{grid-template-columns:minmax(0,1fr) 290px}.card{padding:19px}.hero{grid-template-columns:1fr 290px}.topbar{padding:20px 28px}.roster-tools{gap:2px}}
@media(max-width:760px){main{padding:0 16px}.topbar{padding:17px 16px;flex-wrap:wrap}.brand{font-size:13px}.local-pill{font-size:8px}.backup-actions{gap:3px}.backup-actions button{font-size:11px}.hero{grid-template-columns:1fr;padding:32px 0;gap:28px}.pitch-art{display:none}h1{font-size:52px}.intro{font-size:14px}.workspace{grid-template-columns:1fr}.sidebar{grid-template-columns:1fr 1fr;gap:15px}.teams{gap:15px}.results-heading{align-items:start;flex-direction:column}.result-actions{flex-wrap:wrap}.role{font-size:10px}.lineup{padding:10px 16px}.team-banner{padding:20px 16px}footer{flex-direction:column}}
@media(max-width:520px){.sidebar,.teams{grid-template-columns:1fr}.roster-card{padding:17px 12px}.section-heading .primary{padding:10px 12px}td,th{padding:12px 4px}.rating{min-width:23px}.roster-tools .quiet{font-size:11px}.team-banner h3{font-size:22px}.metric-row{grid-template-columns:1fr 48px 48px 65px}}
