:root{--brand:#c8102e;--bg:#f4f6fa;--card:#fff;--text:#1b1f27;--muted:#667085;--warn:#b54708;--ok:#067647;color:var(--text);background:var(--bg);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}body{margin:0}h1{margin:.5rem 0 1rem;font-size:1.5rem}h2{margin:1.25rem 0 .5rem;font-size:1.1rem}.page{max-width:720px;margin:0 auto;padding:1rem}.narrow{max-width:420px}.card{background:var(--card);border-radius:12px;flex-direction:column;gap:.75rem;margin-bottom:1rem;padding:1rem;display:flex;box-shadow:0 1px 3px #00000014}label{flex-direction:column;gap:.25rem;font-size:.9rem;font-weight:600;display:flex}label.check{flex-direction:row;align-items:flex-start;gap:.5rem;font-weight:400}input,select{font:inherit;border:1px solid #d0d5dd;border-radius:8px;min-height:44px;padding:.7rem}label.check input{min-height:auto;margin-top:.2rem}button{font:inherit;background:var(--brand);color:#fff;cursor:pointer;border:0;border-radius:8px;min-height:44px;padding:.7rem 1rem;font-weight:600}button:disabled{opacity:.5}button.secondary{color:var(--text);background:#e4e7ec}button.link{color:var(--brand);background:0 0;min-height:auto;padding:.25rem}.row{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.space{justify-content:space-between}.row input{flex:1}.muted{color:var(--muted);font-weight:400}.small{font-size:.85rem}.note{background:#fffaeb;border-radius:8px;padding:.6rem .8rem;font-size:.9rem}.list{background:var(--card);border-radius:12px;margin:0;padding:0;list-style:none;overflow:hidden}.list li{cursor:pointer;border-bottom:1px solid #eaecf0;justify-content:space-between;align-items:center;padding:.75rem 1rem;display:flex}.list li:last-child{border-bottom:0}.badge{white-space:nowrap;background:#e4e7ec;border-radius:999px;margin-left:.4rem;padding:.1rem .5rem;font-size:.75rem;display:inline-block}.badge.warn{color:var(--warn);background:#fef0c7}.badge.active{color:var(--ok);background:#dcfae6}.badge.invited{color:var(--brand);background:#d1e9ff}.topbar{background:var(--brand);color:#fff;z-index:5;justify-content:space-between;align-items:center;gap:1rem;padding:.75rem 1rem;display:flex;position:sticky;top:0}.topbar nav{gap:1rem;display:flex}.topbar a{color:#fff;opacity:.8;text-decoration:none}.topbar a.active{opacity:1;text-decoration:underline}.topbar .link{color:#fff}.modal{z-index:10;background:#0006;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{border-radius:16px 16px 0 0;width:100%;max-width:520px;max-height:92vh;margin:0;overflow:auto}@media (width>=600px){.modal{align-items:center}.sheet{border-radius:16px}}.tally{margin-bottom:.5rem}.tally .badge{margin-left:0;padding:.25rem .6rem;font-size:.85rem}.att-row{cursor:default;gap:.5rem}.seg{border:1px solid #d0d5dd;border-radius:8px;flex-shrink:0;display:inline-flex;overflow:hidden}.seg button{color:var(--text);background:#fff;border-left:1px solid #eaecf0;border-radius:0;min-height:44px;padding:.4rem .6rem;font-size:.85rem}.seg button:first-child{border-left:0}.seg button.on.present{background:var(--ok);color:#fff}.seg button.on.late{color:#fff;background:#f79009}.seg button.on.injured{color:#fff;background:#d92d20}.seg button.on.absent{color:#fff;background:#98a2b3}@media (width<=380px){.seg button{padding:.4rem .45rem;font-size:.8rem}}.sheet-list li{cursor:default;grid-template-columns:2rem 1fr;align-items:center;gap:.25rem .5rem;display:grid}.sheet-list li select{grid-column:1/-1;width:100%}.slot-no{color:var(--brand);font-weight:700}.bench-start{border-top:3px solid var(--brand)!important}a.button{text-align:center;border-radius:8px;padding:.7rem 1rem;font-weight:600;text-decoration:none;display:block}a.button.secondary{color:var(--text);background:#e4e7ec}.notif{border-left:4px solid var(--brand)}.notif.read{opacity:.75;border-left-color:#e4e7ec}textarea{font:inherit;word-break:break-all;border:1px solid #d0d5dd;border-radius:8px;padding:.6rem;font-family:ui-monospace,monospace;font-size:.8rem}.scoreboard{text-align:center}.score{justify-content:space-between;align-items:center;font-size:1rem;display:flex}.score b{font-size:2rem}.action-grid{grid-template-columns:1fr 1fr;gap:.5rem;display:grid}.action-grid button{min-height:56px}.sub-btn{background:#6941c6}.pick-grid{flex-direction:column;gap:.4rem;max-height:55vh;display:flex;overflow:auto}.pick{border-bottom:1px solid #eaecf0;justify-content:space-between;align-items:center;padding:.4rem 0;display:flex}.table-wrap{background:var(--card);border-radius:12px;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.9rem}th,td{text-align:right;white-space:nowrap;border-bottom:1px solid #eaecf0;padding:.5rem .6rem}th:first-child,td:first-child{text-align:left;background:var(--card);position:sticky;left:0}th{cursor:pointer;color:var(--muted);font-size:.8rem}th.sorted{color:var(--brand);text-decoration:underline}:root{--brand:#c8102e;--brand-dark:#8e0b20;--ink:#111}.topbar{background:var(--brand)}.page.wide{max-width:1100px}label.button{cursor:pointer;color:var(--text);background:#e4e7ec;border-radius:8px;justify-content:center;align-items:center;padding:.7rem 1rem;font-weight:600;display:flex}.cal{grid-template-columns:repeat(7,1fr);gap:4px;margin:1rem 0 .5rem;display:grid}.cal-h{text-align:center;color:var(--muted);font-size:.75rem}.cal-d{background:var(--card);color:var(--text);border-radius:8px;flex-direction:column;justify-content:space-between;align-items:center;min-height:52px;padding:.3rem;font-weight:500;display:flex}.cal-d.today{outline:2px solid var(--muted)}.cal-d.sel{background:var(--brand);color:#fff}.cal-dots{gap:3px;min-height:8px;display:flex}.dot{border-radius:50%;width:8px;height:8px;display:inline-block}.dot.train{background:var(--ok)}.dot.match{background:var(--ink)}.cal-d.sel .dot.match{background:#fff}.att-row{cursor:pointer;-webkit-user-select:none;user-select:none}.switch{background:#d0d5dd;border-radius:999px;flex-shrink:0;width:52px;height:30px;transition:background .15s;position:relative}.switch:after{content:"";background:#fff;border-radius:50%;width:24px;height:24px;transition:left .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 2px #0000004d}.switch.on{background:var(--ok)}.switch.on:after{left:25px}.chip{min-height:28px;color:var(--text);background:#e4e7ec;border-radius:999px;margin-left:.5rem;padding:.1rem .6rem;font-size:.75rem}.chip.on{color:#fff;background:#f79009}.pick-layout{gap:1rem;display:grid}.pool{z-index:4;max-height:42vh;margin:0;position:sticky;bottom:0;box-shadow:0 -4px 16px #00000026}.pool .pool-list{max-height:none;overflow:auto}@media (width<=819px){.pool{flex-direction:column;display:flex}.pool .pool-list{flex:1;min-height:0}}@media (width>=820px){.pick-layout{grid-template-columns:300px 1fr;align-items:start}.pool{grid-area:1/1/span 2;max-height:calc(100vh - 6rem);top:4.5rem;bottom:auto;box-shadow:0 1px 3px #00000014}.pick-layout>section{grid-column:2}}.pool-list{max-height:60vh;margin:0;padding:0;list-style:none;overflow:auto}.pool-list li{cursor:grab;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;border-bottom:1px solid #eaecf0;align-items:center;gap:.6rem;padding:.5rem .25rem;display:flex}.pool-list li.sel{outline:2px solid var(--brand);background:#fde8eb}.pool-name{flex-direction:column;flex:1;min-width:0;display:flex}.pool-photo{background:var(--ink);color:#fff;border-radius:50%;flex-shrink:0;place-items:center;width:40px;height:40px;font-weight:700;display:grid;overflow:hidden}.pool-photo.big{width:64px;height:64px;font-size:1.4rem}.pool-photo img{object-fit:cover;pointer-events:none;width:100%;height:100%}.lu-tabs{background:#e4e7ec;border-radius:10px;gap:.25rem;padding:.25rem;display:flex}.lu-tabs button{color:var(--text);background:0 0;flex:1;min-height:38px;padding:.3rem}.lu-tabs button.on{background:var(--card);box-shadow:0 1px 2px #00000026}.lineup{background:var(--ink);border-radius:14px;margin-bottom:1rem;padding:.6rem}.lineup .lu-tabs{background:#2a2a2a;margin-bottom:.6rem}.lineup .lu-tabs button{color:#ccc}.lineup .lu-tabs button.on{background:var(--brand);color:#fff}.lu-pager{scroll-snap-type:x mandatory;scrollbar-width:none;display:flex;overflow-x:auto}.lu-pager::-webkit-scrollbar{display:none}.lu-page{scroll-snap-align:start;flex:0 0 100%}.lu-grid{grid-template-columns:repeat(5,1fr);gap:6px;display:grid}.lu-card{border:2px solid var(--brand);color:#fff;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation;background:#1d1d1d;border-radius:8px;padding:3px 3px 5px;position:relative}.lu-card.empty{border-style:dashed;border-color:#555}.lu-card.sel{outline:3px solid #fff}.lu-card.inj{border-color:#f79009}.lu-no{color:var(--brand);text-shadow:0 1px 2px #000;z-index:1;font-size:1rem;font-weight:800;position:absolute;top:2px;left:5px}.lu-photo{aspect-ratio:4/5;color:#999;background:#333;border-radius:5px;place-items:center;font-size:1.1rem;font-weight:800;display:grid;overflow:hidden}.lu-photo img{object-fit:cover;pointer-events:none;width:100%;height:100%}.lu-name{text-transform:uppercase;overflow-wrap:anywhere;margin-top:3px;font-size:.68rem;font-weight:700;line-height:1.15}.lu-card.empty .lu-name{color:#888;text-transform:none;font-weight:500}.lu-caps{color:#bbb;font-size:.62rem}.lu-dots{justify-content:center;gap:6px;margin-top:.5rem;display:flex}.lu-dots span{background:#555;border-radius:50%;width:7px;height:7px}.lu-dots span.on{background:#fff}.drag-ghost{background:var(--brand);color:#fff;pointer-events:none;z-index:50;border-radius:999px;padding:.4rem .8rem;font-weight:700;position:fixed;transform:translate(-50%,-120%);box-shadow:0 4px 12px #0000004d}.pool{transition:transform .2s,opacity .2s}.pool.away{opacity:.35;transform:translateY(85%)}@media (width>=820px){.pool.away{opacity:1;transform:none}}@media (width<=819px){.pool{max-height:36vh}.lu-photo{aspect-ratio:1}}
