/* Scoped to the prompt view; shared shell/theme remain owned by the integration task. */
.prompt-library { color: #39213f; --pl-green: #39213f; --pl-muted: #82718a; --pl-line: #e8e0dd; }
.prompt-library *, .prompt-library *::before, .prompt-library *::after { box-sizing: border-box; }
.prompt-library [hidden] { display: none !important; }
.prompt-library button, .prompt-library input, .prompt-library textarea { font: inherit; }
.prompt-library button:disabled { opacity: .42; cursor: not-allowed; }
.prompt-library :focus-visible { outline: 3px solid #8965b0; outline-offset: 3px; }
.prompt-library a { color: #51335c; text-decoration: underline; text-underline-offset: 3px; }
.prompt-library .pl-muted { color: var(--pl-muted); }
.prompt-library .pl-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.pl-hero { min-height: 180px; border-radius: 13px; padding: 32px 34px; display: flex; align-items: center; position: relative; overflow: hidden; background: radial-gradient(ellipse at 83% 0%, #51335c 0%, transparent 65%), #39213f; color: #fff; }
.pl-hero-text { position: relative; z-index: 1; }
.pl-hero h1 { font-size: 36px; letter-spacing: 1px; line-height: 1.3; color: #fff; }
.pl-hero-intro { display: flex; align-items: center; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
.pl-hero-intro p { color: #cfdbd5; font-size: 15px; letter-spacing: 1px; }
.pl-free { display: inline-block; background: #ffffff18; border: 1px solid #ffffff16; color: #fffdf9; border-radius: 24px; padding: 5px 14px; font-size: 12px; white-space: nowrap; }
.pl-hero-images { position: absolute; width: 34%; max-width: 400px; height: 100%; right: 18px; top: 0; opacity: .92; }
.pl-hero-images img { position: absolute; width: 67%; height: 140px; object-fit: contain; background: #e9ddf4; border: 5px solid #fff; border-radius: 6px; box-shadow: 0 8px 25px #39213f42; }
.pl-hero-images img:first-child { left: 0; top: 55px; transform: rotate(-10deg); }
.pl-hero-images img:last-child { right: 0; top: 22px; transform: rotate(9deg); }
.pl-toolbar { display: flex; gap: 16px; align-items: stretch; margin: 22px 0 18px; flex-wrap: wrap; }
.pl-search-box { display: flex; align-items: center; flex: 1 1 340px; min-width: 240px; background: #fff; border: 1px solid var(--pl-line); border-radius: 8px; padding-right: 12px; }
.prompt-library .pl-search { width: 100%; min-width: 0; height: 44px; padding: 11px 15px; border: 0; border-radius: 8px; background: transparent; color: #39213f; outline-offset: -3px; }
.pl-search::placeholder { color: #82718a; }
.pl-sources { display: flex; gap: 4px; background: #f4eef8; padding: 3px; border-radius: 8px; }
.pl-source { border: 0; border-radius: 6px; background: transparent; padding: 9px 18px; color: #6b5773; display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13px !important; }
.pl-source[aria-pressed="true"] { background: var(--pl-green); color: #fff; box-shadow: 0 2px 4px #173b2d18; }
.pl-count { font-size: 11px; font-weight: 400; opacity: .86; }
.pl-layout { display: grid; grid-template-columns: 175px minmax(0, 1fr); gap: 24px; align-items: start; }
.pl-categories { background: #fff; padding: 12px 9px; border: 1px solid #e8e0dd; border-radius: 10px; box-shadow: 0 4px 20px #39213f03; }
.pl-category-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 7px 10px; }
.pl-category-heading h2 { font-size: 13px; margin: 0; }
.pl-category-heading > span { font-size: 11px; white-space: nowrap; }
.pl-category { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6px; text-align: left; padding: 8px 9px; border: 0; border-radius: 6px; background: transparent; color: #6b5773; font-size: 12px !important; }
.pl-category[aria-pressed="true"] { background: #e9ddf4; color: #39213f; font-weight: 650; }
.pl-category:hover { background: #f4eef8; }
.pl-results { min-width: 0; scroll-margin-top: 18px; }
.pl-results:focus { outline: none; }
.pl-results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pl-results-head h2 { font-size: 21px; line-height: 1.35; margin: 0 0 3px; }
.pl-results-head p { font-size: 12px; }
.pl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pl-card { border: 1px solid var(--pl-line); border-radius: 9px; background: #fff; overflow: hidden; min-width: 0; display: flex; flex-direction: column; box-shadow: 0 5px 20px #39213f04; }
.pl-image-button { position: relative; display: block; flex: 0 0 auto; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; background: #f4eef8; overflow: hidden; }
.pl-image-button img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.pl-image-button[data-value="video:long-shot"] img { object-position: center bottom; }
.pl-image-kind, .pl-image-label { position: absolute; bottom: 7px; left: 7px; border-radius: 4px; padding: 3px 7px; background: #39213fe6; color: #fff; font-size: 10px; }
.pl-image-label { left: auto; right: 8px; }
.pl-image-error { display: block; padding: 20px; color: #82718a; font-size: 12px; }
.pl-card-body { display: flex; flex: 1; flex-direction: column; padding: 12px; gap: 7px; min-width: 0; }
.pl-card-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; }
.pl-source-label { color: #51335c; font-weight: 600; }
.pl-card h3 { margin: 0; line-height: 1.4; }
.pl-title-button { background: none; border: 0; text-align: left; padding: 0; font-size: 17px !important; color: #39213f; font-weight: 650 !important; overflow-wrap: anywhere; }
.pl-card-category { font-size: 11px; color: #82718a; }
.pl-card-description { min-height: 3.2em; font-size: 12px; color: #6b5773; line-height: 1.65; }
.pl-prompt-preview { background: #f4eef8; border-radius: 7px; padding: 9px 10px; margin-top: auto; font-size: 11px; }
.pl-prompt-preview strong { color: #51335c; display: block; margin-bottom: 5px; font-size: 11px; }
.pl-prompt-preview p { border-left: 1px solid #51335c; padding-left: 8px; color: #82718a; line-height: 1.75; white-space: pre-wrap; }
.pl-card-description, .pl-prompt-preview p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 5px; min-height: 25px; }
.pl-chips span { max-width: 100%; padding: 3px 7px; font-size: 10px; background: #f4eef8; color: #82718a; border-radius: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-card-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 3px; }
.prompt-library .pl-button { border: 1px solid var(--pl-line); border-radius: 6px; padding: 8px 12px; background: #fff; color: #51335c; font-size: 12px; text-decoration: none; display: inline-block; line-height: 1.45; }
.prompt-library .pl-button:hover:not(:disabled) { background: #f4eef8; }
.prompt-library .pl-primary { background: #ef7c2f; border-color: #ef7c2f; color: #fff; }
.prompt-library .pl-button[aria-current="page"] { background: var(--pl-green); border-color: var(--pl-green); color: #fff; }
.prompt-library .pl-primary:hover:not(:disabled), .prompt-library .pl-button[aria-current="page"]:hover { background: #51335c; }
.pl-text-button { padding: 4px 0; border: 0; background: transparent; color: #51335c; font-size: 12px !important; white-space: nowrap; }
.pl-text-button:hover { color: #51335c; text-decoration: underline; }
.pl-pagination { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; justify-content: center; padding: 24px 0 4px; }
.pl-pagination .pl-button { min-width: 34px; }
.pl-ellipsis { color: #82718a; padding: 0 4px; }
.pl-empty, .pl-loading { padding: 60px 20px; text-align: center; background: #fff; border: 1px solid var(--pl-line); border-radius: 10px; }
.pl-empty > * + * { margin-top: 15px; }
.pl-footer { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 0; color: #82718a; font-size: 11px; }
.pl-toast { position: fixed; z-index: 100; bottom: 28px; left: 50%; transform: translateX(-50%); padding: 12px 22px; border-radius: 8px; background: #39213f; color: #fff; box-shadow: 0 6px 20px #39213f33; }
.pl-dialog { width: min(880px, calc(100vw - 80px)); max-height: calc(100vh - 64px); padding: 0; border: 1px solid #e8e0dd; border-radius: 13px; background: #fff; color: #39213f; box-shadow: 0 22px 80px #39213f40; }
.pl-dialog[open] { display: flex; flex-direction: column; }
.pl-dialog::backdrop { background: #39213faa; }
.pl-dialog-header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 24px; border-bottom: 1px solid #e8e0dd; }
.pl-dialog-header h2 { margin: 0; font-size: 21px; }
.pl-dialog-body { overflow: auto; padding: 22px 24px; overscroll-behavior: contain; }
.pl-dialog-body > * + * { margin-top: 16px; }
.pl-dialog-body h3 { font-size: 17px; margin-bottom: 8px; }
.pl-detail-image { background: #f4eef8; border-radius: 8px; }
.pl-detail-description { white-space: pre-wrap; }
.pl-prompt-text { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 13px; line-height: 1.85; background: #f4eef8; padding: 16px; border-radius: 7px; margin: 0; }
.pl-options { list-style: none; margin: 0; padding: 0; }
.pl-option { border: 1px solid #e8e0dd; border-radius: 8px; padding: 16px; margin-top: 12px; }
.pl-option h4 { font-size: 14px; margin: 0 0 8px; }
.pl-option > * + * { margin-top: 10px; }
.pl-image-dialog { width: min(1240px, calc(100vw - 64px)); }
.pl-full-picture img { display: block; width: 100%; height: auto; object-fit: contain; }
.pl-copy-dialog { width: min(740px, calc(100vw - 80px)); }
.prompt-library .pl-manual-copy { width: 100%; height: 300px; min-height: 160px; resize: vertical; padding: 14px; border: 1px solid #cdbddd; border-radius: 8px; font-size: 14px; line-height: 1.8; color: #39213f; background: #fffdf9; }
.pl-feedback { color: #51335c; padding: 0 24px 14px; font-size: 13px; flex: 0 0 auto; }
.pl-feedback:empty { display: none; }

/* Static V5 illustration; prompt access remains public. */
.pl-hero { aspect-ratio: 2.2 / 1; height: auto; min-height: 0; padding: 3%; background: #fff8ee; border: 1px solid #e8e0dd; border-radius: 16px; isolation: isolate; }
.pl-hero-text { z-index: 2; width: 68%; }
.pl-hero h1 { color: #39213f; font-size: clamp(36px, max(53.28px, 3.7vw), 58px); line-height: 1.22; font-weight: 800; letter-spacing: -1px; }
.pl-hero .eyebrow { display: block; }
.pl-hero-intro { display: block; margin-top: 12px; }
.pl-hero-intro h2 { color: #39213f; font-size: clamp(17px, max(24.48px, 1.7vw), 25px); line-height: 1.5; }
.pl-hero-intro p { color: #625169; font-size: 16px; letter-spacing: 0; margin: 12px 0 20px; }
.pl-free { color: #614373; background: #eee3f6; border-color: #eee3f6; padding: 9px 18px; font-weight: 650; box-shadow: 0 4px 12px #39213f06; }
.pl-hero-images { inset: 0; width: 100%; max-width: none; height: 100%; opacity: 1; }
.pl-hero-images img, .pl-hero-images img:first-child, .pl-hero-images img:last-child { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; border: 0; border-radius: 0; transform: none; box-shadow: none; background: transparent; }
.pl-sources { background: #f2ece8; }
.pl-source[aria-pressed="true"] { background: #65466d; }
.pl-category[aria-pressed="true"] { background: #f2eaf9; }
.pl-category { padding-top: 11px; padding-bottom: 11px; }
.pl-card { border-radius: 13px; background: #fffdf9; }
.pl-categories { background: #fffdf9; }
.pl-card-body { padding: 15px; gap: 9px; }
.pl-card .pl-primary { border-radius: 9px; padding: 10px 15px; }
.prompt-library .pl-primary:hover:not(:disabled) { background: #d9641e; border-color: #d9641e; }
