.prompt-gallery-page {
  background:
    radial-gradient(circle at top left, rgba(255, 208, 140, 0.2), transparent 26%),
    radial-gradient(circle at 88% 2%, rgba(118, 162, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #17141f 0%, #10131a 58%, #0b0d12 100%);
  color: #f5efe7;
}

.prompt-gallery-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.95fr);
  gap: 1rem;
  align-items: start;
}

.panel {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(28, 31, 40, 0.95), rgba(14, 16, 22, 0.96));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
}

.prompt-hero {
  grid-column: 1 / -1;
  padding: 1.4rem 1.45rem;
}

.prompt-hero h1,
.prompt-focus h2,
.prompt-grid-panel h2,
.prompt-notes h2 {
  margin: 0;
  color: #fff8ef;
}

.prompt-hero h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.prompt-hero p,
.prompt-notes p,
.focus-text p,
.focus-text blockquote {
  max-width: 72ch;
  color: rgba(245, 239, 231, 0.84);
  line-height: 1.6;
}

.story-kicker,
.focus-badge,
.prompt-counter,
.prompt-chip {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-kicker {
  margin: 0;
  color: #c69b63;
  font-size: 0.76rem;
}

.prompt-focus,
.prompt-grid-panel,
.prompt-notes {
  padding: 1rem;
}

.focus-head,
.grid-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.focus-badge,
.prompt-counter {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #f8e6c9;
  font-size: 0.74rem;
}

.focus-preview {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.focus-art {
  min-height: 26rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--art-sky-top, #38435c), var(--art-sky-bottom, #11141d));
}

.focus-art::before,
.focus-art::after {
  content: '';
  position: absolute;
}

.focus-art::before {
  inset: 0;
  background:
    radial-gradient(circle at 22% 16%, rgba(255, 255, 255, 0.2), transparent 16%),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.12), transparent 18%),
    radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--art-glow, #e8d09a) 28%, transparent), transparent 36%);
}

.focus-art::after {
  left: 50%;
  bottom: 10%;
  width: 38%;
  height: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--art-figure, #221924));
  clip-path: polygon(46% 0, 54% 0, 66% 18%, 76% 42%, 90% 100%, 72% 100%, 60% 59%, 55% 100%, 45% 100%, 40% 59%, 28% 100%, 10% 100%, 24% 42%, 34% 18%);
}

.focus-text {
  display: grid;
  gap: 0.9rem;
}

.focus-text blockquote {
  margin: 0;
  padding: 1rem 1.05rem;
  border-left: 0.28rem solid #dfb06e;
  border-radius: 0 16px 16px 0;
  background: rgba(255, 255, 255, 0.04);
  color: #fff3df;
}

.focus-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.focus-actions button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  color: #fff8ef;
  border-radius: 999px;
  padding: 0.62rem 0.92rem;
  cursor: pointer;
}

.prompt-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.prompt-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.9rem;
  display: grid;
  gap: 0.65rem;
}

.prompt-card.is-active {
  border-color: rgba(223, 176, 110, 0.78);
  box-shadow: inset 0 0 0 1px rgba(223, 176, 110, 0.18);
  background: linear-gradient(180deg, rgba(68, 47, 26, 0.88), rgba(19, 16, 16, 0.94));
}

.prompt-card header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}

.prompt-card h3 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
}

.prompt-chip {
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f2d7ab;
  font-size: 0.7rem;
}

.prompt-card p,
.prompt-card pre {
  margin: 0;
  color: rgba(245, 239, 231, 0.82);
  font-size: 0.92rem;
  line-height: 1.55;
}

.prompt-card pre {
  white-space: pre-wrap;
  font-family: inherit;
  padding: 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.prompt-card .prompt-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.prompt-card .prompt-actions button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #fff8ef;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.prompt-notes ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.6rem;
}

@media (max-width: 1120px) {
  .prompt-gallery-shell {
    grid-template-columns: 1fr;
  }

  .prompt-grid,
  .focus-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .prompt-focus,
  .prompt-grid-panel,
  .prompt-notes,
  .prompt-hero {
    padding: 0.85rem;
  }

  .focus-head,
  .grid-head {
    flex-direction: column;
  }

  .focus-art {
    min-height: 20rem;
  }
}