/* Only elements inserted by demo.js are styled: the snapshot stays intact without JS. */
.dpc-demo-banner {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  padding: 10px 16px;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
}
.dpc-demo-banner .dpc-demo-label { margin: 0; }
.dpc-demo-banner .dpc-demo-roles { display: flex; gap: 2px; }
.dpc-demo-banner a { color: hsl(var(--primary)); text-decoration: none; }
.dpc-demo-banner .dpc-demo-roles a { padding: 5px 8px; border-radius: calc(var(--radius) - 2px); color: hsl(var(--muted-foreground)); }
.dpc-demo-banner a[aria-current="page"] { background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }
.dpc-demo-banner a:hover { text-decoration: underline; }
.dpc-demo-banner a:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 3px; }
.dpc-demo-back { white-space: nowrap; }
.dpc-demo-toast {
  box-sizing: border-box;
  position: fixed;
  z-index: 100;
  right: 16px;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  left: 16px;
  width: fit-content;
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 18px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}
.dpc-demo-toast[hidden], .dpc-demo-menu-overlay[hidden] { display: none; }
.dpc-demo-menu-overlay { position: fixed; inset: 0; z-index: 80; }
.dpc-demo-menu {
  box-sizing: border-box;
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 28rem);
  max-height: calc(100vh - env(safe-area-inset-top, 0px) - 16px);
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 16px);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius) var(--radius) 0 0;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
}
.dpc-demo-menu-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid hsl(var(--border));
}
.dpc-demo-menu-title { margin: 0; font-size: 18px; font-weight: 600; }
.dpc-demo-menu-close {
  padding: 8px 12px;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  font: inherit;
}
.dpc-demo-menu-close:hover { background: hsl(var(--accent)); }
.dpc-demo-menu-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
@media (max-width: 600px) {
  .dpc-demo-banner { gap: 4px 12px; padding: 8px 10px; font-size: 13px; }
  .dpc-demo-banner .dpc-demo-label { flex-basis: 100%; text-align: center; }
  .dpc-demo-banner .dpc-demo-roles a { padding: 4px 6px; }
}
