.prompt-page {
  width: min(100%, 880px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.prompt-header,
.prompt-footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}

.prompt-header a,
.prompt-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.prompt-header a:hover,
.prompt-footer a:hover { color: var(--brand); }

.prompt-page main { padding: clamp(48px, 8vw, 84px) 0; }

.prompt-eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prompt-page h1 {
  font-size: clamp(42px, 7vw, 64px);
  line-height: 1;
}

.prompt-note {
  max-width: 620px;
  margin: 24px 0 42px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.prompt-block {
  position: relative;
}

.copy-prompt {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--ink-soft);
  font: 600 12px/1 var(--sans);
  cursor: pointer;
}

.copy-prompt:hover { color: var(--brand); border-color: #b9acee; }
.copy-prompt:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.copy-prompt svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.copy-prompt[data-state="copied"] { color: var(--brand); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prompt-text {
  margin: 0;
  padding: clamp(64px, 8vw, 72px) clamp(24px, 5vw, 44px) clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: 14px/1.95 var(--sans);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}

.prompt-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  justify-content: flex-end;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 520px) {
  .prompt-header { align-items: flex-start; flex-direction: column; justify-content: center; gap: 0; padding: 12px 0; }
}
