html.rdtp-preview-open { overflow: hidden; }
dialog.rdtp-article-preview {
  position: fixed; inset: 0;
  width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--surface, #fff); color: var(--text-main, #252a30);
}
dialog.rdtp-article-preview:not([open]) { display: none; }
dialog.rdtp-article-preview[open] { display: flex; flex-direction: column; }
dialog.rdtp-article-preview::backdrop { background: transparent; }
.rdtp-article-preview__body { flex: 1; min-height: 0; position: relative; }
.rdtp-article-preview__stage, .rdtp-article-preview__stage iframe { width: 100%; height: 100%; }
.rdtp-article-preview__stage iframe { display: block; border: 0; }
.rdtp-article-preview__notice {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; margin: 0; padding: 24px;
  background: var(--surface, #fff); color: var(--text-main, #252a30); text-align: center;
}
.rdtp-article-preview__bar {
  display: flex; align-items: center; justify-content: center; flex: none; gap: 12px;
  padding: 8px max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: var(--surface, #fff); border-top: 1px solid var(--line-subtle, #dde3e9);
  font-size: 14px; line-height: 1.3;
}
.rdtp-article-preview__back {
  min-height: 44px; border: 0; border-radius: 999px; padding: 8px 14px;
  background: var(--button-back-bg, #f2f4f6); color: var(--button-back-text, #596570);
  font: inherit; font-weight: 500; cursor: pointer;
}
.rdtp-article-preview__back:active { background: #e8ecf0; }
