@font-face{font-family:Field;src:url('fonts/fraunces.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{color-scheme:light;--bg:#f4efe7;--card:#fffdf9;--text:#2d3030;--muted:#666762;--line:#d9d2c7;--primary:#9a5948;--tint:#f4ebe6;--reference:#405f73;--ochre:#c49a58;--shadow:0 12px 40px #2d303006}
:root[data-theme=dark]{color-scheme:dark;--bg:#171e23;--card:#252e32;--text:#ece3d5;--muted:#b5bdbc;--line:#424e53;--primary:#d98b72;--tint:#3d3030;--reference:#91b2c8;--ochre:#dcb979;--shadow:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:15px;line-height:1.5}button,input,select{font:inherit}button,a,input,select,svg[tabindex]{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,svg:focus-visible{outline:3px solid var(--reference);outline-offset:3px}button,input,select{color:var(--text);border:1px solid var(--line);border-radius:9px;background:var(--card)}button{min-height:44px;padding:9px 15px;font-weight:600}button:hover{border-color:var(--primary)}a{color:var(--reference);text-underline-offset:4px}h1,h2,h3,p{margin:0}h1,h2{font-family:Field,Georgia,serif;font-weight:560;letter-spacing:-.025em}h1{font-size:32px;line-height:1.1}h2{font-size:28px;line-height:1.2}h3{font-size:14px;font-weight:600}input,select{min-height:44px;padding:9px 12px;min-width:0}input[type=search]{width:100%;background:var(--bg)}input[type=range]{width:100%;accent-color:var(--primary);padding:0;min-height:30px}header{height:90px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 30px;border-bottom:1px solid var(--line);background:var(--card)}.brand{display:flex;gap:13px;align-items:center}.brand img{width:55px;height:55px}.brand p{font-size:12px;color:var(--muted);margin-top:4px}.brand a{color:inherit;text-decoration:none}.toolbar{display:flex;gap:8px;align-items:center}.icon-btn{display:grid;place-items:center;width:44px;padding:10px}.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.shell{display:grid;grid-template-columns:294px minmax(0,1fr);max-width:1740px;margin:0 auto}.sidebar{padding:28px 20px 36px;border-right:1px solid var(--line);min-height:calc(100vh - 90px)}.primary{background:var(--primary);border-color:var(--primary);color:var(--bg)}[data-theme=dark] .primary{color:var(--bg)}.import-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:9px}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:24px 0 16px}.tabs button{border:0;background:transparent;color:var(--muted);padding:8px;flex:1;border-radius:0}.tabs button[aria-selected=true]{color:var(--primary);box-shadow:inset 0 -2px var(--primary)}.route-list{display:grid;gap:8px;margin-top:16px}.route-row{padding:13px 12px;text-align:left;background:transparent;display:block;width:100%;border-color:transparent}.route-row[aria-current=true]{background:var(--card);border-color:var(--line);box-shadow:var(--shadow)}.route-row strong{display:block;font-size:14px;overflow-wrap:anywhere;font-weight:650}.route-row .row-meta{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);margin-top:7px}.row-meta .icon{width:18px;height:18px;color:var(--primary)}.route-row small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.sidebar-foot{font-size:11px;color:var(--muted);margin-top:26px}.sidebar-empty{color:var(--muted);font-size:13px;padding:20px 5px}.workspace{padding:32px 38px 44px;min-width:0}.empty{display:grid;place-content:center;text-align:center;max-width:600px;min-height:66vh;margin:auto}.empty img{width:120px;margin:0 auto 24px}.eyebrow{text-transform:uppercase;font-size:10px;font-weight:650;letter-spacing:.16em;color:var(--muted);margin-bottom:12px}.empty h2{font-size:38px}.empty p{color:var(--muted);margin:15px auto 0;max-width:370px}.empty svg{width:100%;height:90px;color:var(--line);margin-top:35px}.route-heading{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:22px}.route-heading h2{overflow-wrap:anywhere}.route-heading time{color:var(--muted);font-size:12px;display:block;margin-top:6px}.heading-actions{display:flex;gap:7px;flex-shrink:0}.mode{display:inline-flex;align-items:center;gap:9px;border-radius:6px;font-size:12px;font-weight:600;color:var(--primary);padding:5px 9px;background:var(--tint);margin-bottom:12px}.mode select{border:0;color:var(--primary);min-height:32px;padding:2px 22px 2px 0;background:transparent;font-size:12px}.mode .icon{width:22px;height:22px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:var(--card);border:1px solid var(--line);border-radius:12px;padding:22px 0;margin-bottom:22px;box-shadow:var(--shadow)}.metric{padding:0 23px;border-right:1px solid var(--line)}.metric:last-child{border:0}.metric dt{font-size:10px;letter-spacing:.06em;color:var(--muted);margin-bottom:5px}.metric dd{margin:0;display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;font-size:26px;font-weight:550;letter-spacing:-.025em;font-variant-numeric:tabular-nums}.metric dd small{font-size:12px;color:var(--muted);letter-spacing:0}.metric-hint{font-size:11px;color:var(--muted);margin-top:3px}.analysis{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:20px;align-items:start}.panel,.profile{background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:var(--shadow)}.map-head{padding:13px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px}.map-head select{font-size:11px;min-height:36px;max-width:190px;padding:4px 8px}.map{height:404px;background:var(--tint);isolation:isolate}.leaflet-container{font-family:inherit;background:var(--tint)}.leaflet-control-attribution a{color:#513c37}.leaflet-control-zoom a{color:#2d3030}.map-footer{padding:12px 14px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}.map-footer button{font-size:12px;min-height:40px;padding:7px 10px}.legend{display:flex;gap:15px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin:13px 1px}.legend span{display:inline-flex;align-items:center;gap:6px}.legend span:before{content:'';width:17px;height:3px;background:var(--primary);border-radius:2px}.legend .ref:before{background:var(--reference)}.ref-name{font-size:11px;color:var(--reference);overflow-wrap:anywhere}.profiles{display:grid;gap:12px}.profile-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px 0}.profile-head output{font-variant-numeric:tabular-nums;font-size:12px;color:var(--primary)}.profile svg{display:block;width:100%;height:auto;touch-action:pan-y}.grid{stroke:var(--line);stroke-width:1}.axis{fill:var(--muted);font:11px system-ui}.recorded-line{stroke:var(--primary);stroke-width:2.3;fill:none;stroke-linejoin:round}.reference-line{stroke:var(--reference);stroke-width:5;stroke-opacity:.48;fill:none;stroke-linejoin:round}.mean-line{stroke:var(--reference);stroke-width:1.5;stroke-dasharray:6 4}.mean-label{fill:var(--reference);font:600 11px system-ui;paint-order:stroke;stroke:var(--card);stroke-width:4px}.empty-chart{fill:var(--muted);font:12px system-ui}.marker-line{stroke:var(--ochre);stroke-width:1}.marker{fill:var(--ochre);stroke:var(--card);stroke-width:2}.pause-line{stroke:var(--reference);stroke-width:5}.pause-label{fill:var(--reference);font:600 13px system-ui}.range-panel{margin-top:20px;padding:17px 20px}.range-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.range-top button{font-size:11px;min-height:36px;padding:5px 10px}.range-top output{font-size:13px;font-variant-numeric:tabular-nums}.pause-summary,.profile-note{font-size:11px;color:var(--muted);margin-top:12px}.bottom-actions{display:flex;gap:12px;justify-content:space-between;margin-top:22px;align-items:center}.bottom-actions button{display:flex;align-items:center;gap:8px}.danger{color:var(--primary);background:transparent;font-size:12px}.selection-detail{font-size:12px;color:var(--primary);margin:12px 0 0;font-variant-numeric:tabular-nums}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}dialog{border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--text);width:min(480px,calc(100% - 32px));padding:26px;box-shadow:0 30px 100px #0004}dialog::backdrop{background:#201a1b80;backdrop-filter:blur(3px)}dialog h2{font-size:26px;margin-bottom:18px}dialog p{font-size:14px;margin:12px 0;color:var(--muted)}dialog label{display:block;margin-bottom:15px;font-size:13px}dialog select,dialog input{display:block;width:100%;margin-top:7px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.text-button{color:var(--primary);background:transparent;border-color:transparent;text-align:left;padding:4px 0}#notice{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:var(--text);color:var(--bg);font-size:13px;border-radius:8px;padding:10px 18px;z-index:1500;box-shadow:0 4px 30px #0002;pointer-events:none;max-width:calc(100% - 32px);width:max-content}#notice:empty{display:none}body[data-empty=true] .workspace{padding-top:10px}
@media(min-width:1600px){.map{height:470px}.profile svg{max-height:205px}}
@media(max-width:1150px){.shell{grid-template-columns:250px minmax(0,1fr)}.workspace{padding:28px 24px}.analysis{grid-template-columns:1fr}.map{height:340px}.profiles{grid-template-columns:1fr}.metric{padding:0 14px}.metric dd{font-size:23px}.profile svg{max-height:215px}}
@media(max-width:700px){header{height:78px;padding:12px 17px}.brand img{width:46px;height:46px}h1{font-size:27px}.shell{display:block}.sidebar{padding:18px 17px;min-height:0;border-right:0;border-bottom:1px solid var(--line)}.tabs{margin:14px 0 12px}.route-list{display:flex;overflow-x:auto;scroll-snap-type:x proximity;gap:8px;margin-top:12px;padding-bottom:4px}.route-row{min-width:220px;max-width:250px;scroll-snap-align:start}.sidebar-foot{margin-top:10px;font-size:10px}.sidebar-empty{padding:8px 3px}.workspace{padding:22px 17px 36px}.route-heading{margin-bottom:16px;gap:8px}h2{font-size:25px}.heading-actions{gap:5px}.icon-btn{width:42px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 0;padding:18px 0;margin-bottom:18px}.metric:nth-child(2){border-right:0}.metric dd{font-size:25px}.metric dt{font-size:10px}.analysis{gap:16px}.map{height:300px}.map-head{padding:11px 12px}.map-head select{max-width:165px}.empty{min-height:46vh}.empty img{width:100px;margin-bottom:18px}.empty h2{font-size:31px}.empty p{font-size:14px}.empty svg{height:50px;margin-top:22px}.range-panel{padding:14px}.bottom-actions{gap:8px}.bottom-actions button{font-size:12px}.profile svg{min-height:160px}.brand p{font-size:11px}.mode{margin-bottom:10px}.profile-head{padding-top:12px}.profile-head h3{font-size:13px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.route-heading>div:first-child{min-width:0;flex:1}.mode{max-width:100%}.mode select{max-width:150px;width:100%;min-width:0}
@media(max-width:700px){.profile svg{min-height:0}.range-top{flex-wrap:wrap;gap:8px}.range-top output{font-size:12px}.map-head select{max-width:160px}}

.route-endpoint{background:none;border:0;font-size:23px;line-height:28px;text-shadow:0 0 2px white,0 0 3px white;color:var(--primary)}.route-endpoint span{color:var(--endpoint)}.endpoint-label{font-family:inherit;font-size:11px;font-weight:600;padding:3px 6px;border:1px solid var(--line);background:var(--card);color:var(--text);box-shadow:none}.endpoint-label:before{display:none}

.settings-header{justify-content:flex-start;background:var(--bg)}.settings-header h1{font-size:28px}.settings-page{max-width:748px;padding:22px 24px 48px;margin:auto}.setting{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 0;border-bottom:1px solid var(--line)}.setting>label,.setting>span{font-weight:600}.setting select{max-width:60%;min-width:150px}.segmented{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--card)}.segmented button{display:flex;align-items:center;justify-content:center;gap:7px;border-color:transparent;background:transparent;color:var(--muted);padding:7px 12px}.segmented button[aria-pressed=true]{background:var(--primary);color:var(--bg)}.settings-about{padding-top:32px}.settings-about>img{display:block;width:88px;height:88px;margin-bottom:20px}.settings-about h2{margin-bottom:16px}.settings-about p{margin:0 0 16px;max-width:62ch}.settings-about .version{color:var(--muted);font-size:12px}.settings-credits{border-top:1px solid var(--line);padding-top:20px;margin-top:24px;color:var(--muted);font-size:12px}.settings-credits p{margin-bottom:12px}.settings-credits a{display:inline-block;min-height:32px;padding:4px 0}.settings-credits .signature{font-size:15px;font-weight:600}
@media(max-width:450px){.settings-page{padding:12px 20px 32px}.setting{gap:12px;flex-wrap:wrap}.setting select{min-width:140px}.segmented button{padding:7px 10px}.settings-header h1{font-size:26px}}

.settings-credits .umbrella{font-size:15px;color:var(--text);margin:20px 0 0}
.follow-page{max-width:1100px;margin:auto;padding:24px}.follow-tools{display:flex;gap:16px;justify-content:flex-end;margin-bottom:24px}.follow-tools label{display:flex;gap:8px;align-items:center;font-size:12px}.follow-demo{color:var(--text);background:var(--tint);padding:10px 14px;border-radius:8px;margin-bottom:20px;font-weight:600}.follow-page h2{margin-bottom:12px}.follow-facts{display:grid;grid-template-columns:1fr 1fr auto;gap:20px;margin:24px 0}.follow-facts dt{font-size:12px;color:var(--muted)}.follow-facts dd{margin:4px 0 0;font-variant-numeric:tabular-nums}.follow-map{height:480px}.follow-facts .old-position{color:var(--primary);font-weight:600}.follow-project{margin-top:24px;font-size:13px}#follow-status{min-height:24px}@media(max-width:700px){.follow-page{padding:20px 17px}.follow-tools{justify-content:flex-start;flex-wrap:wrap;gap:12px}.follow-facts{grid-template-columns:1fr;gap:14px}.follow-map{height:370px}.follow-tools select{max-width:155px}}

.follow-page .legend .position:before{width:9px;height:9px;border-radius:50%;box-shadow:0 0 0 2px var(--card)}.follow-page .profile svg{max-height:280px}.follow-page .profile-head{padding-top:16px}

.interval-slider{margin-top:12px;touch-action:none;user-select:none;-webkit-user-select:none}.interval-rail{position:relative;height:52px;margin:0 22px}.interval-rail:before{content:'';position:absolute;top:23px;left:0;right:0;height:6px;border-radius:3px;background:var(--line)}.interval-window{position:absolute;top:0;height:52px;cursor:grab}.interval-window:before{content:'';position:absolute;top:16px;left:0;right:0;height:20px;border-radius:6px;background:var(--primary);opacity:.22}.interval-window:after{content:'';position:absolute;left:50%;top:22px;width:12px;height:8px;transform:translateX(-50%);border-left:2px solid var(--primary);border-right:2px solid var(--primary);background:linear-gradient(to right,transparent 4px,var(--primary) 4px,var(--primary) 6px,transparent 6px)}.interval-handle{position:absolute;top:0;width:44px;height:52px;transform:translateX(-50%);cursor:ew-resize;z-index:1}.interval-handle:before{content:'';position:absolute;left:15px;top:10px;width:14px;height:32px;border-radius:5px;background:var(--primary);box-shadow:0 0 0 2px var(--card)}.interval-handle:after{content:'';position:absolute;left:21px;top:21px;width:2px;height:10px;background:var(--bg);border-radius:1px}.interval-slider [role=slider]:focus-visible{outline:2px solid var(--reference);outline-offset:1px;border-radius:7px}.interval-slider[data-compact=true] .interval-window:after{display:none}.interval-slider[data-dragging=window] .interval-window{cursor:grabbing}.interval-slider[data-dragging=from] #from,.interval-slider[data-dragging=to] #to{filter:brightness(.9)}

.route-list-title{font:600 12px system-ui;color:var(--muted);letter-spacing:.02em;margin:25px 0 12px}.analysis-elevation{display:block}.analysis-elevation .profiles{margin-top:15px}.analysis-elevation .map{height:420px}.analysis-elevation .selection-detail{margin-bottom:10px}@media(max-width:700px){.route-list-title{margin-top:20px}.analysis-elevation .map{height:320px}}
