/* UI06: Figma 13:559 / 13:668. Only composition references, per user correction. */
#chat [hidden]{display:none!important}
#chat[data-reference-ui] #chatForm{position:relative}
#chat[data-reference-ui] #message{margin-left:33px}
#chat .agentReferenceAttach{position:absolute;left:2px;bottom:calc(12px + env(safe-area-inset-bottom,0px));display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:transparent;color:var(--chat-ink)}
#chat .agentReferenceAttach img{display:block;width:24px;height:24px}
#chat .agentReferenceDraft{position:relative;flex:none;display:flex;align-items:center;gap:6px;width:143px;min-height:104px;margin:0 0 clamp(8px,calc(var(--chat-visible-height,100dvh) - 754px),62px) 18px;padding:12px 10px;background:#f3f5f6;border-radius:2px;color:var(--chat-ink)}
#chat .agentReferenceThumbnail{display:block;flex:none;width:72px;height:73px;border:0;padding:0;background:#d8e5e8}
#chat .agentReferenceThumbnail img{display:block;width:72px;height:73px;object-fit:contain}
#chat .agentReferenceLabel{font:400 11px/1.45 Manrope,sans-serif;overflow-wrap:anywhere}
#chat .agentReferenceRemove{position:absolute;right:-16px;top:-22px;width:44px;height:44px;padding:0;border:0;background:transparent;color:var(--chat-ink);font:600 17px/1.45 var(--chat-system)}
#chat .agentReferenceNotice{flex:none;margin:0;padding:8px 18px;font:400 14px/20px var(--chat-system);color:var(--chat-ink)}
#chat #messages .agentReferenceMessagePhoto{display:block;width:min(200px,100%);height:134px;padding:0;margin:0 0 8px;border:0;background:#e5e7e8;border-radius:2px;overflow:hidden}
#chat .agentReferenceMessagePhoto img{display:block;width:100%;height:100%;object-fit:contain}
.agentReferenceViewer{padding:16px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border:0;border-radius:12px;background:#fff;color:#2b1421}
.agentReferenceViewer::backdrop{background:#0009}
.agentReferenceViewer>img{display:block;max-width:min(80vw,760px);max-height:70dvh;object-fit:contain}
.agentReferenceViewerClose{display:block;min-height:44px;min-width:44px;margin:12px 0 0 auto;border:0;background:transparent;color:inherit;font:400 14px/20px Manrope,sans-serif}
