
/* V150 — 只修两个用户明确问题：
   1) 浏览器本地横屏打开时，“展开”按钮向右移动到与顶栏外框左边缘共线；
   2) 顶栏四个路线按钮 + “显示全部”统一缩小，保证文字完整显示。
*/

/* 统一左边界：沿用当前顶栏安全左边界变量。 */
:root {
  --v150-left-line: var(--v140-safe-left, 68px);
}

/* 顶栏/底栏/左导航继续共线。 */
#app:not(.is-map-focus) .commandbar,
#app:not(.is-map-focus) .commandbar.v76-fit,
#app:not(.is-map-focus) .commandbar.v76-stack,
html.force-css-landscape #app:not(.is-map-focus) .commandbar {
  left: var(--v150-left-line) !important;
}

#app:not(.is-map-focus) .playback,
html.force-css-landscape #app:not(.is-map-focus) .playback {
  left: var(--v150-left-line) !important;
}

#left-rail.left-rail,
html.force-css-landscape #left-rail.left-rail {
  left: var(--v150-left-line) !important;
}

/* 关键修复：
   浏览器本地打开时，旧移动端样式仍可能让 edge-panel-toggle 的 left 回到 0/4px。
   这里用更具体选择器锁死“展开”按钮的最终 left。 */
html body #app #mobile-panel-toggle.mobile-panel-toggle.edge-panel-toggle,
html.force-css-landscape body #app #mobile-panel-toggle.mobile-panel-toggle.edge-panel-toggle {
  position: fixed !important;
  left: var(--v150-left-line) !important;
  right: auto !important;
  top: 50% !important;
  bottom: auto !important;
  margin: 0 !important;
  translate: none !important;
  transform: translateY(-50%) !important;
  z-index: 99999 !important;
}

/* 顶栏五个文字按钮统一缩小。
   这里直接锁定 button 与内部 span，避免旧 v76/v84/v85 等后续规则反覆盖。 */
html body #app:not(.is-map-focus) .commandbar .route-tab,
html body #app:not(.is-map-focus) .commandbar #route-toggle,
html body #app:not(.is-map-focus) .commandbar.v76-fit .route-tab,
html body #app:not(.is-map-focus) .commandbar.v76-fit #route-toggle,
html body #app:not(.is-map-focus) .commandbar.v76-stack .route-tab,
html body #app:not(.is-map-focus) .commandbar.v76-stack #route-toggle,
html body #app:not(.is-map-focus) .commandbar .route-tab span,
html body #app:not(.is-map-focus) .commandbar #route-toggle span {
  font-size: 11.5px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

/* 再收紧路线按钮内边距，优先保证完整文字。 */
html body #app:not(.is-map-focus) .commandbar .route-tab,
html body #app:not(.is-map-focus) .commandbar.v76-fit .route-tab,
html body #app:not(.is-map-focus) .commandbar.v76-stack .route-tab {
  padding-left: 2px !important;
  padding-right: 2px !important;
  gap: 2px !important;
  min-width: 0 !important;
}

/* “生成/隐藏路线”与五个按钮字号一致，但保留略多点击空间。 */
html body #app:not(.is-map-focus) .commandbar #route-toggle,
html body #app:not(.is-map-focus) .commandbar.v76-fit #route-toggle,
html body #app:not(.is-map-focus) .commandbar.v76-stack #route-toggle {
  padding-left: 6px !important;
  padding-right: 6px !important;
}

/* 主标题保持现状，不参与缩小。 */
html body #app:not(.is-map-focus) .commandbar .brand-lockup h1,
html body #app:not(.is-map-focus) .commandbar.v76-fit .brand-lockup h1,
html body #app:not(.is-map-focus) .commandbar.v76-stack .brand-lockup h1 {
  font-size: var(--v76-title-font, 22px) !important;
}
