/* 共通プレビューを既存の「最新iPhone筐体」比率へ戻す。
   閉じる×とモック外クリックは commonPreviewRuntime.js 側で維持する。 */
html body .shunlp-common-preview {
  padding: 40px 20px;
  background: #f8fafc;
  backdrop-filter: none;
  cursor: pointer;
}

html body .shunlp-common-preview-panel {
  position: relative;
  width: min(90vw, 410px, calc((100vh - 100px) * 0.462));
  height: auto;
  aspect-ratio: 390 / 844;
  max-height: calc(100vh - 100px);
  border: 12px solid #090d16;
  border-radius: 54px;
  padding: 0;
  background: #000;
  box-shadow:
    0 25px 50px -12px rgba(15, 23, 42, 0.3),
    0 0 0 2px #334155,
    inset 0 0 0 2px #1e293b;
  box-sizing: border-box;
  margin: 0 auto;
  display: block;
  cursor: default;
}

html body .shunlp-common-preview-screen {
  width: 100%;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
}

html body .shunlp-common-preview-close {
  right: -18px;
  top: -18px;
}

@media (max-width: 520px) {
  html body .shunlp-common-preview {
    padding: 12px 8px;
  }

  html body .shunlp-common-preview-panel {
    width: min(90vw, 410px, calc((100vh - 32px) * 0.462));
    height: auto;
    max-height: calc(100vh - 32px);
    border-width: 10px;
    border-radius: 48px;
    padding: 0;
  }

  html body .shunlp-common-preview-screen {
    border-radius: 36px;
  }

  html body .shunlp-common-preview-close {
    right: -6px;
    top: -6px;
  }
}
