.chat-image-card{margin-top:12px;max-width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.chat-image-open{display:flex;flex-direction:column;align-items:center;gap:10px;box-sizing:border-box;width:320px;max-width:100%;min-height:120px;padding:12px;border:1px solid #c5dce4;border-radius:12px;background:#f1f8fb;color:#133d50;cursor:pointer;font:inherit;text-align:center;overflow-wrap:anywhere}
.chat-image-open img{display:block;max-width:100%;max-height:200px;object-fit:contain;border-radius:5px}
.chat-image-caption{font-size:13px;font-weight:650;color:#007d98}
.chat-image-reference{display:flex;flex-direction:column;gap:3px;margin:4px 0!important;font-size:13px;overflow-wrap:anywhere;color:#526675}
.chat-image-reference strong{font-size:12px;color:#344c5b}
.chat-image-dialog{position:fixed;inset:0;box-sizing:border-box;margin:auto;width:calc(100% - 32px);max-width:1100px;max-height:94dvh;padding:0;border:1px solid #cbd8df;border-radius:16px;background:#fff;color:#183b4b;box-shadow:0 20px 80px #0005;overflow:auto;font:15px/1.5 Inter,Arial,sans-serif}
.chat-image-dialog::backdrop{background:#0c253bc9}
.chat-image-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid #d8e4ea}
.chat-image-dialog h2{font-size:20px;margin:0}.chat-image-dialog header p{font-size:13px;margin:2px 0;color:#526675}
.chat-image-dialog header button{flex-shrink:0}
.chat-image-viewport{height:60dvh;min-height:150px;max-height:650px;overflow:auto;background:#eef3f6;display:grid;align-items:start;justify-items:start;padding:12px;box-sizing:border-box}
.chat-image-viewport>img{display:block;max-width:none;height:auto;margin:auto}
.chat-image-viewport>[role]{margin:auto;padding:14px;text-align:center}
.chat-image-dialog footer{padding:12px 18px}.chat-image-dialog footer>label{display:flex;align-items:center;gap:12px}.chat-image-dialog input{flex:1;min-width:40px;max-width:320px}.chat-image-dialog footer p{margin:8px 0;overflow-wrap:anywhere;white-space:pre-wrap}.chat-image-dialog output{min-width:42px}
.chat-image-open:focus-visible,.chat-image-dialog :focus-visible{outline:3px solid #00aecd;outline-offset:3px}
@media(max-width:480px){.chat-image-dialog{width:calc(100% - 16px);border-radius:10px}.chat-image-dialog header,.chat-image-dialog footer{padding:12px}.chat-image-dialog h2{font-size:17px}.chat-image-viewport{height:52dvh}.chat-image-card{width:100%}}
