.rp-editor{--iw-prompt-base-height:78px;display:block;box-sizing:border-box;width:100%;min-width:0;min-height:var(--iw-prompt-base-height);max-height:calc(var(--iw-prompt-base-height)*2);overflow-y:auto;white-space:pre-wrap;overflow-wrap:anywhere;border:0;border-radius:6px;background:transparent;padding:4px 0;font:inherit;font-size:var(--ui-text-size,12px);line-height:1.65;color:var(--iw-ink,#202620);cursor:text;}
.rp-editor{position:relative;text-align:left;text-indent:0}
.rp-editor[data-empty="true"]::before{content:attr(data-placeholder);position:absolute;top:4px;left:0;right:0;color:var(--iw-muted,#62695f);font:inherit;pointer-events:none}
.rp-editor:focus-visible{outline:2px solid var(--iw-line,#c9cdc6);outline-offset:3px}
/* The button is a sibling, not editable text. A generated spacer reserves its
   first-line box for both actual content and the non-interactive placeholder. */
.rp-leading-input{--rp-leading-width:96px;--rp-leading-height:28px;position:relative;flex:1;min-width:0;width:100%;max-height:calc(var(--composer-input-base-height,78px)*2);overflow-y:auto;text-align:left}
.rp-leading-control{position:absolute;left:0;top:4px;z-index:1;max-width:calc(100% - 24px)}
.rp-leading-input .rp-editor{max-height:none!important;overflow:visible}
.rp-leading-input .rp-editor:focus-visible{outline-offset:-2px}
.rp-leading-input .rp-editor::before,.rp-leading-placeholder::before{content:"";position:static;display:inline-block;box-sizing:content-box;width:var(--rp-leading-width);height:var(--rp-leading-height);margin-right:8px;vertical-align:middle;pointer-events:none}
.rp-leading-placeholder{display:none;position:absolute;top:4px;left:0;right:0;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.65;color:var(--iw-muted,#62695f);pointer-events:none}
.rp-leading-input:has(>.rp-editor[data-empty="true"])>.rp-leading-placeholder{display:block}
.rp-leading-control-only{flex:none;max-width:100%}
.vw-workbench .rp-leading-control-only{margin-bottom:8px}
.rp-editor .rp-mention{display:inline;color:#6b6b6b;font-weight:400;text-decoration:none;cursor:pointer;border-radius:2px;transition:color .15s}
.rp-editor .rp-mention::before,.rp-editor .rp-mention::after{content:" ";white-space:pre}
.rp-editor .rp-mention:hover,.rp-editor .rp-mention:focus-visible{color:#000;background:transparent;transform:none}
.rp-editor .rp-mention:focus-visible{outline:1px solid currentColor;outline-offset:2px}
.rp-editor .rp-mention-prefix{display:none}
.rp-editor .rp-mention-thumbnail{display:inline-block;height:1em;width:auto;max-width:none;vertical-align:-.12em;margin-right:.3em;object-fit:contain;border:0;border-radius:.2em}
.rp-editor .rp-mention-document-icon{display:inline-block;width:1em;height:1em;vertical-align:-.15em;margin-right:.3em;color:inherit}
.rp-text-preview{position:fixed;inset:auto;box-sizing:border-box;margin:0;width:max-content;max-width:min(420px,calc(100vw - 16px));padding:9px 14px;border:0;border-radius:10px;background:#f5f5f5;color:#000;box-shadow:none;font-size:var(--ui-secondary-size,10px);font-weight:400;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;overflow-y:auto;overscroll-behavior:contain;z-index:1600}
.rp-text-preview::backdrop{background:transparent;pointer-events:none}
.rp-text-preview:focus-visible{outline:1px solid #62695f;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.rp-editor .rp-mention{transition:none}}
.rp-hover{position:fixed;z-index:1000;width:160px;max-height:200px;padding:6px;border:1px solid #dce0d7;border-radius:10px;background:#fff;box-shadow:0 6px 24px #17200b20;pointer-events:none;overflow:hidden}
.rp-hover img{display:block;width:100%;max-height:184px;object-fit:contain;border-radius:5px}
.rp-hover span{font-size:13px;color:#454c40}
/* Result cards and the full-size viewer share the same captured-reference token. */
:is(.generation-result,.generation-prompt-measure,.iw-viewer-prompt,.conversation-compact-text) .result-inline-reference{display:inline-flex;align-items:center;vertical-align:top;gap:.3em;white-space:nowrap;max-width:100%;min-height:0;padding:0;margin:0 .15em;border:0;border-radius:2px;background:transparent;color:#6b6b6b;font:inherit;line-height:inherit;cursor:pointer}
:is(.generation-result,.iw-viewer-prompt,.conversation-compact-text) .result-inline-reference:is(:hover,:focus-visible){color:#000;background:transparent;transform:none}
.result-inline-reference:focus-visible{outline:1px solid currentColor;outline-offset:2px}
.result-inline-reference :is(img,svg),.result-mention-measure-icon{display:inline-block;flex:none;width:1em;height:1em;object-fit:contain;border-radius:2px}
.rp-hover.result-reference-hover{inset:auto;margin:0;height:188px;display:flex;flex-direction:column;justify-content:center;gap:4px;z-index:1600;white-space:normal}
.result-reference-hover::backdrop{background:transparent;pointer-events:none}
.result-reference-hover:popover-open{animation:result-reference-rise 140ms ease-out}
.result-reference-hover>img{min-height:0;flex:1}
.result-reference-hover>small{flex:none;color:#62695f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.result-plan-thumbnail{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;flex:1;background:#f5f5f2;border-radius:5px;padding:8px}
@keyframes result-reference-rise{from{opacity:0;translate:0 4px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){.result-reference-hover:popover-open{animation:none}}
.ds-modular-composer .rp-editor{min-height:88px;max-height:180px;font-size:var(--ui-text-size,12px);line-height:1.8}
@media(max-width:700px){.rp-editor{--iw-prompt-base-height:64px;font-size:var(--ui-text-size,12px)}}
.rp-text-preview.rp-annotation-preview{width:520px;max-width:min(520px,calc(100vw - 16px));padding:6px 16px;border:1px solid #dedfda;border-radius:16px;background:#fff;color:#171817;font-size:var(--ui-text-size,12px);white-space:normal;box-shadow:0 12px 32px #00000012}
.rp-annotation-note{display:flex;align-items:center;gap:12px;padding:12px 0}
.rp-annotation-note+.rp-annotation-note{border-top:1px solid #e8e9e5}
.rp-annotation-note>img{display:block;flex:none;width:auto;height:auto;max-width:56px;max-height:48px;object-fit:contain;background:transparent}
.rp-annotation-note p{flex:1;min-width:0;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;white-space:pre-wrap;color:#171817;font-size:inherit;line-height:1.6}
.rp-annotation-label{color:#62695f}
