/* Compact journeys stay in the scrolling place column, without the desktop
   centering transform. Both local and world journeys use this same renderer. */
html.gom-compact #skillView > .travel-panel {
  position: relative;
  inset: auto;
  transform: none;
  width: calc(100% - 24px);
  min-width: 0;
  max-width: calc(100% - 24px);
  height: auto;
  max-height: none;
  margin: 12px;
  padding: 16px;
  box-sizing: border-box;
  overflow: visible;
  zoom: 1;
}
html.gom-compact #skillView > .travel-panel .travel-route {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
html.gom-compact #skillView > .travel-panel .travel-route > strong { min-width: 0; max-width: 100%; }
html.gom-compact #skillView > .travel-panel .travel-title { margin: 0 0 12px; }
html.gom-compact #skillView > .travel-panel .travel-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
html.gom-compact #skillView > .travel-panel .travel-action-icon-btn { min-width: 44px !important; min-height: 44px !important; }
html.gom-compact #skillView > .travel-panel .travel-action-icon-btn img { width: 34px; height: 34px; max-width: 100%; object-fit: contain; }
html.gom-compact #skillView > .travel-panel .travel-tip { min-width: 0; max-width: 100%; margin-bottom: 0; overflow-wrap: anywhere; }

/* A travel confirmation is a short decision, not a full-screen workbench.
   Keep the shared safe-area/nav clearance and the existing frame and button art. */
html.gom-compact #travelConfirmOverlay:not(.hidden) {
  position: fixed;
  top: var(--compact-viewport-top, 0px);
  bottom: auto;
  align-items: safe center;
  justify-content: center;
  height: var(--compact-viewport-height, 100dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
html.gom-compact #travelConfirmOverlay > .travel-confirm-window {
  flex: 0 1 auto;
  width: min(100%, 420px) !important;
  height: auto;
  min-height: 0;
  max-height: none !important;
  padding: 22px 18px;
  overflow-wrap: anywhere;
}
html.gom-compact #travelConfirmTitle { margin: 0 0 12px; line-height: 1.35; }
html.gom-compact #travelConfirmDescription { margin: 0 0 16px; line-height: 1.45; }
html.gom-compact #travelConfirmOverlay .overlay-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
html.gom-compact #travelConfirmOverlay .overlay-actions button {
  flex: 1 1 100px;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
html.gom-compact #travelConfirmOverlay :is(.travel-route-option, .travel-route-actions button) {
  min-width: 0;
  min-height: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
}
html.gom-compact #travelConfirmOverlay .travel-route-option { flex-wrap: wrap; gap: 6px; }
html.gom-compact #travelConfirmOverlay .travel-route-option > span { min-width: 0; }
