/* The library is deliberately user-triggered: templates never submit or replace text automatically. */
html body #promptBox.simple-brief #briefInput {box-sizing:border-box;width:100%;min-height:245px!important;height:245px!important;max-height:550px;line-height:1.85!important;font-size:14px!important;padding:14px!important;color:#263e50!important;background:#fff!important;resize:vertical}
html body #promptBox.simple-brief > small {text-align:left!important;color:#647888!important;font-size:12px!important;line-height:1.6!important;padding:9px 12px!important;border-top:1px solid #e1e9ed}
.prompt-library-modal{position:fixed;inset:0;z-index:1800;display:grid;place-items:center;padding:28px;background:rgba(8,24,46,.58);backdrop-filter:blur(8px)}
.prompt-library-modal.hidden{display:none!important}
.prompt-library-shell{width:min(1180px,calc(100vw - 40px));height:min(820px,calc(100vh - 56px));display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(175,202,231,.9);border-radius:22px;background:#f7faff;box-shadow:0 28px 80px rgba(6,28,58,.3)}
.prompt-library-header{display:flex;align-items:flex-start;gap:20px;padding:22px 24px 16px;border-bottom:1px solid #dbe7f4;background:#fff}
.prompt-library-header>div{min-width:0;flex:1}.prompt-library-header small{color:#2585ca;font-size:12px;font-weight:800;letter-spacing:.08em}.prompt-library-header h2{margin:4px 0 3px;color:#113b70;font-size:25px}.prompt-library-header p{margin:0;color:#6b7f93;font-size:13px}
.prompt-library-header>button{width:38px;height:38px;border:0;border-radius:50%;background:#eef4fb;color:#294f79;font-size:25px;line-height:1;cursor:pointer}.prompt-library-header>button:hover{background:#e1ebf7}
.prompt-library-search{display:flex;align-items:center;gap:9px;margin:16px 20px;padding:0 14px;border:1px solid #cfdeee;border-radius:12px;background:#fff}.prompt-library-search>span{color:#5f7f9e;font-size:20px}.prompt-library-search input{min-width:0;flex:1;height:44px;border:0;outline:0;background:transparent;color:#173b63;font:inherit}.prompt-library-search small{white-space:nowrap;color:#71869a;font-size:12px}
.prompt-library-body{min-height:0;display:grid;grid-template-columns:210px minmax(0,1fr);flex:1;border-top:1px solid #e0e9f3}
.prompt-library-categories{overflow:auto;padding:14px 10px;background:#edf4fc;border-right:1px solid #d8e5f2}
.prompt-library-categories button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 6px;padding:11px 12px;border:0;border-radius:10px;background:transparent;color:#385674;text-align:left;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.prompt-library-categories button:hover{background:#e1ecf8}.prompt-library-categories button.active{background:#fff;color:#096ec1;box-shadow:0 5px 14px rgba(32,94,150,.1)}.prompt-library-categories em{font-style:normal;color:#8398ab;font-size:11px}
.prompt-library-cards{overflow:auto;padding:16px 18px 24px}.prompt-library-card{display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:14px 18px;margin-bottom:16px;padding:18px;border:1px solid #d8e4f0;border-radius:16px;background:#fff;box-shadow:0 5px 16px rgba(23,67,112,.05)}.prompt-library-card-heading{grid-column:1/-1}.prompt-library-card-heading small{display:block;margin-bottom:3px;color:#2a8bc5;font-size:11px;font-weight:800}.prompt-library-card h3{margin:0;color:#163f6d;font-size:17px}.prompt-library-visuals{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr);align-items:center;gap:10px}.prompt-library-visuals figure{position:relative;min-width:0;margin:0;overflow:hidden;border:1px solid #d9e5f1;border-radius:13px;background:#eef4fb}.prompt-library-visuals figcaption{position:absolute;z-index:1;top:10px;left:10px;padding:5px 9px;border-radius:999px;background:rgba(6,35,68,.82);color:#fff;font-size:11px;font-weight:800;box-shadow:0 3px 10px rgba(0,0,0,.16)}.prompt-library-visuals img{display:block;width:100%;height:230px;object-fit:cover;background:#eaf2fb}.prompt-library-arrow{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#e5f4ff;color:#0875c4;font-size:19px;font-weight:900}.prompt-library-prompt{min-width:0;padding:13px 14px;border-radius:12px;background:#f4f8fc}.prompt-library-prompt>b{color:#183f69;font-size:12px}.prompt-library-prompt p{margin:6px 0 0;color:#50687e;font-size:13px;line-height:1.7;white-space:pre-wrap}.prompt-library-prompt small{display:block;margin-top:8px;color:#7b8fa2;font-size:11px;line-height:1.55}.prompt-library-use{align-self:start;width:100%;padding:12px 14px;border:1px solid #62afe5;border-radius:11px;background:linear-gradient(135deg,#0c83d2,#1769bd);color:#fff;font:inherit;font-size:13px;font-weight:800;cursor:pointer;box-shadow:0 6px 16px rgba(18,113,188,.2)}.prompt-library-use:hover{filter:brightness(1.06)}.prompt-library-empty{display:grid;place-items:center;min-height:240px;color:#71879b;font-size:14px;text-align:center}
.prompt-library-image-button{position:relative;display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;overflow:hidden}.prompt-library-image-button img{transition:transform .22s ease,filter .22s ease}.prompt-library-image-button>span{position:absolute;right:10px;bottom:10px;padding:5px 9px;border-radius:999px;background:rgba(6,35,68,.8);color:#fff;font-size:11px;font-weight:800;opacity:0;transform:translateY(4px);transition:opacity .2s ease,transform .2s ease}.prompt-library-image-button:hover img,.prompt-library-image-button:focus-visible img{transform:scale(1.025);filter:brightness(.9)}.prompt-library-image-button:hover>span,.prompt-library-image-button:focus-visible>span{opacity:1;transform:none}.prompt-library-image-button:focus-visible{outline:3px solid rgba(13,132,214,.55);outline-offset:-3px}.prompt-library-visuals figcaption{pointer-events:none}
.prompt-library-image-preview{position:fixed;inset:0;z-index:2600;display:grid;place-items:center;padding:28px;background:rgba(3,14,30,.88);backdrop-filter:blur(10px)}.prompt-library-image-preview.hidden{display:none!important}.prompt-library-image-preview-shell{position:relative;display:grid;grid-template-rows:minmax(0,1fr) auto;place-items:center;max-width:calc(100vw - 56px);max-height:calc(100vh - 56px)}.prompt-library-image-preview img{display:block;max-width:calc(100vw - 56px);max-height:calc(100vh - 112px);width:auto;height:auto;object-fit:contain;border-radius:12px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.45)}.prompt-library-image-preview p{margin:12px 56px 0;color:#fff;font-size:14px;font-weight:700;text-align:center}.prompt-library-image-preview-close{position:fixed;z-index:1;top:24px;right:28px;width:46px;height:46px;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(255,255,255,.94);color:#173f6c;font-size:31px;line-height:1;cursor:pointer;box-shadow:0 8px 28px rgba(0,0,0,.25)}.prompt-library-image-preview-close:hover{background:#fff;transform:scale(1.04)}
@media(max-width:760px){.prompt-library-modal{padding:0;place-items:stretch}.prompt-library-shell{width:100vw;height:100dvh;border:0;border-radius:0}.prompt-library-header{padding:16px 16px 12px}.prompt-library-header h2{font-size:21px}.prompt-library-header p{font-size:12px}.prompt-library-search{margin:12px}.prompt-library-body{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.prompt-library-categories{display:flex;gap:7px;overflow-x:auto;padding:9px 12px;border-right:0;border-bottom:1px solid #d8e5f2}.prompt-library-categories button{width:auto;min-width:max-content;margin:0;padding:9px 11px}.prompt-library-cards{padding:12px}.prompt-library-card{grid-template-columns:1fr;padding:13px;gap:11px}.prompt-library-card-heading,.prompt-library-visuals{grid-column:1}.prompt-library-visuals{grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr);gap:5px}.prompt-library-visuals img{height:150px}.prompt-library-visuals figcaption{top:6px;left:6px;padding:4px 7px;font-size:10px}.prompt-library-arrow{width:22px;height:22px;font-size:14px}.prompt-library-use{width:100%}}
