*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{font-family:system-ui,-apple-system,sans-serif;background:#f5f5f5;color:#1a1a1a;min-height:100vh}.centered{min-height:100vh;display:flex;align-items:center;justify-content:center}.card{background:#fff;border-radius:12px;padding:2.5rem;box-shadow:0 2px 16px #00000014;text-align:center;max-width:400px;width:100%}.card h1{font-size:1.8rem;margin-bottom:.75rem}.card p{color:#555;margin-bottom:1.5rem;line-height:1.5}.btn-primary{background:#4285f4;color:#fff;border:none;border-radius:8px;padding:.7rem 1.5rem;font-size:1rem;cursor:pointer;width:100%}.btn-primary:hover{background:#3367d6}.btn-secondary{background:transparent;color:#4285f4;border:1px solid #4285f4;border-radius:8px;padding:.5rem 1.2rem;font-size:.9rem;cursor:pointer}.btn-secondary:hover{background:#f0f4ff}.error-msg{color:#c0392b;background:#fdecea;border-radius:6px;padding:.5rem .75rem;font-size:.9rem;margin-bottom:1rem}.app-shell{min-height:100vh;display:flex;flex-direction:column}.app-header{background:#fff;border-bottom:1px solid #e5e5e5;padding:1rem 2rem;display:flex;align-items:center;justify-content:space-between}.app-logo{height:2.5rem;width:auto}.user-info{display:flex;align-items:center;gap:1rem;font-size:.9rem;color:#555}.role-badge{background:#e8f0fe;color:#3367d6;border-radius:12px;padding:.2rem .7rem;font-size:.8rem;font-weight:500}.app-body{display:flex;flex:1;min-height:0}.sidebar{width:200px;background:#fff;border-right:1px solid #e5e5e5;padding:1.5rem 0;display:flex;flex-direction:column;gap:.25rem}.sidebar a{display:block;padding:.6rem 1.5rem;color:#555;text-decoration:none;font-size:.95rem;border-left:3px solid transparent}.sidebar a:hover{background:#f5f5f5;color:#1a1a1a}.sidebar a.active{color:#4285f4;border-left-color:#4285f4;background:#f0f4ff;font-weight:500}.app-content{padding:2rem;flex:1;overflow-y:auto}.page h2{font-size:1.4rem;margin-bottom:1.5rem}.inline-form{display:flex;gap:.75rem;margin-bottom:1.5rem}.inline-form input{border:1px solid #ddd;border-radius:8px;padding:.6rem 1rem;font-size:.95rem;flex:1;max-width:320px}.inline-form input:focus{outline:none;border-color:#4285f4}.item-list{list-style:none;border:1px solid #e5e5e5;border-radius:8px;overflow:hidden}.item-list li{padding:.85rem 1.25rem;border-bottom:1px solid #e5e5e5;font-size:.95rem}.item-list li:last-child{border-bottom:none}.empty-state{color:#888;font-size:.95rem}.player-form{display:flex;gap:.75rem;margin-bottom:1.5rem;flex-wrap:wrap}.player-form input,.player-form select{border:1px solid #ddd;border-radius:8px;padding:.6rem 1rem;font-size:.95rem}.player-form input:focus,.player-form select:focus{outline:none;border-color:#4285f4}.player-meta{float:right;color:#888;font-size:.85rem}.team-list-item{cursor:pointer;display:flex;justify-content:space-between;align-items:center}.team-list-item:hover{background:#f5f5f5}.team-columns{display:grid;grid-template-columns:1fr 1fr;gap:2rem}.team-section-title{font-size:1rem;font-weight:600;margin-bottom:.75rem;color:#333}.team-player-row{display:flex;justify-content:space-between;align-items:center}.role-override-select{border:1px solid #f0a500;border-radius:12px;padding:.2rem .7rem;font-size:.8rem;font-weight:500;background:#fff8e1;color:#b07800;cursor:pointer}.match-info{display:flex;flex-direction:column;gap:.2rem}.match-teams{font-weight:500}.match-meta{font-size:.85rem;color:#888}.match-right{display:flex;align-items:center;gap:.75rem}.match-score{font-weight:600;font-size:1rem}.match-detail-meta{color:#555;margin-bottom:.5rem}.match-result{font-size:2rem;font-weight:700;margin:.5rem 0 1rem}.status-badge{border-radius:12px;padding:.2rem .7rem;font-size:.8rem;font-weight:500}.status-scheduled{background:#e8f0fe;color:#3367d6}.status-completed{background:#e6f4ea;color:#1e7e34}.status-cancelled{background:#fce8e6;color:#c0392b}.user-row{display:flex;justify-content:space-between;align-items:center;gap:1rem}.user-email{flex:1;font-size:.95rem}.user-actions{display:flex;gap:.5rem;align-items:center}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1.5rem}.stat-card{background:#fff;border:1px solid #e5e5e5;border-radius:10px;padding:1.25rem;text-align:center;cursor:pointer;display:flex;flex-direction:column;gap:.25rem;transition:box-shadow .15s}.stat-card:hover{box-shadow:0 2px 12px #00000014}.stat-number{font-size:2rem;font-weight:700;color:#4285f4}.stat-label{font-size:.85rem;color:#888}.days-until{font-size:.8rem;color:#4285f4;font-weight:500;white-space:nowrap}.user-add-form{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1.5rem;max-width:480px}.user-add-form input[type=email]{border:1px solid #ddd;border-radius:8px;padding:.6rem 1rem;font-size:.95rem}.user-info-col{display:flex;flex-direction:column;gap:.15rem;flex:1}.user-clubs{font-size:.8rem;color:#888}.club-row{display:flex;justify-content:space-between;align-items:center;gap:.75rem}.club-edit-input{flex:1;border:1px solid #4285f4;border-radius:8px;padding:.4rem .75rem;font-size:.95rem}.club-edit-input:focus{outline:none}.club-actions{display:flex;gap:.5rem;flex-shrink:0}.btn-danger{color:#c0392b;border-color:#c0392b}.btn-danger:hover{background:#fdecea}.team-grid-wrapper{overflow-x:auto;border:1px solid #e5e5e5;border-radius:8px;margin-bottom:2rem}.team-grid{border-collapse:separate;border-spacing:0;min-width:100%;font-size:.9rem}.team-grid th,.team-grid td{border-right:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5}.team-grid th:last-child,.team-grid td:last-child{border-right:none}.team-grid tbody tr:last-child td{border-bottom:none}.grid-name-col{position:sticky;left:0;z-index:1;background:#fff;min-width:160px;max-width:200px;padding:.6rem 1rem;white-space:nowrap;font-weight:400}.grid-name-header{z-index:3;background:#f8f9fa;font-weight:600;font-size:.82rem;text-transform:uppercase;letter-spacing:.03em;color:#555}.grid-match-header-col{min-width:150px;max-width:180px;vertical-align:top;padding:0;background:#f8f9fa}.grid-col-next{background:#eef3ff!important}.grid-no-matches-col{padding:.75rem 1rem;background:#f8f9fa;color:#888;font-weight:400}.match-header-card{padding:.6rem .75rem;display:flex;flex-direction:column;gap:.18rem}.match-header-opponent{font-weight:600;font-size:.88rem;color:#1a1a1a;margin-top:.15rem}.match-header-date{font-size:.78rem;color:#555;line-height:1.4}.match-header-location{background:none;border:none;padding:0;font-size:.78rem;color:#4285f4;cursor:pointer;text-align:left;text-decoration:underline;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:140px}.match-header-level{font-size:.75rem;color:#888}.match-header-coaches{font-size:.75rem;color:#888;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.grid-cell{text-align:center;vertical-align:middle;padding:0}.participation-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;border:none;background:transparent;font-size:1.1rem;font-weight:600;padding:0}.participation-btn.can-toggle{cursor:pointer}.participation-btn.is-in{color:#1e7e34;background:#e6f4ea}.participation-btn.is-out{color:#ccc}.participation-btn.can-toggle:hover.is-in{background:#fce8e6;color:#c0392b}.participation-btn.can-toggle:hover.is-out{background:#e6f4ea;color:#1e7e34}.participation-btn:disabled{opacity:.5;cursor:default}.participation-display{display:flex;align-items:center;justify-content:center;min-height:44px;font-size:1.1rem;font-weight:600}.participation-display.is-in{color:#1e7e34}.participation-display.is-out{color:#ddd}.roster-management{margin-top:2rem;padding-top:1.5rem;border-top:1px solid #e5e5e5}.grid-add-col{min-width:60px;vertical-align:middle;text-align:center;background:#f8f9fa;padding:0}.grid-add-col .add-match-form{padding:.5rem .6rem;display:flex;flex-direction:column;gap:.35rem;min-width:170px}.grid-add-col .add-match-form input{border:1px solid #ddd;border-radius:6px;padding:.35rem .5rem;font-size:.82rem;width:100%}.grid-add-col .add-match-form input:focus{outline:none;border-color:#4285f4}.add-player-form{display:flex;flex-direction:column;gap:.35rem;padding:.35rem 0}.add-player-form input,.add-player-form select{border:1px solid #ddd;border-radius:6px;padding:.35rem .5rem;font-size:.82rem;width:100%}.add-player-form input:focus,.add-player-form select:focus{outline:none;border-color:#4285f4}.add-form-actions{display:flex;gap:.35rem;margin-top:.15rem}.add-form-actions .btn-primary{padding:.3rem .7rem;font-size:.8rem;width:auto;border-radius:6px}.add-form-actions .btn-secondary{padding:.3rem .7rem;font-size:.8rem;border-radius:6px}.add-btn{background:none;border:2px dashed #ccc;border-radius:8px;color:#888;font-size:1.4rem;font-weight:300;cursor:pointer;padding:.5rem 1rem;transition:all .15s}.add-btn:hover{border-color:#4285f4;color:#4285f4;background:#f0f4ff}.grid-add-player-row .grid-name-col{border-bottom:none}.grid-add-player-row .add-btn{font-size:.9rem;padding:.4rem .8rem;width:100%;text-align:left}
