
:root{--green:#123d2a;--green2:#1c5b40;--gold:#d5ad55;--cream:#f6f3ea;--ink:#172019;--muted:#6d756f;--card:#fff;--line:#dfe5df;}
*{box-sizing:border-box} body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#eef2ee;color:var(--ink)}
header{background:linear-gradient(120deg,var(--green),#071f16);color:white;padding:18px 24px;position:sticky;top:0;z-index:10}
.brand{display:flex;align-items:center;gap:13px;max-width:1180px;margin:auto} .logo{width:48px;height:48px;border:2px solid var(--gold);border-radius:50%;display:grid;place-items:center;font-weight:900;color:var(--gold);font-size:20px}
.brand h1{margin:0;font-size:22px} .brand small{color:#cbd9d0} nav{max-width:1180px;margin:14px auto 0;display:flex;gap:8px;overflow:auto}
nav button{border:0;background:#ffffff16;color:white;padding:9px 13px;border-radius:9px;cursor:pointer;white-space:nowrap} nav button.active{background:var(--gold);color:#1c251e;font-weight:700}
main{max-width:1180px;margin:22px auto;padding:0 16px 50px} .page{display:none} .page.active{display:block}
.hero{background:linear-gradient(135deg,#fff,#f7f0df);border:1px solid #eadfc5;border-radius:18px;padding:24px;display:grid;grid-template-columns:1.5fr 1fr;gap:20px;box-shadow:0 8px 30px #183b2512}
.eyebrow{font-size:12px;font-weight:800;letter-spacing:1.2px;color:var(--green2)} h2{margin:7px 0 8px;font-size:30px} .bigdate{font-size:18px;font-weight:700} .meta{color:var(--muted);line-height:1.8}
.cta{background:var(--green);color:#fff;border:0;border-radius:12px;padding:13px 18px;font-weight:800;cursor:pointer;margin-top:10px} .secondary{background:white;color:var(--green);border:1px solid var(--green)}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:16px} .card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:17px;box-shadow:0 4px 16px #183b2509}
.card .label{font-size:11px;color:var(--muted);font-weight:800;letter-spacing:.8px} .metric{font-size:25px;font-weight:900;margin-top:5px} .sub{font-size:13px;color:var(--muted);margin-top:5px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px} table{width:100%;border-collapse:collapse;background:#fff} th,td{padding:10px 9px;border-bottom:1px solid var(--line);text-align:left;font-size:14px} th{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px} tr.me{background:#fff5d9;font-weight:700} .rank{width:50px} .money{text-align:right;font-variant-numeric:tabular-nums} .leader{color:var(--green2);font-weight:800}
.section-title{display:flex;justify-content:space-between;align-items:end;margin:24px 0 10px} .section-title h3{margin:0;font-size:20px} .pill{display:inline-block;background:#e8efe9;color:var(--green);padding:5px 9px;border-radius:99px;font-size:12px;font-weight:800}
.team-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px} .team-card h3{margin:5px 0 10px} .names{line-height:1.8;color:#3f4942}
.legs{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;margin-top:14px} .leg{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px} .leg input{width:100%;font-size:20px;padding:8px;border:1px solid #ccd5ce;border-radius:8px;text-align:center}
.notice{background:#fff8df;border-left:4px solid var(--gold);padding:12px 14px;border-radius:8px;margin:14px 0} .muted{color:var(--muted)} .adminbox{border:1px dashed #9ba99f;background:#f9fbf9;padding:18px;border-radius:14px}
footer{text-align:center;color:#7a837d;font-size:12px;padding:20px}

.official-results th span{font-size:10px;font-weight:600;text-transform:none;letter-spacing:0;color:#8a918c}
.official-results th,.official-results td{vertical-align:middle}
.result-pair{display:flex;align-items:center;gap:8px;white-space:nowrap}
.result-pair .horse{font-size:16px;font-weight:800;color:var(--green)}
.result-pair .dividend{background:#f3f6f3;border-radius:7px;padding:5px 7px;font-variant-numeric:tabular-nums}
.result-pair .winner-total{font-weight:900;color:var(--green);padding-left:2px;font-variant-numeric:tabular-nums}
.official-results th:nth-child(2),.official-results td:nth-child(2){background:#fbfcfa}
.official-results input{padding:7px;border:1px solid #ccd5ce;border-radius:7px;font-size:13px}
.confirm-leg{border:0;background:var(--green);color:white;border-radius:9px;padding:10px 12px;font-weight:900;cursor:pointer;white-space:nowrap}
.confirm-leg:hover{background:var(--green2)}
.confirm-leg.done{background:#e8efe9;color:var(--green);border:1px solid #b8cabc}
.leg-status{font-size:11px;color:var(--muted);margin-top:5px;text-align:center;white-space:nowrap}
.correct-btn{margin-top:6px;border:1px solid #c89b42;background:white;color:#6d4a08;border-radius:7px;padding:5px 8px;font-size:11px;font-weight:900;cursor:pointer}
.audit-note{display:inline-block;margin-top:4px;color:#6d756f;font-weight:600;font-size:10px}
button:disabled{opacity:.42;cursor:not-allowed}
.official-results input:disabled{background:#eef2ee;color:#677069;opacity:1}

.su-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 18px}.su-tab{border:1px solid #cbd5ce;background:white;color:var(--green);padding:10px 13px;border-radius:9px;font-weight:900;cursor:pointer}.su-tab.active{background:var(--green);color:white}.su-panel{display:none}.su-panel.active{display:block}
@media(max-width:850px){.hero,.two{grid-template-columns:1fr}.grid,.team-grid{grid-template-columns:1fr 1fr}.legs{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.grid,.team-grid{grid-template-columns:1fr} h2{font-size:25px}}


#allselections .card { overflow: visible !important; }
#allselections .allsel-table { font-size:11.5px; }
#allselections .allsel-table th,
#allselections .allsel-table td { padding:7px 3px; white-space:nowrap; overflow:hidden; text-overflow:clip; }
#allselections .allsel-table th:nth-child(1),
#allselections .allsel-table td:nth-child(1) { width:3%; text-align:center; }
#allselections .allsel-table th:nth-child(2),
#allselections .allsel-table td:nth-child(2) { width:8%; }
#allselections .allsel-table th:nth-child(n+3),
#allselections .allsel-table td:nth-child(n+3) { text-align:center; }


.auth-msg{padding:10px 12px;border-radius:8px;margin:10px 0;font-weight:700}.auth-error{background:#fde8e7;color:#8a211d}.auth-ok{background:#e7f5eb;color:#155c35}.userbar{display:flex;gap:10px;align-items:center;margin-left:auto}.logout{border:1px solid rgba(255,255,255,.45);background:transparent;color:white;border-radius:8px;padding:7px 10px;cursor:pointer}
.horse-select{width:100%;min-width:76px;padding:11px 8px;border:1px solid #cbd5ce;border-radius:9px;background:#fff;font-size:20px;font-weight:900;text-align:center;color:#123d2a}.horse-select:focus{outline:3px solid rgba(213,173,85,.25);border-color:#b68b2e}.horse-select:disabled{background:#eef1ef;color:#7b837e}.auth-msg{padding:10px 12px;border-radius:8px;margin-bottom:14px}.auth-error{background:#fdeaea;color:#8b1f1f}
