/* Community identities and inline mentions. */
.free-person .free-member-name{display:inline;border:0;padding:0;background:transparent;color:inherit;font:inherit;font-size:15px;font-weight:750;text-align:inherit;cursor:pointer;overflow-wrap:anywhere}
.free-person .free-member-name.admin-role{color:#f6d58b}
.free-member-name:hover{text-decoration:underline;text-decoration-color:#a78bfa99;text-underline-offset:4px}
.free-member-name:focus-visible,.free-inline-mention:focus-visible{outline:2px solid #c4b5fd;outline-offset:3px;border-radius:4px}
.free-inline-mention{display:inline;border:1px solid #a78bfa35;border-radius:5px;padding:0 4px;background:#8b5cf61a;color:#ddd0ff;font:inherit;font-size:14px;font-weight:750;line-height:inherit;white-space:normal;overflow-wrap:anywhere;cursor:pointer;text-align:inherit}
.free-inline-mention:hover{background:#8b5cf630;color:#fff}.free-inline-mention.is-all{color:#f5d78b;border-color:#f5d78b50;background:#d6a23214;cursor:default}
.free-message-tools>.free-tool{display:inline-flex;align-items:center;gap:6px;min-height:30px;border-color:transparent;background:transparent;color:#a3a2b5}
.free-message-tools>.free-tool:hover{color:#ddd6fe;background:#a78bfa10;border-color:#a78bfa33}
.free-message-tools>.free-tool>svg{width:15px;height:15px}
/* A short mention-style quote, with the reply on the next line. */
.free-reply-quote{display:inline-block;box-sizing:border-box;max-width:100%;margin:0;padding:1px 6px;border:1px solid #a78bfa35;border-radius:5px;background:#8b5cf61a;color:#ddd0ff;text-align:inherit;font:inherit;font-size:14px;line-height:1.6;white-space:normal;overflow-wrap:anywhere;vertical-align:top;cursor:pointer}
.free-reply-quote>strong{color:inherit;font:inherit;font-weight:750}.free-reply-quote>span{color:inherit}
.free-message-body{display:block;margin-top:6px}
.free-reply-quote[aria-disabled=true]{opacity:.65;cursor:default}.free-reply-quote:focus-visible{outline:2px solid #c4b5fd;outline-offset:3px}
@media(hover:hover){.free-reply-quote:not([aria-disabled=true]):hover{background:#8b5cf630;color:#fff}}
.free-message-interactive,.free-message-interactive.has-overflow{outline:none;cursor:default}.free-message-interactive>.free-chat-text{cursor:default}.free-message-text{cursor:pointer}.free-message-interactive:focus-visible{outline:1px solid #a78bfa70;outline-offset:5px;border-radius:6px}
.free-message-tools[hidden]{display:none}
.free-message-actions{box-sizing:border-box;width:min(360px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:20px;border:1px solid #b9a7ed30;border-radius:18px;background:linear-gradient(150deg,#201e2c,#12131b);color:#efedf6;box-shadow:0 24px 70px #0008;text-align:left}
.free-message-actions::backdrop{background:#05060b9c;backdrop-filter:blur(4px)}
.free-message-actions h2{margin:0 0 16px;font-size:17px;font-weight:750;line-height:1.4}
.free-message-action-list{display:flex;flex-direction:column;gap:8px}
.free-message-action-list>button{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:44px;padding:10px 12px;border:1px solid #ffffff0c;border-radius:10px;background:#ffffff05;color:#d9d5e5;font:inherit;font-size:14px;font-weight:600;line-height:22px;cursor:pointer}
.free-message-action-list>button>svg{flex:none;width:18px;height:18px;color:#bba5eb}
.free-message-action-list>button:not(:disabled):hover{border-color:#b9a7ed45;background:#a78bfa14;color:#fff}.free-message-action-list>button:focus-visible{outline:2px solid #c4b5fd;outline-offset:2px}.free-message-action-list>button:disabled{opacity:.45;cursor:default}
.free-message-action-list>#freeMessageCancel{justify-content:center;margin-top:4px;border-color:transparent;background:transparent;color:#a9a4b6}
.free-chat-reply{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border-bottom:1px solid #a78bfa25;background:#8b5cf60b;border-radius:16px 16px 0 0}
.free-chat-reply>div{display:flex;flex-direction:row;align-items:center;gap:6px;flex:1;min-width:0;font-size:14px;line-height:1.5}
.free-chat-reply>div>svg{flex:none;width:15px;height:15px;color:#b2a0cf;opacity:.8}
.free-chat-reply strong{flex:none;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d6caff;font-size:14px;font-weight:750}.free-chat-reply span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#aaa8bc}
.free-chat-reply>.icon-button{flex:none;width:30px;height:30px;padding:6px}.free-chat-reply svg{width:16px;height:16px}
.free-entry.is-notification-target{animation:freeChatTarget 2.7s ease-out;border-radius:12px}
@keyframes freeChatTarget{0%,20%{background:#a78bfa24;box-shadow:0 0 0 8px #a78bfa0c}100%{background:transparent;box-shadow:0 0 0 8px transparent}}

/* Mention suggestions live in the browser's top layer, outside the fixed dock. */
.free-mention-menu{position:fixed;inset:auto;margin:0;max-width:none;padding:6px;border:1px solid #a78bfa55;border-radius:14px;background:linear-gradient(145deg,#242039e8,#15141fe8);backdrop-filter:blur(18px) saturate(140%);color:#e9e5f5;box-shadow:0 14px 40px #0008;overflow:auto;overscroll-behavior:contain;font:inherit;font-size:14px}
.free-mention-option{display:flex;align-items:center;gap:10px;width:100%;padding:9px;border:1px solid transparent;border-radius:9px;background:transparent;color:inherit;font:inherit;font-size:14px;text-align:left;cursor:pointer}
.free-mention-option[aria-selected=true],.free-mention-option:hover{border-color:#a78bfa44;background:#a78bfa1a}
.free-mention-option-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.free-mention-option-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:750}.free-mention-option-copy small{color:#a5a1b7;font-size:12px;line-height:1.4}
.free-mention-status{margin:0;padding:12px;color:#b3afc5;font-size:14px;line-height:1.5}

/* Personal inbox. Content is loaded only for the current authenticated account. */
.free-notification-trigger{position:relative;flex:none;width:36px;height:36px;padding:8px}
.free-notification-trigger>svg{width:18px;height:18px}
.free-notification-trigger[aria-expanded=true]{border-color:#b5a2ff90;background:#8b5cf623;color:#e4dbff}
.free-notification-badge{position:absolute;top:-7px;right:-7px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;flex:none;min-width:20px;height:20px;padding:0 3px;border:2px solid #090a0f;border-radius:999px;background:#dc2626;color:#fff;font-size:12px;font-weight:800;line-height:16px;font-variant-numeric:tabular-nums;white-space:nowrap}
.free-notification-panel{position:fixed;inset:auto;margin:0;max-width:none;padding:14px;border:1px solid rgba(216,205,255,.18);border-radius:16px;background:linear-gradient(145deg,rgba(38,34,57,.64),rgba(13,15,24,.72));-webkit-backdrop-filter:blur(24px) saturate(160%);backdrop-filter:blur(24px) saturate(160%);color:#eeeaf7;box-shadow:0 20px 55px #0006,inset 0 1px 0 #ffffff14;overflow:hidden;font:inherit;font-size:14px}
.free-notification-panel:popover-open{display:flex;flex-direction:column;gap:12px}
.free-notification-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none}.free-notification-heading>strong{font-size:16px;font-weight:800}.free-notification-heading>div{display:flex;align-items:center;gap:6px}
.free-notification-heading .icon-button{width:32px;height:32px;padding:7px}.free-notification-heading svg{width:16px;height:16px}.free-notification-heading .text-button{font-size:14px;color:#c8b7fb;white-space:nowrap;padding:6px}
.free-notification-list{display:flex;flex-direction:column;gap:5px;min-height:0;max-height:420px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:8px;margin-right:4px}
.free-notification-item{position:relative;display:flex;flex-direction:column;gap:6px;width:100%;padding:12px;border:1px solid transparent;border-radius:11px;background:transparent;color:inherit;text-align:left;font:inherit;font-size:14px;line-height:1.5;cursor:pointer}
.free-notification-item.is-unread{background:#8b5cf615;border-color:#a78bfa24}.free-notification-item.is-unread::after{content:'';position:absolute;right:9px;top:14px;width:6px;height:6px;border-radius:50%;background:#c4b5fd}
.free-notification-item:hover{border-color:#a78bfa55;background:#8b5cf624}
.free-notification-item-heading{display:block;padding-right:8px;overflow-wrap:anywhere}.free-notification-item-heading>strong{color:#e9dfff;font-size:14px;font-weight:750;margin-right:5px}.free-notification-item-heading>span{color:#bbb5cd}
.free-notification-excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;color:#c9c6d5;white-space:pre-wrap}
.free-notification-item time{color:#9691a8;font-size:12px}.free-notification-status{margin:0;padding:12px 5px;color:#aaa6bc;font-size:14px;line-height:1.7}.free-notification-more{align-self:center;font-size:14px}
.free-notification-item:focus-visible,.free-mention-option:focus-visible{outline:2px solid #c4b5fd;outline-offset:-2px}
.free-shell #freeAdminLink{display:inline-flex;align-items:center;gap:6px}.free-shell #freeAdminLink>svg{width:16px;height:16px;flex:none}

@media(max-width:480px){.free-shell #freeAdminLink{flex:none;width:34px;height:34px;max-width:34px;padding:8px}.free-shell #freeAdminLink>span{display:none}.free-shell .free-notification-trigger{width:34px;height:34px;padding:7px}.free-shell .free-account-badge{max-width:122px}.free-shell .free-account-badge strong{max-width:70px}.free-notification-panel{padding:11px}.free-notification-heading{gap:7px}.free-notification-heading .text-button{padding-inline:3px}}
@media(max-width:360px){.free-shell .free-account-badge{max-width:108px}.free-shell .free-account-badge strong{max-width:56px}}
@media(prefers-reduced-motion:reduce){.free-entry.is-notification-target{animation:none;outline:2px solid #a78bfa66;outline-offset:4px}}
/* Keep online counters and the new bell visible at tablet widths. */
@media(max-width:1100px){.free-shell .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;height:auto;min-height:56px;gap:7px 8px;padding:7px 10px}.free-shell .brand{grid-column:1;grid-row:1}.free-shell .brand-copy>span{display:none}.free-shell .top-actions{grid-column:2;grid-row:1;justify-self:end}.free-shell .free-online-stats{grid-column:1/-1;grid-row:2;flex-wrap:wrap;gap:6px}}
@media(max-width:360px){.free-shell .brand-copy{display:none}}


.free-shell #freeNotificationBadge{font-size:12px!important;line-height:16px}

#freeNotificationPanel .free-notification-item{flex:none}
#freeNotificationPanel .free-notification-item time{font-size:12px!important;line-height:1.5}

/* Full timestamps may wrap onto another header row on narrow screens. */
#roomMessages .free-person{flex-wrap:wrap}
#roomMessages .free-person time{flex-shrink:0;font-size:12px;white-space:nowrap}

/* Read a quoted message without moving the shared room underneath it. */
.free-quoted-message{box-sizing:border-box;width:min(560px,calc(100vw - 32px));max-width:none;max-height:min(720px,calc(100dvh - 32px));min-height:0;margin:auto;padding:0;border:1px solid #b9a7ed30;border-radius:18px;background:linear-gradient(145deg,#1c1b27,#111219);color:#e9e5f1;box-shadow:0 24px 70px #0008;overflow:hidden;text-align:left}
.free-quoted-message[open]{display:flex;flex-direction:column}.free-quoted-message::backdrop{background:#05060ba6;backdrop-filter:blur(4px)}
.free-quoted-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 20px;border-bottom:1px solid #ffffff0b;flex:none}.free-quoted-heading>div{min-width:0}.free-quoted-heading h2{margin:0;color:#ece7f8;font-size:15px;font-weight:750;line-height:1.5;overflow-wrap:anywhere}
#freeQuotedTime{margin-top:4px}#freeQuotedTime time{font-size:12px!important;line-height:1.5;color:#9891a8;white-space:normal}.free-quoted-heading>.icon-button{flex:none;width:32px;height:32px;padding:7px}.free-quoted-heading svg{width:18px;height:18px}
.free-quoted-scroll{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:18px 20px;scroll-behavior:auto}.free-quoted-text{margin:0;color:#ded9e8;font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.free-quoted-status{margin:0;color:#aaa4b8;font-size:14px;line-height:1.7}.free-quoted-status:not([hidden])+#freeQuotedRetry:not([hidden]){margin-top:12px}
.free-quoted-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding:14px 20px;border-top:1px solid #ffffff0b;flex:none}.free-quoted-actions[hidden]{display:none}.free-quoted-actions>.top-button{display:inline-flex;align-items:center;gap:7px;min-height:38px;font-size:14px}.free-quoted-actions svg{width:16px;height:16px}.free-quoted-actions>#freeQuotedReply{background:#8b5cf61a;border-color:#a78bfa35;color:#ddd0ff}
.free-quoted-references{flex:none;min-width:0;margin:0;padding:12px 20px 14px;border-top:1px solid #ffffff0b}.free-quoted-references[hidden]{display:none}.free-quoted-references>strong{display:block;margin-bottom:10px;color:#b8b0c7;font-size:14px;font-weight:600}.free-quoted-reference-list{display:grid;grid-auto-flow:column;grid-auto-columns:80px;gap:8px;overflow-x:auto;overflow-y:hidden;padding:2px 2px 6px;overscroll-behavior-x:contain;scrollbar-width:thin}.free-quoted-reference-list:focus-visible{outline:1px solid #c4b5fd80;outline-offset:2px;border-radius:5px}.free-quoted-thumbnail{display:block;position:relative;box-sizing:border-box;width:100%;aspect-ratio:4/3;margin:0;padding:0;border:1px solid #ffffff14;border-radius:8px;background:#0d0e14;overflow:hidden;cursor:pointer}.free-quoted-thumbnail img{display:block;width:100%;height:100%;object-fit:cover}.free-quoted-thumbnail img[hidden]{display:none}.free-quoted-thumbnail>span{padding:5px;font-size:12px!important;color:#9c96aa}.free-quoted-thumbnail>span[hidden]{display:none}.free-quoted-thumbnail:focus-visible{outline:2px solid #c4b5fd;outline-offset:2px}.free-quoted-thumbnail:not(:disabled):hover{border-color:#c4b5fd88}
@media(max-width:400px){.free-quoted-heading,.free-quoted-scroll{padding:15px}.free-quoted-references{padding:10px 15px 12px}.free-quoted-actions{padding:12px 15px}.free-quoted-actions>.top-button{flex:1;justify-content:center}}

@media(max-height:480px){.free-quoted-heading{padding:10px 15px}.free-quoted-scroll{padding:12px 15px}.free-quoted-references{padding:8px 15px}.free-quoted-references>strong{margin-bottom:6px}.free-quoted-reference-list{grid-auto-columns:64px}.free-quoted-actions{padding:8px 15px}.free-quoted-actions>.top-button{min-height:34px}}

/* Named replies and a compact, accessible copy control in the source reader. */
#freeQuotedReplyName,#freeMessageReplyName{font-size:inherit;font-weight:800}
.free-quoted-actions>#freeQuotedReply,.free-message-action-list>#freeMessageReply{min-width:0;font-weight:500}
#freeQuotedReply>span,#freeMessageReply>span{min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:left}
.free-quoted-actions>#freeQuotedCopy{flex:none;width:38px;height:38px;min-width:38px;padding:10px;justify-content:center}
@media(max-height:480px){.free-quoted-actions>#freeQuotedCopy{width:34px;height:34px;min-width:34px;padding:8px}}

/* Keep a subtle scrollbar rail visible even for a short notification list. */
.free-notification-scroll{position:relative;display:flex;flex-direction:column;min-height:0}
.free-notification-scroll::before{content:"";position:absolute;top:3px;bottom:3px;right:4px;width:6px;border-radius:999px;background:rgba(255,255,255,.035);box-shadow:inset 0 0 0 1px rgba(255,255,255,.012);pointer-events:none}
.free-notification-scroll>.free-notification-list{position:relative;z-index:1}
.free-notification-list::-webkit-scrollbar{width:6px}
.free-notification-list::-webkit-scrollbar-track{background:transparent;border-radius:999px}
.free-notification-list::-webkit-scrollbar-thumb{background:rgba(196,181,253,.4);border-radius:999px}
.free-notification-list::-webkit-scrollbar-thumb:hover{background:rgba(196,181,253,.65)}
