/* みんなの生成：投稿ページの「このプロンプトで作られた作品」（app/gallery/static/post-works.js）。 */
#detail-modal .gl-post-works { margin: 24px 0 8px; text-align: left; }
#detail-modal .gl-pw-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
#detail-modal .gl-pw-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
#detail-modal .gl-pw-head span { font-size: 12px; color: #55555a; }
#detail-modal .gl-pw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#detail-modal .gl-pw-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#detail-modal .gl-pw-media { position: relative; }
#detail-modal .gl-pw-link { display: block; border-radius: 10px; overflow: hidden; background: #eceef1; }
#detail-modal .gl-pw-link img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
#detail-modal .gl-pw-link:focus-visible { outline: 2px solid #0064d6; outline-offset: 2px; }
#detail-modal .gl-pw-like {
  position: absolute; right: 6px; bottom: 6px; min-width: 44px; height: 32px; padding: 0 9px; border: 0; border-radius: 999px;
  background: rgba(16, 18, 24, .62); color: #fff; font: inherit; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
}
#detail-modal .gl-pw-like svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#detail-modal .gl-pw-like[aria-pressed="true"] { background: #d92b4b; }
#detail-modal .gl-pw-like[aria-pressed="true"] svg { fill: currentColor; }
#detail-modal .gl-pw-like:focus-visible { outline: 2px solid #0064d6; outline-offset: 2px; }
#detail-modal .gl-pw-meta { font-size: 12px; line-height: 1.4; color: #55555a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#detail-modal .gl-pw-meta b { color: #1a1a1a; font-weight: 600; }
#detail-modal .gl-pw-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; font-size: 13px; font-weight: 600; color: #0b57c9; }
#detail-modal .gl-pw-empty { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px dashed #a9a9b2; border-radius: 10px; font-size: 13px; color: #3a3a3c; }
#detail-modal .gl-pw-first { min-height: 44px; padding: 0 14px; border: 1px solid #1a1a1a; border-radius: 999px; background: #fff; color: #1a1a1a; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
#detail-modal .gl-pw-first:focus-visible { outline: 2px solid #0064d6; outline-offset: 2px; }
@media (max-width: 640px) { #detail-modal .gl-pw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
