/* Staging concept B: compact segmented road toolbar matching the speed legend. */
.nemap-traffic-dock.leaflet-control{
 position:relative;display:inline-flex;align-items:stretch;gap:0;padding:4px;
 border:1px solid rgba(129,161,181,.48);border-radius:10px;
 background:rgba(22,38,52,.96);
 box-shadow:0 3px 12px rgba(0,0,0,.30),inset 0 1px rgba(255,255,255,.06);
 backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);
 isolation:isolate;
}
.nemap-traffic-dock.leaflet-control::before{
 content:"";position:absolute;left:10px;right:10px;top:0;height:2px;
 border-radius:0 0 3px 3px;
 background:linear-gradient(90deg,#a52c32 0 20%,#e45f38 20% 40%,#edab46 40% 60%,#d7c85a 60% 80%,#469c68 80%);
 opacity:.66;pointer-events:none;
}
.nemap-traffic-dock .nemap-traffic-toggle,
.nemap-traffic-dock .nemap-city-toggle{
 display:inline-flex;gap:7px;justify-content:center;align-items:center;
 min-height:44px;min-width:81px;margin:0;padding:7px 12px;
 border:0;border-radius:6px;background:transparent;color:#d9e5ef;
 box-shadow:none;text-shadow:none;
 font:650 12px/1.25 system-ui,-apple-system,"Segoe UI",sans-serif;
 letter-spacing:.015em;cursor:pointer;white-space:nowrap;touch-action:manipulation;
 transition:background .15s ease,color .15s ease;
}
.nemap-traffic-dock .nemap-traffic-toggle{border-radius:6px 0 0 6px}
.nemap-traffic-dock .nemap-city-toggle{
 border-radius:0 6px 6px 0;border-left:1px solid rgba(129,161,181,.28);
}
.nemap-traffic-dock .nemap-traffic-toggle::before{
 content:"";display:block;flex:0 0 20px;width:20px;height:10px;margin-right:0;
 border-radius:2px;
 background:linear-gradient(90deg,#ad3439 0 20%,#db7436 20% 40%,#e5ba48 40% 60%,#c9c65a 60% 80%,#418f6c 80%);
 box-shadow:0 0 0 1px rgba(255,255,255,.14);opacity:.66;
}
.nemap-traffic-dock .nemap-city-toggle::before{
 content:"▦";display:inline-flex;align-items:center;justify-content:center;
 width:15px;height:16px;margin-right:0;
 font:600 17px/1 system-ui,-apple-system,"Segoe UI",sans-serif;color:#99b8cc;
}
.nemap-traffic-dock .nemap-traffic-toggle.is-active,
.nemap-traffic-dock .nemap-traffic-toggle[aria-pressed="true"]{
 color:#ebfff6;background:rgba(40,112,91,.42);
}
.nemap-traffic-dock .nemap-traffic-toggle.is-active::before{
 opacity:1;box-shadow:0 0 0 1px rgba(186,232,207,.35);
}
.nemap-traffic-dock .nemap-city-toggle[aria-expanded="true"]{
 color:#fff;background:rgba(77,126,158,.34);
}
.nemap-traffic-dock .nemap-traffic-toggle:hover,
.nemap-traffic-dock .nemap-city-toggle:hover{
 background:rgba(120,168,193,.16);filter:none;
}
.nemap-traffic-dock .nemap-traffic-toggle:focus-visible,
.nemap-traffic-dock .nemap-city-toggle:focus-visible{
 outline:2px solid #e8c371;outline-offset:-2px;
}
html[data-theme="light"] .nemap-traffic-dock.leaflet-control{
 background:rgba(244,249,252,.98);border-color:#92abbc;
 box-shadow:0 3px 10px rgba(28,58,80,.17),inset 0 1px rgba(255,255,255,.65);
}
html[data-theme="light"] .nemap-traffic-dock .nemap-traffic-toggle,
html[data-theme="light"] .nemap-traffic-dock .nemap-city-toggle{
 color:#244557;background:transparent;border-color:#bfced8;box-shadow:none;
}
html[data-theme="light"] .nemap-traffic-dock .nemap-traffic-toggle.is-active{
 color:#1d513e;background:#d7eee4;
}
html[data-theme="light"] .nemap-traffic-dock .nemap-city-toggle[aria-expanded="true"]{
 background:#dcecf4;color:#244557;
}
html[data-theme="light"] .nemap-traffic-dock .nemap-traffic-toggle:hover,
html[data-theme="light"] .nemap-traffic-dock .nemap-city-toggle:hover{
 background:rgba(85,133,160,.13);
}
html[data-theme="light"] .nemap-traffic-dock .nemap-city-toggle::before{color:#527e95}
@media(max-width:600px){
 .nemap-traffic-dock.leaflet-control{padding:3px;border-radius:9px;max-width:calc(100vw - 55px)}
 .nemap-traffic-dock .nemap-traffic-toggle,
 .nemap-traffic-dock .nemap-city-toggle{
  min-height:44px;min-width:79px;gap:5px;padding:6px 10px;font-size:12px;
 }
 .nemap-traffic-dock .nemap-traffic-toggle::before{width:16px;flex-basis:16px}
}
@media(prefers-reduced-motion:reduce){
 .nemap-traffic-dock .nemap-traffic-toggle,
 .nemap-traffic-dock .nemap-city-toggle{transition:none}
}

/* 2026-10-09 micro review: compact labels and glyphs, preserving 44px touch zones.
   Invisible ::after hitbox extensions preserve the entire original interaction. */
.nemap-traffic-dock.leaflet-control{
 padding:2px;border-radius:7px;
}
.nemap-traffic-dock.leaflet-control::before{left:7px;right:7px}
.nemap-traffic-dock .nemap-traffic-toggle,
.nemap-traffic-dock .nemap-city-toggle{
 position:relative;min-height:30px;min-width:0;
 padding:4px 6px;gap:3px;border-radius:4px;
 font-size:10.5px;line-height:1.15;letter-spacing:0;
}
.nemap-traffic-dock .nemap-traffic-toggle{border-radius:4px 0 0 4px}
.nemap-traffic-dock .nemap-city-toggle{border-radius:0 4px 4px 0}
.nemap-traffic-dock .nemap-traffic-toggle::before{
 width:12px;flex-basis:12px;height:7px;
}
.nemap-traffic-dock .nemap-city-toggle::before{
 width:11px;height:12px;font-size:12px;
}
.nemap-traffic-dock .nemap-traffic-toggle::after,
.nemap-traffic-dock .nemap-city-toggle::after{
 content:"";position:absolute;top:-7px;bottom:-7px;left:0;right:0;
 background:transparent;
}
.nemap-ai-entry button.nemap-ai-launcher{
 position:relative;min-width:0;min-height:30px;
 gap:4px;padding:5px 7px;border-radius:6px;
 font-size:11px;line-height:1.15;
}
.nemap-ai-entry button.nemap-ai-launcher .nemap-ai-launcher-symbol{
 font-size:13px;
}
.nemap-ai-entry button.nemap-ai-launcher::after{
 content:"";position:absolute;top:-7px;bottom:-7px;left:0;right:0;
 background:transparent;
}
@media(max-width:600px){
 .nemap-traffic-dock.leaflet-control{padding:2px;border-radius:6px}
 .nemap-traffic-dock .nemap-traffic-toggle,
 .nemap-traffic-dock .nemap-city-toggle{
  min-height:32px;min-width:0;padding:4px 6px;gap:3px;font-size:10.5px;
 }
 .nemap-traffic-dock .nemap-traffic-toggle::after,
 .nemap-traffic-dock .nemap-city-toggle::after{top:-6px;bottom:-6px}
 .nemap-ai-entry button.nemap-ai-launcher{min-height:32px;padding:5px 7px}
 .nemap-ai-entry button.nemap-ai-launcher::after{top:-6px;bottom:-6px}
}
