:root{font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#31363c;background:#f3f6fa;font-synthesis:none;--ink:#30373e;--muted:#787d82;--line:#e0e4e9;--accent:#565e67}
.terrain-quality{position:absolute;left:25px;top:104px;max-width:calc(100% - 100px);padding:5px 9px;border:1px solid #cdd3da;border-radius:5px;background:#f5f9feea;font-size:12px;color:#325a63;pointer-events:none}
.solar-year{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted)}.solar-year input{width:82px;padding:3px 6px;border:1px solid var(--line);border-radius:4px;color:var(--ink);background:#fff;font-size:13px}.solar-note{font-size:11px;line-height:1.55;margin:9px 0 0;color:#6e757c}.solar-note+.solar-note{margin-top:3px}.solar-controls .range-label{margin-top:13px}
#labels{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.gesture-hint{font-size:11px;color:#586068}.map-title>span.gesture-hint{font-size:11px}.map-area{background:linear-gradient(#cdd2d7,#e6ebf0)}
*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit}button,select,input[type=checkbox]{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #b6624f;outline-offset:3px}button{color:inherit}button:disabled{opacity:.5}.workspace{display:flex;height:100dvh;min-height:600px}.sidebar{width:312px;flex-shrink:0;background:#f7fafd;border-right:1px solid #d5dae0;overflow:auto;z-index:2;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;padding:24px;color:var(--ink)}h1{font-size:26px;letter-spacing:5px;margin:0;font-weight:800;line-height:1.1}.brand div>span{font-size:12px;color:var(--muted)}.version{margin-left:auto;font:12px ui-monospace,monospace;border:1px solid var(--line);border-radius:4px;padding:1px 5px}section{padding:18px 24px;border-top:1px solid var(--line)}.eyebrow{font-size:11px;letter-spacing:1.8px;font-weight:650;color:#7b8289}h2{font-size:25px;line-height:1.25;letter-spacing:-.7px;font-weight:600;margin:9px 0 12px}p{font-size:14px;color:#6e7277;margin:0 0 18px}.intro{background:linear-gradient(145deg,#eff4f8,#f7fafd)}.field-label{font-size:12px;color:var(--muted);display:block;margin-bottom:6px}select{width:100%;font-size:14px;background:#fff;color:var(--ink);border:1px solid #d8dde2;border-radius:6px;padding:10px 24px 10px 10px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%235d646d' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}h3{font-size:14px;font-weight:650;margin:0 0 13px}.segmented{display:flex;padding:3px;background:#e9eef3;border-radius:7px;gap:3px}.segmented button{flex:1;padding:7px 4px;border:0;border-radius:5px;background:none;font-size:13px;color:#696f76}.segmented button.active{background:#fff;box-shadow:0 1px 3px #30373e15;color:var(--ink)}.range-label{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin:18px 0 5px}.range-label output{font-family:ui-monospace,monospace;color:#4d545d}input[type=range]{width:100%;height:4px;accent-color:var(--accent);cursor:pointer}input[type=checkbox]{accent-color:var(--accent);width:16px;height:16px}.layers label{display:flex;align-items:center;justify-content:space-between;padding:6px 0;font-size:13px}.layers label>span{display:flex;align-items:center;gap:9px}.swatch{display:inline-block;width:17px;flex-shrink:0}.swatch.contours{height:8px;border-block:1px solid #858e97;transform:rotate(-12deg)}.swatch.trails{border-top:2px dashed #b35540}.swatch.buildings{height:11px;background:linear-gradient(#a85846 0 45%,#eef1f5 45%);border:1px solid #afb4b9;border-radius:2px}
.swatch.forest{height:12px;background:#adc89a;border-radius:3px}.swatch.summit{font-size:20px;line-height:12px;color:#51575e}.legend{font-size:12px}.legend h3{font-size:13px}.legend #trail-legend>div{display:flex;align-items:center;gap:9px;margin:6px 0;color:#6b7075}.legend i{width:19px;border-top:2px dashed var(--color)}.gradient{height:8px;border-radius:4px;background:linear-gradient(90deg,#d9e7bc,#93b17c,#c5bf94,#c4b8a4,#f6f7f5)}.gradient-labels{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:var(--muted)}.details{background:#eef2f6}.details p{font-size:13px;margin:9px 0 0}.details h3{margin:7px 0;font-size:16px}.details dl{margin:10px 0;display:grid;grid-template-columns:1fr 1fr;gap:5px;font-size:12px}.details dt{color:#7a7f84}.details dd{margin:0;text-align:right;overflow-wrap:anywhere}.details canvas{width:100%;height:100px;margin-top:10px}.details a{font-size:12px;color:var(--accent)}.details .profile-note{font-size:11px;margin-top:4px}.sidebar-footer{margin-top:auto;padding:17px 24px;display:flex;flex-direction:column;font-size:11px;color:#7d8288;border-top:1px solid var(--line);gap:4px}.map-area{position:relative;flex:1;min-width:0;overflow:hidden;background:#dbe1e8}#map{display:block;width:100%;height:100%;touch-action:none;cursor:grab}#map.dragging{cursor:grabbing}.map-title{position:absolute;top:24px;left:25px;display:flex;flex-direction:column;gap:6px;pointer-events:none}.map-tag{font-size:10px;letter-spacing:2px;color:#466e78;font-weight:650}.map-title>span:last-child{font-size:15px;color:#333940;text-shadow:0 1px 3px #ffffffd0}.map-controls{position:absolute;right:24px;top:24px;display:flex;flex-direction:column;box-shadow:0 3px 15px #2e353c1a;border:1px solid #cad0d7;border-radius:7px;overflow:hidden}.map-controls button{width:40px;height:40px;border:0;background:#fafdffed;font-size:24px;line-height:1}.map-controls button+button{border-top:1px solid #dbe1e6}.map-controls button:hover{background:#e5ebf1}.north{position:absolute;right:31px;top:178px;display:flex;flex-direction:column;align-items:center;gap:5px;pointer-events:none}.north b{font-size:11px;letter-spacing:1px}.map-bottom{position:absolute;bottom:40px;left:24px;right:24px;display:flex;align-items:end;gap:25px;pointer-events:none;font-size:11px;color:#3d444b;text-shadow:0 1px 3px white}.scale{text-align:center}.scale>div{height:6px;border:1.5px solid #40474e;border-top:0;width:100px}.readout{display:flex;flex-direction:column;gap:2px;font:11px/1.5 ui-monospace,monospace}.render-time{margin-left:auto;padding:4px 7px;background:#f6fafed9;border:1px solid #ced5db;border-radius:4px;font:11px ui-monospace,monospace;white-space:nowrap}.attribution{position:absolute;bottom:0;right:0;max-width:100%;padding:4px 9px;background:#f7fafee3;color:#777d84;font-size:10px}.attribution a{color:inherit;text-decoration:none}.attribution a:hover{text-decoration:underline}.loading{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(360px,85%);background:#f8fbfff2;padding:28px;border:1px solid #d6dce2;border-radius:12px;box-shadow:0 10px 55px #3a41491c;display:flex;align-items:center;flex-direction:column;gap:12px;text-align:center}.loading[hidden]{display:none}.loading strong{font-size:16px;font-weight:600}.loading>span:last-child{font-size:13px;color:#777e85}.spinner{width:24px;height:24px;border:2px solid #d8dfe5;border-top-color:#417480;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-height:850px) and (min-width:761px){.brand{padding-block:18px}section{padding-block:14px}.intro p{margin-bottom:13px}.legend #trail-legend>div{margin:4px 0}}@media(max-width:760px){.workspace{height:auto;min-height:100dvh;display:flex;flex-direction:column}.sidebar{width:100%;height:auto;overflow:visible}.brand{padding:14px 20px}.brand div>span{font-size:12px}.intro{padding:16px 20px}.intro h2{font-size:20px}.intro h2 br{display:none}.intro h2 br:after{content:' '}.intro p,.field-label,.sidebar-footer{display:none}.sidebar section:not(.intro):not(.details){padding:12px 20px}.sidebar .layers{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.layers h3{grid-column:span 2}.sidebar .legend{display:none}.map-area{height:65dvh;min-height:420px;order:-1}.sidebar .details{padding:16px 20px}.map-title{top:18px;left:18px}.map-bottom{left:16px;right:16px;bottom:45px;gap:14px}.render-time{display:none}.attribution{font-size:9px}.north{top:174px}.map-controls{top:18px;right:18px}}

.legend i.marked-route{border-top:3px solid var(--color);box-shadow:0 0 0 1px #e6ebf0;border-radius:2px}.legend i.technical-track{border-top-width:1px;opacity:.72}

/* Route viewer */
.map-launch,.route-launch,.route-bar,.route-sheet-card{--glass:#f9fcfff0;font-family:-apple-system,BlinkMacSystemFont,sans-serif;color:#2e343a}
.map-launch{position:absolute;left:50%;bottom:calc(30px + env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;height:44px;padding:0 3px;border:1px solid #ced4db;border-radius:22px;background:var(--glass);box-shadow:0 4px 18px #2e353c26;z-index:3}
.map-launch:not(:has(>button:not([hidden]))){display:none}
.map-launch>button{display:flex;align-items:center;gap:7px;height:38px;padding:0 14px 0 11px;border:0;border-radius:19px;background:none;color:#2e343a;font-size:14px;font-weight:600;cursor:pointer;-webkit-tap-highlight-color:transparent}
.map-launch>button:hover{background:#e9eef3}
.map-launch>button+button{position:relative}.map-launch>button:not([hidden])+button::before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:1px;background:#d5dae0}
.route-launch svg,.route-button svg{stroke:currentColor;stroke-width:2;fill:currentColor;stroke-linecap:round}
.route-launch[hidden],.route-bar[hidden],.route-sheet[hidden],.route-compass[hidden]{display:none}
.route-sheet{position:absolute;inset:0;z-index:5;background:#1d212540;display:flex;align-items:flex-end;justify-content:center}
.route-sheet-card{width:min(520px,100%);max-height:75%;overflow:auto;background:var(--glass);border-radius:18px 18px 0 0;padding:16px 18px calc(20px + env(safe-area-inset-bottom));box-shadow:0 -8px 40px #2e353c33}
.route-sheet-card header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.route-sheet-card h2{font-size:20px;margin:0}
.route-card{border:1px solid #d8dde3;border-radius:14px;padding:14px;background:#fff}
.route-card h3{font-size:16px;margin:0 0 6px}.route-card p{font-size:13px;margin:0 0 10px;color:#62676d}
.route-meta{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.route-meta span{font-size:11px;padding:3px 8px;border-radius:10px;background:#ecf1f5;color:#525960}
.route-muted{font-size:13px;color:#7d8288}
.route-icon-button{width:34px;height:34px;border-radius:17px;border:0;background:#e8ecf1;font-size:14px;flex-shrink:0}
.route-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;padding:0 14px;border-radius:20px;border:1px solid #ced4db;background:#fff;font-size:14px;font-weight:600;-webkit-tap-highlight-color:transparent}
.route-button.primary{background:#d94f31;border-color:#d94f31;color:#fff}
.route-card .route-button{width:100%}
.route-bar{position:absolute;left:12px;right:12px;bottom:calc(26px + env(safe-area-inset-bottom));z-index:3;max-width:560px;margin:0 auto;padding:4px 10px 8px;border-radius:16px;background:var(--glass);box-shadow:0 4px 18px #2e353c22;display:flex;flex-direction:column;gap:2px;--progress:0deg}
.route-head{display:flex;align-items:center;gap:8px;min-width:0}
.route-head .route-summary{flex:1;min-width:0}
.route-mode{display:flex;flex-shrink:0;height:36px;padding:2px;border-radius:18px;background:#e8ecf1;box-sizing:border-box}
.route-mode[hidden]{display:none}
.route-edit svg,.route-mode svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.route-actions .route-undo svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.route-actions .route-undo:disabled{opacity:.35;cursor:default}
.route-actions .route-edit[aria-pressed=true]{background:#2F8CFF;border-color:#2F8CFF;color:#fff}
.route-edit[hidden]{display:none}
.route-mode button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:16px;background:none;color:#6b747d;cursor:pointer;-webkit-tap-highlight-color:transparent}
.route-mode button.on{background:#fff;color:#2e343a;box-shadow:0 1px 3px #2e353c26}
.route-mode.busy button{cursor:progress;opacity:.6}
.route-summary{margin:2px 6px 0;font-size:12px;line-height:16px;font-weight:600;color:#3d4650;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.route-slider{display:flex;align-items:flex-end;height:50px;padding:0 6px 11px;touch-action:none;-webkit-user-select:none;user-select:none;cursor:pointer;border-radius:8px}
.route-slider:focus-visible{outline:3px solid #b6624f;outline-offset:0}
.route-track{position:relative;flex:1;height:6px;border-radius:3px;background:#e3e8ed;box-shadow:inset 0 0 0 1px #d2d8de}
.route-profile{position:absolute;left:0;right:0;bottom:9px;width:100%;height:34px;overflow:visible;pointer-events:none}
.route-profile-area{fill:#d5dde4}
.route-profile-area.done{fill:#e9b3a5}
.route-profile-line{fill:none;stroke:#8a97a3;stroke-width:1.4;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.route-fill{position:absolute;left:0;top:0;bottom:0;border-radius:3px;background:#8f2a14}
.route-ticks i{position:absolute;top:50%;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:#fff;box-shadow:0 0 0 1.5px #8f2a14}
.route-mine-tick{position:absolute;top:50%;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:#2679eb;border:2px solid #fff;box-shadow:0 1px 4px #0005}
.route-thumb{position:absolute;top:50%;width:20px;height:20px;margin:-10px 0 0 -10px;border-radius:50%;background:#fff;border:3px solid #e05233;box-shadow:0 2px 8px #0004}
.route-actions{display:flex;align-items:center;gap:6px}
.route-actions .route-button{height:36px;flex-shrink:0}
.route-actions .route-icon{width:36px;padding:0;border-radius:50%}
.route-actions .route-button.route-play{width:36px;padding:0;border-radius:50%;background:#2e343a;border-color:#2e343a;color:#fff}
.route-actions .route-icon-button{width:30px;height:30px;margin-left:2px}
.route-play svg{stroke:none}
.route-play .route-pause-icon,.route-play.playing .route-play-icon{display:none}
.route-play.playing .route-pause-icon{display:block}
.route-readout{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;line-height:1.25;padding:0 4px}
.route-line{display:flex;align-items:baseline;gap:8px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
.route-line>*{overflow:hidden;text-overflow:ellipsis}
.route-line b{font-size:13px;font-variant-numeric:tabular-nums}
.route-elevation{font-variant-numeric:tabular-nums;color:#2e5761;font-weight:600;flex-shrink:0}
.route-line-sub{font-size:11px;color:#6e7379}
.route-compass{display:inline;flex-shrink:0}
.route-heading{font:600 11px ui-monospace,monospace;color:#2e343a}
/* Playback: the card folds into a corner pause button (clear of the walker) ringed by the progress along the route. */
.route-bar.collapsed{left:auto;right:16px;margin:0;padding:4px;border-radius:50%;gap:0;background:conic-gradient(#e05233 var(--progress),#f9fcfff0 0)}
.route-bar.collapsed .route-head,.route-bar.collapsed .route-slider,.route-bar.collapsed .route-readout,.route-bar.collapsed .route-icon,.route-bar.collapsed .route-mode,.route-bar.collapsed .route-icon-button{display:none}
.route-bar.collapsed .route-play{width:44px;height:44px}
.season-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;font-size:13px}.season-toggle span{display:flex;flex-direction:column;gap:1px}.season-toggle small{font-size:11px;color:#6e757c}

.demo{padding-bottom:20px}.demo p{margin:8px 0 0;font-size:12px}
.demo-button{width:100%;display:flex;align-items:center;justify-content:center;gap:9px;padding:11px 14px;border:1px solid #cbd2d9;border-radius:8px;background:#fff;color:var(--ink);font-size:14px;font-weight:600;box-shadow:0 1px 3px #30373e12}
.demo-button svg{stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.demo-button:hover{background:#edf1f6}
.demo-button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#fff}
.demo-button[aria-pressed=true] svg{animation:spin 3s linear infinite}
.demo-badge{position:absolute;top:22px;left:50%;transform:translateX(-50%);padding:8px 18px;border-radius:999px;background:#f8fbffe6;border:1px solid #d1d8de;box-shadow:0 4px 18px #2e353c22;font-size:16px;font-weight:600;color:var(--ink);letter-spacing:.2px;pointer-events:none;white-space:nowrap;z-index:3}
.demo-badge[hidden]{display:none}
@media(max-width:760px){.sidebar section.demo{padding:14px 20px 22px}.demo-badge{top:14px;font-size:14px}}
/* Paraglider flights in the route list */
.route-card.paraglider{border-color:#c3cfdc;background:linear-gradient(180deg,#f5f9fd,#fff 60%)}
.route-tag{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:#b74a33;background:#e5ecf4;border-radius:10px;padding:3px 8px 3px 6px;margin-bottom:8px}
.route-tag svg{fill:#ff6746;stroke:#b74a33;stroke-width:1.2}
@media(max-width:760px){.route-bar{left:8px;right:8px;bottom:calc(30px + env(safe-area-inset-bottom));padding:2px 8px 6px}}
.swatch.pistes{height:12px;border-radius:3px;background:repeating-linear-gradient(90deg,#3f72b0 0 6px,#b32f42 6px 12px,#2c3238 12px 17px);opacity:.75}
.swatch.freeride{height:12px;border-radius:3px;background:repeating-linear-gradient(-45deg,#ed782a 0 1.2px,transparent 1.2px 4px),#fbf1dd;box-shadow:inset 0 0 0 1.5px #d99233}
.freeride-legend{margin:0 0 6px 26px;grid-column:1/-1}.freeride-legend[hidden]{display:none}.freeride-bands{display:flex;gap:4px;margin:2px 0 6px}.freeride-bands span{flex:1;font-size:10.5px;color:#5d646d;text-align:center;padding-top:9px;background:repeating-linear-gradient(-45deg,var(--c) 0 1.5px,transparent 1.5px 5px) top/100% 6px no-repeat}.freeride-bands .zone{background:linear-gradient(#e8a133,#e8a133) top/100% 2px no-repeat,linear-gradient(#f2cf8f,#fbf3e2) top 2px/100% 4px no-repeat}.freeride-legend .solar-note{font-size:11px;line-height:1.4;margin:0}
.swatch.skitours{height:3px;border-radius:2px;background:repeating-linear-gradient(90deg,#e8b21a 0 5px,transparent 5px 8px)}
.swatch.hut{height:13px;width:13px;border-radius:50%;background:radial-gradient(circle at 50% 55%,#f7fbff 0 1.6px,transparent 2px),#db5437;box-shadow:0 0 0 1.2px #f7fbff,5px -5px 0 -2px #3b6670}

/* «Рисовать линию»: a route drawn as a line on the map (src/sketch-route.js) */
.sketch-launch,.sketch-bar,.user-routes{--sk-graphite:#1C2229;--sk-slate:#39424C;--sk-steel:#67727E;--sk-silver:#A9B2BB;--sk-mist:#E4E8EC;--sk-snow:#F5F7F9;--sk-accent:#F0502D;--sk-line:#2F8CFF;font-family:-apple-system,BlinkMacSystemFont,sans-serif}
.sketch-launch svg{fill:none;stroke:var(--sk-graphite);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sketch-launch svg .sketch-launch-line{stroke:var(--sk-line);stroke-width:2.4}
.sketch-launch[hidden],.sketch-bar[hidden]{display:none}
body.sketching #map{cursor:crosshair}
body.sketching .map-launch{display:none}
.sketch-bar{position:absolute;left:12px;right:12px;bottom:calc(26px + env(safe-area-inset-bottom));z-index:4;max-width:620px;margin:0 auto;padding:10px 12px;border:1px solid var(--sk-mist);border-radius:16px;background:#F5F7F9F2;color:var(--sk-graphite);box-shadow:0 6px 24px #1C22292E;display:flex;flex-direction:column;gap:9px}
.sketch-status{display:flex;align-items:center;gap:9px;min-height:20px;font-size:13px;color:var(--sk-slate)}
.sketch-swatch{flex:0 0 auto;width:18px;height:4px;border-radius:2px;background:var(--sk-line);box-shadow:0 0 0 1.5px #fff}
.sketch-hint{flex:1;min-width:0}
.sketch-length{flex:0 0 auto;font-size:15px;color:var(--sk-graphite);font-variant-numeric:tabular-nums}
.sketch-bar.error .sketch-swatch{background:var(--sk-accent)}
.sketch-bar.error .sketch-hint{color:var(--sk-graphite);font-weight:600}
.sketch-bar.busy .sketch-swatch{animation:sketch-pulse .8s ease-in-out infinite alternate}
@keyframes sketch-pulse{to{opacity:.25}}
.sketch-actions{display:flex;align-items:center;gap:8px}
.sketch-spacer{flex:1}
.sketch-button{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 14px;border:1px solid var(--sk-silver);border-radius:19px;background:#fff;color:var(--sk-graphite);font:600 14px -apple-system,BlinkMacSystemFont,sans-serif;cursor:pointer;-webkit-tap-highlight-color:transparent}
.sketch-button:hover:not(:disabled){border-color:var(--sk-steel)}
.sketch-button.primary{padding:0 18px;background:var(--sk-accent);border-color:var(--sk-accent);color:#fff}
.sketch-button:disabled{opacity:.4;cursor:default}
.sketch-icon{width:38px;padding:0}
.sketch-icon svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.user-routes{margin:0 0 14px;padding-bottom:14px;border-bottom:1px solid var(--sk-mist)}
.user-routes header{display:flex;align-items:center;justify-content:space-between;margin:2px 0 8px}
.user-routes h3{margin:0;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--sk-steel)}
.user-routes .route-muted{margin:4px 0 0}
.user-routes .route-card+.route-card{margin-top:8px}
.route-card.user-route{border-color:var(--sk-mist);background:linear-gradient(180deg,var(--sk-snow),#fff 60%)}
.route-card.user-route h3{font-size:16px;letter-spacing:0;text-transform:none;color:var(--sk-graphite)}
.sketch-chip{height:30px;padding:0 12px;border:1px solid var(--sk-silver);border-radius:15px;background:#fff;color:var(--sk-graphite);font:600 13px -apple-system,BlinkMacSystemFont,sans-serif;cursor:pointer}
.user-route-actions{display:flex;align-items:center;gap:8px}
.route-card .user-route-actions .route-button{width:auto}
.route-card .user-route-actions .route-button.primary{flex:1;background:var(--sk-accent);border-color:var(--sk-accent)}
.route-card .user-route-actions .route-icon-only{flex:0 0 40px;width:40px;padding:0;color:var(--sk-slate);border-color:var(--sk-silver)}
.route-card .user-route-actions .route-button.danger{background:var(--sk-accent);border-color:var(--sk-accent);color:#fff}
.user-route-confirm span{flex:1;font-size:13px;color:var(--sk-slate)}
.user-route-name{display:block;width:100%;box-sizing:border-box;margin:0 0 6px;padding:5px 8px;border:1px solid var(--sk-steel);border-radius:8px;background:#fff;color:var(--sk-graphite);font:600 16px -apple-system,BlinkMacSystemFont,sans-serif}
@media(max-width:760px){.sketch-bar{left:8px;right:8px;bottom:calc(30px + env(safe-area-inset-bottom));padding:9px 10px}.sketch-status{font-size:12px}.sketch-actions{gap:6px}.sketch-button{padding:0 12px}}
/* «✕» over the slider thumb of a drawn route: cuts the route there. */
.route-trim{position:absolute;bottom:14px;width:22px;height:22px;margin-left:-11px;padding:0;display:grid;place-items:center;border:0;border-radius:50%;background:#fff;color:#3a4550;box-shadow:0 1px 4px #0004,0 0 0 1px #d2d8de;cursor:pointer}
.route-trim svg{stroke:currentColor;stroke-width:2.6;stroke-linecap:round;fill:none}
.route-trim:hover,.route-trim:focus-visible{background:#c8432a;color:#fff;box-shadow:0 1px 4px #0005;outline:none}
.route-trim[hidden]{display:none}
.swatch.relief{height:12px;border-radius:3px;background:linear-gradient(135deg,#f3f1ea 0 35%,#b9b1a1 35% 52%,#e2ddd2 52% 70%,#9d9586 70%)}
/* Phones: the map fills the screen; the settings open as a panel over it from one small button. */
.settings-close,.map-launch>.settings-toggle,.map-launch>.launch-menu{display:none}
.map-launch:not(:has(>button:not([hidden]):not(.settings-toggle):not(.launch-menu))){display:none}
@media(max-width:760px){
.workspace{height:100dvh;min-height:0;display:block}
.map-area{position:fixed;inset:0;height:auto;min-height:0}
.settings-toggle svg,.launch-menu svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.settings-close svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.settings-close{display:flex;margin-left:8px;width:36px;height:36px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:10px;background:#fff;color:#30373e}
.sidebar{position:fixed;inset:0;z-index:5;width:100%;height:100dvh;overflow:auto;-webkit-overflow-scrolling:touch;border:0;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);transform:translateY(100%);visibility:hidden;transition:transform .25s ease,visibility 0s .25s}
body.settings-open .sidebar{transform:none;visibility:visible;transition:transform .25s ease}
body.settings-open .map-launch{visibility:hidden}
.intro p.field-label,.field-label{display:block}
.sidebar .legend{display:block}
/* A selected trail stays visible over the map as a card while the settings are closed. */
body:not(.settings-open) .sidebar .details:has(dl){visibility:visible;position:fixed;left:8px;right:8px;bottom:calc(84px + env(safe-area-inset-bottom));max-height:45dvh;overflow:auto;border:1px solid #cad0d7;border-radius:12px;box-shadow:0 6px 25px #2e353c30;transform:translateY(-100dvh)}
.map-bottom{bottom:calc(30px + env(safe-area-inset-bottom))}
}
@media(max-width:760px){
.map-launch,.map-launch:not(:has(>button:not([hidden]):not(.settings-toggle):not(.launch-menu))){display:flex;left:auto;right:calc(12px + env(safe-area-inset-right));transform:none;bottom:calc(30px + env(safe-area-inset-bottom));padding:2px}
.map-launch:not(.open){width:48px;height:48px;justify-content:center;border-radius:24px}
.map-launch:not(.open)>button:not(.launch-menu){display:none}
.map-launch>.settings-toggle{display:flex}
.map-launch>.launch-menu{display:flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0!important;border-radius:21px!important}
.launch-menu .menu-close,.map-launch.open .launch-menu .menu-open{display:none}.map-launch.open .launch-menu .menu-close{display:inline}
.map-launch.open{flex-direction:column;align-items:stretch;height:auto;border-radius:22px;padding:4px;min-width:176px}
.map-launch.open>button{height:44px;justify-content:flex-start;padding:0 14px}
.map-launch.open>button::before{display:none}
.map-launch.open>button+button{border-top:1px solid #e1e6eb;border-radius:0}
.map-launch.open>.launch-menu{align-self:flex-end;border-top:0!important;margin-top:2px}
}
.consent{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:50;width:min(460px,calc(100% - 24px));padding:16px 18px;background:#f8fbfff7;border:1px solid #d6dce2;border-radius:12px;box-shadow:0 10px 40px #2e353c33;font-size:13px;color:#3d444b}.consent p{margin:0 0 12px}.consent div{display:flex;justify-content:flex-end;gap:8px}.consent button{padding:8px 14px;border:1px solid #cad0d7;border-radius:7px;background:#fff;font:inherit;cursor:pointer}.consent button.primary{background:#417480;border-color:#417480;color:#fff}
/* Account (src/account.js): a round button in the top right corner of the map; signed in, a menu under it in the
   look of the map's other menus (.map-launch); signed out, a small card with Google's button when One Tap cannot show. */
.account{position:absolute;top:calc(14px + env(safe-area-inset-top));right:calc(14px + env(safe-area-inset-right));z-index:4;font-family:-apple-system,BlinkMacSystemFont,sans-serif;color:#2e343a}
.account-toggle{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:1px solid #ced4db;border-radius:50%;background:#f9fcfff0;box-shadow:0 4px 18px #2e353c26;color:#2e343a;cursor:pointer;overflow:hidden;-webkit-tap-highlight-color:transparent}
.account-toggle[hidden]{display:none}
.account-toggle:hover{background:#e9eef3}
.account-toggle[aria-expanded=true]{border-color:#417480;box-shadow:0 0 0 2px #4174802e,0 4px 18px #2e353c26}
.account-icon{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.account-toggle.signed-in .account-icon{display:none}
.account-toggle:not(.signed-in) .account-face{display:none}
.account-face,.account-avatar{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:#417480;color:#fff;font-size:14px;font-weight:600;overflow:hidden}
.account-face img,.account-avatar img{width:100%;height:100%;object-fit:cover}
.account-card{position:absolute;top:48px;right:0;min-width:228px;max-width:min(300px,calc(100vw - 28px));padding:4px;border:1px solid #ced4db;border-radius:16px;background:#f9fcfff0;box-shadow:0 4px 18px #2e353c26;font-size:13px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.account-card[hidden],.account-card [hidden]{display:none}
.account-who{display:flex;align-items:center;gap:10px;padding:10px 12px 12px}
.account-avatar{flex:none;width:36px;height:36px;border-radius:50%}
.account-who>span:last-child{display:flex;flex-direction:column;min-width:0}
.account-name{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-email{color:#6a737b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-logout{display:flex;align-items:center;gap:9px;width:100%;height:44px;padding:0 14px;border:0;border-top:1px solid #e1e6eb;border-radius:0 0 12px 12px;background:none;color:#2e343a;font:inherit;font-size:14px;font-weight:600;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
.account-logout:hover{background:#e9eef3}
.account-logout svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.account-google{display:flex;justify-content:center;min-height:44px;padding:8px}
.account-google.elsewhere{display:block;padding:8px 10px;color:#4a5157;line-height:1.4}.account-google.elsewhere p{margin:0 0 6px}.account-google.elsewhere a{color:#417480;word-break:break-all}
.account-status{margin:0;padding:4px 12px 8px;color:#8f2a14}
body.sketching .account,body.settings-open .account{visibility:hidden}
