.generated-image-trigger{position:relative;display:block;width:100%;padding:0;border:0;border-radius:16px;background:transparent;cursor:zoom-in;text-align:left;font:inherit;color:inherit}
.generated-image-trigger .generated-image{width:100%;margin:0}
.generated-image-hint{position:absolute;right:14px;top:14px;display:flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid #e0c78d38;border-radius:10px;background:#0b0e11d9;color:#e5d2a3;font-size:11px;line-height:1.4;backdrop-filter:blur(8px);pointer-events:none}
.generated-image-hint svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.generated-image-trigger:hover .generated-image-hint{background:#202119ef;border-color:#e0c78d80}
.generated-image-trigger:focus-visible{outline:2px solid #dfc688;outline-offset:5px}
body.chat-image-viewer-open{overflow:hidden}
.chat-image-viewer{position:fixed;inset:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:0;border:0;color:#edf0e9;background:#080a0df7;overflow:hidden;box-sizing:border-box;overscroll-behavior:contain}
.chat-image-viewer[open]{display:flex;flex-direction:column}
.chat-image-viewer::backdrop{background:#000e}
.chat-image-viewer *{box-sizing:border-box}
.chat-image-viewer__header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:20px;padding:14px max(20px,env(safe-area-inset-right)) 14px max(20px,env(safe-area-inset-left));border-bottom:1px solid #ffffff14;background:#101319;flex-shrink:0}
.chat-image-viewer__header h2{font-size:14px;line-height:1.5;font-weight:550;letter-spacing:0;margin:0;color:#eeeee9}
.chat-image-viewer__header h2 small{display:block;font-size:10px;font-weight:400;line-height:1.6;color:#8f98a5}
.chat-image-viewer__controls{display:flex;align-items:center;gap:6px}
.chat-image-viewer button,.chat-image-viewer__download{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:44px;min-height:44px;padding:10px;border:1px solid #ffffff15;border-radius:11px;color:#d6c18d;background:#ffffff04;cursor:pointer;text-decoration:none;font:inherit;font-size:12px;touch-action:manipulation}
.chat-image-viewer button:disabled{opacity:.3;cursor:default}
.chat-image-viewer button:hover:not(:disabled),.chat-image-viewer__download:hover{border-color:#d6c18d65;background:#d6c18d0b;color:#f3dfb1}
.chat-image-viewer button:focus-visible,.chat-image-viewer__download:focus-visible{outline:2px solid #dfc688;outline-offset:3px}
.chat-image-viewer svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.chat-image-viewer output{width:44px;text-align:center;font-size:11px;color:#aab3bf;white-space:nowrap}
.chat-image-viewer__download{margin-left:10px;padding:10px 15px}
.chat-image-viewer__viewport{position:relative;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#80704c #101319;touch-action:pan-x pan-y pinch-zoom;padding-bottom:env(safe-area-inset-bottom)}
.chat-image-viewer__canvas{display:grid;place-items:center;min-width:100%;min-height:100%;width:max-content;height:max-content;padding:16px}
.chat-image-viewer__canvas img{display:block;max-width:none;max-height:none;border-radius:4px;object-fit:contain;user-select:none;cursor:zoom-in}
.chat-image-viewer__canvas img[hidden]{display:none}
.chat-image-viewer.is-zoomed .chat-image-viewer__canvas img{cursor:grab}
.chat-image-viewer__viewport.is-dragging,.chat-image-viewer__viewport.is-dragging img{cursor:grabbing}
.chat-image-viewer__status{position:absolute;left:24px;right:24px;top:45%;text-align:center;font-size:13px;line-height:1.8;color:#a5aeb9}
@media(max-width:600px){.chat-image-viewer__header{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px max(14px,env(safe-area-inset-right)) 12px max(14px,env(safe-area-inset-left))}.chat-image-viewer__controls{grid-column:1/-1;grid-row:2;justify-content:center}.chat-image-viewer__close{grid-column:2;grid-row:1}.chat-image-viewer__download{margin-left:10px}.chat-image-viewer__download span{display:none}.generated-image-hint{right:10px;top:10px;padding:8px 10px}}
