.previewPlaceholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  color: #c7c7c7;
  pointer-events: auto;
  > span:first-child {
    font-size: 30px;
    margin-bottom: 14px;
  }
  > div {
    font-size: 13px;
  }
}

.tooltip {
  max-width: 155px;
  text-align: center;
}

.previewIframe {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: none;
}

.preview {
  overflow: hidden;
}

.description {
  margin-top: 10px;
  font-weight: 400;
  font-size: 12px;
}

.noPreview {
  position: relative;
  background-color: var(--surface-color);
  width: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  // justify-content: space-evenly;
  margin: 0;
  position: absolute;
  height: 100%;
}

.component {
  width: 90%;
}

.scopeTitle {
  margin: 0;
  padding-bottom: 25px;
  font-weight: 400;
}

.componentTitle {
  font-size: 28px !important;
  margin: 0;
  margin-bottom: 20px;
}

.previewOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  cursor: pointer;
}

// ── Viewport gate & skeleton overlay ────────────────────────────────────────

.previewCard {
  position: relative;
  width: 100%;
  height: 100%;
}

.viewportGate {
  width: 100%;
  height: 100%;
}

.skeletonOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: var(--surface-color, #ffffff);
}

// ── Browser-chrome skeleton ─────────────────────────────────────────────────

.browserSkeleton {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.browserToolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-bottom: 1px solid currentColor;
  opacity: 0.08;
  flex-shrink: 0;
}

.browserDot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.browserUrlBar {
  flex: 1;
  height: 14px;
  margin-left: 8px;
  border-radius: 10px;
  background: currentColor;
}

.browserBody {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 14px;
  opacity: 0.06;

  > * {
    height: 10px;
    border-radius: 6px;
    background: currentColor;
  }
}

.browserLine1 {
  width: 55%;
}
.browserLine2 {
  width: 75%;
}
.browserLine3 {
  width: 40%;
}
.browserLine4 {
  width: 65%;
}
