html body .app .message{position:relative;padding:10px 30px 8px 12px!important;border-radius:18px!important;box-shadow:none!important;border:0!important;max-width:min(78%,680px);width:fit-content;margin-top:0;margin-bottom:0}
html body .app .message.mine{border-bottom-right-radius:5px!important}html body .app .message:not(.mine){border-bottom-left-radius:5px!important}
html body .app .message .message-text{font-size:15px;line-height:1.45;margin:0 0 4px;white-space:pre-wrap;overflow-wrap:anywhere}
html body .app .message .message-author{font-size:13px;margin:0 0 4px}
html body .app .message .message-meta{font-size:10px;line-height:1.2;display:flex;justify-content:flex-end;gap:5px;margin:2px 0 0;padding:0;opacity:.8}
html body .app .message .message-actions,html body .app .message .message-interactions{display:none!important}
html body .app .message .message-actions:has(button:first-child:last-child){display:none!important}
html body .app .message:has(.message-state.failed) .message-actions{display:flex!important}
html body .app .message .emoji-picker-toggle{display:none!important}
html body .app .message .message-menu-toggle{position:absolute;right:5px;top:5px;padding:0;width:23px;height:23px;min-height:0;border-radius:50%;background:#06172a55!important;color:inherit;opacity:.55;font-size:19px;line-height:20px;cursor:pointer}
html body .app .message:hover .message-menu-toggle,html body .app .message .message-menu-toggle:focus-visible{opacity:1}
.message-context{position:fixed;margin:0;width:270px;max-height:calc(100dvh - 16px);overflow:auto;border:1px solid #36536f;border-radius:16px;padding:30px 8px 8px;background:#10283d;color:#e4eefc;box-shadow:0 15px 60px #0006}.message-context::backdrop{background:#050c161c}.message-context-close{position:absolute;right:8px;top:4px;background:transparent;color:#a8bcd6;font-size:23px;border:0}.context-action{display:block;width:100%;padding:10px 12px;text-align:left;font-size:14px;line-height:1.4;background:transparent!important;color:#e4eefc!important;border:0;border-radius:8px}.context-action:hover{background:#203f5d!important}.context-action.danger-action{color:#ff8c91!important;border-top:1px solid #36536f;margin-top:4px}.context-reactions{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.context-reactions button{font-size:24px;padding:5px;background:#19374e;border:0;border-radius:8px}.message-context h3{font-size:16px;margin:6px 10px 15px}.saved-message{display:flex;flex-direction:column;gap:6px;text-align:left;width:100%;padding:12px;color:inherit;background:#19374e;border:0;border-radius:9px;margin-bottom:8px}.saved-message span{font-size:13px;overflow-wrap:anywhere;white-space:pre-wrap}
.message-tools{display:flex;flex-wrap:wrap;gap:8px;padding:6px 12px;background:var(--ws-panel,#f0f5fa);border-bottom:1px solid var(--ws-line,#dde5ed);font-size:11px}.message-tools button{background:transparent;color:var(--ws-muted,#7f9bbc);font-size:11px;padding:5px;border:0}.selection-tools{display:flex;align-items:center;gap:8px}.message-selected{outline:2px solid #4c9eff!important}.message-select-check{position:absolute;left:-25px;top:10px;accent-color:#3088ef;width:18px;height:18px}.message-bookmark-label{display:block;font-size:10px;line-height:1.5;opacity:.7;margin-bottom:3px}
@media(max-width:680px){html body .app .message{max-width:94%;padding-right:27px!important}html body .app .message .message-text{font-size:16px}.message-context{width:min(280px,calc(100vw - 16px))}}

html body dialog.message-context::backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(5,12,22,.12)!important}

html body dialog.message-context{box-sizing:border-box;width:300px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:38px 6px 6px;border:1px solid #ffffff20;border-radius:22px;background:rgba(28,40,56,.97);box-shadow:0 18px 70px #0005;color:#eef4ff;scrollbar-width:thin;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;animation:menu-appear .16s ease-out}
html body dialog.message-context .context-action{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 14px;border:0;border-radius:10px;font:400 15px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:inherit!important;outline:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
html body dialog.message-context .context-action:active{background:#ffffff15!important}
html body dialog.message-context .context-action:focus-visible{outline:2px solid #64a9ff;outline-offset:-3px}
html body dialog.message-context .context-action.danger-action{color:#ff6969!important;border-top:1px solid #ffffff18;margin-top:4px}
.context-icon{flex:0 0 21px;width:21px;height:21px}.context-icon svg,.message-context-close svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html body dialog.message-context .message-context-close{display:grid;place-items:center;position:absolute;right:9px;top:7px;width:28px;height:28px;min-height:0;padding:6px;border:0;border-radius:50%;background:#ffffff14!important;color:#b7c4d5;outline:none;box-shadow:none}
html body dialog.message-context .message-context-close:focus-visible{outline:2px solid #64a9ff}
html:not([data-theme="dark"]) body dialog.message-context{background:rgba(248,250,253,.98);color:#182536;border-color:#dce3eb}
html:not([data-theme="dark"]) body dialog.message-context .context-action:active{background:#162c4410!important}
html:not([data-theme="dark"]) body dialog.message-context .message-context-close{background:#172b4410!important;color:#687588}
@media(pointer:coarse){html body .app .message,html body .app .message *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}html body .app .message input,html body .app .message textarea{-webkit-user-select:text;user-select:text}html body .app .message{transition:filter .15s ease}html body .app .message.message-pressing{filter:brightness(1.12)} }
@keyframes menu-appear{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){html body dialog.message-context{animation:none}html body .app .message{transition:none}}

/* Safari selection must be disabled on descendants, not only the dialog. */
html body dialog.message-context,html body dialog.message-context *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;-webkit-tap-highlight-color:transparent!important}
html body dialog.message-context{outline:none!important}
html body dialog.message-context.hold-release *{pointer-events:none!important}
html body dialog.message-context.hold-release button{outline:none!important;background:transparent!important}
html body dialog.message-context ::selection{background:transparent}
