.msgs{overflow-anchor:none;overscroll-behavior:contain}.m{position:relative;overflow-wrap:anywhere;min-width:0;flex-shrink:0}.chat-text{white-space:pre-wrap}.chat-toolbar{display:flex;flex-wrap:wrap;gap:6px;padding:8px 12px;border-top:1px solid #eceaf2;flex-shrink:0}.chat-toolbar .muted{width:100%;font-size:12px}.message-actions{text-align:right;white-space:normal}.message-actions summary{cursor:pointer;min-width:36px;min-height:30px}.message-actions>div{display:flex;flex-wrap:wrap;gap:4px}.message-actions .btn{font-size:11px;min-height:36px;padding:6px}.chat-dialog{width:min(480px,calc(100% - 24px));max-height:85dvh;border:1px solid #d8d4e3;border-radius:20px;padding:20px;color:#3b2463;background:#fff;box-sizing:border-box}.chat-dialog::backdrop{background:#21142b77}.chat-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.chat-dialog label{display:grid;gap:6px}.chat-dialog label:has(input[type=checkbox]){display:flex;align-items:center}.chat-dialog input:not([type=checkbox]),.chat-dialog textarea,.chat-dialog select{width:100%;box-sizing:border-box}.chat-poll{min-width:170px;display:grid;gap:8px;white-space:normal}.chat-poll label{display:flex;gap:8px;align-items:center}.chat-poll label span{margin-left:auto}.chat-permissions fieldset{margin:12px 0;border:1px solid #d8d4e3;border-radius:12px}.chat-permissions label{display:flex;gap:6px;align-items:center;margin:8px 0;font-size:13px}.chat-permissions input{width:auto}.chat-poll input{width:20px;height:20px;flex:none}.msgs[data-background=rose]{background:linear-gradient(135deg,#f8e6df,#e9c1bc,#f8f2f5)}.msgs[data-background=chrome]{background:linear-gradient(110deg,#f9fafc,#d9dce5 45%,#fff 50%,#e7e3ee)}.msgs[data-background=violet]{background:linear-gradient(135deg,#f5efff,#d6c5ed,#f6e9ef)}.msgs[data-background=stars]{background-color:#f7f2fc;background-image:radial-gradient(#b08ee077 1.5px,transparent 1.5px);background-size:22px 22px}.msgs[data-background=legacy-unused]{background-color:#f5f2f8;background-image:linear-gradient(#b08ee033 1px,transparent 1px),linear-gradient(90deg,#b08ee033 1px,transparent 1px);background-size:24px 24px}
:root[data-theme=dark] .chat-dialog{background:#211a2e;color:#eee8f8}:root[data-theme=dark] .msgs[data-background=rose]{background:linear-gradient(135deg,#35232c,#482c39,#241c2c)}:root[data-theme=dark] .msgs[data-background=chrome]{background:linear-gradient(110deg,#23222e,#3b3948,#282332)}:root[data-theme=dark] .msgs[data-background=violet]{background:linear-gradient(135deg,#251b37,#3e2853,#2b2037)}:root[data-theme=dark] .msgs[data-background=stars],:root[data-theme=dark] .msgs[data-background=legacy-unused]{background-color:#211a2c}
@media(max-width:820px){.wrap{height:calc(var(--chat-vh,100dvh) - 100px);min-height:0}.page{padding-bottom:0!important}.comp{flex-shrink:0}.chat-toolbar{padding:6px;gap:4px;max-height:120px;overflow:auto}.chat-toolbar .btn{min-height:40px;font-size:12px;padding:7px}.msgs{padding:10px}.m{max-width:92%}.chat-h{padding:8px 10px}.emoji-picker{max-height:40dvh;overflow:auto}.gpanel{z-index:10}}
:root .m.mine{background:linear-gradient(115deg,#85505e,#6839a6)!important;color:#fff!important}.m.mine .muted{color:#f1e8ff!important}
