/* Full-screen live demo report. Every rule is prefixed and self-contained so page styles cannot reshape it. */
html.prousto-demo-open { overflow: hidden; }

.prousto-demo-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #fbf9f4;
  color: #252820;
}
.prousto-demo-overlay::backdrop { background: #fbf9f4; }

.prousto-demo-overlay__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: rgba(251, 249, 244, .94);
  border-bottom: 1px solid #e3e0d2;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.prousto-demo-overlay__label {
  margin: 0;
  font: 500 14px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: normal;
  color: #64665a;
}
.prousto-demo-overlay__close {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  background: #0007d9;
  color: #fff;
  font: 500 15px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: normal;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.prousto-demo-overlay__close:hover { background: #171cab; }
.prousto-demo-overlay__close:focus-visible { outline: 3px solid #0007d9; outline-offset: 3px; }
.prousto-demo-overlay__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.prousto-demo-overlay__status {
  margin: 0;
  padding: 72px 20px;
  text-align: center;
  font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #64665a;
}
.prousto-demo-overlay__status[hidden] { display: none; }
.prousto-demo-overlay__retry {
  display: block;
  margin: 16px auto 0;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #0007d9;
  border-radius: 6px;
  background: transparent;
  color: #0007d9;
  font: 500 15px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.prousto-demo-overlay prousto-demo {
  display: block;
  max-width: 1280px;
  margin-inline: auto;
  padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 520px) {
  .prousto-demo-overlay__label { font-size: 13px; }
  .prousto-demo-overlay__close { padding-inline: 14px; font-size: 14px; }
}
