#prompt-library{color-scheme:light;color:#143746}
#prompt-library .ceramic-prompt-library{display:grid;gap:16px;min-width:0;padding-bottom:24px;color:#143746}
#prompt-library .ceramic-prompt-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 26px;border:1px solid #177f9c;border-radius:18px;background:radial-gradient(circle at 86% 10%,rgba(255,255,255,.18),transparent 30%),linear-gradient(135deg,#083f55,#076c89 58%,#0c708c);color:#fff;box-shadow:0 12px 30px rgba(4,67,88,.2)}
#prompt-library .ceramic-prompt-hero>div{min-width:0;max-width:850px}
#prompt-library .ceramic-prompt-eyebrow{display:block;margin-bottom:7px;color:#d5f6ff;font-size:12px;font-weight:800;letter-spacing:.12em}
#prompt-library .ceramic-prompt-hero h2{margin:0 0 9px;color:#fff;font-size:clamp(24px,2.2vw,34px);line-height:1.2}
#prompt-library .ceramic-prompt-hero p{max-width:820px;margin:0;color:#e6f8fc;font-size:14px;line-height:1.7}
#prompt-library .ceramic-prompt-hero dl{display:grid;grid-template-columns:repeat(3,minmax(84px,1fr));gap:9px;min-width:310px;margin:0}
#prompt-library .ceramic-prompt-hero dl>div{display:grid;place-items:center;min-height:82px;padding:10px;border:1px solid rgba(255,255,255,.36);border-radius:13px;background:rgba(255,255,255,.13)}
#prompt-library .ceramic-prompt-hero dt{color:#fff;font-size:25px;font-weight:900;line-height:1}
#prompt-library .ceramic-prompt-hero dd{margin:7px 0 0;color:#e9faff;font-size:12px;font-weight:700;white-space:nowrap}
#prompt-library .ceramic-prompt-controls{display:grid;grid-template-columns:minmax(250px,1.6fr) repeat(3,minmax(135px,.7fr)) auto;gap:10px;align-items:end;padding:16px;border:1px solid #afd0d9;border-radius:16px;background:#f5fbfd;box-shadow:0 7px 20px rgba(8,72,91,.1)}
#prompt-library .ceramic-prompt-controls label{display:grid;gap:6px;min-width:0;color:#284f5d;font-size:12px;font-weight:800}
#prompt-library .ceramic-prompt-controls input,#prompt-library .ceramic-prompt-controls select,#prompt-library .ceramic-prompt-supplement textarea{box-sizing:border-box;width:100%;min-height:44px;margin:0;padding:9px 12px;border:1px solid #78afbe;border-radius:10px;background:#fff!important;color:#143746!important;font:600 14px/1.35 system-ui,"Microsoft YaHei",sans-serif;box-shadow:none}
#prompt-library .ceramic-prompt-controls input::placeholder,#prompt-library .ceramic-prompt-supplement textarea::placeholder{color:#58727c!important;opacity:1}
#prompt-library .ceramic-prompt-controls input:hover,#prompt-library .ceramic-prompt-controls select:hover,#prompt-library .ceramic-prompt-supplement textarea:hover{border-color:#257e97}
#prompt-library .ceramic-prompt-controls input:focus-visible,#prompt-library .ceramic-prompt-controls select:focus-visible,#prompt-library .ceramic-prompt-supplement textarea:focus-visible,#prompt-library button:focus-visible,#prompt-library a:focus-visible,.ceramic-prompt-dialog button:focus-visible,.ceramic-prompt-dialog textarea:focus-visible{outline:3px solid #f2b632;outline-offset:2px}
#prompt-library button,.ceramic-prompt-dialog button{box-sizing:border-box;min-height:42px;padding:8px 15px;border:1px solid #4b96aa;border-radius:10px;background:#fff;color:#07536c;font:800 14px/1.25 system-ui,"Microsoft YaHei",sans-serif;white-space:nowrap;cursor:pointer;box-shadow:none}
#prompt-library button:hover,.ceramic-prompt-dialog button:hover{border-color:#075c78;background:#e8f6fa;color:#063f54}
#prompt-library button:active,.ceramic-prompt-dialog button:active{transform:translateY(1px)}
#prompt-library button.primary,.ceramic-prompt-dialog button.primary{border-color:#075c78;background:#075c78;color:#fff}
#prompt-library button.primary:hover,.ceramic-prompt-dialog button.primary:hover{border-color:#043f55;background:#043f55;color:#fff}
#prompt-library button:disabled,.ceramic-prompt-dialog button:disabled{border-color:#aebfc5;background:#dce6e9;color:#405862;cursor:not-allowed;transform:none}
#prompt-library .ceramic-prompt-supplement{display:grid;gap:8px;padding:14px 16px;border:1px solid #b8d4dc;border-radius:14px;background:#f8fcfd;color:#143746}
#prompt-library .ceramic-prompt-supplement>div{display:flex;align-items:center;gap:7px}
#prompt-library .ceramic-prompt-supplement b{color:#143746;font-size:14px}
#prompt-library .ceramic-prompt-supplement textarea{min-height:66px;resize:vertical;line-height:1.55}
#prompt-library .ceramic-prompt-help{position:relative;display:inline-grid;place-items:center;width:19px;height:19px;border:1.5px solid #087391;border-radius:50%;background:#fff;color:#075c78;font:900 12px/1 Arial,sans-serif;cursor:help}
#prompt-library .ceramic-prompt-help i{position:absolute;z-index:20;left:50%;bottom:calc(100% + 9px);width:min(290px,70vw);padding:9px 11px;border:1px solid #79afbd;border-radius:10px;background:#fff;color:#183f4d;font:500 12px/1.55 system-ui,"Microsoft YaHei",sans-serif;box-shadow:0 10px 26px rgba(7,60,78,.22);opacity:0;visibility:hidden;pointer-events:none;transform:translate(-50%,4px);transition:.15s ease}
#prompt-library .ceramic-prompt-help:hover i,#prompt-library .ceramic-prompt-help:focus-visible i{opacity:1;visibility:visible;transform:translate(-50%,0)}
#prompt-library .ceramic-prompt-list-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:2px 3px;color:#315864}
#prompt-library .ceramic-prompt-list-head>div{display:flex;align-items:baseline;gap:10px}
#prompt-library .ceramic-prompt-list-head b{color:#123d4d;font-size:18px}
#prompt-library .ceramic-prompt-list-head span{color:#536e78;font-size:12px}
#prompt-library .ceramic-prompt-list-head a{color:#075f7b;font-size:12px;font-weight:800;text-decoration:none}
#prompt-library .ceramic-prompt-list-head a:hover{text-decoration:underline}
#prompt-library .ceramic-prompt-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;min-width:0}
#prompt-library .ceramic-prompt-card{display:flex;flex-direction:column;min-width:0;min-height:315px;padding:17px;border:1px solid #afd0d9;border-radius:15px;background:#fff;color:#143746;box-shadow:0 8px 22px rgba(8,65,83,.1);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
#prompt-library .ceramic-prompt-card:hover{border-color:#3990a7;box-shadow:0 12px 28px rgba(7,72,92,.16);transform:translateY(-2px)}
#prompt-library .ceramic-prompt-card>header{display:flex;align-items:center;justify-content:space-between;gap:10px}
#prompt-library .ceramic-prompt-card>header>span{display:inline-flex;align-items:center;min-height:26px;padding:3px 9px;border-radius:999px;background:#dff2f6;color:#074e65;font-size:12px;font-weight:900;white-space:nowrap}
#prompt-library .ceramic-prompt-card>header>small{overflow:hidden;color:#4f6b75;font-size:11px;font-weight:700;text-align:right;text-overflow:ellipsis;white-space:nowrap}
#prompt-library .ceramic-prompt-card h3{margin:13px 0 7px;color:#103747;font-size:18px;line-height:1.35}
#prompt-library .ceramic-prompt-card>p{min-height:43px;margin:0;color:#3f5f6a;font-size:13px;line-height:1.6}
#prompt-library .ceramic-prompt-tags{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
#prompt-library .ceramic-prompt-tags span{padding:3px 7px;border:1px solid #c2dbe2;border-radius:7px;background:#f4fafb;color:#315b68;font-size:11px;font-weight:700}
#prompt-library .ceramic-prompt-preview{display:-webkit-box;overflow:hidden;margin-bottom:14px;color:#526e78;font-size:12px;line-height:1.6;-webkit-box-orient:vertical;-webkit-line-clamp:3}
#prompt-library .ceramic-prompt-card>footer{display:grid;grid-template-columns:.75fr .75fr 1.25fr;gap:7px;margin-top:auto}
#prompt-library .ceramic-prompt-card>footer button{min-width:0;padding-inline:8px;font-size:13px}
#prompt-library .ceramic-prompt-empty,#prompt-library .ceramic-prompt-load-error{grid-column:1/-1;display:grid;place-items:center;gap:7px;min-height:220px;padding:24px;border:1px dashed #7aaebc;border-radius:15px;background:#f5fbfc;color:#315864;text-align:center}
#prompt-library .ceramic-prompt-empty b,#prompt-library .ceramic-prompt-load-error b{color:#143f4e;font-size:18px}
.ceramic-prompt-dialog{color-scheme:light;width:min(920px,calc(100vw - 30px));max-height:min(90vh,860px);padding:0;border:1px solid #71aebe;border-radius:18px;background:#f7fcfd;color:#143746;box-shadow:0 24px 80px rgba(3,45,61,.38)}
.ceramic-prompt-dialog::backdrop{background:rgba(3,31,42,.62);backdrop-filter:blur(3px)}
.ceramic-prompt-dialog-shell{display:grid;gap:13px;padding:20px}
.ceramic-prompt-dialog-shell>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.ceramic-prompt-dialog-shell>header span{display:block;margin-bottom:4px;color:#2a7085;font-size:11px;font-weight:900;letter-spacing:.08em}
.ceramic-prompt-dialog-shell h3{margin:0;color:#103747;font-size:22px;line-height:1.3}
.ceramic-prompt-dialog-shell>header button{display:grid;place-items:center;width:38px;min-width:38px;height:38px;min-height:38px;padding:0;border-color:#83aeba;background:#fff;color:#164a5b;font-size:23px}
.ceramic-prompt-dialog-summary{margin:0;color:#43636e;font-size:13px;line-height:1.55}
.ceramic-prompt-dialog textarea{box-sizing:border-box;width:100%;height:min(57vh,540px);min-height:300px;padding:15px;border:1px solid #79adbb;border-radius:12px;background:#fff!important;color:#173c49!important;font:500 14px/1.72 system-ui,"Microsoft YaHei",sans-serif;resize:vertical;box-shadow:inset 0 1px 4px rgba(6,59,76,.07)}
.ceramic-prompt-dialog-shell>footer{display:flex;align-items:center;justify-content:space-between;gap:14px}
.ceramic-prompt-dialog-shell>footer small{color:#4b6872;font-size:12px;line-height:1.45}
.ceramic-prompt-dialog-shell>footer>div{display:flex;gap:9px}
body[data-appearance="star"] #prompt-library .ceramic-prompt-library,body[data-appearance="tech"] #prompt-library .ceramic-prompt-library{color:#143746}
body[data-appearance="star"] #prompt-library .ceramic-prompt-controls,body[data-appearance="tech"] #prompt-library .ceramic-prompt-controls,body[data-appearance="star"] #prompt-library .ceramic-prompt-supplement,body[data-appearance="tech"] #prompt-library .ceramic-prompt-supplement,body[data-appearance="star"] #prompt-library .ceramic-prompt-card,body[data-appearance="tech"] #prompt-library .ceramic-prompt-card{background:#f7fcfd;color:#143746}
@media(max-width:1180px){#prompt-library .ceramic-prompt-controls{grid-template-columns:repeat(3,minmax(0,1fr))}#prompt-library .ceramic-prompt-search{grid-column:span 2}#prompt-library .ceramic-prompt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){#prompt-library .ceramic-prompt-hero{align-items:stretch;flex-direction:column;padding:20px}#prompt-library .ceramic-prompt-hero dl{min-width:0}#prompt-library .ceramic-prompt-controls{grid-template-columns:1fr 1fr}#prompt-library .ceramic-prompt-search{grid-column:1/-1}#prompt-library .ceramic-prompt-controls>button{grid-column:1/-1}#prompt-library .ceramic-prompt-grid{grid-template-columns:1fr}#prompt-library .ceramic-prompt-list-head{align-items:flex-start;flex-direction:column}#prompt-library .ceramic-prompt-card{min-height:0}.ceramic-prompt-dialog-shell>footer{align-items:stretch;flex-direction:column}.ceramic-prompt-dialog-shell>footer>div{display:grid;grid-template-columns:1fr 1fr;width:100%}}
@media(max-width:480px){#prompt-library .ceramic-prompt-controls{grid-template-columns:1fr}#prompt-library .ceramic-prompt-search{grid-column:auto}#prompt-library .ceramic-prompt-hero dl{grid-template-columns:1fr}#prompt-library .ceramic-prompt-card>footer{grid-template-columns:1fr}.ceramic-prompt-dialog textarea{min-height:260px}.ceramic-prompt-dialog-shell>footer>div{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#prompt-library .ceramic-prompt-card{transition:none}}
