.restyle-chips{flex-direction:column;gap:8px;min-width:0;max-width:100%;display:flex}.restyle-chips-label{color:var(--muted);align-items:center;gap:6px;font-size:12px;display:inline-flex}.restyle-chips-row{overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;gap:6px;margin:-2px;padding:2px;display:flex;overflow-x:auto;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),#0000);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),#0000)}.restyle-chips-row::-webkit-scrollbar{display:none}.restyle-chip{scroll-snap-align:start;white-space:nowrap;border:1px solid var(--line);background:var(--surface);min-height:34px;color:inherit;font:inherit;cursor:pointer;border-radius:999px;flex:none;align-items:center;gap:6px;padding:7px 12px;font-size:13px;transition:background-color .16s,border-color .16s,transform .16s;display:inline-flex}.restyle-chip.is-tool{color:var(--muted)}@media (hover:hover) and (pointer:fine){.restyle-chip:hover:not(:disabled){background:var(--hover);color:var(--text)}}.restyle-chip:active:not(:disabled){transform:scale(.97)}.restyle-chip:focus-visible{outline:2px solid var(--text);outline-offset:2px}.restyle-chip:disabled{opacity:.55;cursor:default}.restyle-chip[aria-busy=true]{opacity:1;border-color:var(--text);background:var(--selected)}@media (max-width:760px){.restyle-chip{min-height:44px}}@media (min-width:768px){.restyle-chips-row{flex-wrap:wrap;overflow:visible;-webkit-mask-image:none;mask-image:none}}@media (prefers-reduced-motion:reduce){.restyle-chip{transition:none}.restyle-chip:active:not(:disabled){transform:none}}
.chat-view .chat-image{width:min(100%,460px);margin:4px 0 0}.chat-view .chat-image-open{cursor:zoom-in;padding:0}.chat-view .chat-image>.chat-image-open{border-radius:var(--radius-lg);border:1px solid var(--line);background:var(--hover);display:block;overflow:hidden}.chat-view .chat-image img{width:100%;height:auto;display:block}.chat-view .chat-image-pending{border-radius:var(--radius-lg);border:1px dashed var(--line);background:var(--hover);color:var(--muted);align-content:center;place-items:center;gap:6px;font-size:13px;display:grid;position:relative;overflow:hidden}.chat-view .chat-image-pending>span{align-items:center;gap:8px;display:flex}.chat-view .chat-image-pending>small{font-variant-numeric:tabular-nums;font-size:12px}.chat-view .chat-image-progress{background:var(--line);height:3px;position:absolute;inset:auto 0 0}.chat-view .chat-image-progress>b{background:var(--text);opacity:.55;transform-origin:0;height:100%;animation:30s cubic-bezier(.35,.45,.55,1) both chat-image-progress;display:block;transform:scaleX(.92)}@keyframes chat-image-progress{0%{transform:scaleX(.03)}to{transform:scaleX(.92)}}.chat-view .chat-image figcaption{flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px;display:flex}.chat-view .chat-image-action{border:1px solid var(--line);border-radius:var(--radius-xl);color:var(--text);align-items:center;gap:6px;padding:6px 11px;font-size:13px;text-decoration:none;display:inline-flex}.chat-view .chat-image-action:hover{background:var(--hover)}@media (prefers-reduced-motion:reduce){.chat-view .chat-image-progress>b{animation:none}}@media (prefers-reduced-motion:no-preference){.chat-view .chat-image-pending>span{animation:1.6s ease-in-out infinite chat-image-drawing}@keyframes chat-image-drawing{50%{opacity:.45}}}.image-preview.dialog{max-width:min(1100px,100vw - 32px)}.image-preview-frame{background:var(--hover);place-items:center;padding:16px;display:grid}.image-preview-frame img{border-radius:var(--radius-md);object-fit:contain;width:auto;max-width:100%;height:auto;max-height:calc(90dvh - 190px);display:block}.image-preview-footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:14px 20px 18px;display:flex}.image-preview-footer p{color:var(--muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;flex:260px;margin:0;font-size:13px;line-height:1.5;display:-webkit-box;overflow:hidden}.image-preview-footer>div{flex-wrap:wrap;gap:6px;display:flex}.image-preview-footer .chat-image-action{border:1px solid var(--line);border-radius:var(--radius-xl);color:var(--text);align-items:center;gap:6px;padding:6px 11px;font-size:13px;text-decoration:none;display:inline-flex}@media (max-width:760px){.image-preview-frame{padding:8px}.image-preview-frame img{max-height:calc(90dvh - 230px)}}.chat-view .chat-image .restyle-chips{margin-top:10px}@media (pointer:coarse){.image-preview-footer .image-preview-tab{display:none}}
