/* Optional Prompt cases follow existing surface, type and color tokens. */
.prompt-example{border:1px solid var(--line);border-radius:12px;padding:20px;margin-block:24px;background:var(--paper)}
.prompt-example-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:18px}
.prompt-example-heading h2{margin:0}.prompt-example-kind{font-size:12px;color:var(--muted);background:var(--soft);border-radius:6px;padding:5px 9px}
.prompt-example-part h3{font-size:15px;margin:0 0 10px}.prompt-example-part p{font-size:14px;line-height:1.75;overflow-wrap:anywhere}.example-arrow{color:var(--muted);font-size:22px;line-height:1;text-align:center;margin:14px 0}
.prompt-example-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
.prompt-example-image{display:block;width:100%;min-width:0;padding:0;overflow:hidden;background:var(--soft);border:1px solid var(--line);border-radius:8px;color:var(--text);text-align:left;cursor:zoom-in}
.prompt-example-image img{display:block;width:100%;height:150px;object-fit:contain;background:var(--soft)}.prompt-example-image span{display:block;padding:9px 12px;font-size:12px;min-height:36px}
.prompt-example-image:focus-visible,.project-image-dialog button:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.prompt-example-primary-preview{margin-bottom:16px;max-width:440px}.prompt-example-primary-preview .prompt-example-image img{height:200px}.prompt-example-primary-preview>p{margin-block:0 8px}
.prompt-example-text summary{cursor:pointer;font-size:14px;line-height:1.75;overflow-wrap:anywhere}.prompt-example-text summary span{color:var(--brand);white-space:nowrap}.prompt-example-text[open] summary{margin-bottom:12px}
.prompt-example-editor .prompt-example-edit-group{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}.prompt-example-editor h3{font-size:15px;margin:0 0 12px}.prompt-example-upload-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.prompt-example-upload-slot{min-width:0;border:1px solid var(--line);border-radius:8px;padding:10px;background:var(--soft)}.prompt-example-upload-slot img{display:block;width:100%;height:100px;object-fit:contain;margin-bottom:8px}
.prompt-example-upload-slot .field{margin:0}.prompt-example-upload-slot input{max-width:100%;font-size:12px;padding:4px 0;background:transparent;border:0}.prompt-example-upload-slot input::file-selector-button{min-height:44px;max-width:100%;margin-bottom:4px;cursor:pointer}.prompt-example-upload-slot button{min-height:44px;width:100%;font-size:12px}.prompt-example-upload-slot small{display:block;overflow-wrap:anywhere;font-size:12px}
.project-image-dialog{width:min(1100px,calc(100vw - 24px));height:min(900px,calc(100dvh - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:0;overflow:hidden;color:var(--text,#192e26);background:var(--paper,#fff);border:1px solid var(--line,#d7dfda);border-radius:12px}
.project-image-dialog::backdrop{background:#0c1c17bb}.project-image-dialog .image-dialog-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;background:var(--paper,#fff)}
.project-image-dialog button{min-width:44px;min-height:44px;border:1px solid var(--line,#d7dfda);border-radius:6px;background:var(--paper,#fff);color:inherit;padding:8px 12px;cursor:pointer}
.project-image-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 14px 10px}.project-image-controls output{min-width:45px;text-align:center;font-size:13px}
.project-image-dialog .image-dialog-body{height:calc(100% - 128px);overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom;text-align:center;padding:16px;background:var(--soft,#f2f6f3)}
.project-image-dialog .image-dialog-body img{display:block;height:auto;max-height:none;object-fit:contain;margin:auto}.project-image-dialog .image-dialog-body img[hidden]{display:none}
@media(max-width:600px){.prompt-example{padding:16px}.prompt-example-images{grid-template-columns:1fr}.prompt-example-image img{height:180px}.prompt-example-upload-grid{grid-template-columns:1fr}.prompt-example-upload-slot{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.prompt-example-upload-slot:has(>img){grid-template-columns:82px minmax(0,1fr)}.prompt-example-upload-slot img{height:82px;grid-row:span 2}.prompt-example-upload-slot:has(>img) button{grid-column:2}.prompt-example-primary-preview{max-width:none}.project-image-dialog .image-dialog-bar{padding:8px 10px}.project-image-controls{gap:6px;padding:0 10px 8px}.project-image-controls button{font-size:12px;padding:6px 8px}.project-image-dialog .image-dialog-body{height:calc(100% - 172px);padding:10px}}

@media(max-width:360px){.prompt-example-upload-slot:has(>img){grid-template-columns:minmax(0,1fr)}.prompt-example-upload-slot:has(>img) button{grid-column:1}.prompt-example-upload-slot img{height:130px;grid-row:auto}}
