.chat-attachments{gap:6px;min-width:0;margin-bottom:4px;display:grid}.chat-attachment-grid{grid-template-columns:repeat(var(--chat-grid-cols,1), minmax(0, 1fr));gap:4px;max-width:300px;display:grid}.chat-attachment-grid.count-2{--chat-grid-cols:2}.chat-attachment-grid.count-3{--chat-grid-cols:3}.chat-attachment-image{background:color-mix(in srgb, var(--ink) 6%, transparent);border-radius:12px;display:block;overflow:hidden}.chat-attachment-image img{aspect-ratio:auto;object-fit:cover;width:100%;height:auto;max-height:320px;display:block}.chat-attachment-grid.count-2 img,.chat-attachment-grid.count-3 img{aspect-ratio:1;height:100%}.chat-attachment-image.is-local{max-width:220px}.chat-attachment-image:focus-visible,.chat-attachment-file:focus-visible{outline:2px solid var(--rosewood);outline-offset:2px}.chat-attachment-file{color:inherit;background:#ffffff8c;border-radius:12px;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:2px 8px;max-width:300px;padding:8px 10px;text-decoration:none;display:grid}.chat-attachment-file .ic{grid-row:span 2}.chat-attachment-file small{opacity:.65;font-size:10.5px}.chat-attachment-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:12.5px;font-weight:700;display:block;overflow:hidden}a.chat-attachment-file:hover{background:#fff}.chat-draft-files{scrollbar-width:thin;gap:8px;margin:0 0 8px;padding:2px 2px 4px;list-style:none;display:flex;overflow-x:auto}.chat-draft-file{background:var(--linen);border:1px solid var(--line);border-radius:14px;flex:none;grid-template-columns:40px minmax(0,132px) 28px;align-items:center;gap:8px;padding:5px 5px 5px 6px;display:grid}.chat-draft-file img,.chat-draft-file-icon{object-fit:cover;border-radius:9px;width:40px;height:40px}.chat-draft-file-icon{color:var(--rosewood);background:#fff;justify-content:center;align-items:center;display:inline-flex}.chat-draft-file-meta small{color:var(--ink-45);font-size:10.5px}.chat-draft-file-remove{color:var(--ink-70);cursor:pointer;background:0 0;border:0;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;display:inline-flex}.chat-draft-file-remove:hover{color:var(--ink);background:#fff}.chat-upload-progress{background:var(--linen);border-radius:999px;height:4px;margin:0 0 8px;overflow:hidden}.chat-upload-progress span{background:var(--rosewood);height:100%;transition:width .15s linear;display:block}.chat-drop-overlay{background:color-mix(in srgb, var(--blush) 88%, transparent);border:2px dashed var(--rosewood);border-radius:inherit;color:var(--rosewood);pointer-events:none;z-index:5;justify-content:center;align-items:center;font-weight:800;display:flex;position:absolute;inset:0}.chat-message-text{overflow-wrap:anywhere;white-space:pre-wrap;display:block}.msg{position:relative}.chat-message-delete{border:1px solid var(--line);color:var(--ink-70);cursor:pointer;opacity:0;pointer-events:none;background:#fff;border-radius:50%;justify-content:center;align-items:center;width:30px;height:30px;transition:opacity .15s;display:inline-flex;position:absolute;top:-10px;box-shadow:0 4px 12px #4020281a}.msg.me .chat-message-delete{left:-12px}.msg:not(.me) .chat-message-delete{right:-12px}.msg.is-selected .chat-message-delete,.chat-message-delete:focus-visible{opacity:1;pointer-events:auto}@media (hover:hover){.msg:hover .chat-message-delete{opacity:1;pointer-events:auto}}.chat-message-delete:hover{color:var(--st-cancel,#b3261e)}.chat-message-delete .ic{width:15px;height:15px}.chat-delete-confirm{flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px;font-size:11.5px;font-weight:700;display:flex}.chat-delete-confirm button{border:1px solid var(--line);color:var(--ink);cursor:pointer;font:inherit;background:#fff;border-radius:999px;min-height:30px;padding:3px 11px}.chat-delete-confirm button.danger{background:var(--st-cancel,#b3261e);color:#fff;border-color:#0000}.chat-delete-confirm button:disabled{opacity:.5}.msg.is-pending{opacity:.72}@media (prefers-reduced-motion:reduce){.chat-upload-progress span,.chat-message-delete{transition:none}}.chat-viewer{color:#fff;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;z-index:1000;background:#0e0b0df0;grid-template-rows:auto minmax(0,1fr);animation:.16s ease-out chat-viewer-in;display:grid;position:fixed;inset:0}.chat-viewer .ic{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.9px;flex:none;width:22px;height:22px}.chat-viewer-bar{min-width:0;padding:max(10px, env(safe-area-inset-top)) 12px 10px 16px;align-items:center;gap:8px;display:flex}.chat-viewer-name{opacity:.88;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:14px;overflow:hidden}.chat-viewer-count{font-variant-numeric:tabular-nums;opacity:.7;font-size:13px}.chat-viewer-btn,.chat-viewer-nav{color:#fff;cursor:pointer;background:#ffffff1f;border:0;border-radius:50%;flex:none;place-items:center;width:42px;height:42px;padding:0;text-decoration:none;display:grid}.chat-viewer-btn:hover,.chat-viewer-nav:hover{background:#ffffff38}.chat-viewer-btn:focus-visible,.chat-viewer-nav:focus-visible{outline-offset:2px;outline:2px solid #fff}.chat-viewer-stage{min-height:0;padding:0 16px max(16px, env(safe-area-inset-bottom));grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center;display:grid;position:relative}.chat-viewer-stage img{object-fit:contain;-webkit-user-select:none;user-select:none;border-radius:6px;width:auto;max-width:100%;height:auto;max-height:100%;box-shadow:0 16px 48px #00000073}.chat-viewer-nav{width:48px;height:48px;position:absolute;top:50%;transform:translateY(-50%)}.chat-viewer-nav.is-prev{left:16px}.chat-viewer-nav.is-next{right:16px}@media (max-width:600px){.chat-viewer-stage{padding:0 0 max(12px, env(safe-area-inset-bottom))}.chat-viewer-stage img{border-radius:0}.chat-viewer-nav{background:#0006;width:40px;height:40px}.chat-viewer-nav.is-prev{left:8px}.chat-viewer-nav.is-next{right:8px}}@keyframes chat-viewer-in{0%{opacity:0}}@media (prefers-reduced-motion:reduce){.chat-viewer{animation:none}}
