:root{--bg: #f8fafc;--panel: #ffffff;--text: #0f172a;--muted: #64748b;--border: #e2e8f0;--primary: #0f172a;--primary-hover: #1e293b;--accent: #3b82f6;--ring: rgba(59, 130, 246, .5);--radius: 12px;--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .05);--shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--font-sans: "Inter", system-ui, -apple-system, sans-serif}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:var(--font-sans);color:var(--text);background:var(--bg);line-height:1.5;-webkit-font-smoothing:antialiased}h1,h2,h3,h4{margin:0;font-weight:700;letter-spacing:-.025em}.top-nav{position:absolute;top:0;left:0;right:0;z-index:100;display:flex;justify-content:space-between;align-items:center;padding:1.25rem 2.5rem;background:transparent}.nav-logo{font-size:1.125rem;font-weight:600;color:#fffffff2;text-decoration:none;letter-spacing:-.01em}.nav-logo:hover{color:#fff}.nav-actions{display:flex;align-items:center;gap:.75rem}.nav-link{color:#ffffffd9;text-decoration:none;font-size:.875rem;font-weight:500;padding:.5rem 1rem;border-radius:6px;transition:all .2s ease}.nav-link:hover{color:#fff;background:#ffffff26}.btn-signin{background:#ffffff26;color:#fff;border:1px solid rgba(255,255,255,.3);padding:.5rem 1.25rem;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s ease;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.btn-signin:hover{background:#ffffff40;border-color:#ffffff80}.hero{position:relative;min-height:50vh;display:flex;flex-direction:column;justify-content:center;align-items:center;background-position:center 20%;background-size:cover;background-repeat:no-repeat;isolation:isolate}.hero-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(to bottom,#0000004d,#00000080);z-index:-1}.hero-inner{width:100%;max-width:1200px;padding:6rem 2rem 4rem;text-align:center;color:#fff}.hero h1{font-size:clamp(2.25rem,4vw,3.5rem);font-weight:700;margin-bottom:.75rem;text-shadow:0 2px 20px rgba(0,0,0,.3);letter-spacing:-.03em}.hero-subtitle{font-size:clamp(1rem,1.5vw,1.25rem);opacity:.9;font-weight:400;max-width:500px;margin:0 auto;text-shadow:0 1px 10px rgba(0,0,0,.2)}.container{max-width:1200px;margin:0 auto;padding:2rem 1.5rem 4rem;position:relative;z-index:10}.view-controls{display:flex;justify-content:flex-end;margin-bottom:1rem}.view-toggle{display:inline-flex;background:var(--panel);border:1px solid var(--border);border-radius:8px;overflow:hidden}.view-btn{background:none;border:none;padding:.625rem 1rem;font-size:.875rem;font-weight:500;color:var(--muted);cursor:pointer;transition:all .15s ease;display:flex;align-items:center;gap:.375rem}.view-btn:not(:last-child){border-right:1px solid var(--border)}.view-btn:hover{background:#f8fafc;color:var(--text)}.view-btn.active{background:var(--primary);color:#fff}.calendar-filters{display:flex;gap:1rem;margin-bottom:1rem}.calendar-filters .field{min-width:200px}.filters{display:flex;flex-wrap:wrap;gap:1rem;align-items:end;margin-bottom:2rem;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-md);padding:1.25rem 1.5rem}.field{flex:1;min-width:100px}.field.wide{flex:1.5;min-width:150px}@media (max-width: 768px){.filters{flex-direction:column;gap:.75rem}.field,.field.wide{width:100%;flex:none}}label{display:block;font-size:.75rem;font-weight:600;color:var(--muted);margin-bottom:.375rem;text-transform:uppercase;letter-spacing:.03em}input[type=text],input[type=number],input[type=time],select{width:100%;height:40px;padding:0 .875rem;border-radius:6px;border:1px solid var(--border);background:var(--bg);color:var(--text);font-size:.9rem;outline:none;transition:all .15s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem}input:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 4px var(--ring);background:#fff}input::placeholder{color:#94a3b8}.with-icon{position:relative}.with-icon .icon{position:absolute;left:1rem;top:50%;transform:translateY(-50%);font-size:1rem;color:var(--muted);pointer-events:none}.search-input{padding-left:2.75rem!important}.cards{list-style:none;margin:2rem 0 0;padding:0;display:grid;gap:1.5rem}.card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:1.5rem;transition:transform .2s ease,box-shadow .2s ease}.card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);border-color:#cbd5e1}.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem}.card-title{font-size:1.25rem;line-height:1.4;color:var(--text)}.badges{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:flex-end}.badge{display:inline-flex;align-items:center;padding:.25rem .75rem;font-size:.75rem;font-weight:600;border-radius:9999px;background:#f1f5f9;color:#475569;border:1px solid transparent;letter-spacing:.02em}.badge[data-intensity=easy]{background:#dcfce7;color:#166534}.badge[data-intensity=moderate]{background:#fef9c3;color:#854d0e}.badge[data-intensity=hard]{background:#fee2e2;color:#991b1b}.description{color:var(--muted);font-size:.95rem;margin-bottom:1.25rem;line-height:1.6}.meetings{background:#f8fafc;border-radius:8px;padding:1rem;border:1px solid var(--border)}.meetings h4{font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:.75rem}.meetings ul{margin:0;padding-left:1.25rem;font-size:.9rem;color:var(--text)}.meetings li{margin-bottom:.25rem}.meetings li:last-child{margin-bottom:0}.empty,.error,.loading{text-align:center;padding:3rem;color:var(--muted);font-weight:500}.error{color:#ef4444}.map-container{width:100%;height:450px;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-md);border:1px solid var(--border);margin-bottom:2rem;background:var(--panel)}@media (max-width: 640px){.card-head{flex-direction:column}.badges{justify-content:flex-start}}.admin-page{min-height:100vh;background:var(--bg)}.admin-header{background:var(--primary);color:#fff;padding:1.5rem 2rem}.admin-header-inner{max-width:1400px;margin:0 auto;display:flex;justify-content:space-between;align-items:center}.admin-header h1{font-size:1.5rem;margin-top:.25rem}.admin-back{color:#ffffffb3;text-decoration:none;font-size:.85rem;display:inline-block;margin-bottom:.25rem}.admin-back:hover{color:#fff}.admin-user{display:flex;align-items:center;gap:1rem}.admin-greeting{font-size:.9rem;opacity:.9}.admin-content{max-width:1400px;margin:0 auto;padding:2rem}.admin-loading{text-align:center;padding:4rem;color:var(--muted)}.admin-signin-prompt{text-align:center;padding:4rem 2rem;background:var(--panel);border-radius:var(--radius);border:1px solid var(--border);max-width:500px;margin:4rem auto}.admin-signin-prompt h2{margin-bottom:.5rem}.admin-signin-prompt p{color:var(--muted);margin-bottom:1.5rem}.admin-grid{display:grid;grid-template-columns:300px 1fr;gap:2rem;align-items:start}.admin-single{max-width:700px;margin:0 auto}@media (max-width: 900px){.admin-grid{grid-template-columns:1fr}}.admin-sidebar{background:var(--panel);border-radius:var(--radius);border:1px solid var(--border);overflow:hidden}.sidebar-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.25rem;border-bottom:1px solid var(--border);background:#f8fafc}.sidebar-header h3{font-size:.9rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}.club-list{list-style:none;margin:0;padding:0;max-height:500px;overflow-y:auto}.club-list-item{padding:1rem 1.25rem;border-bottom:1px solid var(--border);cursor:pointer;transition:background .15s ease}.club-list-item:hover{background:#f8fafc}.club-list-item.active{background:#eff6ff;border-left:3px solid var(--accent)}.club-list-item strong{display:block;font-size:.95rem;margin-bottom:.25rem}.club-list-item span{font-size:.8rem;color:var(--muted)}.club-list-empty{padding:2rem;text-align:center;color:var(--muted);font-size:.9rem}.admin-main{background:var(--panel);border-radius:var(--radius);border:1px solid var(--border);padding:2rem}.admin-form h2{margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid var(--border)}.admin-msg{padding:1rem;border-radius:8px;margin-bottom:1.5rem;font-weight:500}.admin-msg.success{background:#dcfce7;color:#166534}.admin-msg.error{background:#fee2e2;color:#991b1b}.form-section{margin-bottom:2rem}.form-section h3{font-size:.85rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:1rem}.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem}.form-group{margin-bottom:1rem}.form-group label{display:block;font-size:.875rem;font-weight:600;color:var(--text);margin-bottom:.5rem}.form-group input,.form-group select,.form-group textarea{width:100%;padding:.75rem 1rem;border:1px solid var(--border);border-radius:8px;font-size:.95rem;background:var(--bg);transition:all .2s ease}.form-group textarea{resize:vertical;min-height:80px}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px var(--ring);background:#fff}.meetings-list{list-style:none;padding:0;margin:0}.meetings-list li{padding:.75rem 1rem;background:#f8fafc;border-radius:8px;margin-bottom:.5rem;font-size:.9rem}.form-actions{display:flex;gap:1rem;justify-content:flex-end;padding-top:1.5rem;border-top:1px solid var(--border);margin-top:1rem}.btn-primary{background:var(--primary);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .2s ease}.btn-primary:hover{background:var(--primary-hover)}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.btn-secondary{background:var(--bg);color:var(--text);border:1px solid var(--border);padding:.75rem 1.5rem;border-radius:8px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .2s ease}.btn-secondary:hover{background:#e2e8f0}.btn-sm{padding:.4rem .75rem;font-size:.8rem}.btn-lg{padding:1rem 2rem;font-size:1rem}.calendar-wrapper{display:grid;grid-template-columns:1fr 320px;gap:1.5rem;margin-bottom:2rem}@media (max-width: 900px){.calendar-wrapper{grid-template-columns:1fr}}.calendar{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.calendar-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.25rem;background:var(--primary);color:#fff}.calendar-header h2{font-size:1.125rem;font-weight:600}.calendar-title{display:flex;align-items:center;gap:1rem}.calendar-nav{background:#ffffff26;border:none;color:#fff;width:36px;height:36px;border-radius:8px;font-size:1.25rem;cursor:pointer;transition:background .15s ease}.calendar-nav:hover{background:#ffffff40}.calendar-today{background:#fff3;border:none;color:#fff;padding:.375rem .75rem;border-radius:6px;font-size:.8rem;font-weight:500;cursor:pointer;transition:background .15s ease}.calendar-today:hover{background:#ffffff4d}.calendar-weekdays{display:grid;grid-template-columns:repeat(7,1fr);background:#f8fafc;border-bottom:1px solid var(--border)}.calendar-weekday{padding:.75rem;text-align:center;font-size:.75rem;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.calendar-grid{min-height:400px}.calendar-week{display:grid;grid-template-columns:repeat(7,1fr);border-bottom:1px solid var(--border)}.calendar-week:last-child{border-bottom:none}.calendar-day{min-height:100px;padding:.5rem;border-right:1px solid var(--border);cursor:pointer;transition:background .15s ease}.calendar-day:last-child{border-right:none}.calendar-day:hover{background:#f8fafc}.calendar-day.other-month{background:#fafafa}.calendar-day.other-month .day-number{color:#cbd5e1}.calendar-day.today .day-number{background:var(--accent);color:#fff}.calendar-day.selected{background:#eff6ff}.calendar-day.has-events{background:#fefce8}.calendar-day.has-events:hover{background:#fef9c3}.day-number{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;font-size:.875rem;font-weight:500;margin-bottom:.25rem}.day-events{display:flex;flex-direction:column;gap:2px}.day-event{font-size:.7rem;padding:2px 4px;border-radius:3px;background:#e0f2fe;color:#0369a1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;transition:transform .1s ease}.day-event:hover{transform:scale(1.02)}.day-event.special{background:#fce7f3;color:#be185d}.day-event.cancelled{background:#fee2e2;color:#991b1b;text-decoration:line-through}.day-event.intensity-easy{border-left:3px solid #22c55e}.day-event.intensity-moderate{border-left:3px solid #eab308}.day-event.intensity-hard{border-left:3px solid #ef4444}.day-event .event-time{font-weight:600;margin-right:4px}.day-event.more{background:#f1f5f9;color:var(--muted);text-align:center}.calendar-loading{padding:2rem;text-align:center;color:var(--muted)}.calendar-detail{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;height:fit-content;position:sticky;top:1rem}.detail-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.25rem;background:#f8fafc;border-bottom:1px solid var(--border)}.detail-header h3{font-size:1rem;font-weight:600}.detail-close{background:none;border:none;font-size:1.5rem;color:var(--muted);cursor:pointer;line-height:1}.detail-close:hover{color:var(--text)}.detail-empty{padding:2rem;text-align:center;color:var(--muted)}.detail-events{list-style:none;margin:0;padding:0;max-height:500px;overflow-y:auto}.detail-event{display:grid;grid-template-columns:auto 1fr auto;gap:1rem;padding:1rem 1.25rem;border-bottom:1px solid var(--border);cursor:pointer;transition:background .15s ease}.detail-event:hover{background:#f8fafc}.detail-event:last-child{border-bottom:none}.detail-event.cancelled{opacity:.6}.detail-event-time{display:flex;flex-direction:column;align-items:center;min-width:60px}.detail-event-time strong{font-size:.9rem}.detail-event-time span{font-size:.75rem;color:var(--muted)}.detail-event-info{min-width:0}.detail-event-title{font-weight:600;font-size:.95rem;margin-bottom:.25rem}.detail-event-location{font-size:.85rem;color:var(--muted)}.detail-event-desc{font-size:.8rem;color:var(--muted);margin-top:.25rem}.detail-event-cancelled{font-size:.75rem;color:#dc2626;font-weight:600;margin-top:.25rem}.detail-event-pace{font-size:.75rem;font-weight:600;padding:.25rem .5rem;border-radius:4px;height:fit-content;background:#ffffff1a;color:var(--muted);white-space:nowrap}.special-badge{display:inline-block;background:#fce7f3;color:#be185d;font-size:.65rem;font-weight:600;padding:.125rem .375rem;border-radius:4px;margin-right:.5rem;text-transform:uppercase}.admin-layout{display:grid;grid-template-columns:220px 1fr;gap:2rem;max-width:1100px;margin:0 auto}@media (max-width: 800px){.admin-layout{grid-template-columns:1fr}}.admin-nav{background:var(--surface);border-radius:12px;padding:1rem;height:fit-content;position:sticky;top:100px}.admin-nav nav{display:flex;flex-direction:column;gap:.5rem}.nav-item{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;border:none;background:transparent;border-radius:8px;cursor:pointer;font-size:.95rem;color:var(--text);transition:all .15s ease;text-align:left;width:100%}.nav-item:hover{background:#ffffff0d}.nav-item.active{background:var(--accent);color:#000;font-weight:600}.nav-item svg{flex-shrink:0}.nav-badge{margin-left:auto;background:var(--accent);color:#000;font-size:.7rem;font-weight:700;padding:.125rem .5rem;border-radius:10px}.nav-item.active .nav-badge{background:#0003;color:#000}.integrations-panel{padding:1.5rem}.integrations-panel h2{margin:0 0 .5rem;font-size:1.5rem}.integrations-desc{color:var(--muted);margin-bottom:2rem}.integration-card{background:var(--surface);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:1.5rem;margin-bottom:1rem}.integration-card.coming-soon{opacity:.6}.integration-header{display:flex;align-items:center;gap:1rem}.integration-logo{width:48px;height:48px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.integration-logo.strava{background:#fc4c021a}.integration-logo.garmin{background:#007cc31a}.integration-info{flex:1;min-width:0}.integration-info h3{margin:0 0 .25rem;font-size:1.1rem}.integration-info p{margin:0;font-size:.85rem;color:var(--muted)}.integration-status{flex-shrink:0}.status-badge{display:inline-block;padding:.375rem .75rem;border-radius:20px;font-size:.75rem;font-weight:600;background:#ffffff1a;color:var(--muted)}.status-badge.connected{background:#22c55e33;color:#22c55e}.status-badge.coming{background:#a855f733;color:#a855f7}.integration-connected{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.1);display:flex;align-items:center;justify-content:space-between;gap:1rem}.connected-account{display:flex;align-items:center;gap:1rem}.athlete-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover}.connected-account div{display:flex;flex-direction:column}.connected-account strong{font-size:.95rem}.connected-account span{font-size:.8rem;color:var(--muted)}.integration-connect{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.1)}.btn-strava{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1.5rem;background:#fc4c02;color:#fff;border:none;border-radius:8px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .15s ease}.btn-strava:hover:not(:disabled){background:#e04400;transform:translateY(-1px)}.btn-strava:disabled{opacity:.6;cursor:not-allowed}.integration-note{margin-top:.75rem;font-size:.8rem;color:var(--muted)}.integration-actions{display:flex;gap:.5rem}.strava-clubs-section{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.1)}.strava-clubs-section h4{margin:0 0 .5rem;font-size:1rem}.strava-clubs-desc{font-size:.85rem;color:var(--muted);margin-bottom:1rem}.linked-club{display:flex;align-items:center;justify-content:space-between;background:#fc4c021a;border:1px solid rgba(252,76,2,.3);border-radius:8px;padding:.75rem 1rem}.linked-club-info{display:flex;align-items:center;gap:.75rem;font-weight:500}.loading-clubs,.no-clubs{font-size:.85rem;color:var(--muted);font-style:italic}.strava-clubs-list{display:flex;flex-direction:column;gap:.75rem}.strava-club-item{display:flex;align-items:center;gap:1rem;background:#ffffff08;border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:.75rem 1rem;transition:all .15s ease}.strava-club-item:hover{background:#ffffff0d;border-color:#ffffff26}.strava-club-avatar{width:40px;height:40px;border-radius:8px;object-fit:cover}.strava-club-info{flex:1;min-width:0;display:flex;flex-direction:column}.strava-club-info strong{font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.strava-club-info span{font-size:.8rem;color:var(--muted)}
