/* Chat reference: spacious black surfaces, violet actions and soft motion. */
body .eg-chat-backdrop { display: none !important; }
body .eg-chat { --chat-accent:#9868ff; --chat-surface:#08080d; font-family:'EGTR Profile Reference',Outfit,system-ui,sans-serif; color:#f3f3f6; border:0; box-shadow:none; padding:0; background:#08080d; }
body dialog.eg-chat:not([open]) { display:none !important; }
body dialog.eg-chat[open] { position:fixed; inset:24px; width:min(1450px,calc(100vw - 48px)); height:calc(100dvh - 48px); max-height:none; max-width:none; margin:auto; display:grid; grid-template-columns:320px minmax(0,1fr); border-radius:24px; opacity:1; visibility:visible; transform:none; z-index:1500; animation:chat-reference-in .42s cubic-bezier(.16,1,.3,1); }
body dialog.eg-chat::backdrop { background:#000c; backdrop-filter:blur(10px); animation:chat-reference-shade .3s ease; }
body .eg-chat-list { background:#08080d; padding:24px 18px; border:0; display:flex; flex-direction:column; min-height:0; }
body .eg-chat-my-profile { display:flex; align-items:center; gap:20px; padding:8px 14px 28px; color:#fff; text-decoration:none; }
body .eg-chat-my-profile img { width:54px; height:54px; object-fit:cover; border:2px solid #ffffff24; border-radius:50%; }
body .eg-chat-my-profile strong { font-size:20px; font-weight:600; }
body .eg-chat-notification-tab { display:flex; align-items:center; gap:16px; width:100%; padding:16px 20px; margin:0 0 24px; border:0; border-radius:12px; background:transparent; color:#f4f4f6; font-size:17px; font-weight:600; text-align:left; cursor:pointer; transition:background .2s ease; }
body .eg-chat-notification-tab > span { font-size:24px; }
body .eg-chat-notification-tab:hover,body .eg-chat-notification-tab[aria-pressed=true] { background:#1c1c24; }
body .eg-chat-notification-tab b { display:grid; place-items:center; margin-left:auto; width:23px; height:23px; border-radius:50%; background:#9868ff; color:#fff; font-size:11px; }
body .eg-chat-tools { margin:0 14px 16px; padding-top:20px; border-top:1px solid #ffffff18; }
body .eg-chat-tools h2 { font-size:18px; font-weight:600; }
body .eg-chat-close,body .eg-chat-thread-close { border:0; background:transparent; color:#a1a1ae; font-size:24px; border-radius:50%; width:32px; height:32px; cursor:pointer; }
body .eg-chat-close:hover,body .eg-chat-thread-close:hover { color:#fff; background:#ffffff10; }
body .eg-chat-search { margin:0 8px 14px; width:calc(100% - 16px); border:1px solid #ffffff12; background:#111116; border-radius:22px; color:#ececf4; padding:11px 15px; font-size:13px; }
body .eg-chat-items { min-height:0; overflow-y:auto; scrollbar-width:thin; scrollbar-color:#ffffff24 transparent; }
body .eg-chat-row { gap:16px; padding:17px 12px; margin:2px 0; border:0; border-radius:14px; background:transparent; transition:background .2s ease; }
body .eg-chat-row:hover { background:#ffffff05; }
body .eg-chat-row.selected { background:#18181f; border:0; }
body .eg-chat-row .eg-side-avatar { width:52px; height:52px; font-size:20px; background:#17171f; border:1px solid #ffffff24; }
body .eg-chat-contact-title strong { font-size:17px; font-weight:600; }
body .eg-chat-contact-title time { font-size:12px; color:#a3a3ad; }
body .eg-chat-contact-status { display:none; }
body .eg-chat-contact-preview { margin-top:7px; }
body .eg-chat-contact-preview small { font-size:13px; color:#a7a7b0; }
body .eg-chat-unread { background:#9868ff; color:#fff; }
body .eg-chat-thread { background:#08080d; border:1px solid #ffffff18; border-radius:22px; margin:20px 20px 20px 5px; min-height:0; display:flex; flex-direction:column; overflow:hidden; }
body .eg-chat-thread-head { height:auto; min-height:84px; padding:20px 22px; background:#08080d; border-bottom:1px solid #ffffff0d; }
body .eg-chat-thread-person strong { font-size:20px; }
body .eg-chat-thread-person small { font-size:12px; color:#9696a3; }
body .eg-chat-thread-person .eg-side-avatar { width:44px; height:44px; }
body .eg-chat-body { flex:1; min-height:0; overflow-y:auto; scrollbar-width:thin; scrollbar-color:#ffffff24 transparent; padding:28px; gap:22px; background:#08080d; overscroll-behavior:contain; }
body .eg-chat-message { max-width:92%; gap:12px; }
body .eg-chat-message .eg-chat-bubble { background:#19191f; border:1px solid #ffffff0c; border-radius:17px 17px 17px 5px; padding:12px 16px; color:#f2f2f7; font-size:15px; line-height:1.6; }
body .eg-chat-message.mine .eg-chat-bubble { background:#9868ff23; color:#e8dcff; border-color:#9868ff32; border-radius:17px 17px 5px 17px; }
body .eg-chat-day span { background:#15151b; color:#9696a5; border:1px solid #ffffff09; }
body .eg-chat-message-meta strong { color:#c8c8d4; font-size:12px; }
body .eg-chat-message-meta time { color:#757586; font-size:11px; }
body .eg-chat-form { padding:16px 20px 20px; background:#08080d; border-top:1px solid #ffffff0b; gap:10px; }
body .eg-chat-form input { background:#15151b; border:1px solid #ffffff15; border-radius:24px; font-size:16px; padding:14px 18px; color:white; }
body .eg-chat-form input:focus { border-color:#aa8be5; outline:none; }
body .eg-chat-form button { border:0; background:#9868ff; color:white; border-radius:24px; font-size:14px; padding:0 23px; transition:background .2s,transform .2s; }
body .eg-chat-form button:hover { background:#aa82ff; transform:translateY(-1px); }
body .eg-chat-services { padding:16px 22px 20px; border-bottom:1px solid #ffffff12; }
body .eg-chat-services h3 { font-size:16px; margin:0 0 15px; }
body .eg-chat-services > div { display:flex; gap:12px; overflow-x:auto; scrollbar-width:thin; scrollbar-color:#ffffff20 transparent; padding-bottom:5px; overscroll-behavior:contain; }
body .eg-chat-services a { flex:0 0 135px; display:grid; gap:7px; border:1px solid #ffffff17; border-radius:16px; background:#101015; padding:9px; color:white; text-decoration:none; }
body .eg-chat-services img { width:100%; height:88px; object-fit:cover; border-radius:11px; }
body .eg-chat-services strong { font-size:12px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
body .eg-chat-services small { color:#a5a5b3; font-size:10px; }
body .eg-chat-services a > span { border-radius:20px; text-align:center; padding:8px; color:#ddcfff; background:#9868ff24; font-size:11px; }
body .eg-chat-notifications { margin:20px 20px 20px 5px; padding:27px; border:1px solid #ffffff1c; border-radius:22px; background:#08080d; display:flex; flex-direction:column; min-height:0; }
body .eg-chat.is-notifications .eg-chat-thread { display:none; }
body .eg-chat-notifications > header { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:20px; }
body .eg-chat-notifications h2 { flex:1; margin:0; font-size:24px; font-weight:600; }
body .eg-chat-notifications button { border:0; background:none; color:#a5a5b1; font-size:11px; padding:5px; cursor:pointer; }
body .eg-chat-notifications button:hover { color:#ddcaff; }
body .eg-chat-notifications nav { display:flex; gap:8px; flex-wrap:wrap; }
body .eg-chat-notifications nav button { border-radius:25px; background:#17171d; color:#aaaab5; font-size:13px; font-weight:600; padding:12px 18px; }
body .eg-chat-notifications nav button[aria-pressed=true] { background:#9868ff; color:#fff; }
body .eg-chat-notification-items { overflow-y:auto; scrollbar-width:thin; scrollbar-color:#ffffff24 transparent; margin-top:22px; min-height:0; }
body .eg-chat-notification-items article { display:flex; gap:13px; align-items:center; padding:17px 12px; border-bottom:1px solid #ffffff0e; border-radius:12px; }
body .eg-chat-notification-items article.is-unread { background:#9868ff0c; }
body .eg-chat-notification-items img { width:44px; height:44px; object-fit:cover; border-radius:50%; }
body .eg-chat-notification-items a { flex:1; min-width:0; display:grid; gap:7px; color:#f0f0f5; text-decoration:none; font-size:14px; line-height:1.5; }
body .eg-chat-notification-items time { color:#9696a4; font-size:11px; }
body .eg-chat-notification-items article > button { font-size:22px; }
body .eg-chat-notification-status { color:#818190; text-align:center; font-size:14px; line-height:1.6; margin:auto; padding:30px; }
body .eg-chat-notification-status:empty { display:none; }
body .eg-chat-notification-back { display:none; }
body .eg-chat [hidden] { display:none !important; }
body .eg-chat.eg-chat-embedded { width:100%; height:100%; inset:auto; transform:none; grid-template-columns:290px minmax(0,1fr); }
body .eg-chat.eg-chat-embedded .eg-chat-my-profile { display:none; }
body .eg-chat.eg-chat-embedded .eg-chat-notification-tab { font-size:14px; margin-bottom:10px; }
@keyframes chat-reference-in { from { opacity:0; transform:translateY(16px) scale(.985); } to { opacity:1; transform:none; } }
@keyframes chat-reference-shade { from { opacity:0; } to { opacity:1; } }
@media(max-width:1000px) { body dialog.eg-chat[open] { grid-template-columns:280px minmax(0,1fr); inset:12px; width:calc(100vw - 24px); height:calc(100dvh - 24px); } body .eg-chat-list { padding:20px 10px; } body .eg-chat-row { gap:10px; } body .eg-chat-contact-title strong { font-size:15px; } body .eg-chat-thread { margin:12px 12px 12px 0; } }
@media(max-width:760px) {
body dialog.eg-chat[open],body .eg-chat.eg-chat-embedded { inset:0; width:100%; height:100dvh; max-height:100dvh; border-radius:0; grid-template-columns:minmax(0,1fr); }
body .eg-chat-list { padding:18px 14px; }
body .eg-chat-thread { display:none; margin:8px; border-radius:18px; }
body .eg-chat.has-thread .eg-chat-list,body .eg-chat.is-notifications .eg-chat-list { display:none; }
body .eg-chat.has-thread:not(.is-notifications) .eg-chat-thread { display:flex; }
body .eg-chat-notifications { margin:8px; padding:20px 16px; }
body .eg-chat-notification-back { display:block; font-size:24px !important; }
body .eg-chat-notifications h2 { font-size:22px; }
body .eg-chat-body { padding:20px 13px; }
body .eg-chat-form { padding:12px 12px calc(12px + env(safe-area-inset-bottom)); }
body .eg-chat-form button { padding:0 15px; font-size:13px; }
body .eg-chat-services { padding:12px 15px; }
body .eg-chat-services img { height:65px; }
body .eg-chat-services a { flex-basis:110px; }
}
@media(prefers-reduced-motion:reduce) { body dialog.eg-chat[open],body dialog.eg-chat::backdrop { animation:none; } body .eg-chat * { transition:none !important; } }
/* Conversations live inside the site sidebar, never in a centred modal. */
body .eg-side.is-chat-open { width:min(900px,100vw) !important; z-index:1500; background:#000 !important; box-shadow:18px 0 70px #0008; overflow:hidden; }
body .eg-side.is-chat-open > .eg-side-scroll { display:none; }
body .eg-side.is-chat-open .eg-side-top { border-bottom:1px solid #ffffff16; }
body .eg-side > section.eg-chat { position:absolute; inset:0; height:100%; max-height:none; width:100%; max-width:none; margin:0; padding:0; border:0; border-radius:0; display:grid; grid-template-columns:280px minmax(0,1fr); visibility:hidden; opacity:0; transform:translateX(-16px); pointer-events:none; transition:opacity .28s ease,transform .38s cubic-bezier(.16,1,.3,1),visibility .28s; }
body .eg-side > section.eg-chat.is-open { visibility:visible; opacity:1; transform:none; pointer-events:auto; }
body.eg-chat-open { overflow:auto !important; }
body .eg-side > .eg-chat .eg-chat-list { background:#000; }
body .eg-side > .eg-chat .eg-chat-thread { margin:12px 12px 12px 0; }
body .eg-side > .eg-chat .eg-chat-notifications { margin:12px 12px 12px 0; padding:22px; }
body .eg-side > .eg-chat .eg-chat-my-profile { padding-bottom:18px; }
body .eg-side > .eg-chat .eg-chat-notification-tab { margin-bottom:12px; }
@media(max-width:760px) {
body .eg-side.is-chat-open { width:100vw !important; max-width:100vw !important; }
body .eg-side > section.eg-chat { inset:0; height:100%; grid-template-columns:minmax(0,1fr); }
body .eg-side > .eg-chat .eg-chat-thread,body .eg-side > .eg-chat .eg-chat-notifications { margin:8px; }
}
@media(prefers-reduced-motion:reduce) { body .eg-side > section.eg-chat { transition:none; } }
html body.eg-side-ready aside.eg-side.is-chat-open { width:min(900px,100vw) !important; left:0 !important; right:auto !important; }
@media(max-width:760px) { html body.eg-side-ready aside.eg-side.is-chat-open { inset:0 !important; width:100vw !important; min-width:100vw !important; max-width:100vw !important; } }
html body.eg-side-ready aside.eg-side.is-chat-open { z-index:20000 !important; }

/* Give both chat columns the full height; keep collapse in the profile row. */
html body.eg-side-ready aside.eg-side.is-chat-open { top:0 !important; bottom:0 !important; height:100dvh !important; max-height:100dvh; }
html body.eg-side-ready aside.eg-side.is-chat-open > .eg-side-top { display:none !important; }
html body.eg-side-ready aside.eg-side.is-chat-open .eg-chat-list { position:relative; }
html body.eg-side-ready aside.eg-side.is-chat-open .eg-chat-list > .eg-side-toggle { position:absolute !important; top:35px !important; right:16px !important; left:auto !important; width:30px !important; height:30px !important; display:grid !important; place-items:center; padding:0; border:1px solid #ffffff17; border-radius:50%; background:#ffffff04; color:#bfa7df; z-index:2; }
html body.eg-side-ready aside.eg-side.is-chat-open .eg-chat-list > .eg-side-toggle .eg-menu-lines,html body.eg-side-ready aside.eg-side.is-chat-open .eg-chat-list > .eg-side-toggle:after { display:none !important; }
html body.eg-side-ready aside.eg-side.is-chat-open .eg-chat-list > .eg-side-toggle:before { content:'‹' !important; font:400 27px/1 system-ui,sans-serif; }
body .eg-side.is-chat-open .eg-chat-my-profile { padding-right:38px; }
body .eg-side.is-chat-open .eg-chat-my-profile > img { flex:none; }
body .eg-side.is-chat-open .eg-chat-my-profile > strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* A report stays separate from the message composer and requires an explicit submission. */
body .eg-chat-thread-person > div { flex:1; min-width:0; }
body .eg-chat-thread-person .eg-chat-name { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body .eg-chat-report { flex:none; display:inline-flex; align-items:center; justify-content:center; gap:7px; margin-left:auto; padding:9px 11px; min-height:36px; border:1px solid #ffffff1a; border-radius:20px; background:transparent; color:#aaa6b5; font:inherit; font-size:12px; cursor:pointer; transition:color .2s,background .2s,border-color .2s; }
body .eg-chat-report:hover { color:#f1b0c2; border-color:#ed94b044; background:#ed94b00a; }
body .eg-chat-report:focus-visible { outline:2px solid #c5a7ff; outline-offset:3px; }
body .eg-chat-report-dialog { width:min(460px,calc(100vw - 28px)); max-height:calc(100dvh - 32px); padding:26px; overflow:auto; border:1px solid #ffffff20; border-radius:24px; background:#111116; color:#f3f2f8; font-family:Outfit,system-ui,sans-serif; box-shadow:0 25px 90px #0009; }
body .eg-chat-report-dialog::backdrop { background:#000b; backdrop-filter:blur(6px); }
body .eg-chat-report-dialog header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
body .eg-chat-report-dialog header small { color:#b99aff; font-size:10px; letter-spacing:.13em; }
body .eg-chat-report-dialog h2 { margin:8px 0 0; font-size:23px; line-height:1.3; overflow-wrap:anywhere; }
body .eg-chat-report-dialog [data-report-close] { border:0; border-radius:50%; width:30px; height:30px; background:#ffffff09; color:#aaa6b6; font-size:23px; cursor:pointer; }
body .eg-chat-report-dialog > p { margin:18px 0 22px; color:#a7a3b2; font-size:13px; line-height:1.7; }
body .eg-chat-report-dialog form { display:grid; gap:18px; }
body .eg-chat-report-dialog label { display:grid; gap:8px; font-size:13px; font-weight:500; }
body .eg-chat-report-dialog :is(select,textarea) { width:100%; box-sizing:border-box; border:1px solid #ffffff1b; border-radius:12px; background:#09090d; color:#eeeaf5; padding:12px; font:inherit; font-size:14px; color-scheme:dark; }
body .eg-chat-report-dialog textarea { min-height:110px; resize:vertical; }
body .eg-chat-report-dialog :is(select,textarea):focus { outline:1px solid #a780f0; border-color:#a780f0; }
body .eg-chat-report-dialog form > small { color:#86828f; font-size:11px; line-height:1.6; }
body .eg-chat-report-dialog [type=submit] { border:0; border-radius:22px; padding:13px 18px; background:#9868ff; color:#fff; font:inherit; font-size:13px; font-weight:600; cursor:pointer; }
body .eg-chat-report-dialog [type=submit]:disabled { opacity:.5; cursor:wait; }
body .eg-chat-report-dialog .eg-chat-report-status:empty { display:none; }
body .eg-chat-report-dialog .eg-chat-report-status.is-success { color:#a4e3c3; }
body .eg-chat-report-dialog [hidden] { display:none!important; }
@media(max-width:480px) { body .eg-chat-report span { display:none; } body .eg-chat-report { width:36px; padding:8px; } body .eg-chat-report-dialog { padding:21px; } }

/* The sidebar report action sits directly before the thread close button. */
body .eg-side > .eg-chat .eg-chat-report { width:34px; min-height:34px; padding:7px; margin-left:auto; }
body .eg-side > .eg-chat .eg-chat-report > span { display:none; }
body .eg-chat-thread-person { min-width:0; }
body .eg-chat-message-meta time { display:inline-flex; align-items:center; gap:5px; }
body .eg-chat-delivery { display:inline-flex; align-items:center; flex:none; color:#8e899d; line-height:1; }
body .eg-chat-delivery svg { display:block; width:18px; height:16px; }
body .eg-chat-delivery.is-read { color:#72baff; }
body .eg-chat-typing { display:flex; align-items:center; flex:none; gap:6px; min-height:24px; margin:0; padding:3px 22px 8px; border:0; border-radius:0; background:transparent; box-shadow:none; color:#c4a8f4; font-size:13px; line-height:1.5; }
body .eg-chat-typing-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body .eg-chat-typing-dots { display:inline-flex; align-items:center; gap:3px; padding-top:4px; }
body .eg-chat-typing-dots i { display:block; width:3px; height:3px; border-radius:50%; background:currentColor; animation:eg-typing-dot 1.2s ease-in-out infinite; }
body .eg-chat-typing-dots i:nth-child(2) { animation-delay:.14s; }
body .eg-chat-typing-dots i:nth-child(3) { animation-delay:.28s; }
@keyframes eg-typing-dot { 0%,65%,100% { transform:translateY(0); opacity:.35; } 30% { transform:translateY(-3px); opacity:1; } }
@media(max-width:760px) { body .eg-chat-typing { padding-inline:14px; } }
@media(prefers-reduced-motion:reduce) { body .eg-chat-typing-dots i { animation:none; opacity:.7; } }
