.uno-chat-toggle{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:10px;border:1px solid var(--uno-line,#49313a);border-radius:50%;background:rgba(255,255,255,.035);color:var(--uno-text,#fff3f4);cursor:pointer;transition:transform .2s,background .2s}
.uno-chat-toggle svg,.uno-chat-form>button svg{display:block;width:24px;height:24px}
.uno-chat-toggle:hover{transform:translateY(-3px);background:rgba(220,41,72,.16)}
.uno-chat-toggle:focus-visible,.uno-chat-dialog :focus-visible{outline:2px solid #f16b82;outline-offset:3px}
.uno-chat-dialog{position:fixed;inset:0 20px 0 auto;margin:auto 0;width:min(420px,calc(100vw - 32px));max-width:calc(100vw - 32px);height:min(680px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);box-sizing:border-box;padding:22px;border:1px solid rgba(255,210,222,.22);border-radius:28px;background:linear-gradient(145deg,rgba(57,18,30,.97),rgba(14,10,15,.98));color:#fff3f4;box-shadow:0 24px 80px rgba(0,0,0,.5),inset 0 1px rgba(255,255,255,.1);font:inherit;overflow:hidden;z-index:1000}
.uno-chat-dialog[open]{display:flex;flex-direction:column;gap:14px;animation:uno-chat-enter .23s ease-out}
.uno-chat-dialog::backdrop{background:rgba(6,4,8,.52);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.uno-chat-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
.uno-chat-dialog h2{font-size:23px;margin:0;font-weight:750;line-height:1.2}
.uno-chat-dialog button,.uno-chat-review-actions button{cursor:pointer}
.uno-chat-dialog>header button{display:grid;place-items:center;width:40px;height:40px;border:1px solid rgba(255,255,255,.15);border-radius:50%;background:rgba(255,255,255,.055);color:inherit;font-size:26px;line-height:1;padding:0}
.uno-chat-rule{font-size:12px;color:#c9b6be;margin:0!important;flex:none}
.uno-chat-messages{display:flex;flex-direction:column;gap:14px;list-style:none;margin:0!important;padding:4px 2px 12px!important;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#733442 transparent}
.uno-chat-message{padding:12px 14px;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:rgba(255,255,255,.045);margin:0;max-width:100%;box-sizing:border-box}
.uno-chat-message.is-own{background:rgba(220,41,72,.12);border-color:rgba(220,41,72,.22)}
.uno-chat-message-heading{display:flex;align-items:center;gap:8px;margin-bottom:5px;font-size:12px}
.uno-chat-author{font-weight:700;color:#ffbbca;text-decoration:none;overflow-wrap:anywhere;min-width:0}
.uno-chat-message time{color:#bcabb3;font-size:10px;white-space:nowrap;margin-left:auto}
.uno-chat-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;font-size:14px;margin:0!important}
.uno-chat-message-action,.uno-chat-report summary{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.035);color:#d3bcc5;font:inherit;font-size:20px;flex:none;cursor:pointer;list-style:none}
.uno-chat-report summary::-webkit-details-marker{display:none}
.uno-chat-report{position:relative;flex:none}
.uno-chat-report-form{position:absolute;right:0;top:34px;width:195px;padding:12px;border:1px solid #71414e;border-radius:16px;background:#28161e;box-shadow:0 8px 30px #0008;z-index:2}
.uno-chat-report-form label{font-size:12px;display:block}
.uno-chat-report-form select{display:block;width:100%;margin:7px 0 10px;padding:7px;color:#fff3f4;background:#1c1118;border:1px solid #71414e;border-radius:9px;font:inherit}
.uno-chat-report-form button{border:1px solid #834153;background:#502331;border-radius:12px;padding:8px 10px;color:inherit;font:inherit;font-size:12px}
.uno-chat-form{display:flex;align-items:flex-end;gap:10px;flex:none;margin:0!important;padding-top:8px;border-top:1px solid rgba(255,255,255,.12)}
.uno-chat-form textarea{resize:none;flex:1;min-width:0;max-height:120px;padding:12px;box-sizing:border-box;color:#fff3f4;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.18);border-radius:16px;font:inherit;font-size:16px;line-height:1.4}
.uno-chat-form textarea::placeholder{color:#b9a6b0}
.uno-chat-form>button{display:grid;place-items:center;width:44px;height:44px;padding:10px;background:#dc2948;border:0;border-radius:50%;color:white;flex:none}
.uno-chat-dialog button:disabled{opacity:.5;cursor:default}
.uno-chat-status{font-size:12px;line-height:1.35;min-height:16px;flex:none;margin:0!important;color:#eac6d1;overflow-wrap:anywhere}
.uno-chat-empty,.uno-chat-welcome{color:#cbb8c1;font-size:14px;line-height:1.6;margin:auto 0}
.uno-chat-welcome a{color:#ffbbca;text-underline-offset:4px}
.uno-chat-review{padding:16px 0;border-bottom:1px solid rgba(255,255,255,.1)}
.uno-chat-review-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end;margin-top:14px}
.uno-chat-review-actions label{display:flex;flex-direction:column;gap:6px;font-size:12px}
.uno-chat-review-actions :is(button,select){font:inherit;font-size:13px;padding:9px 12px;color:inherit;border:1px solid rgba(255,255,255,.2);border-radius:14px;background:rgba(255,255,255,.045)}
.uno-chat-review-actions select{background:#28161e}
@keyframes uno-chat-enter{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:650px){.uno-chat-dialog{inset:0;margin:auto;width:calc(100vw - 24px);max-width:calc(100vw - 24px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);padding:18px 16px;border-radius:24px}.uno-header-tools{gap:6px}.uno-chat-toggle{width:40px;height:40px;padding:8px}}
@media(prefers-reduced-motion:reduce){.uno-chat-dialog[open]{animation:none}.uno-chat-toggle{transition:none}.uno-chat-toggle:hover{transform:none}}

.uno-chat-toggle{position:relative}
.uno-chat-toggle.has-unread{background:rgba(220,41,72,.18);border-color:rgba(220,41,72,.6)}
.uno-chat-badge{position:absolute;top:-5px;right:-5px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;box-sizing:border-box;border-radius:999px;background:#dc2948;box-shadow:0 0 0 3px #1b0e15;color:#fff;font-size:11px;line-height:1;font-weight:750;font-variant-numeric:tabular-nums;pointer-events:none}
.uno-chat-badge[hidden]{display:none}
.uno-chat-avatar{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;overflow:hidden;border:1px solid rgba(255,187,202,.2);border-radius:50%;box-sizing:border-box;background:rgba(220,41,72,.16);color:#ffbbca;font-size:13px;font-weight:700}
.uno-chat-avatar img{display:block;width:100%;height:100%;object-fit:cover}

.uno-chat-input{flex:1;min-width:0}.uno-chat-input textarea{display:block;width:100%}.uno-chat-cooldown{display:block;margin:4px 0 0 8px;font-size:11px;line-height:1.3;color:inherit;opacity:.65}.uno-chat-cooldown[hidden]{display:none}

.uno-chat-form:has(.uno-chat-cooldown:not([hidden]))>button[type=submit]{margin-bottom:18px}@media(min-width:601px){.uno-chat-form:has(.uno-chat-cooldown:not([hidden]))>.uno-sticker-picker{margin-bottom:18px}}

#uno-chat-dialog .uno-chat-mic{background:rgba(255,255,255,.045);border:1px solid var(--ma-border,#49313a);color:var(--uno-text,#fff3f4);touch-action:none;user-select:none;-webkit-user-select:none}.uno-chat-mic.is-recording{background:#b51c3b!important;box-shadow:0 0 0 3px #f0526f30}.uno-chat-mic:disabled{opacity:.4}.uno-voice-playback,.uno-chat-review audio{display:block;width:100%;max-width:280px;height:40px}.uno-voice-state{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--uno-text-soft,#b9b2b6)}.uno-voice-state[hidden]{display:none!important}.uno-voice-state button{min-height:36px;padding:7px 10px;border:1px solid var(--ma-border,#49313a);border-radius:9px;background:transparent;color:inherit;font:inherit}.uno-chat-form.has-voice{flex-wrap:wrap}.uno-chat-form.has-voice>.uno-chat-input{flex:1 1 120px}.uno-chat-form.has-voice>.uno-voice-state{flex-basis:100%}
@media(max-width:600px){#uno-chat-dialog .uno-chat-form.has-voice{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:8px}#uno-chat-dialog .uno-chat-form.has-voice>.uno-chat-input{grid-column:1;grid-row:2}#uno-chat-dialog .uno-chat-form.has-voice>.uno-chat-mic{grid-column:2;grid-row:2}#uno-chat-dialog .uno-chat-form.has-voice>[type=submit]{grid-column:3;grid-row:2}#uno-chat-dialog .uno-chat-form.has-voice>.uno-sticker-picker{grid-column:1/-1;grid-row:1}#uno-chat-dialog .uno-chat-form.has-voice>.uno-voice-state{grid-column:1/-1;grid-row:3}}

/* Match search and notifications; unread counts remain on their badges. */
.uno-header-tools .uno-chat-toggle,.uno-header-tools .uno-dm-toggle,.uno-header-tools .uno-chat-toggle.has-unread,.uno-header-tools .uno-dm-toggle.has-notifications{background:var(--uno-glass);border-color:var(--ma-border);color:var(--uno-text)}
.uno-header-tools .uno-chat-toggle:hover,.uno-header-tools .uno-dm-toggle:hover{background:var(--uno-glass-selected);border-color:var(--ma-border)}

/* 0.3.16 · Voice note player in ARENA's own style (see voicePlayer in uno-chat-audio.js). */
.uno-voice-note{display:inline-flex;align-items:center;gap:10px;box-sizing:border-box;width:min(300px,100%);padding:6px 14px 6px 6px;border:1px solid rgba(255,240,242,.1);border-radius:999px;background:rgba(255,255,255,.055);vertical-align:middle}
.uno-voice-note audio{display:none!important}
.uno-voice-note .uno-voice-play{display:grid!important;place-items:center;flex:none;box-sizing:border-box;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;margin:0;padding:0!important;border:0!important;border-radius:50%!important;background:linear-gradient(135deg,#a8192f,#e84455)!important;box-shadow:0 4px 12px rgba(232,68,85,.3)!important;color:#fff!important;font-size:0!important;cursor:pointer;transition:transform .15s}
.uno-voice-note .uno-voice-play:hover{transform:scale(1.06)}
.uno-voice-note .uno-voice-play::before{content:'';width:16px;height:16px;background:currentColor;-webkit-mask:var(--v) center/contain no-repeat;mask:var(--v) center/contain no-repeat;--v:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E");transform:translateX(1px)}
.uno-voice-note .uno-voice-play[data-state=playing]::before{--v:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 5h3.5v14H7zM13.5 5H17v14h-3.5z'/%3E%3C/svg%3E");transform:none}
.uno-voice-wave{flex:1 1 auto;display:flex;align-items:center;gap:2px;min-width:0;height:30px;cursor:pointer;touch-action:none;border-radius:6px}
.uno-voice-wave i{flex:1 1 0;min-width:2px;max-width:4px;height:var(--h,50%);border-radius:2px;background:rgba(255,245,243,.28);transition:background-color .12s}
.uno-voice-wave i.is-on{background:#ff8a96}
.uno-voice-wave:focus-visible{outline:2px solid rgba(255,240,242,.35);outline-offset:3px}
.uno-voice-time{flex:none;min-width:32px;color:var(--uno-soft,#d6c6ca);font:600 12px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums;text-align:right}
.uno-voice-note.is-error .uno-voice-play{background:rgba(255,255,255,.12)!important;box-shadow:none!important}
@media(prefers-reduced-motion:reduce){.uno-voice-note .uno-voice-play,.uno-voice-wave i{transition:none}}
