:root {
  color-scheme: light;
  --bg:#f3f4f3; --panel:#fff; --text:#202321; --muted:#6f7571;
  --border:#dddfdd; --accent:#202321; --bike:#138660; --bus:#3277e3;
  --tram:#e35b55; --rail:#8c5bd7; --walk:#858b95; --danger:#b42318;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;background:var(--bg);color:var(--text)}
body{overscroll-behavior:none}
button,input,select{font:inherit} button{cursor:pointer}
.app-shell{display:grid;grid-template-columns:370px minmax(0,1fr);height:100vh;overflow:hidden}
.sidebar{position:relative;z-index:3;overflow-y:auto;border-right:1px solid var(--border);padding:14px}
.brand{display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center;padding:2px 3px 13px}
.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:8px;background:var(--accent);color:#fff;font-size:18px;font-weight:750}
.brand-title{font-size:16px;font-weight:730;letter-spacing:-.02em}
.brand-subtitle{margin-top:2px;color:var(--muted);font-size:12px}
.status-dot{width:10px;height:10px;border-radius:50%;background:#c9cdd3;box-shadow:0 0 0 4px rgba(201,205,211,.18)}
.status-dot.ok{background:#19a66e;box-shadow:0 0 0 4px rgba(25,166,110,.15)}
.status-dot.bad{background:#d64545;box-shadow:0 0 0 4px rgba(214,69,69,.12)}
.planner-card,.route-card{
  background:var(--panel);border:1px solid var(--border);border-radius:12px;
  box-shadow:0 1px 2px rgba(20,24,31,.04)
}
.planner-card{padding:16px}
.mobile-close-search,.mobile-planner-handle,.mobile-planner-title,.mobile-open-planner{display:none}
.location-block{display:grid;grid-template-columns:20px 1fr;gap:8px}
.location-rail{display:flex;flex-direction:column;align-items:center;padding-top:31px}
.location-dot{display:block;width:9px;height:9px;border:2px solid var(--accent);border-radius:50%;background:#fff;flex:0 0 auto}
.destination-dot{background:var(--accent)}
.location-line{width:1px;height:86px;margin:4px 0;background:#d9dde3}
.location-fields{display:grid;gap:13px}.location-field{position:relative}
.field-topline{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}
label,.profile-label{color:#4d535d;font-size:12px;font-weight:650}
.map-pick,.text-button{border:0;background:transparent;color:#59606b;font-size:12px;padding:2px 0}
.map-pick.active{color:var(--bike);font-weight:700}
.search-row{display:grid;grid-template-columns:1fr 38px;border:1px solid #dcdfe4;border-radius:8px;overflow:hidden;background:#fbfbfc}
.search-row:focus-within{border-color:#9da3ad;box-shadow:0 0 0 3px rgba(18,20,23,.06)}
.search-row input{min-width:0;height:40px;border:0;outline:0;padding:0 11px;background:transparent;color:var(--text)}
.search-button{border:0;border-left:1px solid #e1e3e7;background:#f5f6f8;color:#4a505a;font-size:19px}
.coords{margin-top:5px;color:#9499a2;font-size:11px;font-variant-numeric:tabular-nums}
.search-results{position:absolute;z-index:15;top:70px;left:0;right:0;overflow:hidden;border:1px solid var(--border);border-radius:12px;background:#fff;box-shadow:0 14px 40px rgba(20,24,31,.14)}
.search-result{display:block;width:100%;padding:10px 12px;border:0;border-bottom:1px solid #eeeef0;background:#fff;text-align:left;color:#2e3238;font-size:12px;line-height:1.35}
.search-result:last-child{border-bottom:0}.search-result:hover{background:#f6f7f8}
.separator{height:1px;margin:16px -16px;background:var(--border)}
.segments{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;margin-top:7px;padding:3px;border-radius:11px;background:#eef0f2}
.segments button{border:0;border-radius:8px;background:transparent;padding:8px 6px;color:#666d77;font-size:12px;font-weight:650}
.segments button.active{background:#fff;color:#16181c;box-shadow:0 1px 5px rgba(20,24,31,.1)}
.controls-grid{display:grid;grid-template-columns:1fr;gap:10px;margin-top:14px}
.controls-grid>div{display:grid;gap:5px}
.controls-grid input,.controls-grid select{width:100%;height:39px;border:1px solid #dcdfe4;border-radius:8px;outline:none;background:#fbfbfc;padding:0 9px;color:#33383f;font-size:12px}
.primary-button{width:100%;height:44px;margin-top:14px;border:0;border-radius:8px;background:var(--accent);color:#fff;font-weight:700}
.primary-button:hover{opacity:.92}.primary-button:disabled{cursor:default;opacity:.55}
.error-message{margin-top:10px;border-radius:10px;background:#fff0ee;padding:9px 10px;color:var(--danger);font-size:12px;line-height:1.4}
.results-section{position:relative;padding:10px 1px 24px}
.results-sheet-top{display:flex;justify-content:flex-end;min-height:28px;padding:0 3px 5px}
.results-sheet-handle{display:none}
.results-clear-button{
  display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid #e0e2e0;
  border-radius:50%;background:#fff;color:#666c68;font-size:15px;line-height:1
}
.route-list{display:grid;gap:6px}
.route-card{
  display:grid;gap:6px;width:100%;min-height:78px;padding:9px 11px;
  border-radius:9px;text-align:left;
  color:inherit;transition:border-color .12s ease,background .12s ease
}
.route-card:hover{border-color:#bfc4cb;background:#fcfcfd}
.route-card.active{border-color:#252a27;background:#fafbfa;box-shadow:inset 3px 0 0 #252a27}
.compact-route-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.compact-route-top strong{font-size:17px;font-weight:790;letter-spacing:-.035em}
.compact-route-top span{color:#7a818b;font-size:9px;white-space:nowrap}
.compact-route-metrics{display:flex;gap:6px;min-width:0}
.compact-route-metrics span{
  min-width:0;padding:1px 0;border-radius:0;background:transparent;font-size:10px;font-weight:700;
  white-space:nowrap
}
.compact-route-metrics span+span{margin-left:2px;padding-left:8px;border-left:1px solid #dfe2df}
.bike-metric{color:#167b59}
.transit-metric{color:#2f65ac}
.compact-route-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;min-width:0}
.compact-route-lines{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#666e79;
  font-size:9px;font-weight:650
}
.compact-route-tags{display:flex;gap:4px;flex:0 0 auto}
.compact-route-tag{
  padding:2px 5px;border:1px solid #e0e3e7;border-radius:4px;background:#fff;
  color:#777e87;font-size:8px;font-weight:700;white-space:nowrap
}
.warnings{margin-bottom:9px;border:1px solid #f0ddb4;border-radius:11px;background:#fff9e9;padding:9px 10px;color:#925f00;font-size:11px;line-height:1.4}
.map-wrap{position:relative;min-width:0}#map{position:absolute;inset:0}
.mobile-route-bar{display:none}
.routing-loader{
  position:absolute;z-index:7;inset:0;display:grid;place-items:center;
  background:rgba(243,245,244,.68);backdrop-filter:blur(2px)
}
.routing-loader-card{
  display:grid;justify-items:center;width:min(280px,calc(100% - 40px));padding:18px 22px 17px;
  border:1px solid #dfe2df;border-radius:12px;
  background:#fff;box-shadow:0 8px 28px rgba(20,24,31,.11)
}
.routing-loader-card>strong{margin-top:0;font-size:15px}
.routing-loader-card>span{min-height:18px;margin-top:5px;color:#6c7470;font-size:10px;text-align:center}
.penny-farthing{
  display:block;width:168px;height:98px;overflow:visible;
  animation:penny-bob .7s ease-in-out infinite alternate
}
.penny-wheel-svg{
  fill:none;stroke:#138660;stroke-width:2.25;stroke-linecap:round;
  transform-box:fill-box;transform-origin:center;
  animation:penny-wheel .9s linear infinite
}
.penny-wheel-small-svg{animation-duration:.62s}
.penny-wheel-svg path{stroke-width:1;opacity:.55}
.penny-wheel-svg .penny-hub{fill:#138660;stroke:none}
.penny-frame-svg{
  fill:none;stroke:#262b28;stroke-width:4;stroke-linecap:round;stroke-linejoin:round
}
.penny-frame-svg circle{fill:#fff;stroke:#262b28;stroke-width:2}
.penny-frame-svg .penny-seat-svg{stroke-width:6}
.penny-frame-svg .penny-crank-svg{stroke-width:2.5}
.penny-road-svg{
  fill:none;stroke:#c8ceca;stroke-width:2;stroke-linecap:round;
  stroke-dasharray:14 13;animation:penny-road .9s linear infinite
}
@keyframes penny-wheel{to{transform:rotate(360deg)}}
@keyframes penny-road{to{stroke-dashoffset:-54}}
@keyframes penny-bob{to{transform:translateY(-3px) rotate(-.5deg)}}
.map-hint{position:absolute;z-index:2;top:16px;left:50%;transform:translateX(-50%);max-width:calc(100% - 40px);border:1px solid rgba(220,223,228,.9);border-radius:12px;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);box-shadow:0 5px 20px rgba(20,24,31,.1);padding:8px 12px;color:#4b5159;font-size:12px;white-space:nowrap}
.map-legend{position:absolute;z-index:2;right:14px;bottom:24px;display:flex;gap:10px;border:1px solid rgba(220,223,228,.9);border-radius:11px;background:rgba(255,255,255,.93);backdrop-filter:blur(12px);padding:8px 10px;color:#626873;font-size:10px}
.map-legend span{display:flex;align-items:center;gap:5px}.map-legend i{display:block;width:15px;height:4px;border-radius:4px}
.legend-bike{background:var(--bike)}.legend-transit{background:var(--bus)}.legend-walk{background:var(--walk)}
.map-legend .legend-transfer{
  display:grid;
  place-items:center;
  width:16px;
  height:16px;
  border-radius:50%;
  background:#171a1f;
  color:#fff;
  font-size:8px;
  font-style:normal;
  font-weight:800
}
.route-transfer-marker{
  display:grid;
  place-items:center;
  width:25px;
  height:25px;
  padding:0;
  border:2px solid #fff;
  border-radius:50%;
  background:#171a1f;
  box-shadow:0 2px 9px rgba(15,18,23,.35);
  color:#fff;
  cursor:pointer;
  font:800 10px/1 system-ui,sans-serif
}
.route-transfer-marker:hover,.route-transfer-marker:focus-visible{background:#30353d}
.route-detail-panel{
  position:absolute;z-index:4;top:18px;right:64px;width:min(430px,calc(100% - 90px));
  max-height:calc(100% - 84px);overflow:auto;padding:16px;border:1px solid rgba(220,223,228,.96);
  border-radius:12px;background:#fff;
  box-shadow:0 8px 30px rgba(20,24,31,.13)
}
.detail-header{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.detail-label{color:#727984;font-size:11px;font-weight:700}
.detail-title-row{display:flex;gap:10px;align-items:baseline;margin-top:2px}
.detail-title-row strong{font-size:25px;letter-spacing:-.04em}
.detail-title-row span{color:#626a74;font-size:11px;font-weight:650}
.detail-overview-button{
  min-height:32px;padding:0 10px;border:1px solid #dfe2e6;border-radius:7px;
  background:#f7f8f9;color:#4f5660;font-size:10px;font-weight:700
}
.detail-overview-button.active{border-color:#20242a;background:#20242a;color:#fff}
.detail-close-button{
  display:grid;place-items:center;width:32px;height:32px;flex:0 0 auto;padding:0;
  border:1px solid #dfe2e6;border-radius:50%;background:#fff;color:#59606a;
  font-size:19px;line-height:1
}
.mobile-sheet-handle{display:none}
.detail-badges{display:flex;flex-wrap:wrap;gap:0;margin-top:10px}
.detail-badges span{
  min-height:auto;margin:2px 8px 2px 0;padding:0 8px 0 0;border-right:1px solid #dfe2df;
  border-radius:0;background:transparent;color:#555c57;font-size:9px;font-weight:650;line-height:1.35
}
.detail-badges span:last-child{border-right:0}
.detail-explanations{display:grid;gap:5px;margin-top:10px}
.detail-explanations span{
  min-height:auto;padding:2px 0 2px 8px;border-left:2px solid #8ea6c6;
  border-radius:0;background:transparent;color:#53677f;font-size:9px;font-weight:650;line-height:1.4
}
.detail-actions{display:flex;gap:7px;margin-top:11px}
.route-edit-button,.route-undo-button{
  min-height:36px;padding:0 10px;border:1px solid #dfe2e6;border-radius:7px;
  background:#f7f8f9;color:#353c44;font-size:10px;font-weight:750
}
.route-edit-button.active{border-color:#147b59;background:#eaf8f2;color:#147b59}
.route-undo-button{background:#fff}
.route-edit-panel{
  margin-top:10px;padding:12px;border:1px solid #dce8e2;border-radius:8px;
  background:#f7fbf9
}
.route-edit-heading{display:grid;gap:3px}
.route-edit-heading strong{font-size:11px}
.route-edit-heading span{color:#657069;font-size:9px;line-height:1.45}
.route-edit-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.route-edit-fields label{display:grid;gap:4px}
.route-edit-fields label>span{font-size:9px}
.route-edit-fields select{
  width:100%;height:36px;min-width:0;padding:0 8px;border:1px solid #d8dfdb;
  border-radius:9px;outline:none;background:#fff;color:#323a35;font-size:10px
}
.route-edit-error{
  margin-top:8px;padding:8px;border-radius:8px;background:#fff0ee;
  color:var(--danger);font-size:9px;line-height:1.4
}
.route-edit-controls{display:flex;justify-content:flex-end;gap:7px;margin-top:10px}
.route-edit-controls button{
  min-height:35px;padding:0 10px;border:1px solid #d8dfdb;border-radius:9px;
  background:#fff;color:#4e5751;font-size:9px;font-weight:750
}
.route-edit-controls button:last-child{border-color:#167b59;background:#167b59;color:#fff}
.route-edit-controls button:disabled{cursor:default;opacity:.56}
.detail-leg-nav{
  display:grid;grid-template-columns:34px minmax(0,1fr) 34px;gap:9px;align-items:center;
  margin-top:13px;padding-top:13px;border-top:1px solid #e9ebee
}
.detail-nav-button{
  width:34px;height:34px;border:1px solid #dfe2e6;border-radius:7px;
  background:#f7f8f9;color:#30363d;font-size:16px
}
.detail-nav-button:disabled{cursor:default;opacity:.32}
.detail-leg-copy{display:grid;gap:2px;min-width:0;text-align:center}
.detail-leg-copy>span:first-child{color:#8a9099;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.detail-leg-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.detail-leg-copy>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#737a84;font-size:9px}
.detail-leg-steps{display:grid;gap:4px;max-height:220px;overflow:auto;margin-top:10px;padding-right:2px}
.detail-leg-step{
  display:grid;grid-template-columns:5px minmax(0,1fr) auto;gap:8px;align-items:center;
  width:100%;min-height:36px;padding:5px 6px;border:0;border-bottom:1px solid #eceeec;
  border-radius:0;background:transparent;color:#363c44;text-align:left
}
.detail-leg-step i{width:4px;height:22px;border-radius:4px}
.detail-leg-step span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:650}
.detail-leg-step small{color:#7d848e;font-size:9px}
.detail-leg-step:hover{background:#f6f7f6}
.detail-leg-step.active{border-color:#dfe2df;background:#f2f4f2;box-shadow:inset 3px 0 0 #20242a}
.hidden{display:none!important}
@media(min-width:821px){
  body:not(.has-routes) .results-section{display:none}
}
@media(max-width:820px){
  html,body{width:100%;height:100%;overflow:hidden}
  .app-shell{display:block;width:100%;height:100vh;height:100dvh;overflow:hidden}
  .map-wrap{
    position:fixed;z-index:1;inset:0;width:100%;height:100vh;height:100dvh;
    min-height:0;border:0
  }
  .sidebar{
    position:fixed;z-index:5;inset:0;width:100%;height:100vh;height:100dvh;
    overflow:visible;border:0;padding:0;pointer-events:none
  }
  .brand{display:none}
  .planner-card{
    position:absolute;z-index:8;top:auto;right:0;bottom:0;left:0;
    max-height:86vh;max-height:86dvh;overflow-x:hidden;overflow-y:auto;
    padding:8px 16px max(18px,env(safe-area-inset-bottom));
    border-right:0;border-bottom:0;border-left:0;border-radius:18px 18px 0 0;
    box-shadow:0 -6px 24px rgba(20,24,31,.13);
    opacity:0;visibility:hidden;pointer-events:none;
    transform:translateY(calc(100% + 24px));
    transition:
      transform .34s cubic-bezier(.22,.72,.23,1),
      opacity .24s ease,
      visibility 0s linear .34s
  }
  body.mobile-planner-open .planner-card{
    opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0);
    transition:
      transform .34s cubic-bezier(.22,.72,.23,1),
      opacity .24s ease,
      visibility 0s
  }
  .mobile-planner-handle{
    display:block;width:40px;height:4px;margin:0 auto 8px;
    border-radius:4px;background:#d2d6db
  }
  .mobile-planner-title{
    display:block;margin:0 0 14px;text-align:center;font-size:14px;font-weight:780
  }
  .mobile-close-search{
    position:absolute;top:13px;left:14px;display:block;width:auto;min-height:34px;
    margin:0;padding:0 8px;border:0;border-radius:7px;background:#eef0f2;
    color:#424951;text-align:left;font-size:10px;font-weight:750
  }
  .location-line{height:78px}
  .search-row input,.controls-grid input{font-size:16px}
  .search-row input{height:44px}.controls-grid input{height:44px}
  .map-pick{min-height:32px;padding:4px 0}
  .primary-button{height:48px}
  .mobile-open-planner{
    position:absolute;z-index:5;right:18px;bottom:max(18px,env(safe-area-inset-bottom));left:18px;
    display:block;min-height:52px;padding:0 20px;border:0;border-radius:10px;
    background:#202321;color:#fff;box-shadow:0 5px 18px rgba(20,24,31,.2);
    font-size:14px;font-weight:780;letter-spacing:-.01em;
    opacity:1;visibility:visible;transform:translateY(0);
    transition:
      transform .28s cubic-bezier(.22,.72,.23,1),
      opacity .2s ease,
      visibility 0s
  }
  body.has-routes .mobile-open-planner,
  body.mobile-planner-open .mobile-open-planner,
  body.map-picking .mobile-open-planner,
  body.routing-loading .mobile-open-planner{
    opacity:0;visibility:hidden;pointer-events:none;transform:translateY(22px);
    transition:
      transform .25s ease,
      opacity .2s ease,
      visibility 0s linear .25s
  }
  .results-section{
    position:absolute;z-index:6;right:0;bottom:0;left:0;max-height:none;
    padding:6px 0 max(12px,env(safe-area-inset-bottom));
    border:1px solid #dfe1df;border-bottom:0;border-radius:16px 16px 0 0;
    background:#f6f7f6;
    box-shadow:0 -5px 20px rgba(20,24,31,.11);pointer-events:auto;
    opacity:1;visibility:visible;transform:translateY(var(--sheet-lift,0));
    touch-action:pan-x;
    transition:
      transform .3s cubic-bezier(.22,.72,.23,1),
      opacity .2s ease,
      visibility 0s
  }
  body:not(.has-routes) .results-section,
  body.mobile-planner-open .results-section,
  body.detail-open .results-section{
    opacity:0;visibility:hidden;pointer-events:none;transform:translateY(110%);
    transition:
      transform .28s ease,
      opacity .18s ease,
      visibility 0s linear .28s
  }
  .results-sheet-top{
    position:relative;display:grid;place-items:start center;justify-content:center;
    height:32px;padding:3px 10px 5px
  }
  .results-sheet-handle{
    display:block;width:40px;height:4px;border-radius:4px;background:#cdd2d7
  }
  .results-clear-button{
    position:absolute;top:0;right:12px;width:28px;height:28px;border-radius:50%
  }
  .warnings{margin:0 10px 8px}
  .route-list{
    --mobile-route-card-width:min(74vw,288px);
    display:flex;gap:9px;max-height:none;overflow-x:auto;overflow-y:hidden;
    padding:0 calc((100vw - var(--mobile-route-card-width))/2) 3px;
    scroll-snap-type:x mandatory;
    scroll-padding-inline:calc((100vw - var(--mobile-route-card-width))/2);
    scrollbar-width:none;overscroll-behavior-x:contain
  }
  .route-list::-webkit-scrollbar{display:none}
  .route-card{
    flex:0 0 var(--mobile-route-card-width);min-height:92px;scroll-snap-align:center;
    padding:10px 12px;border-radius:10px;
    transition:
      transform .2s ease,
      border-color .2s ease,
      background .2s ease,
      box-shadow .2s ease
  }
  .route-card:not(.active){opacity:.78}
  .route-card.active{opacity:1}
  .compact-route-top strong{font-size:18px}
  .compact-route-top span,.compact-route-lines{font-size:10px}
  .compact-route-metrics span{font-size:11px}
  .compact-route-tag{font-size:9px}
  .mobile-route-bar{
    position:absolute;z-index:3;top:max(10px,env(safe-area-inset-top));left:10px;right:58px;
    display:none;align-items:center;gap:9px;min-height:48px;padding:6px 9px;
    border:1px solid #dfe1df;border-radius:10px;
    background:#fff;
    box-shadow:0 3px 14px rgba(20,24,31,.1)
  }
  body.has-routes:not(.mobile-planner-open):not(.detail-open) .mobile-route-bar{display:flex}
  .mobile-route-bar button{
    width:36px;height:36px;flex:0 0 auto;border:0;border-radius:10px;
    background:#eef0f2;color:#30363d;font-size:18px
  }
  .mobile-route-bar div{display:grid;gap:1px;min-width:0}
  .mobile-route-bar strong{font-size:12px}
  .mobile-route-bar span{color:#777e88;font-size:9px}
  .maplibregl-ctrl-top-right{top:max(5px,env(safe-area-inset-top))}
  .map-hint{
    top:max(62px,calc(env(safe-area-inset-top) + 62px));left:12px;right:12px;
    max-width:none;transform:none;text-align:center;white-space:normal
  }
  .routing-loader{z-index:9;background:rgba(243,245,244,.72);backdrop-filter:blur(2px)}
  .routing-loader-card{width:min(280px,calc(100% - 36px));padding:18px 20px 17px;border-radius:12px}
  .route-detail-panel{
    position:fixed;z-index:10;top:auto;right:0;bottom:0;left:0;width:auto;
    max-height:72vh;max-height:72dvh;overflow:auto;padding:8px 14px max(14px,env(safe-area-inset-bottom));
    border-right:0;border-bottom:0;border-left:0;border-radius:18px 18px 0 0;
    background:#fff;box-shadow:0 -6px 24px rgba(20,24,31,.15);
    opacity:1;visibility:visible;transform:translateY(0);
    transition:
      transform .34s cubic-bezier(.22,.72,.23,1),
      opacity .22s ease,
      visibility 0s
  }
  .route-detail-panel.hidden{
    display:block!important;opacity:0;visibility:hidden;pointer-events:none;
    transform:translateY(105%);
    transition:
      transform .3s ease,
      opacity .18s ease,
      visibility 0s linear .3s
  }
  .mobile-sheet-handle{
    display:block;width:38px;height:4px;margin:0 auto 8px;border-radius:4px;background:#d4d7dc
  }
  .detail-header{gap:8px}
  .detail-header>div:first-child{min-width:0;flex:1}
  .detail-title-row strong{font-size:24px}
  .detail-overview-button{min-height:40px}
  .detail-close-button{width:40px;height:40px;border-radius:50%}
  .detail-actions{position:sticky;z-index:2;top:-8px;padding:8px 0;background:rgba(255,255,255,.97)}
  .route-edit-button,.route-undo-button{min-height:44px;font-size:11px}
  .route-edit-panel{padding:12px}
  .route-edit-heading strong{font-size:12px}.route-edit-heading span{font-size:10px}
  .route-edit-fields{grid-template-columns:1fr;gap:9px}
  .route-edit-fields select{height:44px;font-size:16px}
  .route-edit-controls{display:grid;grid-template-columns:.75fr 1.5fr}
  .route-edit-controls button{min-height:44px;font-size:10px}
  .detail-leg-nav{grid-template-columns:44px minmax(0,1fr) 44px}
  .detail-nav-button{width:44px;height:44px}
  .detail-leg-steps{max-height:none;padding-bottom:4px}
  .detail-leg-step{min-height:46px;padding:7px 9px}
  .detail-leg-step span{font-size:11px}.detail-leg-step small{font-size:10px}
  .map-legend{display:none}
}
@media(pointer:coarse){
  button{touch-action:manipulation}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}
}
