/* Modern chat presentation. Viewport sizing, scroll ownership and drawers stay intact. */
body.chat-active {
  --chat-panel:#15121c; --chat-panel-soft:#211a2b; --chat-canvas:#100e16;
  --chat-line:#2b2435; --chat-muted:#b2a6c0; --chat-text:#f4eef8;
  --chat-pink:#eda5d0; --chat-highlight:#322039; --chat-own:#2d1927;
  --chat-gender-name:#d1c8d7; --chat-gender-bg:#211c29; --chat-gender-avatar:#302736;
}
html[data-theme="light"] body.chat-active {
  --chat-panel:#f7f3fa; --chat-panel-soft:#eee6f4; --chat-canvas:#fff;
  --chat-line:#e4dbe9; --chat-muted:#6d607a; --chat-text:#302336;
  --chat-pink:#a52d69; --chat-highlight:#f0e0ee; --chat-own:#f8e5ee;
  --chat-gender-name:#625269; --chat-gender-bg:#f0ebf4; --chat-gender-avatar:#e5dbe9;
}
body.chat-active #chat-section { padding:12px 0!important; }
body.chat-active #chat-layout {gap:0!important;border:1px solid var(--chat-line);border-radius:18px;background:var(--chat-canvas);}
body.chat-active #chat-section :is(.chat-shell,.chat-sidebar){border:0!important;border-radius:0!important;box-shadow:none!important;}
body.chat-active #chat-section .chat-shell{background:var(--chat-canvas)!important;}
body.chat-active #chat-section .left-sidebar-stack{gap:0;background:var(--chat-panel);border-radius:18px 0 0 18px;overflow:hidden;}
body.chat-active #chat-section .room-sidebar{background:var(--chat-panel)!important;}
body.chat-active #chat-section .member-sidebar{background:var(--chat-panel)!important;border-left:1px solid var(--chat-line)!important;border-radius:0 18px 18px 0!important;}
body.chat-active #chat-section .chat-shell{border-inline:1px solid var(--chat-line)!important;}
body.chat-active #chat-section .chat-header{background:var(--chat-canvas)!important;padding:24px!important;border-bottom:1px solid var(--chat-line);box-shadow:none!important;}
body.chat-active #chat-section .chat-header h2{color:var(--chat-text)!important;font-size:1.55rem!important;letter-spacing:-.035em;}
body.chat-active #chat-section :is(.chat-header,.sidebar-heading) .eyebrow{color:var(--chat-muted);font-size:.625rem;letter-spacing:.12em;font-weight:500;}
body.chat-active #chat-section .chat-bio-help{display:none;}
body.chat-active #chat-section .chat-header-actions .button--ghost{border:0;background:var(--chat-panel-soft);border-radius:22px;}
body.chat-active #chat-section .online-pill{border:0;background:var(--chat-panel-soft);border-radius:22px;}
body.chat-active #chat-section .system-banner{margin:12px 20px 0;padding:10px 12px;border:0;border-radius:10px;background:var(--chat-panel-soft);font-size:.75rem;}
body.chat-active #chat-section .system-banner strong{color:var(--chat-pink);}
body.chat-active #chat-section .message-list{padding:24px;background:var(--chat-canvas);}
body.chat-active #chat-section .message{gap:12px;margin-bottom:24px;grid-template-columns:36px minmax(0,1fr);}
body.chat-active #chat-section .message--mine{grid-template-columns:minmax(0,1fr) 36px;}
body.chat-active #chat-section :is(.message-avatar,.member-avatar){border-radius:50%;background:var(--chat-gender-avatar);color:var(--chat-gender-name);}
body.chat-active #chat-section .message-avatar{width:36px;height:36px;font-weight:500;}
body.chat-active #chat-section .message-meta{gap:5px 8px;font-size:.6875rem;align-items:center;margin-bottom:6px;}
body.chat-active #chat-section .message-meta>strong{font-size:.8125rem;font-weight:600;color:var(--chat-gender-name)!important;}
body.chat-active #chat-section .message-bubble:not(.message-bubble--boosted){border:0!important;border-radius:12px;background:var(--chat-gender-bg)!important;color:var(--chat-text);padding:11px 14px;box-shadow:none;line-height:1.6;max-width:min(680px,100%);}
body.chat-active #chat-section .message--mine .message-bubble:not(.message-bubble--boosted){border-radius:16px 16px 4px 16px;}
body.chat-active #chat-section .message:has(+.message--continued),body.chat-active #chat-section .message--continued{margin-bottom:6px;}
body.chat-active #chat-section [data-chat-gender="woman"]{--chat-gender-name:#f4a6ce;--chat-gender-bg:#2d1927;--chat-gender-avatar:#553048;}
body.chat-active #chat-section [data-chat-gender="man"]{--chat-gender-name:#9fcaff;--chat-gender-bg:#172334;--chat-gender-avatar:#283d59;}
body.chat-active #chat-section [data-chat-gender="non_binary"]{--chat-gender-name:#d0b0ff;--chat-gender-bg:#251b35;--chat-gender-avatar:#463159;}
body.chat-active #chat-section [data-chat-gender="trans"]{--chat-gender-name:#cda8f5;--chat-gender-bg:#271d32;--chat-gender-avatar:#443053;}
body.chat-active #chat-section [data-chat-gender="couples"]{--chat-gender-name:#ecc486;--chat-gender-bg:#302619;--chat-gender-avatar:#4d3b27;}
html[data-theme="light"] body.chat-active #chat-section [data-chat-gender="woman"]{--chat-gender-name:#a62f66;--chat-gender-bg:#f9e8f0;--chat-gender-avatar:#f1cfdf;}
html[data-theme="light"] body.chat-active #chat-section [data-chat-gender="man"]{--chat-gender-name:#2367a2;--chat-gender-bg:#e9f2fd;--chat-gender-avatar:#cadff3;}
html[data-theme="light"] body.chat-active #chat-section [data-chat-gender="non_binary"]{--chat-gender-name:#7442a5;--chat-gender-bg:#f0e8fa;--chat-gender-avatar:#dfcff0;}
html[data-theme="light"] body.chat-active #chat-section [data-chat-gender="trans"]{--chat-gender-name:#7743a6;--chat-gender-bg:#f0e8f7;--chat-gender-avatar:#e2d0ec;}
html[data-theme="light"] body.chat-active #chat-section [data-chat-gender="couples"]{--chat-gender-name:#825e1e;--chat-gender-bg:#faf0df;--chat-gender-avatar:#efdfc6;}
body.chat-active #chat-section .member-name{color:var(--chat-gender-name)!important;font-weight:500;}
body.chat-active #chat-section :is(.identity-name--non_binary,.identity-age--non_binary b){color:#d0b0ff!important;}
html[data-theme="light"] body.chat-active #chat-section :is(.identity-name--non_binary,.identity-age--non_binary b){color:#7442a5!important;}
body.chat-active #chat-section .sidebar-heading{border:0;padding:24px 18px 18px;min-height:86px;}
body.chat-active #chat-section .sidebar-heading h2{font-size:1rem;letter-spacing:-.02em;}
body.chat-active #chat-section .room-list{gap:4px;padding:0 10px 12px;}
body.chat-active #chat-section .room-button{background:transparent!important;border:0!important;border-radius:12px;box-shadow:none!important;min-height:62px;padding:12px 10px;}
body.chat-active #chat-section .room-button.is-active{background:var(--chat-highlight)!important;border:0!important;box-shadow:none!important;}
body.chat-active #chat-section .room-icon{background:transparent!important;border:0!important;color:var(--chat-muted)!important;border-radius:9px;}
body.chat-active #chat-section .room-button.is-active .room-icon{color:var(--chat-pink)!important;background:var(--chat-panel-soft)!important;}
body.chat-active #chat-section .room-copy strong{font-size:.8125rem;font-weight:500;white-space:normal;overflow-wrap:anywhere;}
body.chat-active #chat-section .room-copy small{font-size:.6875rem;}
body.chat-active #chat-section .chat-tools{padding:12px;gap:6px;}
body.chat-active #chat-section .chat-tools :is(a,button){border:0;background:transparent;font-size:.6875rem;}
body.chat-active #chat-section .sidebar-note{border:0;color:var(--chat-muted);}
body.chat-active #chat-section #chat-staff-contact{background:var(--chat-panel-soft);border:0;border-radius:12px;margin-inline:12px;}
body.chat-active #chat-section #dm-inbox-open{background:var(--chat-panel-soft);border:0;border-radius:12px;font-weight:500;}
body.chat-active #chat-section .member-item{padding-block:12px;}
body.chat-active #chat-section .member-avatar{width:32px;height:32px;}
body.chat-active #chat-section .chat-ad{border:0;border-radius:0;background:var(--chat-panel);box-shadow:none;}
body.chat-active #chat-section .composer{width:calc(100% - 36px)!important;border:1px solid var(--chat-line);border-radius:18px;margin:0 18px 4px;padding:7px 8px;background:var(--chat-panel-soft);gap:6px;}
body.chat-active #chat-section #message-input{border:0;background:transparent;border-radius:10px;box-shadow:none;min-height:44px;font-size:1rem;padding:10px;}
body.chat-active #chat-section #message-send{border-radius:12px;background:#dc3788;min-height:44px;padding-inline:16px;font-size:.8125rem;font-weight:600;}
body.chat-active #chat-section #message-boost{border:0;background:transparent;color:var(--chat-pink);border-radius:12px;box-shadow:none;}
body.chat-active #chat-section .chat-footnote{background:var(--chat-canvas);font-size:.625rem;padding:6px 18px 12px;}
body.chat-active #chat-section .chat-message-actions{margin-left:auto;color:var(--chat-muted);}
body.chat-active #chat-section .message--mine .chat-message-actions{margin-left:0;}
body.chat-active #chat-section .chat-message-actions summary{list-style:none;min-width:30px;min-height:30px;display:grid;place-items:center;border-radius:8px;font-size:1.25rem;cursor:pointer;}
body.chat-active #chat-section .chat-message-actions summary::-webkit-details-marker{display:none;}
body.chat-active #chat-section .chat-message-actions summary:hover{background:var(--chat-panel-soft);}
body.chat-active #chat-section .chat-message-actions[open]{flex-basis:100%;margin:0;}
body.chat-active #chat-section .chat-message-actions[open] summary{margin-left:auto;width:30px;}
body.chat-active #chat-section .chat-message-action-panel{display:flex;flex-wrap:wrap;gap:6px;padding:8px;border-radius:10px;background:var(--chat-panel-soft);border:1px solid var(--chat-line);}
body.chat-active #chat-section .chat-message-action-panel button{min-height:36px;width:auto;display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:8px;font-size:.75rem;white-space:normal;}
body.chat-active #chat-section .chat-message-actions:not([open]) .chat-message-action-panel{display:none;}
@media(min-width:1181px){body.chat-active #chat-layout{grid-template-columns:220px minmax(0,1fr) 235px;}}
@media(max-width:1180px){
 body.chat-active #chat-section .left-sidebar-stack{border-radius:0;overflow-y:auto;}
 body.chat-active #chat-section .member-sidebar{border-radius:0!important;}
 body.chat-active #chat-section .chat-shell{border:0!important;border-radius:18px!important;}
 body.chat-active #chat-section .chat-header{padding:16px 20px!important;}
}
@media(max-width:760px){
 body.chat-active #chat-section{width:calc(100% - 12px)!important;padding:6px 0!important;}
 body.chat-active #chat-layout{border-radius:14px;}
 body.chat-active #chat-section .chat-shell{border-radius:14px!important;}
 body.chat-active #chat-section .chat-header{padding:10px 12px!important;gap:8px!important;}
 body.chat-active #chat-section .chat-header h2{font-size:1.1rem!important;}
 body.chat-active #chat-section .system-banner{margin:6px 10px 0;padding:7px 9px;font-size:.6875rem;}
 body.chat-active #chat-section .message-list{padding:16px 12px;}
 body.chat-active #chat-section .message{grid-template-columns:30px minmax(0,1fr);gap:8px;margin-bottom:18px;}
 body.chat-active #chat-section .message--mine{grid-template-columns:minmax(0,1fr) 30px;}
 body.chat-active #chat-section .message-avatar{width:30px;height:30px;}
 body.chat-active #chat-section .message-bubble:not(.message-bubble--boosted){font-size:.875rem;padding:9px 11px;}
 body.chat-active #chat-section .composer{width:calc(100% - 16px)!important;margin:0 8px 3px;padding:5px;border-radius:14px;gap:4px;}
 body.chat-active #chat-section #message-input{padding:10px 6px;font-size:16px;min-width:0;}
 body.chat-active #chat-section #message-send{min-width:68px;padding-inline:10px;}
 body.chat-active #chat-section .composer-actions{gap:3px;align-items:center;}
 body.chat-active #chat-section #message-boost{padding-inline:6px;font-size:.6875rem;}
 body.chat-active #chat-section .chat-footnote{font-size:.625rem;padding:5px 10px max(8px,env(safe-area-inset-bottom));}
 body.chat-active #chat-section .chat-message-actions summary{min-width:36px;min-height:36px;}
 body.chat-active #chat-section .chat-message-action-panel button{min-height:44px;}
}
@media(max-height:520px){body.chat-active #chat-section .chat-header{padding:6px 10px!important;}body.chat-active #chat-section .system-banner{display:none!important;}body.chat-active #chat-section .composer{margin-bottom:3px;}}
@media(prefers-reduced-motion:reduce){body.chat-active #chat-section *{scroll-behavior:auto;}}

/* Compact identity menu; shared actions and server permissions are unchanged. */
body.chat-active .user-action-sheet{width:min(410px,calc(100vw - 24px));padding:0;max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #e9ccf52e;border-radius:24px;background:linear-gradient(145deg,#35233be8,#17121feb);color:var(--chat-text);box-shadow:0 24px 80px #0008;backdrop-filter:blur(24px) saturate(125%);-webkit-backdrop-filter:blur(24px) saturate(125%)}
body.chat-active .user-action-sheet::backdrop{background:#09060e70;backdrop-filter:blur(3px)}
body.chat-active .user-action-head{display:grid;grid-template-columns:52px minmax(0,1fr)32px;gap:12px;align-items:center;padding:20px;border-bottom:1px solid #ffffff12}
body.chat-active .user-action-avatar{width:52px;height:52px;border-radius:16px;overflow:hidden;display:grid;place-items:center;background:linear-gradient(145deg,#825577,#423351);color:#fff;font-size:18px;border:1px solid #ffffff21}
body.chat-active .chat-profile-avatar{width:100%;height:100%;object-fit:cover;border-radius:inherit;margin:0;display:block}
body.chat-active .user-action-copy{min-width:0;gap:7px}
body.chat-active .user-action-copy h3{margin:0;font-size:18px;line-height:1.25;overflow-wrap:anywhere;color:var(--chat-text)}
body.chat-active .user-action-close{margin:0;width:32px;height:32px;display:grid;place-items:center;padding:0;border-radius:50%;border:1px solid #ffffff1c;background:#ffffff07;color:var(--chat-muted);font-size:24px;line-height:1;cursor:pointer}
body.chat-active .chat-profile-meta{display:flex;flex-wrap:wrap;gap:5px;font-size:11px;color:var(--chat-muted);line-height:1.5}
body.chat-active .chat-profile-chip{display:inline-flex;align-items:center;gap:4px;max-width:100%;overflow-wrap:anywhere;background:#ffffff06;border:1px solid #ffffff10;border-radius:6px;padding:2px 6px}
body.chat-active .chat-profile-card{padding:14px 20px;margin:0;border:0;border-radius:0;background:transparent;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
body.chat-active .chat-profile-card p{margin:0}
body.chat-active .chat-profile-bio{color:var(--chat-muted);white-space:pre-wrap}
body.chat-active .chat-profile-unavailable{font-size:12px;color:var(--chat-muted);padding-bottom:0}
body.chat-active .user-action-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:16px}
body.chat-active .user-action-sheet .user-action-button{min-height:44px;width:100%;box-sizing:border-box;display:flex;align-items:center;gap:8px;border:1px solid #ffffff13;border-radius:12px;background:#ffffff04;color:var(--chat-text);padding:10px 12px;font-size:13px;line-height:1.4;cursor:pointer;white-space:normal;text-align:left}
body.chat-active .user-action-sheet .user-action-button:hover{background:#ffffff0e;border-color:#eda5d042}
body.chat-active .user-action-sheet .user-action-button[data-action="private"]{background:linear-gradient(135deg,#b82e72,#963365);color:#fff;border-color:#eaa0c12e}
body.chat-active .user-action-sheet .user-action-button[data-action="block"],body.chat-active .user-action-sheet .user-action-button[data-action="report"]{color:#d4a6bb}
body.chat-active .user-action-icon{font-size:18px;line-height:1;width:19px;text-align:center;flex:none;color:inherit}
body.chat-active .user-action-sheet>.user-action-button,body.chat-active .user-action-sheet>button{margin:0 16px 16px;width:calc(100% - 32px)}
body.chat-active .user-action-status:empty{display:none}
body.chat-active .user-action-status{margin:0;padding:0 20px 16px;color:var(--chat-muted);font-size:12px;line-height:1.5}
body.chat-active .user-action-sheet button:focus-visible{outline:2px solid #eda5d0;outline-offset:3px}
body.chat-active .user-action-sheet button:disabled{opacity:.45;cursor:default}
body.chat-active .user-action-sheet [hidden]{display:none!important}
html[data-theme="light"] body.chat-active .user-action-sheet{background:linear-gradient(145deg,#ffffffee,#f1e8f6ed);border-color:#d4c0de}
html[data-theme="light"] body.chat-active .user-action-head{border-color:#40205014}
html[data-theme="light"] body.chat-active .chat-profile-chip,html[data-theme="light"] body.chat-active .user-action-close,html[data-theme="light"] body.chat-active .user-action-sheet .user-action-button{background:#69437b06;border-color:#69437b1f}
html[data-theme="light"] body.chat-active .user-action-sheet .user-action-button[data-action="private"]{background:linear-gradient(135deg,#b82e72,#963365);color:#fff}
html[data-theme="light"] body.chat-active .user-action-sheet .user-action-button[data-action="block"],html[data-theme="light"] body.chat-active .user-action-sheet .user-action-button[data-action="report"]{color:#8f3961}
@media(max-width:420px){body.chat-active .user-action-head{padding:16px;gap:10px}body.chat-active .user-action-list{padding:12px;gap:6px}body.chat-active .user-action-sheet .user-action-button{padding:10px;font-size:12px}}

body.chat-active .chat-profile-chip .identity-ages{font-size:inherit;line-height:inherit;}

/* Chat settings: clear bio source and compact groups. */
#chat-preferences-dialog{width:min(480px,calc(100vw - 24px));box-sizing:border-box;max-height:calc(100dvh - 24px);overflow:auto;padding:0;border:1px solid #e9ccf52e;border-radius:24px;background:linear-gradient(145deg,#35233bf0,#17121ff2);color:var(--chat-text,#f4eef8);box-shadow:0 24px 80px #0008;backdrop-filter:blur(24px) saturate(125%);-webkit-backdrop-filter:blur(24px) saturate(125%)}
#chat-preferences-dialog::backdrop{background:#09060e70;backdrop-filter:blur(3px)}
#chat-preferences-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 20px;margin:0;border-bottom:1px solid #ffffff12}
#chat-preferences-title{font-size:20px;line-height:1.3;margin:0;color:inherit}
#chat-preferences-close{width:32px;height:32px;padding:0;margin:0;flex:none;display:grid;place-items:center;border:1px solid #ffffff1c;border-radius:50%;background:#ffffff07;color:var(--chat-muted,#b2a6c0);font-size:24px;line-height:1;cursor:pointer}
#chat-preferences-form{padding:0;margin:0;display:block}
#chat-preferences-form .chat-settings-group{margin:12px 16px;padding:14px;border:1px solid #ffffff10;border-radius:16px;background:#ffffff03}
#chat-preferences-form h3{font-size:13px;color:var(--chat-text,#f4eef8);margin:0 0 8px;font-weight:650;line-height:1.4}
#chat-preferences-form label{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 0;margin:0;border:0;color:var(--chat-text,#f4eef8);font-size:13px;font-weight:400;line-height:1.5}
#chat-preferences-form label>span{min-width:0}
#chat-preferences-form input[type="checkbox"]{margin:0;flex:none}
#chat-preferences-form .chat-settings-note{margin:4px 0 0;font-size:12px;line-height:1.6;color:var(--chat-muted,#b2a6c0)}
#chat-preferences-form .chat-bio-field,#chat-preferences-form .chat-settings-select{flex-direction:column;align-items:stretch;gap:8px}
#chat-preferences-form textarea{min-height:90px;width:100%;box-sizing:border-box;resize:vertical;font:inherit;font-size:13px;line-height:1.6;border:1px solid #ffffff18;border-radius:12px;background:#100c1680;color:var(--chat-text,#f4eef8);padding:12px;outline-offset:2px}
#chat-preferences-form textarea::placeholder{color:var(--chat-muted,#b2a6c0)}
#chat-preferences-form .chat-settings-count{margin:0;font-size:11px;line-height:1.5;text-align:right;color:var(--chat-muted,#b2a6c0)}
#chat-preferences-form select{width:100%;box-sizing:border-box;padding:10px 12px;min-height:42px;font:inherit;font-size:13px;background:#100c1680;color:var(--chat-text,#f4eef8);border:1px solid #ffffff18;border-radius:12px}
#chat-sound-tools .actions{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 0}
#chat-sound-tools button{min-height:34px;border:1px solid #ffffff15;background:#ffffff04;color:var(--chat-muted,#b2a6c0);padding:7px 10px;border-radius:10px;font-size:11px;font-weight:500;box-shadow:none}
#chat-preferences-form .chat-settings-footer{position:sticky;bottom:0;z-index:1;padding:12px 16px 16px;background:#211928f5;border-top:1px solid #ffffff12}
#chat-preferences-status:empty{display:none}
#chat-preferences-status{margin:0 0 10px;font-size:12px;line-height:1.5;color:var(--chat-muted,#b2a6c0)}
#chat-preferences-form [type="submit"]{width:100%;min-height:44px;margin:0;padding:10px 16px;border-radius:12px;border:1px solid #eaa0c12e;background:linear-gradient(135deg,#b82e72,#963365);color:#fff;font-size:13px;box-shadow:none}
#chat-preferences-dialog button:focus-visible,#chat-preferences-dialog textarea:focus-visible,#chat-preferences-dialog select:focus-visible{outline:2px solid #eda5d0;outline-offset:3px}
html[data-theme="light"] #chat-preferences-dialog{background:linear-gradient(145deg,#ffffffee,#f1e8f6ed);border-color:#d4c0de;color:#302336;--chat-text:#302336;--chat-muted:#6d607a}
html[data-theme="light"] #chat-preferences-form .chat-settings-group,html[data-theme="light"] #chat-preferences-dialog>header{border-color:#69437b1f}
html[data-theme="light"] #chat-preferences-form textarea,html[data-theme="light"] #chat-preferences-form select,html[data-theme="light"] #chat-sound-tools button,html[data-theme="light"] #chat-preferences-close{background:#ffffff85;border-color:#69437b1f}
html[data-theme="light"] #chat-preferences-form .chat-settings-footer{background:#f3edf7f5;border-color:#69437b1f}
@media(max-width:420px){#chat-preferences-dialog>header{padding:16px}#chat-preferences-form .chat-settings-group{margin:10px 12px;padding:12px}}

#chat-preferences-dialog{color-scheme:dark;scrollbar-width:thin;scrollbar-color:#76607d transparent;}
#chat-preferences-form .chat-settings-group{padding:12px;}
#chat-preferences-form label{padding:7px 0;}
html[data-theme="light"] #chat-preferences-dialog{color-scheme:light;scrollbar-color:#b19abd transparent;}

/* Reports use the same visual language as the chat identity and settings dialogs. */
#report-dialog{width:min(460px,calc(100vw - 24px));max-height:calc(100dvh - 24px);box-sizing:border-box;overflow:auto;padding:0;border:1px solid #e9ccf52e;border-radius:24px;background:linear-gradient(145deg,#35233bf0,#17121ff2);color:var(--chat-text,#f4eef8);box-shadow:0 24px 80px #0008;backdrop-filter:blur(24px) saturate(125%);-webkit-backdrop-filter:blur(24px) saturate(125%);color-scheme:dark;scrollbar-width:thin;scrollbar-color:#76607d transparent}
#report-dialog::backdrop{background:#09060e70;backdrop-filter:blur(3px)}
#report-form{padding:20px;margin:0;border:0;border-radius:inherit;background:transparent;box-shadow:none}
#report-dialog .dialog-topline{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px}
#report-dialog .eyebrow{display:none}
#report-title{font-size:20px;line-height:1.3;margin:0;color:inherit}
#report-close{width:32px;height:32px;flex:none;padding:0;margin:0;display:grid;place-items:center;border:1px solid #ffffff1c;border-radius:50%;background:#ffffff07;color:var(--chat-muted,#b2a6c0);font-size:24px;line-height:1;cursor:pointer}
#report-target-copy{padding:10px 12px;border:1px solid #ffffff10;border-radius:12px;background:#ffffff04;margin:0 0 18px;color:var(--chat-muted,#b2a6c0);font-size:13px;line-height:1.5;overflow-wrap:anywhere}
#report-form label{display:flex;flex-direction:column;align-items:stretch;gap:7px;margin:0 0 16px;font-size:13px;font-weight:500;color:var(--chat-text,#f4eef8);line-height:1.5}
#report-form input,#report-form select,#report-form textarea{width:100%;box-sizing:border-box;margin:0;padding:11px 12px;border:1px solid #ffffff18;border-radius:12px;background:#100c1680;color:var(--chat-text,#f4eef8);font:inherit;font-size:13px;line-height:1.5;box-shadow:none}
#report-form input[readonly]{color:var(--chat-muted,#b2a6c0)}
#report-form textarea{min-height:104px;resize:vertical}
#report-form textarea::placeholder{color:var(--chat-muted,#b2a6c0);font-size:12px;font-weight:400}
#report-form [type="submit"]{width:100%;min-height:44px;padding:10px 16px;margin:2px 0 0;border:1px solid #eaa0c12e;border-radius:12px;background:linear-gradient(135deg,#b82e72,#963365);color:#fff;font-size:13px;box-shadow:none}
#report-status:empty{display:none}
#report-status{font-size:12px;line-height:1.6;margin:12px 0 0;color:var(--chat-muted,#b2a6c0)}
#report-dialog [hidden]{display:none!important}
#report-dialog button:focus-visible,#report-dialog select:focus-visible,#report-dialog textarea:focus-visible{outline:2px solid #eda5d0;outline-offset:3px}
html[data-theme="light"] #report-dialog{background:linear-gradient(145deg,#ffffffee,#f1e8f6ed);border-color:#d4c0de;color:#302336;--chat-text:#302336;--chat-muted:#6d607a;color-scheme:light;scrollbar-color:#b19abd transparent}
html[data-theme="light"] #report-form input,html[data-theme="light"] #report-form select,html[data-theme="light"] #report-form textarea,html[data-theme="light"] #report-close,html[data-theme="light"] #report-target-copy{background:#ffffff85;border-color:#69437b1f}
@media(max-width:420px){#report-form{padding:16px}}

/* One warm palette for the chat canvas, panels, composer and dialogs. */
body.chat-active{--chat-panel:#241b2d;--chat-panel-soft:#302338;--chat-canvas:#130f1b;--chat-line:#ecd3ff20;--chat-muted:#c0b0cc;--chat-text:#f6effb;--chat-highlight:#68315b;--chat-own:#51243f;--chat-glass:linear-gradient(145deg,#35233bdb,#17121fe8);--chat-header-glass:linear-gradient(120deg,#302037a8,#201827c9);background:radial-gradient(ellipse at 15% 10%,#56233b24,transparent 55%),#100d17}
body.chat-active #chat-layout{background:radial-gradient(ellipse at 15% 5%,#38204035,transparent 65%),var(--chat-canvas);border-color:var(--chat-line);box-shadow:0 18px 60px #0002}
body.chat-active #chat-section .left-sidebar-stack,body.chat-active #chat-section .member-sidebar{background:var(--chat-glass)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
body.chat-active #chat-section .room-sidebar,body.chat-active #chat-section .chat-ad{background:transparent!important}
body.chat-active #chat-section .chat-shell{background:transparent!important}
body.chat-active #chat-section .chat-header{background:var(--chat-header-glass)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
body.chat-active #chat-section .message-list{background:transparent;padding:20px 24px}
body.chat-active #chat-section .message{grid-template-columns:40px minmax(0,1fr);margin-bottom:20px}
body.chat-active #chat-section .message--mine{grid-template-columns:minmax(0,1fr)40px}
body.chat-active #chat-section .message-avatar{width:40px;height:40px}
body.chat-active #chat-section .message-meta{font-size:12px;gap:5px 8px}
body.chat-active #chat-section .message-meta>strong{font-size:14px}
body.chat-active #chat-section .message-bubble:not(.message-bubble--boosted){font-size:14px;border:1px solid #ffffff09!important;border-radius:14px;line-height:1.6;background:linear-gradient(135deg,var(--chat-gender-bg),color-mix(in srgb,var(--chat-gender-bg) 82%,var(--chat-canvas)))!important;box-shadow:0 3px 12px #0000000a}
body.chat-active #chat-section [data-chat-gender="man"]{--chat-gender-bg:#29263c;--chat-gender-name:#9fcaff}
body.chat-active #chat-section [data-chat-gender="woman"]{--chat-gender-bg:#332339;--chat-gender-name:#f4a6ce}
body.chat-active #chat-section [data-chat-gender="couples"]{--chat-gender-bg:#302735}
body.chat-active #chat-section .message--mine .message-bubble:not(.message-bubble--boosted){background:linear-gradient(135deg,#5b2947,#44203a)!important;border-color:#e5a5c419!important}
body.chat-active #chat-section .room-button.is-active{background:linear-gradient(135deg,#6d335e,#44233f)!important}
body.chat-active #chat-section .room-icon{border:1px solid var(--chat-line)!important;border-radius:50%;width:36px;height:36px}
body.chat-active #chat-section .room-copy strong{font-size:14px}
body.chat-active #chat-section .room-copy small,body.chat-active #chat-section .member-location{font-size:12px;color:var(--chat-muted)}
body.chat-active #chat-section .member-name{font-size:13px}
body.chat-active #chat-section .member-avatar{width:36px;height:36px}
body.chat-active #chat-section .chat-header-actions .button--ghost,body.chat-active #chat-section .online-pill,body.chat-active #chat-section #chat-staff-contact,body.chat-active #chat-section #dm-inbox-open{background:linear-gradient(135deg,#39294080,#261d3299);border:1px solid var(--chat-line)}
body.chat-active #chat-section .system-banner{background:linear-gradient(135deg,#39294080,#261d3299);border:1px solid var(--chat-line);font-size:12px}
body.chat-active #chat-section .composer{background:var(--chat-header-glass);border-color:var(--chat-line);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
body.chat-active #chat-section #message-send{background:linear-gradient(135deg,#cd3488,#af2d73);border:1px solid #f2b3d228}
body.chat-active #chat-section .chat-footnote{background:transparent;font-size:11px;color:var(--chat-muted)}

body.chat-active #chat-section .composer.has-emoji-picker{position:relative;grid-template-columns:44px minmax(0,1fr)auto!important}
.chat-emoji-toggle{width:44px;min-height:44px;padding:0;display:grid;place-items:center;border:1px solid var(--chat-line,#ecd3ff20);border-radius:12px;background:#ffffff04;color:var(--chat-pink,#eda5d0);cursor:pointer;align-self:center}
.chat-emoji-toggle:hover,.chat-emoji-toggle[aria-expanded="true"]{background:#eda5d016}
.chat-emoji-picker{position:absolute;z-index:30;bottom:calc(100% + 10px);left:0;display:grid;grid-template-columns:repeat(6,40px);gap:2px;padding:10px;width:max-content;max-width:100%;box-sizing:border-box;border:1px solid var(--chat-line,#ecd3ff20);border-radius:18px;background:linear-gradient(145deg,#35233bf5,#17121ff8);color:var(--chat-text,#f4eef8);box-shadow:0 16px 45px #0006;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.chat-emoji-picker[hidden]{display:none!important}
.chat-emoji-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;font-size:12px;padding:2px 4px 6px;color:var(--chat-muted,#c0b0cc)}
.chat-emoji-heading button{width:30px;height:30px;padding:0;border:0;border-radius:50%;background:#ffffff05;color:inherit;font-size:21px;cursor:pointer}
.chat-emoji-choice{width:40px;height:40px;min-width:0;min-height:0;padding:0;display:grid;place-items:center;border:0;border-radius:10px;background:transparent;font-size:23px;line-height:1;cursor:pointer}
.chat-emoji-choice:hover{background:#ffffff0c}
.chat-emoji-picker button:focus-visible,.chat-emoji-toggle:focus-visible{outline:2px solid var(--chat-pink,#eda5d0);outline-offset:2px}
#dm-form.has-emoji-picker{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr)auto;gap:8px;align-items:center}
#dm-form.has-emoji-picker #dm-input{min-width:0;width:100%;box-sizing:border-box}
html[data-theme="light"] body.chat-active{--chat-panel:#f7f0fa;--chat-panel-soft:#eee2f2;--chat-canvas:#fcf8fd;--chat-line:#68417425;--chat-muted:#6d607a;--chat-text:#302336;--chat-highlight:#ecd2e8;--chat-glass:linear-gradient(145deg,#ffffffeb,#efe3f3ed);--chat-header-glass:linear-gradient(120deg,#f6edf9e0,#efe4f4e6);background:radial-gradient(ellipse at 15% 10%,#edc9e63b,transparent 55%),#f6f0f8}
html[data-theme="light"] body.chat-active #chat-section [data-chat-gender="man"]{--chat-gender-name:#2367a2;--chat-gender-bg:#eeeafa}
html[data-theme="light"] body.chat-active #chat-section [data-chat-gender="woman"]{--chat-gender-name:#a62f66;--chat-gender-bg:#f6e9f3}
html[data-theme="light"] body.chat-active #chat-section [data-chat-gender="couples"]{--chat-gender-bg:#f6eee6}
html[data-theme="light"] body.chat-active #chat-section .message--mine .message-bubble:not(.message-bubble--boosted){background:linear-gradient(135deg,#f1d8e7,#f6e5f0)!important;border-color:#ab588024!important}
html[data-theme="light"] body.chat-active #chat-section .room-button.is-active{background:linear-gradient(135deg,#ead0e5,#f0e0ee)!important}
html[data-theme="light"] body.chat-active #chat-section .chat-header-actions .button--ghost,html[data-theme="light"] body.chat-active #chat-section .online-pill,html[data-theme="light"] body.chat-active #chat-section #chat-staff-contact,html[data-theme="light"] body.chat-active #chat-section #dm-inbox-open,html[data-theme="light"] body.chat-active #chat-section .system-banner{background:#ffffff70}
html[data-theme="light"] .chat-emoji-picker{background:linear-gradient(145deg,#fff,#efe3f3);color:#302336;--chat-muted:#6d607a}
html[data-theme="light"] .chat-emoji-choice:hover{background:#69437b10}
@media(max-width:760px){body.chat-active #chat-section .message-list{padding:16px 12px}body.chat-active #chat-section .message{grid-template-columns:32px minmax(0,1fr);gap:8px;margin-bottom:16px}body.chat-active #chat-section .message--mine{grid-template-columns:minmax(0,1fr)32px}body.chat-active #chat-section .message-avatar{width:32px;height:32px}body.chat-active #chat-section .message-meta{font-size:11px}body.chat-active #chat-section .message-meta>strong{font-size:13px}}
@media(max-width:420px){body.chat-active #chat-section .composer.has-emoji-picker{grid-template-columns:40px minmax(0,1fr)auto!important}.chat-emoji-toggle{width:40px}.chat-emoji-picker{grid-template-columns:repeat(6,38px)}.chat-emoji-choice{width:38px;height:42px}#dm-form.has-emoji-picker{grid-template-columns:40px minmax(0,1fr)auto;gap:5px}}

body.chat-active #chat-section .composer.has-emoji-picker>.chat-emoji-toggle{grid-column:1;grid-row:1}
body.chat-active #chat-section .composer.has-emoji-picker>#message-input{grid-column:2;grid-row:1;width:100%;min-width:0;box-sizing:border-box}
body.chat-active #chat-section .composer.has-emoji-picker>.composer-actions{grid-column:3;grid-row:1}
#dm-form.has-emoji-picker>.chat-emoji-toggle{grid-column:1;grid-row:1}
#dm-form.has-emoji-picker>#dm-input{grid-column:2;grid-row:1}
#dm-form.has-emoji-picker>#dm-send{grid-column:3;grid-row:1}

.user-action-list .user-action-advertiser{grid-column:1/-1;display:flex;align-items:center;justify-content:center;text-decoration:none;color:inherit;background:linear-gradient(120deg,#6d335e88,#44233f88)}
body[data-theme="light"] .user-action-list .user-action-advertiser{background:#f0d9e9;color:#3b2439}

body.chat-active #room-access-dialog{max-width:480px;border:1px solid #ecd3ff28;border-radius:22px;background:var(--chat-glass);color:var(--chat-text);box-shadow:0 25px 90px #0008;backdrop-filter:blur(18px)}
body.chat-active #room-access-dialog::backdrop{background:#08050bcc;backdrop-filter:blur(5px)}
body.chat-active #room-access-dialog p,body.chat-active .real-lounge-steps{color:var(--chat-muted);line-height:1.65}
body.chat-active .real-lounge-steps{padding-left:22px;font-size:14px;margin:18px 0}
body.chat-active .real-lounge-steps li+li{margin-top:10px}

#room-access-login[hidden]{display:none!important}

/* Room activity stays visible in the desktop and mobile room list. */
.room-new-badge{flex:none;border-radius:999px;padding:3px 7px;background:#d73584;color:#fff;font-size:10px;font-weight:750;line-height:1.4;white-space:nowrap;box-shadow:0 0 12px #d7358426}.room-button .room-copy{min-width:0}.room-button:has(.room-new-badge) .room-lock{display:none}

/* Keep the avatar track equal to its visible size; let identity badges wrap. */
body.chat-active #chat-section #online-member-list .member-item{
  grid-template-columns:36px minmax(0,1fr) 6px;column-gap:10px;align-items:start;
}
body.chat-active #chat-section #online-member-list .member-avatar{
  width:36px;height:36px;align-self:start;margin-top:2px;
}
body.chat-active #chat-section #online-member-list .member-copy{
  min-width:0;display:grid;gap:3px;align-content:start;
}
body.chat-active #chat-section #online-member-list .member-name{
  display:flex;flex-wrap:wrap;align-items:center;gap:4px;min-width:0;
  white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.4;
}
body.chat-active #chat-section #online-member-list .member-name small{
  margin:0;max-width:100%;white-space:normal;
}
body.chat-active #chat-section #online-member-list .member-region{
  display:block;font-size:11px;line-height:1.4;overflow-wrap:anywhere;
}
body.chat-active #chat-section #online-member-list .identity-ages{
  display:flex;flex-wrap:wrap;gap:4px;line-height:1.4;
}
body.chat-active #chat-section #online-member-list .member-status{
  align-self:start;margin-top:8px;
}

/* Compact member rows: identity above, region and age share one line. */
body.chat-active #chat-section #online-member-list .member-item{padding-block:6px;min-height:0}
body.chat-active #chat-section #online-member-list .member-item + .member-item{margin-top:2px}
body.chat-active #chat-section #online-member-list .member-copy{grid-template-columns:minmax(0,1fr) auto;gap:2px 6px}
body.chat-active #chat-section #online-member-list .member-name{grid-column:1/-1;gap:3px;line-height:1.25}
body.chat-active #chat-section #online-member-list .member-name small{padding:1px 4px;line-height:1.3}
body.chat-active #chat-section #online-member-list .member-region{grid-column:1;grid-row:2;align-self:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:18px}
body.chat-active #chat-section #online-member-list .identity-ages{grid-column:2;grid-row:2;align-items:center;align-self:center;font-size:11px;line-height:18px}
body.chat-active #chat-section #online-member-list .identity-age{display:inline-flex;align-items:center;gap:3px;line-height:18px}
body.chat-active #chat-section #online-member-list .identity-age b{font-size:16px;line-height:1}
body.chat-active #chat-section #online-member-list .member-arrival{grid-column:1/-1}
