/* Korovka CRM v77: simplify the list toolbar, enlarge current-stop title.
   Visual-only; never detach React-owned controls. Normal route only. */
@media (max-width: 760px) {
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .current-stop:not(.current-stop-map) {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:8px!important;
    padding:9px 11px!important;
    min-height:65px!important;
    top:env(safe-area-inset-top,0px)!important;
    box-shadow:0 2px 8px rgba(31,58,98,.09)!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .current-stop:not(.current-stop-map) .current-stop-title {
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    flex:1 1 auto!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:2px!important;
    text-align:left!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .current-stop:not(.current-stop-map) .current-stop-title > span {
    font-size:11px!important;
    line-height:1.2!important;
    font-weight:650!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .current-stop:not(.current-stop-map) .current-stop-title > b {
    font-size:clamp(17px,4.8vw,21px)!important;
    font-weight:800!important;
    line-height:1.13!important;
    overflow-wrap:break-word!important;
    text-wrap:pretty!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .current-stop:not(.current-stop-map) .current-stop-title > small {display:none!important;}
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .current-stop:not(.current-stop-map) .current-stop-actions {
    display:flex!important;
    flex-wrap:nowrap!important;
    justify-content:flex-end!important;
    align-items:center!important;
    gap:5px!important;
    min-width:0!important;
    flex:0 0 auto!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .current-stop:not(.current-stop-map) .current-stop-actions > a {
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:37px!important;
    min-width:37px!important;
    max-width:37px!important;
    min-height:39px!important;
    height:39px!important;
    padding:0!important;
    gap:0!important;
    font-size:0!important;
    line-height:0!important;
    border-radius:9px!important;
    overflow:hidden!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .current-stop:not(.current-stop-map) .current-stop-actions > a svg {
    width:19px!important;height:19px!important;flex-shrink:0!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .current-stop:not(.current-stop-map) .current-stop-actions > button:not([aria-label]) {
    min-height:39px!important;height:39px!important;
    padding:0 9px!important;
    font-size:12px!important;
    font-weight:700!important;
    gap:4px!important;
    border-radius:9px!important;
    white-space:nowrap!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .current-stop:not(.current-stop-map) .current-stop-actions > button:not([aria-label]) svg {
    width:15px!important;height:15px!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .current-stop:not(.current-stop-map) .current-stop-actions > button[aria-label="Показать текущую точку в списке"] {
    display:none!important;
  }
  /* One compact toolbar: mode and remaining count, no second overview button. */
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .route-overview-tools {
    padding:6px 11px 8px!important;
    box-shadow:0 1px 5px rgba(31,58,98,.06)!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .route-overview-tools .overview-tool-top {
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    flex-wrap:nowrap!important;gap:7px!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .route-overview-tools .overview-mode-toggle {
    gap:2px!important;padding:2px!important;border-radius:8px!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .route-overview-tools .overview-mode-toggle > button {
    min-height:33px!important;height:33px!important;
    padding:4px 8px!important;font-size:12px!important;line-height:1.2!important;
    white-space:nowrap!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .route-overview-tools .overview-tool-actions {
    display:flex!important;justify-content:flex-end!important;flex:1 1 auto!important;
    min-width:0!important;font-size:12px!important;white-space:nowrap!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .route-overview-tools .overview-tool-actions > span,
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .route-overview-tools .overview-tool-actions > .overview-navigator-trigger {
    display:none!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .route-overview-tools .overview-tool-actions[data-k77-remaining]::after {
    content:'Осталось ' attr(data-k77-remaining);
    font-size:12px!important;font-weight:700!important;color:#344c6c;
  }
  /* Compact bulk select and three jump buttons; their click handlers remain native. */
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .route-overview-tools .route-bulk-entry {margin-top:6px!important;}
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .route-overview-tools .route-bulk-entry > button {
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    width:auto!important;min-width:0!important;max-width:100%!important;
    min-height:34px!important;height:34px!important;
    padding:5px 11px!important;gap:5px!important;
    font-size:12px!important;border-radius:8px!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .route-overview-tools .route-bulk-entry > button svg {
    width:14px!important;height:14px!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .route-overview-tools .overview-jump-buttons {
    display:flex!important;flex-wrap:wrap!important;
    gap:5px!important;margin-top:6px!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .route-overview-tools .overview-jump-buttons > button:not(.overview-collapse-all) {
    flex:0 1 auto!important;width:auto!important;min-width:0!important;
    min-height:33px!important;height:33px!important;
    padding:5px 12px!important;border-radius:8px!important;
    font-size:12px!important;line-height:1.15!important;
  }
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .route-overview-tools .overview-jump-buttons > .overview-collapse-all {
    min-height:33px!important;height:33px!important;
    padding:5px 8px!important;font-size:11px!important;
    flex:0 1 auto!important;margin-left:auto!important;
  }
}
@media (max-width:355px) {
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .current-stop:not(.current-stop-map) {gap:5px!important;padding:8px!important;}
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .current-stop:not(.current-stop-map) .current-stop-actions {gap:3px!important;}
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .current-stop:not(.current-stop-map) .current-stop-actions > a {width:34px!important;min-width:34px!important;max-width:34px!important;}
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .current-stop:not(.current-stop-map) .current-stop-actions > button:not([aria-label]) {padding:0 6px!important;font-size:11px!important;}
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .current-stop:not(.current-stop-map) .current-stop-title > b {font-size:17px!important;}
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .route-overview-tools .overview-mode-toggle > button {font-size:11px!important;padding:3px 6px!important;}
  body:not(.k67-mode):not(.k67-fridge-mode):not(.k68-goods-mode):not(.k71-map-view) .route-overview-tools .overview-tool-actions[data-k77-remaining]::after {font-size:11px!important;}
}
