html.tm:root{color-scheme:light;--bg:#fff;--paper:#fff;--ink:#191F28;--muted:#8B95A1;--line:#E5E8EB;--soft:#F2F4F6;--blue:#3182F6;--accent:#3182F6}
.tm{height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:#fff}
.tm .stage{position:relative;flex:1;min-height:0}
.tm .basemap{position:absolute;inset:0;background:#f2f4f6;z-index:0}
.tm .tap-hd{background:#fff;border-bottom:1px solid #eee}
.tm .tap-hd__in{max-width:none;height:48px;padding:0 16px;align-items:center}
.tm .tap-hd__svc{order:-1;display:inline-flex;align-items:center;gap:7px;margin:0;padding:0;border-radius:0;background:none;color:#191F28;font-size:18px;font-weight:800;letter-spacing:-.04em}
.tm .tap-hd__svc:hover{background:none;color:#191F28}
.tm .tap-hd__svc::before{content:"";width:16px;height:16px;border-radius:50% 50% 50% 0;background:#3182F6;transform:rotate(-45deg)}
.tm .tap-hd__brand{margin-left:auto;font-size:13px;font-weight:700;letter-spacing:.04em;color:#8B95A1}
.tm .leaflet-container{font-family:inherit;background:#f2f4f6}
.tm .leaflet-tile-pane{filter:saturate(.62) contrast(1.04)}
.tm .leaflet-control-zoom{border:0;border-radius:12px;overflow:hidden;box-shadow:0 8px 24px rgba(16,21,26,.18)}
.tm .leaflet-control-zoom a{width:40px;height:40px;line-height:40px;color:var(--ink);background:var(--paper);border-bottom-color:var(--line)}
.tm .leaflet-control-attribution{background:color-mix(in srgb,var(--paper) 88%,transparent);color:var(--muted);font-size:11px;max-width:min(70vw,420px)}
.tm .leaflet-control-attribution a{color:inherit}

.tm .door{display:none}
.tm .door-place{padding:18px 20px 14px}
.tm .door-place h2{margin:0;font-size:22px;font-weight:800;letter-spacing:-.04em;line-height:1.3}
.tm .door-place p{margin:6px 0 0;color:#8B95A1;font-size:13px}
.tm .door-sec{border-top:8px solid #F2F4F6;padding:14px 0 8px}
.tm .door-sec h3{margin:0;padding:0 20px 8px;color:#8B95A1;font-size:13px;font-weight:700}
.tm .door-list{list-style:none;margin:0;padding:0}
.tm .door-list button{width:100%;border:0;background:none;text-align:left;cursor:pointer;padding:11px 20px;display:flex;flex-direction:column;gap:2px}
.tm .door-list button:hover{background:#F2F4F6}
.tm .door-list b{font-size:15px;font-weight:700;letter-spacing:-.02em}
.tm .door-list small{color:#8B95A1;font-size:12px}
.tm .door-empty{margin:0;padding:4px 20px 12px;color:#8B95A1;font-size:14px}
.tm .side-brand{display:none}
.tm .side{position:absolute;z-index:500;top:12px;left:12px;width:min(400px,calc(100% - 24px));display:grid;gap:8px;align-content:start}
.tm .find,.tm .route{display:flex;align-items:center;gap:8px;background:#fff;border-radius:12px;box-shadow:0 1px 2px rgba(0,0,0,.06),0 8px 24px rgba(16,21,26,.12);padding:8px 8px 8px 14px;min-height:56px}
.tm .find input,.tm .pts input{width:100%;border:0;background:transparent;color:var(--ink);font-size:16px;font-weight:600;outline:none;min-width:0}
.tm .find input::placeholder,.tm .pts input::placeholder{color:var(--muted);font-weight:500}
.tm .mode,.tm .go{flex:none;height:44px;padding:0 16px;border:0;border-radius:10px;background:#191F28;color:#fff;font-size:15px;font-weight:700;cursor:pointer}
.tm .mode:active,.tm .go:active{transform:scale(.98)}
.tm .route{padding-left:6px;align-items:stretch}
.tm .back,.tm .swap{flex:none;width:44px;height:44px;border:0;border-radius:10px;background:transparent;color:var(--ink);cursor:pointer;display:grid;place-items:center}
.tm .back svg,.tm .swap svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tm .swap{transition:transform .45s var(--ease-pop)}
.tm .swap.flipped{transform:rotate(180deg)}
.tm .pts{flex:1;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 40px;align-items:center;position:relative}
.tm .pts::before{content:"";position:absolute;left:4px;top:18px;bottom:18px;width:2px;border-radius:1px;background:var(--line)}
.tm .pts input{grid-column:1;height:40px;padding-left:16px}
.tm .swap{grid-column:2;grid-row:1 / span 2;width:40px;height:40px;justify-self:center}

.tm .sheet{background:var(--paper);border-radius:16px;box-shadow:0 12px 32px rgba(16,21,26,.16);max-height:min(58vh,560px);overflow:auto}
.tm .mag{display:grid;place-items:center;width:18px;height:18px;flex:none;color:#8B95A1}
.tm .mag svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.tm .qback,.tm .cancel{display:none}
.tm .qback{width:36px;height:36px;border:0;background:none;color:#191F28;padding:0}
.tm .qback svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tm .cancel{border:0;background:none;color:#191F28;font-weight:600;font-size:15px;padding:0 8px 0 4px;white-space:nowrap}
.tm .cats{display:none;gap:6px;overflow:auto;padding:2px 12px 8px;scrollbar-width:none}
.tm .cats::-webkit-scrollbar{display:none}
.tm .cats button{flex:1 0 56px;max-width:72px;height:68px;border:1px solid #eee;border-radius:12px;background:#fff;color:#191F28;font-size:12px;font-weight:600;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:0}
.tm .cats svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tm .cats button:nth-child(1){color:#E07A3D}
.tm .cats button:nth-child(2){color:#C4784A}
.tm .cats button:nth-child(3){color:#D4A017}
.tm .cats button:nth-child(4){color:#8B6BB5}
.tm .cats button:nth-child(5){color:#E25B5B}
.tm .cats button:nth-child(6){color:#3D6FDB}
.tm .cats button span{color:#191F28}
.tm .empty{min-height:240px;display:grid;place-items:center;align-content:center;gap:12px;color:var(--muted);text-align:center}
.tm .empty p{margin:0}
.tm .glass{width:54px;height:54px;border:3px solid var(--line);border-radius:50%;position:relative}
.tm .glass::after{content:"";position:absolute;width:16px;height:3px;background:var(--line);right:-8px;bottom:6px;transform:rotate(40deg);border-radius:2px}
.tm .card{padding:2px 4px 8px;border-bottom:1px solid var(--line)}
.tm .card .row{display:flex}
.tm .card .row button{flex:1;height:48px;border:0;border-top:1px solid var(--line);background:none;color:var(--ink);font-size:15px;font-weight:650;cursor:pointer}
.tm .card .row button + button{border-left:1px solid var(--line)}
.tm .ln{margin:8px 14px 0;font-size:13px;font-weight:700}
.tm .rail{display:flex;overflow:auto;padding:8px 14px 12px;scrollbar-width:none}
.tm .rail span{position:relative;flex:none;min-width:56px;text-align:center;font-size:12px;color:var(--muted)}
.tm .rail span::before{content:"";position:absolute;z-index:0;top:4px;left:50%;width:100%;height:3px;background:var(--c,var(--line));opacity:.7}
.tm .rail span:last-child::before{display:none}
.tm .rail span i{position:relative;z-index:1;display:block;width:10px;height:10px;margin:0 auto 6px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px var(--c,var(--line))}
.tm .rail span.on{color:var(--ink);font-weight:700}
.tm .rail span.on i{background:var(--c,var(--ink))}
.tm .hits,.tm .steps{list-style:none;margin:0;padding:6px}
.tm .hits button,.tm .hit{width:100%;border:0;background:none;color:inherit;text-align:left;font:inherit;cursor:pointer;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.tm .hits button[aria-selected="true"],.tm .hits button:hover{background:var(--soft)}
.tm .hits b,.tm .place h2{font-size:15px;letter-spacing:-.02em}
.tm .hits small,.tm .sub{color:var(--muted);font-size:12px}
.tm .place{padding:14px 14px 12px;display:grid;gap:8px}
.tm .place h2{margin:0;font-size:22px;line-height:1.3;letter-spacing:-.02em}
.tm .acts{display:flex;flex-wrap:wrap;gap:8px}
.tm .acts button,.tm .ghost{height:44px;padding:0 18px;border-radius:10px;border:1px solid var(--line);background:transparent;color:inherit;cursor:pointer;font-size:15px;font-weight:600}
.tm .acts button:hover,.tm .ghost:hover{background:var(--soft)}
.tm .sum{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:14px 14px 0}
.tm .sum b{font-size:32px;letter-spacing:-.03em;line-height:1}
.tm .sum span,.tm .when{color:var(--muted);font-size:13px}
.tm .when{margin:0;padding:0 14px}
.tm .bar{display:flex;height:8px;border-radius:4px;overflow:hidden;gap:2px;margin:10px 14px 0}
.tm .bar i{display:block;height:100%;min-width:0;flex:var(--w,1) 1 0;border-radius:3px;transform-origin:left;animation:barIn .6s var(--ease-out) both;animation-delay:calc(.08s + var(--k,0) * 60ms)}
.tm .bar .w{background:var(--muted);opacity:.72}
.tm .bar .t{background:var(--warm)}
.tm .bar .r{background:var(--blue)}
.tm .bar .x{background:var(--accent)}
.tm .steps{padding-top:4px}
.tm .steps li{display:grid;grid-template-columns:14px 1fr auto;gap:8px;align-items:center;min-height:36px;padding:2px 8px}
.tm .steps .nd{width:10px;height:10px;border-radius:50%;background:var(--c,var(--muted))}
.tm .steps .tx{font-size:14px;font-weight:600;letter-spacing:-.01em}
.tm .steps .min{font-size:12px;font-weight:700;color:var(--muted)}
.tm .foot{display:flex;gap:6px;padding:0 14px 14px}
.tm .err{margin:0;padding:14px;color:var(--danger);font-size:14px}
.tm .sk{display:block;height:12px;border-radius:6px;background:linear-gradient(90deg,var(--soft) 0%,var(--line) 45%,var(--soft) 90%);background-size:220% 100%;animation:shimmer 1.2s linear infinite}
.tm .hits .sk{margin:8px 12px}
.tm .pin{background:transparent;border:0}
.tm .pin svg{display:block;width:24px;height:32px;filter:drop-shadow(0 2px 3px rgba(16,21,26,.28))}
.tm .pin path{fill:#191F28}
.tm .pin.end path{fill:#3182F6}
.tm .me{background:transparent;border:0}
.tm .me i{display:block;width:14px;height:14px;border-radius:50%;background:var(--blue);box-shadow:0 0 0 6px color-mix(in srgb,var(--blue) 28%,transparent)}

.tm .loc{position:absolute;z-index:500;right:16px;bottom:28px;width:44px;height:44px;border:0;border-radius:12px;background:var(--paper);color:var(--ink);box-shadow:0 8px 24px rgba(16,21,26,.18);cursor:pointer;display:grid;place-items:center}
.tm .loc svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.tm .loc:active{transform:scale(.96)}
.tm .loadbar{position:absolute;left:0;right:0;top:0;height:3px;z-index:600;overflow:hidden;opacity:0;pointer-events:none;transition:opacity .25s var(--ease-out)}
.tm .loadbar.on{opacity:1}
.tm .loadbar i{position:absolute;top:0;bottom:0;left:0;width:40%;background:var(--ink);animation:lb 1s var(--ease-io) infinite}
.tm .toast{position:absolute;z-index:600;left:50%;bottom:24px;transform:translate(-50%,10px);opacity:0;background:var(--ink);color:var(--paper);padding:10px 14px;border-radius:10px;font-size:14px;pointer-events:none;transition:opacity .25s var(--ease-out),transform .3s var(--ease-pop)}
.tm .toast.show{opacity:1;transform:translate(-50%,0)}
@keyframes shimmer{to{background-position:-220% 0}}
@keyframes lb{from{transform:translateX(-100%)}to{transform:translateX(260%)}}
@keyframes barIn{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.tm dialog.sheet:not([open]){display:none!important}
.tm dialog.sheet[open]{display:block}
.tm dialog.sheet{padding:0;border:0;margin:0;background:transparent;width:100%;height:100%;max-width:none;max-height:none;overflow:hidden}
.tm dialog.sheet::backdrop{background:transparent}
.tm dialog .overlay{position:fixed;inset:0;background:rgba(0,0,0,.72);animation:fade .25s var(--ease-out) both}
.tm dialog .panel{position:fixed;left:50%;top:50%;width:calc(100% - 32px);max-width:480px;max-height:calc(100% - 48px);overflow:auto;transform:translate(-50%,-50%);background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:14px;box-shadow:0 24px 60px rgba(0,0,0,.28);padding:24px;display:flex;flex-direction:column;gap:0;animation:zoomIn .3s var(--ease-out) both;overscroll-behavior:contain}
.tm dialog .panel.settled{animation:none}
.tm dialog.closing .overlay{animation:fadeOut .2s var(--ease-io) both}
.tm dialog.closing .panel{animation:zoomOut .2s var(--ease-io) both}
.tm dialog .handle{display:none}
.tm dialog .x{position:absolute;right:14px;top:14px;width:36px;height:36px;border:0;border-radius:8px;background:transparent;cursor:pointer;display:grid;place-items:center;color:var(--muted)}
.tm dialog .x:hover{background:var(--soft)}
.tm dialog .x svg{width:16px;height:16px}
.tm dialog .route{position:sticky;top:0;z-index:2;border-radius:0;box-shadow:none;background:#fff;border-bottom:1px solid var(--line)}
.tm dialog #sheet{box-shadow:none;border-radius:0;max-height:none;overflow:visible}
@keyframes zoomIn{from{opacity:0;transform:translate(-50%,-48%) scale(.95)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes zoomOut{from{opacity:1;transform:translate(-50%,-50%) scale(1)}to{opacity:0;transform:translate(-50%,-48%) scale(.95)}}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes fadeOut{from{opacity:1}to{opacity:0}}
@keyframes sheetIn{from{transform:translateY(100%)}to{transform:none}}
@keyframes sheetOut{from{transform:translateY(var(--dy,0px))}to{transform:translateY(100%)}}
@media (max-width:720px){
  .tm .leaflet-control-zoom{display:none}
  .tm.is-search .tap-hd,.tm.is-search .basemap,.tm.is-search .loc,.tm.is-search .leaflet-control{display:none}
  .tm .side{top:10px;left:12px;right:12px;width:auto}
  body.tm:not(.is-search) .find{border-radius:12px;background:#fff;padding:4px 8px 4px 14px;box-shadow:0 1px 2px rgba(0,0,0,.04),0 6px 16px rgba(16,21,26,.08)}
  .tm.is-search .mag{display:none}
  .tm.is-search .side{position:fixed;inset:0;z-index:800;width:auto;top:0;left:0;right:0;height:100%;background:#fff;padding:calc(8px + env(safe-area-inset-top)) 0 0;grid-template-rows:auto auto minmax(0,1fr);align-content:start}
  .tm.is-search .find{border-radius:0;box-shadow:none;background:transparent;padding:4px 4px 4px 2px;min-height:0}
  .tm.is-search .find input{background:#F2F4F6;border-radius:999px;height:44px;padding:0 14px;font-weight:500}
  .tm.is-search .qback,.tm.is-search .cancel{display:grid}
  .tm.is-search .cancel{display:inline-flex;align-items:center;height:44px}
  .tm.is-search .mode{display:none}
  .tm.is-search .cats{display:flex;gap:8px;padding:2px 16px 12px;overflow-x:auto}
  .tm.is-search .cats button{flex:none;width:64px;max-width:none;height:72px;border:0;border-radius:14px;background:#F2F4F6}
  .tm.is-search .sheet{max-height:none;height:auto;min-height:0;overflow:auto;border-radius:0;box-shadow:none;background:#fff;align-self:stretch}
  .tm.is-search .empty{height:100%;min-height:100%}
  .tm.is-search .card{padding:0;border-bottom:8px solid #F2F4F6}
  .tm.is-search .hits{padding:0}
  .tm.is-search .hits [role="option"]{padding:16px 20px 14px;border-radius:0}
  .tm.is-search .hits [role="option"]:hover,.tm.is-search .hits [role="option"]:active{background:#F2F4F6}
  .tm.is-search .hits b{font-size:17px;font-weight:700;letter-spacing:-.03em;line-height:1.35}
  .tm.is-search .hits small{margin-top:2px;font-size:13px;line-height:1.35;color:#8B95A1}
  .tm.is-search .card .row button{height:46px;padding:0;border:0;border-radius:0;border-top:1px solid #E5E8EB;font-size:15px;color:#4E5968;font-weight:600}
  .tm.is-search .card .row button + button{border-left:1px solid #E5E8EB}
  .tm.is-search .card .row button:hover,.tm.is-search .card .row button:active{background:#F2F4F6}
  .tm.is-route:not(.is-result) .side{top:0;left:0;right:0;width:auto;display:flex;flex-direction:column;gap:0}
  .tm.is-route .route{order:-1}
  .tm.is-route .go{display:none}
  .tm.is-route .route{align-items:center;gap:6px;padding:8px 10px 8px 4px;border-radius:16px 16px 0 0;box-shadow:none}
  .tm.is-route .pts{display:grid;grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr);grid-template-rows:auto;gap:6px;align-items:center}
  .tm.is-route .pts::before{display:none}
  .tm.is-route .pts input{grid-row:1;height:40px;padding:0 12px;background:#F2F4F6;border-radius:999px;font-weight:600}
  .tm.is-route #from{grid-column:1}
  .tm.is-route #to{grid-column:3}
  .tm.is-route .swap{grid-column:2;grid-row:1;width:32px;height:32px}
  .tm.is-result .side .route{display:none}
  .tm dialog .panel{left:0;right:0;top:auto;bottom:0;z-index:2;width:100%;max-width:none;height:78%;max-height:78%;transform:none;border-radius:18px 18px 0 0;border-bottom:0;padding:0 0 calc(12px + env(safe-area-inset-bottom));animation:sheetIn .45s var(--ease-out) both;touch-action:pan-y;transition:height .45s var(--ease-out),max-height .45s var(--ease-out),border-radius .45s var(--ease-out)}
  .tm dialog .panel.full{height:100%;max-height:100%;border-radius:0;padding-top:env(safe-area-inset-top)}
  .tm dialog .panel.peek{height:112px;max-height:112px;overflow:hidden}
  .tm.is-route dialog.sheet,.tm.is-route dialog.sheet::backdrop,.tm.is-route dialog .overlay{pointer-events:none;background:transparent}
  .tm.is-route dialog .panel{pointer-events:auto}
  .tm dialog .panel.dragging{transition:none}
  .tm dialog.closing .panel{animation:sheetOut .28s var(--ease-io) both}
  .tm dialog .handle{display:flex;align-items:center;justify-content:center;width:100%;height:28px;margin:0;border-radius:0;background:#fff;position:sticky;top:0;z-index:4;touch-action:none;flex:none;cursor:grab}
  .tm dialog .handle::before{content:"";width:44px;height:5px;border-radius:3px;background:var(--line)}
  .tm dialog .x{display:none}
  .tm .loc{left:12px;right:auto;top:78px;bottom:auto;background:#fff}
  body.tm:not(.is-search):not(.is-route) .side{display:flex;flex-direction:column;gap:0}
  body.tm:not(.is-search):not(.is-route) .find{border-radius:16px 16px 0 0;box-shadow:none;background:#fff}
  body.tm:not(.is-search):not(:has(#sheet:not([hidden]))) .cats{display:flex;position:static;width:auto;max-width:none;overflow-x:auto;flex-wrap:nowrap;margin:0;padding:0 10px 10px;gap:6px;background:#fff;border-radius:0 0 16px 16px;box-shadow:0 8px 24px rgba(16,21,26,.12)}
  body.tm:not(.is-search):not(:has(#sheet:not([hidden]))) .cats button{flex:none;flex-direction:row;width:auto;max-width:none;height:32px;padding:0 10px;border:0;border-radius:999px;gap:6px;background:#F2F4F6;box-shadow:none;white-space:nowrap}
  body.tm:not(.is-search):not(:has(#sheet:not([hidden]))) .cats svg{width:16px;height:16px}
  body.tm.is-route:not(.is-search):has(#sheet:not([hidden])) .cats{display:flex;position:absolute;top:10px;left:12px;right:12px;width:auto;max-width:none;overflow-x:auto;flex-wrap:nowrap;margin:0;padding:8px;gap:6px;background:#fff;border-radius:16px;box-shadow:0 8px 24px rgba(16,21,26,.12);z-index:500}
  body.tm.is-route:not(.is-search):has(#sheet:not([hidden])) .cats button{flex:none;flex-direction:row;width:auto;max-width:none;height:32px;padding:0 10px;border:0;border-radius:999px;gap:6px;background:#F2F4F6;box-shadow:none;white-space:nowrap}
  body.tm:not(.is-search):not(.is-result):not(:has(#sheet:not([hidden]))) .door{display:flex;flex-direction:column;position:fixed;left:0;right:0;bottom:0;z-index:450;height:40vh;max-height:40vh;overflow:auto;overscroll-behavior:contain;background:#fff;border-radius:18px 18px 0 0;box-shadow:0 -8px 24px rgba(16,21,26,.12);padding:0 0 calc(8px + env(safe-area-inset-bottom));touch-action:pan-y;transition:height .45s var(--ease-out),max-height .45s var(--ease-out),border-radius .45s var(--ease-out)}
  body.tm:not(.is-search):not(.is-result):not(:has(#sheet:not([hidden]))) .door.full{height:100%;max-height:100%;border-radius:0;padding-top:env(safe-area-inset-top)}
  body.tm:not(.is-search):not(.is-result):not(:has(#sheet:not([hidden]))) .door.peek{height:108px;max-height:108px}
  body.tm:not(.is-search):not(.is-result):not(:has(#sheet:not([hidden]))) .door.dragging{transition:none}
  body.tm:not(.is-search):not(.is-result):not(:has(#sheet:not([hidden]))) .door .handle{display:flex;align-items:center;justify-content:center;position:sticky;top:0;z-index:2;height:28px;background:#fff;flex:none;touch-action:none;cursor:grab}
  body.tm:not(.is-search):not(.is-result):not(:has(#sheet:not([hidden]))) .door .handle::before{content:"";width:36px;height:4px;border-radius:3px;background:#E5E8EB}
  body.tm:not(.is-search):not(.is-result):not(:has(#sheet:not([hidden]))) .door-place{touch-action:none}
  body.tm:not(.is-search):not(.is-result):not(:has(#sheet:not([hidden]))) .leaflet-bottom{bottom:var(--door-h,40vh);transition:bottom .45s var(--ease-out)}
  body.tm:not(.is-search):not(.is-result):not(:has(#sheet:not([hidden]))) .loc{left:12px;right:auto;top:auto;bottom:calc(var(--door-h, 40vh) + 28px);transition:bottom .45s var(--ease-out)}
  body.tm.is-door-drag .leaflet-bottom,body.tm.is-door-drag .loc{transition:none}
  body.tm.is-door-full:not(.is-search):not(.is-result) .leaflet-bottom,body.tm.is-door-full:not(.is-search):not(.is-result) .loc{opacity:0;pointer-events:none}
  body.tm:not(.is-search):not(.is-route) .mode{background:#3182F6}
}
@media (min-width:721px){
  body.tm:not(:has(.tm-doc)) .tap-hd{display:none}
  .tm .stage{display:grid;grid-template-columns:400px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
  .tm .basemap{position:relative;inset:auto;grid-column:2;grid-row:1;height:100%;min-height:0}
  .tm .side{position:relative;top:auto;left:auto;grid-column:1;grid-row:1;width:auto;height:100%;display:flex;flex-direction:column;gap:0;background:#fff;border-right:1px solid #eee;z-index:2;overflow:hidden;align-content:stretch}
  .tm .side-brand{display:flex;align-items:center;height:52px;padding:0 16px;border-bottom:1px solid #eee;flex:none}
  .tm .side-brand__name{display:inline-flex;align-items:center;gap:8px;color:#191F28;font-size:18px;font-weight:800;letter-spacing:-.04em;text-decoration:none}
  .tm .side-brand__name::before{content:"";width:16px;height:16px;border-radius:50% 50% 50% 0;background:#3182F6;transform:rotate(-45deg)}
  .tm .side-brand__home{margin-left:auto;color:#8B95A1;font-size:13px;font-weight:700;letter-spacing:.04em;text-decoration:none}
  .tm .find{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;margin:0;padding:14px 16px;border:0;border-radius:0;box-shadow:none;background:#fff;min-height:0}
  .tm .find .mag{grid-column:1;grid-row:1;justify-self:start;margin-left:12px;z-index:1;pointer-events:none}
  .tm .find input{grid-column:1;grid-row:1;height:46px;padding:0 14px 0 40px;background:#F2F4F6;border-radius:10px;font-weight:500}
  .tm .find .mode{grid-column:2;grid-row:1;height:46px;padding:0 14px;border-radius:10px;background:#3182F6}
  .tm .route{display:grid;grid-template-columns:40px minmax(0,1fr) max-content;align-items:center;gap:8px;margin:0;padding:10px 12px;border:0;border-bottom:1px solid #eee;border-radius:0;box-shadow:none;background:#fff;min-height:0}
  .tm .go{height:44px;padding:0 14px;border-radius:10px;background:#3182F6;align-self:center;white-space:nowrap}
  .tm .door{display:block;flex:1;min-height:0;overflow:auto;background:#fff;position:static;height:auto;max-height:none;border-radius:0;box-shadow:none;padding:0}
  .tm .door::before,.tm .door .handle{display:none}
  .tm.is-search .door,.tm.is-result .door,body.tm:has(#sheet:not([hidden])) .door{display:none}
  .tm.is-route .side-brand{order:-2}
  .tm.is-route .route{order:-1}
  .tm .door-place{padding:22px 20px 16px}
  .tm .sheet{flex:1;max-height:none;border-radius:0;box-shadow:none;background:#fff}
  .tm .sheet:not([hidden]){display:block}
  .tm .sum{padding:18px 16px 0}
  .tm .sum b{font-size:36px}
  .tm .when{padding:4px 16px 0}
  .tm .bar{margin:12px 16px 4px;height:10px}
  .tm .steps{padding:8px 8px 16px}
  .tm .steps li{min-height:40px}
  .tm .cats{display:flex;flex-wrap:wrap;position:fixed;top:16px;left:416px;right:auto;width:max-content;max-width:calc(100vw - 448px);z-index:500;padding:0;gap:8px;overflow:visible}
  .tm .cats button{flex:none;flex-direction:row;width:auto;max-width:none;height:40px;padding:0 14px;border-radius:999px;gap:6px;background:#fff;box-shadow:0 2px 10px rgba(16,21,26,.12);white-space:nowrap}
  .tm .cats svg{width:18px;height:18px}
  .tm.is-route .cats{display:flex}
  .tm .leaflet-control-zoom{margin-right:16px;margin-bottom:16px}
  .tm .loc{right:16px;bottom:128px;left:auto;top:auto}
  .tm dialog.sheet,.tm dialog.sheet[open]{display:none!important}
}
@media (prefers-reduced-motion:reduce){
  .tm .bar i,.tm .sk,.tm .loadbar i,.tm .swap{animation:none;transition:none}
}

.tm-doc{padding-top:18px;padding-bottom:48px}
.tm-kicker{margin:0;color:var(--muted);font-size:13px;font-weight:600}
.tm-doc h1{margin:2px 0 6px;font-size:clamp(28px,5vw,36px);letter-spacing:-.04em;line-height:1.15}
.tm-lead,.tm-note{margin:0 0 12px;color:var(--muted);max-width:40em;font-size:15px;line-height:1.55}
.tm-link{color:var(--blue);font-weight:600;text-decoration:none}
.tm-link:hover{text-decoration:underline}
.tm-doc h2{margin:28px 0 8px;font-size:18px}
.tm-eps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.tm-eps li{display:flex;flex-direction:column;gap:2px;background:var(--paper);border-radius:12px;padding:12px 14px}
.tm-verb{font-size:12px;font-weight:700;color:var(--blue)}
.tm code,.tm-pre{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px}
.tm-pre{background:var(--ink);color:var(--paper);border-radius:12px;padding:14px;overflow:auto}
body.tm:has(.tm-doc){height:auto;overflow:auto;display:block}
