 .psh-library,.psh-detail{--psh-ink:#172033;--psh-muted:#687386;--psh-line:#e7eaf0;--psh-accent:#5b5ce2;color:var(--psh-ink);font-family:inherit}
.psh-hero{padding:clamp(28px,5vw,64px);border-radius:22px;background:linear-gradient(135deg,#f2f4ff,#f8faff 55%,#eef8ff);text-align:center;margin:0 0 28px}
.psh-kicker{font-size:11px;letter-spacing:2px;font-weight:800;color:var(--psh-accent)}
.psh-hero h2{font-size:clamp(28px,4vw,46px);line-height:1.12;margin:12px 0;color:#151d32}.psh-hero p{color:var(--psh-muted);margin:0 0 20px}
.psh-search{display:flex;gap:8px;max-width:650px;margin:20px auto 0}.psh-search input{flex:1;min-width:0;padding:14px 16px;border:1px solid #dce1ec;border-radius:12px;background:#fff;font:inherit}.psh-search button,.psh-filter button,.psh-copy{border:0;border-radius:11px;background:var(--psh-accent);color:#fff;padding:12px 20px;font-weight:700;cursor:pointer}
.psh-filter{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:22px 0 30px}.psh-filter label{font-weight:700}.psh-filter select{padding:11px 14px;border:1px solid var(--psh-line);border-radius:10px;min-width:210px;background:#fff;font:inherit}
.psh-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:30px 0 16px}.psh-section-heading h2{font-size:24px;margin:0}.psh-section-heading span{font-size:13px;color:var(--psh-muted)}
.psh-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.psh-card{overflow:hidden;border:1px solid var(--psh-line);border-radius:16px;background:#fff;box-shadow:0 5px 18px rgba(20,32,60,.04);transition:transform .2s,box-shadow .2s}.psh-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(20,32,60,.09)}
.psh-card-image{display:block;aspect-ratio:16/10;background:#f0f2f8;overflow:hidden}.psh-card-image img{width:100%;height:100%;object-fit:cover;display:block}.psh-placeholder{display:grid;place-items:center;height:100%;font-weight:800;letter-spacing:2px;color:#929bb1}
.psh-card-body{padding:17px}.psh-card-category,.psh-meta{font-size:12px;color:var(--psh-accent);font-weight:700}.psh-card h3{font-size:18px;line-height:1.35;margin:8px 0}.psh-card h3 a{color:inherit;text-decoration:none}.psh-card p{font-size:14px;color:var(--psh-muted)}.psh-view{display:inline-flex;gap:8px;margin-top:8px;font-weight:700;color:var(--psh-accent);text-decoration:none}
.psh-pagination{margin:28px 0;text-align:center}.psh-pagination .page-numbers{display:inline-block;padding:8px 12px;border:1px solid var(--psh-line);border-radius:8px;margin:3px;text-decoration:none}.psh-pagination .current{background:var(--psh-accent);color:#fff}
.psh-empty{padding:35px;text-align:center;background:#f7f8fb;border-radius:16px}.psh-detail{max-width:950px;margin:0 auto}.psh-detail-header{margin-bottom:24px}.psh-detail-header h1{font-size:clamp(30px,5vw,48px);line-height:1.1;margin:10px 0}.psh-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:22px 0}.psh-gallery a:first-child:nth-last-child(odd){grid-column:1/-1}.psh-gallery img{width:100%;height:auto;max-height:520px;object-fit:cover;border-radius:14px;display:block}
.psh-description{line-height:1.75;margin:24px 0}.psh-prompt-box{border:1px solid var(--psh-line);border-radius:16px;padding:20px;margin:24px 0;background:#fbfcff}.psh-prompt-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.psh-prompt-top h2,.psh-video h2,.psh-related h2{font-size:22px;margin:0 0 14px}.psh-prompt-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:none;background:#fff;border:1px solid var(--psh-line);border-radius:12px;padding:18px;font:14px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace;color:#273047}.psh-copy.is-copied{background:#16845b}.psh-video{margin:28px 0}.psh-video-frame{position:relative;padding-bottom:56.25%;height:0;overflow:hidden;border-radius:16px;background:#111}.psh-video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.psh-share{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:24px 0;color:var(--psh-muted)}.psh-share a{font-weight:700;text-decoration:none;color:var(--psh-accent)}.psh-related{margin:42px 0}
@media(max-width:800px){.psh-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.psh-card-body{padding:14px}}
@media(max-width:560px){.psh-grid{grid-template-columns:1fr}.psh-search{flex-direction:column}.psh-search button{width:100%}.psh-filter{align-items:stretch;flex-direction:column}.psh-filter select,.psh-filter button{width:100%}.psh-gallery{grid-template-columns:1fr}.psh-prompt-top{align-items:flex-start;flex-direction:column}.psh-copy{width:100%}.psh-hero{padding:28px 18px}}


/* Prompt detail gallery – compact, consistent and responsive */
.psh-gallery{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  width:100%;
  max-width:980px;
  margin:22px auto 28px;
  align-items:stretch;
}
.psh-gallery a,
.psh-gallery a:first-child:nth-last-child(odd){
  grid-column:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  aspect-ratio:4/3;
  overflow:hidden;
  padding:6px;
  border:1px solid #e7eaf0;
  border-radius:12px;
  background:#f7f8fa;
  box-shadow:0 2px 8px rgba(25,35,55,.05);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.psh-gallery a:hover{
  transform:translateY(-2px);
  border-color:#cbd3e2;
  box-shadow:0 7px 18px rgba(25,35,55,.10);
}
.psh-gallery img{
  display:block;
  width:100%;
  height:100%;
  max-height:none;
  object-fit:contain;
  border-radius:7px;
}
@media(max-width:760px){
  .psh-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}
@media(max-width:420px){
  .psh-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .psh-gallery a{padding:4px;border-radius:9px}
}
