.prompt-editor-shell{display:block;border:1px solid var(--line);border-radius:9px;background:#252628;overflow:visible;min-width:0;color:var(--text)}
.prompt-editor-shell:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px #dfa27522}
.prompt-editor-toolbar{display:flex;align-items:center;gap:12px;padding:9px 12px;border-bottom:1px solid var(--line);min-width:0;flex-wrap:wrap}
.prompt-editor-toolbar .text-button{font-size:11px;white-space:nowrap}.prompt-editor-toolbar button:disabled{opacity:.35;cursor:default}
.prompt-editor-hint{color:var(--muted);font-size:11px;margin-right:auto}.prompt-editor-body{min-width:0}
.prompt-editable{padding:13px 14px;min-height:290px;max-height:620px;overflow:auto;outline:none;font-size:13px;line-height:2.5;white-space:pre-wrap;overflow-wrap:anywhere;caret-color:var(--accent)}
.prompt-editable p{margin:0;line-height:inherit;min-height:2.5em}.prompt-editable p.is-editor-empty:first-child:before{content:attr(data-placeholder);color:var(--muted);float:left;height:0;pointer-events:none}
.prompt-asset-chip{display:inline-flex;vertical-align:middle;align-items:center;gap:6px;height:29px;max-width:190px;padding:2px 8px 2px 2px;margin:0 3px;border:1px solid #7c70564d;border-radius:6px;background:#4b493b55;line-height:1;cursor:pointer;white-space:nowrap;user-select:none;color:#e0dccf}
.prompt-asset-chip:hover{border-color:var(--accent);background:#61513e80}.prompt-asset-chip.ProseMirror-selectednode{outline:2px solid var(--accent)}
.prompt-asset-chip.missing{border-style:dashed;color:var(--muted)}.prompt-asset-name{font-size:12px;max-width:138px;overflow:hidden;text-overflow:ellipsis;font-weight:400}
.prompt-thumb{display:inline-flex;flex:0 0 40px;width:40px;height:24px;align-items:center;justify-content:center;background:#18191a;border-radius:3px;overflow:hidden}
.prompt-thumb img{display:block;width:100%;height:100%;object-fit:contain}.prompt-thumb-empty{font-size:11px;color:var(--muted);background:#373a36}
.prompt-suggestions,.prompt-replace{width:340px;max-width:calc(100vw - 24px);padding:5px;background:#252729;border:1px solid #55544c;border-radius:9px;box-shadow:0 10px 30px #0005;z-index:1500;color:var(--text)}
.prompt-suggestions{max-height:320px;overflow:auto}.prompt-option{width:100%;display:flex;align-items:center;gap:10px;text-align:left;border:0;border-radius:5px;min-height:53px;padding:7px;background:transparent;color:var(--text);cursor:pointer}
.prompt-option:hover,.prompt-option.selected{background:#dfac7830}.prompt-option .prompt-thumb{width:48px;height:34px;flex-basis:48px}.prompt-option-label{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}.prompt-option-label strong{font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.prompt-option-label small{font-size:11px;color:var(--muted)}.prompt-option-used{font-size:10px;color:var(--accent)}
.prompt-no-results{padding:18px 12px;color:var(--muted);font-size:12px}.prompt-replace{position:fixed}.prompt-replace-title{display:block;font-size:12px;font-weight:500;padding:8px}.prompt-replace-search{width:calc(100% - 12px);margin:3px 6px 8px;padding:8px;background:#1d1f20;color:var(--text);border:1px solid var(--line);border-radius:5px;outline:none}.prompt-replace-search:focus{border-color:var(--accent)}.prompt-replace .prompt-suggestions{border:0;box-shadow:none;width:100%;max-height:275px}
.prompt-tooltip{position:fixed;z-index:1600;pointer-events:none;max-width:min(250px,80vw);padding:8px;background:#2b2d2e;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px #0005;color:var(--text)}.prompt-tooltip img{display:block;width:230px;height:160px;object-fit:contain;background:#171819;border-radius:4px}.prompt-tooltip strong,.prompt-tooltip small{display:block;padding:7px 2px 0;font-size:12px}.prompt-tooltip small{color:var(--muted);font-size:11px}
@media(max-width:700px){.prompt-editable{font-size:14px;max-height:65vh;padding:10px;min-height:260px}.prompt-editor-toolbar{gap:9px}.prompt-editor-toolbar button{min-height:32px}.prompt-asset-chip{max-width:160px}.prompt-asset-name{max-width:109px}.prompt-option{min-height:55px}}
