:root{color-scheme:light;font-family:Segoe UI,Arial,sans-serif;line-height:1.5;background-color:#f4f6fb;color:#111827}*{box-sizing:border-box}body{margin:0}a{color:#0f766e}.page-header{padding:24px 24px 12px;background:linear-gradient(90deg,#0f172a,#0ea5e9);color:#e2e8f0}.page-header h1{margin:0 0 4px}.page-header p{margin:0;color:#cbd5e1}.page-header-actions{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap}body.pdf-view-mode .judge-view{display:none}body.pdf-view-mode #pdf-card{display:block}body.pdf-view-mode #judge-role-row{display:none}.layout{max-width:1200px;margin:0 auto;padding:24px;display:grid;grid-template-columns:1fr;gap:16px}.judge-apnea-layout{max-width:1600px}.app-brand{display:flex;align-items:center;gap:12px;margin:16px 0 8px}.app-brand a{display:inline-flex;align-items:center;gap:12px}.app-logo{width:52px;height:52px;border-radius:12px;object-fit:cover;box-shadow:0 8px 18px #0f172a26}.card{background:#fff;border-radius:10px;box-shadow:0 8px 18px #0000000d;padding:16px;border:1px solid #e2e8f0}.card-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.card-actions{display:flex;gap:8px;flex-wrap:wrap}.champ-tabs{display:flex;gap:8px;margin:10px 0 12px}.champ-tab-button{background:#f1f5f9;color:#0f172a;border:1px solid #cbd5e1;box-shadow:none}.champ-tab-button:hover{box-shadow:none;transform:none;background:#e2e8f0}.champ-tab-button.active{background:#0ea5e9;color:#f8fafc;border-color:#0ea5e9}.judge-view summary.summary-with-action{display:flex;align-items:center;justify-content:space-between;gap:12px}.judge-view .summary-text{display:flex;flex-direction:column;gap:4px}.judge-view .btn-refresh-table{flex:0 0 auto}.relay-base-label-wrapper{display:flex;flex-direction:column;gap:4px}.relay-base-label{font-weight:700}.relay-base-hint{font-size:.8rem;color:#475569}.relay-checkboxes{padding-top:8px}.relay-checkboxes-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:6px}.relay-allowed-checkbox{display:inline-flex;align-items:center;gap:.35rem;padding:6px 10px;border-radius:6px;border:1px solid #e2e8f0;background:#f8fafc;font-size:.9rem}.relay-allowed-checkbox input{margin:0}.relay-master-message{padding:10px 12px;border-radius:8px;background:#e0f2fe;color:#0f172a;border:1px solid #bae6fd}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}label{display:flex;flex-direction:column;font-weight:600;gap:6px;font-size:.95rem}input,select,button{font:inherit}input,select{padding:10px 12px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc}input:focus{outline:2px solid #0ea5e9;outline-offset:1px;background:#fff}select option.heat-status-reviewed{color:#1f7a1f;font-weight:600}select option.heat-status-pending{color:#c46a00;font-weight:600}.record-pct-high{color:#1f7a1f;font-weight:700}.record-pct-mid{color:#c46a00;font-weight:700}.record-pct-low{color:#b91c1c;font-weight:700}.form-actions{grid-column:1 / -1;display:flex;gap:8px;flex-wrap:wrap;align-items:center}button{padding:10px 14px;border-radius:8px;border:1px solid transparent;background:#0ea5e9;color:#f8fafc;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease}button:hover{transform:translateY(-1px);box-shadow:0 6px 16px #0ea5e94d}button:disabled{opacity:.7;cursor:not-allowed;box-shadow:none;transform:none}.ghost-btn{background:transparent;color:#0ea5e9;border:1px solid #0ea5e9}.ghost-btn:hover{background:#0ea5e91a}.ghost-btn.state-ok{background:#dcfce7;border-color:#22c55e;color:#166534}.ghost-btn.state-dns{background:#fee2e2;border-color:#ef4444;color:#991b1b}.timer-input{width:110px;max-width:100%}.timer-input.state-ok{background:#f0fdf4;border-color:#22c55e}.timer-input.state-dns{background:#fee2e2;border-color:#ef4444;color:#991b1b}.auto-input{width:110px;max-width:100%}.auto-input.state-ok{background:#f0fdf4;border-color:#22c55e}.arrival-row{cursor:move}.arrival-row.dragging{opacity:.6}.arrival-layout{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;align-items:start}#judge-desk-card .program-table table{table-layout:fixed}#judge-desk-card th,#judge-desk-card td{word-break:break-word;font-size:.9rem}#judge-desk-card .judge-desk-control{width:90px;padding:6px 8px;font-size:.85rem}.chief-judge-control{width:100%;padding:6px 8px;font-size:.85rem}#judge-desk-card .judge-desk-warning{background-color:#fed7aa;border-color:#fb923c;color:#7c2d12}#judge-desk-card .judge-desk-success{background-color:#dcfce7;border-color:#4ade80;color:#166534}#judge-desk-card .judge-desk-danger{background-color:#fecaca;border-color:#ef4444;color:#991b1b}#judge-desk-card th:nth-child(1),#judge-desk-card td:nth-child(1){width:40px}#judge-desk-card th:nth-child(2),#judge-desk-card td:nth-child(2){width:90px}#judge-desk-card th:nth-child(3),#judge-desk-card td:nth-child(3),#judge-desk-card th:nth-child(4),#judge-desk-card td:nth-child(4),#judge-desk-card th:nth-child(5),#judge-desk-card td:nth-child(5),#judge-desk-card th:nth-child(8),#judge-desk-card td:nth-child(8){width:100px}#judge-desk-card th:nth-child(6),#judge-desk-card td:nth-child(6),#judge-desk-card th:nth-child(7),#judge-desk-card td:nth-child(7){width:90px}#judge-desk-card th:nth-child(9),#judge-desk-card td:nth-child(9),#judge-desk-card th:nth-child(10),#judge-desk-card td:nth-child(10){width:70px}.table-wrapper{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:.95rem}.compact-results th,.compact-results td{font-size:.8rem}th,td{border-bottom:1px solid #e2e8f0;padding:8px 10px;text-align:left}th{background:#f8fafc;font-weight:700}.muted{color:#6b7280}.status{margin-top:8px;padding:8px 10px;border-radius:8px;font-size:.9rem;background:#f8fafc;border:1px solid #e2e8f0;color:#0f172a}.status.ok{border-color:#22c55e;color:#166534;background:#ecfdf3}.status.error{border-color:#ef4444;color:#7f1d1d;background:#fef2f2}.status.loading{border-color:#0ea5e9;color:#0f172a;background:#e0f2fe}.upload-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.format-card{margin-top:24px}.format-builder{margin-top:12px;display:flex;flex-direction:column;gap:12px}.builder-subtitle{margin:8px 0 0}.builder-subtitle h3{margin:0;font-size:1.1rem}.builder-subtitle p{margin:4px 0 0}.format-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}#format-count{font-weight:600}.format-builder table input,.format-builder table select{width:100%;padding:6px 8px;border-radius:6px;border:1px solid #cbd5e1;font-size:.9rem}.format-actions{display:flex;gap:4px}.btn-order{background:#e2e8f0;color:#0f172a;padding:6px 10px;border-radius:6px;border:1px solid #cbd5e1;font-size:.85rem}.btn-order:hover:not(:disabled){background:#cbd5e1}.btn-order:disabled{opacity:.5}.format-hint{margin:0}.schedule-builder{margin-top:12px;display:flex;flex-direction:column;gap:12px}.schedule-builder table input,.schedule-builder table select{width:100%;padding:6px 8px;border-radius:6px;border:1px solid #cbd5e1;font-size:.9rem}.schedule-builder table input[type=time]{min-width:120px}.pool-config{margin-top:12px;display:flex;flex-direction:column;gap:12px}.pool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.pool-grid label{font-weight:600}.categories-builder{margin-top:12px;display:flex;flex-direction:column;gap:12px}.categories-builder table input{width:100%;padding:6px 8px;border-radius:6px;border:1px solid #cbd5e1;font-size:.9rem}.collapsible{border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px;background:#f8fafc}.collapsible:not(:last-child){margin-bottom:12px}.collapsible summary{font-weight:700;cursor:pointer;list-style:none}.collapsible summary::-webkit-details-marker{display:none}.collapsible summary:after{content:"▾";float:right;transition:transform .2s ease}.collapsible[open] summary:after{transform:rotate(180deg)}.collapsible-body{margin-top:12px;display:flex;flex-direction:column;gap:12px}.registration-config label{display:flex;flex-direction:column;gap:6px;font-weight:600}.registration-config input,.registration-config select{padding:8px 10px;border-radius:6px;border:1px solid #cbd5e1;font-size:.95rem;background:#f8fafc}.format-footer{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.format-buttons{display:flex;gap:8px;flex-wrap:wrap}#format-status{flex:1;min-width:260px}.header-actions{margin-top:12px}.button-link{display:inline-block;padding:10px 14px;background:#0ea5e9;color:#f8fafc;border-radius:8px;text-decoration:none;font-weight:600;border:1px solid transparent}.button-link:hover{background:#0284c7}.ghost-btn.button-link{border-color:#0ea5e9;color:#0ea5e9;background:transparent}.ins-preview.table-swimmers{max-height:280px}.pdf-template textarea{width:100%;border-radius:8px;border:1px solid #cbd5e1;padding:8px 10px;font:inherit;background:#f8fafc}.ins-upload{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end}.file-field{display:flex;flex-direction:column;gap:6px;font-weight:600}.file-field input[type=file]{border:1px dashed #94a3b8;padding:10px;border-radius:8px;background:#f8fafc}.ins-preview{margin-top:10px;max-height:360px;overflow:auto}.ins-report{margin-top:10px;padding:10px 12px;border-radius:8px;background:#f8fafc;border:1px solid #e2e8f0;font-size:.9rem}.ins-search{margin-top:8px;display:flex;gap:8px;align-items:center}.ins-search input[type=search]{padding:8px 10px;border-radius:6px;border:1px solid #cbd5e1;background:#fff;min-width:260px;max-width:100%}.relay-runner-table{margin-top:12px}.ins-report ul{margin:6px 0 0;padding-left:18px}.ins-actions{margin-top:10px;display:flex;gap:12px;flex-wrap:wrap;align-items:flex-start}.program-option{display:flex;flex-direction:column;font-weight:600;gap:4px;min-width:200px}.program-option select{padding:6px 10px;border-radius:6px;border:1px solid #cbd5e1;background:#f8fafc;font-size:.9rem}.champ-selector{margin:10px 0 18px;display:flex;flex-direction:column;gap:6px}.selector-actions{display:flex;gap:8px;flex-wrap:wrap}.selector-actions select{min-width:220px;padding:8px 10px;border-radius:8px;border:1px solid #cbd5e1;background:#f8fafc}.ins-edit-panel{margin-top:12px;padding:12px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.table-actions{display:flex;gap:4px;flex-wrap:wrap}.pdf-logo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.pdf-preview{width:100%;max-height:80px;object-fit:contain;background:#fff;border:1px dashed #cbd5e1;border-radius:8px;padding:4px}.logo-thumb{width:80px;height:80px;object-fit:contain;border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:4px}.pdf-template input[type=file]{border:1px dashed #94a3b8;border-radius:8px;padding:8px;background:#f8fafc}.manage-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.small-card{border:1px solid #e2e8f0;border-radius:10px}.form-row{display:flex;flex-direction:column;gap:4px;margin-bottom:10px}.form-row label{font-size:.9rem;font-weight:500}.form-row input,.form-row select{border:1px solid #cbd5e1;border-radius:8px;padding:6px 8px;font-size:.95rem}.range-fields{display:flex;gap:12px}.range-fields .form-row{flex:1}.range-fields .form-row input[type=number]{max-width:140px;width:50%}.small-text{font-size:.85rem;margin-top:-4px}@media(max-width:720px){.layout{padding:16px}.card{padding:14px}}.program-table{border:1px solid #e2e8f0;border-radius:12px;padding:10px}.landing{max-width:1100px;margin:0 auto;padding:32px 16px 64px}.landing-hero{display:flex;flex-direction:column;gap:12px;align-items:flex-start}.landing-logo{width:120px;height:auto;border-radius:18px}.landing-header h1{font-size:2.5rem;margin-bottom:8px}.landing-header .lede{font-size:1.1rem;color:#444;max-width:700px}.sport-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:12px}.sport-grid .button-link{text-align:center}.eyebrow{text-transform:uppercase;letter-spacing:.3em;font-size:.8rem;color:#2a7ae2}.landing-tabs{display:flex;gap:8px;margin-bottom:24px;border-bottom:1px solid #ddd}.tab-button{background:transparent;border:none;padding:12px 16px;cursor:pointer;font-size:1rem;border-radius:4px 4px 0 0;transition:background .2s}.tab-button{color:#222}.tab-button.active{background:#fff;border:1px solid #ddd;border-bottom:1px solid #fff}.tab-panel{background:#fff;border:1px solid #ddd;padding:16px;border-radius:0 4px 4px}.tab-panel.hidden{display:none}.panel-wrapper{display:flex;flex-direction:column;gap:16px}.section-header h2{margin-bottom:6px}.section-header .muted{color:#666}.section-header.with-actions{position:relative;padding-right:120px}.section-header.with-actions .btn-refresh-table{position:absolute;top:0;right:0}.section-header .section-header-text{display:block}.judge-card{display:grid;grid-template-columns:minmax(240px,1fr) minmax(680px,2.6fr);gap:18px;padding:18px;border-radius:12px;background:#121212;border:1px solid rgba(255,255,255,.18);color:#f5f5f5}.judge-card-left{background:#181818;border-radius:10px;padding:18px;border:1px solid rgba(255,255,255,.18)}.judge-athlete-name{font-size:20px;font-weight:700;margin:0 0 8px;color:#fff}.judge-athlete-event{margin:0;color:#c9d0d6}.judge-left-metrics{margin-top:16px;display:grid;gap:18px}.judge-metric{display:grid;gap:18px}.judge-card-right{display:grid;gap:22px;min-width:680px}.judge-field{display:grid;grid-template-columns:160px auto;align-items:center;gap:20px}.judge-field-value{background:#1b1b1b;border:1px solid rgba(255,255,255,.22);padding:10px 20px;border-radius:8px;min-height:40px;display:flex;align-items:center;color:#f1f1f1;gap:14px}.status-chip{font-weight:600}.status-chip.status-ok{color:#2ecc71;border-color:#2ecc7173;background:#2ecc7114}.status-chip.status-bad{color:#ff6b6b;border-color:#ff6b6b73;background:#ff6b6b14}.judge-field input[type=number],.judge-field input[type=text]{width:auto;min-width:0;background:#111;border:1px solid rgba(255,255,255,.28);color:#fff;padding:10px 20px;border-radius:8px;font-size:16px;gap:14px}.judge-field select{width:auto;min-width:0;min-height:44px;background:#111;border:1px solid rgba(255,255,255,.28);color:#fff;padding:10px 20px;border-radius:8px;font-size:16px;gap:14px}#judge-laps-input,#judge-measure-input,#judge-dq-select,#judge-penalty-input,#judge-cycles-input{min-width:250px}#judge-performance-time,#judge-performance,#judge-final-result,#judge-final-result-time{min-width:250px;width:250px}#judge-obs-input{min-width:100%}.judge-field input[type=number]{appearance:textfield;-moz-appearance:textfield}.judge-field input[type=number]::-webkit-outer-spin-button,.judge-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.judge-field-value{font-size:16px}.judge-field label,.judge-field span{font-size:15px}.judge-field.full-width{grid-template-columns:1fr}.judge-field.full-width input[type=number],.judge-field.full-width input[type=text],.judge-field.full-width select,.judge-field.full-width .judge-field-value{width:100%}.judge-field label,.judge-field span{color:#d7dee5}.card-actions{display:flex;gap:8px}.card-actions .card-btn{min-width:90px}.card-actions .card-btn.state-ok{background:#4e79c7;border-color:#4e79c7;color:#fff}.measure-actions{display:inline-grid;grid-template-columns:auto auto;gap:8px;width:max-content}.obs-actions{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}@media(max-width:900px){.judge-card,.judge-field{grid-template-columns:1fr}}.relay-program-pill{display:inline-block;min-width:2.2rem;padding:2px 8px;border-radius:999px;font-weight:700;font-size:.85rem;text-align:center}.relay-program-pill.yes{color:#166534;background:#dcfce7;border:1px solid #86efac}.relay-program-pill.no{color:#991b1b;background:#fee2e2;border:1px solid #fca5a5}
