:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;font-weight:400;background:#f4f7fb;color:#0f172a}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(180deg,#eff6ff,#f8fafc)}#root{min-height:100vh}.app-shell{max-width:1120px;margin:0 auto;padding:3rem 1.25rem 4rem}.app-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1.5rem;margin-bottom:2rem}.eyebrow{margin:0 0 .5rem;font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:#2563eb;font-weight:700}h1,h2,p,ul{margin-top:0}h1{margin-bottom:0;font-size:clamp(2rem,5vw,3rem);letter-spacing:-.035em}.header-description{max-width:42rem;margin:.65rem 0 0;color:#475569}.local-badge{flex:0 0 auto;margin-top:1.5rem;padding:.45rem .75rem;border:1px solid #bbf7d0;border-radius:999px;background:#f0fdf4;color:#166534;font-size:.8rem;font-weight:700}.section-nav{position:sticky;top:.5rem;z-index:10;display:flex;flex-wrap:wrap;gap:.45rem;margin:0 0 1.25rem;padding:.45rem;border:1px solid rgba(203,213,225,.85);border-radius:.85rem;background:#f8fafceb;box-shadow:0 6px 18px #0f172a0f;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.section-nav-link{display:inline-flex;min-height:2.4rem;align-items:center;padding:.45rem .75rem;border:1px solid transparent;border-radius:.55rem;color:#334155;font-size:.84rem;font-weight:650;text-decoration:none;transition:background-color .14s ease,border-color .14s ease}.section-nav-link:hover{border-color:#bfdbfe;background:#fff}.section-nav-link:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}.panel{background:#fffc;border:1px solid rgba(148,163,184,.25);border-radius:16px;padding:1.25rem 1.5rem;box-shadow:0 12px 30px #0f172a0f;margin-bottom:1.25rem}#import-section,#roster-section,#entries-section,#export-section{scroll-margin-top:6rem}ul{padding-left:1.25rem}.athlete-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;align-items:end;gap:.75rem}.athlete-form label{display:grid;gap:.3rem;color:#334155;font-size:.88rem;font-weight:650}.athlete-form input,.athlete-form select{width:100%;min-height:2.55rem;padding:.45rem .6rem;border:1px solid #cbd5e1;border-radius:.5rem;background:#fff;color:#0f172a;font:inherit}.athlete-form input:focus,.athlete-form select:focus{outline:3px solid #bfdbfe;border-color:#2563eb}.athlete-form button{min-height:2.55rem;padding:.45rem .8rem;border:1px solid #1d4ed8;border-radius:.55rem;background:#2563eb;color:#fff;font:inherit;font-weight:650;cursor:pointer}.athlete-form button:hover{background:#1d4ed8}.form-error{margin:.7rem 0 0;color:#b91c1c}.form-error p{margin-bottom:.35rem}.form-error code{display:block;margin-top:.3rem;overflow-wrap:anywhere;font-size:.8rem}.export-panel{margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid #e2e8f0}.relay-panel{margin-top:1.5rem;padding:1rem;border:1px solid #dbeafe;border-radius:.8rem;background:#f8fbff}.relay-panel h3{margin-bottom:.25rem}.relay-form{display:grid;grid-template-columns:minmax(220px,1.6fr) minmax(160px,1fr) minmax(230px,1.1fr) auto;gap:.7rem;align-items:end}.relay-form label{display:grid;gap:.3rem;color:#334155;font-size:.88rem;font-weight:650}.relay-form input,.relay-form select{width:100%;min-height:2.5rem;padding:.45rem .6rem;border:1px solid #cbd5e1;border-radius:.5rem;background:#fff;color:#0f172a;font:inherit}.relay-form button,.relay-list button{min-height:2.5rem;padding:.45rem .75rem;border:1px solid #1d4ed8;border-radius:.55rem;background:#2563eb;color:#fff;font:inherit;font-weight:650;cursor:pointer}.relay-list{display:grid;gap:.5rem;margin:.9rem 0 0;padding:0;list-style:none}.relay-list li{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:.55rem .65rem;border:1px solid #dbeafe;border-radius:.55rem;background:#fff}.relay-row-content{display:grid;flex:1;gap:.55rem;min-width:0}.relay-members-toggle{display:flex;align-items:center;gap:.5rem;color:#334155;font-size:.88rem}.relay-members-toggle input{width:1rem;height:1rem}.relay-member-slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.55rem}.relay-member-slots label{display:grid;gap:.25rem;color:#475569;font-size:.82rem;font-weight:650}.relay-member-slots select{width:100%;min-height:2.25rem;padding:.35rem .5rem;border:1px solid #cbd5e1;border-radius:.45rem;background:#fff;font:inherit}.relay-age-warning{margin:.25rem 0 0;padding:.55rem .7rem;border:1px solid #fcd34d;border-radius:.5rem;background:#fffbeb;color:#92400e;font-size:.86rem}.relay-list button{min-height:2rem;border-color:#cbd5e1;background:#fff;color:#334155}.export-panel h3{margin-bottom:.25rem}.club-details-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:1rem 0}.club-details-form label{display:grid;gap:.3rem;color:#334155;font-size:.88rem;font-weight:650}.club-details-form input{width:100%;min-height:2.5rem;padding:.45rem .6rem;border:1px solid #cbd5e1;border-radius:.5rem;background:#fff;color:#0f172a;font:inherit}.generate-button{min-height:2.75rem;padding:.6rem 1rem;border:1px solid #1d4ed8;border-radius:.65rem;background:#2563eb;color:#fff;font:inherit;font-weight:700;cursor:pointer}.generate-button:hover:not(:disabled){background:#1d4ed8}.generate-button:disabled{border-color:#94a3b8;background:#94a3b8;cursor:not-allowed}.download-ready{margin:.8rem 0 0;color:#166534}.download-ready a{color:#1d4ed8;font-weight:700;overflow-wrap:anywhere}.file-picker{display:inline-flex;align-items:center;justify-content:center;min-height:2.75rem;padding:.65rem 1rem;border:1px solid #1d4ed8;border-radius:.65rem;background:#2563eb;color:#fff;font-weight:650;cursor:pointer}.file-picker:hover{background:#1d4ed8}.file-picker-disabled{border-color:#94a3b8;background:#94a3b8;cursor:not-allowed}.file-picker-disabled:hover{background:#94a3b8}.file-picker:focus-within{outline:3px solid #93c5fd;outline-offset:3px}.backup-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.75rem;margin:.75rem 0}.backup-actions button{min-height:2.75rem;padding:.65rem 1rem;border:1px solid #1d4ed8;border-radius:.65rem;background:#fff;color:#1d4ed8;font:inherit;font-weight:650;cursor:pointer}.backup-actions button:hover:not(:disabled){background:#eff6ff}.backup-actions button:disabled{border-color:#94a3b8;color:#64748b;cursor:not-allowed}.advanced-storage-tools{margin:.8rem 0 1rem;padding:.7rem .85rem;border:1px solid #e2e8f0;border-radius:.7rem;background:#f8fafc}.advanced-storage-tools summary{color:#334155;font-size:.9rem;font-weight:650;cursor:pointer}.history-file-item{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem}.remove-history-file-button{padding:.2rem .45rem;border:1px solid #e2e8f0;border-radius:.4rem;background:#fff;color:#64748b;font:inherit;font-size:.78rem;cursor:pointer}.remove-history-file-button:hover{border-color:#fecaca;background:#fef2f2;color:#b91c1c}.advanced-storage-tools[open] summary{margin-bottom:.7rem}.file-input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}.import-message,.import-result{margin:1rem 0 0;padding:1rem;border:1px solid #bfdbfe;border-radius:.75rem;background:#eff6ff}.import-result p:last-child{margin-bottom:0}.import-result h3{margin:0 0 .25rem}.import-kind{margin-bottom:.25rem;color:#1d4ed8;font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.privacy-note{color:#475569;font-size:.9rem}hr{height:1px;margin:1.5rem 0;border:0;background:#e2e8f0}.import-result-error{border-color:#fecaca;background:#fef2f2;color:#991b1b}.unresolved-results{padding:.65rem;border:1px solid #fcd34d;border-radius:.5rem;background:#fffbeb;color:#854d0e}.import-result details{margin-top:.5rem;color:#7f1d1d}.import-result details code{display:block;margin-top:.35rem;overflow-wrap:anywhere;font-size:.8rem}.entry-planner-header,.selection-actions{display:flex;align-items:center;justify-content:space-between;gap:1rem}.entry-planner-header h2{margin-bottom:.2rem}.selection-counts{margin:0;padding:.45rem .7rem;border-radius:999px;background:#dbeafe;color:#1e3a8a;font-size:.9rem;font-weight:650}.selection-actions{justify-content:flex-start;margin:1rem 0}.selection-actions button{min-height:2.4rem;padding:.45rem .75rem;border:1px solid #cbd5e1;border-radius:.55rem;background:#fff;color:#1e293b;font:inherit;cursor:pointer}.selection-actions button:hover{background:#f1f5f9}.athlete-list-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(12rem,auto);gap:.5rem 1rem;align-items:end;margin-bottom:1rem}.athlete-search,.athlete-sort{display:grid;grid-template-columns:minmax(110px,auto) minmax(0,1fr);align-items:center;gap:.75rem;color:#334155;font-size:.9rem;font-weight:650}.athlete-search input,.athlete-sort select{width:100%;min-height:2.5rem;padding:.45rem .65rem;border:1px solid #cbd5e1;border-radius:.55rem;background:#fff;color:#0f172a;font:inherit}.athlete-search input:focus,.athlete-sort select:focus{outline:3px solid #bfdbfe;border-color:#2563eb}.athlete-sort-hint{grid-column:1 / -1;margin:0;color:#64748b;font-size:.8rem}.athlete-search-empty{padding:.65rem;color:#64748b}.entry-planner-grid{display:grid;grid-template-columns:minmax(220px,.75fr) minmax(0,1.8fr);gap:1rem;align-items:start}.athlete-list{display:grid;gap:.25rem;max-height:36rem;overflow:auto;padding:.4rem;border:1px solid #e2e8f0;border-radius:.75rem;background:#fff}.athlete-choice{display:flex;gap:.6rem;align-items:flex-start;padding:.55rem;border-radius:.5rem;cursor:pointer}.athlete-choice:hover{background:#f1f5f9}.athlete-choice input,.discipline-option label input{width:1rem;height:1rem;flex:0 0 auto;margin-top:.2rem}.athlete-choice span{display:grid;font-weight:600}.athlete-choice small{color:#64748b;font-weight:400}.athlete-choice .athlete-club-label{max-width:14rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.athlete-entry-options{display:grid;gap:.75rem}.athlete-entry-card{min-width:0;margin:0;padding:.8rem;border:1px solid #cbd5e1;border-radius:.75rem;background:#fff}.athlete-entry-card-collapsed{padding:0;border:0;border-bottom:1px solid #e2e8f0;border-radius:0;background:transparent}.athlete-entry-heading{padding:0 .35rem}.athlete-entry-card-collapsed .athlete-entry-heading{padding:0}.athlete-card-toggle{display:inline-flex;min-height:1.75rem;align-items:center;gap:.35rem;padding:0;border:0;background:transparent;color:#334155;font:inherit;font-weight:700;text-align:left;cursor:pointer}.athlete-entry-card-collapsed .athlete-card-toggle{min-height:2.25rem;padding:0 .15rem}.athlete-card-toggle:hover{color:#1d4ed8}.athlete-card-toggle:focus-visible{border-radius:.2rem;outline:2px solid #93c5fd;outline-offset:2px}.athlete-card-chevron{color:#64748b;font-size:1.1rem;line-height:1}.athlete-entry-birth-year{margin:0 0 .65rem;color:#475569;font-size:.82rem}.club-mismatch-warning{margin:0 0 .75rem;padding:.6rem .7rem;border:1px solid #facc15;border-radius:.55rem;background:#fefce8;color:#854d0e;font-size:.85rem}.discipline-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.65rem}.discipline-option{display:grid;gap:.4rem;padding:.65rem;border:1px solid #e2e8f0;border-radius:.6rem}.discipline-option label{display:flex;gap:.45rem;align-items:flex-start;font-weight:600;cursor:pointer}.time-field{display:grid;grid-template-columns:minmax(0,1fr);gap:.35rem}.time-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.4rem;align-items:center}.relay-time-field{display:grid;gap:.3rem;color:#334155;font-size:.88rem;font-weight:650}.time-segments{display:inline-flex;min-height:3.45rem;width:9.5rem;min-width:9.5rem;box-sizing:border-box;align-items:center;justify-content:center;gap:.18rem;padding:.35rem .45rem;border:1px solid #cbd5e1;border-radius:.7rem;background:#fff;color:#0f172a;font-variant-numeric:tabular-nums;box-shadow:inset 0 1px 2px #0f172a09;transition:border-color .14s ease,box-shadow .14s ease,background-color .14s ease}.time-segments:focus-within{border-color:#2563eb;box-shadow:0 0 0 3px #bfdbfe}.time-segments-invalid{border-color:#dc2626;background:#fef2f2}.time-segments-invalid:focus-within{box-shadow:0 0 0 3px #fecaca}.time-segments .time-segment:focus-within .time-segment-input{border-radius:.35rem;background:#eff6ff;color:#1d4ed8}.time-segments:has(input:disabled){background:#f1f5f9;color:#64748b}.time-segments .time-segment{display:grid!important;grid-template-rows:.85rem 1.75rem;justify-items:center;gap:.08rem!important;min-width:0;margin:0;color:inherit;cursor:text!important}.time-segment-unit{color:#475569;font-size:.66rem;font-weight:650;letter-spacing:.025em;line-height:1}.time-segments .time-segment-input{width:3ch;min-width:3ch;min-height:0;height:1.75rem;margin:0;padding:0;border:0;border-radius:0;outline:0;background:transparent;color:inherit;font:inherit;font-size:1.15rem;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:.03em;text-align:center}.time-segments .time-segment-input.time-segment-minutes{width:4.8ch;min-width:3ch;max-width:4.8ch}.time-segments .time-segment-input.time-segment-short{width:2.4ch;min-width:2.4ch}.time-segment-input::placeholder{color:#64748b;opacity:.95}.time-segment-input:focus{background:#eff6ff}.time-segment-input:disabled{color:#64748b;cursor:not-allowed}.time-segment-separator{align-self:center;margin-top:.58rem;color:#64748b;font-size:.98rem;font-weight:750}.time-adjustment-controls{display:grid;grid-auto-rows:1.45rem;gap:.14rem}.time-adjustment-controls button{min-width:1.8rem;min-height:1.45rem;padding:0 .25rem;border:1px solid #cbd5e1;border-radius:.38rem;background:#f8fafc;color:#1e3a8a;font:inherit;font-size:.9rem;font-weight:750;line-height:1;cursor:pointer}.time-adjustment-controls button:hover:not(:disabled){border-color:#93c5fd;background:#eff6ff}.time-adjustment-controls button:disabled{color:#94a3b8;cursor:not-allowed}.time-adjustment-controls .time-reset-button{color:#475569;font-size:1rem}.time-adjustment-controls .no-time-toggle{min-width:2rem;background:#fff;color:#334155;font-size:.72rem}.time-adjustment-controls .no-time-active{border-color:#1d4ed8;background:#dbeafe;color:#1e3a8a}.no-time-status{color:#1e3a8a;font-size:.8rem;font-weight:700}.time-source{color:#475569;font-size:.75rem;overflow-wrap:anywhere}.time-error{display:block;margin-top:.1rem;color:#b91c1c;font-size:.72rem;font-weight:550}.submission-summary{margin:1rem 0;padding:1rem;border:1px solid #bfdbfe;border-radius:.8rem;background:#f8fbff}.submission-summary-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.submission-summary-header h4{margin:0 0 .2rem}.submission-summary-header p{margin:0;color:#475569}.secondary-action-button{display:inline-flex;align-items:center;justify-content:center;min-height:2.5rem;padding:.5rem .85rem;border:1px solid #bfdbfe;border-radius:.6rem;background:#fff;color:#1d4ed8;font:inherit;font-weight:650;cursor:pointer;text-decoration:none;transition:background-color .14s ease,border-color .14s ease,box-shadow .14s ease}.secondary-action-button:hover:not(:disabled){border-color:#60a5fa;background:#eff6ff}.secondary-action-button:focus-visible{outline:3px solid #bfdbfe;outline-offset:2px}.secondary-action-button:disabled{opacity:.55;cursor:not-allowed}.submission-summary h5{margin:.8rem 0 .35rem}.submission-summary ul{margin-bottom:.6rem}@media print{@page{margin:15mm}html,body,#root{display:block!important;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important;background:#fff!important}body *{display:none!important}.app-shell,.entry-planner,#export-section{display:block!important;width:auto!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important;box-shadow:none!important;background:#fff!important}.submission-summary,.submission-summary *{display:revert!important;visibility:visible!important}.submission-summary{position:absolute;inset:0 auto auto 0;width:100%!important;margin:0;padding:0;border:0;color:#111827;background:#fff!important}.submission-summary button{display:none!important}}.new-submission-button{margin-top:.75rem}.new-submission-confirmation{max-width:42rem;margin-top:.75rem;padding:.75rem;border:1px solid #bfdbfe;border-radius:.65rem;background:#eff6ff}.new-submission-confirmation p{margin-bottom:.6rem;color:#334155;font-size:.88rem}.new-submission-confirmation>div{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.text-action-button{min-height:2.4rem;padding:.4rem .65rem;border:1px solid transparent;border-radius:.5rem;background:transparent;color:#475569;font:inherit;cursor:pointer}.text-action-button:hover{background:#e2e8f0}@media(max-width:700px){.app-shell{padding:1.5rem .8rem 3rem}.app-header{flex-direction:column;gap:.7rem;margin-bottom:1.25rem}.local-badge{margin-top:0}.section-nav{gap:.2rem;padding:.3rem}.section-nav-link{min-height:2.2rem;padding:.4rem .55rem;font-size:.78rem}.athlete-form{grid-template-columns:repeat(2,minmax(0,1fr))}.athlete-form button{grid-column:1 / -1}.club-details-form,.relay-form{grid-template-columns:1fr}.submission-summary-header{flex-direction:column}.relay-list li,.entry-planner-header{align-items:flex-start;flex-direction:column}.entry-planner-grid,.athlete-list-controls{grid-template-columns:1fr}.athlete-sort-hint{grid-column:1}.athlete-list{max-height:18rem}}
