details { border:1px solid #38433d; border-radius:10px; padding:.9rem 1rem; background:#151a18; margin-bottom:1rem; }
summary { cursor:pointer; font-weight:700; }
details label { display:block; margin-top:1rem; }
#create { margin-top:.7rem; }
#message { color:#f4c68b; margin-left:.5rem; }
.league { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:1rem; align-items:start; }
.pitch,.standings { padding:clamp(16px,3vw,30px); border-radius:14px; }
.pitch { background:#16362c; border:1px solid #426651; }
.standings { background:#191b1a; border:1px solid #3d443f; }
.round-nav { display:flex; align-items:center; justify-content:space-between; gap:.4rem; }
.round-nav h2 { margin:0; }
.round-nav button { background:#284d3e; }
.match { display:flex; gap:10px; padding:1rem 0; border-bottom:1px solid #466855; }
.match label { display:flex; align-items:center; gap:.4rem; flex:1; min-width:0; }
.match label+label { flex-direction:row-reverse; }
.match span { flex:1; font-weight:700; overflow-wrap:anywhere; }
.match label+label span { text-align:right; }
.match input { width:3.1em; height:2.3em; text-align:center; border:1px solid #839a85; border-radius:6px; font:700 1.1rem monospace; color:#fff; background:#10251d; }
table { width:100%; border-collapse:collapse; text-align:center; }
td,th { padding:.6rem .25rem; border-bottom:1px solid #383f39; }
td:nth-child(2) { overflow-wrap:anywhere; }
td:last-child { font-weight:700; color:#edc780; }
#bye:empty { display:none; }
@media(max-width:720px){.league{grid-template-columns:1fr;}}
[data-theme="light"] details, [data-theme="light"] .standings { background:var(--surface);border-color:var(--border); }
[data-theme="light"] .pitch { color:#edf5ed;--text-2:#d2e1d5; }
[data-theme="light"] .round-nav button { color:#fff; }
[data-theme="light"] td:last-child, [data-theme="light"] #message { color:#80521e; }
summary small{font-weight:400;color:var(--text-2);margin-left:.3rem}
