body .resizableProfileWindow {
  display: flex;
  flex-direction: column;
  max-height: calc(100% - 24px);
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}
body.touchLayout.touchAnalysisOpen[data-touch-pane=map] .resizableProfileWindow { display: flex !important; max-height: calc(100% - 24px); }
.resizableProfileWindow > .floatWindowBar, .resizableProfileWindow > .worldPointCard, .resizableProfileWindow > .surfaceTools { flex: none; }
body .resizableProfileWindow .floatWindowBar { display: flex !important; flex-wrap: wrap; }
body .resizableProfileWindow .floatWindowBar .worldPointActions { flex: 1 1 140px; width: auto; }
body .resizableProfileWindow .floatWindowBar #expandAnalysisWindow { width: auto !important; min-width: 52px; flex: none; padding: 4px 8px !important; }
body.unifiedLayout[data-workspace=explore] .resizableProfileWindow[data-profile-available=true] #profilePanel {
  height: auto !important;
  min-height: 0 !important;
  flex: 1 1 auto;
  margin: 0;
  padding: 8px 10px 26px;
  overflow: hidden;
  display: flex !important;
}
body.unifiedLayout[data-workspace=explore] .resizableProfileWindow[data-profile-available=true] .profileStatus { display: flex !important; flex: none; font-size: 12px !important; margin: 4px 0; }
.resizableProfileWindow .profileToolbar { flex: none; }
.resizableProfileWindow #profileResize { display: none; }
#profileChartsStack { display: grid; grid-template-rows: repeat(3, minmax(100px, 1fr)); gap: 8px; flex: 1 1 0; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.profileChartCell { min-height: 100px; min-width: 0; border-top: 1px solid var(--divider); }
body.unifiedLayout[data-workspace=explore] .resizableProfileWindow[data-profile-available=true] #profile,
body .profileChartCell canvas { display: block !important; width: 100%; height: 100%; min-height: 100px; touch-action: none; cursor: crosshair; }
.resizableProfileWindow[data-charts-collapsed=true] #profileChartsStack,
body.unifiedLayout .resizableProfileWindow[data-charts-collapsed=true] .profileStatus { display: none !important; }
.profileWindowResizeCorner { position: absolute; z-index: 5; right: 0; bottom: 0; width: 28px; height: 28px; min-height: 28px; padding: 0; border: 0; border-radius: 8px 0 14px 0; background: var(--raised); color: var(--muted); cursor: nwse-resize; touch-action: none; }
.profileWindowResizeEdge { position: absolute; z-index: 4; touch-action: none; }
.profileWindowResizeEdge.resize-e { right: 0; top: 70px; width: 8px; bottom: 30px; cursor: ew-resize; }
.profileWindowResizeEdge.resize-s { bottom: 0; left: 20px; right: 30px; height: 8px; cursor: ns-resize; }
body.touchDevice .profileWindowResizeCorner { width: 44px; height: 44px; min-height: 44px; }
body.touchDevice .profileWindowResizeEdge { display: none; }
body.touchDevice .resizableProfileWindow #profilePanel { padding-bottom: 44px; }
.profileMapPin { position: absolute; z-index: 12; width: 18px; height: 18px; border: 2px solid #514000; border-radius: 50%; background: #ffd60a; box-shadow: 0 0 0 4px #ffd60a55, 0 0 8px #0009; transform: translate(-50%, -50%); pointer-events: none; }
@media print { .profileWindowResizeCorner, .profileWindowResizeEdge, #expandAnalysisWindow { display: none !important; } }

body.unifiedLayout[data-workspace=explore] #mapAnalysisWindow[data-profile-available=true] #toggleProfile { display: inline-flex !important; }
body .resizableProfileWindow .profileToolbar #profileMetric { flex: 0 1 132px; min-width: 108px; width: 132px; max-width: 132px; font-size: 13px !important; margin: 0; }
body .resizableProfileWindow .profileToolbar #toggleProfile, body .resizableProfileWindow .profileToolbar #openAnalysisSummary { padding: 4px 6px !important; font-size: 12px !important; min-width: 44px; }
body .resizableProfileWindow .profileCoordinatesMenu { position: relative; flex: none; }
body .resizableProfileWindow .profileCoordinatesMenu>summary { min-width: 44px; min-height: 36px; font-size: 12px; }
body.touchDevice .resizableProfileWindow .profileCoordinatesMenu>summary { min-height: 44px; }
body .resizableProfileWindow .profileCoordinatesMenu .toolMenuItems { right: 0; left: auto; min-width: 200px; padding: 8px; }
body .resizableProfileWindow .profileCoordinatesMenu .worldPointActions { display: grid; grid-template-columns: 1fr; width: 100%; gap: 6px; }

body.unifiedLayout[data-workspace=explore] .resizableProfileWindow .profileStatus { display: block !important; height: 54px !important; min-height: 54px !important; flex: 0 0 54px; }
body .resizableProfileWindow #profileInfo { display: block; height: 18px; line-height: 18px; }
body .resizableProfileWindow #profileCursor { display: block; height: 34px; min-height: 34px; line-height: 16px; white-space: pre-line !important; overflow: hidden !important; }
body .resizableProfileWindow .profileCoordinatesMenu .toolMenuItems { max-width: calc(100vw - 32px); min-width: min(280px,calc(100vw - 32px)); }

body .resizableProfileWindow .profileCoordinatesMenu .toolMenuItems { position: fixed !important; right: auto !important; max-height: calc(100dvh - 24px); overflow: auto; z-index: 80; }
