:root{font-family:Arial,sans-serif;color:#19394c;background:#f3f7fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{color:#075ca6}button,select,input{font:inherit}button{cursor:pointer;border:1px solid #d5e2eb;border-radius:12px;background:#fff;color:#144966;padding:12px 18px;font-weight:700;min-height:44px}button:hover{background:#edf6fd}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #e99c25;outline-offset:3px}[hidden]{display:none!important}.season-header{max-width:1200px;margin:auto;padding:22px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:20px;font-weight:800}.brand img{width:56px;height:56px;object-fit:contain;border-radius:10px}.brand small{display:block;font-size:11px;font-weight:400;color:#60798b;margin-top:6px}main{max-width:1200px;margin:auto;padding:0 28px 30px}.hero{padding:40px;border-radius:28px;background:linear-gradient(115deg,#073f75,#0a6d9f);color:white;position:relative;overflow:hidden}.hero:after{content:'';position:absolute;width:300px;height:300px;border:50px solid #ffffff09;border-radius:50%;right:-80px;top:-40px;pointer-events:none}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.6px;color:#177699}.hero .eyebrow{color:#a9d9f6}h1{font-size:clamp(30px,4vw,46px);letter-spacing:-1.2px;line-height:1.1;margin:18px 0}h2{font-size:23px;line-height:1.2;margin:12px 0}p{line-height:1.6;margin:10px 0;font-size:15px}.hero-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.hero-tags span{padding:8px 12px;background:#ffffff16;border:1px solid #ffffff22;border-radius:30px;font-size:12px}.tabs{display:flex;gap:8px;overflow:auto;padding:7px 0;margin:18px 0}.tabs button{white-space:nowrap;flex:1}.tabs button[aria-pressed=true]{background:#075da4;color:white;border-color:#075da4}.tabs.small{justify-content:flex-start;margin:9px 0}.tabs.small button{flex:none}.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.card{padding:26px;border:1px solid #dfe9ef;background:white;border-radius:22px;margin-bottom:18px;box-shadow:0 6px 20px #153c5505}.goal{border-top:4px solid #27a893}.metric{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:24px 0 16px}.metric strong{font-size:44px;letter-spacing:-1.5px;color:#075da4}.metric span,.muted,small{color:#657f8e;font-size:13px}progress{width:100%;height:12px;border:0;border-radius:20px;overflow:hidden;background:#e7eff3;accent-color:#25a38d}progress::-webkit-progress-bar{background:#e7eff3}progress::-webkit-progress-value{background:#25a38d;border-radius:20px}.settings{display:grid;grid-template-columns:1fr 1fr;gap:26px}.settings form{display:grid;gap:10px;align-content:start}label{font-size:13px;display:grid;gap:8px}input,select{padding:12px;border:1px solid #ccdce7;border-radius:10px;min-width:0;background:white;color:#19394c}.three{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:24px}.three b{color:#07669d;font-size:14px}.three p{font-size:14px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.rank-row{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:14px;padding:18px 0;border-bottom:1px solid #edf2f5}.rank-row:last-child{border:0}.rank-row>strong{text-align:right;white-space:nowrap;color:#075da4}.rank-row b{font-size:15px}.rank-row small{display:block;margin-top:5px;font-weight:400}.place{display:grid;place-items:center;background:#edf4fa;border-radius:50%;width:32px;height:32px}.empty{padding:35px 12px;text-align:center}.empty h3{margin:0 0 10px}iframe{display:block;width:100%;height:680px;border:1px solid #dfe9ef;border-radius:18px;background:white}#path-frame{height:580px}#status:empty{display:none}#status{padding:8px 0;color:#07669d}footer{text-align:center;color:#617b8a;font-size:12px;line-height:1.8;padding:25px}summary{cursor:pointer;padding:8px 0;font-weight:700}#config-form{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:20px}#config-status{grid-column:1/-1}.embedded .season-header{display:none}.embedded main{padding-top:14px}.embedded .hero{padding:24px}.embedded h1{font-size:28px}.embedded .hero-tags{margin-top:12px}@media(max-width:640px){.season-header{padding:16px}.brand{font-size:17px}.brand img{width:44px;height:44px}main{padding:0 14px 20px}.hero{padding:26px 22px;border-radius:22px}.grid,.settings,.three{grid-template-columns:1fr}.grid{gap:0}.card{padding:21px}.tabs{gap:6px}.tabs button{padding:12px;font-size:13px}.metric strong{font-size:38px}.rank-row{gap:9px;grid-template-columns:28px 1fr auto}.rank-row b{font-size:13px}.rank-row>strong{font-size:15px}.rank-row small{font-size:11px}.three{gap:12px}iframe{height:620px}#config-form{grid-template-columns:1fr}.embedded .hero h1{font-size:26px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

@media(max-width:640px){body[data-view]:not([data-view=home]) .hero h1{display:none}body[data-view]:not([data-view=home]) .hero{padding:18px 22px}body[data-view]:not([data-view=home]) .hero-tags{margin-top:10px}body[data-view]:not([data-view=home]) #dates{font-size:12px}body[data-view]:not([data-view=home]) .tabs{margin:12px 0}}

/* Native bottom navigation owns screen switching in the app. */
.focused-screen .hero,.focused-screen main>nav,.focused-screen #admin,.focused-screen footer{display:none!important}
.focused-screen main{padding-top:12px}
.focused-screen .section-title{margin-bottom:12px}

/* Two compact filter rows leave room for the actual ranking. */
[data-screen=rankings] .section-title{margin-bottom:6px}
[data-screen=rankings] h2{font-size:21px;margin:5px 0}
[data-screen=rankings] .tabs{margin:4px 0;padding:3px 0;gap:5px}
[data-screen=rankings] button{min-height:34px;padding:7px 12px;border-radius:9px;font-size:12px}
#personal-filters:not([hidden]){display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.2fr);gap:10px}
#personal-filters .tabs{overflow:visible;gap:2px}
#personal-filters button{flex:1;min-width:0;padding:7px 3px;font-size:11px}
#ranking-note{font-size:12px;line-height:1.4;margin:8px 0}
@media(min-width:640px){#personal-filters:not([hidden]){grid-template-columns:180px 240px}}
.focused-screen[data-view=rankings] [data-screen=rankings] .tabs{margin:2px 0;padding:2px 0}
.focused-screen [data-screen=rankings] .section-title .eyebrow{display:none}

button.rank-row{width:100%;text-align:left;border:0;border-bottom:1px solid #edf2f5;border-radius:0;background:transparent;color:inherit;font-weight:400;padding:18px 0}
button.rank-row:hover{background:#edf6fd}
body.profile-open{overflow:hidden}
.participant-dialog{box-sizing:border-box;width:min(720px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:22px;border:1px solid #d5e2eb;border-radius:20px;color:#19394c;background:#fff;overflow:auto}
.participant-dialog::backdrop{background:#12354899}
.participant-toolbar{display:flex;justify-content:space-between;gap:10px;position:sticky;top:-22px;background:white;padding:10px 0;z-index:1}
.participant-toolbar [data-profile-close]{margin-left:auto}
.participant-identity{display:flex;gap:16px;align-items:center;margin:18px 0}
.participant-avatar{width:68px;height:68px;object-fit:cover;border-radius:50%}
.participant-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
.participant-stats>div{padding:14px;background:#f1f7fb;border-radius:12px}
.participant-stats b{display:block;color:#075da4;font-size:23px}
.participant-members{display:grid;gap:8px}.participant-members button{text-align:left;display:flex;justify-content:space-between}
.participant-history{overflow:auto}.participant-history table{width:100%;border-collapse:collapse;font-size:13px}.participant-history th,.participant-history td{text-align:right;white-space:nowrap;padding:12px 7px;border-bottom:1px solid #e2ecf2}.participant-history th:first-child,.participant-history td:first-child{text-align:left}
#members{padding-left:0;list-style:none}#members button{margin:4px 0;text-align:left;width:100%}
@media(max-width:640px){.participant-dialog{padding:14px}.participant-toolbar{top:-14px}.participant-dialog h2{font-size:21px}.participant-dialog p{font-size:13px}.participant-stats b{font-size:20px}}

#goal-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;margin-top:18px}#goal-form input{width:100%}#goal-status{grid-column:1/-1;font-size:12px;margin:0}#goal-status:empty{display:none}@media(max-width:420px){#goal-form{grid-template-columns:1fr}#goal-form button{justify-self:start}}
/* Personal standings: readable identity and distance, points in a separate column. */
#ranking-list.personal-ranking{padding:8px;overflow:hidden}
button.person-rank{grid-template-columns:68px minmax(0,1fr) minmax(66px,auto);gap:14px;padding:18px 12px;border-radius:14px;min-height:112px}
.rank-portrait{position:relative;width:68px;height:68px;display:block;align-self:center}
.rank-avatar{width:68px;height:68px;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:#dceef3;color:#166478;font-size:23px;font-weight:700}
.rank-avatar img{width:100%;height:100%;object-fit:cover}
.rank-place{position:absolute;left:-5px;top:-9px;min-width:25px;height:25px;padding:0 5px;display:grid;place-items:center;border-radius:9px;background:#edf4fa;color:#35556b;border:2px solid white;font-size:12px;font-weight:700}
.person-rank:nth-child(1) .rank-place{background:#f7db89;color:#695319}.person-rank:nth-child(2) .rank-place{background:#dce6ef}.person-rank:nth-child(3) .rank-place{background:#eed3bd;color:#785131}
.rank-person{min-width:0;display:block}.person-rank .rank-person b{display:block;font-size:17px;line-height:1.3;overflow-wrap:anywhere}
.person-rank .rank-person small{font-size:12px;line-height:1.35;margin-top:4px;overflow-wrap:anywhere}
.rank-distance{display:block;margin-top:7px;font-weight:700;font-size:16px;color:#24465a}.rank-distance>span{font-size:13px;font-weight:400}
.rank-points{display:block;text-align:right;min-width:0}.person-rank .rank-points small{font-size:11px;margin:0 0 5px}.rank-points strong{display:block;color:#168792;font-size:22px;line-height:1.2;overflow-wrap:anywhere}
button.person-rank.is-me,button.person-rank.is-me:hover{background:#07519a;color:white}.person-rank.is-me .rank-person small,.person-rank.is-me .rank-points small{color:#d4e5f5}.person-rank.is-me .rank-distance{color:white}.person-rank.is-me .rank-points strong{color:#9fe2e7}
@media(max-width:640px){
 #ranking-list.personal-ranking{padding:5px;border-radius:16px}
 button.person-rank{grid-template-columns:46px minmax(0,1fr) max-content;gap:10px;padding:12px 9px;min-height:82px;border-radius:11px}
 .rank-portrait,.rank-avatar{width:46px;height:46px}.rank-avatar{font-size:17px}
 .rank-place{left:-4px;top:-6px;min-width:21px;height:21px;border-radius:7px;font-size:10px;padding:0 4px}
 .person-rank .rank-person b{font-size:14px;line-height:1.25}
 .person-rank .rank-person small{font-size:11px;margin-top:3px;line-height:1.25}
 .rank-distance{font-size:13px;margin-top:4px}.rank-distance>span{font-size:11px}
 .rank-points strong{font-size:16px;white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}
 .person-rank .rank-points small{font-size:10px;margin-bottom:3px}
 [data-screen=rankings] h2{font-size:19px}
 #ranking-note{font-size:11px;line-height:1.4;margin:7px 0}
}

#personal-filters:not([hidden]){display:block;max-width:360px}

.goal-help{font-size:13px;line-height:1.5;margin:12px 0;color:#436079}.goal-help summary{cursor:pointer;color:#07519a;font-weight:600}.goal-help ol{padding-left:20px}.goal-help li+li{margin-top:6px}.goal-help p{font-size:12px}.goal-reminder{margin:12px 0;padding:14px 16px;border:1px solid #cbe3f3;border-radius:16px;background:#edf7ff;color:#173b57;font-size:13px}.goal-reminder strong{font-size:15px}.goal-reminder p{margin:6px 0 10px;line-height:1.4}.goal-reminder>div{display:flex;flex-wrap:wrap;gap:8px}.goal-reminder button{font-size:12px;padding:9px 12px;min-height:40px}.goal-reminder #goal-reminder-dismiss{background:transparent;color:#436079;border:1px solid #cbe3f3}

/* Compact goal, reminder and profile panels for phone screens. */
@media(max-width:640px){
 .focused-screen main{padding:8px 12px 16px}.focused-screen main>p:first-child{font-size:12px;margin:4px 0 10px;line-height:1.35}
 [data-screen=home] .card{padding:14px;border-radius:16px;margin-bottom:12px}
 [data-screen=home] h2{font-size:18px;margin:7px 0}[data-screen=home] p{font-size:12px;line-height:1.45;margin:7px 0}
 [data-screen=home] .eyebrow{font-size:10px;letter-spacing:1px}[data-screen=home] .metric{gap:8px;margin:12px 0 9px}
 [data-screen=home] .metric strong{font-size:29px;letter-spacing:-.8px}[data-screen=home] .metric span{font-size:11px}
 [data-screen=home] progress{height:7px}[data-screen=home] small{font-size:11px}
 #goal-form{grid-template-columns:minmax(0,1fr) auto;gap:7px;margin-top:10px}#goal-form label{font-size:11px;gap:5px}#goal-form input{font-size:14px;padding:9px 10px;height:40px}#goal-form button{font-size:12px;padding:9px 11px;min-height:40px;justify-self:stretch}#goal-status{font-size:11px;line-height:1.4}
 .goal-help{font-size:12px;margin:6px 0}.goal-help summary{padding:6px 0}.goal-help ol{margin:6px 0;padding-left:17px}.goal-help p{font-size:11px}
 .goal-reminder{padding:10px 12px;margin:8px 0;border-radius:12px}.goal-reminder strong{font-size:13px}.goal-reminder p{font-size:11px;line-height:1.3;margin:3px 0 6px}.goal-reminder>div{gap:6px}.goal-reminder button{font-size:11px;padding:6px 10px;min-height:36px;border-radius:9px}
 .participant-dialog{padding:12px;width:calc(100% - 20px);border-radius:16px}.participant-toolbar{top:-12px;gap:8px;padding-bottom:6px}.participant-toolbar button{font-size:12px;min-height:40px;padding:7px 11px;border-radius:10px}
 .participant-identity{gap:10px;margin:10px 0}.participant-avatar{width:48px;height:48px;flex:0 0 48px}.participant-identity>div{min-width:0}
 .participant-dialog h2{font-size:17px;line-height:1.25;margin:5px 0;overflow-wrap:anywhere}.participant-dialog h3{font-size:15px;margin:12px 0 6px}.participant-dialog p{font-size:12px;line-height:1.4;margin:5px 0}
 .participant-stats{gap:7px;margin:9px 0}.participant-stats>div{padding:9px 10px;border-radius:10px}.participant-stats b{font-size:18px;font-variant-numeric:tabular-nums}.participant-stats small{font-size:11px;line-height:1.3}.participant-archive summary{font-size:12px}
 .participant-history table{font-size:11px}.participant-history th,.participant-history td{padding:8px 5px}
}

.participant-totals{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}.participant-totals>div{min-width:0}.participant-totals b{white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:640px){.participant-totals{gap:6px}.participant-totals>div{padding:9px 7px}.participant-totals b{font-size:16px;letter-spacing:-.35px}.participant-totals small{font-size:11px}}
@media(max-width:350px){.participant-totals>div{padding:8px 5px}.participant-totals b{font-size:14px}}
