.route-search-label {display:block;max-width:650px;font-size:13px;font-weight:600;margin:0 0 22px}
.route-search-label input {display:block;width:100%;margin-top:9px;font-size:16px}
.route-import {display:flex;gap:12px;align-items:center;margin-bottom:22px;font-size:12px}
.route-file-input {position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.route-import:focus-within label {outline:2px solid var(--accent);outline-offset:3px}
.catalog-count {font-size:12px;color:var(--muted);margin-bottom:18px}
.river-directory .river-shortcuts {flex-wrap:wrap}
.saved-route-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:18px;max-width:1100px}
.saved-route-card {border:1px solid var(--line);border-radius:12px;background:#fff;min-width:0;overflow:hidden}
.saved-route-open {display:block;padding:24px}
.saved-route-open h2 {font-size:23px;margin:12px 0;overflow-wrap:anywhere}
.saved-route-open p {font-size:13px;margin-bottom:12px}
.saved-route-open small {color:var(--muted);font-size:11px}
.saved-route-actions {display:flex;flex-wrap:wrap;align-items:center;gap:20px;padding:10px 24px;border-top:1px solid var(--line)}
.saved-route-actions .text-button {min-height:44px}
.route-delete-confirm:not(:empty) {padding:18px 24px;background:#fff5ea}
.route-delete-confirm p {margin-bottom:12px;overflow-wrap:anywhere}
.trip-route-links {display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px}
.map-route-links {position:absolute;z-index:400;bottom:102px;left:20px;display:flex;gap:8px}
.map-route-links .button {box-shadow:0 2px 12px #153a3420;font-size:12px;padding:11px 14px}
body[data-route-editor=true] .map-add,body[data-route-editor=true] .map-search,body[data-route-editor=true] .map-tools [data-action=add-camp] {display:none}
body[data-route-editor=true] .map-layers-button {top:20px}
body[data-route-editor=true] .rain-map-button {top:76px}
body[data-route-editor=true] #map-status,body[data-route-editor=true] #map-quality {display:none}
.route-editor {position:absolute;z-index:450;bottom:25px;left:20px;width:360px;max-height:calc(100% - 145px);overflow:auto;background:#fdfefa;color:var(--ink);border:1px solid var(--line);border-radius:15px;box-shadow:0 8px 35px #143c3526;overscroll-behavior:contain}
.route-editor-heading {position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:12px;padding:10px 16px;background:#fdfefa;border-bottom:1px solid var(--line)}
.route-editor-heading h1 {font-size:17px;letter-spacing:-.3px;margin:0;flex:1}
.route-editor-heading a {font-size:11px;white-space:nowrap}
.route-editor-heading .close-sheet {width:34px;height:34px;flex-shrink:0}
.route-editor-body {padding:12px 16px 16px}
.route-editor.collapsed .route-editor-body {display:none}
.route-name-label {font-size:11px;display:block;font-weight:600}
.route-name-label input {font-size:16px;min-height:42px;width:100%;margin:5px 0 10px;padding:8px 10px}
.route-mode {display:flex;align-items:center;gap:4px}
.route-mode button {border:1px solid var(--line);background:#fff;color:var(--ink);padding:9px 10px;border-radius:6px;font-family:inherit;font-size:12px;font-weight:600;line-height:1.3;min-height:40px}
.route-mode button[aria-pressed=true] {background:#143c35;color:white;border-color:#143c35}
.route-mode .text-button {margin-left:auto;border-color:transparent}
.route-distance {display:flex;align-items:baseline;gap:8px;margin-top:12px}
.route-distance strong {font-size:31px;font-weight:650;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.route-distance span {font-size:11px;color:var(--muted)}
#draw-points-count {margin-left:auto}
.route-editor-message {font-size:11px;margin:6px 0 12px;min-height:16px}
.route-points-details {border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:12px}
.route-points-details summary {font-size:12px;font-weight:600;padding:12px 0;cursor:pointer}
.route-access-picker {display:grid;grid-template-columns:1fr auto;gap:8px;margin:0 0 10px}
.route-access-picker label {grid-column:1/-1;font-size:11px}
.route-access-picker select {min-width:0;width:100%;font-size:16px}
.route-access-picker .button {font-size:12px}
#draw-points {padding:0;margin:0;list-style:none;max-height:200px;overflow:auto}
#draw-points li {display:flex;gap:10px;align-items:center;border-top:1px solid var(--line);font-size:12px;padding:7px 0}
#draw-points li>span:nth-child(2) {flex:1}
#draw-points small {display:block;color:var(--muted);font-size:10px;margin-top:3px}
#draw-points button {min-width:40px;min-height:40px;font-size:20px}
.route-point-symbol {display:inline-flex;width:14px;height:14px;border-radius:50%;align-items:center;justify-content:center;font-size:10px;background:#fff;border:1px solid #143c35;flex-shrink:0}
.route-point-symbol.start-dot {background:#28a46c}
.route-point-symbol.end-dot {border-radius:3px;background:conic-gradient(#172721 25%,#fff 0 50%,#172721 0 75%,#fff 0);background-size:7px 7px}
.route-waypoint {background:white;border:2px solid #126b80;border-radius:50%;color:#143c35;font:600 11px/20px sans-serif;text-align:center}
.route-editor-actions {display:flex;gap:8px;flex-wrap:wrap}
.route-editor-actions .button {font-size:12px;padding:11px 13px;flex:1;white-space:nowrap}
.route-download-status,.route-boundary-note {font-size:10px;color:var(--muted);margin:10px 0 0;line-height:1.5}
.route-boundary-note:empty,.route-download-status:empty {display:none}
@media(max-width:700px){
 .map-route-links {left:12px;bottom:100px}
 .route-editor {left:8px;right:8px;bottom:8px;width:auto;max-height:53%;border-radius:14px}
 .route-editor-heading {padding:7px 12px}
 .route-editor-body {padding:10px 12px 12px}
 .route-distance {margin-top:6px}
 .route-distance strong {font-size:27px}
 body[data-route-editor=true] .map-layers-button {top:14px}
 body[data-route-editor=true] .rain-map-button {top:68px}
 .route-editor-actions .button {min-height:44px}
}
