.ch-ai-prompts{--prompt-blue:#1454b5;--prompt-ink:#102646;--prompt-muted:#475d78;--prompt-line:#d9e3ef;--prompt-pale:#edf5ff;color:var(--prompt-ink)}
.ch-ai-prompts [hidden]{display:none!important}
.ch-ai-prompts .prompt-hero{background:#f5f9ff;border:1px solid var(--prompt-line);border-radius:14px;padding:clamp(24px,5vw,60px) 16px;text-align:center}
.ch-ai-prompts h1{font-size:clamp(1.75rem,4vw,3rem);line-height:1.25;color:inherit;margin:0 0 12px}
.ch-ai-prompts .prompt-hero p{color:var(--prompt-muted);margin:0 0 20px}
.ch-ai-prompts .prompt-search{display:block;max-width:660px;margin:auto}
.ch-ai-prompts input[type=search]{box-sizing:border-box;width:100%;font:inherit;border:1px solid #a9bed9;background:#fff;color:inherit;border-radius:10px;padding:12px 16px}
.ch-ai-prompts .prompt-list{padding:22px 0}
.ch-ai-prompts .prompt-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.ch-ai-prompts button{font:inherit;cursor:pointer}
.ch-ai-prompts .prompt-filters button{font-size:.9rem;font-weight:700;border:1px solid var(--prompt-line);border-radius:999px;background:white;color:inherit;padding:6px 14px}
.ch-ai-prompts .prompt-filters button[aria-pressed=true]{color:white;background:var(--prompt-blue);border-color:var(--prompt-blue)}
.ch-ai-prompts .prompt-count{margin:16px 0 10px;color:var(--prompt-muted)}
.ch-ai-prompts .prompt-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.ch-ai-prompts .prompt-card{display:grid;gap:12px;min-width:0;padding:18px;border:1px solid var(--prompt-line);border-radius:14px;background:#fff}
.ch-ai-prompts .prompt-meta,.ch-ai-prompts .prompt-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.ch-ai-prompts .prompt-meta{color:var(--prompt-blue);font-size:.875rem;font-weight:700}
.ch-ai-prompts .prompt-icon{display:grid;place-items:center;min-width:38px;height:38px;border-radius:8px;background:var(--prompt-pale);font-size:1.25rem}
.ch-ai-prompts .prompt-type{color:var(--prompt-muted)}
.ch-ai-prompts h2{font-size:1.15rem;line-height:1.4;margin:0;color:inherit}
.ch-ai-prompts .prompt-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.6;max-height:3.2em;margin:0;color:var(--prompt-muted);font-size:.94rem}
.ch-ai-prompts .prompt-sample{display:block;border-radius:9px;overflow:hidden;background:#f5f8fc}
.ch-ai-prompts .prompt-sample img{display:block;width:100%;max-width:none;height:144px;object-fit:cover;object-position:center}
.ch-ai-prompts .prompt-actions{justify-content:space-between}
.ch-ai-prompts [data-read],.ch-ai-prompts [data-close],.ch-ai-prompts summary{border:0;background:transparent;color:var(--prompt-blue);font-weight:700;padding:6px 0;cursor:pointer}
.ch-ai-prompts .prompt-copy{background:var(--prompt-pale);color:#13478b;border:1px solid #b9cee8;border-radius:8px;padding:6px 10px;font-weight:700}
.ch-ai-prompts .prompt-text{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:8px;background:#f5f8fc;color:var(--prompt-ink);padding:12px;margin:0}
.ch-ai-prompts .prompt-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ch-ai-prompts :focus-visible{outline:2px solid var(--prompt-blue);outline-offset:3px}
.ch-ai-prompts dialog{box-sizing:border-box;width:min(720px,calc(100% - 32px));max-height:min(82dvh,760px);overflow:hidden;border:1px solid var(--prompt-line);border-radius:14px;padding:0;background:#fff;color:var(--prompt-ink)}
.ch-ai-prompts dialog[open]{display:flex;flex-direction:column}
.ch-ai-prompts dialog::backdrop{background:#10264688}
body:has(.ch-ai-prompts dialog[open]){overflow:hidden}
.ch-ai-prompts .prompt-reader-head,.ch-ai-prompts .prompt-reader-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:14px 18px}
.ch-ai-prompts .prompt-reader-head{border-bottom:1px solid var(--prompt-line)}
.ch-ai-prompts .prompt-reader-foot{border-top:1px solid var(--prompt-line);justify-content:flex-end}
.ch-ai-prompts .prompt-reader-foot p{margin:0}
.ch-ai-prompts .prompt-reader-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 18px}
.ch-ai-prompts .prompt-reader-body img{display:block;width:100%;height:auto}
@media(max-width:900px){.ch-ai-prompts .prompt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:585px){.ch-ai-prompts .prompt-grid{grid-template-columns:minmax(0,1fr)}.ch-ai-prompts .prompt-sample img{height:128px}.ch-ai-prompts dialog{inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0}.ch-ai-prompts .prompt-reader-body{flex:1}}

.ch-ai-prompts .prompt-instruction{padding:12px 14px;margin:0 0 14px;background:#edf5ff;border-left:3px solid var(--prompt-blue);border-radius:8px;overflow-wrap:anywhere}
.ch-ai-prompts .prompt-instruction p{margin:6px 0 0;white-space:pre-wrap}
