.resizer {
  z-index: 10;
  display: flex;
  width: 10px;
  align-items: center;
  justify-content: center;
  cursor: col-resize;
  background-color: var(--bg-app);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  transition: background 0.2s;
}

.resizer:hover {
  background-color: var(--accent-primary);
}

.resizer::after {
  content: "";
  display: block;
  width: 2px;
  height: 16px;
  background: #555;
  border-radius: 1px;
}

.preview-wrapper {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 260px;
  background: #f2f4f7;
}

.preview-action {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #666;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.preview-action:hover {
  color: #333;
  background: rgba(255, 255, 255, 0.72);
}

.preview-stage {
  position: relative;
  flex: 1;
  min-height: 0;
}

iframe {
  width: 100%;
  height: 100%;
  background: #fff;
  border: none;
}

.iframe-mask {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: none;
}

body.resizing {
  cursor: col-resize;
}

body.resizing .iframe-mask {
  display: block;
}
