.message-notifications{position:fixed;z-index:1000020;inset:auto max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) auto;width:368px;max-width:calc(100vw - 32px);color:var(--portal-text);font-family:system-ui,sans-serif;pointer-events:none}.message-notifications.has-call{left:max(24px,env(safe-area-inset-left));right:auto}.message-notifications-toolbar{display:flex;align-items:center;justify-content:space-between;padding:4px 5px 7px 8px;font-size:12px;color:var(--portal-muted)}.message-notifications-toolbar>span{display:flex;align-items:center;gap:7px;padding:4px 7px;border-radius:8px;background:var(--portal-surface);box-shadow:0 1px 3px #0000000a}.message-notifications-toolbar b{font-size:11px;font-weight:600;color:var(--portal-primary)}.message-notifications-toolbar>div{display:flex;gap:4px}.message-notifications-toolbar button{pointer-events:auto;display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--portal-line);border-radius:8px;color:var(--portal-muted);background:var(--portal-surface);cursor:pointer}.message-notifications-list{display:flex;flex-direction:column;gap:10px;max-height:min(680px,calc(100dvh - 150px));overflow:auto;scrollbar-width:thin;overscroll-behavior:contain;padding:2px 6px 14px;margin:-2px -6px -14px;scroll-padding:8px}.message-toast{position:relative;flex:none;pointer-events:auto;background:var(--portal-surface);border:1px solid var(--portal-line);border-radius:12px;box-shadow:0 8px 32px #1018281c,0 2px 6px #1018280a;animation:message-toast-enter .2s ease-out}.dark .message-toast{box-shadow:0 8px 32px #0005,0 2px 6px #0003}.message-toast.is-replying{border-color:var(--portal-primary)}.message-toast-link{display:flex;align-items:flex-start;gap:12px;padding:16px 16px 0;text-decoration:none;color:inherit;border-radius:12px 12px 0 0}.message-toast-link:hover .message-toast-heading strong{color:var(--portal-primary)}.message-toast-avatar{position:relative;display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:50%;background:var(--portal-primary-soft);color:var(--portal-primary);font-size:14px;font-weight:650}.message-toast-avatar>img{width:100%;height:100%;border-radius:inherit;object-fit:cover}.message-toast-avatar i{position:absolute;bottom:-2px;right:-3px;display:grid;place-items:center;width:19px;height:19px;color:white;background:#2563eb;border:2px solid var(--portal-surface);border-radius:50%}.message-toast-body{min-width:0;flex:1}.message-toast-heading{display:flex;align-items:center;gap:8px;padding-right:18px}.message-toast-heading strong{display:block;font-size:14px;line-height:19px;font-weight:650;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.message-toast-heading time{font-size:11px;line-height:18px;white-space:nowrap;color:var(--portal-muted);flex-shrink:0;margin-left:auto}.message-toast-meta{display:flex;align-items:center;gap:7px;color:var(--portal-muted);font-size:11px;line-height:17px;margin-top:1px}.message-toast-meta b{font-size:10px;line-height:16px;padding:0 5px;border-radius:5px;background:var(--portal-primary-soft);color:var(--portal-primary);font-weight:600}.message-toast-preview{display:flex;align-items:center;gap:7px;margin-top:8px;font-size:14px;line-height:20px;overflow-wrap:anywhere}.message-toast-preview>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-width:0}.message-toast-preview.is-attachment{font-size:13px}.message-toast-preview>svg{color:var(--portal-primary);flex-shrink:0}.message-toast-preview small{font-size:12px;color:var(--portal-muted);font-variant-numeric:tabular-nums;margin-left:auto}.message-toast-thumbnail{width:36px;height:36px;border-radius:6px;object-fit:cover;margin-left:auto}.message-toast-caption{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;overflow-wrap:anywhere;margin-top:3px;font-size:13px;color:var(--portal-muted)}.message-toast-close{position:absolute;display:grid;place-items:center;right:7px;top:7px;width:28px;height:28px;border-radius:7px;color:var(--portal-muted);cursor:pointer;border:0;background:transparent}.message-toast-bottom{padding:10px 16px 12px 72px}.message-toast-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.message-toast-answer{gap:6px;font-weight:600;line-height:18px;padding:6px 9px;margin-left:-9px;border-radius:7px;border:0;background:var(--portal-primary-soft);color:var(--portal-primary);cursor:pointer}.message-toast-actions>a,.message-toast-answer{display:inline-flex;align-items:center;font-size:12px}.message-toast-actions>a{gap:3px;color:var(--portal-muted);padding:6px 0 6px 8px;text-decoration:none}.message-toast-actions>a:hover{color:var(--portal-primary)}.message-toast-draft{font-size:10px;font-weight:400}.message-toast-reply{margin-left:-56px}.message-toast-editor{display:flex;align-items:flex-end;gap:6px;border:1px solid var(--portal-line);border-radius:8px;background:var(--portal-canvas);padding:7px}.message-toast-editor:focus-within{border-color:var(--portal-primary)}.message-toast-editor textarea{flex:1;min-width:0;min-height:44px;max-height:160px;field-sizing:content;font:inherit;font-size:14px;line-height:20px;color:var(--portal-text);background:transparent;border:0;padding:1px 3px;resize:none;outline:none}.message-toast-editor textarea::placeholder{color:var(--portal-muted)}.message-toast-send{display:grid;place-items:center;flex:0 0 32px;height:32px;border:0;border-radius:7px;background:#2563eb;color:white;cursor:pointer}.message-toast-send:disabled{opacity:.4;cursor:default}.message-toast-hint{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-top:6px;color:var(--portal-muted);font-size:10px;line-height:16px}.message-toast-hint button{padding:3px 0 3px 4px;background:transparent;border:0;color:var(--portal-muted);font-size:11px;cursor:pointer}.message-toast-error{font-size:12px;line-height:17px;color:#dc2626;margin:7px 0 0}.dark .message-toast-error{color:#fca5a5}.message-toast-sent{display:flex;align-items:center;gap:6px;font-size:12px;line-height:28px;color:var(--portal-primary);margin:0}.message-notifications button:disabled{cursor:default}.message-notifications-toolbar button:hover,.message-toast-close:hover{background:var(--portal-hover)}.message-toast-answer:hover{filter:brightness(.96)}.message-notifications a:focus-visible,.message-notifications button:focus-visible{outline:2px solid var(--portal-primary);outline-offset:2px}.message-notification-announcer{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.message-toast-spinner{animation:message-toast-spin 1s linear infinite}@keyframes message-toast-enter{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes message-toast-spin{to{transform:rotate(1turn)}}@media (max-width:639px){.message-notifications,.message-notifications.has-call{top:max(72px,calc(env(safe-area-inset-top) + 60px));left:12px;right:12px;bottom:auto;width:auto;max-width:none}.message-notifications.has-incoming-call{top:auto;bottom:max(12px,env(safe-area-inset-bottom))}.message-notifications-list{max-height:min(560px,calc(100dvh - 156px))}.message-notifications.has-incoming-call .message-notifications-list{max-height:min(240px,calc(50dvh - 40px))}.message-toast-link{padding:14px 12px 0;gap:10px}.message-toast-avatar{width:40px;height:40px;flex-basis:40px}.message-toast-bottom{padding-left:62px;padding-right:12px}.message-toast-reply{margin-left:-50px}.message-toast-heading{flex-wrap:wrap;gap:0 5px;padding-right:16px}.message-toast-heading time{margin-left:0;font-size:10px}.message-toast-close{right:4px;top:5px}.message-toast-meta{font-size:10px}.message-toast-hint>span{max-width:175px;font-size:9px}}@media (prefers-reduced-motion:reduce){.message-toast{animation:none}.message-toast-spinner{animation-duration:2s}}.message-notifications.is-call-tight .message-notifications-toolbar{display:none}.message-notifications.is-call-tight .message-notifications-list{max-height:60px}.message-notifications.is-call-tight .message-toast-link{padding:8px 12px;gap:9px}.message-notifications.is-call-tight .message-toast-avatar{width:32px;height:32px;flex-basis:32px}.message-notifications.is-call-tight .message-toast-bottom,.message-notifications.is-call-tight .message-toast-caption,.message-notifications.is-call-tight .message-toast-heading time,.message-notifications.is-call-tight .message-toast-meta{display:none}.message-notifications.is-call-tight .message-toast-preview{margin-top:1px;font-size:12px;line-height:17px}.message-notifications.is-call-tight .message-toast-preview>span{-webkit-line-clamp:1}.message-notifications.is-call-tight .message-toast-thumbnail{width:20px;height:20px}