:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:#141820;--surface:#fff;--surface-soft:#f7f9fb;--line:#d8dee8;--muted:#647184;--text:#141820;--accent:#176b87;--accent-strong:#0f556c;--good:#208064;--danger:#be3a34;--danger-soft:#fff1f0;--own:#176b87;--opponent:#7a4f1d;--shadow:0 18px 45px #232d3d1f;background:#eef2f6;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:linear-gradient(#f9fbfd 0%,#eef2f6 45%,#e8edf3 100%);min-width:320px;min-height:100vh;margin:0}button,input,select{font:inherit}button{-webkit-tap-highlight-color:transparent}.shell{width:min(100%,1120px);min-height:100vh;margin:0 auto;padding:18px 14px 92px}.appHeader{justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;display:flex}.eyebrow{color:var(--accent);text-transform:uppercase;letter-spacing:0;margin:0 0 2px;font-size:.78rem;font-weight:800}h1,h2,p{margin-top:0}h1{margin-bottom:0;font-size:clamp(1.7rem,7vw,2.55rem);line-height:1.05}h2{margin-bottom:0;font-size:1.02rem;line-height:1.2}.headerBadge{color:#fff;white-space:nowrap;background:#111827;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-width:88px;min-height:42px;padding:0 12px;font-weight:800;display:inline-flex}.content{gap:16px;display:grid}.stack{gap:14px;display:grid}.panel,.listSection,.emptyAction,.scorePanel{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);border-radius:8px}.panel{padding:16px}.panel.compact{box-shadow:none}.sectionTitle,.fieldHeader{justify-content:space-between;align-items:center;gap:12px;display:flex}.sectionTitle{justify-content:flex-start;margin-bottom:14px}.sectionTitle svg,.fieldHeader svg{color:var(--accent)}.form{gap:14px;display:grid}label{color:var(--muted);gap:7px;font-size:.86rem;font-weight:750;display:grid}input,select{border:1px solid var(--line);background:var(--surface-soft);width:100%;min-height:46px;color:var(--text);border-radius:8px;outline:none;padding:0 12px}input:focus,select:focus{border-color:var(--accent);background:#fff;box-shadow:0 0 0 3px #176b8724}.grid2{grid-template-columns:1fr;gap:12px;display:grid}.playerRow{grid-template-columns:72px 1fr 42px;align-items:end;gap:8px;display:grid}.playerRow.editable{grid-template-columns:34px 60px 1fr 42px 42px}.reorder{grid-template-rows:1fr 1fr;gap:4px;height:42px;display:grid}.reorder button{color:var(--muted);cursor:pointer;background:#edf1f5;border:0;border-radius:6px;place-items:center;padding:0;display:grid}.reorder button:disabled{opacity:.4;cursor:not-allowed}.playerEditCard.inactive input{color:var(--muted);text-decoration:line-through}.playerEditCard{background:var(--surface-soft);border-radius:8px;gap:8px;padding:10px;display:grid}.strengthRow{align-items:center;gap:10px;display:flex}.strengthLabel{color:var(--muted);font-size:.8rem;font-weight:800}.strengthPicker{gap:6px;display:inline-flex}.strengthDot{color:#aeb7c2;cursor:pointer;background:#e4e9ee;border:0;border-radius:8px;place-items:center;width:34px;height:34px;display:inline-grid}.strengthDot.filled{color:#b8860b;background:#ffe6a8}.strengthDot.filled svg{fill:currentColor}.strengthStars{color:#d3d9e0;flex:none;gap:1px;display:inline-flex}.strengthStars .filled{color:#e7a700;fill:currentColor}.hintText{color:var(--muted);margin:-2px 0 2px;font-size:.82rem}.balanceResult{grid-template-columns:1fr;gap:10px;display:grid}.balanceTeam{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:12px}.balanceTeamHead{justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:8px;display:flex}.balanceTeamHead span{color:var(--muted);font-size:.82rem;font-weight:800}.balanceTeamList{gap:6px;margin:0;padding:0;list-style:none;display:grid}.balancePlayer{align-items:center;gap:8px;display:flex}.balancePlayer .playerName{flex:auto}.balancePlayer .twTag{color:var(--accent-strong);background:#e8f5f8;border-radius:6px;flex:none;padding:1px 7px;font-size:.72rem;font-weight:850}.primaryButton,.dangerButton,.goalButton,.breakButton,.subButton,.cardButton,.ghostButton,.iconButton,.matchItem,.playerChip{cursor:pointer;border:0;border-radius:8px}.primaryButton,.dangerButton,.goalButton,.breakButton,.subButton,.cardButton{justify-content:center;align-items:center;gap:8px;min-height:48px;padding:0 14px;font-weight:850;display:inline-flex}.primaryButton{background:var(--accent);color:#fff}.primaryButton:hover{background:var(--accent-strong)}.primaryButton:disabled,.dangerButton:disabled,.goalButton:disabled,.subButton:disabled,.cardButton:disabled{cursor:not-allowed;opacity:.48}.dangerButton{background:var(--danger);color:#fff}.breakButton{color:#5c4a28;background:#ece7dc;grid-column:1/-1;min-height:54px}.subButton{color:#fff;background:#263241;grid-column:1/-1;min-height:54px}.ghostButton{min-height:38px;color:var(--accent-strong);background:#eaf2f5;align-items:center;gap:6px;padding:0 10px;font-weight:800;display:inline-flex}.iconButton{width:42px;height:42px;color:var(--muted);background:#edf1f5;place-items:center;font-size:1.5rem;display:inline-grid}.iconButton.danger{background:var(--danger-soft);color:var(--danger)}.buttonRow{grid-template-columns:1fr;gap:10px;display:grid}.listSection{gap:10px;padding:14px;display:grid}.listSection>h2{margin-bottom:4px}.listItem,.matchItem,.eventItem{border:1px solid var(--line);background:var(--surface-soft);width:100%;min-height:62px;color:inherit;text-align:left;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:12px;display:flex}.matchRow{grid-template-columns:minmax(0,1fr) 42px;align-items:stretch;gap:8px;display:grid}.matchRow .matchItem{min-height:62px}.matchRow .iconButton{height:100%;min-height:62px}.teamItem{align-items:center}.listItem div,.matchItem div,.eventItem div:last-child,.playerTimeName{gap:3px;min-width:0;display:grid}.listItem span,.matchItem span,.eventItem span,.emptyState{color:var(--muted);font-size:.88rem}.matchItem strong,.eventItem strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.playerPicker{grid-template-columns:1fr;gap:8px;display:grid}.compactPlayerList,.lineupList{grid-template-columns:1fr;gap:7px;display:grid}.lineupPlayer{grid-template-columns:minmax(0,1fr) 54px;gap:8px;display:grid}.lineupMain,.keeperToggle{border:1px solid var(--line);background:var(--surface-soft);color:var(--text);border-radius:8px}.lineupMain{text-align:left;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:42px;padding:7px 9px;font-weight:800;display:grid}.lineupPlayer.selected .lineupMain{color:var(--accent-strong);background:#e8f5f8;border-color:#176b878c}.lineupPlayer.selected .numberBadge{background:var(--accent);color:#fff}.keeperToggle{min-height:42px;font-size:.82rem;font-weight:900}.keeperToggle.selected{color:var(--opponent);background:#fff4df;border-color:#7a4f1d8c}.compactPlayer{border:1px solid var(--line);background:var(--surface-soft);min-height:42px;color:var(--text);text-align:left;border-radius:8px;grid-template-columns:38px minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:7px 9px;font-weight:800;display:grid}.compactPlayer.selected{color:var(--accent-strong);background:#e8f5f8;border-color:#176b878c}.compactPlayer.disabled{cursor:not-allowed;opacity:.58}.numberBadge{color:#243044;background:#e2e8f0;border-radius:8px;place-items:center;width:34px;height:28px;font-size:.82rem;display:inline-grid}.compactPlayer.selected .numberBadge{background:var(--accent);color:#fff}.playerName{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.playerMeta{color:var(--muted);font-size:.78rem}.playerChip{border:1px solid var(--line);background:var(--surface-soft);min-height:44px;color:var(--text);text-align:left;align-items:center;gap:10px;padding:8px 10px;font-weight:750;display:flex}.playerChip span{color:#243044;background:#e2e8f0;border-radius:8px;place-items:center;min-width:34px;height:28px;font-size:.82rem;display:inline-grid}.playerChip.selected{color:var(--accent-strong);background:#e8f5f8;border-color:#176b878c}.playerChip.selected span{background:var(--accent);color:#fff}.playerChip.disabled{cursor:not-allowed;opacity:.58}.playerChip.disabled span{color:var(--muted);background:#edf1f5}.scorePanel{background:linear-gradient(135deg, #176b871f, #20806414), var(--surface);padding:18px}.scorePanel.overtime{background:linear-gradient(135deg, #be3a3429, #7a4f1d14), var(--danger-soft);border-color:#be3a3473}.matchMeta,.clockLine{color:var(--muted);text-align:center;justify-content:center;align-items:center;gap:9px;display:flex}.matchMeta{flex-wrap:wrap;font-weight:800}.kickoffLine{color:var(--muted);text-align:center;margin:7px 0 0;font-size:.86rem;font-weight:750}.score{justify-content:center;align-items:baseline;gap:12px;margin:8px 0 6px;font-size:clamp(3.36rem,19.2vw,5.6rem);font-weight:900;line-height:.95;display:flex}.score small{color:var(--muted);font-size:.55em}.clockLine strong{color:var(--text);font-size:1.38rem}.overtime .clockLine strong,.overtime .clockLine svg{color:var(--danger)}.actionGrid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.actionGrid .large{grid-column:1/-1;min-height:54px}.cardButton{min-height:54px;color:var(--accent-strong);background:#cfe6ee;grid-column:1/-1}.cardButton:hover{background:#bcdbe6}.cardOptions{grid-template-columns:1fr 1fr;gap:8px;display:grid}.cardOption{background:var(--surface-soft);min-height:48px;color:var(--text);cursor:pointer;border:2px solid #0000;border-radius:8px;align-items:center;gap:8px;padding:0 12px;font-weight:800;display:inline-flex}.cardOption.selected{border-color:var(--accent);background:#eaf2f5}.cardBadge{vertical-align:-3px;border-radius:3px;flex:none;width:13px;height:18px;margin-right:6px;display:inline-block}.cardBadge.yellow{background:#f2c200}.cardBadge.red{background:var(--danger)}.cardBadge.yellow_red{background:linear-gradient(135deg, #f2c200 0 50%, var(--danger) 50% 100%)}.cardBadge.time_penalty{background:#647184}.goalButton{color:#fff;flex-direction:column;min-height:72px}.goalButton.own{background:var(--own)}.goalButton.opponent{background:var(--opponent)}.statsGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.stat{background:var(--surface-soft);border-radius:8px;gap:4px;min-height:58px;padding:10px;display:grid}.stat span{color:var(--muted);font-size:.76rem;font-weight:750}.stat strong{font-size:.95rem}.eventItem{justify-content:flex-start}.eventMinute{min-width:44px;height:44px;color:var(--accent-strong);background:#e8f5f8;border-radius:8px;place-items:center;font-weight:900;display:inline-grid}.emptyAction{text-align:center;justify-items:center;gap:10px;padding:30px 20px;display:grid}.emptyAction svg{color:var(--accent)}.emptyAction p{max-width:32rem;color:var(--muted);margin-bottom:4px}.emptyState{margin:6px 0}.modalBackdrop{z-index:20;background:#0c121c6b;align-items:end;padding:14px;display:grid;position:fixed;inset:0;overflow:hidden}.modal{background:var(--surface);overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border-radius:8px;gap:14px;width:min(100%,520px);max-height:min(88vh,720px);margin:0 auto;padding:16px;display:grid;overflow-y:auto;box-shadow:0 28px 80px #0c121c4d}.modalHeader{justify-content:space-between;align-items:center;gap:12px;display:flex}.toggleRow{color:var(--text);grid-template-columns:22px 1fr;align-items:center}.toggleRow input{width:18px;min-height:18px}.tabbar{z-index:10;border-top:1px solid var(--line);width:min(100%,1120px);padding:8px 10px max(8px, env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#fffffff0;grid-template-columns:repeat(5,1fr);gap:4px;margin:0 auto;display:grid;position:fixed;bottom:0;left:0;right:0}.tabButton{min-height:56px;color:var(--muted);background:0 0;border:0;border-radius:8px;justify-items:center;gap:4px;font-size:.76rem;font-weight:800;display:grid}.tabButton.active{color:var(--accent-strong);background:#e8f5f8}@media (width>=720px){.shell{padding:28px 22px 104px}.grid2,.playerPicker,.compactPlayerList,.lineupList,.balanceResult{grid-template-columns:repeat(2,1fr)}.statsGrid{grid-template-columns:repeat(4,minmax(0,1fr))}.buttonRow{grid-template-columns:auto 1fr}.stack{gap:18px}.panel,.listSection,.scorePanel{padding:20px}.modalBackdrop{align-items:center}}@media (width>=980px){.content>.stack{grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);align-items:start}.scorePanel,.actionGrid{grid-column:1/-1}.tabbar{border:1px solid var(--line);border-radius:8px 8px 0 0}}.loginShell{flex-direction:column;justify-content:center;max-width:420px;min-height:100vh;display:flex}.loginError{color:var(--danger);margin:0;font-size:.88rem;font-weight:750}.headerUser{align-items:center;gap:10px;display:inline-flex}.headerUser .userName{color:var(--muted);font-size:.86rem;font-weight:800}
