.pisell-floor-map-layout {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: #fafafa;

  &-loading,
  &-save-error {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 8px 12px;
    font-size: 14px;
  }

  &-loading {
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #666;
  }

  &-save-error {
    top: 0;
    background: #fff2f0;
    color: #cf1322;
  }

  &-edit-placeholder-toolbar {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    font-size: 12px;
    color: #999;
    background: #fff;
    border: 1px dashed #d9d9d9;
    border-radius: 4px;
    z-index: 5;
  }

  &-edit-panel-wrap {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    z-index: 10;
  }

  &-place-overlay {
    position: absolute;
    left: 0;
    top: 0;
    cursor: crosshair;
    z-index: 1;
  }

  /* 编辑态拖入图源：平时穿透事件，激活时盖住画布以接收 drop */

  &-map-drop-layer {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 0;
    box-sizing: border-box;

    &-active {
      pointer-events: auto;
      z-index: 100;
      box-shadow: inset 0 0 0 2px var(--fmap-primary, #1677ff);
      background: color-mix(in srgb,
      var(--fmap-primary, #1677ff) 6%,
      transparent);
    }
  }

  /** 视口内悬浮层：不随 Transform 缩放平移，与 ViewControls 同级 */

  &-viewport-overlay {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 19;
    pointer-events: none;
    max-width: min(280px, 46vw);

    > * {
      pointer-events: auto;
    }
  }

  /** 编辑态：画布区域（含 Transform）为右侧 FloorMapEditPanel 预留宽度 */

  &-map-area {
    box-sizing: border-box;

    &--edit-panel-inset {
      padding-right: 336px;
    }
  }
}
