.demo-watermark-layer {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  align-content: space-around;
  gap: 8vh 3vw;
  padding: 4vh 2vw;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.demo-watermark-item {
  color: rgba(23, 68, 56, 0.13);
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  transform: rotate(-18deg);
}

.demo-watermark-time {
  display: block;
  font-size: 0.9em;
  font-variant-numeric: tabular-nums;
}

.demo-protected {
  user-select: none;
}

.demo-protected input,
.demo-protected textarea,
.demo-protected select,
.demo-protected [contenteditable="true"] {
  user-select: text;
}

.demo-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(23, 33, 28, 0.72);
}

.demo-notice-dialog {
  width: min(620px, 100%);
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.demo-notice-dialog h2 {
  margin-top: 0;
}

.demo-notice-dialog p {
  color: var(--color-muted);
  line-height: 1.6;
}

.demo-action-message {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10001;
  max-width: min(460px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  color: var(--color-heading);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.demo-print-blocker {
  display: none;
}

@media (max-width: 760px) {
  .demo-watermark-layer {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-notice-overlay,
  .demo-action-message {
    scroll-behavior: auto;
  }
}

@media print {
  body.demo-protected > *:not(.demo-print-blocker) {
    display: none !important;
  }

  body.demo-protected .demo-print-blocker {
    display: block !important;
    margin: 12vh auto;
    padding: 24px;
    color: #000000;
    font: 700 18pt/1.5 sans-serif;
    text-align: center;
  }
}
