/* Scoped layout-only candidate. Prompt and draft handlers remain byte-identical. */
body:has(.prompt-editor){overflow:hidden}
body .prompt-editor.card,
body.ip-prism-theme.ip-infinite-theme .prompt-editor.card{
 z-index:10050;position:fixed;top:16px;left:50%;transform:translateX(-50%);
 box-sizing:border-box;width:min(1080px,calc(100vw - 32px));max-height:calc(100dvh - 32px);
 margin:0;padding:0 24px;background:#101d30;background-image:none;color:#e8f0fc;
 border:1px solid #58708f;border-radius:14px;overflow:auto;overscroll-behavior:contain;
 box-shadow:0 0 0 100vmax #020711b8,0 20px 60px #0008;
}
body .prompt-editor.card>*{min-width:0}
body .prompt-editor.card>p[role=status]{margin:14px 0 6px;font-size:13px;color:#bdd0e8}
body .prompt-editor.card>header{position:sticky;top:0;z-index:2;background:#101d30;padding:16px 0;border-bottom:1px solid #354961}
body .prompt-editor.card>header h3{margin:0 0 8px}
body .prompt-editor.card>header p{margin:0;line-height:1.5}
body .prompt-editor.card .camera-prompt-editor{
 display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin:22px 0;
}
body .prompt-editor.card .camera-prompt-editor>strong{grid-column:1/-1;display:block;font-size:17px;color:#f0f5ff}
body .prompt-editor.card .camera-prompt-editor>label{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0;padding:16px;background:#14263d;border:1px solid #354e6b;border-radius:10px}
body .prompt-editor.card .camera-prompt-editor>label>span{font-size:14px;line-height:1.65;overflow-wrap:anywhere;color:#c4d9f1}
body .prompt-editor.card textarea{box-sizing:border-box;width:100%;min-width:0;min-height:240px;padding:14px;background:#0b182a;color:#e8f0fc;border:1px solid #57718e;border-radius:8px;font:15px/1.8 system-ui;white-space:pre-wrap;overflow-wrap:anywhere;resize:vertical}
body .prompt-editor.card>label{display:grid;gap:10px;margin:20px 0}
body .prompt-editor.card>.toolbar:last-child{position:sticky;bottom:0;z-index:3;display:flex;flex-wrap:wrap;gap:12px;margin:20px -24px 0;padding:16px 24px;background:#101d30;border-top:1px solid #425772}
@media(max-width:600px){
 body .prompt-editor.card,body.ip-prism-theme.ip-infinite-theme .prompt-editor.card{top:8px;width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:0 14px;border-radius:10px}
 body .prompt-editor.card .camera-prompt-editor>label{padding:10px}
 body .prompt-editor.card>header{gap:10px}
 body .prompt-editor.card>header h3{font-size:18px}
 body .prompt-editor.card textarea{font-size:16px;min-height:260px;padding:10px}
 body .prompt-editor.card>.toolbar:last-child{margin:16px -14px 0;padding:12px 14px}
}
/* Reserve space for sticky controls when keyboard or code scrolls an input into view. */
body .prompt-editor.card{scroll-padding-top:120px;scroll-padding-bottom:100px}
body .prompt-editor.card textarea{scroll-margin-bottom:100px}
