.prompt-workspace{grid-template-columns:360px minmax(0,1fr);align-items:stretch}.prompt-controls{padding:28px;min-width:0}.prompt-controls fieldset{padding:0;border:0;min-width:0;display:flex;flex-direction:column;gap:22px}.prompt-input-heading,.prompt-result-heading>div{display:flex;align-items:center;gap:12px}.prompt-input-heading h2,.prompt-result h2{font-size:16px;font-weight:500;margin:0;letter-spacing:-.02em}.prompt-step{font-size:11px;color:#aaa1b7;border:1px solid #3c3744;border-radius:50%;width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;flex:none}.prompt-controls textarea{width:100%;min-height:235px;resize:vertical;padding:17px;font:16px/1.7 Arial,Helvetica,sans-serif;background:#101012;border:1px solid #343138;border-radius:12px;color:#efedf0;box-sizing:border-box}.prompt-controls textarea:focus,.prompt-result textarea:focus{outline:1px solid #9680ad;outline-offset:2px}.prompt-controls select{margin-top:10px;width:100%;padding:13px;border:1px solid #3a363e;border-radius:10px;background:#232127;color:#eeebf0;font-size:14px;cursor:pointer}.prompt-input-meta{display:flex;align-items:center;justify-content:space-between;margin-top:-12px;gap:10px;font-size:11px;color:#9d98a3}.prompt-text-button{border:0;background:none;padding:6px 0;font:inherit;font-size:13px;color:#c7b6dc;text-align:left;cursor:pointer}.prompt-text-button:hover{color:#f1e7fc}.prompt-text-button:focus-visible{outline:2px solid #a58cbb;outline-offset:4px;border-radius:3px}.prompt-tool button:disabled{opacity:.4;cursor:default}.prompt-tool [hidden]{display:none!important}.prompt-usage,.prompt-input-note,.prompt-result-note{font-size:12px;line-height:1.65;color:#aaa4b0;margin:17px 0 0}.prompt-status{font-size:13px;color:#ded4e8;line-height:1.6;margin:12px 0 0;overflow-wrap:anywhere}.prompt-status:empty{display:none}.prompt-controls #prompt-signin{font-size:13px;color:#d2b9e8}.prompt-result{background:#18181b;border:1px solid #302d34;border-radius:20px;padding:30px;display:flex;flex-direction:column;min-width:0;min-height:520px;box-sizing:border-box}.prompt-result-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.prompt-empty{min-height:285px;flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:25px}.prompt-empty-mark{font-size:44px;font-weight:400;letter-spacing:-4px;color:#655970;margin-bottom:15px}.prompt-empty h3{font-size:21px;line-height:1.4;font-weight:400;margin:0 0 12px}.prompt-empty p{max-width:370px;color:#a9a3ae;font-size:14px;line-height:1.7;margin:0}.prompt-result textarea{width:100%;min-height:285px;flex:1;resize:vertical;background:none;color:#eae5ef;font:16px/1.85 Arial,Helvetica,sans-serif;padding:22px 0;border:0;margin:16px 0 0;box-sizing:border-box}.prompt-result-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:11px;color:#928b9c;padding:16px 0;border-top:1px solid #302d34}.prompt-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}.prompt-actions button{min-height:46px;flex:1;white-space:nowrap}.prompt-actions .feature-button{margin:0;border:1px solid #48414f;background:transparent;color:#ebe5f2;padding:12px 20px;font:inherit;font-size:14px;border-radius:10px;cursor:pointer;text-align:center}.prompt-result-note{margin:17px 0 0}.prompt-refine{margin-top:17px;align-self:flex-start}.prompt-drop{border:1px dashed #51485d;border-radius:13px;overflow:hidden;background:#131215}.prompt-drop.dragging{border-color:#b89aca;background:#29212f}.prompt-drop #prompt-upload{width:100%;min-height:225px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;background:none;border:0;padding:28px 18px;color:#ece8ef;cursor:pointer}.prompt-drop svg{width:32px;height:32px;color:#9d8aae}.prompt-drop strong{font-size:14px;font-weight:400}.prompt-drop #prompt-upload span{font-size:11px;color:#9c95a5}.prompt-preview-image,#prompt-preview-image{width:100%;height:225px;object-fit:contain;background:#101012;display:block}.prompt-drop #prompt-preview>div{padding:10px 13px;display:flex;align-items:center;justify-content:space-between;gap:12px}.prompt-drop #prompt-filename{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.prompt-controls #prompt-sample{align-self:flex-start;margin-top:-10px}.prompt-input-note{margin-top:-15px}.prompt-tool .primary-button{transition:background .16s,color .16s;min-height:46px}.prompt-tool [aria-busy=true] .prompt-step{border-color:#8d729f;color:#d7c8e2}@media(min-width:1500px){.prompt-result{min-height:560px}}@media(max-width:760px){.prompt-workspace{grid-template-columns:minmax(0,1fr);gap:18px}.prompt-controls{padding:22px}.prompt-result{padding:23px;min-height:420px}.prompt-controls textarea{min-height:180px}.prompt-empty{min-height:215px;padding:20px 0}.prompt-result textarea{min-height:235px}.prompt-empty h3{font-size:20px}.prompt-actions{gap:10px}.prompt-actions button{padding:12px;font-size:13px}.prompt-result-meta{font-size:10px}.prompt-drop #prompt-upload{min-height:170px}.prompt-result-heading{gap:10px}}@media(prefers-reduced-motion:reduce){.prompt-tool *{transition:none!important}}
/* Compact workspace shared by both prompt tools. */
.prompt-tool>.page-heading{padding:16px 0 18px}
.prompt-tool>.page-heading h1{font-size:28px;margin-bottom:7px}
.prompt-tool>.page-heading p{font-size:14px;line-height:1.5}
.prompt-workspace{max-width:1100px;margin:0 auto;grid-template-columns:320px minmax(0,1fr);gap:18px}
.prompt-controls{padding:20px}
.prompt-controls fieldset{gap:16px}
.prompt-controls textarea{min-height:155px;padding:13px;line-height:1.5}
.prompt-controls select{margin-top:6px;padding:10px}
.prompt-input-meta{margin-top:-8px}
.prompt-usage{margin-top:12px;line-height:1.45}
.prompt-result{padding:22px;min-height:360px;border-radius:16px}
.prompt-empty{min-height:180px;padding:20px;color:#aaa4b0;font-size:14px}
.prompt-result textarea{min-height:180px;line-height:1.6;padding:12px 0}
.prompt-actions{margin-top:12px}
.prompt-drop #prompt-upload{min-height:155px;padding:18px;gap:10px}
.prompt-preview-image,#prompt-preview-image{height:155px}
.prompt-input-note{margin-top:-9px}
.prompt-refine{margin-top:10px}
@media(max-width:760px){.prompt-tool>.page-heading{padding:14px 0}.prompt-tool>.page-heading h1{font-size:25px}.prompt-workspace{grid-template-columns:minmax(0,1fr);gap:14px}.prompt-controls,.prompt-result{padding:18px}.prompt-result{min-height:270px}.prompt-controls textarea{min-height:140px}.prompt-empty,.prompt-result textarea{min-height:130px}.prompt-drop #prompt-upload{min-height:145px}}
.prompt-upload-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:-8px}
.prompt-controls .prompt-upload-meta #prompt-sample{margin:0}
.prompt-privacy{position:relative;flex:none}
.prompt-privacy-trigger{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:24px;height:24px;background:transparent;border:1px solid #645b6d;border-radius:50%;color:#bcb0c7;font:13px Arial,sans-serif;cursor:pointer;list-style:none}
.prompt-privacy-trigger:hover,.prompt-privacy-trigger:focus-visible{border-color:#cbb6e0;color:#eee6f5;outline-offset:3px}
.prompt-privacy-tip{display:none;position:absolute;right:0;top:calc(100% + 8px);z-index:5;width:230px;max-width:calc(100vw - 80px);box-sizing:border-box;padding:12px 14px;border:1px solid #51495b;border-radius:10px;background:#26232a;box-shadow:0 8px 24px #0008;color:#e6dfea;font:12px/1.5 Arial,sans-serif}
.prompt-privacy.is-open .prompt-privacy-tip,.prompt-privacy-trigger:focus-visible + .prompt-privacy-tip{display:block}
@media(hover:hover){.prompt-privacy:hover .prompt-privacy-tip{display:block}}
.prompt-loading{min-height:180px;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;color:#aaa4b0;font:13px/1.4 Arial,Helvetica,sans-serif}
.prompt-loading strong{font-size:15px;font-weight:500;color:#eee8f5}
.prompt-loading-spinner{width:32px;height:32px;box-sizing:border-box;border:3px solid #403847;border-top-color:#cbb4e6;border-radius:50%;animation:prompt-spin .9s linear infinite}
@keyframes prompt-spin{to{transform:rotate(360deg)}}
@media(max-width:760px){.prompt-loading{min-height:130px}}
@media(prefers-reduced-motion:reduce){.prompt-loading-spinner{animation:none}}
.prompt-tool[aria-busy=true] .prompt-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
