.prompt-edit-dialog{width:min(760px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--rd-border,var(--line,#dfe7e4));border-radius:20px;background:var(--rd-surface,#fff);color:var(--rd-text,#263b3b);box-shadow:0 24px 80px #102e3040;overflow:hidden}
.prompt-edit-dialog::backdrop{background:#102e3070;backdrop-filter:blur(3px)}
.prompt-edit-form{display:flex;flex-direction:column;max-height:calc(100dvh - 42px);margin:0}
.prompt-edit-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px 24px 20px;border-bottom:1px solid var(--rd-border,var(--line,#dfe7e4))}
.prompt-edit-heading{display:flex;align-items:flex-start;gap:14px;min-width:0}
.prompt-edit-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:13px;background:var(--rd-primary-soft,#eaf5f0);color:var(--accent,#08796f)}
.prompt-edit-icon svg{width:23px;height:23px}
.prompt-edit-header h2{font-size:21px;line-height:1.3;letter-spacing:-.35px;margin:0 0 5px;font-weight:650}
.prompt-edit-header p{font-size:13px;line-height:1.5;color:var(--muted,#6c7e79);margin:0}
.prompt-edit-dialog .prompt-edit-close{display:grid;place-items:center;flex:none;width:40px;height:40px;padding:9px;border:0;background:transparent;color:var(--muted,#6c7e79);border-radius:10px}
.prompt-edit-close svg{width:21px;height:21px}
.prompt-edit-dialog .prompt-edit-close:hover{background:var(--rd-primary-soft,#edf5f2);color:var(--accent,#08796f)}
.prompt-edit-body{display:flex;flex-direction:column;gap:12px;min-height:0;padding:22px 24px;overflow:auto;overscroll-behavior:contain}
.prompt-edit-field-label{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.prompt-edit-field-label label{font-size:13px;font-weight:650}
.prompt-edit-field-label [data-count]{color:var(--muted,#6c7e79);font-size:12px;font-variant-numeric:tabular-nums}
.prompt-edit-dialog textarea{display:block;width:100%;height:clamp(180px,34dvh,340px);min-height:140px;flex-shrink:0;resize:vertical;max-height:50dvh;border:1px solid var(--rd-border,#c8d8d1);border-radius:12px;padding:15px 16px;background:var(--rd-surface,#fff);color:inherit;font:400 16px/1.65 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;outline:none;overflow:auto}
.prompt-edit-dialog textarea:focus{border-color:var(--accent,#08796f);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent,#08796f) 13%,transparent)}
.prompt-edit-version{display:flex;gap:9px;align-items:flex-start;margin:1px 0 0;padding:11px 12px;border-radius:9px;background:var(--rd-primary-soft,#eff6f3);color:var(--muted,#536c62);font-size:12px;line-height:1.55}
.prompt-edit-version svg{width:17px;height:17px;flex:none;margin-top:1px;color:var(--accent,#08796f)}
.prompt-edit-error{margin:0;padding:10px 12px;border:1px solid #e5b0ac;border-radius:9px;background:#fff2f0;color:#9b3434;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.prompt-edit-dialog [hidden]{display:none!important}
.prompt-edit-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 24px;border-top:1px solid var(--rd-border,var(--line,#dfe7e4));background:var(--rd-surface,#fff);flex:none}
.prompt-edit-shortcut{font-size:12px;color:var(--muted,#6c7e79)}
.prompt-edit-actions{display:flex;gap:10px;margin-left:auto}
.prompt-edit-dialog .prompt-edit-actions button{min-height:44px;min-width:92px;margin:0;padding:10px 18px;font-size:14px;font-weight:600;white-space:nowrap;border-radius:10px}
.prompt-edit-dialog .prompt-edit-actions .primary{min-width:132px}
.prompt-edit-dialog button:focus-visible{outline:2px solid var(--accent,#08796f);outline-offset:3px}
@media(max-width:600px){.prompt-edit-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:16px}.prompt-edit-form{max-height:calc(100dvh - 22px)}.prompt-edit-header{padding:18px 16px 16px;gap:8px}.prompt-edit-heading{gap:10px}.prompt-edit-icon{width:36px;height:36px;border-radius:10px}.prompt-edit-icon svg{width:20px;height:20px}.prompt-edit-header h2{font-size:19px}.prompt-edit-header p{font-size:12px}.prompt-edit-dialog .prompt-edit-close{width:36px;height:36px;padding:8px}.prompt-edit-body{padding:18px 16px;gap:10px}.prompt-edit-dialog textarea{height:34dvh;padding:12px;resize:none}.prompt-edit-footer{padding:14px 16px max(14px,env(safe-area-inset-bottom))}.prompt-edit-shortcut{display:none}.prompt-edit-actions{width:100%;gap:10px}.prompt-edit-dialog .prompt-edit-actions button{flex:1;min-width:0}.prompt-edit-dialog .prompt-edit-actions .primary{flex:1.5;min-width:0}}
@media(max-height:500px){.prompt-edit-header{padding-top:12px;padding-bottom:12px}.prompt-edit-body{padding-top:12px;padding-bottom:12px}.prompt-edit-dialog textarea{min-height:110px;height:110px}.prompt-edit-footer{padding-top:10px;padding-bottom:10px}}
.prompt-edit-dialog .prompt-edit-actions button{background:var(--rd-surface,#fff);border:1px solid var(--rd-border,var(--line,#dfe7e4));color:var(--rd-text,#263b3b)}
.prompt-edit-dialog .prompt-edit-actions .primary{background:var(--accent,#08796f);border-color:var(--accent,#08796f);color:#fff}
.prompt-edit-dialog .prompt-edit-actions .primary:hover:not(:disabled){background:color-mix(in srgb,var(--accent,#08796f) 90%,#000)}
.prompt-edit-dialog .prompt-edit-actions button:disabled{opacity:.5}
.prompt-edit-dialog .prompt-edit-close{width:44px;height:44px}
