/* DESIGN-STYLE-24 page-specific styles. Base tone comes from atelier.css / gallery.css. */
.ds24-base-frame, .ds24-card { background: #fffdf7; border: 1px solid #e3dac7; border-radius: 14px; }
.ds24-base-frame { margin: 0; padding: 10px; }
.ds24-base-frame img { width: 100%; height: auto; display: block; border-radius: 8px; }
.ds24-base-frame figcaption { padding: 8px 4px 2px; font-size: 13px; color: #6b6252; }
.ds24-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.ds24-card { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.ds24-thumb { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.ds24-thumb img { width: 100%; height: auto; display: block; border-radius: 8px; }
.ds24-card h3 { margin: 2px 0 0; font-size: 16px; }
.ds24-card h3 .ds24-no { color: #a4552e; margin-right: .4em; }
.ds24-prompt { margin: 0; background: #f6f0e6; border-radius: 8px; padding: 10px 12px; font-size: 13.5px; line-height: 1.7; white-space: pre-line; }
.ds24-copy { align-self: flex-start; border: 1px solid #c9b894; background: #fffdf7; border-radius: 999px; padding: 7px 16px; font-size: 13px; cursor: pointer; }
.ds24-copy:hover { background: #f6f0e6; }
.ds24-steps { line-height: 1.9; padding-left: 1.4em; }
.ds24-note, .ds24-memo p { line-height: 1.9; }
#ds24-dialog { max-width: min(1060px, 94vw); width: 100%; border: 1px solid #e3dac7; border-radius: 16px; padding: 18px; background: #fffdf7; }
#ds24-dialog::backdrop { background: rgba(43, 36, 25, .55); }
.ds24-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ds24-dialog-head h2 { margin: 0; font-size: 19px; }
.ds24-dialog-stage { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 10px; }
.ds24-dialog-stage.compare { grid-template-columns: 1fr 1fr; }
.ds24-dialog-stage figure { margin: 0; }
.ds24-dialog-stage img { width: 100%; height: auto; display: block; border-radius: 8px; }
.ds24-dialog-stage figcaption { font-size: 12.5px; color: #6b6252; padding-top: 6px; }
.ds24-dialog-prompt { background: #f6f0e6; border-radius: 8px; padding: 10px 12px; font-size: 14px; line-height: 1.7; white-space: pre-line; }
.ds24-dialog-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ds24-dialog-tools button { border: 1px solid #c9b894; background: #fffdf7; border-radius: 999px; padding: 7px 16px; font-size: 13px; cursor: pointer; }
.ds24-dialog-tools button[aria-pressed="true"] { background: #2b2419; color: #f7f2e9; }
.ds24-dialog-nav { margin-left: auto; display: inline-flex; gap: 8px; }
.ds24-dialog-hint { font-size: 12px; color: #6b6252; }
.ds24-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: #2c2620; color: #f7f2e9; font-size: 13.5px; font-weight: 700; padding: 10px 20px; border-radius: 999px; z-index: 60; }
@media (max-width: 640px) {
  .ds24-dialog-stage.compare { grid-template-columns: 1fr; }
  .ds24-dialog-nav { margin-left: 0; }
}
/* AI-188: keep the 900px-wide poster inside the frame on narrow screens. */
.ag-master-frame img{width:100%;height:auto;display:block}
/* Esc・←→の案内は、キーボードとマウスのあるPCのときだけ出す */
.ds24-dialog-hint{display:none}
@media (hover:hover) and (pointer:fine){.ds24-dialog-hint{display:block}}
