.app-shell.mode-route{grid-template-columns:74px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.app-shell.mode-route .main{min-height:0;overflow:hidden}
#routeMap.awaiting-location{visibility:hidden}
.app-shell.mode-route .sidebar,.app-shell.mode-route .assistant-screen,.app-shell.mode-route .empty-state,.app-shell.mode-route .chat{display:none!important}
.app-shell:not(.mode-route) .route-screen,.route-screen[hidden]{display:none!important}
.route-start[hidden],.route-pause[hidden],.route-stop[hidden],.route-progress[hidden],.route-locate[hidden],.route-ip-locate[hidden],.route-back[hidden],.route-detail[hidden],.route-map-nav[hidden],.route-guide[hidden],.route-record-summary[hidden]{display:none!important}
.route-screen{display:grid;grid-template-columns:minmax(295px,345px) minmax(0,1fr);height:100%;min-height:0;background:#f6f7f1;color:#203b2c}
.route-tools{display:flex;flex-direction:column;gap:18px;min-width:0;overflow-y:auto;padding:35px 26px 26px;background:#f8faf4;border-right:1px solid #e3e9dc}
.route-kicker{color:#67876f;font-size:10px;font-weight:800;letter-spacing:.18em}
.route-header h1{margin:13px 0 12px;color:#193a2b;font-size:clamp(31px,3.4vw,43px);line-height:1.22;letter-spacing:-.07em}
.route-header h1 em{font-style:normal;color:#759951}
.route-header p{margin:0;color:#839488;font-size:12px;line-height:1.8}
.route-back{align-self:flex-start;padding:0;border:0;background:none;color:#497251;font-size:12px;font-weight:800;cursor:pointer}.route-back:hover{text-decoration:underline}
.route-control-card{padding:19px;background:#fff;border:1px solid #e5ece0;border-radius:18px;box-shadow:0 10px 30px #1a4d290b}
.route-card-top{display:flex;align-items:center;gap:8px;margin-bottom:12px;color:#73915f;font-size:11px;font-weight:800}
.route-card-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#e9f3d8;color:#4d7737;font-size:18px}
.route-control-card>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px;letter-spacing:-.03em}
.route-control-card>p{min-height:42px;margin:8px 0 17px;color:#8b9b8b;font-size:11px;line-height:1.7}
.route-import{display:flex;align-items:center;justify-content:center;width:100%;min-height:40px;border:1px dashed #9bb98e;border-radius:10px;background:#f3f9ec;color:#426941;font-size:12px;font-weight:800;cursor:pointer;transition:background .2s}
.route-import:hover{background:#e6f4d8}
.route-place-form{display:grid;gap:7px}.route-place-form label{color:#456e52;font-size:11px;font-weight:800}.route-place-form>div{display:flex;gap:6px}.route-place-form input{flex:1;min-width:0;min-height:38px;padding:0 11px;border:1px solid #dce7d9;border-radius:9px;background:#fff;color:#244b34;font:inherit;font-size:12px;outline:none}.route-place-form input:focus{border-color:#8bb982}.route-place-form button{min-width:54px;border:0;border-radius:9px;background:#e5f1d7;color:#315c3a;font-size:11px;font-weight:800;cursor:pointer}.route-place-form button:hover{background:#d7eabf}.route-place-form button:disabled{opacity:.55;cursor:wait}.route-place-form p{margin:0;color:#93a294;font-size:10px}
.route-explore{display:grid;gap:11px;padding:16px;border:1px solid #e2e9dc;border-radius:17px;background:#fff;box-shadow:0 8px 25px #1a4d2909}.route-explore[hidden],.route-explore-popover[hidden]{display:none!important}
.route-explore-heading{display:flex;align-items:end;justify-content:space-between;gap:8px}.route-explore-heading div{display:grid;gap:3px}.route-explore-heading div span{color:#829d75;font-size:9px;font-weight:800;letter-spacing:.13em}.route-explore-heading strong{color:#20472f;font-size:16px}.route-explore-heading>span{color:#67816b;font-size:10px;white-space:nowrap}
.route-explore-filters{display:grid;grid-template-columns:minmax(0,1fr) 92px;gap:7px}.route-explore-filters input,.route-explore-filters select{min-width:0;height:39px;padding:0 9px;border:1px solid #dce7d9;border-radius:9px;background:#f8faf5;color:#315640;font:inherit;font-size:11px}.route-explore-filters input:focus,.route-explore-filters select:focus{outline:2px solid #a4cd80;outline-offset:1px}
.route-explore-cities{display:flex;gap:5px;overflow-x:auto;padding-bottom:2px}.route-explore-cities button{flex:none;min-height:31px;padding:0 9px;border:1px solid #dce7d9;border-radius:99px;background:#f7faf4;color:#698270;font-size:10px;font-weight:800;cursor:pointer}.route-explore-cities button.active{border-color:#295840;background:#295840;color:#f1f8e9}
.route-explore-list{display:grid;gap:7px;max-height:340px;overflow-y:auto}.route-explore-item{display:grid;gap:6px;width:100%;padding:11px 12px;border:1px solid #e7ede3;border-radius:11px;background:#fbfcf9;color:#274733;text-align:left;cursor:pointer}.route-explore-item:hover,.route-explore-item.active{border-color:#8fb77a;background:#f1f8e9}.route-explore-item-top{display:flex;justify-content:space-between;gap:8px;align-items:center}.route-explore-item-top strong{font-size:12px;line-height:1.4}.route-explore-item-top>span{color:#6a9162;font-size:17px}.route-explore-item-details{color:#687c6b;font-size:10px;line-height:1.5}.route-explore-item-badge{justify-self:start;padding:3px 6px;border-radius:5px;background:#fff1df;color:#9b6740;font-size:9px;font-weight:800}.route-explore-item-badge.has-track{background:#e6f3df;color:#3f8150}.route-explore-empty,.route-explore-note{margin:0;color:#8b9d8d;font-size:10px;line-height:1.65}.route-explore-empty{padding:14px 3px}
.route-explore-pin{display:grid;place-items:center;width:40px;height:40px;border:3px solid #fff;border-radius:50%;background:#284d38;color:#e0f2ab;font-size:20px;font-weight:800;box-shadow:0 5px 18px #143b2890;cursor:pointer}.route-explore-pin.has-track{background:#a8d765;color:#234431}.route-explore-pin:hover{transform:scale(1.1)}
.route-explore-pin.candidate-track{background:#b8733e;color:#fff8ec}
.route-explore-popover{position:absolute;z-index:510;left:20px;bottom:78px;display:grid;gap:6px;width:min(300px,calc(100% - 40px));max-height:260px;overflow-y:auto;padding:14px;border:1px solid #d8e6d1;border-radius:14px;background:#fffffff7;box-shadow:0 16px 35px #173e2b3d}.route-explore-popover strong{color:#2e563c;font-size:12px}.route-explore-popover button{padding:10px;border:1px solid #e0eadb;border-radius:9px;background:#f6faf2;color:#285139;text-align:left;font-size:11px;cursor:pointer}.route-explore-popover button:hover{background:#e8f5db}
.route-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.route-stats>div{min-height:69px;padding:12px 7px;background:#edf3e8;border-radius:11px;text-align:center}
.route-stats span{display:block;color:#829385;font-size:10px;white-space:nowrap}
.route-stats strong{display:block;margin-top:7px;color:#244b34;font-size:14px;white-space:nowrap}
.route-detail{padding:17px 18px;border:1px solid #e5ece0;border-radius:16px;background:#fff;box-shadow:0 8px 22px #1a4d2908}
.route-detail-top{display:flex;justify-content:space-between;gap:8px;align-items:center;color:#829a77;font-size:9px;font-weight:800;letter-spacing:.07em}.route-detail-top span:last-child{flex:none;padding:4px 7px;border-radius:5px;background:#edf4e7;color:#5d7b4b;letter-spacing:0}
.route-detail>strong{display:block;margin-top:11px;color:#244b34;font-size:14px}.route-detail>p:not(.route-detail-coordinates){margin:7px 0 14px;color:#6d806f;font-size:11px;line-height:1.65}
.route-detail-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.route-detail-facts>div{min-width:0;padding:9px 5px;border-radius:8px;background:#f4f7ef;text-align:center}.route-detail-facts span{display:block;color:#91a191;font-size:9px}.route-detail-facts strong{display:block;margin-top:5px;color:#32543a;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.route-detail-provenance{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:12px;padding-top:10px;border-top:1px solid #edf1e9;color:#7d8f7d;font-size:10px;line-height:1.5}.route-detail-provenance[hidden]{display:none}.route-detail-provenance a{color:#386b43;font-weight:800;text-decoration:underline}
.route-detail-evidence{display:grid;gap:5px;margin-top:11px;padding:10px;border:1px solid #ecd7b9;border-radius:9px;background:#fff9ee;color:#795d3b;font-size:10px;line-height:1.6}.route-detail-evidence[hidden]{display:none}.route-detail-evidence strong{color:#80542f}.route-detail-evidence a{color:#7d4d22;font-weight:800;text-decoration:underline}
.route-detail-highlights{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.route-detail-highlights:empty{display:none}.route-detail-highlights span{padding:5px 8px;border-radius:99px;background:#edf4e7;color:#5d7954;font-size:10px}
.route-detail-coordinates{margin:11px 0 0;padding-top:10px;border-top:1px solid #edf1e9;color:#8b9b8b;font-size:10px;line-height:1.6}.route-detail-coordinates[hidden]{display:none}
.route-progress{padding:0 3px}.route-progress>div{display:flex;justify-content:space-between;color:#708371;font-size:11px}.route-progress strong{color:#315a3b}.route-progress progress{display:block;width:100%;height:7px;margin-top:9px;border:0;border-radius:7px;overflow:hidden;accent-color:#a8ce62}.route-progress progress::-webkit-progress-bar{background:#e4ecde;border-radius:7px}.route-progress progress::-webkit-progress-value{background:#9fc65a;border-radius:7px}
.route-actions{display:flex;flex-direction:column;gap:9px;margin-top:auto}.route-start,.route-stop{display:flex;align-items:center;justify-content:space-between;min-height:49px;padding:0 17px;border:0;border-radius:11px;background:#1b4332;color:#d1ed8d;font-size:14px;font-weight:800}.route-start:hover,.route-stop:hover{background:#286044}.route-start span{font-size:23px;font-weight:400}.route-stop{justify-content:center;background:#a75d44;color:white}.route-stop:hover{background:#904d39}.route-clear{align-self:center;border:0;background:none;color:#7f9182;font-size:11px}.route-clear:hover{text-decoration:underline}
.route-pause{min-height:45px;padding:0 16px;border:1px solid #bdd0b5;border-radius:11px;background:#f0f6e9;color:#365b3a;font-size:13px;font-weight:800;cursor:pointer}.route-pause:hover{background:#e3efda}
.route-identify{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:0 16px;border:1px solid #a9c985;border-radius:11px;background:#e9f5d8;color:#2b5637;font-size:13px;font-weight:800}.route-identify:hover{background:#def0c5}.route-identify span{font-size:18px;font-weight:400}.route-identify:disabled{opacity:.6}
.route-observation-pin{display:grid;place-items:center;width:34px;height:34px;border:3px solid #fff;border-radius:50%;background:#e2f4ae;color:#28543a;font-size:18px;font-weight:900;box-shadow:0 3px 14px #173d2a77;cursor:pointer}
.route-record-summary{padding:13px 15px;border:1px solid #dce8d6;border-radius:13px;background:#fff}.route-record-summary>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.route-record-summary span{color:#67836b;font-size:11px;font-weight:800}.route-record-summary strong{color:#244b34;font-variant-numeric:tabular-nums;font-size:18px}.route-record-summary p{margin:7px 0 10px;color:#708371;font-size:11px}.route-record-summary button{width:100%;min-height:39px;border:1px solid #bfd4b3;border-radius:9px;background:#eff7e8;color:#365e40;font-size:11px;font-weight:800;cursor:pointer}.route-record-summary button:disabled{opacity:.5;cursor:not-allowed}
.route-location-message{margin:0;padding:11px 13px;border:1px solid #edc5ae;border-radius:10px;background:#fff3e9;color:#8b4932;font-size:11px;line-height:1.6}.route-location-message[hidden]{display:none}
.route-privacy{margin:0;color:#9ba99b;font-size:10px;line-height:1.7}
.route-map-shell{position:relative;min-width:0;min-height:0;overflow:hidden;background:#e7eee3}
.route-map{position:absolute;inset:0;z-index:1;background:radial-gradient(ellipse at 23% 21%,#d2e2ce8c 0 12%,transparent 12.2%),radial-gradient(ellipse at 75% 73%,#c9dcc67a 0 17%,transparent 17.2%),repeating-linear-gradient(32deg,transparent 0 68px,#cadac760 69px 70px,transparent 71px 135px),#e3ede0}
.route-map-heading{position:absolute;z-index:500;top:22px;left:22px;right:22px;display:flex;align-items:center;justify-content:space-between;gap:12px;pointer-events:none}
.route-map-heading>div{display:flex;flex-direction:column;gap:5px;min-width:0;padding:11px 16px;border:1px solid #edf2e7;border-radius:13px;background:#fffffff0;box-shadow:0 10px 28px #1e422722;backdrop-filter:blur(12px)}
.route-map-heading>div span{color:#879b81;font-size:9px;font-weight:800;letter-spacing:.14em}.route-map-heading>div strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#254c35;font-size:15px}
.route-live{padding:9px 13px;border-radius:100px;background:#fffffff0;color:#9baa9b;font-size:11px;font-weight:800;white-space:nowrap;box-shadow:0 8px 25px #1e422718}.route-live.active{color:#449853}
.route-map-empty{position:absolute;z-index:400;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;width:min(290px,calc(100% - 36px));padding:24px 18px;border:1px solid #ffffffbd;border-radius:22px;background:#fffffff0;text-align:center;box-shadow:0 18px 40px #1e422727;pointer-events:none;backdrop-filter:blur(16px)}
.route-map-empty[hidden]{display:none}.route-map-empty span{display:grid;place-items:center;width:52px;height:52px;margin-bottom:13px;border-radius:16px;background:#e8f3d7;color:#467451;font-size:32px}.route-map-empty strong{font-size:16px}.route-map-empty p{margin:8px 0 0;color:#809082;font-size:11px;line-height:1.7}
.route-tile-notice{position:absolute;z-index:500;top:90px;left:22px;max-width:300px;padding:9px 12px;border:1px solid #e4d3a6;border-radius:9px;background:#fff8dfec;color:#876d32;font-size:11px;line-height:1.5;box-shadow:0 7px 20px #57452018}.route-tile-notice[hidden]{display:none}
.route-preview-warning{position:absolute;z-index:500;top:90px;left:22px;right:22px;max-width:420px;padding:11px 14px;border:1px solid #dfb5a5;border-radius:10px;background:#fff0e8f2;color:#90452f;font-size:12px;font-weight:800;line-height:1.5;box-shadow:0 7px 20px #57452018}.route-preview-warning[hidden]{display:none}
.route-guide{position:absolute;z-index:500;top:90px;left:22px;max-width:min(340px,calc(100% - 150px));padding:13px 16px;border:1px solid #dce9d6;border-radius:14px;background:#fffffff2;box-shadow:0 10px 28px #1e422727;backdrop-filter:blur(12px)}.route-guide span,.route-guide small{display:block;color:#6f8b71;font-size:10px;line-height:1.5}.route-guide strong{display:block;margin:3px 0;color:#1e4a33;font-size:17px;line-height:1.3}.route-guide[data-kind="off-route"]{border-color:#e3b5a2;background:#fff1eafa}.route-guide[data-kind="off-route"] strong{color:#a24f32}.route-guide[data-kind="arrived"]{border-color:#b7d888;background:#f3ffe8f7}
.route-map-nav{position:absolute;z-index:500;top:90px;right:20px;min-height:42px;padding:0 17px;border:0;border-radius:11px;background:#204734;color:#d6ef98;font-size:12px;font-weight:800;box-shadow:0 10px 26px #1e422730;cursor:pointer}.route-map-nav:hover{background:#2c5a42}.route-map-nav.active{background:#a75d44;color:white}.route-map-nav.active:hover{background:#904d39}
.route-locate{position:absolute;z-index:500;right:20px;bottom:76px;display:flex;align-items:center;gap:7px;min-height:40px;padding:0 13px;border:1px solid #e4ece0;border-radius:12px;background:#fff;color:#2e5d40;font-size:12px;font-weight:800;box-shadow:0 10px 26px #1e422722}.route-locate:hover{background:#f3f8ed}
.route-ip-locate{position:absolute;z-index:500;right:136px;bottom:76px;min-height:40px;padding:0 12px;border:1px solid #e4ece0;border-radius:12px;background:#fff;color:#52735b;font-size:11px;font-weight:800;box-shadow:0 10px 26px #1e422722;cursor:pointer}.route-ip-locate:hover{background:#f3f8ed}.route-ip-locate:disabled{opacity:.6;cursor:wait}
.route-status{position:absolute;z-index:500;left:20px;right:20px;bottom:20px;max-width:max-content;padding:10px 15px;border-radius:12px;background:#1d3f32ec;color:#eef7e7;font-size:11px;line-height:1.5;box-shadow:0 10px 24px #193e2d35}.route-status[data-tone="warning"]{background:#994f31ed}.route-status[data-tone="error"]{background:#8a3f37ed}
.route-zoom{position:absolute;z-index:500;right:20px;bottom:128px;display:flex;flex-direction:column;overflow:hidden;border:1px solid #e4ece0;border-radius:12px;background:#fff;box-shadow:0 10px 26px #1e422722}.route-zoom button{width:40px;height:39px;border:0;background:#fff;color:#2e5d40;font-size:22px;cursor:pointer}.route-zoom button+button{border-top:1px solid #e4ece0}.route-zoom button:hover{background:#f3f8ed}
@media(max-width:900px){.app-shell.mode-route{grid-template-columns:62px minmax(0,1fr)}.route-screen{grid-template-columns:290px minmax(0,1fr)}.route-tools{padding:27px 18px 18px}}
@media(max-width:680px){
  .app-shell.mode-route{display:block}.app-shell.mode-route .main{display:block;position:absolute;inset:0 0 var(--mobile-nav-height);height:auto}
  .route-screen{display:flex;flex-direction:column;overflow-y:auto;height:100%;background:#f8faf4}
  .route-tools{flex:none;gap:11px;overflow:visible;padding:17px 18px 12px;border:0}
  .route-tools{order:1}
  .route-header h1{margin:5px 0;font-size:25px}.route-header h1 br{display:none}.route-header p{display:none}
  .route-control-card{padding:12px 14px}.route-card-top{margin-bottom:4px}.route-control-card>strong{font-size:14px}.route-control-card>p{min-height:0;margin:4px 0 9px;font-size:10px}.route-import{min-height:44px}
  .route-explore{padding:13px}.route-explore-list{max-height:none}.route-explore-item{min-height:70px}.route-explore-popover{left:12px;bottom:112px;width:min(290px,calc(100% - 24px))}
  .route-stats>div{min-height:54px;padding:7px 5px}.route-stats strong{margin-top:4px;font-size:12px}
  .route-actions{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;margin:0}.route-start,.route-stop{flex:1;min-height:44px;font-size:12px}.route-pause{min-height:44px}.route-identify{flex:1 0 100%;min-height:46px}.route-clear{flex:none;min-height:44px;font-size:10px}
  .route-privacy{display:none}.route-progress{margin-top:-3px}
  .route-map-shell{order:0;flex:none;height:min(47vh,390px);min-height:280px}.route-map-heading{top:12px;left:12px;right:12px}.route-map-heading>div{padding:8px 11px}.route-map-heading>div strong{font-size:12px}.route-map-heading>div span{font-size:8px}.route-live{padding:7px 9px;font-size:9px}.route-locate{right:12px;bottom:58px}.route-status{left:12px;right:12px;bottom:10px;font-size:10px}
  .route-map-nav{top:auto;bottom:58px;right:12px;min-height:44px;padding:0 12px;font-size:11px}
  .route-locate{left:12px;right:auto;min-height:44px}.route-ip-locate{right:12px;bottom:58px;min-height:44px}.route-zoom{right:12px;bottom:113px}
  .route-tile-notice,.route-preview-warning{top:70px;left:12px;right:12px;max-width:none}
  .route-guide{top:64px;left:12px;right:12px;max-width:none;padding:10px 12px}.route-guide strong{font-size:15px}
}
@media(max-height:680px) and (min-width:681px){.route-tools{gap:11px}.route-header h1{font-size:29px;margin:5px 0}.route-header p{display:none}.route-control-card{padding:13px}.route-control-card>p{min-height:0;margin:5px 0 9px}.route-stats>div{min-height:54px;padding:8px}.route-privacy{display:none}}

/* Map-first navigation: details slide over the map, while active controls stay in reach. */
.route-screen{position:relative;display:block;overflow:hidden}
.route-map-shell{position:absolute;inset:0}
.route-tools{position:absolute;z-index:700;top:68px;bottom:16px;left:16px;width:min(350px,calc(100% - 32px));padding:18px;overflow-y:auto;border:1px solid #e0e9d9;border-radius:19px;background:#f9fbf7f7;box-shadow:0 18px 48px #183d2960;backdrop-filter:blur(16px);transform:translateX(calc(-100% - 30px));visibility:hidden;pointer-events:none;transition:transform .25s ease,visibility .25s ease}
.route-screen.panel-open .route-tools{transform:translateX(0);visibility:visible;pointer-events:auto}
.route-panel-close{position:sticky;z-index:2;top:-18px;align-self:flex-end;min-height:32px;margin:-6px -5px -6px 0;padding:0 10px;border:1px solid #dce7d7;border-radius:9px;background:#fff;color:#3f6849;font-size:11px;font-weight:800;box-shadow:0 4px 12px #1e422715}
.route-tools .route-header h1{margin:8px 0;font-size:24px}.route-tools .route-header h1 br{display:none}.route-tools .route-header p{font-size:11px}
.route-clear{align-self:flex-start;min-height:36px;padding:0 4px}
.route-panel-toggle{position:absolute;z-index:800;top:17px;left:17px;display:flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid #e4eddf;border-radius:13px;background:#fffffff2;color:#214b35;font-size:12px;font-weight:800;box-shadow:0 10px 25px #1e422723;backdrop-filter:blur(12px)}
.route-panel-toggle:hover{background:#f1f9e9}.route-screen.panel-open .route-panel-toggle{opacity:0;pointer-events:none}
.route-map-heading{top:17px;left:170px;right:17px}.route-map-heading>div{max-width:min(300px,calc(100% - 90px))}
.route-stats{position:absolute;z-index:500;bottom:17px;left:17px;width:min(350px,calc(100% - 34px));gap:2px;padding:5px;border:1px solid #e6ede3;border-radius:14px;background:#fffffff2;box-shadow:0 10px 28px #1e422729;backdrop-filter:blur(12px)}
.route-stats>div{min-height:56px;padding:7px 3px;border-radius:9px;background:transparent}.route-stats>div+div{border-left:1px solid #e8efe5;border-radius:0}.route-stats strong{margin-top:4px;font-size:14px}
.route-actions{position:absolute;z-index:500;right:17px;bottom:17px;display:flex;flex-direction:row;align-items:stretch;gap:7px;width:auto;max-width:calc(100% - 385px);margin:0;padding:5px;border:1px solid #e6ede3;border-radius:15px;background:#fffffff2;box-shadow:0 10px 28px #1e422729;backdrop-filter:blur(12px)}
.route-actions>button:not([hidden]){flex:0 1 auto;min-height:54px;white-space:nowrap}.route-start,.route-stop{gap:10px;padding:0 15px;font-size:12px}.route-pause{min-height:54px;padding:0 13px}.route-identify{min-height:54px;padding:0 13px;font-size:12px}
.route-progress{position:absolute;z-index:500;left:17px;bottom:91px;width:min(350px,calc(100% - 34px));padding:8px 12px;border:1px solid #e6ede3;border-radius:11px;background:#fffffff0;box-shadow:0 8px 20px #1e42271d}
.route-progress progress{height:5px;margin-top:5px}
.route-status{top:75px;right:17px;bottom:auto;left:auto;max-width:min(320px,calc(100% - 34px));padding:8px 11px;font-size:10px}
.route-guide{top:76px;left:17px;max-width:min(340px,calc(100% - 360px))}
.route-tile-notice,.route-preview-warning{top:118px;left:17px}
.route-map-nav{display:none!important}
.route-zoom{right:17px;bottom:174px}.route-locate{right:17px;bottom:120px}.route-ip-locate{right:151px;bottom:120px}
.route-explore-popover{bottom:107px;left:17px}
@media(max-width:900px) and (min-width:681px){.route-actions{max-width:calc(100% - 330px)}.route-stats,.route-progress{width:295px}.route-actions>button:not([hidden]){min-height:49px}.route-identify{padding:0 10px}}
@media(max-width:680px){
  .route-screen{height:100%;overflow:hidden}
  .route-map-shell{position:absolute;inset:0;height:auto;min-height:0}
  .route-tools{top:auto;bottom:0;left:0;width:100%;max-height:min(73%,620px);padding:17px 16px calc(22px + env(safe-area-inset-bottom,0px));border-radius:21px 21px 0 0;border-bottom:0;transform:translateY(calc(100% + 12px));box-shadow:0 -14px 40px #173d2a59}
  .route-screen.panel-open .route-tools{transform:translateY(0)}
  .route-panel-close{top:-17px;margin:-4px -3px -4px 0;min-height:38px}
  .route-tools .route-header h1{font-size:21px}.route-tools .route-header p{display:block}
  .route-panel-toggle{top:12px;left:12px;min-height:44px;padding:0 12px;font-size:17px}.route-panel-toggle span{display:none}.route-panel-toggle::after{content:'路线';font-size:12px}
  .route-map-heading{top:12px;left:94px;right:12px}.route-map-heading>div{max-width:calc(100% - 76px);min-height:44px;padding:7px 10px}.route-map-heading>div span{display:none}.route-map-heading>div strong{font-size:11px}.route-live{padding:7px 8px;font-size:9px}
  .route-stats{right:12px;bottom:89px;left:12px;width:auto;padding:3px}.route-stats>div{min-height:48px;padding:5px 2px}.route-stats span{font-size:9px}.route-stats strong{font-size:12px}
  .route-actions{right:12px;bottom:12px;left:12px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:none;width:auto;gap:5px;padding:4px}.route-actions:has(.route-pause:not([hidden])){grid-template-columns:repeat(3,minmax(0,1fr))}
  .route-actions:not(:has(.route-start:not([hidden]),.route-pause:not([hidden]),.route-stop:not([hidden]))) .route-identify{grid-column:1/-1}
  .route-actions>button:not([hidden]){justify-content:center;gap:3px;min-width:0;min-height:55px;padding:0 5px;font-size:11px;white-space:normal;text-align:center}.route-actions .route-start span,.route-actions .route-identify span{display:none}
  .route-progress{right:12px;bottom:155px;left:12px;width:auto}
  .route-status{top:68px;right:12px;left:12px;max-width:max-content;padding:7px 10px;font-size:9px}
  .route-guide{top:108px;right:12px;left:12px;max-width:none;padding:9px 11px}.route-guide strong{font-size:14px}
  .route-tile-notice,.route-preview-warning{top:107px;right:12px;left:12px;max-width:none}
  .route-zoom{right:12px;bottom:211px}.route-locate{right:12px;bottom:158px;left:auto;min-height:44px}.route-ip-locate{right:12px;bottom:305px;min-height:39px}
  .route-explore-popover{bottom:158px;left:12px;width:min(300px,calc(100% - 24px))}
}
@media(max-width:380px){.route-map-heading>div{display:none}.route-actions>button:not([hidden]){font-size:10px}.route-ip-locate{right:12px;bottom:305px}}
@media(prefers-reduced-motion:reduce){.route-tools{transition:none}}

/* Explore starts around the visitor, and route information stays over the map. */
.route-screen:not(.area-ready) .route-map{opacity:0}
.route-nearby-prompt{position:absolute;z-index:490;top:50%;left:50%;transform:translate(-50%,-50%);width:min(330px,calc(100% - 34px));padding:20px;border:1px solid #e4ecdf;border-radius:18px;background:#fffffff2;text-align:center;box-shadow:0 18px 45px #173d2a2f;backdrop-filter:blur(12px)}
.route-nearby-prompt[hidden]{display:none}.route-nearby-prompt strong{display:block;color:#234735;font-size:17px}.route-nearby-prompt p{margin:8px 0 15px;color:#718675;font-size:11px;line-height:1.6}.route-nearby-prompt button{min-height:39px;padding:0 15px;border:0;border-radius:10px;background:#daf291;color:#244a32;font-size:12px;font-weight:800}
.route-panel-toggle small{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:99px;background:#e6f3d0;color:#31573c;font-size:10px}.route-panel-toggle small:empty{display:none}
.route-explore-pin.route-explore-label{display:block;width:auto;max-width:150px;height:auto;min-height:34px;padding:7px 10px;overflow:hidden;border:2px solid #fff;border-radius:10px;background:#244d39;color:#fff;font-size:11px;line-height:1.2;text-align:left;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 5px 17px #173b2866}.route-explore-pin.route-explore-label.candidate-track{background:#b8733e;color:#fff}
.route-explore-pin.approximate{background:#a87939;color:#fff}.route-explore-pin.route-explore-label.approximate{background:#8a673c}
.route-detail{position:absolute;z-index:620;top:143px;right:17px;width:min(365px,calc(100% - 34px));max-height:calc(100% - 255px);overflow-y:auto;padding:17px;border-color:#dce8d3;box-shadow:0 18px 48px #183d2960;backdrop-filter:blur(16px)}
.route-detail-top{align-items:center}.route-detail-top button{display:grid;place-items:center;width:30px;height:30px;border:1px solid #dce8d6;border-radius:9px;background:#f7faf3;color:#45684a;font-size:20px}
.route-detail h2{margin:10px 0 7px;color:#1c4230;font-size:19px;line-height:1.35}.route-detail-source{display:inline-flex;padding:4px 8px;border-radius:6px;background:#eef5e6;color:#53724b;font-size:10px;font-weight:800}
.route-detail .route-detail-map-note{margin:9px 0 3px;padding:8px 10px;border-radius:8px;background:#fff4df;color:#80623b;font-size:10px;line-height:1.5}.route-detail-map-note[hidden]{display:none}
.route-detail>strong{margin-top:10px}.route-detail-use{width:100%;min-height:42px;margin-top:13px;border:0;border-radius:10px;background:#214b36;color:#edf8dc;font-size:12px;font-weight:800}.route-detail-use[hidden]{display:none}
.route-detail-amap{background:#eef4e9;color:#28513b;border:1px solid #b8ceb2}.route-detail-amap:disabled{opacity:.55;cursor:wait}
.route-free-record{display:block;width:100%;min-height:35px;margin-top:8px;border:0;background:transparent;color:#6a806b;font-size:11px;font-weight:800}
.route-screen.explore-mode .route-stats,.route-screen.explore-mode .route-actions{display:none}
.route-screen.explore-mode .route-zoom{bottom:82px}.route-screen.explore-mode .route-locate{bottom:28px}.route-screen.explore-mode .route-ip-locate{bottom:28px}
.route-screen:has(.route-detail:not([hidden])) .route-explore-popover{display:none}
.route-simulation-sample{width:100%;min-height:39px;margin-top:7px;border:1px solid #c7dfa5;border-radius:10px;background:#eff9dc;color:#315a36;font-size:11px;font-weight:800;cursor:pointer}
.route-simulation-note{margin:0;color:#81927e;font-size:10px;line-height:1.6}
.route-simulation-entry{position:absolute;z-index:505;top:118px;right:17px;min-height:42px;padding:0 15px;border:0;border-radius:11px;background:#d8fa66;color:#223d2d;font-size:12px;font-weight:900;box-shadow:0 10px 25px #1e422729;cursor:pointer}
.route-simulation-entry[hidden],.route-simulation-start[hidden]{display:none!important}
.route-screen:has(.route-detail:not([hidden])) .route-simulation-entry{display:none}
.route-simulation-start{min-height:54px;padding:0 14px;border:1px solid #abd372;border-radius:11px;background:#e9f9c0;color:#315633;font-size:12px;font-weight:800;cursor:pointer}
.route-simulation-pin{position:relative;display:block;width:28px;height:28px;white-space:nowrap}.route-simulation-pin-icon{display:grid;place-items:center;width:28px;height:28px;box-sizing:border-box;border:3px solid #fff;border-radius:50%;background:#cf343b;color:#fff;font-size:15px;font-weight:900;box-shadow:0 4px 12px #691d2588}.route-simulation-pin-label{position:absolute;right:34px;top:1px;padding:4px 7px;border:1px solid #e9a4a8;border-radius:7px;background:#fff;color:#a21f29;font-size:11px;font-weight:900;box-shadow:0 3px 10px #691d2522}.route-screen.simulation-active .route-live{color:#416e42}
@media(max-width:680px){
  .route-detail{top:auto;right:0;bottom:0;left:0;width:100%;max-height:min(48%,410px);padding:18px 17px calc(25px + env(safe-area-inset-bottom,0px));border-radius:22px 22px 0 0}
  .route-nearby-prompt{padding:17px}.route-nearby-prompt strong{font-size:15px}
  .route-screen.explore-mode .route-zoom{bottom:72px}.route-screen.explore-mode .route-locate{bottom:18px}.route-screen.explore-mode .route-ip-locate{bottom:166px}
  .route-screen.explore-mode .route-panel-toggle::after{content:'附近'}
  .route-simulation-entry{top:70px;right:12px;min-height:38px;padding:0 11px;font-size:11px}
  .route-simulation-start{min-height:55px;font-size:11px}
}

/* Demo playback uses the same navigation UI; only two compact controls remain. */
.route-demo-tools[hidden],.route-hike-alert[hidden],.route-hike-alert-actions[hidden],.route-hike-alert-actions button[hidden]{display:none!important}
.route-demo-tools{position:absolute;z-index:510;top:75px;right:17px;display:flex;gap:4px;padding:3px;border:1px solid #e4eddf;border-radius:24px;background:#fffffff2;box-shadow:0 4px 12px #1e422715}
.route-demo-tools button{min-height:34px;padding:0 12px;border:0;border-radius:20px;background:transparent;color:#315b3b;font-size:11px;cursor:pointer}
.route-demo-tools button:hover{background:#f1f9e9}.route-demo-tools button:disabled{opacity:.5}
.route-demo-tools #routeSimulationEnd{border-left:1px solid #e4eddf;border-radius:0 20px 20px 0;color:#795346}
.route-hike-alert{margin:6px 0;color:#934b32;font-size:12px;line-height:1.6}
.route-hike-alert-actions{display:flex;gap:7px;margin-top:8px}
.route-hike-alert-actions button{min-height:36px;padding:6px 12px;border:1px solid #dce7d4;border-radius:8px;background:#fff;color:#315b3b;font-size:11px;cursor:pointer}
.route-hike-alert-actions #routeSimulationResolve{background:#244c36;color:#fff;border-color:#244c36}
.route-screen.simulation-active .route-status[data-tone="ok"]{display:none}
@media(max-width:680px){
  .route-demo-tools{top:68px;right:12px}
  .route-screen.simulation-active .route-guide{top:118px;bottom:auto;max-width:none}
  .route-screen.simulation-active .route-status{top:auto;bottom:222px}
}

.route-discovery-pin { position:relative; display:block; width:54px; height:62px; padding:0; border:0; background:transparent; cursor:pointer; isolation:isolate; }
.route-discovery-pin>img,.rdp-back { position:absolute; top:3px; left:4px; width:46px; height:46px; border:3px solid white; border-radius:12px; background:#f3f6eb; box-shadow:0 3px 12px #24391b30; box-sizing:border-box; }
.route-discovery-pin>img { object-fit:cover; z-index:3; }
.rdp-back { z-index:1; }
.rdp-back-one { transform:translate(3px,-3px) rotate(10deg); background:#e7f2d6; z-index:2; }
.rdp-back-two { transform:translate(-3px,-6px) rotate(-9deg); }
.rdp-star { position:absolute; z-index:4; left:17px; bottom:0; display:grid; place-items:center; width:22px; height:22px; border:2px solid white; border-radius:50%; background:#d8fb79; color:#4f681b; font-size:13px; line-height:1; box-shadow:0 2px 5px #1e321c30; box-sizing:border-box; }
.rdp-count { position:absolute; top:-3px; right:-2px; z-index:5; min-width:21px; height:21px; padding:0 5px; display:grid; place-items:center; border:2px solid white; border-radius:20px; background:#253f30; color:white; font-size:10px; font-weight:700; box-sizing:border-box; }
.route-discovery-pin:focus-visible { outline:3px solid #73973b; outline-offset:5px; border-radius:12px; }
.route-discovery-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.route-discovery-list button { padding:0 0 10px; overflow:hidden; border:1px solid #e8ebdf; border-radius:16px; background:#fafbf6; color:#222; font:inherit; font-size:13px; text-align:left; cursor:pointer; }
.route-discovery-list img { display:block; width:100%; aspect-ratio:1; object-fit:cover; margin-bottom:9px; }
.route-discovery-list strong { display:block; padding:0 10px; font-size:13px; }
