.pd-page-shell {
  width: 100%;
  min-width: 0;
}
.pd-page-shell__content { min-width: 0; }
.pd-page-shell .pd-auth-page { min-height: 0; padding-top: 32px; }
.pd-public-member-lookup { margin: 20px 0; padding: 20px; }
.pd-message-detail-header > div { min-width: 0; max-width: 100%; }
.pd-message-detail h1, .pd-message-detail-subject { overflow-wrap: anywhere; }
.pd-profile-preview {
  position: fixed;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 176px;
  height: 176px;
  padding: 8px;
  border: 1px solid var(--pd-border);
  border-radius: 12px;
  background: white;
  box-shadow: var(--pd-shadow-md);
  pointer-events: none;
}
.pd-profile-preview[hidden], .pd-profile-preview [hidden] { display: none; }
.pd-profile-preview img { width: 160px; height: 160px; object-fit: cover; border-radius: 8px; }
.pd-forum-legacy-content { padding: clamp(16px, 3vw, 32px); overflow-wrap: anywhere; }
.pd-forum-preview-message { white-space: pre-wrap; }
.pd-forum-legacy-content table { width: 100%; border-collapse: collapse; }
.pd-forum-legacy-content td, .pd-forum-legacy-content th { padding: 10px; }
.pd-community-page [bgcolor] { background: var(--pd-surface); color: var(--pd-text); }
.pd-community-page blockquote { font-size: .95em; margin: 1rem; }
.pd-forum-legacy-content input:not([type="checkbox"]):not([type="radio"]),
.pd-forum-legacy-content textarea, .pd-forum-legacy-content select { max-width: 100%; }
.pd-ad-rail[hidden] { display: none; }
.pd-masthead {
  width: min(100%, 420px);
  margin: 0 auto;
  line-height: 0;
}
.pd-masthead--public { width: min(100%, 840px); }
.pd-masthead picture, .pd-masthead img { display: block; width: 100%; height: auto; }
/* Activate only after approved units are supplied; narrow screens retain full content width. */
@media (min-width: 1600px) {
  .pd-page-shell--ads {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 160px;
    gap: 24px;
    max-width: 1920px;
    margin-inline: auto;
  }
  .pd-page-shell--ads .pd-ad-rail:not([hidden]) { display: block; overflow: hidden; }
}
@media (max-width: 1599px) { .pd-ad-rail { display: none; } }
