@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap";:root{--ink:#293e35;--muted:#81887d;--line:#e6e8df;--paper:#fbfcf7;--lime:#e1efac}*{box-sizing:border-box}body{color:var(--ink);background:var(--paper);margin:0;font-family:DM Sans,sans-serif;font-size:13px}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.38;cursor:not-allowed}:is(button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible){outline-offset:3px;outline:2px solid #648363}button{transition:background .15s,opacity .15s}a{color:inherit;text-decoration:none}svg{flex-shrink:0}button{background:0 0;border:0}h1,h2,h3,p{margin:0}.app{flex-direction:column;height:100dvh;display:flex;overflow:hidden}.topbar{border-bottom:1px solid var(--line);z-index:900;background:#fff;flex-shrink:0;justify-content:space-between;align-items:center;gap:20px;height:76px;padding:0 25px;display:flex}.brand{letter-spacing:-1px;align-items:center;font-family:Manrope,sans-serif;font-size:24px;font-weight:800;display:flex}.brand-light{font-weight:450}.brand-symbol{background:var(--ink);color:var(--lime);border-radius:11px;place-items:center;width:37px;height:37px;margin-right:10px;display:grid}.beta{letter-spacing:1.5px;border:1px solid #dce3d4;border-radius:4px;margin-left:14px;padding:4px 5px;font-family:DM Sans,sans-serif;font-size:8px;font-weight:650}.top-center{color:var(--muted);align-items:center;gap:7px;font-size:11px;display:flex}.status-dot{background:#6b8b5b;border-radius:50%;flex-shrink:0;width:6px;height:6px;display:inline-block}.top-actions{align-items:center;gap:10px;display:flex}.button{white-space:nowrap;border-radius:7px;justify-content:center;align-items:center;gap:8px;min-height:39px;padding:10px 14px;font-size:12px;font-weight:600;display:inline-flex}.primary{background:var(--ink);color:#f5f7e9}.primary:hover{background:#3d5849}.secondary{background:#fff;border:1px solid #dce1d6}.secondary:hover{background:#f2f5e9}.full{width:100%}.icon-button{color:#7a8478;border-radius:6px;justify-content:center;align-items:center;width:30px;height:30px;display:inline-flex}.icon-button:hover{background:#eff2e8}.small{width:24px;height:24px}.workspace{flex:1;grid-template-columns:286px minmax(0,1fr) 290px;min-height:0;display:grid}.sidebar,.builder{background:var(--paper);z-index:500;flex-direction:column;min-height:0;display:flex}.sidebar{border-right:1px solid var(--line)}.sidebar-heading{padding:29px 24px 25px}.eyebrow{letter-spacing:1.65px;color:#7b8675;font-size:9px;font-weight:700}.sidebar h1{letter-spacing:-1px;margin:12px 0;font-family:Manrope,sans-serif;font-size:27px;line-height:1.3}.sidebar-heading p{color:#899080;font-size:12px;line-height:1.75}.source-header{justify-content:space-between;align-items:center;padding:0 20px 9px;display:flex}.source-header h2{align-items:center;gap:9px;font-size:12px;font-weight:650;display:flex}.count{background:#e9eddf;border-radius:5px;padding:2px 5px;font-size:10px}.source-list{min-height:100px;max-height:40%;padding:0 16px;overflow-y:auto}.track-card{border:1px solid var(--line);background:#fff;border-radius:8px;margin-bottom:8px;padding:11px 10px}.track-card:hover{border-color:#bdcab1}.track-title{align-items:center;gap:7px;display:flex}.track-dot{border-radius:50%;flex-shrink:0;width:9px;height:9px;display:inline-block}.track-name{text-align:left;text-overflow:ellipsis;white-space:nowrap;flex:1;padding:0;font-size:11px;font-weight:600;overflow:hidden}.track-meta{color:#899080;align-items:center;gap:14px;margin:6px 0 0 16px;font-size:10px;display:flex}.remove-track{color:#a7aea2;margin-left:auto;display:flex}.muted{opacity:.45}.source-tools{padding:14px 17px 22px}.source-tools p{color:#899080;text-align:center;margin-top:9px;font-size:9px}.key-hint{margin-left:auto}.map-layers{border-top:1px solid var(--line);padding:21px 24px}.map-layers button{justify-content:space-between;align-items:center;width:100%;padding:9px 0;font-size:11px;display:flex}.map-layers button>span:first-child{align-items:center;gap:9px;display:flex}.map-layers small{color:#8e9689;background:#edf0e7;border-radius:3px;padding:2px 4px;font-size:8px}.toggle{background:#d9dfd0;border-radius:20px;width:25px;height:14px;padding:2px}.toggle:before{content:"";background:#fff;border-radius:50%;width:10px;height:10px;display:block;box-shadow:0 1px 2px #0002}.toggle.on{background:#7c9567}.toggle.on:before{transform:translate(11px)}.surface-legend{flex-wrap:wrap;gap:8px;font-size:9px;display:flex}.surface-legend small{width:100%}.sidebar-footer{border-top:1px solid var(--line);margin-top:auto;padding:15px 22px}.sidebar-footer>button{justify-content:space-between;align-items:center;width:100%;padding:6px 0;font-size:10px;font-weight:600;display:flex}.sidebar-footer>div{color:#899080;align-items:center;gap:9px;margin:8px 0;font-size:10px;display:flex}.sidebar-footer>div button{padding:0}.sidebar-footer small{color:#9ca294;font-size:9px}.map-area{background:#e9eddf;min-width:0;position:relative}#map{z-index:0;width:100%;height:100%}.leaflet-container{background:#e9eddf;font-family:DM Sans,sans-serif}.leaflet-tile-pane{filter:saturate(.68)}.map-top{pointer-events:none;z-index:400;justify-content:space-between;align-items:center;display:flex;position:absolute;top:20px;left:20px;right:20px}.map-label{letter-spacing:.7px;background:#fffffff2;border:1px solid #e6e8df;border-radius:6px;align-items:center;gap:8px;padding:11px 13px;font-size:9px;display:flex;box-shadow:0 2px 8px #293e3510}.map-label>span:not(.status-dot){color:#c1c8b8}.floating-button{pointer-events:auto;background:#fff;border:1px solid #dde1d5;border-radius:7px;place-items:center;width:37px;height:37px;display:grid;box-shadow:0 2px 9px #293e3510}.map-toolbar{z-index:400;background:#fff;border-radius:10px;gap:3px;padding:5px;display:flex;position:absolute;top:77px;left:50%;transform:translate(-50%);box-shadow:0 3px 14px #263b3520}.map-toolbar button{color:#71806e;border-radius:6px;align-items:center;gap:6px;padding:10px 12px;font-size:11px;font-weight:550;display:flex}.map-toolbar button.active{color:#324d37;background:#eaf0dc}.map-toolbar button:hover{background:#f3f5ed}.toolbar-divider{background:var(--line);width:1px;margin:6px 3px}.welcome-card{z-index:400;background:#fffffff7;border:1px solid #dce3d5;border-radius:13px;width:360px;max-width:calc(100% - 44px);padding:30px;position:absolute;top:46%;left:50%;transform:translate(-50%,-50%);box-shadow:0 15px 70px #233b3520}.welcome-card h2{letter-spacing:-1px;margin:12px 0;font-family:Manrope,sans-serif;font-size:25px}.welcome-card p{color:#7b8675;margin-bottom:20px;font-size:12px;line-height:1.8}.welcome-card>span{color:#98a08e;margin-top:15px;font-size:9px;display:block}.mode-hint{z-index:410;background:#fff;border-radius:7px;align-items:center;gap:10px;width:max-content;max-width:calc(100% - 30px);padding:12px 14px;font-size:11px;display:flex;position:absolute;top:140px;left:50%;transform:translate(-50%);box-shadow:0 3px 12px #293e3515}.mode-hint button{background:#eaf0dc;border-radius:4px;padding:6px;font-size:10px;font-weight:700}.drawing{flex-wrap:wrap;width:440px}.section-card{z-index:410;background:#fff;border-radius:10px;width:275px;max-width:calc(100% - 90px);padding:15px 18px;position:absolute;bottom:65px;left:22px;box-shadow:0 7px 30px #293e3530}.section-card-top{justify-content:space-between;align-items:center;display:flex}.section-card h3{align-items:center;gap:8px;margin:4px 0 9px;font-size:14px;display:flex}.section-card p{color:#899080;margin-bottom:14px;font-size:10px;line-height:1.6}.section-card p span{margin:0 6px}.map-bottom-note{white-space:nowrap;z-index:400;background:#fffef9e8;border-radius:20px;padding:8px 12px;font-size:9px;position:absolute;bottom:29px;left:50%;transform:translate(-50%);box-shadow:0 2px 8px #293e3510}.junction-dot{background:#fff;border:2px solid #486046;border-radius:50%;width:7px;height:7px;margin-right:5px;display:inline-block}.route-marker{font-variant-numeric:tabular-nums;background:0 0;border:0;font-size:12px;font-weight:700;line-height:1}.waypoint-marker{color:#3f5841;background:#fff;border:1px solid #bcc7b0;border-radius:6px;place-items:center;font-size:20px;display:grid;box-shadow:0 2px 7px #293e3525}.builder{border-left:1px solid var(--line)}.builder-heading{padding:29px 23px 20px}.builder-heading h2{letter-spacing:-.8px;justify-content:space-between;align-items:center;margin:10px 0 15px;font-family:Manrope,sans-serif;font-size:23px;display:flex}.route-count{background:#e8eddc;border-radius:6px;padding:5px 8px;font-family:DM Sans,sans-serif;font-size:11px}.builder-heading input{color:#62715d;background:#fff;border:1px solid #dde2d4;border-radius:6px;width:100%;padding:11px 12px;font-size:11px}.stats{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#f5f7ed;grid-template-columns:1fr 1fr;gap:17px;padding:19px 23px;display:grid}.stats>div+div{border-left:1px solid #e0e5d5;padding-left:18px}.stats strong{letter-spacing:-.6px;font-family:Manrope,sans-serif;font-size:23px;font-weight:650;display:block}.stats strong small{color:#8a967d;letter-spacing:0;font-size:11px;font-weight:500}.stats span{color:#929a87;margin-top:4px;font-size:9px;display:block}.route-list{flex:1;min-height:0;padding:18px;overflow-y:auto}.route-empty{text-align:center;padding-top:24px}.empty-route-icon{color:#92a571;background:#f0f4e6;border:1px dashed #cdd7ba;border-radius:50%;place-items:center;width:63px;height:63px;margin:0 auto 19px;display:grid}.route-empty h3{margin-bottom:8px;font-size:14px}.route-empty p{color:#949c89;margin-bottom:30px;font-size:11px;line-height:1.8}.step{text-align:left;color:#8c967e;align-items:center;gap:10px;margin:15px 7px;font-size:10px;display:flex}.step>span{color:#9ba68b;background:#edf1e3;border-radius:50%;place-items:center;width:21px;height:21px;font-size:9px;display:grid}.route-piece{background:#fff;border:1px solid #dfe5d4;border-radius:8px;margin-bottom:10px;padding:12px}.piece-line{align-items:flex-start;gap:8px;display:flex}.piece-number{font-variant-numeric:tabular-nums;background:#e9f0d6;border-radius:50%;flex-shrink:0;place-items:center;width:24px;height:24px;font-size:12px;font-weight:700;line-height:1;display:grid}.piece-line strong{font-size:11px;display:block}.piece-line small{color:#8b9681;margin-top:4px;font-size:10px;display:block}.piece-controls{border-top:1px solid #edf0e8;justify-content:flex-end;gap:9px;margin-top:10px;padding-top:8px;display:flex}.piece-controls button{color:#7b896f;align-items:center;gap:3px;padding:2px;font-size:9px;display:flex}.gap-warning{color:#b45f38;margin-top:9px;font-size:10px;line-height:1.6}.builder-bottom{border-top:1px solid var(--line);padding:16px 20px}.builder-bottom>.gap-warning{margin:0 0 12px}.tip{color:#7e8b67;background:#eef3df;border-radius:7px;align-items:center;gap:12px;margin-top:15px;padding:15px 12px;display:flex}.tip>span{font-size:30px;font-weight:400}.tip p{font-size:9px;line-height:1.8}.tip strong{color:#5e704c;font-weight:500}.dropzone{color:#73865e;background:#f4f7ec;border:1px dashed #c6d2b7;border-radius:8px;flex-direction:column;align-items:center;gap:10px;width:100%;padding:26px 9px;display:flex}.dropzone strong{font-size:12px;font-weight:600}.dropzone span{color:#929f82;font-size:9px}.toast{z-index:450;white-space:pre-line;background:#fff;border:1px solid #d4deca;border-radius:9px;align-items:center;gap:15px;width:max-content;max-width:calc(100% - 32px);max-height:min(230px,100% - 80px);padding:13px 12px 13px 18px;font-size:12px;line-height:1.6;display:flex;position:absolute;bottom:56px;left:50%;overflow:auto;transform:translate(-50%);box-shadow:0 8px 30px #19332620}.modal-backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:1800;background:#20372b60;grid-template-columns:minmax(0,1fr);place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal{background:var(--paper);border-radius:15px;width:500px;max-width:100%;max-height:90dvh;padding:26px 32px 32px;overflow:auto;box-shadow:0 15px 80px #18342640}.modal-title{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.modal h2{letter-spacing:-1px;margin-bottom:12px;font-family:Manrope,sans-serif;font-size:25px;line-height:1.35}.modal>p{color:#859177;margin-bottom:21px;font-size:12px;line-height:1.8}.modal .dropzone{margin:24px 0}.input-label{align-items:center;gap:7px;margin-bottom:9px;font-size:11px;font-weight:600;display:flex}textarea{resize:vertical;color:#4a6143;background:#fff;border:1px solid #dbe1d3;border-radius:7px;width:100%;padding:11px;font-size:11px;line-height:1.9}.modal .fine-print{color:#909b84;margin:10px 0 20px;font-size:10px}.help-steps{color:#7b876e;padding-left:20px;font-size:12px;line-height:1.8}.help-steps li{margin-bottom:15px}.help-steps strong{color:var(--ink)}.leaflet-control-attribution{font-size:9px!important}.leaflet-control-zoom{border:1px solid #dde2d3!important;box-shadow:0 3px 10px #293e3510!important}.leaflet-control-zoom a{color:#566b4e!important}.leaflet-bottom.leaflet-right{bottom:20px;right:10px}@media (min-width:1600px){.workspace{grid-template-columns:310px minmax(0,1fr) 315px}.sidebar-heading{padding:35px 28px}.sidebar h1{font-size:30px}}@media (max-width:1150px){.workspace{grid-template-columns:245px minmax(0,1fr) 250px}.top-center{display:none}.sidebar-heading{padding:24px 20px 20px}.sidebar h1{font-size:24px}.beta{display:none}.builder-heading{padding:25px 19px 20px}.map-label{font-size:8px}.map-toolbar button{padding:9px}.map-bottom-note{font-size:8px}}@media (max-width:850px){.workspace{grid-template-columns:220px minmax(0,1fr)}.builder{border:1px solid #dce2d4;border-radius:10px;width:250px;max-height:40vh;position:absolute;bottom:37px;right:12px;box-shadow:0 8px 20px #293e3520}.builder-heading{padding:12px}.builder-heading>.eyebrow,.builder-bottom,.route-empty .step,.route-empty p,.route-empty .empty-route-icon{display:none}.builder-heading h2{margin:0 0 9px;font-size:17px}.stats{padding:10px 15px}.stats strong{font-size:17px}.route-list{min-height:40px;padding:10px}.route-empty{padding:5px}.route-empty h3{color:#8a957d;margin:0;font-size:11px}.section-card{top:145px;bottom:auto;left:15px}.map-bottom-note{display:none}.topbar{padding:0 15px}.brand{font-size:22px}.top-actions{gap:5px}.top-actions .button{padding:9px;font-size:10px}.map-label{display:none}.map-top{justify-content:flex-end}.map-toolbar{top:20px;left:15px;transform:none}.mode-hint{top:75px}}@media (max-width:600px){.topbar{gap:10px;height:65px;padding:0 10px}.brand{font-size:18px}.brand-symbol{width:30px;height:30px;margin-right:6px}.brand-symbol svg{width:21px}.top-actions>.icon-button{display:none}.top-actions .button{gap:0;width:33px;padding:8px;font-size:0}.top-actions .primary{gap:4px;width:auto;font-size:10px}.workspace{grid-template-rows:180px minmax(0,1fr);grid-template-columns:1fr}.sidebar{border-bottom:1px solid var(--line);padding:10px 12px;display:block;position:relative;overflow-y:auto}.sidebar-heading,.map-layers,.sidebar-footer,.source-tools p{display:none}.source-header{padding:0 0 6px}.source-list{gap:8px;min-height:65px;max-height:none;padding:0;display:flex;overflow-x:auto}.track-card{flex-shrink:0;width:185px;min-width:185px;margin:0;padding:8px}.source-list .dropzone{gap:3px;padding:10px}.source-list .dropzone svg{display:none}.source-tools{padding:8px 0 0}.source-tools .button{min-height:30px;padding:7px;font-size:10px}.builder{width:210px;max-height:30vh;bottom:27px;right:8px}.builder-heading input{padding:6px}.builder-heading{padding:9px}.stats{padding:7px 10px}.stats strong{font-size:15px}.route-list{padding:8px}.map-toolbar button{padding:8px;font-size:10px}.map-toolbar{top:10px;left:10px}.map-top{top:10px;right:10px}.floating-button{width:32px;height:32px}.welcome-card{width:300px;padding:21px;top:33%}.welcome-card h2{font-size:22px}.welcome-card p{margin-bottom:12px;font-size:11px}.welcome-card>span{display:none}.welcome-card .eyebrow{font-size:8px}.section-card{width:250px;max-width:calc(100% - 25px);top:64px}.mode-hint{font-size:10px;top:65px}.toast{max-width:calc(100% - 24px);font-size:11px}.modal{padding:20px}.modal h2{font-size:23px}}.source-header{padding-top:22px}@media (max-width:600px){.source-header{padding-top:0}.sidebar .source-list{max-height:none}}.endpoint-option{color:#68765f;cursor:pointer;align-items:center;gap:6px;margin-top:10px;font-size:10px;display:flex}.endpoint-option input{accent-color:#385c48;margin:0}.map-top,.modal-title{justify-content:flex-end}.overlap-option{color:#68765f;justify-content:space-between;align-items:center;margin-top:12px;font-size:11px;display:flex}.overlap-option select,.shared-source select{color:#3f5540;font:inherit;background:#fff;border:1px solid #d9decf;border-radius:5px;padding:5px}.shared-list{border-top:1px solid var(--line);flex-shrink:1;min-height:0;max-height:210px;padding:10px 17px 16px;overflow-y:auto}.shared-list h2{align-items:center;gap:8px;margin:3px 0 10px;font-size:12px;display:flex}.shared-list>button{text-align:left;background:#fcfaff;border:1px solid #e2d9eb;border-radius:6px;width:100%;margin-bottom:7px;padding:9px;display:block}.shared-list>button.selected{background:#f1eafa;border-color:#7750ab}.shared-list strong{justify-content:space-between;gap:8px;font-size:11px;display:flex}.shared-list strong span{white-space:nowrap;font-weight:400}.shared-list small{color:#83728f;margin-top:5px;font-size:10px;line-height:1.5;display:block}.shared-source{color:#7c8873;margin-bottom:11px;font-size:10px;display:block}.shared-source select{width:100%;margin-top:5px;display:block}.source-list{flex-shrink:1}.sidebar .source-list{max-height:38%}@media (max-width:600px){.sidebar .source-list{max-height:none}.shared-list{max-height:150px}.overlap-option{margin-top:8px}}.analysis-status{color:#68765f;justify-content:space-between;align-items:center;min-height:18px;font-size:11px;display:flex}.analysis-status button{font-weight:650;text-decoration:underline}.source-tools{flex-shrink:0;padding:10px 17px 14px}.sidebar .source-list{min-height:75px;max-height:25%}.map-layers{flex-shrink:0;padding:10px 20px}.map-layers .eyebrow{margin-bottom:4px}.sidebar-footer{flex-shrink:0;padding:8px 20px}.route-marker span{color:#fff;white-space:nowrap;border:2px solid #fff;border-radius:50%;place-items:center;width:100%;height:100%;padding:0 2px;display:grid}@media (max-width:600px){.sidebar .source-list{max-height:none}.source-tools{padding:8px 0}}@media (min-width:601px){.source-header{padding:12px 17px 8px}.sidebar .source-list{max-height:22%}.map-layers .eyebrow{display:none}.map-layers{padding:7px 17px}.map-layers button{padding:7px 0}.sidebar-footer>div{margin:5px 0}.source-tools{padding-bottom:10px}.overlap-option{margin-top:8px}}.source-actions{align-items:center;gap:2px;display:flex}.clear-dialog{border:1px solid var(--line);color:var(--ink)}.clear-dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#20372b60}.clear-actions{justify-content:flex-end;gap:10px;display:flex}.bus-stop-marker span{color:#fff;border:2px solid #fff;border-radius:5px;place-items:center;width:26px;height:26px;font-size:13px;font-weight:800;display:grid;box-shadow:0 2px 6px #0005}.bus-legend-icon{color:#fff;border-radius:4px;place-items:center;width:18px;height:18px;font-size:10px;font-weight:700;display:inline-grid}.bus-layer-note{color:#7a8478;justify-content:space-between;align-items:center;gap:8px;font-size:9px;display:flex}.map-layers .bus-layer-note button{width:auto;padding:6px 0;font-size:9px;text-decoration:underline}.bus-stop-popup strong{font-size:13px;display:block}.bus-stop-popup p{font-size:11px;margin:6px 0!important}.bus-stop-popup a{font-size:11px;text-decoration:underline}.bus-stop-popup small{color:#71806e;margin-top:10px;font-size:9px;line-height:1.5;display:block}@media (max-width:600px){.sidebar .map-layers{border-top:1px solid var(--line);padding:6px 0;display:block}}.bus-state-filter{border:1px solid var(--line);background:#fff;border-radius:6px;margin:5px 0;font-size:10px}.bus-state-filter summary{cursor:pointer;padding:8px;font-weight:600}.bus-state-filter summary span{float:right;color:#7a8478;font-weight:400}.bus-state-filter fieldset{border:0;margin:0;padding:0 8px 10px}.bus-state-actions{gap:14px;display:flex}.map-layers .bus-state-actions button{width:auto;padding:3px 0 9px;font-size:10px;text-decoration:underline}.bus-state-grid{grid-template-columns:1fr 1fr;gap:9px 6px;display:grid}.bus-state-grid label{cursor:pointer;align-items:center;gap:5px;font-size:10px;display:flex}.bus-state-grid input{accent-color:#385c48;margin:0}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (min-width:601px){.map-layers{flex-shrink:0;min-height:90px}}.source-resolution{color:#71806e;margin-top:6px;font-size:10px;line-height:1.5;display:block}.project-actions{align-items:center;gap:6px;display:flex}.project-actions .button{padding:10px 11px}.topbar{gap:12px}@media (max-width:1150px){.top-center{display:none}}@media (max-width:950px){.topbar{flex-wrap:wrap;gap:8px;height:auto;min-height:76px;padding:10px 15px}.brand{order:1}.top-actions{order:2;margin-left:auto}.project-actions{flex-basis:100%;order:3}.project-actions .button{flex:1}}@media (max-width:600px){.topbar{padding:8px 10px}.project-actions .button{min-height:34px;padding:8px 6px;font-size:11px}.project-actions .button svg{display:none}}.save-error{color:#9c4e2e;font-size:11px}@media (max-width:950px){.save-error{flex-basis:100%;order:4}}@media (min-width:601px){.sidebar .source-list{max-height:55%}}.route-piece{position:relative}.route-drag-handle{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;color:#7a8478;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;width:16px;min-height:24px;padding:0;display:inline-flex}.route-drag-handle:hover{background:#e9eddf}.route-drag-handle:active{cursor:grabbing}.route-piece.dragging{opacity:.45}.route-piece.drop-before:before,.route-piece.drop-after:after{content:"";pointer-events:none;background:#46684b;border-radius:2px;height:3px;position:absolute;left:0;right:0}.route-piece.drop-before:before{top:-5px}.route-piece.drop-after:after{bottom:-5px}.piece-line>div{min-width:0}.piece-line strong{overflow-wrap:anywhere}.route-piece-select{text-align:left;border-radius:4px;flex:1;align-items:flex-start;gap:10px;min-width:0;padding:0;display:flex}.route-piece-select>div{flex:1;min-width:0}.route-piece.route-selected{outline-offset:2px;background:#fff9e9;outline:2px solid #dca52d}.route-piece-select:hover strong{text-decoration:underline}.route-piece{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.route-piece-select{cursor:grab}.route-piece.dragging{cursor:grabbing;opacity:.3}.route-drag-preview{z-index:2000;pointer-events:none;will-change:transform;cursor:grabbing;margin:0;position:fixed;top:0;left:0;box-shadow:0 12px 28px #20372b40}.route-fit-button{margin-top:10px}.builder-title{align-items:center;gap:10px;margin:10px 0 15px;display:flex}.builder-title h2{flex:1;margin:0}.builder-title>.icon-button{flex-shrink:0}@media (max-width:850px){.builder-title{margin:0 0 9px}.builder-title h2{margin:0}}.route-connection-summary{border-bottom:1px solid var(--line);flex-shrink:0;max-height:210px;padding:12px 20px;font-size:11px;line-height:1.5;overflow:auto}.route-connection-summary p{margin-bottom:6px}.order-label{color:#926312;font-weight:700}.disconnected-label{color:#a33b2e;font-weight:700}.route-connection-summary .button{padding:9px;font-size:11px}.join-warning{color:#926312;border-top:1px solid #e8dfc9;flex-direction:column;gap:4px;margin-top:10px;padding-top:8px;font-size:10px;display:flex}.join-warning.disconnected{color:#a33b2e;border-color:#efdad7}.join-warning button{text-align:left;padding:3px 0;font-weight:600;text-decoration:underline}@media (max-width:850px){.route-connection-summary{max-height:105px;padding:8px 12px}}.route-source-usage{border-bottom:1px solid var(--line);flex-shrink:0;font-size:11px}.route-source-usage summary{cursor:pointer;padding:10px 20px;font-weight:650}.source-usage-content{max-height:140px;padding:0 20px 10px;overflow-y:auto}.source-usage-content table{border-collapse:collapse;width:100%}.source-usage-content th{text-align:left;overflow-wrap:anywhere;font-weight:400}.source-usage-content th .track-dot{margin-right:6px;display:inline-block}.source-usage-content td{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.source-usage-content th,.source-usage-content td{vertical-align:top;padding:5px 0}.source-usage-content td{padding-left:10px}.source-usage-content p{color:#7a8478;margin-top:6px;font-size:9px}@media (max-width:850px){.route-source-usage summary{padding:7px 12px}.source-usage-content{max-height:90px;padding:0 12px 7px}}.join-warning .fix-route-order{text-align:center;color:var(--ink);margin-top:3px;padding:9px;font-size:11px;text-decoration:none}.join-endpoint-label{white-space:normal;text-align:center;overflow-wrap:anywhere;max-width:240px}.piece-line .route-piece-select{flex:none}.piece-details{flex:1;min-width:0}.section-name{align-items:flex-start;gap:4px;display:flex}.section-name strong{flex:1;min-width:0;padding-top:3px;line-height:1.5}.section-name .icon-button{flex-shrink:0;margin-top:0}.section-name-editor{cursor:auto;touch-action:auto;-webkit-user-select:text;user-select:text}.section-name-editor input{background:#fff;border:1px solid #bdcab1;border-radius:4px;width:100%;min-width:0;padding:5px 6px;font-size:11px}.section-name-editor>div{justify-content:flex-end;gap:4px;margin-top:4px;display:flex}.elevation-pane{z-index:510;background:#fbfcf7;border-top:1px solid #dce2d4;flex-shrink:0;padding:0 16px 5px}.elevation-heading{align-items:center;gap:20px;min-height:39px;display:flex}.elevation-heading h2{white-space:nowrap;align-items:center;gap:7px;font-size:12px;font-weight:650;display:flex}.elevation-note{color:#7a8478;font-size:10px}.elevation-reading{align-items:center;gap:14px;min-width:0;font-size:11px;display:flex}.elevation-reading strong{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:600}.elevation-reading>span{white-space:nowrap;text-overflow:ellipsis;color:#71806e;overflow:hidden}.elevation-actions{flex-shrink:0;gap:6px;margin-left:auto;display:flex}.elevation-plot{touch-action:none;cursor:crosshair;-webkit-user-select:none;user-select:none;height:136px;position:relative}.elevation-plot:focus-visible{outline-offset:0;border-radius:4px;outline:2px solid #648363}.elevation-plot canvas{width:100%;height:136px;display:block}.elevation-cursor{pointer-events:none;border-left:1px solid #293e35;position:absolute}.elevation-cursor span{background:#293e35;border:2px solid #fff;border-radius:50%;width:9px;height:9px;position:absolute;transform:translate(-5px,-50%);box-shadow:0 0 0 1px #293e35}.elevation-position-marker{background:#f5bd42;border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 2px #293e35,0 2px 6px #0004}.elevation-pane.collapsed{padding-bottom:0}@media (max-width:650px){.elevation-pane{padding-left:6px;padding-right:6px}.elevation-heading{flex-wrap:wrap;gap:10px;padding:5px 4px}.elevation-reading{flex-basis:100%;order:3;font-size:10px}.elevation-note{max-width:50%;font-size:9px}}.app:has(.elevation-plot) .builder{overflow-y:auto}:is(.app:has(.elevation-plot) .builder-heading,.app:has(.elevation-plot) .stats,.app:has(.elevation-plot) .builder-bottom){flex-shrink:0}.app:has(.elevation-plot) .builder .route-list{flex-shrink:0;min-height:170px}@media (max-height:850px){.app:has(.elevation-plot) .builder-heading{padding:12px 20px}.app:has(.elevation-plot) .builder-title{margin:0 0 10px}.app:has(.elevation-plot) .stats{padding:12px 20px}.app:has(.elevation-plot) .source-usage-content{max-height:82px}.app:has(.elevation-plot) .builder-bottom{padding:10px 20px}}.toast>span{overflow-wrap:anywhere;min-width:0}.toast>.icon-button{flex-shrink:0}.bus-state-search{background:#fff;border:1px solid #dce2d4;border-radius:5px;width:100%;margin:6px 0 9px;padding:7px 8px;font-size:11px}.bus-state-grid label small{margin-left:auto}.bus-coverage-note{color:#7a8478;margin-top:8px;font-size:9px;line-height:1.5}.export-dialog{max-height:85dvh;overflow:auto}.export-dialog::backdrop{background:#20372b55}.export-title{justify-content:space-between;align-items:center;gap:20px;display:flex}.export-verification{background:#fff5df;border:1px solid #e7d5aa;border-radius:7px;margin:18px 0;padding:12px;font-size:12px;line-height:1.6}.export-verification strong{display:block}.export-dialog>p{margin:14px 0;line-height:1.6}.export-gaps{max-height:35vh;overflow:auto}.export-gaps>div{border-top:1px solid var(--line);flex-direction:column;gap:7px;padding:12px 0;font-size:12px;display:flex}.export-gaps>div>div{gap:8px;display:flex}.connection-preview{z-index:420;background:#fff;border:1px solid #aed1de;border-radius:9px;width:330px;max-width:calc(100% - 32px);padding:15px;position:absolute;bottom:62px;right:16px;box-shadow:0 6px 25px #20372b30}.connection-preview p{margin:8px 0;font-size:11px;line-height:1.6}.connection-preview>div{justify-content:flex-end;gap:8px;display:flex}.export-dialog{border:1px solid var(--line);color:var(--ink)}.export-dialog .export-verification{color:#664b1f}.export-waypoints{border:1px solid var(--line);border-radius:7px;margin:16px 0;padding:12px;font-size:12px}.export-waypoints legend{padding:0 5px;font-weight:650}.export-waypoints label{flex-wrap:wrap;align-items:center;gap:9px;display:flex}.export-waypoints select{min-width:0;font:inherit;background:#fff;border:1px solid #dce2d4;border-radius:5px;flex:1;padding:8px}.export-waypoints p{color:#71806e;margin-top:8px;font-size:11px;line-height:1.6}.waypoint-radius{margin-top:10px}.waypoint-radius input{border:1px solid #dce2d4;border-radius:5px;width:75px;padding:7px}.piece-controls .route-start-action{color:var(--ink);margin-right:auto}.piece-controls .route-start-action:disabled{opacity:.55;cursor:default}.route-piece{container-type:inline-size}.piece-controls{gap:6px}.piece-controls button{white-space:nowrap;flex-shrink:0}.piece-controls svg{flex-shrink:0}@container (width<=180px){.piece-controls .control-label{display:none}}.route-order-review{color:var(--ink);margin-top:5px}.route-order-review summary{cursor:pointer;padding:5px 0;font-weight:600;text-decoration:underline}.route-order-review p{margin:8px 0;line-height:1.5}.route-order-review ol{border-left:2px solid #d4deca;max-height:220px;margin:8px 0;padding:0;list-style:none;overflow:auto}.route-order-review li{overflow-wrap:anywhere;border-bottom:1px solid #edf0e8;flex-direction:column;gap:3px;padding:6px 9px;display:flex}.route-order-review li strong{color:#926312;font-size:9px}.route-order-review>span{margin-top:5px;display:block}.source-content{display:contents}.source-toggle{display:none}.track-row{border-bottom:1px solid var(--line);align-items:center;gap:8px;min-width:0;padding:5px 0;display:flex}.track-row:last-child{border-bottom:0}.track-summary{text-align:left;flex-direction:column;flex:1;gap:3px;min-width:0;padding:3px 0;display:flex}.track-summary .track-name{flex:none;max-width:100%;display:block}.track-summary .track-meta{margin:0;line-height:1.4;display:block}.track-row>.icon-button{flex-shrink:0}.sidebar,.builder,.elevation-pane{min-width:0}@media (max-width:850px){.app{height:auto;min-height:100dvh;overflow:visible}.workspace{flex:none;grid-template-rows:auto clamp(320px,72svh,800px) auto;grid-template-columns:minmax(0,1fr)}.sidebar{max-height:none;padding:8px 12px;display:block;overflow:visible}.sidebar.sources-collapsed{overflow:visible}.sources-collapsed .source-content{display:none}.source-header{gap:8px;padding:0}.source-header h2{display:none}.source-toggle{align-items:center;gap:7px;min-height:36px;padding:0;font-size:12px;font-weight:650;display:flex}.source-toggle:disabled{opacity:1}.source-toggle svg.expanded{transform:rotate(180deg)}.sidebar .source-list{min-height:0;max-height:none}.builder{border:0;border-top:1px solid var(--line);width:auto;max-height:none;box-shadow:none;border-radius:0;grid-column:1/-1;position:static}.app .workspace .builder{overflow:visible}.app .builder .route-list{flex:none;min-height:0;max-height:none;overflow:visible}.builder-bottom{display:block}.builder-bottom:empty{display:none}.elevation-pane{padding-bottom:max(8px,env(safe-area-inset-bottom))}.elevation-heading{grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;padding:8px 4px;display:grid}.elevation-actions{grid-area:1/2}.elevation-note,.elevation-reading{grid-column:1/-1;min-width:0;max-width:none}.elevation-reading{flex-wrap:wrap;gap:4px 12px}.elevation-reading strong{white-space:normal}.elevation-reading>span{min-width:0}}@media (max-width:600px){.workspace{grid-template-rows:auto clamp(320px,72svh,800px) auto;grid-template-columns:minmax(0,1fr)}.sidebar{padding:8px 12px}.source-header{gap:8px;padding:0 0 4px}.source-header h2{gap:6px}.source-list{min-height:0;display:block;overflow:visible}.sidebar .source-list{min-height:0;max-height:none}.source-actions .icon-button,.track-row>.icon-button{width:36px;height:36px}.track-summary{justify-content:center;min-height:36px}.source-tools{padding:8px 0}.builder{grid-column:1}.app .builder-heading,.app .builder .stats,.route-list{padding:12px}.piece-controls button{min-height:32px;padding:4px}.section-name .icon-button{width:32px;height:32px}.welcome-card{top:50%}}@media (pointer:coarse){.route-piece,.route-piece-select{touch-action:pan-y}.route-drag-handle{touch-action:none;width:28px;min-height:36px}}.mobile-menu-trigger{display:none}.mobile-project-menu{z-index:1000;width:220px;max-width:calc(100vw - 16px);max-height:var(--radix-dropdown-menu-content-available-height);background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:6px;overflow-y:auto;box-shadow:0 8px 30px #20372b30}.mobile-menu-item{cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:6px;outline:none;align-items:center;gap:10px;min-height:44px;padding:10px 12px;font-size:12px;font-weight:600;display:flex}.mobile-menu-item[data-highlighted]{background:#eaf0dc}.mobile-menu-item[data-disabled]{opacity:.38;cursor:default}.mobile-menu-item:nth-child(3),.mobile-menu-item:last-child{border-top:1px solid var(--line);border-radius:0;margin-top:4px}@media (min-width:851px){.mobile-project-menu{display:none}}@media (max-width:850px){.topbar{gap:8px;height:auto;min-height:56px;padding:6px 12px}.topbar .project-actions,.topbar .top-actions{display:none}.mobile-menu-trigger{border:1px solid var(--line);background:#fff;border-radius:8px;order:2;justify-content:center;align-items:center;width:44px;height:44px;margin-left:auto;display:inline-flex}.mobile-menu-trigger:hover,.mobile-menu-trigger[data-state=open]{background:#eaf0dc}.sidebar .source-list,.sidebar .map-layers,.bus-state-grid,.app .builder .source-usage-content,.route-connection-summary,.route-order-review ol,.export-gaps{max-height:none;overflow:visible}.sidebar .map-layers{min-height:0;display:block}}.section-card{overscroll-behavior:contain;width:300px;max-height:calc(100% - 165px);top:140px;bottom:auto;overflow-y:auto}.section-card h3{overflow-wrap:anywhere;min-width:0}.section-card h3 .track-dot{flex-shrink:0}.section-stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 8px;margin:12px 0;display:grid}.section-stats-grid dt{color:#71806e;margin-bottom:3px;font-size:10px}.section-stats-grid dd{color:#293e35;font-variant-numeric:tabular-nums;margin:0;font-size:14px;font-weight:650}.section-card .section-stats-note{color:#71806e;margin-bottom:8px}.section-card .section-surface{overflow-wrap:anywhere;margin-bottom:10px}@media (max-width:850px){.section-card{width:280px;max-width:calc(100% - 24px);max-height:calc(100% - 100px);top:64px;bottom:auto;left:12px}}.section-elevation-profile{background:#f5f7f0;border:1px solid #e5e9dd;border-radius:7px;margin:12px 0 0;padding:9px 8px 2px}.section-elevation-profile figcaption{color:#52664c;font-size:10px;font-weight:600}.section-elevation-profile svg{width:100%;height:auto;display:block;overflow:visible}.section-elevation-profile text{fill:#63755c;font:10px system-ui,sans-serif}.section-profile-grid{stroke:#dfe5d7;stroke-width:1px}.section-profile-fill{fill:#518984;fill-opacity:.15}.section-profile-line{fill:none;stroke:#3f7973;stroke-width:1.8px;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}.section-profile-point{fill:#3f7973}.section-card .section-profile-empty{color:#71806e;margin:10px 0}.section-card .section-profile-note{color:#71806e;margin:0 0 6px;font-size:9px}#map.section-hover-target,#map.section-hover-target canvas{cursor:pointer}.waypoint-marker{box-shadow:none;background:0 0;border:0;border-radius:0}.waypoint-symbol{color:#fff;border:1.5px solid #fff;border-radius:6px;place-items:center;width:24px;height:24px;display:grid;box-shadow:0 1px 4px #20372b55}.waypoint-symbol svg{stroke-width:2.2px;width:17px;height:17px}.waypoint-legend-icon{flex-shrink:0;display:inline-flex}.waypoint-legend-icon .waypoint-symbol{width:21px;height:21px;box-shadow:none;border:0}.waypoint-legend-icon svg{width:15px;height:15px}.waypoint-popup strong{overflow-wrap:anywhere;font-size:13px;display:block}.waypoint-popup small{color:#677568;margin-top:5px;display:block}.waypoint-popup p{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;font-size:12px;overflow:auto;margin:9px 0!important}.waypoint-type-filter{border:1px solid var(--line);background:#fff;border-radius:6px;margin:5px 0;font-size:11px}.waypoint-type-filter summary{cursor:pointer;padding:9px 8px;font-weight:600}.waypoint-type-filter summary span{float:right;color:#6f7b69;font-variant-numeric:tabular-nums;font-weight:400}.waypoint-type-filter fieldset{border:0;margin:0;padding:0 8px 8px}.waypoint-filter-actions{gap:15px;display:flex}.map-layers .waypoint-filter-actions button{width:auto;padding:3px 0 9px;font-size:10px;text-decoration:underline}.waypoint-type-options{gap:3px;display:grid}.waypoint-type-options label{cursor:pointer;align-items:center;gap:7px;min-height:30px;line-height:1.3;display:flex}.waypoint-type-options input{accent-color:#385c48;flex-shrink:0;margin:0}.waypoint-type-options small{color:#7a8478;font-variant-numeric:tabular-nums;margin-left:auto}.waypoint-type-filter p{color:#7a8478;margin:8px 0 0;font-size:9px;line-height:1.6}@media (max-width:600px){.waypoint-type-options label{min-height:38px}}@media (min-width:851px){.sidebar{scrollbar-width:thin;overflow-y:auto}.sidebar .source-header{flex-shrink:0}}.map-detail-card{background:#fff;border:1px solid #d6dfd0;border-radius:9px;margin:5px 0 12px;padding:10px;box-shadow:0 1px 3px #293e3508}.map-detail-card h3{letter-spacing:.1px;color:#344b3c;border-bottom:1px solid #e8ede2;align-items:center;gap:8px;margin:0 0 5px;padding:1px 0 9px;font-size:12px;font-weight:700;display:flex}.map-detail-card h3 svg{color:#617c55}.map-layers .sidebar-card-body>button{gap:8px;min-height:35px}.map-layers .sidebar-card-body>button>span:first-child{gap:7px;min-width:0}.map-detail-card .toggle,.map-detail-card .bus-legend-icon{flex-shrink:0}.sidebar-card-body>button small{white-space:nowrap}.map-detail-card .bus-state-filter,.map-detail-card .waypoint-type-filter{background:#f8faf4;margin-top:8px}.map-detail-card .bus-layer-note{flex-wrap:wrap;gap:2px 8px}@media (max-width:600px){.map-detail-card{padding:12px}.map-detail-card h3{font-size:13px}.map-layers .sidebar-card-body>button{min-height:40px}}.map-detail-card fieldset{min-width:0}.map-detail-card .bus-state-grid{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}.sidebar{padding:8px}.sidebar .map-detail-card{flex-shrink:0;margin:0 0 8px;padding:8px}.sidebar .source-list{flex:none;min-height:0;max-height:none;padding:4px 0 0;display:block;overflow:visible}.sidebar .source-tools{padding:8px 0 0}.sidebar .map-layers{border-top:0;flex:none;max-height:none;padding:0;overflow:visible}.sidebar .source-header{border-bottom:1px solid #e8ede2;flex-wrap:wrap;gap:4px;margin-bottom:3px;padding:0 0 6px}.sidebar .source-header h2{color:#344b3c;font-size:12px;font-weight:700}.sidebar .source-header h2 svg{color:#617c55}.sidebar .source-actions{margin-left:auto}@media (max-width:850px){.sources-collapsed .map-layers{display:none}.sources-collapsed .source-header{border-bottom:0;margin-bottom:0;padding-bottom:0}}.sidebar .sidebar-card-heading{margin:0;padding:0;font-size:12px;font-weight:700}.sidebar .sidebar-card-heading button{color:#344b3c;text-align:left;border-radius:4px;justify-content:flex-start;align-items:center;gap:8px;width:100%;min-height:32px;padding:2px 0;font-size:12px;font-weight:700;display:flex}.sidebar-card-heading svg{color:#617c55}.sidebar-card-heading .sidebar-card-chevron{margin-left:auto;transform:rotate(-90deg)}.sidebar-card-heading .sidebar-card-chevron.expanded{transform:rotate(0)}.sidebar-card-body[hidden]{display:none}.sidebar .source-actions{justify-content:flex-end;margin:0 0 2px;display:flex}@media (max-width:850px){.sidebar .sidebar-card-heading button{min-height:36px}}.sidebar .sidebar-card-heading{background:#eef3e8;border-bottom:1px solid #dce5d5;border-radius:8px 8px 0 0;margin:-8px -8px 0;padding:4px 8px}.sidebar .sidebar-card-heading button:hover{background:#e3ebda}.sidebar-card-body{border-top:0;margin-top:0;padding-top:8px}.sidebar-card:has(>.sidebar-card-body[hidden]) .sidebar-card-heading{border-bottom:0;border-radius:8px;margin-bottom:-8px}.template-load-error{color:#654c29;background:#fff3df;border-bottom:1px solid #e3caa2;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 16px;font-size:12px;display:flex}.template-load-error button,.template-load-error a{font-weight:650;text-decoration:underline}.template-project-prompt{color:var(--ink);border:1px solid #d6dfd0}.template-project-prompt::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#20372b60}.template-project-prompt strong{color:var(--ink);overflow-wrap:anywhere}.template-project-actions{flex-direction:column;gap:10px;display:flex}.template-project-actions .button{white-space:normal;text-align:center;min-height:42px}.template-skip-download{color:#67765e;padding:8px;font-size:11px;text-decoration:underline}.template-project-prompt{max-width:calc(100vw - 32px)}
