.prompt-library{flex:1;min-height:0;overflow:auto;background:var(--prompt-bg,#0b0b0d);color:var(--prompt-text,#ececef);padding:42px 32px 72px}
.prompt-container{max-width:1280px;margin:0 auto}
.prompt-library header{text-align:center}
.prompt-library h1{font-size:36px;font-weight:500;margin:0 0 14px}
.prompt-library header p{color:#929299;font-size:14px;margin:0}
.prompt-library [data-count].is-inactive{visibility:hidden}
.prompt-search{display:flex;align-items:center;gap:12px;max-width:672px;margin:32px auto 30px;background:var(--prompt-panel,#171719);border:1px solid #ffffff16;border-radius:12px;padding:0 17px}
.prompt-search span{font-size:27px;color:#83838d}
.prompt-search input{width:100%;height:46px;background:transparent;border:0;outline:none;color:inherit;font:inherit;font-size:14px}
.prompt-search:focus-within{border-color:#eaca51}
.prompt-filter-row{display:flex;align-items:flex-start;gap:22px;margin-bottom:16px;font-size:13px;line-height:28px}
.prompt-filter-row>span{width:44px;flex-shrink:0;color:#9b9ba3;padding:2px 0}
.prompt-filter-row>div{display:flex;flex-wrap:wrap;gap:7px 12px;min-width:0}
.prompt-library button{font:inherit;color:inherit;cursor:pointer}
.prompt-filter-row button{border:0;background:transparent;padding:2px 10px;border-radius:20px;color:#ababaf;font-size:12px;line-height:26px}
.prompt-filter-row button:hover{background:#ffffff0e;color:#fff}
.prompt-filter-row button.is-on{background:#f5d450;color:#181610}
.prompt-status{min-height:20px;font-size:13px;color:#baaa74;margin:14px 0}
.prompt-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.prompt-card{min-width:0;overflow:hidden;border-radius:19px;background:var(--prompt-panel,#171719);border:1px solid #ffffff0c;display:flex;flex-direction:column}
.prompt-cover{padding:0;border:0;width:100%;aspect-ratio:4/3;background:#202024;overflow:hidden;display:flex;align-items:center;justify-content:center}
.prompt-cover img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.prompt-cover:hover img{transform:scale(1.025)}
.prompt-cover.is-text-preview{aspect-ratio:auto;min-height:180px;align-items:stretch;text-align:left;padding:22px;background:linear-gradient(145deg,#22242b,#17181d)}
.prompt-text-preview{display:flex;flex-direction:column;gap:15px;min-width:0;flex:1}
.prompt-preview-label{font-size:10px;letter-spacing:.06em;color:#d7c88b}
.prompt-preview-text{font-size:14px;line-height:1.75;color:#e1e1e7;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden;overflow-wrap:anywhere}
.prompt-preview-note{font-size:10px;line-height:1.6;color:#9d9da8;margin-top:auto}
.prompt-card:has(.prompt-cover.is-text-preview) .prompt-excerpt{display:none}
.prompt-card-body{padding:19px 20px 15px;display:flex;flex-direction:column;flex:1;gap:13px}
.prompt-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;text-align:left;border:0;padding:0;background:transparent}
.prompt-card-title strong{font-size:15px;font-weight:500;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.prompt-card-title time{font-size:11px;color:#777780;white-space:nowrap;padding-top:3px}
.prompt-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;background:transparent;border:0;padding:0;text-align:left;font-size:12px!important;line-height:1.7;color:#919199!important}
.prompt-tags{display:flex;flex-wrap:wrap;gap:6px}
.prompt-tags span{font-size:10px;color:#a4a4af;background:#ffffff08;border:1px solid #ffffff0c;border-radius:6px;padding:3px 7px}
.prompt-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin-top:auto;padding-top:5px}
.prompt-actions button{padding:5px 0;border:0;background:transparent;color:#b4b4bf;font-size:12px}
.prompt-actions button:hover{color:#f5d450}
.prompt-actions button:disabled{opacity:.65;cursor:default}
.prompt-more{display:block;margin:30px auto 0;border:0;background:transparent;color:#8b8b94!important;padding:15px;font-size:13px!important}
.prompt-library [hidden]{display:none!important}
.prompt-dialog{width:min(900px,calc(100vw - 32px));max-height:90vh;padding:0;border:1px solid #ffffff21;border-radius:18px;color:var(--prompt-text,#ececef);background:var(--prompt-panel,#171719);box-shadow:0 25px 90px #0008}
.prompt-dialog::backdrop{background:#000a;backdrop-filter:blur(4px)}
.prompt-dialog>header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:20px 24px;border-bottom:1px solid #ffffff12;background:var(--prompt-panel,#171719);z-index:1}
.prompt-dialog h2{margin:0;font-size:19px;font-weight:500}
.prompt-dialog :is([data-close],.prompt-dialog-close){border:0;background:transparent;font-size:28px;color:#92929d;margin-left:20px}
.prompt-detail{padding:24px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:25px}
.prompt-detail-image img{width:100%;height:auto;border-radius:10px}
.prompt-detail-image{min-width:0}
.prompt-detail.is-text-only{grid-template-columns:minmax(0,1fr)}
.prompt-detail-note{font-size:12px;line-height:1.6;color:#a9934c;border-left:2px solid #d6bc66;padding-left:10px;margin:0 0 16px}
.prompt-detail-copy{min-width:0}
.prompt-detail pre{font-family:inherit;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;margin:18px 0;color:inherit}
.prompt-dates{font-size:11px;color:#878790}
.prompt-detail-status{font-size:12px;color:#d6bc66}
.prompt-library button:focus-visible{outline:2px solid #f5d450;outline-offset:3px}
:root[data-theme=light] .prompt-library{--prompt-bg:#f7f7f8;--prompt-panel:#fff;--prompt-text:#222}
:root[data-theme=light] .prompt-cover.is-text-preview{background:linear-gradient(145deg,#f4f0e4,#f2f3f6)}
:root[data-theme=light] .prompt-preview-label{color:#766324}
:root[data-theme=light] .prompt-preview-text{color:#333743}
:root[data-theme=light] .prompt-preview-note{color:#747782}
.prompt-sentinel{height:1px}
@media(max-width:1000px){.prompt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.prompt-library{padding:30px 22px 50px}
}
@media(max-width:600px){.prompt-library{padding:28px 16px 40px}
.prompt-library h1{font-size:29px}
.prompt-grid{grid-template-columns:1fr}
.prompt-filter-row{gap:8px}
.prompt-filter-row>span{width:32px}
.prompt-filter-row>div{gap:4px}
.prompt-filter-row button{font-size:11px;padding:2px 8px}
.prompt-detail{grid-template-columns:1fr;padding:18px}
.prompt-detail-image img{max-height:360px;object-fit:contain}
.prompt-dialog>header{padding:16px}
.prompt-dialog h2{font-size:16px}
}
@media(prefers-reduced-motion:reduce){.prompt-cover img{transition:none}
}

/* Keep the catalog typography independent of the shell's display font. */
.prompt-library{font-family:ui-sans-serif,system-ui,-apple-system,"PingFang SC",sans-serif;font-weight:400;background:var(--prompt-bg,#050505);padding-top:28px}
.prompt-filters{padding:0 64px}
.prompt-filter-row{gap:20px}
.prompt-filter-row>div{gap:4px 12px}
.prompt-filter-row button{font-weight:400;line-height:24px;padding:1px 9px;color:#ddd}
.prompt-filter-row>span{padding:0}
.prompt-search input{height:50px}
.prompt-search{margin-bottom:24px}
.prompt-library h1{font-weight:500}
.prompt-library header p{font-weight:400}
.prompt-status:empty{min-height:0;margin:28px 0}
.prompt-actions svg,.prompt-search svg{width:16px;height:16px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7}
.prompt-actions button{display:inline-flex;align-items:center;gap:5px}
.prompt-search svg{width:20px;height:20px}
.prompt-search span{display:flex}
@media(max-width:1000px){.prompt-filters{padding:0}
}
:root[data-theme=light] .prompt-filter-row button{color:#555}
:root[data-theme=light] .prompt-filter-row button.is-on{color:#181610}
.prompt-actions a{font-size:12px;color:#b4b4bf;text-decoration:none}
.prompt-attribution{font-size:11px;line-height:1.6;color:#929299;margin:0;overflow-wrap:anywhere}
.prompt-attribution a{color:inherit}
.prompt-license{margin:12px 0;font-size:12px;color:#929299}
.prompt-license pre{max-height:200px;overflow:auto;font-size:11px}

:root[data-theme=light] .prompt-filter-row button:not(.is-on):hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
:root[data-theme=light] .prompt-filter-row button.is-on:hover { background: var(--accent-hover); filter: none; }
:root[data-theme=light] .prompt-actions :is(button, a):hover { color: var(--accent-text-hover); filter: none; }
