.prompt-reference-backing{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;opacity:0!important;pointer-events:none;clip-path:inset(50%)}
.prompt-reference-editor{border:1px solid #cbd8d1;border-radius:6px;background:#fff;color:#17231e;min-width:0;overflow:hidden;font-size:14px;letter-spacing:0}
.prompt-reference-editor:focus-within{outline:2px solid #147d64;outline-offset:2px}
.prompt-reference-toolbar{display:flex;align-items:center;gap:6px;padding:6px 8px;border-bottom:1px solid #e3eae6;background:#f4f8f5}
.prompt-reference-toolbar select{width:auto;max-width:calc(100% - 42px);flex:1;min-width:0;margin:0;padding:4px 6px;font-size:12px;border:0;background:transparent}
.prompt-reference-toolbar .prompt-reference-add,.prompt-reference-handle{display:inline-grid;place-items:center;width:28px;height:28px;min-width:28px;padding:0;border:1px solid #b7d3c6;border-radius:4px;color:#11694f;background:#eaf5ee;font-weight:600;cursor:grab}
.prompt-reference-editor .ProseMirror{min-height:130px;max-height:420px;overflow:auto;padding:12px;white-space:pre-wrap;word-break:break-word;outline:none;text-align:left;line-height:1.9;font:inherit}
.prompt-reference-editor .ProseMirror p{margin:0;min-height:1.9em;line-height:1.9}
.prompt-reference-chip{display:inline-flex;align-items:center;gap:4px;vertical-align:middle;white-space:nowrap;padding:0 5px;margin:0 2px;border:1px solid #9fcbb8;border-radius:4px;background:#e8f5ee;color:#11694f;font-size:13px;line-height:24px;user-select:all;cursor:default}
.prompt-reference-chip img{display:inline-block;width:20px;height:20px;border-radius:2px;object-fit:cover;vertical-align:middle}
.prompt-reference-chip.ProseMirror-selectednode{outline:2px solid #147d64}.prompt-reference-chip.is-missing{border-color:#d48176;color:#9a3328;background:#fff0ed}
.prompt-reference-tray{display:flex;gap:6px;overflow:auto;padding:6px 10px;border-bottom:1px solid #e3eae6}.prompt-reference-tray[hidden]{display:none}
.prompt-reference-tray .prompt-reference-source{position:relative;flex:0 0 48px;width:48px;height:48px;min-width:48px;margin:0;padding:0;border:1px solid #cbd8d1;border-radius:4px;overflow:hidden;background:#f1f6f3;color:#11694f;cursor:grab}
.prompt-reference-source img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}.prompt-reference-source small{position:absolute;bottom:0;left:0;right:0;background:#17392fcc;color:#fff;font-size:10px;line-height:16px;pointer-events:none}.prompt-reference-modality{display:block;width:22px;height:22px;margin:3px auto;fill:none;stroke:currentColor;stroke-width:1.8;pointer-events:none}
.reference-slot,.image-ref-card{position:relative}.reference-slot>.prompt-reference-handle,.image-ref-card>.prompt-reference-handle{position:absolute;left:6px;bottom:6px;z-index:3}
@media(max-width:600px){.prompt-reference-editor .ProseMirror{min-height:110px;max-height:320px}.prompt-reference-chip{line-height:28px}.prompt-reference-toolbar select{font-size:13px}}
.prompt-native-tray{padding:8px 0;border-bottom:0;min-width:0;max-width:100%;box-sizing:border-box}
.prompt-native-tray .prompt-reference-source{flex-basis:60px;width:60px;height:60px;min-width:60px}
.prompt-native-tray .prompt-reference-source:focus-visible{outline:2px solid #147d64;outline-offset:2px}
.prompt-native-tray .prompt-reference-source:disabled{opacity:.5;cursor:default}
.prompt-native-surface{position:relative;min-width:0;width:100%}
.prompt-native-surface textarea.prompt-native-input{display:block;width:100%;margin:0}
.prompt-native-display{display:none;position:absolute;inset:0;z-index:1;overflow:hidden;white-space:pre-wrap;border-style:solid;border-color:transparent;pointer-events:none;user-select:none;color:var(--prompt-native-ink);letter-spacing:0}
.prompt-native-surface.has-prompt-references .prompt-native-display{display:block}
.prompt-native-surface.has-prompt-references textarea.prompt-native-input{color:transparent!important;-webkit-text-fill-color:transparent!important;text-shadow:none!important;caret-color:var(--prompt-native-ink)!important}
.prompt-native-reference-text{color:#0969da}
.prompt-native-reference-text.is-missing{color:#b42318}
