.sr-dialog { width:min(1000px,94vw); max-height:90vh; border:1px solid var(--color-border); border-radius:12px; padding:24px; color:var(--color-text); background:var(--color-surface); }
.sr-dialog::backdrop { background:rgba(8,27,45,.55); }
.sr-dialog [hidden] { display:none!important; }
.sr-dialog-head,.sr-toolbar { display:flex; align-items:center; gap:12px; justify-content:space-between; flex-wrap:wrap; }
.sr-dialog-head h2 { margin:0; }.sr-toolbar { justify-content:flex-start; margin:14px 0; }
.sr-toolbar select { flex:1; min-width:180px; max-width:100%; background:var(--color-bg); color:var(--color-text); border:1px solid var(--color-border); border-radius:6px; padding:8px; font:inherit; }
.sr-editor { padding:16px; border:1px solid var(--color-border); border-radius:8px; margin:18px 0; }
.sr-editor h3 { margin-top:0; }.sr-fields { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.sr-fields label { display:flex; flex-direction:column; gap:6px; font-weight:600; }
.sr-fields textarea,.sr-fields input { width:100%; box-sizing:border-box; border:1px solid var(--color-border); background:var(--color-bg); color:var(--color-text); border-radius:6px; padding:10px; font:inherit; font-weight:400; }
.sr-fields textarea { resize:vertical; min-height:65px; }.sr-error { color:var(--color-error,#a13544); }
.sr-report { background:#fff; color:#17283a; padding:28px; border:1px solid #cfd9e0; font-family:"General Sans",sans-serif; }
.sr-print-header { display:flex; justify-content:space-between; align-items:center; gap:12px; border-bottom:1px solid #0a7f8a; padding-bottom:14px; }
.sr-print-header img { max-width:55%; height:auto; }.sr-print-header span { color:#56697a; font-size:12px; }
.sr-print-header .sr-motto { display:block; margin-top:7px; color:#0d2a45; font-size:12px; font-weight:600; line-height:1.4; }
.sr-report h1 { color:#0d2a45; font-size:28px; line-height:1.2; margin:20px 0 8px; overflow-wrap:anywhere; }
.sr-report h2 { color:#0d2a45; font-size:18px; line-height:1.3; margin:20px 0 10px; }
.sr-report p { line-height:1.5; overflow-wrap:anywhere; }.sr-basis,.sr-footnote { font-size:12px; color:#56697a; }
.sr-table-wrap { overflow-x:auto; }.sr-table { border-collapse:collapse; width:100%; font-size:13px; font-variant-numeric:tabular-nums; }
.sr-table th,.sr-table td { padding:10px 8px; border-bottom:1px solid #cfd9e0; text-align:center; }
.sr-table th:first-child,.sr-table td:first-child { text-align:left; }.sr-table th { background:#e7f1f3; color:#17283a; }
.sr-report footer { margin-top:24px; border-top:1px solid #cfd9e0; font-size:12px; color:#56697a; }
.sr-writing-field { break-inside:avoid; margin-top:12px; }
.sr-writing-field h3 { font-size:13px; margin:0; color:#17283a; }
.sr-write-lines span { display:block; height:8mm; border-bottom:1px solid #a8b7c3; }
.sr-handwriting h2 { break-after:avoid; }
#swimmerPrint { display:none; }
@media(max-width:650px) {
 .sr-dialog { padding:14px; }.sr-fields { grid-template-columns:1fr; }.sr-report { padding:14px; }
 .sr-toolbar select { width:100%; flex-basis:100%; }.sr-print-header { align-items:flex-start; }
 .sr-table th,.sr-table td { padding:8px 5px; min-width:65px; }.sr-report h1 { font-size:24px; }
}
@font-face { font-family:"SwimSquad Print"; src:url("assets/fonts/GeneralSans-Light.ttf") format("truetype"); font-weight:400; font-display:swap; }
@font-face { font-family:"SwimSquad Print"; src:url("assets/fonts/GeneralSans-Semibold.ttf") format("truetype"); font-weight:600 700; font-display:swap; }
@media print {
 @page swimmerReport { size:A4 portrait; margin:14mm; }
 body.swimmer-print > *:not(#swimmerPrint) { display:none!important; }
 body.swimmer-print #swimmerPrint { display:block!important; page:swimmerReport; }
 body.swimmer-print dialog { display:none!important; }
 #swimmerPrint .sr-report { padding:0; border:0; font-size:10pt; font-family:"SwimSquad Print",sans-serif; }
 #swimmerPrint .sr-print-header img { width:170px; }
 #swimmerPrint .sr-report h1 { font-size:21pt; }
 #swimmerPrint .sr-report h2 { font-size:12pt; break-after:avoid; }
 #swimmerPrint .sr-table { font-size:9pt; table-layout:fixed; }
 #swimmerPrint .sr-table th,#swimmerPrint .sr-table td { min-width:0; overflow-wrap:anywhere; padding:7pt 4pt; }
 #swimmerPrint .sr-table th:first-child { width:29%; }
 #swimmerPrint .sr-entry-table th:first-child { width:48%; }
 #swimmerPrint .sr-writing-field { margin-top:9pt; }
 #swimmerPrint .sr-writing-field h3 { font-size:10pt; }
 #swimmerPrint .sr-post-race h1 { margin:12px 0 6px; }
 #swimmerPrint .sr-post-race h2 { margin:12px 0 8px; }
 #swimmerPrint .sr-post-race p { margin:6px 0; line-height:1.35; }
 #swimmerPrint .sr-post-race .sr-table th,#swimmerPrint .sr-post-race .sr-table td { padding:3pt 4pt; }
 #swimmerPrint .sr-post-race .sr-write-lines span { height:5.5mm; }
 #swimmerPrint .sr-post-race footer { margin-top:12px; }
 #swimmerPrint .sr-table tr { break-inside:avoid; }
 #swimmerPrint thead { display:table-header-group; }
 #swimmerPrint .sr-table-wrap { overflow:visible; }
 #swimmerPrint .sr-footnote,#swimmerPrint footer,#swimmerPrint .sr-basis { font-size:9pt; }
 #swimmerPrint .sr-comment p { orphans:3; widows:3; }
 body:not(.swimmer-print) #swimmerPrint { display:none!important; }
}
