@font-face{font-family:Montserrat;src:url('assets/Montserrat-Regular.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Octo;src:url('assets/TT-Octosquares-Regular.woff')}@font-face{font-family:Octo;src:url('assets/TT-Octosquares-Bold.woff');font-weight:700}
:root{--bg:#090909;--panel:#141414;--raised:#1c1c1c;--line:#303030;--muted:#aaa;--text:#f7f7f4;--orange:#ff5f00;--green:#b6dd8b;--font:Montserrat,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 var(--font)}button,input,select,textarea{font:inherit;color:inherit}button,select{cursor:pointer}button,a,input,select{touch-action:manipulation}button{background:var(--raised);border:1px solid var(--line);padding:10px 16px;border-radius:3px;transition:background .15s}button:hover{background:#333}button:disabled{opacity:.35;cursor:default}button.primary{background:var(--orange);border-color:var(--orange);color:#090909;font-weight:700}button.primary:hover{background:#ff7e30}button.active{background:var(--text);color:#111;border-color:var(--text)}button.ghost{background:transparent}button.small{padding:5px 10px;font-size:12px}a{color:inherit;text-underline-offset:4px}a:hover{color:var(--orange)}:focus-visible{outline:2px solid var(--orange);outline-offset:4px}input,select{border:1px solid var(--line);background:#141414;padding:11px 12px;border-radius:3px;min-width:0}select{max-width:100%}h1,h2,h3,h4,p{margin:0}h1,h2,h3,.octo{font-family:Octo,var(--font)}h1{font-size:clamp(34px,4.2vw,62px);line-height:1.08;font-weight:700;letter-spacing:-1px}h2{font-size:24px;line-height:1.25}h3{font-size:17px}small,.muted{color:var(--muted)}small{font-size:12px}.caps{font:11px Octo,var(--font);letter-spacing:1.3px;text-transform:uppercase}.orange{color:var(--orange)}.mono{font-variant-numeric:tabular-nums;font-family:Octo,var(--font)}.skip{position:fixed;top:-100px;left:20px;background:white;color:black;padding:10px;z-index:99}.skip:focus{top:10px}header{height:76px;padding:0 36px;display:flex;align-items:center;gap:28px;border-bottom:1px solid var(--line)}header img{width:170px;height:auto}header>span{font:12px Octo;letter-spacing:2px;color:#bbb;border-left:1px solid #444;padding-left:28px}header #refresh{margin-left:auto;font-size:12px}main{max-width:1640px;margin:auto;padding:32px 36px 40px}.intro{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:27px}.intro p{margin-top:13px;color:#b9b9b9;font-size:15px}.week{border:1px solid #444;padding:16px 24px;min-width:230px;position:relative}.week:before{content:'';height:4px;width:36px;background:var(--orange);position:absolute;top:-2px;left:24px}.week strong{display:block;font:19px Octo;margin-top:7px}.toolbar{display:flex;gap:12px;align-items:end;padding-bottom:20px;border-bottom:1px solid var(--line)}label.field{display:flex;flex-direction:column;gap:6px;color:#b3b3b3;font-size:11px}.field select{min-width:160px;font-size:13px;color:white}.search{position:relative;flex:1}.search input{width:100%;padding-left:40px}.search svg{position:absolute;left:13px;top:36px;width:17px;height:17px;stroke:#bbb;fill:none}.stats{display:grid;grid-template-columns:repeat(4,1fr);margin:18px 0 25px}.stat{border-right:1px solid #303030;padding:0 23px}.stat:first-child{padding-left:0}.stat:last-child{border:0}.stat b{font:32px Octo;display:inline-block;margin-right:10px}.stat span{font-size:12px;color:#aaa;display:inline-block;max-width:145px;line-height:1.35}.layout{display:grid;grid-template-columns:275px minmax(0,1fr);gap:26px}.rail{min-width:0}.rail-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 12px}.rail-head span{font:12px Octo;color:#bcbcbc}.event-list{display:flex;flex-direction:column;gap:8px;max-height:1050px;overflow:auto;scrollbar-width:thin}.event{display:block;text-align:left;position:relative;background:var(--panel);padding:17px 17px 15px;width:100%;border:1px solid #292929;min-height:103px}.event:hover{border-color:#666;background:#1b1b1b}.event.selected{border-color:var(--orange);background:#21150e}.event.selected:before{content:'';position:absolute;left:-1px;top:16px;bottom:16px;width:3px;background:var(--orange)}.event strong{font:700 15px Octo;display:block;margin:7px 0}.event .meta{display:flex;justify-content:space-between;gap:6px;font-size:11px;color:#aaa}.event .event-bottom{font-size:11px;color:#bbb;display:flex;justify-content:space-between;gap:4px}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--green);margin-right:6px}.dot.gray{background:#777}.rail-note{font-size:11px;color:#9d9d9d;margin:16px 0;line-height:1.7}.race-panel{background:var(--panel);border:1px solid #303030}.race-title{padding:22px 25px;display:flex;justify-content:space-between;align-items:start;gap:20px}.race-title .caps{margin-bottom:10px;color:#bbb}.race-title select{max-width:300px}.race-title .sub{margin-top:7px;color:#a6a6a6;font-size:12px}.badge{display:inline-flex;align-items:center;gap:5px;border:1px solid #494949;font-size:10px;padding:3px 7px;border-radius:2px;white-space:nowrap}.badge.ru{color:#ffd4b9;border-color:#805038;background:#342219}.badge.live{color:var(--green);border-color:#475739}.race-facts{display:flex;gap:35px;padding:0 25px 14px}.race-facts b{font:24px Octo;display:block}.race-facts span{font-size:11px;color:#aaa}.profile-wrap{padding:5px 18px 4px;position:relative}.profile-wrap svg{width:100%;height:160px;display:block}.profile-caption{display:flex;justify-content:space-between;padding:0 8px 13px;color:#aaa;font-size:10px}.chart-grid{stroke:#353535;stroke-width:1;stroke-dasharray:3 5}.chart-label{fill:#a6a6a6;font:11px Montserrat}.chart-line{fill:none;stroke:var(--orange);stroke-width:2}.chart-dot{fill:#ff5f00}.race-foot{display:flex;justify-content:space-between;gap:10px;padding:10px 25px;border-top:1px solid var(--line);color:#aaa;font-size:11px}.note{margin:0 25px 20px;background:#1d1a16;border-left:2px solid #9e6638;padding:12px 15px;color:#c7c2b9;font-size:12px}.empty{padding:36px 25px;color:#bbb}.empty h3{color:white;margin-bottom:10px}.empty p{max-width:600px;font-size:13px}.empty button,.empty a{margin-top:14px;display:inline-block}.results{margin-top:22px}.results-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.results-head h3{font-size:18px}.results-head small{margin-left:10px}.results-actions{display:flex;gap:6px}.filter-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px}.segments{display:flex;gap:0}.segments button{padding:8px 11px;border-radius:0;font-size:12px}.segments button+button{border-left:0}.filter-row select{padding:7px 8px;font-size:12px;max-width:200px}.filter-row .favorite-filter{margin-left:auto}.table-wrap{overflow-x:auto;border:1px solid var(--line)}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}th{font-weight:400;text-align:left;font-size:10px;letter-spacing:.4px;text-transform:uppercase;color:#a6a6a6;background:#161616;padding:12px 10px;border-bottom:1px solid #3b3b3b}td{padding:13px 10px;border-bottom:1px solid #292929;vertical-align:middle}th:first-child,td:first-child{padding-left:18px}tr:last-child td{border-bottom:0}tbody tr:hover{background:#1c1c1c}.name-button{background:transparent;border:0;padding:0;font-weight:600;text-align:left;font-size:13px;display:block}.name-button:hover{background:none;color:var(--orange)}.athlete-sub{font-size:10px;color:#999;margin-top:4px;white-space:normal;max-width:250px}.star{padding:2px 5px;border:0;background:none;color:#a5a5a5;font-size:20px}.star.is-starred{color:var(--orange)}.star:hover{background:none;color:var(--orange)}.status{font-size:10px;color:#bcbcbc}.status.on_course{color:var(--green)}.status.finished{color:#f8be8d}.progress{width:70px;height:2px;background:#393939;margin-top:6px}.progress i{display:block;height:2px;background:#ff5f00}.rank{font:18px Octo;color:white}.index-val{font:16px Octo}.paging{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;color:#aaa;font-size:12px}.table-note{margin-top:10px;font-size:11px;color:#969696}.tabs{display:flex;gap:22px;margin:4px 0 18px;border-bottom:1px solid #333}.tabs button{padding:10px 0;border:0;border-radius:0;background:none;font-size:12px;color:#bbb}.tabs button.active{border-bottom:2px solid var(--orange);color:white}.source-card{border:1px solid #333;padding:20px;margin-bottom:12px}.source-card h3{margin:6px 0 10px}.source-card p{font-size:13px;color:#b3b3b3;margin:7px 0}.source-card a{font-size:12px}.source-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.source-grid .source-card{margin:0}.legend{display:flex;gap:18px;flex-wrap:wrap;font-size:11px;color:#bbb;margin:12px 0}.legend i{width:9px;height:9px;display:inline-block;margin-right:5px}.timeline{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin:20px 0}.day{border:1px solid #333;padding:10px 7px;min-height:105px}.day b{font:20px Octo;display:block}.day small{font-size:10px}.day .day-bar{height:4px;background:#ff5f00;margin-top:12px}.week-chart{padding:20px 25px}.footer{display:flex;gap:15px;justify-content:space-between;margin-top:35px;padding-top:20px;border-top:1px solid #303030;font-size:11px;color:#898989}.footer a{color:#bbb}dialog{color:var(--text);background:#131313;border:1px solid #555;border-radius:4px;width:min(880px,calc(100% - 30px));max-height:91vh;padding:0;box-shadow:0 30px 100px #000a}dialog::backdrop{background:#000b;backdrop-filter:blur(3px)}.modal-head{display:flex;gap:20px;align-items:start;padding:25px;border-bottom:1px solid #333}.modal-head h2{margin:8px 0}.modal-head .close{margin-left:auto;font-size:20px;padding:2px 10px}.modal-body{padding:24px}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}.metric-grid b{font:22px Octo;display:block}.metric-grid small{font-size:11px}.modal-body h3{margin:23px 0 12px}.modal-body p{color:#bbb;font-size:13px}.evidence{border-top:1px solid #333;margin-top:15px;padding-top:12px}.evidence a{font-size:12px}.evidence p{font-size:11px;margin:5px 0 10px}.modal-body .gap-chart{width:100%;height:210px}.post-text{width:100%;height:340px;resize:vertical;background:#0d0d0d;border:1px solid #444;padding:16px;line-height:1.65;font-size:14px;margin:15px 0}.loading{font-size:12px;color:#ccc;margin:12px 0}.toast{opacity:1!important;transform:translateY(0)!important}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;padding:12px 22px;border:1px solid #666;background:#f5f5f0;color:#111;z-index:200;transition:opacity .2s,transform .2s;max-width:90vw;text-align:center;font-size:13px}.sr-only{position:absolute;overflow:hidden;width:1px;height:1px;clip:rect(0,0,0,0)}
@media(min-width:1500px){.layout{grid-template-columns:310px 1fr}.event{padding:20px}}
@media(max-width:1100px){main{padding:25px 22px}.layout{grid-template-columns:230px minmax(0,1fr);gap:18px}.toolbar{flex-wrap:wrap}.search{min-width:280px}.stat{padding:0 14px}.stat b{font-size:28px}.stat span{display:block}.race-title{padding:20px}.race-title select{max-width:200px}.race-facts{gap:23px;padding-left:20px}.filter-row .favorite-filter{margin-left:0}.race-title h2{font-size:21px}.source-grid{grid-template-columns:1fr}}
@media(max-width:760px){header{height:64px;padding:0 18px;gap:12px}header img{width:137px}header>span{display:none}main{padding:23px 16px}.intro{align-items:start;margin-bottom:22px}.intro p{font-size:12px;max-width:220px}.week{padding:10px 11px;min-width:auto;max-width:136px}.week:before{left:11px}.week strong{font-size:13px}.week .caps{font-size:9px}h1{font-size:34px;max-width:270px}.toolbar{gap:9px}.field select{min-width:0;width:100%;font-size:12px}.toolbar>.field{width:calc((100% - 18px)/3)}.toolbar>.search{width:100%;min-width:100%;order:4}.stats{margin:18px 0 22px;gap:12px;grid-template-columns:repeat(2,1fr)}.stat{padding:0 12px;border-right:0}.stat:nth-child(odd){padding-left:0;border-right:1px solid #333}.stat b{font-size:28px}.stat span{display:inline-block;max-width:100px;font-size:10px}.layout{display:block}.event-list{flex-direction:row;overflow:auto;max-height:none;padding-bottom:8px;margin-bottom:12px}.event{min-width:218px;max-width:218px;min-height:113px}.rail-note{display:none}.rail-head{margin-bottom:10px}.race-title{flex-direction:column;padding:20px;gap:13px}.race-title select{max-width:100%;width:100%}.race-title .sub{font-size:11px}.race-facts{gap:26px;padding:0 20px 12px}.race-facts b{font-size:22px}.profile-wrap svg{height:142px}.race-foot{padding:10px 18px;flex-wrap:wrap}.results-head{align-items:start;gap:10px}.results-head h3{font-size:15px}.results-head small{display:block;margin:4px 0 0}.results-actions button{font-size:10px;padding:6px 9px}.filter-row{gap:8px}.segments{width:100%}.segments button{flex:1}.filter-row select{max-width:calc(50% - 5px);font-size:11px}.favorite-filter{font-size:11px;padding:7px}.table-wrap{margin:0 -1px}.paging{font-size:10px}.paging button{padding:5px 9px;font-size:11px}.metric-grid{grid-template-columns:repeat(2,1fr)}.modal-body{padding:18px}.modal-head{padding:20px}.modal-head h2{font-size:21px}.footer{flex-direction:column;gap:8px}.timeline{gap:3px}.day{padding:8px 4px;min-height:85px}.day b{font-size:16px}.day small{font-size:9px}.week-chart{padding:15px}.source-card{padding:16px}.profile-caption{font-size:9px}.race-facts span{font-size:10px}.source-card h3{font-size:16px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:760px){.intro{display:block}.intro h1{max-width:none;font-size:32px}.intro p{max-width:none}.week{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:none;width:100%;margin-top:18px;padding:13px 12px}.week .caps{max-width:85px}.week strong{font-size:14px;margin:0}.week>small{display:none}.stat{display:flex;align-items:center;gap:8px;min-height:45px}.stat b{font-size:26px;margin:0;flex-shrink:0}.stat span{min-width:0}.intro>div{min-width:0}.layout>section{min-width:0}.table-wrap{max-width:100%}}
/* Keep narrow screens scrollable only inside race lists and result tables. */
.race-facts{flex-wrap:wrap}.modal-head>div{min-width:0}.modal-head h2{overflow-wrap:anywhere}.toast{transform:translate(-50%,0)!important}
@media(max-width:760px){.intro h1{font-size:clamp(26px,8.2vw,32px)}.profile-caption{flex-wrap:wrap;gap:5px}.race-facts{row-gap:12px}.paging{flex-wrap:wrap}}
dialog{width:min(1060px,calc(100% - 24px))}.athlete-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.snapshot-note{font-size:12px!important;margin:15px 0!important;color:#b4b4b4!important}.athlete-geography{margin:18px 0 12px}.map-heading{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;margin:18px 0 12px}.map-heading h3{margin:0!important}.athlete-map{height:360px;background:#262a29;border:1px solid #555;border-radius:3px}.map-unavailable{padding:25px;border:1px solid #444;color:#bbb}.position-note{font-size:13px!important;padding:11px 13px;background:#21180f;border-left:3px solid #ff5f00;margin:10px 0!important}.map-source{font-size:12px!important;margin:8px 0!important}.athlete-map .leaflet-control-attribution{background:#fff!important;color:#222}.athlete-map .leaflet-control-attribution a{color:#174a70}.leaflet-tooltip{color:#181818;max-width:330px;white-space:normal;font:13px Montserrat,sans-serif}.leaflet-control-zoom a{color:#111;background:#fff}.split-point{border:0;background:none;padding:0;color:#efb081;text-align:left;font-size:12px}.splits-table .selected-split td{background:#302014}.modal-body .profile-wrap{margin-top:16px}.table-note{line-height:1.6}.metric-grid small{font-size:12px}.source-card p{line-height:1.65}
@media(max-width:760px){.athlete-map{height:290px}.modal-body{padding:14px}.map-heading h3{font-size:15px}.map-heading button{padding:7px 10px}.modal-head{padding:17px}.leaflet-tooltip{max-width:220px}.metric-grid{gap:10px}.metric-grid b{font-size:20px}.snapshot-note{line-height:1.55}.map-source{overflow-wrap:anywhere}}

.checkpoint-reference{display:block;font-family:Montserrat,sans-serif;font-size:10px;white-space:normal;max-width:170px;margin-top:4px;color:#92948b}.audit-details{margin-top:18px}.audit-details summary{cursor:pointer;color:#ff7b24}.gps-table{max-height:440px;overflow:auto}.gps-table th{position:sticky;top:0;background:#171717;z-index:1}.gps-table td{font-variant-numeric:tabular-nums}.race-state{font-size:13px}.metric-grid b{overflow-wrap:anywhere}
.split-summary{font-size:14px;line-height:1.6;margin:10px 0 14px;color:#c7c7c7}.splits-table th{font-size:13px;white-space:normal;min-width:108px}.splits-table td{font-variant-numeric:tabular-nums}.splits-table th:first-child,.splits-table td:first-child{position:sticky;left:0;z-index:1;background:#171717;min-width:160px;max-width:210px;white-space:normal}.splits-table .last-confirmed-split td{background:#291b11}.splits-table .split-unreported td:not(:first-child){color:#999}.splits-table .checkpoint-reference{white-space:normal;max-width:180px}.splits-table:focus-visible{outline:2px solid var(--orange);outline-offset:2px}

[data-athlete-row]{cursor:pointer}[data-athlete-row]:focus-visible{outline:2px solid var(--orange);outline-offset:-2px;background:#291b11}.gps-metrics b{font-size:15px}.gps-history .checkpoint-reference{max-width:220px}

.audit-details td{white-space:normal;min-width:170px;max-width:330px;vertical-align:top}.team-results{margin:0 25px 20px}.team-results summary{cursor:pointer;color:var(--orange);padding:10px 0}
@media(max-width:560px){.metric-grid:not(.gps-metrics) b{font:16px Montserrat,sans-serif;white-space:nowrap;overflow-wrap:normal}}

.gps-controls{padding:16px 0;border-top:1px solid #353535}.gps-rank-table{max-width:100%;overflow:auto}.gps-rank-table td,.gps-rank-table th{min-width:145px}.gps-rank-table td:nth-child(2),.gps-rank-table th:nth-child(2){min-width:260px;position:sticky;left:0;background:#1d1d1d;z-index:1}.gps-rank-table th:nth-child(2){z-index:2}.gps-rank-table td:first-child,.gps-rank-table th:first-child{min-width:85px}.gps-selected{background:rgba(255,95,0,.09)}

/* Readable, independently scrollable tables with persistent column headings. */
.table-wrap{overflow:auto;border:1px solid #555;scrollbar-color:#888 #242424;overscroll-behavior-x:contain}
#rows>.table-wrap{max-height:72vh;max-height:72dvh}
.table-wrap table{border-collapse:separate;border-spacing:0;font:14px/1.5 Montserrat,sans-serif;color:#f3f3ee}
.table-wrap th{position:sticky;top:0;z-index:5;background:#30312d;color:#fff;font:600 13px/1.4 Montserrat,sans-serif;letter-spacing:0;text-transform:none;padding:14px 12px;border-bottom:2px solid #777;text-align:left}
.table-wrap td{padding:13px 12px;border-bottom:1px solid #444;font-variant-numeric:tabular-nums;background:#191b19}
.table-wrap tr:nth-child(even) td{background:#232522}.table-wrap tr:hover td{background:#33291f}
.table-wrap .mono{font:14px/1.5 Montserrat,sans-serif}
.table-wrap .name-button,.table-wrap .split-point{font-size:14px;line-height:1.5;color:#ffe0c6}
.table-wrap .athlete-sub,.table-wrap .checkpoint-reference{font:12px/1.5 Montserrat,sans-serif;color:#c0c5bc}
.table-wrap .muted,.splits-table .split-unreported td:not(:first-child){color:#c0c5bc}
.table-wrap .star{min-width:34px;min-height:34px;font-size:24px}
.splits-table th{min-width:104px}.splits-table th:first-child{z-index:7;background:#30312d}.splits-table td:first-child{z-index:2}
.gps-rank-table th:nth-child(2){z-index:7;background:#30312d}.gps-rank-table td:nth-child(2){z-index:2}
.splits-table .last-confirmed-split td{background:#382617}.splits-table .selected-split td{background:#48301c}
dialog{width:min(1280px,calc(100% - 28px));max-height:92vh;max-height:92dvh;overflow:hidden}
dialog[open]{display:flex;flex-direction:column}
.modal-head{flex:none;background:#181a17;border-bottom:1px solid #62655c;padding:18px 24px;z-index:30}
.modal-head h2{font-size:25px;margin:6px 0}.modal-head .close{min-width:40px;min-height:40px}
.modal-body{overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-color:#888 #242424}
.modal-body .table-wrap{max-height:58vh;max-height:58dvh}.modal-body .gps-table{max-height:440px}
.race-overview{padding:5px 24px 20px}.overview-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:15px 0 10px}
.overview-heading h3,.overview-heading h4{margin:0;font-size:16px}.overview-heading>span{font:12px/1.5 Montserrat,sans-serif;color:#d0d5cc}
.race-chart-scroll{overflow:auto;scrollbar-color:#888 #242424}.race-chart{display:block;width:100%;height:auto}
.race-chart .chart-label{font:12px Montserrat,sans-serif;fill:#d3d8cf}.checkpoint-bar{fill:#b7cf85}.count-label{font:600 13px Montserrat,sans-serif;fill:#e2ebcf}
.profile-athlete{cursor:pointer}.man{--runner:#9ad7ed}.woman{--runner:#e6acf5}.favorite{--runner:#ffd779}
.profile-athlete{color:var(--runner)}.profile-athlete rect{fill:var(--runner);stroke:#191b19;stroke-width:1.5}.profile-athlete text{fill:#171a16;font:700 12px Montserrat,sans-serif}.profile-athlete:hover rect,.profile-athlete:focus rect{stroke:#fff;stroke-width:3}
.overview-note,.overview-help,.overview-empty{font:13px/1.65 Montserrat,sans-serif;color:#bdc5b7;margin:10px 0}.overview-help{color:#e4e8df}
.overview-athletes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:12px 0 16px}
.overview-person{display:flex;align-items:center;gap:9px;min-width:0;text-align:left;background:#22251f;border:1px solid #4c5146;border-radius:5px;padding:9px;color:#f5f7f1}
.overview-person>span:last-child{min-width:0}.overview-person strong{display:block;font:600 13px/1.45 Montserrat,sans-serif;overflow-wrap:anywhere}.overview-person small{display:block;margin-top:3px;color:#bdc5b7;font:11px/1.5 Montserrat,sans-serif}
.runner-badge,.map-runner{background:var(--runner);color:#161c13;border-radius:16px;flex:none;padding:5px 8px;font:700 12px/1.3 Montserrat,sans-serif;white-space:nowrap}
.race-overview-map{height:300px;border:1px solid #62695b;background:#262a29;isolation:isolate}
.race-overview-map .leaflet-control-attribution{background:#fff;color:#222}.race-overview-map .leaflet-control-attribution a{color:#174a70}
.map-runner-stack{display:flex;gap:3px;flex-wrap:wrap;width:max-content;max-width:155px}.map-runner{border:2px solid #222;cursor:pointer;box-shadow:0 1px 5px #0007;min-height:30px}.map-runner:hover,.map-runner:focus-visible{border-color:#fff;outline:2px solid #191919}
@media(max-width:760px){.race-overview{padding:4px 16px 16px}.overview-athletes{grid-template-columns:1fr}.race-overview-map{height:270px}.modal-head{padding:14px}.modal-head h2{font-size:20px}.modal-head .caps{font-size:10px}.table-wrap th,.table-wrap td{padding:11px 10px}dialog{width:calc(100% - 20px)}.splits-table th:first-child,.splits-table td:first-child{min-width:135px;max-width:150px}.gps-rank-table td:nth-child(2),.gps-rank-table th:nth-child(2){min-width:190px;max-width:220px}.overview-heading h4{font-size:14px}}

/* Keep the same header visible when scrolling either the table or its page. */
.table-wrap th{top:var(--table-head-top,0px)}
.overview-profile-panel[hidden],.overview-map-panel[hidden]{display:none!important}
.overview-controls{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin:16px 0 8px}
.overview-switch{display:flex;border:1px solid #666;border-radius:5px;overflow:hidden}
.overview-switch button{font-size:14px;min-height:44px;padding:8px 14px;border:0;border-radius:0;background:#22251f;color:#e5ebdf}
.overview-switch button+button{border-left:1px solid #555}.overview-switch button.active{background:#ff7020;color:#15100c;font-weight:700}
.overview-selection{font:14px/1.5 Montserrat,sans-serif;color:#d4ddcb;margin:12px 0}
.overview-profile-graphic{width:100%;min-width:0}.race-chart{max-width:none;min-width:0;height:auto}
.race-chart .histogram-title{font:600 13px Montserrat,sans-serif;fill:#e2ebcf}
.race-chart .count-label{font-size:14px}.race-chart .profile-athlete text{font-size:14px}
.profile-athlete.is-highlighted rect{stroke:#fff;stroke-width:4}.profile-checkpoint{cursor:pointer}
.profile-checkpoint.is-highlighted .checkpoint-bar{fill:#ff7b24}.profile-checkpoint:focus .checkpoint-bar{stroke:#fff;stroke-width:2}
.race-overview .profile-caption{align-items:center;font-size:12px;gap:12px;padding:8px 0;flex-wrap:wrap}
.checkpoint-readout{padding:12px;background:#252c1f;border-left:3px solid #b7cf85;color:#eef4e6;font:14px/1.5 Montserrat,sans-serif;min-height:46px}
.checkpoint-counts,.overview-method{margin:12px 0}.checkpoint-counts summary,.overview-method summary{font-size:14px;cursor:pointer;color:#efcfb9;padding:10px 0}
.checkpoint-count-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:6px;margin:8px 0}
.checkpoint-count-grid button{display:flex;gap:12px;text-align:left;align-items:center;padding:10px;font-size:14px}
.checkpoint-count-grid b{font-size:20px;min-width:38px;color:#dcefbf}.checkpoint-count-grid small{display:block;font-size:12px}
.overview-person{cursor:default;display:grid;grid-template-columns:auto minmax(0,1fr) auto}
.overview-person>div{min-width:0}.overview-person .overview-open{border:0;background:none;padding:0;text-align:left;white-space:normal;color:#fff;font:600 14px/1.5 Montserrat,sans-serif}
.overview-person small{font-size:12px}.overview-locate{padding:7px;font-size:12px;min-height:36px}.overview-person.is-highlighted{border-color:#ffc37a;background:#302519}
.overview-help{font-size:14px}.overview-heading>span{font-size:13px}.map-runner{font-size:14px;min-height:34px;min-width:42px}
.race-overview-map{height:380px}.overview-empty{grid-column:1/-1;font-size:14px}
@media(max-width:760px){.overview-controls{display:block}.overview-switch{width:100%;margin:8px 0}.overview-switch button{flex:1;padding:8px 6px;font-size:14px}.race-overview{padding:4px 12px 16px}.race-overview-map{height:340px}.overview-person{gap:7px}.overview-selection{font-size:13px}.checkpoint-count-grid{grid-template-columns:1fr}.overview-heading>span{font-size:12px}}

/* Date-first chronology: nothing is rendered until filters are applied. */
.chronology-intro{align-items:center;margin-bottom:24px}.chronology-intro h1{margin:10px 0}.chronology-intro>small{color:#aaa}.calendar-filters{padding:22px;border:1px solid #555;background:#191919;margin-bottom:22px}.filter-fields{display:grid;grid-template-columns:1fr 1fr 1.2fr 1.4fr;gap:16px}.filter-fields .field{display:flex;flex-direction:column;gap:7px;font-size:14px;min-width:0}.filter-fields input,.filter-fields select{width:100%;min-width:0;padding:12px;background:#101010;border:1px solid #666;border-radius:2px;color:#f5f5ef;font-size:16px;height:48px}.filter-fields .search{grid-column:1/-1;min-width:0}.filter-fields .search input{padding-left:12px}.filter-actions{display:flex;align-items:center;gap:12px;margin-top:18px}.filter-actions p{margin:0 auto 0 0;color:#bdbdbd;font-size:14px;max-width:520px}.filter-actions button{font-size:14px;min-height:46px}.filter-error{color:#ffd0b5;font-size:16px;margin:16px 0 0}.filter-gate{border:1px dashed #5a5a5a;padding:40px;max-width:850px;margin:30px auto 50px}.filter-gate h2{font-size:24px;margin:12px 0}.filter-gate p{font-size:16px;line-height:1.6;color:#c7c7c7;margin-bottom:0}.filter-summary{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:15px;color:#ccc;margin-bottom:18px}.filter-summary strong{color:#fff}.week-chart .timeline{grid-template-columns:repeat(7,minmax(0,1fr))}.day small{font-size:12px}.week-chart>.muted{font-size:14px;line-height:1.6}
@media(max-width:760px){.chronology-intro{display:block}.chronology-intro>small{display:block;margin-top:8px}.calendar-filters{padding:16px}.filter-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 10px}.filter-fields .field{font-size:14px}.filter-fields input,.filter-fields select{font-size:16px;padding:10px 6px;max-width:100%}.filter-actions{flex-wrap:wrap}.filter-actions p{flex-basis:100%;margin-bottom:4px}.filter-actions .primary{flex:1}.filter-gate{padding:24px 20px}.filter-gate h2{font-size:21px}.week-chart .timeline{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.day{min-height:100px;padding:10px}.day small{font-size:13px}.filter-summary{font-size:14px}}
/* Keep date inputs mounted while typing; the calendar works inside the page. */
.date-entry{display:flex;align-items:stretch;min-width:0}.filter-fields .date-entry input{flex:1;width:0;border-radius:2px 0 0 2px;padding:10px}.filter-fields .date-toggle{width:44px;min-width:44px;padding:0;display:grid;place-items:center;border:1px solid #666;border-left:0;border-radius:0 2px 2px 0;background:#252525;color:#fff}.date-toggle:hover{background:#343434}.date-format-hint{font-size:14px;color:#c7c7c7;margin:14px 0 0}.filter-fields input:focus,.filter-fields select:focus,.date-toggle:focus-visible{outline:2px solid #ff7900;outline-offset:2px}#date-picker{width:360px;max-width:calc(100vw - 24px);padding:18px;border:1px solid #777;border-radius:6px;background:#191919;color:#fafaf5;box-sizing:border-box}#date-picker::backdrop{background:rgba(0,0,0,.7)}.date-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.date-picker-head h2{font:600 20px/1.3 Montserrat,sans-serif;margin:0}.date-picker-head button{font-size:24px;min-width:44px;min-height:44px;padding:0}.date-month-controls{display:grid;grid-template-columns:36px minmax(0,1fr) 82px 36px;gap:6px;margin-bottom:14px}.date-month-controls button,.date-month-controls select{min-width:0;min-height:44px;padding:6px;font-size:16px;color:#fff;background:#252525;border:1px solid #666}.date-month-controls button{font-size:22px}.date-weekdays,.date-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.date-weekdays span{font-size:14px;text-align:center;color:#ccc;padding:6px 0}.date-days button{padding:0;min-height:40px;background:#292929;border:1px solid transparent;font-size:16px;color:#fff}.date-days button[aria-pressed=true]{background:#ff7900;color:#111;border-color:#ff7900;font-weight:bold}.date-days button:hover{border-color:#ff7900}.date-days button:focus-visible{outline:2px solid #ff7900;outline-offset:1px}.date-picker p{font-size:14px;color:#ccc;margin:16px 0 0}.date-month-controls button:disabled{opacity:.35}#filter-error[hidden]{display:none}@media(max-width:380px){.date-entry input{font-size:16px}.calendar-filters{padding:12px}.filter-fields{gap:12px}.filter-fields .date-toggle{min-width:38px;width:38px}#date-picker{padding:12px}.date-month-controls{grid-template-columns:32px minmax(0,1fr) 78px 32px;gap:4px}}

@media(max-width:380px){.filter-fields .date-field{grid-column:1/-1}}

.protocol-progress{position:relative;display:flex;flex-wrap:wrap;gap:.5rem 1rem;align-items:center;border:1px solid #494949;padding:1rem;margin:.8rem 0;background:#171717;font-size:.9rem}.protocol-progress span{color:#ddd}.protocol-event-status{display:block;margin-top:.6rem;font-size:.85rem;color:#ff9a57}.protocol-working{width:.7rem;height:.7rem;background:#ff6a00;border-radius:50%;animation:protocol-pulse 1s ease-in-out infinite alternate}@keyframes protocol-pulse{to{opacity:.25}}@media(prefers-reduced-motion:reduce){.protocol-working{animation:none}}

/* BADREE typography and compact, measurable race views. */
:root{--font:Montserrat,sans-serif}body{font-synthesis:none}h1,h2,h3,h4,.caps,.octo{font-family:Octo,sans-serif;font-weight:700}b,strong{font-family:Octo,sans-serif;font-weight:700}.leaflet-container,.leaflet-tooltip,.leaflet-control{font-family:Montserrat,sans-serif}.table-wrap .mono{font-family:Montserrat,sans-serif;font-variant-numeric:tabular-nums}.splits-table th,.splits-table td{padding:8px 9px;min-width:70px;font-size:12px;line-height:1.4}.splits-table th{font-weight:400}.splits-table th:first-child,.splits-table td:first-child{min-width:135px;max-width:175px;padding-left:10px}.splits-table .split-arrival{min-width:145px;white-space:nowrap}.splits-table .checkpoint-reference{max-width:130px;font-size:10px;line-height:1.4}.splits-table{padding-bottom:18px;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch}.table-scrollbar{position:fixed;z-index:40;height:18px;overflow-x:scroll;overflow-y:hidden;background:#30312d;scrollbar-color:#ff8c45 #30312d;scrollbar-width:auto}.table-scrollbar[hidden]{display:none}.table-scrollbar>div{height:1px;pointer-events:none}.table-scrollbar::-webkit-scrollbar{height:16px}.table-scrollbar::-webkit-scrollbar-thumb{background:#ff8c45;border:3px solid #30312d;border-radius:10px}.table-scrollbar::-webkit-scrollbar-track{background:#30312d}.profile-cursor[hidden]{display:none}.profile-cursor line{stroke:#fff;stroke-width:1.5;stroke-dasharray:4 3}.profile-cursor circle{stroke:#fff;fill:#ff5f00;stroke-width:2}svg[data-profile-race]{touch-action:pan-y;outline-offset:3px}.profile-inspection{font:14px/1.5 Montserrat,sans-serif!important;color:#fff!important;min-height:30px;padding:8px 10px;border-left:3px solid #ff5f00;background:#241a12;margin:8px 0!important}.profile-method,.profile-unavailable{font:11px/1.55 Montserrat,sans-serif!important;color:#b8b8b8!important;margin:6px 0 10px!important}.profile-metric-switch{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.profile-metric-switch button{min-height:40px;font-size:12px;padding:8px 11px}.profile-metric-switch [aria-pressed=true]{background:#ff5f00;color:#101010;border-color:#ff5f00}.profile-data-table{max-height:240px!important}.profile-data-table th,.profile-data-table td{padding:8px 12px;font-size:12px}.profile-data-table .selected-split td{background:#49301a}.race-countdown{margin:0 25px 15px;padding:12px;background:#24190f;font-size:14px}.race-countdown strong{display:inline-block;min-width:130px;margin-left:10px;font-size:22px;font-variant-numeric:tabular-nums}.race-control-note,.race-state{padding:0 25px 10px}.athlete-timezone{margin:8px 0 18px}
@media(max-width:760px){.table-scrollbar{display:none!important}.splits-table{padding-bottom:0}.splits-table th,.splits-table td{padding:8px;min-width:66px}.splits-table th:first-child,.splits-table td:first-child{min-width:118px;max-width:135px}.splits-table .split-arrival{min-width:140px}.profile-metric-switch{display:grid;grid-template-columns:1fr 1fr}.profile-inspection{font-size:12px!important}.race-countdown{margin:0 16px 12px}.race-control-note,.race-state{padding:0 16px 8px}}

.leaflet-container *{font-family:Montserrat,sans-serif}.leaflet-control-zoom a{font-family:Octo,sans-serif}

.race-plan-button{margin-top:14px;min-height:40px}
/* A six-week calendar must remain reachable on short/landscape viewports. */
#date-picker{max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}
