/* Prompt library (/prompts), on top of the studio look in site.css. */

.pl-stats { display: flex; flex-wrap: wrap; gap: 1px; margin-top: 28px; width: fit-content; max-width: 100%; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pl-stats div { background: var(--bg-2); padding: 14px 22px; display: grid; gap: 2px; }
.pl-stats strong { font-family: var(--font-display); font-size: 22px; color: var(--ice-2); }
.pl-stats span { font-size: 13px; color: var(--muted); }

.pl { padding-top: 36px; padding-bottom: 20px; }

.pl-how { border: 1px solid rgba(111, 214, 255, 0.25); background: rgba(111, 214, 255, 0.05); border-radius: var(--radius); padding: 18px 22px; color: #c3ccd7; font-size: 15.5px; max-width: 900px; }
.pl-how strong { color: var(--ice-2); }
.pl-how p { margin: 0; }
.pl-how p + p { margin-top: 10px; }
.pl-how a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }

.pl-tools { margin: 28px 0 24px; display: grid; gap: 14px; }
.pl-search { width: 100%; max-width: 640px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; color: var(--text); font: inherit; font-size: 16px; padding: 14px 16px; }
.pl-search::placeholder { color: var(--dim); }
.pl-search:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px rgba(111, 214, 255, 0.15); }

.pl-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-chip { font: inherit; font-size: 13.5px; color: var(--muted); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.pl-chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.pl-chip.is-on { color: #03121a; background: var(--ice); border-color: var(--ice); font-weight: 600; }

.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.pl-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .2s, transform .2s; }
.pl-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pl-card[hidden] { display: none; }
.pl-card.is-featured { grid-column: 1 / -1; border-color: rgba(255, 198, 26, 0.35); background: linear-gradient(135deg, rgba(255, 198, 26, 0.06), transparent 55%), var(--surface); }
main .pl-card h2, main .pl-dialog-head h2 { font-family: var(--font-display); font-weight: 700; color: var(--text); text-transform: none; letter-spacing: 0; line-height: 1.25; }
main .pl-card h2 { font-size: 21px; margin: 14px 0 8px; }
main .pl-card.is-featured h2 { font-size: clamp(22px, 2.4vw, 28px); }
.pl-card p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.pl-card.is-featured p { max-width: 75ch; }

.pl-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-badge { display: inline-block; font-family: var(--font-display); font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ice); border: 1px solid rgba(111, 214, 255, 0.3); border-radius: 6px; padding: 4px 8px; }
.pl-badge.is-sign { color: var(--sign); border-color: rgba(255, 198, 26, 0.4); }

.pl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 18px; }
.pl-tags span { font-family: var(--font-mono); font-size: 12px; color: var(--dim); background: rgba(255, 255, 255, 0.04); border-radius: 5px; padding: 3px 7px; }

.pl-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pl-actions .btn, .pl-dialog .btn { padding: 10px 16px; font-size: 13px; }

.pl-empty { color: var(--muted); padding: 40px 0; text-align: center; }

.pl-dialog { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9); }
.pl-dialog[open] { display: flex; flex-direction: column; }
.pl-dialog::backdrop { background: rgba(3, 5, 8, 0.75); backdrop-filter: blur(3px); }
.pl-dialog-head { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: flex-start; padding: 20px 22px; border-bottom: 1px solid var(--line); }
main .pl-dialog-head h2 { font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 24px); margin: 10px 0 0; }
.pl-dialog-actions { display: flex; gap: 10px; }
.pl-dialog-text { margin: 0; padding: 22px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6; color: #c9d3de; }
.pl-dialog-text:focus { outline: none; }

@media (max-width: 640px) {
    .pl-stats div { padding: 12px 16px; }
    .pl-dialog { max-height: calc(100vh - 24px); }
    .pl-dialog-head, .pl-dialog-text { padding: 16px; }
}
