/** 连线编辑侧栏：尺寸与图元 {@link FloorMapEditPanel} 对齐 */
.pisell-floor-map-layout-edge-edit-panel {
  width: 280px;
  /** 未放入 edit-panel-wrap 时的兜底；wrap 内由父级 flex 限制为 100% 高度 */
  max-height: 80vh;
  overflow-y: auto;
  touch-action: pan-y;
  padding: 12px;
  padding-bottom: calc(
    12px + var(--fmap-viewport-dock-bottom-clearance, 78px)
  );
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pisell-floor-map-layout-edge-edit-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.pisell-floor-map-layout-edge-edit-panel-title {
  font-size: 14px;
  font-weight: 500;
  color: #262626;
  line-height: 1.4;
}

.pisell-floor-map-layout-edge-edit-panel-close {
  flex-shrink: 0;
  color: rgba(0, 0, 0, 0.45);

  &:hover {
    color: rgba(0, 0, 0, 0.88);
  }
}

.pisell-floor-map-layout-edge-edit-panel-dirty-hint {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #595959;
}

/** 手机抽屉内与图元面板同款铺满 */
.pisell-floor-map-layout-edit-panel--phone-drawer.pisell-floor-map-layout-edge-edit-panel {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-height: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(
    12px + env(safe-area-inset-bottom, 0px) +
      var(--fmap-viewport-dock-bottom-clearance, 78px)
  );
}
