/* Scoped light-DOM styles only: no host selectors, resets, inline style, fonts, or overlays. */
.pm-demo {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 68rem;
  min-width: 0;
  margin: 2rem auto;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #cbd5e1;
  border-radius: 1.25rem;
  background: #f8fafc;
  color: #172033;
  font-family: system-ui, sans-serif;
  line-height: 1.55;
  text-align: start;
  isolation: isolate;
  overflow-wrap: anywhere;
}
.pm-demo *, .pm-demo *::before, .pm-demo *::after { box-sizing: border-box; }
.pm-demo [hidden] { display: none !important; }
.pm-demo .pm-demo__title { margin: 0 0 .6rem; color: inherit; font: 700 clamp(1.3rem, 3vw, 2rem)/1.2 system-ui, sans-serif; }
.pm-demo .pm-demo__description { margin: 0 0 1rem; max-width: 65ch; color: inherit; }
.pm-demo .pm-demo__frame { display: block; width: 100%; overflow: hidden; border-radius: .75rem; background: #e2e8f0; }
.pm-demo .pm-demo__media { display: block; width: 100%; max-width: 100%; height: auto; max-height: 72vh; object-fit: contain; margin: 0; }
.pm-demo .pm-demo__controls { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1rem 0; }
.pm-demo .pm-demo__toggle { appearance: none; cursor: pointer; min-height: 44px; padding: .65rem 1rem; border: 2px solid #172033; border-radius: .5rem; background: #172033; color: #fff; font: 600 1rem/1.25 system-ui, sans-serif; }
.pm-demo .pm-demo__toggle:disabled { cursor: default; opacity: .65; }
.pm-demo .pm-demo__toggle:focus-visible, .pm-demo summary:focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; }
.pm-demo .pm-demo__status { flex: 1 1 14rem; font-size: .9rem; }
.pm-demo .pm-demo__transcript { border-top: 1px solid #cbd5e1; padding-top: .75rem; }
.pm-demo summary { cursor: pointer; min-height: 44px; padding: .5rem 0; font-weight: 650; }
.pm-demo .pm-demo__transcript p, .pm-demo .pm-demo__transcript ol { margin: .5rem 0; }
.pm-demo .pm-demo__transcript ol { padding-inline-start: 1.6rem; }
.pm-demo .pm-demo__transcript li { margin-block: .4rem; }
@media (prefers-color-scheme: dark) {
  .pm-demo { background: #111827; color: #f1f5f9; border-color: #475569; }
  .pm-demo .pm-demo__frame { background: #0f172a; }
  .pm-demo .pm-demo__toggle { background: #f1f5f9; color: #111827; border-color: #f1f5f9; }
  .pm-demo .pm-demo__transcript { border-color: #475569; }
}
@media (forced-colors: active) {
  .pm-demo, .pm-demo .pm-demo__toggle { border: 1px solid CanvasText; }
}
