/* DMGC Chat popup shell */
.dmgc-chat-popup-root{position:relative;z-index:99990;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.dmgc-chat-launcher{position:fixed;right:24px;bottom:24px;z-index:99990;display:flex;align-items:center;gap:10px;min-height:54px;padding:0 18px;border:1px solid #e6b900;border-radius:999px;background:#ffd12f;color:#17150b;font-weight:800;font-size:14px;box-shadow:0 8px 28px #0005;cursor:pointer}
.dmgc-chat-launcher-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#17150b;color:#ffd12f;font-size:17px}
.dmgc-chat-launcher-badge{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:20px;background:#17150b;color:#ffd12f;font-size:11px}
.dmgc-chat-modal[hidden],.dmgc-chat-launcher-badge[hidden]{display:none!important}
.dmgc-chat-modal{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:28px}
.dmgc-chat-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(3px)}
.dmgc-chat-modal-panel{position:relative;z-index:1;width:min(1120px,96vw);height:min(760px,88vh);min-height:460px;border:1px solid #554719;border-radius:16px;overflow:hidden;background:#050914;box-shadow:0 24px 90px #0009}
.dmgc-chat-modal-close{position:absolute;right:10px;top:8px;z-index:5;width:34px;height:34px;border:1px solid #554719;border-radius:50%;background:#1a1c22;color:#ffd12f;font-size:25px;line-height:1;cursor:pointer}
.dmgc-chat-modal-panel .dmgc-chat-app{width:100%;height:100%;min-height:0;max-height:none;border:0;border-radius:0;box-shadow:none}
.dmgc-chat-modal-panel .dmgc-chat-brand{padding-right:52px}
.dmgc-chat-modal-panel .dmgc-chat-mark{background:#ffd12f;color:#17150b}
@media(max-width:760px){.dmgc-chat-launcher{right:14px;bottom:14px;min-height:50px;padding:0 15px}.dmgc-chat-modal{padding:0}.dmgc-chat-modal-panel{width:100%;height:100%;min-height:0;border-radius:0;border:0}.dmgc-chat-modal-panel .dmgc-chat-app{height:100%;min-height:0;grid-template-columns:1fr}.dmgc-chat-modal-panel .dmgc-chat-sidebar{max-height:38%;min-height:190px}.dmgc-chat-modal-panel .dmgc-chat-main{min-height:0}.dmgc-chat-modal-close{right:8px;top:7px}}
.dmgc-chat-app{--dc-bg:#0b1010;--dc-panel:#111919;--dc-panel2:#172120;--dc-border:#273432;--dc-green:#ffd12f;--dc-text:#f3f7f4;--dc-muted:#9aa8a2;display:grid;grid-template-columns:320px minmax(0,1fr);height:min(760px,80vh);min-height:560px;border:1px solid var(--dc-border);border-radius:18px;overflow:hidden;background:var(--dc-bg);color:var(--dc-text);font:14px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 20px 60px #0002}.dmgc-chat-app *{box-sizing:border-box}.dmgc-chat-app button,.dmgc-chat-app input,.dmgc-chat-app textarea{font:inherit}.dmgc-chat-sidebar{background:#0e1514;border-right:1px solid var(--dc-border);display:flex;flex-direction:column;min-width:0}.dmgc-chat-brand{display:flex;gap:12px;align-items:center;padding:22px 18px;border-bottom:1px solid var(--dc-border)}.dmgc-chat-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--dc-green);color:#10160c;font-size:23px;font-weight:900}.dmgc-chat-brand strong,.dmgc-chat-brand small{display:block}.dmgc-chat-brand strong{font-size:18px;letter-spacing:-.4px}.dmgc-chat-brand small,.dmgc-chat-list-copy small,.dmgc-chat-player-result small{color:var(--dc-muted);font-size:12px}.dmgc-chat-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:12px 12px 8px}.dmgc-chat-tabs button{border:0;border-radius:9px;padding:9px 5px;background:transparent;color:var(--dc-muted);cursor:pointer}.dmgc-chat-tabs button.active{background:#253125;color:var(--dc-green);font-weight:700}.dmgc-chat-search{padding:6px 12px 12px}.dmgc-chat-search input{width:100%;border:1px solid var(--dc-border);border-radius:10px;padding:11px 12px;background:#131c1a;color:var(--dc-text);outline:none}.dmgc-chat-search input:focus{border-color:#d8a900}.dmgc-chat-list{flex:1;overflow:auto;padding:0 8px}.dmgc-chat-list-item,.dmgc-chat-player-result{display:flex;align-items:center;gap:11px;width:100%;padding:11px 9px;border:0;border-radius:11px;background:transparent;color:var(--dc-text);text-align:left;cursor:pointer;margin-bottom:3px}.dmgc-chat-list-item:hover,.dmgc-chat-player-result:hover,.dmgc-chat-list-item.selected{background:#1c2925}.dmgc-chat-list-avatar{flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:#26352c;color:var(--dc-green);font-weight:800;font-size:16px}.dmgc-chat-list-avatar img,.dmgc-chat-avatar img{width:100%;height:100%;object-fit:cover}.dmgc-chat-list-copy{flex:1;min-width:0}.dmgc-chat-list-copy strong,.dmgc-chat-list-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dmgc-chat-list-copy strong{font-size:13px;margin-bottom:3px}.dmgc-chat-list-copy small{max-width:190px}.dmgc-chat-unread{background:var(--dc-green);color:#10160c;font-size:11px;font-weight:800;border-radius:20px;min-width:20px;text-align:center;padding:2px 5px}.dmgc-chat-player-result>span:nth-child(2){display:flex;flex-direction:column;flex:1;min-width:0}.dmgc-chat-player-result b{font-size:11px;color:var(--dc-green);border:1px solid #6b5713;padding:5px 7px;border-radius:7px}.dmgc-chat-empty-list,.dmgc-chat-loading{padding:24px 14px;color:var(--dc-muted);text-align:center;font-size:13px}.dmgc-chat-team-btn{margin:10px 12px 14px;padding:11px;border-radius:10px;border:1px solid #6b5713;background:#2b2514;color:var(--dc-green);font-weight:700;cursor:pointer}.dmgc-chat-main{min-width:0;display:flex;flex-direction:column;background:radial-gradient(ellipse at 75% 0%,#1c2920 0,transparent 45%),var(--dc-bg)}.dmgc-chat-welcome{margin:auto;text-align:center;max-width:380px;padding:28px}.dmgc-chat-welcome-icon{display:grid;place-items:center;margin:0 auto 18px;width:70px;height:70px;border:1px solid #43562b;border-radius:24px;background:#282315;color:var(--dc-green);font-size:32px}.dmgc-chat-welcome h2{font-size:24px;line-height:1.2;letter-spacing:-.7px;color:var(--dc-text);margin:0 0 10px}.dmgc-chat-welcome p{color:var(--dc-muted);margin:0}.dmgc-chat-conversation{height:100%;min-height:0;display:flex;flex-direction:column}.dmgc-chat-conversation[hidden],.dmgc-chat-welcome[hidden]{display:none}.dmgc-chat-conv-header{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--dc-border);background:#111918d9}.dmgc-chat-avatar{display:grid;place-items:center;overflow:hidden;flex:0 0 42px;width:42px;height:42px;border-radius:50%;background:#26352c;color:var(--dc-green);font-size:17px;font-weight:800}.dmgc-chat-conv-header>div:nth-child(2){flex:1}.dmgc-chat-conv-header strong,.dmgc-chat-conv-header small{display:block}.dmgc-chat-conv-header strong{font-size:15px}.dmgc-chat-conv-header small{color:var(--dc-muted);font-size:12px;margin-top:2px}.dmgc-chat-conv-header button{border:1px solid var(--dc-border);border-radius:9px;background:#17211d;color:var(--dc-text);padding:6px 11px;cursor:pointer}.dmgc-chat-messages{flex:1;min-height:0;overflow-y:auto;padding:24px clamp(14px,4vw,42px);display:flex;flex-direction:column;gap:10px}.dmgc-chat-bubble-row{display:flex;width:100%}.dmgc-chat-bubble-row.mine{justify-content:flex-end}.dmgc-chat-bubble{max-width:min(78%,560px);padding:10px 13px 7px;border:1px solid var(--dc-border);border-radius:14px 14px 14px 4px;background:#17211f;color:var(--dc-text);overflow-wrap:anywhere}.dmgc-chat-bubble-row.mine .dmgc-chat-bubble{border-color:#6b5713;border-radius:14px 14px 4px 14px;background:#3b3218}.dmgc-chat-bubble small{display:block;color:var(--dc-green);font-weight:700;margin-bottom:4px}.dmgc-chat-bubble time{display:block;color:#9da99f;font-size:10px;text-align:right;margin-top:5px}.dmgc-chat-report{display:none;border:0;background:transparent;color:#aab4ad;font-size:10px;cursor:pointer;padding:2px 0}.dmgc-chat-bubble-row:hover .dmgc-chat-report{display:block}.dmgc-chat-compose{display:flex;align-items:flex-end;gap:10px;margin:0 20px;padding:10px;border:1px solid var(--dc-border);border-radius:14px;background:#121a18}.dmgc-chat-compose textarea{flex:1;resize:none;max-height:120px;min-height:38px;padding:9px 7px;border:0;outline:0;background:transparent;color:var(--dc-text)}.dmgc-chat-compose button{flex:0 0 40px;width:40px;height:40px;border:0;border-radius:11px;background:var(--dc-green);color:#11170b;font-size:21px;font-weight:900;cursor:pointer}.dmgc-chat-compose button:disabled{opacity:.5}.dmgc-chat-footnote{text-align:center;color:#77857d;font-size:10px;padding:9px 10px 13px}.dmgc-chat-login{padding:18px;border-radius:12px;background:#101816;color:#eaf0e9;border:1px solid #2b3932}@media(max-width:760px){.dmgc-chat-app{grid-template-columns:1fr;height:75vh;min-height:560px;border-radius:12px}.dmgc-chat-sidebar{border-right:0;border-bottom:1px solid var(--dc-border);max-height:42%;min-height:235px}.dmgc-chat-brand{padding:12px 14px}.dmgc-chat-mark{width:34px;height:34px}.dmgc-chat-brand strong{font-size:16px}.dmgc-chat-tabs{padding:7px 10px 4px}.dmgc-chat-search{padding:4px 10px 8px}.dmgc-chat-search input{padding:8px 10px}.dmgc-chat-list{display:flex;gap:3px;overflow-x:auto;overflow-y:hidden;min-height:70px;padding:0 8px}.dmgc-chat-list-item,.dmgc-chat-player-result{flex:0 0 200px;align-self:flex-start;padding:8px}.dmgc-chat-list-avatar{width:34px;height:34px;flex-basis:34px}.dmgc-chat-list-copy small{max-width:115px}.dmgc-chat-team-btn{margin:6px 10px 9px;padding:8px}.dmgc-chat-main{min-height:0}.dmgc-chat-welcome{padding:18px}.dmgc-chat-welcome h2{font-size:20px}.dmgc-chat-conv-header{padding:11px 13px}.dmgc-chat-messages{padding:16px 12px}.dmgc-chat-compose{margin:0 10px;padding:7px}.dmgc-chat-bubble{max-width:88%}}

/* v0.3.0 professional UI refinement — preserves the DMGC black/yellow theme */
.dmgc-chat-launcher{transition:transform .18s ease,box-shadow .18s ease;background:#ffd12f!important;border-color:#ffd12f!important}
.dmgc-chat-launcher:hover{transform:translateY(-2px);box-shadow:0 12px 34px #0008}
.dmgc-chat-modal-backdrop{background:rgba(2,5,4,.78);backdrop-filter:blur(6px)}
.dmgc-chat-modal-panel{width:min(1280px,96vw);height:min(820px,91vh);border-color:#5c4a13;border-radius:20px;background:#080d0c;box-shadow:0 30px 100px #000b}
.dmgc-chat-modal-close{right:12px;top:11px;width:36px;height:36px;background:#191b16;border-color:#665313;color:#ffd12f;transition:background .15s ease,transform .15s ease}
.dmgc-chat-modal-close:hover{background:#332b14;transform:rotate(90deg)}
.dmgc-chat-app{grid-template-columns:340px minmax(0,1fr);background:#080d0c;--dc-bg:#080d0c;--dc-panel:#101715;--dc-panel2:#19231f;--dc-border:#293630;--dc-green:#ffd12f;--dc-text:#f5f7f5;--dc-muted:#9eaaa4}
.dmgc-chat-sidebar{background:linear-gradient(180deg,#101715 0%,#0d1311 100%)}
.dmgc-chat-brand{padding:24px 20px;gap:14px}
.dmgc-chat-mark{width:48px;height:48px;border-radius:15px;box-shadow:0 5px 16px #ffd12f18}
.dmgc-chat-brand strong{font-size:19px;font-weight:800}
.dmgc-chat-tabs{padding:14px 14px 10px;gap:8px}
.dmgc-chat-tabs button{min-height:44px;border-radius:11px;transition:background .15s ease,color .15s ease}
.dmgc-chat-tabs button.active{background:#273128;color:#ffd12f;box-shadow:inset 0 0 0 1px #38452d}
.dmgc-chat-search{padding:6px 14px 14px}
.dmgc-chat-search input{min-height:46px;border-radius:12px;background:#171f1c;border-color:#2b3731;padding:0 14px}
.dmgc-chat-search input:focus{border-color:#b99417;box-shadow:0 0 0 3px #ffd12f16}
.dmgc-chat-list{padding:0 10px 8px}
.dmgc-chat-list-item,.dmgc-chat-player-result{min-height:70px;padding:12px 10px;border:1px solid transparent;border-radius:13px;transition:background .15s ease,border-color .15s ease}
.dmgc-chat-list-item:hover,.dmgc-chat-player-result:hover{background:#1a2420;border-color:#28382f}
.dmgc-chat-list-item.selected{background:#202c26;border-color:#344536;box-shadow:inset 3px 0 0 #ffd12f}
.dmgc-chat-list-avatar{width:44px;height:44px;flex-basis:44px;background:#26352c;border:1px solid #35443a}
.dmgc-chat-list-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.dmgc-chat-list-heading strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dmgc-chat-list-heading time{flex:0 0 auto;color:#84928a;font-size:10px}
.dmgc-chat-list-copy small{display:block;line-height:1.4;margin-top:4px;color:#9eaaa4}
.dmgc-chat-unread{background:#ffd12f;color:#17150b;min-width:22px;line-height:18px;box-shadow:0 2px 8px #ffd12f24}
.dmgc-chat-team-btn{min-height:48px;margin:12px 14px 16px;border-radius:12px;background:#292414;border-color:#6b5713;color:#ffd12f;transition:background .15s ease,border-color .15s ease}
.dmgc-chat-team-btn:hover{background:#383018;border-color:#a9871b}
.dmgc-chat-main{background:radial-gradient(ellipse at 78% 0%,#1b281f 0,transparent 42%),#080d0c}
.dmgc-chat-welcome{max-width:440px}
.dmgc-chat-welcome-icon{width:76px;height:76px;border-radius:25px;background:#282315;border-color:#594b20;box-shadow:0 12px 35px #0002}
.dmgc-chat-welcome h2{font-size:26px;letter-spacing:-.8px}
.dmgc-chat-conv-header{min-height:78px;padding:15px 24px;background:#101715eF;border-bottom-color:#293630}
.dmgc-chat-avatar{width:46px;height:46px;flex-basis:46px;border:1px solid #35443a}
.dmgc-chat-conv-header strong{font-size:15px;font-weight:750}
.dmgc-chat-conv-header small{font-size:12px;color:#a0aaa4}
.dmgc-chat-conv-header button{margin-left:auto;min-width:40px;min-height:38px;color:#ffd12f;border-color:#384239;background:#19221d}
.dmgc-chat-messages{padding:26px clamp(16px,4vw,46px);gap:13px;scroll-behavior:smooth}
.dmgc-chat-bubble{max-width:min(76%,600px);padding:12px 15px 8px;border-radius:16px 16px 16px 5px;background:#1b2621;border-color:#2b3931;line-height:1.5;box-shadow:0 2px 5px #00010}
.dmgc-chat-bubble-row.mine .dmgc-chat-bubble{background:#332b14;border-color:#6b5713;border-radius:16px 16px 5px 16px}
.dmgc-chat-bubble small{font-size:11px;color:#ffd12f}
.dmgc-chat-bubble time{font-size:10px;color:#a6ada3;margin-top:6px}
.dmgc-chat-report{margin-top:4px}
.dmgc-chat-compose{margin:0 24px;padding:9px 10px 9px 15px;gap:12px;border-radius:16px;background:#121a17;border-color:#2b3932;transition:border-color .15s ease,box-shadow .15s ease}
.dmgc-chat-compose:focus-within{border-color:#8e7419;box-shadow:0 0 0 3px #ffd12f10}
.dmgc-chat-compose textarea{font-size:15px;min-height:42px;padding:10px 5px;color:#f5f7f5}
.dmgc-chat-compose textarea::placeholder{color:#8f9b94}
.dmgc-chat-compose button{width:44px;height:44px;flex-basis:44px;border-radius:13px;background:#ffd12f;transition:transform .15s ease,background .15s ease}
.dmgc-chat-compose button:hover{background:#ffe06a;transform:translateY(-1px)}
.dmgc-chat-footnote{padding:10px 12px 15px;color:#829087;font-size:11px}
.dmgc-chat-empty-thread{margin:auto;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;color:#9eaaa4;padding:28px}
.dmgc-chat-empty-thread span{display:grid;place-items:center;width:54px;height:54px;border-radius:18px;background:#282315;color:#ffd12f;font-size:25px;border:1px solid #594b20}
.dmgc-chat-empty-thread strong{font-size:15px;color:#e9eee9}
.dmgc-chat-empty-thread small{font-size:12px;color:#9eaaa4}
@media(max-width:900px){.dmgc-chat-app{grid-template-columns:300px minmax(0,1fr)}.dmgc-chat-modal-panel{width:98vw;height:92vh}}
@media(max-width:760px){.dmgc-chat-modal-panel{width:100%;height:100%;border-radius:0}.dmgc-chat-app{grid-template-columns:1fr;height:100%;min-height:0}.dmgc-chat-sidebar{max-height:40%;min-height:220px}.dmgc-chat-main{min-height:0}.dmgc-chat-brand{padding:11px 14px}.dmgc-chat-tabs button{min-height:38px}.dmgc-chat-list-item,.dmgc-chat-player-result{min-height:58px;flex-basis:190px}.dmgc-chat-team-btn{min-height:40px}.dmgc-chat-conv-header{min-height:62px;padding:10px 13px}.dmgc-chat-messages{padding:14px 11px;gap:10px}.dmgc-chat-bubble{max-width:90%;padding:10px 12px 7px}.dmgc-chat-compose{margin:0 10px;padding:6px 7px 6px 11px}.dmgc-chat-compose textarea{font-size:16px}.dmgc-chat-footnote{padding:7px 8px 9px}}
@media(prefers-reduced-motion:reduce){.dmgc-chat-launcher,.dmgc-chat-modal-close,.dmgc-chat-list-item,.dmgc-chat-player-result,.dmgc-chat-compose,.dmgc-chat-compose button{transition:none!important}.dmgc-chat-messages{scroll-behavior:auto}}

/* v0.4.0 messaging improvements */
.dmgc-chat-conv-person{min-width:0;display:flex;flex-direction:column;gap:2px}
.dmgc-chat-conv-person .is-online{color:#8bdc91!important}
.dmgc-chat-conv-person .is-online:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#65d978;margin-right:6px}
.dmgc-chat-typing{min-height:20px;padding:2px 26px 5px;color:#ffd12f;font-size:11px}
.dmgc-chat-typing[hidden]{display:none}
.dmgc-chat-date-separator{display:flex;justify-content:center;margin:7px 0 10px}
.dmgc-chat-date-separator span{border:1px solid #293630;background:#111815;color:#a9b4ad;border-radius:999px;padding:4px 11px;font-size:10px;letter-spacing:.2px}
.dmgc-chat-receipt{color:#ffd12f;font-size:11px;font-weight:800;margin-left:4px;letter-spacing:-2px}
.dmgc-chat-attachment-image{display:block;margin-top:7px;max-width:280px;border-radius:10px;overflow:hidden;border:1px solid #46523d}
.dmgc-chat-attachment-image img{display:block;width:100%;height:auto;max-height:260px;object-fit:contain}
.dmgc-chat-attachment-file{display:inline-flex;align-items:center;gap:7px;margin-top:7px;padding:8px 10px;border-radius:9px;background:#20291f;border:1px solid #46523d;color:#ffd12f;text-decoration:none;font-size:12px}
.dmgc-chat-attach{flex:0 0 36px!important;width:36px!important;height:36px!important;border:1px solid #554719!important;background:#252316!important;color:#ffd12f!important;border-radius:11px!important;font-size:22px!important;font-weight:500!important}
.dmgc-chat-upload-status{min-height:0;padding:0 26px;color:#ffd12f;font-size:11px}
.dmgc-chat-upload-status:empty{display:none}
.dmgc-chat-report{opacity:.7}
.dmgc-chat-report:focus{display:block;opacity:1}
.dmgc-chat-modal-panel .dmgc-chat-compose button:focus-visible,.dmgc-chat-modal-panel button:focus-visible,.dmgc-chat-modal-panel input:focus-visible,.dmgc-chat-modal-panel textarea:focus-visible{outline:2px solid #ffd12f;outline-offset:2px}
@media(max-width:760px){.dmgc-chat-modal-panel .dmgc-chat-app{grid-template-columns:1fr}.dmgc-chat-typing{padding-left:14px}.dmgc-chat-upload-status{padding-left:15px}.dmgc-chat-attachment-image{max-width:220px}}

/* v0.4.1: clearer conversation identity and messaging-style header */
.dmgc-chat-conv-header{display:flex;align-items:center;gap:13px;min-height:82px;padding:15px 22px;background:linear-gradient(110deg,#111916 0%,#0e1513 100%);border-bottom:1px solid #293630;flex-shrink:0}
.dmgc-chat-back{display:none!important;border:1px solid #344139!important;background:#19221d!important;color:#ffd12f!important;width:38px;height:38px;min-width:38px;padding:0!important;border-radius:11px!important;font-size:25px!important;line-height:1;align-items:center;justify-content:center}
.dmgc-chat-avatar-wrap{position:relative;flex:0 0 46px;width:46px;height:46px}
.dmgc-chat-avatar-wrap .dmgc-chat-avatar{width:46px;height:46px;flex-basis:46px;border:1px solid #46523d}
.dmgc-chat-status-dot{position:absolute;right:-1px;bottom:0;width:12px;height:12px;border-radius:50%;background:#6ad978;border:2px solid #101715}
.dmgc-chat-status-dot[hidden]{display:none!important}
.dmgc-chat-conv-person{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.dmgc-chat-conv-person strong{display:block;max-width:100%;font-size:16px;font-weight:800;line-height:1.25;color:#f5f7f4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dmgc-chat-status-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0}
.dmgc-chat-status-line small{font-size:11px;color:#7f8d85;border-left:1px solid #354039;padding-left:9px}
.dmgc-chat-conv-person .dmgc-chat-presence{display:inline-flex;align-items:center;min-height:16px;font-size:12px;color:#a8b4ac;margin:0}
.dmgc-chat-conv-person .dmgc-chat-presence.is-online{color:#7fe08b!important}
.dmgc-chat-conv-person .dmgc-chat-presence.is-online:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#65d978;margin-right:6px}
.dmgc-chat-header-actions{display:flex;align-items:center;gap:7px}
.dmgc-chat-header-actions button{display:grid;place-items:center;width:40px;height:40px;min-width:40px;border:1px solid #344139;border-radius:11px;background:#19221d;color:#ffd12f;font-size:22px;cursor:pointer}
.dmgc-chat-list-copy strong{color:#f2f5f2}
.dmgc-chat-list-item.selected{box-shadow:inset 3px 0 #ffd12f;border:1px solid #394638}
.dmgc-chat-bubble-row.theirs .dmgc-chat-bubble small{color:#ffd12f}
.dmgc-chat-bubble-row.mine .dmgc-chat-bubble{background:linear-gradient(135deg,#332c17,#282414);border-color:#705b16}
@media(max-width:760px){.dmgc-chat-conv-header{min-height:70px;padding:10px 12px;gap:9px}.dmgc-chat-back{display:flex!important}.dmgc-chat-avatar-wrap,.dmgc-chat-avatar-wrap .dmgc-chat-avatar{width:39px;height:39px;flex-basis:39px}.dmgc-chat-conv-person strong{font-size:14px}.dmgc-chat-status-line{gap:5px}.dmgc-chat-status-line small{font-size:10px;padding-left:6px}.dmgc-chat-header-actions button{width:34px;height:36px;min-width:34px}}
/* v0.5.0 professional interaction controls */
.dmgc-chat-inline-search{display:flex;gap:8px;align-items:center;padding:10px 16px;background:#101715;border-bottom:1px solid #293630}
.dmgc-chat-inline-search[hidden]{display:none!important}.dmgc-chat-inline-search input{flex:1;min-width:0;background:#080d0c;color:#f5f5f5;border:1px solid #293630;border-radius:10px;padding:10px 12px;outline:none}.dmgc-chat-inline-search input:focus{border-color:#ffd12f}.dmgc-chat-inline-search button,.dmgc-chat-header-actions button{cursor:pointer;background:#1b211d;color:#ffd12f;border:1px solid #5c4a0d;border-radius:10px;padding:8px 11px}.dmgc-chat-header-actions .is-pinned{background:#332b14;color:#ffd12f}
.dmgc-chat-message-tools{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px;opacity:.82}.dmgc-chat-message-tools button,.dmgc-chat-reaction{font-size:11px;line-height:1.3;padding:4px 7px;border:1px solid #354139;border-radius:8px;background:#111916;color:#d8dfda;cursor:pointer}.dmgc-chat-message-tools button:hover,.dmgc-chat-reaction:hover{border-color:#ffd12f;color:#ffd12f}.dmgc-chat-reactions{display:flex;gap:5px;flex-wrap:wrap;margin-top:5px}.dmgc-chat-reply-ref{border-left:2px solid #ffd12f;background:#121a16;padding:5px 8px;margin-bottom:6px;border-radius:4px;color:#c7d0ca;font-size:12px}.dmgc-chat-edited{display:block;font-size:10px;color:#9ca8a0}.dmgc-chat-deleted{font-style:italic;color:#9ca8a0}
.dmgc-chat-bubble-row .dmgc-chat-bubble{max-width:min(80%,640px)}.dmgc-chat-conv-header{gap:12px}.dmgc-chat-conv-person{min-width:0}.dmgc-chat-conv-person strong{display:block;overflow-wrap:anywhere}.dmgc-chat-status-line{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.dmgc-chat-presence.is-online{color:#75d89a}.dmgc-chat-status-dot.online{background:#42d778;box-shadow:0 0 0 3px #42d77822}
@media(max-width:760px){.dmgc-chat-message-tools{opacity:1}.dmgc-chat-bubble-row .dmgc-chat-bubble{max-width:92%}.dmgc-chat-inline-search{padding:8px}}


/* v0.5.1: ensure conversation identity header remains visible with themes that hide semantic header elements */
.dmgc-chat-modal-panel .dmgc-chat-conversation > .dmgc-chat-conv-header{display:flex!important;visibility:visible!important;opacity:1!important;position:relative;flex:0 0 auto;min-height:82px;width:100%;align-items:center;gap:12px;padding:15px 24px;background:#101715!important;border-bottom:1px solid #293630!important;color:#f5f7f5!important;z-index:2}
.dmgc-chat-modal-panel .dmgc-chat-conv-header .dmgc-chat-conv-person{display:flex!important;visibility:visible!important;opacity:1!important;flex:1 1 auto;min-width:0}
.dmgc-chat-modal-panel .dmgc-chat-conv-header #dmgc-chat-title{display:block!important;color:#f5f7f5!important;font-size:16px!important;font-weight:800!important;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dmgc-chat-modal-panel .dmgc-chat-conv-header #dmgc-chat-presence,.dmgc-chat-modal-panel .dmgc-chat-conv-header #dmgc-chat-subtitle{display:inline-flex!important;visibility:visible!important;opacity:1!important}
.dmgc-chat-modal-panel .dmgc-chat-conv-header .dmgc-chat-avatar-wrap{display:block!important;flex:0 0 46px}
.dmgc-chat-modal-panel .dmgc-chat-conv-header .dmgc-chat-header-actions{display:flex!important;visibility:visible!important;align-items:center;gap:7px}
@media(max-width:760px){.dmgc-chat-modal-panel .dmgc-chat-conversation > .dmgc-chat-conv-header{min-height:70px;padding:10px 12px;gap:9px}.dmgc-chat-modal-panel .dmgc-chat-conv-header #dmgc-chat-title{font-size:14px!important}}

/* v0.5.2: pure black/yellow palette, clean icon controls, corrected alignment and contextual message actions */
.dmgc-chat-app{--dc-bg:#050505;--dc-panel:#090909;--dc-panel2:#111111;--dc-border:#252525;--dc-green:#ffd12f;background:#050505!important;color:#f7f7f7}
.dmgc-chat-main{background:#050505!important}
.dmgc-chat-sidebar{background:#080808!important}
.dmgc-chat-conv-header{background:#080808!important;border-bottom-color:#242424!important}
.dmgc-chat-modal-panel{background:#050505!important}
.dmgc-chat-modal-panel .dmgc-chat-app{background:#050505!important}
.dmgc-chat-modal-close{background:transparent!important;border:0!important;box-shadow:none!important;width:34px;height:34px;right:8px;top:8px;color:#ffd12f;font-size:28px;line-height:1}
.dmgc-chat-modal-close:hover{background:transparent!important;transform:rotate(90deg)}
.dmgc-chat-header-actions{gap:14px!important;margin-right:42px;flex:0 0 auto}
.dmgc-chat-header-actions button,.dmgc-chat-conv-header .dmgc-chat-header-actions button{width:32px!important;min-width:32px!important;height:36px!important;min-height:36px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#ffd12f!important;font-size:23px!important;line-height:1!important}
.dmgc-chat-header-actions button:hover{background:transparent!important;color:#fff0a3!important;transform:translateY(-1px)}
.dmgc-chat-compose{align-items:center!important;gap:12px!important;background:#0b0b0b!important;border-color:#262626!important;padding:8px 12px!important}
.dmgc-chat-compose .dmgc-chat-attach,.dmgc-chat-compose button.dmgc-chat-attach{flex:0 0 32px!important;width:32px!important;min-width:32px!important;height:38px!important;min-height:38px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#ffd12f!important;font-size:24px!important;font-weight:500!important;line-height:1!important}
.dmgc-chat-compose .dmgc-chat-attach:hover{background:transparent!important;color:#fff0a3!important}
.dmgc-chat-compose textarea{align-self:center!important;min-height:40px!important;padding:9px 2px!important;line-height:1.4!important}
.dmgc-chat-compose button[type=submit]{flex:0 0 38px!important;width:38px!important;min-width:38px!important;height:40px!important;min-height:40px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#ffd12f!important;font-size:30px!important;line-height:1!important;transform:none!important}
.dmgc-chat-compose button[type=submit]:hover{background:transparent!important;color:#fff0a3!important;transform:translateX(2px)!important}
.dmgc-chat-search input{background:#101010!important;border-color:#292929!important;color:#f7f7f7!important}
.dmgc-chat-tabs button.active{background:#1b1b1b!important;color:#ffd12f!important}
.dmgc-chat-list-item:hover,.dmgc-chat-player-result:hover,.dmgc-chat-list-item.selected{background:#171717!important}
.dmgc-chat-bubble{background:#141414!important;border-color:#292929!important}
.dmgc-chat-bubble-row.mine .dmgc-chat-bubble{background:#211c0c!important;border-color:#705a0d!important}
.dmgc-chat-message-tools{display:flex!important;gap:5px;flex-wrap:wrap;margin-top:8px;opacity:0;visibility:hidden;pointer-events:none;max-height:0;overflow:hidden;transition:opacity .14s ease,max-height .14s ease}
.dmgc-chat-bubble-row:hover .dmgc-chat-message-tools,.dmgc-chat-bubble-row:focus-within .dmgc-chat-message-tools,.dmgc-chat-bubble-row.show-tools .dmgc-chat-message-tools{opacity:1;visibility:visible;pointer-events:auto;max-height:90px}
.dmgc-chat-message-tools button,.dmgc-chat-reaction{background:transparent!important;border-color:#343434!important;color:#d7d7d7!important}
.dmgc-chat-message-tools button:hover,.dmgc-chat-reaction:hover{color:#ffd12f!important;border-color:#ffd12f!important}
.dmgc-chat-date-separator span{background:#101010!important;border-color:#292929!important}
.dmgc-chat-welcome-icon{background:#111!important;border-color:#554719!important}
@media (hover:none),(max-width:760px){.dmgc-chat-message-tools{opacity:0!important;visibility:hidden!important;pointer-events:none!important;max-height:0!important}.dmgc-chat-bubble-row.show-tools .dmgc-chat-message-tools{opacity:1!important;visibility:visible!important;pointer-events:auto!important;max-height:90px!important}.dmgc-chat-modal-close{right:5px;top:5px}.dmgc-chat-header-actions{gap:8px!important;margin-right:34px}.dmgc-chat-header-actions button{width:28px!important;min-width:28px!important;font-size:21px!important}.dmgc-chat-conv-header{padding-right:8px!important}.dmgc-chat-compose{gap:8px!important;padding:6px 8px!important}.dmgc-chat-compose .dmgc-chat-attach{flex-basis:28px!important;width:28px!important;min-width:28px!important;font-size:22px!important}.dmgc-chat-compose button[type=submit]{flex-basis:32px!important;width:32px!important;min-width:32px!important;font-size:27px!important}}

/* v0.5.3: monochrome black/charcoal messenger theme with yellow accents; remove dot beside Online label */
.dmgc-chat-app{--dc-bg:#080808!important;--dc-panel:#101010!important;--dc-panel2:#191919!important;--dc-border:#292929!important;--dc-text:#f5f5f5!important;--dc-muted:#a5a5a5!important;background:#080808!important;color:#f5f5f5!important}
.dmgc-chat-main{background:radial-gradient(ellipse at 75% 0%,#171717 0,transparent 48%),#080808!important}
.dmgc-chat-sidebar{background:#101010!important;border-right-color:#292929!important}
.dmgc-chat-brand,.dmgc-chat-conv-header{background:#111!important;border-color:#292929!important}
.dmgc-chat-conv-header{background:linear-gradient(110deg,#141414,#0d0d0d)!important}
.dmgc-chat-tabs button.active{background:#242424!important;color:#ffd12f!important;box-shadow:inset 0 0 0 1px #393939!important}
.dmgc-chat-search input{background:#1a1a1a!important;border-color:#303030!important;color:#f5f5f5!important}
.dmgc-chat-list-item:hover,.dmgc-chat-player-result:hover,.dmgc-chat-list-item.selected{background:#222!important}
.dmgc-chat-list-avatar,.dmgc-chat-avatar{background:#292929!important;color:#ffd12f!important}
.dmgc-chat-main,.dmgc-chat-messages{color:#f5f5f5!important}
.dmgc-chat-bubble{background:#202020!important;border-color:#303030!important;color:#f5f5f5!important}
.dmgc-chat-bubble-row.mine .dmgc-chat-bubble{background:#29230f!important;border-color:#66520f!important}
.dmgc-chat-compose{background:#151515!important;border-color:#303030!important}
.dmgc-chat-compose textarea{color:#f5f5f5!important}
.dmgc-chat-date-separator span{background:#171717!important;border-color:#343434!important;color:#d0d0d0!important}
.dmgc-chat-team-btn{background:#211d10!important;border-color:#66520f!important;color:#ffd12f!important}
.dmgc-chat-welcome-icon{background:#191919!important;border-color:#51461e!important}
.dmgc-chat-conv-person .dmgc-chat-presence.is-online{color:#d7d7d7!important}
.dmgc-chat-conv-person .dmgc-chat-presence.is-online:before,.dmgc-chat-conv-person .is-online:before{content:none!important;display:none!important}
/* Keep avatar presence subtle, but no green dot beside the Online text. */
.dmgc-chat-status-dot{background:#ffd12f!important;border-color:#111!important;box-shadow:none!important}
.dmgc-chat-modal-panel{background:#080808!important;border-color:#51451c!important}
.dmgc-chat-modal-close{color:#ffd12f!important}

/* v0.5.4 reference-template redesign: dark messenger layout inspired by supplied reference */
.dmgc-chat-modal-panel{width:min(1280px,97vw);height:min(850px,94vh);background:#09090c;border-color:#34303d;border-radius:24px;box-shadow:0 24px 90px #000b}
.dmgc-chat-modal-panel .dmgc-chat-app{--dc-bg:#25212d;--dc-panel:#171719;--dc-panel2:#302c37;--dc-border:#3b3742;--dc-green:#ffd12f;--dc-text:#f4f2f6;--dc-muted:#aaa5b2;grid-template-columns:330px minmax(0,1fr);background:var(--dc-bg);border:0;border-radius:0;box-shadow:none;height:100%;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.dmgc-chat-modal-panel .dmgc-chat-sidebar{background:#171719;border-right:0;padding:12px 10px 10px;min-height:0}
.dmgc-chat-modal-panel .dmgc-chat-brand{padding:12px 12px 17px;border:0;gap:12px}
.dmgc-chat-modal-panel .dmgc-chat-mark{width:42px;height:42px;border-radius:50%;font-size:19px}
.dmgc-chat-modal-panel .dmgc-chat-tabs{padding:7px 8px 12px;gap:8px}
.dmgc-chat-modal-panel .dmgc-chat-tabs button{border-radius:22px;padding:10px 8px;color:#b5b1bd;background:transparent}
.dmgc-chat-modal-panel .dmgc-chat-tabs button.active{background:#414047;color:#fff;font-weight:650}
.dmgc-chat-modal-panel .dmgc-chat-search{padding:0 8px 12px}
.dmgc-chat-modal-panel .dmgc-chat-search input{border:0;border-radius:24px;background:#37363a;color:#f7f5f8;padding:12px 16px}
.dmgc-chat-modal-panel .dmgc-chat-search input::placeholder{color:#c6c3ca}
.dmgc-chat-modal-panel .dmgc-chat-list{padding:0 2px;overflow:auto;display:block}
.dmgc-chat-modal-panel .dmgc-chat-list-item,.dmgc-chat-modal-panel .dmgc-chat-player-result{position:relative;min-height:62px;border-radius:30px;padding:9px 12px;margin:2px 0;gap:12px;background:transparent}
.dmgc-chat-modal-panel .dmgc-chat-list-item:hover,.dmgc-chat-modal-panel .dmgc-chat-player-result:hover{background:#29272d}
.dmgc-chat-modal-panel .dmgc-chat-list-item.selected{background:#49474c;box-shadow:none}
.dmgc-chat-modal-panel .dmgc-chat-list-avatar{width:46px;height:46px;flex-basis:46px;background:#302e34;color:#e8e5ec;border:0}
.dmgc-chat-modal-panel .dmgc-chat-list-copy strong{font-size:14px;font-weight:500;margin-bottom:3px}
.dmgc-chat-modal-panel .dmgc-chat-list-copy small{font-size:11px;color:#aaa6b0;max-width:180px}
.dmgc-chat-modal-panel .dmgc-chat-unread{background:#ffd12f;color:#17150b}
.dmgc-chat-modal-panel .dmgc-chat-team-btn{margin:10px 8px 8px;border:0;border-radius:24px;background:#2e2a35;color:#f5f2f7;padding:12px;font-weight:600}
.dmgc-chat-modal-panel .dmgc-chat-main{background:#25212d;position:relative;min-width:0}
.dmgc-chat-modal-panel .dmgc-chat-conversation{background:#25212d}
.dmgc-chat-modal-panel .dmgc-chat-conv-header{position:relative;flex:0 0 auto;margin:14px 78px 8px 16px;padding:10px 18px;min-height:66px;border:0;border-radius:40px;background:#171719;box-shadow:0 7px 22px #0003;gap:12px}
.dmgc-chat-modal-panel .dmgc-chat-back{display:none}
.dmgc-chat-modal-panel .dmgc-chat-avatar-wrap,.dmgc-chat-modal-panel .dmgc-chat-avatar{width:38px;height:38px;flex-basis:38px;background:#37343b;color:#f5f2f7}
.dmgc-chat-modal-panel .dmgc-chat-conv-person strong{font-size:14px;font-weight:550;letter-spacing:0}
.dmgc-chat-modal-panel .dmgc-chat-status-line{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.dmgc-chat-modal-panel .dmgc-chat-presence.is-online{color:#b5b0bc}
.dmgc-chat-modal-panel .dmgc-chat-status-dot{display:none!important}
.dmgc-chat-modal-panel .dmgc-chat-status-line small{font-size:11px;color:#aaa5b2;border-left:1px solid #514c58;padding-left:9px}
.dmgc-chat-modal-panel .dmgc-chat-header-actions{gap:18px;margin-left:auto;padding-right:8px}
.dmgc-chat-modal-panel .dmgc-chat-header-actions button{width:28px;height:34px;min-width:28px;padding:0;border:0!important;border-radius:0!important;background:transparent!important;color:#aaa5b2;font-size:22px;box-shadow:none!important}
.dmgc-chat-modal-panel .dmgc-chat-header-actions button:hover,.dmgc-chat-modal-panel .dmgc-chat-header-actions .is-pinned{color:#ffd12f}
.dmgc-chat-modal-panel .dmgc-chat-modal-close{right:12px;top:12px;width:38px;height:38px;border:0;border-radius:50%;background:#171719;color:#f1eef4;font-size:25px}
.dmgc-chat-modal-panel .dmgc-chat-messages{padding:18px clamp(18px,4vw,44px) 20px;gap:13px;background:#25212d}
.dmgc-chat-modal-panel .dmgc-chat-date-separator{display:flex;align-items:center;gap:12px;justify-content:center;color:#c3bec9;font-size:12px;margin:10px 0 16px}
.dmgc-chat-modal-panel .dmgc-chat-date-separator:before,.dmgc-chat-modal-panel .dmgc-chat-date-separator:after{content:"";height:1px;background:#413c48;flex:1;max-width:35%}
.dmgc-chat-modal-panel .dmgc-chat-date-separator span{padding:7px 14px;border:1px solid #494450;border-radius:22px;background:#211e26}
.dmgc-chat-modal-panel .dmgc-chat-bubble{max-width:min(78%,560px);padding:11px 14px 8px;border:0;border-radius:14px;background:#37343c;color:#f5f3f7;font-size:13px}
.dmgc-chat-modal-panel .dmgc-chat-bubble-row.mine .dmgc-chat-bubble{border:0;border-radius:14px;background:#3a3541;color:#f5f3f7}
.dmgc-chat-modal-panel .dmgc-chat-bubble small{color:#bdb6c6;font-size:10px;font-weight:500}
.dmgc-chat-modal-panel .dmgc-chat-bubble time{color:#aaa5b2;font-size:10px}
.dmgc-chat-modal-panel .dmgc-chat-message-tools{opacity:0;transition:opacity .15s ease}
.dmgc-chat-modal-panel .dmgc-chat-bubble-row:hover .dmgc-chat-message-tools,.dmgc-chat-modal-panel .dmgc-chat-bubble-row.show-tools .dmgc-chat-message-tools{opacity:1}
.dmgc-chat-modal-panel .dmgc-chat-message-tools button,.dmgc-chat-modal-panel .dmgc-chat-reaction{background:#242228;border:1px solid #494450;color:#d9d4df;border-radius:8px}
.dmgc-chat-modal-panel .dmgc-chat-compose{position:relative;align-items:center;gap:9px;flex-wrap:wrap;margin:0 18px 0 16px;padding:13px 16px 10px;border:1px solid #4b4652;border-radius:28px;background:#1d1b21;box-shadow:0 0 0 1px #ffffff08}
.dmgc-chat-modal-panel .dmgc-chat-compose textarea{order:0;flex:1 1 100%;width:100%;min-height:44px;max-height:100px;padding:4px 4px 10px;font-size:14px;color:#f4f1f6}
.dmgc-chat-modal-panel .dmgc-chat-compose textarea::placeholder{color:#9e99a6}
.dmgc-chat-modal-panel .dmgc-chat-compose button{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border:0!important;border-radius:50%!important;background:transparent!important;color:#aaa5b2;font-size:18px;box-shadow:none!important;padding:0}
.dmgc-chat-modal-panel .dmgc-chat-compose button:hover{color:#ffd12f}
.dmgc-chat-modal-panel .dmgc-chat-compose button[type=submit]{margin-left:auto;background:#171719!important;color:#d9d4df;font-size:20px}
.dmgc-chat-modal-panel .dmgc-chat-footnote{color:#9b95a3;padding:8px 10px 12px;font-size:10px}
.dmgc-chat-modal-panel .dmgc-chat-inline-search{background:#1d1b21;border:0;margin:0 18px;border-radius:16px}
.dmgc-chat-modal-panel .dmgc-chat-inline-search input{background:#302d35;border:0;border-radius:20px}
.dmgc-chat-modal-panel .dmgc-chat-welcome{color:#f4f1f6}
.dmgc-chat-modal-panel .dmgc-chat-welcome-icon{border-color:#494450;background:#302d35;color:#ffd12f}
.dmgc-chat-modal-panel .dmgc-chat-welcome p{color:#aaa5b2}
@media(max-width:760px){.dmgc-chat-modal-panel{width:100%;height:100%;border-radius:0}.dmgc-chat-modal-panel .dmgc-chat-app{grid-template-columns:1fr}.dmgc-chat-modal-panel .dmgc-chat-sidebar{max-height:36%;min-height:185px;padding:7px}.dmgc-chat-modal-panel .dmgc-chat-brand{padding:5px 10px 8px}.dmgc-chat-modal-panel .dmgc-chat-brand small{display:none}.dmgc-chat-modal-panel .dmgc-chat-tabs{padding:3px 6px 7px}.dmgc-chat-modal-panel .dmgc-chat-search{padding:0 6px 6px}.dmgc-chat-modal-panel .dmgc-chat-list{display:flex;overflow-x:auto;overflow-y:hidden;min-height:65px}.dmgc-chat-modal-panel .dmgc-chat-list-item,.dmgc-chat-modal-panel .dmgc-chat-player-result{flex:0 0 190px;min-height:56px;padding:6px 9px}.dmgc-chat-modal-panel .dmgc-chat-team-btn{margin:4px 6px;padding:7px}.dmgc-chat-modal-panel .dmgc-chat-conv-header{margin:9px 52px 5px 8px;min-height:58px;padding:8px 11px;gap:8px}.dmgc-chat-modal-panel .dmgc-chat-header-actions{gap:8px;padding-right:0}.dmgc-chat-modal-panel .dmgc-chat-header-actions button{font-size:19px;width:24px;min-width:24px}.dmgc-chat-modal-panel .dmgc-chat-modal-close{right:7px;top:7px;width:34px;height:34px}.dmgc-chat-modal-panel .dmgc-chat-messages{padding:12px 10px}.dmgc-chat-modal-panel .dmgc-chat-bubble{max-width:88%;font-size:13px}.dmgc-chat-modal-panel .dmgc-chat-compose{margin:0 8px;padding:9px 11px;border-radius:22px}.dmgc-chat-modal-panel .dmgc-chat-compose textarea{min-height:38px}.dmgc-chat-modal-panel .dmgc-chat-message-tools{opacity:1}.dmgc-chat-modal-panel .dmgc-chat-footnote{padding:5px 6px 8px}}

.dmgc-chat-modal-panel .dmgc-chat-compose #dmgc-chat-emoji,.dmgc-chat-modal-panel .dmgc-chat-compose #dmgc-chat-attach,.dmgc-chat-modal-panel .dmgc-chat-compose button[type=submit]{order:1}
.dmgc-chat-modal-panel .dmgc-chat-compose #dmgc-chat-emoji{margin-left:2px}
.dmgc-chat-modal-panel .dmgc-chat-compose #dmgc-chat-attach{margin-right:auto}


/* v0.5.5 — monochrome black/grey UI, compact player search and self-profile footer */
.dmgc-chat-modal-panel,
.dmgc-chat-modal-panel .dmgc-chat-app,
.dmgc-chat-modal-panel .dmgc-chat-main,
.dmgc-chat-modal-panel .dmgc-chat-conversation,
.dmgc-chat-modal-panel .dmgc-chat-messages {background:#080808!important;color:#d6d6d6!important}
.dmgc-chat-modal-panel{border-color:#303030!important}
.dmgc-chat-modal-panel .dmgc-chat-sidebar{background:#101010!important;border-right:1px solid #292929!important;padding:12px 12px 10px!important}
.dmgc-chat-modal-panel .dmgc-chat-brand{background:#101010!important;border-bottom:1px solid #292929!important}
.dmgc-chat-modal-panel .dmgc-chat-brand strong{color:#dedede!important}
.dmgc-chat-modal-panel .dmgc-chat-brand small{color:#999!important}
.dmgc-chat-modal-panel .dmgc-chat-mark{background:#303030!important;color:#dedede!important;border-radius:14px!important}
.dmgc-chat-modal-panel .dmgc-chat-tabs{display:none!important}
.dmgc-chat-modal-panel .dmgc-chat-search-row{display:flex;align-items:center;gap:8px;padding:12px 4px 8px;min-width:0}
.dmgc-chat-modal-panel .dmgc-chat-search{padding:0!important;flex:1 1 auto;min-width:0}
.dmgc-chat-modal-panel .dmgc-chat-search input{width:100%;min-width:0;background:#202020!important;border:1px solid #333!important;border-radius:24px!important;color:#d5d5d5!important;padding:12px 15px!important}
.dmgc-chat-modal-panel .dmgc-chat-search input::placeholder{color:#969696!important}
.dmgc-chat-modal-panel .dmgc-chat-find-players{flex:0 0 44px;width:44px;height:44px;border:1px solid #393939!important;border-radius:50%!important;background:#242424!important;color:#c5c5c5!important;display:flex;align-items:center;justify-content:center;position:relative;font-size:20px;line-height:1;cursor:pointer}
.dmgc-chat-modal-panel .dmgc-chat-find-players span{font-size:12px;margin-left:-2px;margin-top:11px}
.dmgc-chat-modal-panel .dmgc-chat-find-players:hover,.dmgc-chat-modal-panel .dmgc-chat-find-players.active{background:#353535!important;color:#e0e0e0!important;border-color:#555!important}
.dmgc-chat-modal-panel .dmgc-chat-view-label{font-size:10px;letter-spacing:1.4px;color:#777;padding:4px 10px 7px}
.dmgc-chat-modal-panel .dmgc-chat-list{padding:0 2px 8px;min-height:0;flex:1 1 auto;overflow-y:auto;display:block}
.dmgc-chat-modal-panel .dmgc-chat-list-item,.dmgc-chat-modal-panel .dmgc-chat-player-result{display:flex;width:100%;text-align:left;align-items:center;min-height:68px;padding:10px 12px;margin:4px 0;gap:12px;border:1px solid transparent!important;border-radius:19px!important;background:transparent!important;color:#d0d0d0!important;box-shadow:none!important}
.dmgc-chat-modal-panel .dmgc-chat-list-item:hover,.dmgc-chat-modal-panel .dmgc-chat-player-result:hover{background:#1a1a1a!important;border-color:#303030!important}
.dmgc-chat-modal-panel .dmgc-chat-list-item.selected{background:#242424!important;border-color:#3a3a3a!important}
.dmgc-chat-modal-panel .dmgc-chat-list-avatar{width:46px;height:46px;flex:0 0 46px;border:1px solid #3b3b3b!important;background:#292929!important;color:#d2d2d2!important;overflow:hidden;border-radius:50%!important}
.dmgc-chat-modal-panel .dmgc-chat-list-avatar img,.dmgc-chat-modal-panel .dmgc-chat-self-avatar img{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit}
.dmgc-chat-modal-panel .dmgc-chat-list-copy strong{color:#dedede!important;font-weight:650!important}
.dmgc-chat-modal-panel .dmgc-chat-list-copy small,.dmgc-chat-modal-panel .dmgc-chat-player-result small{color:#929292!important}
.dmgc-chat-modal-panel .dmgc-chat-unread{background:#444!important;color:#eee!important}
.dmgc-chat-modal-panel .dmgc-chat-team-btn{flex:0 0 auto;margin:8px 3px 10px!important;border:1px solid #3a3a3a!important;border-radius:17px!important;background:#202020!important;color:#cfcfcf!important;padding:12px!important}
.dmgc-chat-modal-panel .dmgc-chat-team-btn:hover{background:#2b2b2b!important}
.dmgc-chat-modal-panel .dmgc-chat-self-card{display:flex;align-items:center;gap:10px;min-width:0;margin:0 2px 2px;padding:12px 11px;border:1px solid #333;border-radius:18px;background:#191919;box-shadow:inset 0 1px 0 #ffffff05}
.dmgc-chat-modal-panel .dmgc-chat-self-avatar{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:#333;border:1px solid #454545;color:#d5d5d5;font-size:16px;font-weight:700}
.dmgc-chat-modal-panel .dmgc-chat-self-copy{display:flex;flex:1 1 auto;flex-direction:column;min-width:0}
.dmgc-chat-modal-panel .dmgc-chat-self-copy strong{font-size:13px;font-weight:650;color:#d8d8d8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dmgc-chat-modal-panel .dmgc-chat-self-copy small{font-size:11px;color:#858585;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dmgc-chat-modal-panel .dmgc-chat-profile-settings{flex:0 0 34px;width:34px;height:34px;display:grid;place-items:center;border:1px solid #3a3a3a!important;border-radius:50%!important;background:#242424!important;color:#bdbdbd!important;cursor:pointer;font-size:17px}
.dmgc-chat-modal-panel .dmgc-chat-profile-settings:hover{background:#353535!important;color:#e1e1e1!important}
.dmgc-chat-modal-panel .dmgc-chat-conv-header{display:flex!important;align-items:center;min-height:78px;margin:14px 60px 8px 16px!important;padding:12px 18px!important;border:1px solid #303030!important;border-radius:28px!important;background:#151515!important;box-shadow:none!important;color:#d5d5d5!important}
.dmgc-chat-modal-panel .dmgc-chat-conv-person strong{color:#e0e0e0!important;font-size:15px!important;font-weight:700!important}
.dmgc-chat-modal-panel .dmgc-chat-presence,.dmgc-chat-modal-panel .dmgc-chat-status-line small{color:#999!important}
.dmgc-chat-modal-panel .dmgc-chat-status-dot{display:none!important}
.dmgc-chat-modal-panel .dmgc-chat-header-actions{gap:16px!important}
.dmgc-chat-modal-panel .dmgc-chat-header-actions button{color:#aaa!important}
.dmgc-chat-modal-panel .dmgc-chat-header-actions button:hover,.dmgc-chat-modal-panel .dmgc-chat-header-actions .is-pinned{color:#e0e0e0!important}
.dmgc-chat-modal-panel .dmgc-chat-modal-close{background:#191919!important;color:#c7c7c7!important;border:1px solid #353535!important}
.dmgc-chat-modal-panel .dmgc-chat-date-separator{color:#999!important}
.dmgc-chat-modal-panel .dmgc-chat-date-separator:before,.dmgc-chat-modal-panel .dmgc-chat-date-separator:after{background:#333!important}
.dmgc-chat-modal-panel .dmgc-chat-date-separator span{background:#1a1a1a!important;border-color:#383838!important;color:#aaa!important}
.dmgc-chat-modal-panel .dmgc-chat-bubble,.dmgc-chat-modal-panel .dmgc-chat-bubble-row.mine .dmgc-chat-bubble{background:#222!important;border:1px solid #333!important;color:#d9d9d9!important}
.dmgc-chat-modal-panel .dmgc-chat-bubble small,.dmgc-chat-modal-panel .dmgc-chat-bubble time{color:#969696!important}
.dmgc-chat-modal-panel .dmgc-chat-message-tools button,.dmgc-chat-modal-panel .dmgc-chat-reaction{background:#202020!important;border-color:#414141!important;color:#bdbdbd!important}
.dmgc-chat-modal-panel .dmgc-chat-message-tools button:hover,.dmgc-chat-modal-panel .dmgc-chat-reaction:hover{background:#303030!important;border-color:#666!important;color:#e0e0e0!important}
.dmgc-chat-modal-panel .dmgc-chat-compose{background:#181818!important;border:1px solid #363636!important;border-radius:24px!important;box-shadow:none!important}
.dmgc-chat-modal-panel .dmgc-chat-compose textarea{color:#d8d8d8!important}
.dmgc-chat-modal-panel .dmgc-chat-compose textarea::placeholder{color:#888!important}
.dmgc-chat-modal-panel .dmgc-chat-compose button,.dmgc-chat-modal-panel .dmgc-chat-compose button[type=submit]{color:#bdbdbd!important;background:transparent!important}
.dmgc-chat-modal-panel .dmgc-chat-compose button:hover,.dmgc-chat-modal-panel .dmgc-chat-compose button[type=submit]:hover{color:#e4e4e4!important}
.dmgc-chat-modal-panel .dmgc-chat-footnote,.dmgc-chat-modal-panel .dmgc-chat-welcome p{color:#858585!important}
.dmgc-chat-modal-panel .dmgc-chat-welcome-icon{background:#202020!important;border-color:#3a3a3a!important;color:#c6c6c6!important}
.dmgc-chat-modal-panel .dmgc-chat-inline-search{background:#171717!important;border:1px solid #333!important}
.dmgc-chat-modal-panel .dmgc-chat-inline-search input{background:#242424!important;color:#d0d0d0!important}
@media(max-width:760px){
 .dmgc-chat-modal-panel .dmgc-chat-app{grid-template-columns:1fr!important}
 .dmgc-chat-modal-panel .dmgc-chat-sidebar{max-height:44%;min-height:235px;padding:7px!important}
 .dmgc-chat-modal-panel .dmgc-chat-brand{padding:5px 8px 8px!important}
 .dmgc-chat-modal-panel .dmgc-chat-search-row{padding:7px 4px 4px;gap:7px}
 .dmgc-chat-modal-panel .dmgc-chat-find-players{width:40px;height:40px;flex-basis:40px}
 .dmgc-chat-modal-panel .dmgc-chat-list{overflow-y:auto;overflow-x:hidden;min-height:0;display:block}
 .dmgc-chat-modal-panel .dmgc-chat-list-item,.dmgc-chat-modal-panel .dmgc-chat-player-result{min-height:55px;padding:7px 9px;margin:3px 0;border-radius:15px!important}
 .dmgc-chat-modal-panel .dmgc-chat-team-btn{margin:4px!important;padding:8px!important}
 .dmgc-chat-modal-panel .dmgc-chat-self-card{padding:8px;margin:3px 2px}
 .dmgc-chat-modal-panel .dmgc-chat-self-avatar{width:34px;height:34px;flex-basis:34px}
 .dmgc-chat-modal-panel .dmgc-chat-conv-header{margin:8px 45px 5px 8px!important;min-height:64px;padding:8px 10px!important;border-radius:20px!important}
 .dmgc-chat-modal-panel .dmgc-chat-header-actions{gap:7px!important}
 .dmgc-chat-modal-panel .dmgc-chat-header-actions button{font-size:18px!important}
 .dmgc-chat-modal-panel .dmgc-chat-modal-close{right:5px;top:5px;width:32px;height:32px}
}

/* Monochrome accents across launcher and remaining interactive states */
.dmgc-chat-launcher{background:#292929!important;border-color:#444!important;color:#dedede!important;box-shadow:0 8px 28px #0008!important}
.dmgc-chat-launcher-icon,.dmgc-chat-launcher-badge{background:#111!important;color:#cfcfcf!important}
.dmgc-chat-launcher:hover{background:#383838!important}
.dmgc-chat-app a,.dmgc-chat-app .dmgc-chat-receipt{color:#bcbcbc!important}
.dmgc-chat-app .dmgc-chat-status-dot{display:none!important}
.dmgc-chat-app .dmgc-chat-unread{background:#444!important;color:#eee!important}
.dmgc-chat-app button:focus-visible,.dmgc-chat-app input:focus-visible,.dmgc-chat-app textarea:focus-visible{outline:2px solid #777!important;outline-offset:2px}

.dmgc-chat-modal-panel .dmgc-chat-welcome h2{color:#d6d6d6!important}.dmgc-chat-modal-panel .dmgc-chat-team-btn{margin-top:auto!important}.dmgc-chat-modal-panel .dmgc-chat-search-row{flex:0 0 auto}.dmgc-chat-modal-panel .dmgc-chat-self-card{flex:0 0 auto}


/* v0.5.6 — harden monochrome surfaces against theme/global form CSS; refine add-player icon */
body .dmgc-chat-modal-panel,
body .dmgc-chat-modal-panel .dmgc-chat-app,
body .dmgc-chat-modal-panel .dmgc-chat-main,
body .dmgc-chat-modal-panel .dmgc-chat-conversation,
body .dmgc-chat-modal-panel .dmgc-chat-messages,
body .dmgc-chat-modal-panel .dmgc-chat-welcome {
  background-color:#080808 !important;
  background-image:none !important;
  color:#dedede !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-sidebar,
body .dmgc-chat-modal-panel .dmgc-chat-brand,
body .dmgc-chat-modal-panel .dmgc-chat-conv-header {
  background:#111111 !important;
  background-image:none !important;
  border-color:#2d2d2d !important;
  color:#dedede !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-conv-header,
body .dmgc-chat-modal-panel .dmgc-chat-compose,
body .dmgc-chat-modal-panel .dmgc-chat-search input,
body .dmgc-chat-modal-panel .dmgc-chat-inline-search,
body .dmgc-chat-modal-panel .dmgc-chat-inline-search input {
  box-shadow:none !important;
}
/* Prevent Elementor/theme styles from turning the composer textarea white. */
body .dmgc-chat-modal-panel #dmgc-chat-compose textarea,
body .dmgc-chat-modal-panel #dmgc-chat-text,
body .dmgc-chat-modal-panel .dmgc-chat-compose textarea:focus,
body .dmgc-chat-modal-panel .dmgc-chat-compose textarea:active {
  appearance:none !important;
  -webkit-appearance:none !important;
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  min-height:42px !important;
  margin:0 !important;
  padding:10px 8px !important;
  border:0 !important;
  outline:0 !important;
  border-radius:0 !important;
  background:#181818 !important;
  background-color:#181818 !important;
  background-image:none !important;
  color:#e0e0e0 !important;
  -webkit-text-fill-color:#e0e0e0 !important;
  box-shadow:none !important;
  font:inherit !important;
  line-height:1.45 !important;
}
body .dmgc-chat-modal-panel #dmgc-chat-text::placeholder,
body .dmgc-chat-modal-panel #dmgc-chat-compose textarea::placeholder {
  color:#858585 !important;
  -webkit-text-fill-color:#858585 !important;
  opacity:1 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-compose {
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  background:#181818 !important;
  background-color:#181818 !important;
  border:1px solid #333 !important;
  border-radius:24px !important;
  padding:10px 14px !important;
  min-height:68px !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-compose button,
body .dmgc-chat-modal-panel .dmgc-chat-compose button[type="submit"] {
  flex:0 0 38px !important;
  width:38px !important;
  min-width:38px !important;
  height:38px !important;
  min-height:38px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:50% !important;
  background:transparent !important;
  background-color:transparent !important;
  color:#bdbdbd !important;
  box-shadow:none !important;
  outline-offset:3px;
  line-height:1 !important;
  display:grid !important;
  place-items:center !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-compose button:hover,
body .dmgc-chat-modal-panel .dmgc-chat-compose button[type="submit"]:hover {
  background:#292929 !important;
  color:#f0f0f0 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-compose button[type="submit"] {
  font-size:24px !important;
  background:#292929 !important;
  color:#e0e0e0 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-find-players {
  background:transparent !important;
  background-color:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  color:#cfcfcf !important;
  padding:0 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-find-players:hover,
body .dmgc-chat-modal-panel .dmgc-chat-find-players.active {
  background:#252525 !important;
  border:0 !important;
  color:#fff !important;
}
.dmgc-chat-add-players-icon {width:25px;height:25px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body .dmgc-chat-modal-panel .dmgc-chat-modal-close {
  background:#111 !important;
  background-color:#111 !important;
  color:#d8d8d8 !important;
  border:1px solid #3a3a3a !important;
  box-shadow:none !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-mark,
body .dmgc-chat-modal-panel .dmgc-chat-team-btn,
body .dmgc-chat-modal-panel .dmgc-chat-welcome-icon {
  background:#252525 !important;
  background-color:#252525 !important;
  color:#e0e0e0 !important;
  border-color:#3a3a3a !important;
}
body .dmgc-chat-modal-panel input[type="search"] {
  color:#dedede !important;
  -webkit-text-fill-color:#dedede !important;
  background:#202020 !important;
  background-color:#202020 !important;
}
@media(max-width:760px){
  body .dmgc-chat-modal-panel .dmgc-chat-compose{gap:7px!important;padding:8px 10px!important;min-height:60px!important}
  body .dmgc-chat-modal-panel .dmgc-chat-compose button{flex-basis:34px!important;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important}
  body .dmgc-chat-modal-panel #dmgc-chat-compose textarea{min-height:38px!important;padding:8px 4px!important}
}

/* v0.5.7 — final monochrome header/avatar/close-button corrections */
body .dmgc-chat-modal-panel .dmgc-chat-conv-header,
body .dmgc-chat-modal-panel .dmgc-chat-conversation > .dmgc-chat-conv-header {
  background:#171717 !important;
  background-color:#171717 !important;
  background-image:none !important;
  border:1px solid #303030 !important;
  color:#e0e0e0 !important;
  box-sizing:border-box !important;
  margin:14px 58px 8px 16px !important;
  padding:12px 20px !important;
  min-height:78px !important;
  border-radius:28px !important;
  position:relative !important;
  transform:none !important;
}
/* Keep the avatar itself circular; remove theme-generated square behind it. */
body .dmgc-chat-modal-panel .dmgc-chat-avatar-wrap {
  background:transparent !important;
  background-color:transparent !important;
  border:0 !important;
  border-radius:50% !important;
  box-shadow:none !important;
  overflow:visible !important;
  flex:0 0 46px !important;
  width:46px !important;
  height:46px !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-avatar-wrap .dmgc-chat-avatar,
body .dmgc-chat-modal-panel #dmgc-chat-avatar {
  display:grid !important;
  place-items:center !important;
  width:46px !important;
  height:46px !important;
  min-width:46px !important;
  min-height:46px !important;
  flex:0 0 46px !important;
  border-radius:50% !important;
  overflow:hidden !important;
  background:#303030 !important;
  background-color:#303030 !important;
  background-image:none !important;
  border:1px solid #454545 !important;
  box-shadow:none !important;
  clip-path:circle(50%) !important;
}
body .dmgc-chat-modal-panel #dmgc-chat-avatar img,
body .dmgc-chat-modal-panel .dmgc-chat-avatar img {
  display:block !important;width:100% !important;height:100% !important;object-fit:cover !important;border-radius:50% !important;
}
/* Close control stays anchored and never rotates/shifts on hover or click. */
body .dmgc-chat-modal-panel #dmgc-chat-modal-close,
body .dmgc-chat-modal-panel .dmgc-chat-modal-close {
  position:absolute !important;
  top:14px !important;
  right:14px !important;
  z-index:20 !important;
  display:grid !important;
  place-items:center !important;
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  min-height:34px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  background-color:transparent !important;
  box-shadow:none !important;
  color:#d7d7d7 !important;
  font-size:25px !important;
  line-height:1 !important;
  transform:none !important;
  transition:color .15s ease !important;
  appearance:none !important;
  -webkit-appearance:none !important;
}
body .dmgc-chat-modal-panel #dmgc-chat-modal-close:hover,
body .dmgc-chat-modal-panel .dmgc-chat-modal-close:hover,
body .dmgc-chat-modal-panel #dmgc-chat-modal-close:focus,
body .dmgc-chat-modal-panel .dmgc-chat-modal-close:active {
  transform:none !important;
  background:transparent !important;
  background-color:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  color:#fff !important;
}
@media(max-width:760px){
 body .dmgc-chat-modal-panel .dmgc-chat-conv-header,
 body .dmgc-chat-modal-panel .dmgc-chat-conversation > .dmgc-chat-conv-header {margin:8px 42px 5px 8px!important;padding:8px 10px!important;min-height:64px!important;border-radius:20px!important}
 body .dmgc-chat-modal-panel .dmgc-chat-avatar-wrap,
 body .dmgc-chat-modal-panel .dmgc-chat-avatar-wrap .dmgc-chat-avatar,
 body .dmgc-chat-modal-panel #dmgc-chat-avatar {width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;flex-basis:38px!important}
 body .dmgc-chat-modal-panel #dmgc-chat-modal-close,
 body .dmgc-chat-modal-panel .dmgc-chat-modal-close {top:7px!important;right:7px!important;width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important}
}


/* v0.5.8 — header inset, clean borderless surface, visible rounded corners */
body .dmgc-chat-modal-panel .dmgc-chat-conv-header,
body .dmgc-chat-modal-panel .dmgc-chat-conversation > .dmgc-chat-conv-header {
  margin: 16px 76px 10px 20px !important;
  padding: 13px 22px !important;
  min-height: 78px !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 30px !important;
  background: #171717 !important;
  background-color: #171717 !important;
  background-image: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  position: relative !important;
  z-index: 2 !important;
  box-sizing: border-box !important;
}
/* Keep a clear inset from the close control so the header never appears merged into it. */
body .dmgc-chat-modal-panel #dmgc-chat-modal-close,
body .dmgc-chat-modal-panel .dmgc-chat-modal-close {
  top: 10px !important;
  right: 12px !important;
  z-index: 25 !important;
}
@media (max-width:760px) {
  body .dmgc-chat-modal-panel .dmgc-chat-conv-header,
  body .dmgc-chat-modal-panel .dmgc-chat-conversation > .dmgc-chat-conv-header {
    margin: 10px 48px 7px 10px !important;
    padding: 9px 12px !important;
    min-height: 64px !important;
    border: 0 !important;
    border-radius: 22px !important;
    background: #171717 !important;
    box-shadow: none !important;
  }
  body .dmgc-chat-modal-panel #dmgc-chat-modal-close,
  body .dmgc-chat-modal-panel .dmgc-chat-modal-close {
    top: 7px !important;
    right: 7px !important;
  }
}


/* v0.5.9: align header inset with composer and place send beside the input on its left */
body .dmgc-chat-modal-panel .dmgc-chat-conv-header,
body .dmgc-chat-modal-panel .dmgc-chat-conversation > .dmgc-chat-conv-header {
  margin-left:20px !important;
  padding-left:22px !important;
  box-sizing:border-box !important;
}
/* Composer controls stay grouped; send button sits immediately before the message field. */
body .dmgc-chat-modal-panel form.dmgc-chat-compose {
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  margin-left:20px !important;
  margin-right:20px !important;
  padding:10px 12px !important;
  background:#171717 !important;
  background-color:#171717 !important;
  border:1px solid #303030 !important;
  border-radius:24px !important;
  box-sizing:border-box !important;
}
body .dmgc-chat-modal-panel #dmgc-chat-compose #dmgc-chat-emoji,
body .dmgc-chat-modal-panel #dmgc-chat-compose #dmgc-chat-attach {
  order:1 !important;
  flex:0 0 36px !important;
  width:36px !important;
  min-width:36px !important;
  height:36px !important;
  min-height:36px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:8px !important;
  background:transparent !important;
  background-color:transparent !important;
  box-shadow:none !important;
  color:#c7c7c7 !important;
}
body .dmgc-chat-modal-panel #dmgc-chat-compose .dmgc-chat-send {
  order:2 !important;
  flex:0 0 38px !important;
  width:38px !important;
  min-width:38px !important;
  height:38px !important;
  min-height:38px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:50% !important;
  background:#292929 !important;
  background-color:#292929 !important;
  box-shadow:none !important;
  color:#eeeeee !important;
}
body .dmgc-chat-modal-panel #dmgc-chat-compose #dmgc-chat-text {
  order:3 !important;
  flex:1 1 auto !important;
  width:0 !important;
  min-width:0 !important;
  min-height:40px !important;
  padding:10px 8px !important;
  margin:0 !important;
  background:transparent !important;
  background-color:transparent !important;
  color:#ededed !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  resize:none !important;
}
body .dmgc-chat-modal-panel #dmgc-chat-compose #dmgc-chat-text::placeholder {
  color:#888 !important;
  opacity:1 !important;
}
@media(max-width:760px) {
  body .dmgc-chat-modal-panel form.dmgc-chat-compose {
    margin-left:10px !important;
    margin-right:10px !important;
    padding:7px 8px !important;
    gap:6px !important;
  }
  body .dmgc-chat-modal-panel #dmgc-chat-compose #dmgc-chat-emoji,
  body .dmgc-chat-modal-panel #dmgc-chat-compose #dmgc-chat-attach {
    flex-basis:30px !important;width:30px!important;min-width:30px!important;height:34px!important;
  }
  body .dmgc-chat-modal-panel #dmgc-chat-compose .dmgc-chat-send {
    flex-basis:34px!important;width:34px!important;min-width:34px!important;height:34px!important;
  }
}

/* v0.6.0 — compact conversation header and send button at composer right */
body .dmgc-chat-modal-panel .dmgc-chat-conv-header,
body .dmgc-chat-modal-panel .dmgc-chat-conversation > .dmgc-chat-conv-header {
  min-height:62px !important;
  height:auto !important;
  margin:8px 20px 6px 20px !important;
  padding:8px 16px !important;
  gap:10px !important;
  border:0 !important;
  border-radius:24px !important;
  background:#171717 !important;
  box-shadow:none !important;
  flex-shrink:0 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-conv-header .dmgc-chat-avatar-wrap,
body .dmgc-chat-modal-panel .dmgc-chat-conv-header .dmgc-chat-avatar-wrap .dmgc-chat-avatar {
  width:38px !important;
  height:38px !important;
  flex-basis:38px !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-conv-header #dmgc-chat-title {font-size:15px !important;line-height:1.25 !important}
body .dmgc-chat-modal-panel .dmgc-chat-conv-header #dmgc-chat-presence,
body .dmgc-chat-modal-panel .dmgc-chat-conv-header #dmgc-chat-subtitle {font-size:11px !important;line-height:1.25 !important}
/* Keep emoji and attachment on the left, text in the middle, and send control at far right. */
body .dmgc-chat-modal-panel #dmgc-chat-compose #dmgc-chat-emoji {order:1 !important}
body .dmgc-chat-modal-panel #dmgc-chat-compose #dmgc-chat-attach {order:2 !important}
body .dmgc-chat-modal-panel #dmgc-chat-compose #dmgc-chat-text {order:3 !important}
body .dmgc-chat-modal-panel #dmgc-chat-compose .dmgc-chat-send {
  order:4 !important;
  margin-left:auto !important;
  flex:0 0 38px !important;
  width:38px !important;
  min-width:38px !important;
  height:38px !important;
  min-height:38px !important;
  border-radius:50% !important;
  background:#292929 !important;
  color:#ededed !important;
}
@media(max-width:760px) {
  body .dmgc-chat-modal-panel .dmgc-chat-conv-header,
  body .dmgc-chat-modal-panel .dmgc-chat-conversation > .dmgc-chat-conv-header {
    min-height:56px !important;
    margin:7px 10px 5px 10px !important;
    padding:7px 11px !important;
    border-radius:20px !important;
    gap:8px !important;
  }
  body .dmgc-chat-modal-panel .dmgc-chat-conv-header .dmgc-chat-avatar-wrap,
  body .dmgc-chat-modal-panel .dmgc-chat-conv-header .dmgc-chat-avatar-wrap .dmgc-chat-avatar {
    width:34px !important;height:34px !important;flex-basis:34px !important;
  }
  body .dmgc-chat-modal-panel #dmgc-chat-compose .dmgc-chat-send {
    flex-basis:34px !important;width:34px !important;min-width:34px !important;height:34px !important;min-height:34px !important;
  }
}


/* v0.6.1 — keep the conversation header inset from BOTH popup edges.
   Explicit width + border-box prevents width:100% plus margins from overflowing. */
body .dmgc-chat-modal-panel .dmgc-chat-conv-header,
body .dmgc-chat-modal-panel .dmgc-chat-conversation > .dmgc-chat-conv-header {
  display:flex !important;
  box-sizing:border-box !important;
  width:calc(100% - 40px) !important;
  max-width:calc(100% - 40px) !important;
  min-width:0 !important;
  margin-left:20px !important;
  margin-right:20px !important;
  overflow:hidden !important;
  border-radius:24px !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-conv-header > *,
body .dmgc-chat-modal-panel .dmgc-chat-conversation > .dmgc-chat-conv-header > * {
  min-width:0;
}
@media(max-width:760px) {
  body .dmgc-chat-modal-panel .dmgc-chat-conv-header,
  body .dmgc-chat-modal-panel .dmgc-chat-conversation > .dmgc-chat-conv-header {
    width:calc(100% - 20px) !important;
    max-width:calc(100% - 20px) !important;
    margin-left:10px !important;
    margin-right:10px !important;
    border-radius:20px !important;
  }
}


/* v0.6.2 — draggable floating chat bubble, centered avatar, stable close control */
body .dmgc-chat-popup-root .dmgc-chat-launcher {
  position:fixed !important; right:24px; bottom:24px; left:auto; top:auto;
  display:grid !important; place-items:center !important;
  width:58px !important; min-width:58px !important; max-width:58px !important;
  height:58px !important; min-height:58px !important; max-height:58px !important;
  padding:0 !important; margin:0 !important; gap:0 !important;
  border:1px solid #353535 !important; border-radius:50% !important;
  background:#171717 !important; color:#c5d2dc !important;
  box-shadow:0 8px 28px rgba(0,0,0,.42) !important;
  cursor:grab !important; touch-action:none !important; user-select:none !important;
  transition:background .16s ease, box-shadow .16s ease !important;
  z-index:100000 !important;
}
body .dmgc-chat-popup-root .dmgc-chat-launcher:active {cursor:grabbing !important; transform:none !important}
body .dmgc-chat-popup-root .dmgc-chat-launcher:hover {background:#242424 !important; transform:none !important; box-shadow:0 10px 32px rgba(0,0,0,.5) !important}
body .dmgc-chat-popup-root .dmgc-chat-launcher.is-dragged {transition:none !important}
body .dmgc-chat-popup-root .dmgc-chat-launcher .dmgc-chat-launcher-icon {
  display:block !important; width:31px !important; height:31px !important;
  margin:0 !important; padding:0 !important; border:0 !important; border-radius:0 !important;
  background:transparent !important; color:#b8d5e8 !important; font-size:0 !important;
}
body .dmgc-chat-popup-root .dmgc-chat-launcher-badge {
  position:absolute !important; top:-3px !important; right:-3px !important;
  display:grid; place-items:center; min-width:19px !important; height:19px !important;
  padding:0 4px !important; border:1px solid #171717 !important; border-radius:99px !important;
  background:#d9d9d9 !important; color:#171717 !important; font-size:10px !important;
}
body .dmgc-chat-popup-root .dmgc-chat-launcher-badge[hidden] {display:none !important}
/* Center the avatar circle itself; prevent theme styles from adding a square behind it. */
body .dmgc-chat-modal-panel .dmgc-chat-conv-header .dmgc-chat-avatar-wrap {
  position:relative !important; display:grid !important; place-items:center !important;
  flex:0 0 46px !important; width:46px !important; height:46px !important;
  padding:0 !important; margin:0 !important; background:transparent !important;
  border:0 !important; border-radius:50% !important; overflow:visible !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-conv-header .dmgc-chat-avatar-wrap .dmgc-chat-avatar {
  display:grid !important; place-items:center !important; position:relative !important;
  width:42px !important; height:42px !important; flex:0 0 42px !important;
  margin:0 auto !important; padding:0 !important; border-radius:50% !important;
  overflow:hidden !important; background:#292929 !important; border:0 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-conv-header .dmgc-chat-avatar img {
  display:block !important; width:100% !important; height:100% !important;
  max-width:none !important; object-fit:cover !important; border:0 !important;
  border-radius:50% !important; margin:0 !important; padding:0 !important;
  background:transparent !important; box-shadow:none !important;
}
/* Close X stays anchored to the modal panel and never shifts on hover/focus/click. */
body .dmgc-chat-modal-panel > #dmgc-chat-modal-close,
body .dmgc-chat-modal-panel > .dmgc-chat-modal-close {
  position:absolute !important; top:10px !important; right:10px !important;
  left:auto !important; bottom:auto !important; z-index:100 !important;
  display:grid !important; place-items:center !important;
  width:34px !important; min-width:34px !important; max-width:34px !important;
  height:34px !important; min-height:34px !important; max-height:34px !important;
  margin:0 !important; padding:0 !important; line-height:1 !important;
  border:0 !important; border-radius:0 !important; background:transparent !important;
  box-shadow:none !important; transform:none !important; transition:color .15s ease !important;
  color:#d5d5d5 !important; cursor:pointer !important;
}
body .dmgc-chat-modal-panel > #dmgc-chat-modal-close:hover,
body .dmgc-chat-modal-panel > .dmgc-chat-modal-close:hover,
body .dmgc-chat-modal-panel > #dmgc-chat-modal-close:focus,
body .dmgc-chat-modal-panel > .dmgc-chat-modal-close:active {transform:none !important;background:transparent !important;box-shadow:none !important;color:#fff !important;outline-offset:2px}
@media(max-width:760px){
 body .dmgc-chat-popup-root .dmgc-chat-launcher {width:54px!important;min-width:54px!important;height:54px!important;min-height:54px!important}
 body .dmgc-chat-modal-panel > #dmgc-chat-modal-close, body .dmgc-chat-modal-panel > .dmgc-chat-modal-close {top:8px!important;right:8px!important}
}


/* v0.6.3 — WhatsApp-style emoji picker, royal-yellow accents, compact composer and reliable send control */
body .dmgc-chat-modal-panel,
body .dmgc-chat-modal-panel .dmgc-chat-app {
  --dc-bg:#080808 !important;
  --dc-panel:#151515 !important;
  --dc-panel2:#202020 !important;
  --dc-border:#333333 !important;
  --dc-green:#ffd21f !important;
  --dc-text:#f4f4f4 !important;
  --dc-muted:#a7a7a7 !important;
  background:#080808 !important;
  color:#f4f4f4 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-sidebar,
body .dmgc-chat-modal-panel .dmgc-chat-conv-header {background:#151515 !important;}
body .dmgc-chat-modal-panel .dmgc-chat-tabs button.active,
body .dmgc-chat-modal-panel .dmgc-chat-list-item:hover,
body .dmgc-chat-modal-panel .dmgc-chat-list-item.selected,
body .dmgc-chat-modal-panel .dmgc-chat-player-result:hover {background:#242424 !important;color:#f4f4f4 !important;}
body .dmgc-chat-modal-panel .dmgc-chat-mark {background:#ffd21f !important;color:#111 !important;}
body .dmgc-chat-modal-panel #dmgc-chat-compose {
  display:flex !important; align-items:center !important; gap:8px !important;
  min-height:58px !important; height:auto !important; margin:0 18px 0 !important;
  padding:7px 9px !important; border:1px solid #343434 !important;
  border-radius:18px !important; background:#171717 !important;
  box-shadow:none !important; position:relative !important;
}
body .dmgc-chat-modal-panel #dmgc-chat-compose textarea,
body .dmgc-chat-modal-panel #dmgc-chat-text {
  display:block !important; order:3 !important; flex:1 1 auto !important;
  width:100% !important; min-width:0 !important; min-height:34px !important;
  max-height:100px !important; height:34px !important; margin:0 !important;
  padding:8px 10px !important; border:0 !important; border-radius:10px !important;
  outline:0 !important; background:#171717 !important; color:#f5f5f5 !important;
  box-shadow:none !important; resize:none !important; line-height:1.3 !important;
  font:14px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif !important;
}
body .dmgc-chat-modal-panel #dmgc-chat-text::placeholder {color:#929292 !important;opacity:1 !important;}
body .dmgc-chat-modal-panel #dmgc-chat-text:focus {background:#171717 !important;outline:none !important;box-shadow:none !important;}
body .dmgc-chat-modal-panel #dmgc-chat-compose #dmgc-chat-emoji,
body .dmgc-chat-modal-panel #dmgc-chat-compose #dmgc-chat-attach {
  display:grid !important; place-items:center !important; order:1 !important;
  flex:0 0 34px !important; width:34px !important; min-width:34px !important;
  height:34px !important; min-height:34px !important; padding:0 !important;
  margin:0 !important; border:0 !important; border-radius:50% !important;
  background:transparent !important; color:#ffd21f !important; font-size:21px !important;
  box-shadow:none !important;
}
body .dmgc-chat-modal-panel #dmgc-chat-compose #dmgc-chat-attach {order:2 !important;}
body .dmgc-chat-modal-panel #dmgc-chat-compose .dmgc-chat-send {
  display:grid !important; place-items:center !important; order:4 !important;
  flex:0 0 38px !important; width:38px !important; min-width:38px !important;
  height:38px !important; min-height:38px !important; padding:0 !important;
  margin:0 0 0 auto !important; border:0 !important; border-radius:50% !important;
  background:#ffd21f !important; color:#101010 !important; font-size:21px !important;
  line-height:1 !important; box-shadow:none !important; cursor:pointer !important;
}
body .dmgc-chat-modal-panel #dmgc-chat-compose .dmgc-chat-send:hover {background:#ffe15a !important;}
body .dmgc-chat-modal-panel #dmgc-chat-compose .dmgc-chat-send:disabled {opacity:.55 !important;}
body .dmgc-chat-modal-panel #dmgc-chat-upload-status {min-height:0; margin:0 20px; color:#bcbcbc !important;font-size:11px !important;}
body .dmgc-chat-modal-panel .dmgc-chat-footnote {color:#858585 !important;}
/* Emoji picker is a real popover, not the browser's prompt dialog. */
body .dmgc-chat-modal-panel .dmgc-chat-emoji-picker {
  display:none; position:absolute; z-index:100020; left:20px; bottom:88px;
  width:min(360px,calc(100% - 40px)); max-height:min(410px,65vh);
  padding:12px; overflow:hidden; border:1px solid #343434; border-radius:16px;
  background:#1c1c1c; color:#f5f5f5; box-shadow:0 16px 50px rgba(0,0,0,.55);
}
body .dmgc-chat-modal-panel .dmgc-chat-emoji-picker.is-open {display:block;}
body .dmgc-chat-modal-panel .dmgc-chat-emoji-tabs {display:flex;gap:5px;align-items:center;margin-bottom:10px;overflow-x:auto;}
body .dmgc-chat-modal-panel .dmgc-chat-emoji-tabs button {
  flex:0 0 34px;width:34px;height:32px;padding:0;border:0;border-radius:8px;
  background:transparent;color:#aaa;font-size:18px;cursor:pointer;
}
body .dmgc-chat-modal-panel .dmgc-chat-emoji-tabs button.active {background:#303030;color:#ffd21f;}
body .dmgc-chat-modal-panel .dmgc-chat-emoji-search {
  width:100%;height:38px;margin:0 0 10px;padding:0 12px;border:1px solid #444;
  border-radius:10px;background:#121212;color:#f5f5f5;outline:none;
}
body .dmgc-chat-modal-panel .dmgc-chat-emoji-label {margin:2px 0 8px;color:#c8c8c8;font-size:12px;font-weight:700;}
body .dmgc-chat-modal-panel .dmgc-chat-emoji-grid {
  display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;max-height:250px;overflow:auto;
}
body .dmgc-chat-modal-panel .dmgc-chat-emoji-choice {
  display:grid;place-items:center;min-width:0;height:34px;padding:0;border:0;border-radius:8px;
  background:transparent;color:#fff;font-size:22px;cursor:pointer;
}
body .dmgc-chat-modal-panel .dmgc-chat-emoji-choice:hover {background:#333;}
@media(max-width:760px) {
 body .dmgc-chat-modal-panel #dmgc-chat-compose {margin:0 8px 0 !important;padding:6px !important;gap:4px !important;min-height:52px !important;}
 body .dmgc-chat-modal-panel #dmgc-chat-compose #dmgc-chat-emoji,
 body .dmgc-chat-modal-panel #dmgc-chat-compose #dmgc-chat-attach {flex-basis:30px!important;width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;}
 body .dmgc-chat-modal-panel #dmgc-chat-compose .dmgc-chat-send {flex-basis:34px!important;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;}
 body .dmgc-chat-modal-panel .dmgc-chat-emoji-picker {left:8px;bottom:72px;width:calc(100% - 16px);}
 body .dmgc-chat-modal-panel .dmgc-chat-emoji-grid {grid-template-columns:repeat(7,minmax(0,1fr));}
}

/* v0.6.5 — compact WhatsApp-style bubbles and royal orange/yellow accents */
body .dmgc-chat-modal-panel,
body .dmgc-chat-modal-panel .dmgc-chat-app {
  --dc-bg:#080808 !important;
  --dc-panel:#151515 !important;
  --dc-panel2:#222222 !important;
  --dc-border:#333333 !important;
  --dc-green:#ffd12f !important;
  --dc-text:#f5f5f5 !important;
  --dc-muted:#a5a5a5 !important;
}
/* Make every message bubble size to its content instead of stretching like a card. */
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row {
  display:flex !important;
  width:100% !important;
  min-width:0 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble {
  display:inline-block !important;
  flex:0 1 auto !important;
  width:fit-content !important;
  min-width:0 !important;
  max-width:min(72%,420px) !important;
  padding:8px 11px 6px !important;
  border-radius:13px 13px 13px 4px !important;
  background:#222222 !important;
  border:1px solid #353535 !important;
  color:#f2f2f2 !important;
  font-size:13px !important;
  line-height:1.4 !important;
  overflow-wrap:anywhere !important;
  box-shadow:none !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.mine {justify-content:flex-end !important;}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.mine .dmgc-chat-bubble {
  width:fit-content !important;
  max-width:min(72%,420px) !important;
  background:linear-gradient(135deg,#ffd12f 0%,#ffb52e 100%) !important;
  border:1px solid #f0a91b !important;
  border-radius:13px 13px 4px 13px !important;
  color:#1b1608 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.mine .dmgc-chat-bubble small,
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.mine .dmgc-chat-bubble time,
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.mine .dmgc-chat-receipt {
  color:#4a3500 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.theirs .dmgc-chat-bubble small,
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.theirs .dmgc-chat-bubble time {color:#b9b9b9 !important;}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.mine .dmgc-chat-message-tools button {
  color:#f5c12b !important;
}
/* Consistent royal-yellow/orange accent across the controls shown in the user's screenshots. */
body .dmgc-chat-modal-panel .dmgc-chat-mark,
body .dmgc-chat-modal-panel .dmgc-chat-unread,
body .dmgc-chat-modal-panel .dmgc-chat-team-btn,
body .dmgc-chat-modal-panel #dmgc-chat-profile-settings,
body .dmgc-chat-modal-panel #dmgc-chat-find-players,
body .dmgc-chat-modal-panel #dmgc-chat-compose #dmgc-chat-emoji,
body .dmgc-chat-modal-panel #dmgc-chat-compose #dmgc-chat-attach,
body .dmgc-chat-modal-panel #dmgc-chat-compose .dmgc-chat-send,
body .dmgc-chat-modal-panel .dmgc-chat-header-actions button,
body .dmgc-chat-modal-panel .dmgc-chat-modal-close {
  --accent-yellow:#ffd12f;
  color:#ffd12f !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-mark,
body .dmgc-chat-modal-panel .dmgc-chat-unread,
body .dmgc-chat-modal-panel #dmgc-chat-compose .dmgc-chat-send {
  background:#ffd12f !important;
  color:#17130a !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-team-btn {
  background:#242018 !important;
  border:1px solid #6c5315 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-tabs button.active,
body .dmgc-chat-modal-panel .dmgc-chat-list-item:hover,
body .dmgc-chat-modal-panel .dmgc-chat-list-item.selected,
body .dmgc-chat-modal-panel .dmgc-chat-player-result:hover,
body .dmgc-chat-modal-panel .dmgc-chat-profile-settings:hover,
body .dmgc-chat-modal-panel .dmgc-chat-header-actions button:hover {
  background:#292318 !important;
  border-color:#6c5315 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-conv-header,
body .dmgc-chat-modal-panel .dmgc-chat-sidebar {background:#141414 !important;}
body .dmgc-chat-modal-panel .dmgc-chat-main {background:#080808 !important;}
body .dmgc-chat-modal-panel .dmgc-chat-compose {background:#171717 !important;border-color:#363636 !important;}
body .dmgc-chat-modal-panel #dmgc-chat-text,
body .dmgc-chat-modal-panel #dmgc-chat-compose textarea {background:transparent !important;color:#f5f5f5 !important;}
body .dmgc-chat-modal-panel #dmgc-chat-text::placeholder {color:#929292 !important;}
body .dmgc-chat-modal-panel .dmgc-chat-emoji-tabs button.active {background:#342b16 !important;color:#ffd12f !important;}
body .dmgc-chat-modal-panel .dmgc-chat-emoji-choice:hover {background:#332918 !important;}
@media(max-width:760px) {
  body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble,
  body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.mine .dmgc-chat-bubble {max-width:82% !important;padding:8px 10px 6px !important;}
}


/* v0.6.6: translucent royal amber sent bubbles and a single-line message footer. */
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.mine .dmgc-chat-bubble {
  background: linear-gradient(135deg, rgba(255, 190, 42, .16), rgba(255, 145, 24, .12)) !important;
  border: 1px solid rgba(219, 157, 25, .48) !important;
  color: #f5f1e7 !important;
  box-shadow: inset 0 1px 0 rgba(255, 205, 75, .05) !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.mine .dmgc-chat-bubble-meta,
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.theirs .dmgc-chat-bubble-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 5px !important;
  width: 100% !important;
  margin-top: 5px !important;
  min-height: 13px !important;
  line-height: 1 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-meta time {
  display: inline !important;
  margin: 0 !important;
  text-align: right !important;
  line-height: 1 !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  color: #b9b9b9 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.mine .dmgc-chat-bubble-meta time,
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.mine .dmgc-chat-bubble-meta .dmgc-chat-receipt {
  color: #e5b94c !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.theirs .dmgc-chat-bubble-meta .dmgc-chat-receipt {
  color: #b9b9b9 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.theirs .dmgc-chat-bubble > small:first-child:not(.dmgc-chat-edited) {
  display: none !important;
}


/* v0.6.7: compact WhatsApp-style inline message footer. Keep short text, edited label, time and tick on one line. */
body .dmgc-chat-modal-panel .dmgc-chat-bubble .dmgc-chat-message-text {
  display:inline !important;
  white-space:pre-wrap !important;
  overflow-wrap:anywhere !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble .dmgc-chat-edited {
  display:inline !important;
  margin:0 0 0 5px !important;
  color:#9a7a22 !important;
  font-size:10px !important;
  font-weight:400 !important;
  line-height:1 !important;
  vertical-align:baseline !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble .dmgc-chat-bubble-meta {
  display:inline-flex !important;
  width:auto !important;
  min-height:0 !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:4px !important;
  margin:0 0 0 12px !important;
  padding:0 !important;
  vertical-align:baseline !important;
  white-space:nowrap !important;
  line-height:1 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble .dmgc-chat-bubble-meta time {
  display:inline !important;
  margin:0 !important;
  font-size:10px !important;
  line-height:1 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble .dmgc-chat-message-tools,
body .dmgc-chat-modal-panel .dmgc-chat-bubble .dmgc-chat-reactions {
  display:flex;
  width:100%;
}
/* Keep attachments/deleted-message labels on their own row when needed. */
body .dmgc-chat-modal-panel .dmgc-chat-bubble .dmgc-chat-attachment-image,
body .dmgc-chat-modal-panel .dmgc-chat-bubble .dmgc-chat-attachment-file,
body .dmgc-chat-modal-panel .dmgc-chat-bubble .dmgc-chat-deleted {
  display:block;
}


/* v0.6.8 FIX: previous v0.6.6 rules had equal/higher specificity and forced the
   metadata footer to width:100% with a top margin. Override them explicitly. */
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble {
  display: inline-block !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: min(72%, 420px) !important;
  padding: 8px 11px !important;
  vertical-align: top !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-message-text {
  display: inline !important;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-edited {
  display: inline !important;
  margin: 0 0 0 4px !important;
  vertical-align: baseline !important;
  line-height: 1 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-bubble-meta {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  margin: 0 0 0 8px !important;
  padding: 0 !important;
  vertical-align: baseline !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-bubble-meta time {
  display: inline !important;
  margin: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-bubble-meta .dmgc-chat-receipt {
  display: inline !important;
  margin: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-message-tools,
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-reactions {
  display: flex !important;
  width: 100% !important;
}
@media (max-width: 760px) {
  body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble,
  body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.mine .dmgc-chat-bubble {
    max-width: 82% !important;
    padding: 8px 10px !important;
  }
}


/* v0.6.9: align the message timestamp and receipt to the bubble's right edge,
   while preserving a compact single-line WhatsApp-style short message. */
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: baseline !important;
  column-gap: 14px !important;
  width: max-content !important;
  min-width: 238px !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-message-text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-bubble-meta {
  margin-left: auto !important;
  flex: 0 0 auto !important;
  justify-self: end !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-edited {
  flex: 0 0 auto !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-message-tools,
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-reactions,
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-attachment-image,
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-attachment-file,
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-deleted,
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-reply-ref {
  flex-basis: 100% !important;
}
@media (max-width: 760px) {
  body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble,
  body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.mine .dmgc-chat-bubble {
    min-width: 210px !important;
  }
}


/* v0.7.0: keep the timestamp/tick close to short message text.
   Remove the previous fixed minimum bubble width while preserving right-side order. */
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: baseline !important;
  column-gap: 8px !important;
  row-gap: 2px !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: min(72%, 420px) !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-message-text {
  flex: 0 1 auto !important;
  min-width: 0 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-bubble-meta {
  margin-left: 0 !important;
  flex: 0 0 auto !important;
  justify-self: auto !important;
}
@media (max-width: 760px) {
  body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble,
  body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.mine .dmgc-chat-bubble {
    min-width: 0 !important;
    max-width: 82% !important;
  }
}

/* v0.7.1: keep action controls out of the bubble's sizing calculation.
   Hidden Reply/React/Edit/Delete controls previously had flex-basis:100%,
   which forced even a short 'hello' bubble to expand to their full width. */
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble {
  position: relative !important;
  display: inline-flex !important;
  flex-flow: row wrap !important;
  align-items: baseline !important;
  column-gap: 8px !important;
  row-gap: 2px !important;
  width: fit-content !important;
  min-width: 0 !important;
  max-width: min(72%, 420px) !important;
  box-sizing: border-box !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-message-text {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-bubble-meta {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 0 0 8px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  white-space: nowrap !important;
}
/* Action/reaction rows float below the bubble on hover/long-press, so they never
   set the message bubble's width while hidden. */
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-message-tools,
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-reactions {
  position: absolute !important;
  top: calc(100% + 5px) !important;
  left: 0 !important;
  right: auto !important;
  z-index: 8 !important;
  width: max-content !important;
  max-width: min(85vw, 280px) !important;
  flex-basis: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.mine .dmgc-chat-bubble .dmgc-chat-message-tools,
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.mine .dmgc-chat-bubble .dmgc-chat-reactions {
  left: auto !important;
  right: 0 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-message-tools {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  max-height: 0 !important;
  overflow: hidden !important;
  transition: opacity .14s ease !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row:hover .dmgc-chat-bubble .dmgc-chat-message-tools,
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row:focus-within .dmgc-chat-bubble .dmgc-chat-message-tools,
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.show-tools .dmgc-chat-bubble .dmgc-chat-message-tools {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  max-height: 100px !important;
  overflow: visible !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-reactions:empty {
  display: none !important;
}
@media (max-width: 760px) {
  body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble,
  body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.mine .dmgc-chat-bubble {
    min-width: 0 !important;
    max-width: 82% !important;
  }
}


/* v0.7.2: pointer can travel from the compact bubble to its floating actions. */
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.show-tools .dmgc-chat-bubble .dmgc-chat-message-tools,
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.show-tools .dmgc-chat-bubble .dmgc-chat-reactions {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  max-height: 120px !important;
  overflow: visible !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-message-tools,
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-reactions {
  transition: opacity .14s ease, visibility .14s ease !important;
}


/* v0.7.3: one message toolbar at a time; reserve real vertical space below the active row. */
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row {
  position: relative !important;
  flex: 0 0 auto !important;
  margin-bottom: 0 !important;
  z-index: 1 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.show-tools {
  margin-bottom: 36px !important;
  z-index: 12 !important;
}
/* Do not reveal tools from :hover alone: overlapping hit areas used to open several rows. */
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-message-tools {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.show-tools .dmgc-chat-bubble .dmgc-chat-message-tools,
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row:focus-within .dmgc-chat-bubble .dmgc-chat-message-tools {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row .dmgc-chat-bubble .dmgc-chat-reactions {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.show-tools .dmgc-chat-bubble .dmgc-chat-reactions,
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row:focus-within .dmgc-chat-bubble .dmgc-chat-reactions {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
@media (hover: none) {
  body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.show-tools { margin-bottom: 40px !important; }
}


/* v0.7.4 — mobile-first conversation navigation and single-instance layout.
   Desktop rules intentionally remain untouched. */
@media (max-width:760px) {
  body .dmgc-chat-modal[hidden] { display:none !important; }
  body .dmgc-chat-modal:not([hidden]) {
    position:fixed !important; inset:0 !important; z-index:999999 !important;
    display:flex !important; align-items:stretch !important; justify-content:stretch !important;
    padding:0 !important; margin:0 !important; width:100% !important; height:100% !important;
    height:100dvh !important; overflow:hidden !important;
  }
  body .dmgc-chat-modal .dmgc-chat-modal-backdrop { position:absolute !important; inset:0 !important; }
  body .dmgc-chat-modal .dmgc-chat-modal-panel {
    position:relative !important; z-index:1 !important; display:block !important;
    width:100% !important; max-width:none !important; height:100% !important; height:100dvh !important;
    max-height:100% !important; min-height:0 !important; margin:0 !important;
    border:0 !important; border-radius:0 !important; overflow:hidden !important;
  }
  body .dmgc-chat-modal .dmgc-chat-app {
    display:grid !important; grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:minmax(0,1fr) !important; width:100% !important; height:100% !important;
    min-height:0 !important; max-height:none !important; overflow:hidden !important; border-radius:0 !important;
  }
  body .dmgc-chat-modal .dmgc-chat-sidebar {
    display:flex !important; flex-direction:column !important; width:100% !important;
    height:100% !important; max-height:none !important; min-height:0 !important;
    overflow:hidden !important; border:0 !important; padding:10px 12px max(12px, env(safe-area-inset-bottom)) !important;
  }
  body .dmgc-chat-modal .dmgc-chat-brand { flex:0 0 auto !important; padding:8px 44px 12px 4px !important; }
  body .dmgc-chat-modal .dmgc-chat-brand small { display:block !important; }
  body .dmgc-chat-modal .dmgc-chat-search-row { flex:0 0 auto !important; display:flex !important; gap:8px !important; padding:12px 0 7px !important; }
  body .dmgc-chat-modal .dmgc-chat-search { flex:1 1 auto !important; min-width:0 !important; padding:0 !important; }
  body .dmgc-chat-modal .dmgc-chat-search input { width:100% !important; min-height:48px !important; font-size:16px !important; }
  body .dmgc-chat-modal .dmgc-chat-find-players { flex:0 0 44px !important; width:44px !important; min-width:44px !important; height:44px !important; }
  body .dmgc-chat-modal .dmgc-chat-view-label { flex:0 0 auto !important; padding:8px 4px !important; }
  body .dmgc-chat-modal .dmgc-chat-list {
    display:block !important; flex:1 1 auto !important; min-height:0 !important; height:auto !important;
    max-height:none !important; overflow-y:auto !important; overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch !important; padding:0 0 10px !important;
  }
  body .dmgc-chat-modal .dmgc-chat-list-item,
  body .dmgc-chat-modal .dmgc-chat-player-result {
    display:flex !important; width:100% !important; min-height:68px !important; flex:0 0 auto !important;
    margin:3px 0 !important; padding:9px 10px !important; border-radius:16px !important;
  }
  body .dmgc-chat-modal .dmgc-chat-list-avatar { flex:0 0 44px !important; width:44px !important; height:44px !important; }
  body .dmgc-chat-modal .dmgc-chat-list-copy { min-width:0 !important; flex:1 1 auto !important; }
  body .dmgc-chat-modal .dmgc-chat-team-btn { flex:0 0 auto !important; width:100% !important; margin:8px 0 10px !important; min-height:48px !important; }
  body .dmgc-chat-modal .dmgc-chat-self-card { flex:0 0 auto !important; margin:0 !important; }
  body .dmgc-chat-modal .dmgc-chat-main { display:none !important; min-width:0 !important; width:100% !important; height:100% !important; min-height:0 !important; }
  body .dmgc-chat-modal .dmgc-chat-app.dmgc-mobile-chat-open .dmgc-chat-sidebar { display:none !important; }
  body .dmgc-chat-modal .dmgc-chat-app.dmgc-mobile-chat-open .dmgc-chat-main { display:flex !important; flex-direction:column !important; }
  body .dmgc-chat-modal .dmgc-chat-main .dmgc-chat-welcome { display:none !important; }
  body .dmgc-chat-modal .dmgc-chat-conversation { display:flex !important; flex-direction:column !important; width:100% !important; height:100% !important; min-height:0 !important; }
  body .dmgc-chat-modal .dmgc-chat-conversation[hidden] { display:none !important; }
  body .dmgc-chat-modal .dmgc-chat-conv-header {
    flex:0 0 auto !important; width:auto !important; margin:8px 44px 6px 8px !important;
    min-height:64px !important; padding:8px 10px !important; border-radius:18px !important;
  }
  body .dmgc-chat-modal .dmgc-chat-back { display:flex !important; flex:0 0 34px !important; width:34px !important; min-width:34px !important; height:38px !important; }
  body .dmgc-chat-modal .dmgc-chat-conv-person { min-width:0 !important; flex:1 1 auto !important; }
  body .dmgc-chat-modal .dmgc-chat-header-actions { flex:0 0 auto !important; gap:3px !important; }
  body .dmgc-chat-modal .dmgc-chat-header-actions button { width:30px !important; min-width:30px !important; height:34px !important; padding:2px !important; }
  body .dmgc-chat-modal .dmgc-chat-messages { flex:1 1 auto !important; min-height:0 !important; overflow-y:auto !important; -webkit-overflow-scrolling:touch !important; padding:14px 10px !important; }
  body .dmgc-chat-modal .dmgc-chat-compose { flex:0 0 auto !important; margin:0 8px !important; padding:7px 8px !important; gap:6px !important; }
  body .dmgc-chat-modal .dmgc-chat-compose textarea { min-width:0 !important; font-size:16px !important; }
  body .dmgc-chat-modal .dmgc-chat-footnote { flex:0 0 auto !important; padding:5px 8px max(8px, env(safe-area-inset-bottom)) !important; }
  body .dmgc-chat-modal .dmgc-chat-modal-close { position:absolute !important; top:8px !important; right:8px !important; z-index:10 !important; }
}


/* v0.7.5 — WhatsApp-style conversation time and background scroll lock. */
html.dmgc-chat-scroll-locked { overflow: hidden !important; overscroll-behavior: none !important; }
body.dmgc-chat-modal-open { overflow: hidden !important; overscroll-behavior: none !important; }
.dmgc-chat-modal:not([hidden]) { overscroll-behavior: contain; }
.dmgc-chat-modal-panel { overscroll-behavior: contain; }
.dmgc-chat-list-copy { display:flex !important; flex-direction:column !important; gap:3px !important; }
.dmgc-chat-list-top { display:flex !important; align-items:center !important; justify-content:space-between !important; gap:10px !important; min-width:0 !important; width:100% !important; }
.dmgc-chat-list-top strong { flex:1 1 auto !important; min-width:0 !important; margin:0 !important; }
.dmgc-chat-list-time { flex:0 0 auto !important; margin:0 !important; color:#a3a3a3 !important; font-size:11px !important; line-height:1.2 !important; font-weight:400 !important; white-space:nowrap !important; }
.dmgc-chat-list-copy small { display:block !important; width:100% !important; max-width:none !important; margin:0 !important; white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important; }
.dmgc-chat-list-item { gap:11px !important; }
@media (max-width:760px) {
  body.dmgc-chat-modal-open { touch-action: none; }
  body.dmgc-chat-modal-open .dmgc-chat-modal { touch-action: pan-y; }
  body.dmgc-chat-modal-open .dmgc-chat-messages, body.dmgc-chat-modal-open .dmgc-chat-list { overscroll-behavior: contain !important; }
  .dmgc-chat-list-time { font-size:11px !important; }
}


/* v0.7.6 — keep the desktop chat popup below the site's top header. Mobile remains full-screen. */
@media (min-width:761px) {
  body .dmgc-chat-modal:not([hidden]) {
    align-items:flex-start !important;
    padding:calc(var(--dmgc-chat-top-offset, 0px) + 16px) 28px 16px !important;
    box-sizing:border-box !important;
  }
  body .dmgc-chat-modal:not([hidden]) .dmgc-chat-modal-panel {
    height:min(820px, calc(100vh - var(--dmgc-chat-top-offset, 0px) - 32px)) !important;
    max-height:calc(100vh - var(--dmgc-chat-top-offset, 0px) - 32px) !important;
    min-height:min(460px, calc(100vh - var(--dmgc-chat-top-offset, 0px) - 32px)) !important;
    flex:0 1 auto !important;
  }
}


/* v0.7.7 — mobile flat full-width conversation header and consolidated options menu. */
.dmgc-chat-conversation { position:relative; }
.dmgc-chat-more-menu[hidden] { display:none !important; }
.dmgc-chat-more-menu {
  position:absolute; z-index:100; top:calc(var(--dmgc-chat-header-height, 82px) - 4px); right:18px;
  display:flex; flex-direction:column; min-width:190px; padding:6px;
  background:#202020; border:1px solid #3a3a3a; border-radius:13px;
  box-shadow:0 12px 32px rgba(0,0,0,.45);
}
.dmgc-chat-more-menu button {
  display:block; width:100%; text-align:left; padding:11px 13px; border:0; border-radius:8px;
  background:transparent; color:#f1f1f1; font-size:14px; cursor:pointer;
}
.dmgc-chat-more-menu button:hover,.dmgc-chat-more-menu button:focus-visible { background:#302919; color:#ffd12f; }
@media (max-width:760px) {
  body .dmgc-chat-modal .dmgc-chat-conv-header {
    box-sizing:border-box !important; width:100% !important; max-width:none !important;
    margin:0 !important; border-radius:0 !important; border-left:0 !important; border-right:0 !important;
    border-top:0 !important; border-bottom:1px solid #292929 !important;
    min-height:82px !important; padding:10px 48px 10px 12px !important; gap:8px !important;
    background:#111111 !important; box-shadow:none !important;
  }
  body .dmgc-chat-modal .dmgc-chat-conversation { overflow:hidden !important; }
  body .dmgc-chat-modal .dmgc-chat-conv-header .dmgc-chat-back { border-radius:10px !important; flex:0 0 34px !important; }
  body .dmgc-chat-modal .dmgc-chat-conv-header .dmgc-chat-avatar-wrap,
  body .dmgc-chat-modal .dmgc-chat-conv-header .dmgc-chat-avatar-wrap .dmgc-chat-avatar { width:38px !important; height:38px !important; flex-basis:38px !important; }
  body .dmgc-chat-modal .dmgc-chat-conv-person { flex:1 1 0 !important; min-width:0 !important; }
  body .dmgc-chat-modal .dmgc-chat-conv-person strong { font-size:14px !important; }
  body .dmgc-chat-modal .dmgc-chat-status-line { display:flex !important; flex-direction:column !important; align-items:flex-start !important; gap:2px !important; }
  body .dmgc-chat-modal .dmgc-chat-status-line small { border-left:0 !important; padding-left:0 !important; }
  body .dmgc-chat-modal .dmgc-chat-header-actions { flex:0 0 34px !important; width:34px !important; margin-left:auto !important; }
  body .dmgc-chat-modal .dmgc-chat-header-actions #dmgc-chat-search-toggle,
  body .dmgc-chat-modal .dmgc-chat-header-actions #dmgc-chat-pin { display:none !important; }
  body .dmgc-chat-modal .dmgc-chat-header-actions #dmgc-chat-block { display:grid !important; width:34px !important; min-width:34px !important; height:38px !important; padding:0 !important; border:0 !important; background:transparent !important; color:#ffd12f !important; font-size:25px !important; }
  body .dmgc-chat-modal .dmgc-chat-more-menu { position:absolute !important; top:72px !important; right:12px !important; min-width:205px !important; }
  body .dmgc-chat-modal .dmgc-chat-modal-close { top:10px !important; right:8px !important; z-index:120 !important; }
}


/* v0.7.8 — functional viewport-anchored conversation menu, stable close button, remove redundant subtitle. */
body .dmgc-chat-modal-panel .dmgc-chat-conv-header #dmgc-chat-subtitle,
body .dmgc-chat-modal-panel #dmgc-chat-subtitle { display:none !important; }
body .dmgc-chat-modal-panel .dmgc-chat-more-menu[hidden] { display:none !important; }
body .dmgc-chat-modal-panel .dmgc-chat-more-menu {
  position:fixed !important; z-index:2147483000 !important; min-width:210px !important; max-width:calc(100vw - 24px) !important;
  max-height:calc(100vh - 24px) !important; overflow-y:auto !important; box-sizing:border-box !important;
  background:#202020 !important; border:1px solid #414141 !important; border-radius:13px !important;
  padding:6px !important; box-shadow:0 12px 32px rgba(0,0,0,.58) !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-more-menu button { display:block !important; width:100% !important; min-height:42px !important; text-align:left !important; }
body .dmgc-chat-modal-panel > #dmgc-chat-modal-close,
body .dmgc-chat-modal-panel > .dmgc-chat-modal-close {
  position:absolute !important; top:8px !important; right:8px !important; z-index:2147483001 !important;
  width:34px !important; min-width:34px !important; height:34px !important; min-height:34px !important;
  display:grid !important; place-items:center !important; padding:0 !important; margin:0 !important;
  border:0 !important; border-radius:50% !important; background:transparent !important; color:#f2f2f2 !important;
  box-shadow:none !important; transform:none !important; line-height:1 !important; font-size:28px !important;
}
body .dmgc-chat-modal-panel > #dmgc-chat-modal-close:hover,
body .dmgc-chat-modal-panel > .dmgc-chat-modal-close:hover,
body .dmgc-chat-modal-panel > #dmgc-chat-modal-close:focus,
body .dmgc-chat-modal-panel > .dmgc-chat-modal-close:active { background:transparent !important; transform:none !important; box-shadow:none !important; }
@media (max-width:760px) {
  body .dmgc-chat-modal-panel .dmgc-chat-conv-header { padding-right:54px !important; }
  body .dmgc-chat-modal-panel .dmgc-chat-header-actions { margin-right:0 !important; }
  body .dmgc-chat-modal-panel .dmgc-chat-header-actions #dmgc-chat-block { margin-right:0 !important; }
  body .dmgc-chat-modal-panel > #dmgc-chat-modal-close,
  body .dmgc-chat-modal-panel > .dmgc-chat-modal-close { top:8px !important; right:7px !important; }
}


/* v0.7.9 — mobile header controls, portrait menu, and functional message-search results. */
body .dmgc-chat-modal-panel .dmgc-chat-inline-search { flex-wrap:wrap !important; }
body .dmgc-chat-modal-panel .dmgc-chat-search-results[hidden] { display:none !important; }
body .dmgc-chat-modal-panel .dmgc-chat-search-results {
  display:flex !important; flex-direction:column !important; gap:4px !important; flex:0 0 100% !important;
  width:100% !important; max-height:min(34vh,260px) !important; overflow-y:auto !important;
  padding:4px 0 0 !important; box-sizing:border-box !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-search-result {
  display:flex !important; align-items:center !important; gap:12px !important; width:100% !important;
  min-width:0 !important; padding:10px 12px !important; text-align:left !important; border:1px solid #383838 !important;
  border-radius:10px !important; background:#222 !important; color:#f5f5f5 !important; cursor:pointer !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-search-result-text { flex:1 1 auto !important; min-width:0 !important; overflow:hidden !important; text-overflow:ellipsis !important; white-space:nowrap !important; }
body .dmgc-chat-modal-panel .dmgc-chat-search-result time { flex:0 0 auto !important; color:#ffd12f !important; font-size:12px !important; }
body .dmgc-chat-modal-panel .dmgc-chat-search-status { padding:10px 12px !important; color:#bdbdbd !important; font-size:13px !important; }
body .dmgc-chat-modal-panel .dmgc-chat-bubble-row.dmgc-search-highlight .dmgc-chat-bubble { outline:2px solid #ffd12f !important; outline-offset:2px !important; }
@media (max-width:760px) {
  /* Mobile conversation has its own back control; hide only the outer popup X on phones. */
  body .dmgc-chat-modal-panel > #dmgc-chat-modal-close,
  body .dmgc-chat-modal-panel > .dmgc-chat-modal-close { display:none !important; }
  /* Bold, unobstructed back arrow; remove the green square treatment. */
  body .dmgc-chat-modal .dmgc-chat-conv-header .dmgc-chat-back {
    appearance:none !important; -webkit-appearance:none !important; display:grid !important; place-items:center !important;
    flex:0 0 34px !important; width:34px !important; min-width:34px !important; height:42px !important;
    padding:0 !important; margin:0 !important; border:0 !important; border-radius:0 !important;
    background:transparent !important; box-shadow:none !important; color:#ffd12f !important;
    font-size:36px !important; font-weight:900 !important; line-height:1 !important;
  }
  body .dmgc-chat-modal .dmgc-chat-conv-header .dmgc-chat-back:hover,
  body .dmgc-chat-modal .dmgc-chat-conv-header .dmgc-chat-back:focus,
  body .dmgc-chat-modal .dmgc-chat-conv-header .dmgc-chat-back:active { background:transparent !important; box-shadow:none !important; transform:none !important; }
  /* Bold vertical ellipsis with a usable touch target. */
  body .dmgc-chat-modal .dmgc-chat-header-actions #dmgc-chat-block {
    display:grid !important; place-items:center !important; width:40px !important; min-width:40px !important; height:42px !important;
    padding:0 !important; border:0 !important; border-radius:0 !important; background:transparent !important;
    box-shadow:none !important; color:#ffd12f !important; font-size:32px !important; font-weight:900 !important;
    line-height:1 !important; transform:none !important;
  }
  body .dmgc-chat-modal .dmgc-chat-more-menu {
    position:fixed !important; z-index:2147483000 !important; width:min(78vw,310px) !important;
    height:min(420px,58vh) !important; max-height:calc(100dvh - 20px) !important; min-width:0 !important;
    aspect-ratio:3 / 4 !important; box-sizing:border-box !important; overflow-y:auto !important;
    right:auto !important; border-radius:16px !important; padding:10px !important;
    background:#202020 !important; border:1px solid #414141 !important; box-shadow:0 14px 36px rgba(0,0,0,.65) !important;
  }
  body .dmgc-chat-modal .dmgc-chat-more-menu button { min-height:52px !important; padding:13px 14px !important; font-size:15px !important; border-radius:10px !important; }
  body .dmgc-chat-modal .dmgc-chat-inline-search { margin:8px 12px !important; padding:10px !important; gap:8px !important; }
  body .dmgc-chat-modal .dmgc-chat-search-results { max-height:28vh !important; }
}


/* v0.8.0 — compact mobile menu and stable keyboard-aware chat viewport. */
@media (max-width:760px) {
  body .dmgc-chat-modal:not([hidden]) {
    top:var(--dmgc-chat-vtop,0px) !important;
    height:var(--dmgc-chat-vh,100dvh) !important;
    max-height:var(--dmgc-chat-vh,100dvh) !important;
    overflow:hidden !important;
  }
  body .dmgc-chat-modal:not([hidden]) .dmgc-chat-modal-panel {
    top:0 !important; height:100% !important; max-height:100% !important;
    overflow:hidden !important; display:block !important;
  }
  body .dmgc-chat-modal .dmgc-chat-app {
    height:100% !important; max-height:100% !important; min-height:0 !important;
    overflow:hidden !important; grid-template-rows:minmax(0,1fr) !important;
  }
  body .dmgc-chat-modal .dmgc-chat-main,
  body .dmgc-chat-modal .dmgc-chat-conversation {
    min-height:0 !important; height:100% !important; max-height:100% !important;
    overflow:hidden !important; display:flex !important; flex-direction:column !important;
  }
  body .dmgc-chat-modal .dmgc-chat-conv-header { flex:0 0 auto !important; }
  body .dmgc-chat-modal .dmgc-chat-messages {
    flex:1 1 0% !important; min-height:0 !important; height:auto !important;
    overflow-y:auto !important; overflow-x:hidden !important; overscroll-behavior:contain !important;
    -webkit-overflow-scrolling:touch !important; touch-action:pan-y !important;
  }
  body .dmgc-chat-modal .dmgc-chat-compose,
  body .dmgc-chat-modal .dmgc-chat-footnote { flex:0 0 auto !important; }
  body .dmgc-chat-modal .dmgc-chat-more-menu {
    width:min(78vw,300px) !important; height:auto !important; min-height:0 !important;
    max-height:min(42dvh,340px) !important; aspect-ratio:auto !important;
    overflow-y:auto !important; padding:6px !important; gap:2px !important;
    border-radius:14px !important;
  }
  body .dmgc-chat-modal .dmgc-chat-more-menu button {
    min-height:42px !important; height:auto !important; padding:10px 12px !important;
    font-size:15px !important; line-height:1.25 !important; border-radius:9px !important;
  }
  body .dmgc-chat-modal .dmgc-chat-inline-search { flex:0 0 auto !important; }
}


/* v0.8.1 — Club Chat branding, correctly scoped close control, and search icons. */
.dmgc-chat-modal-panel > .dmgc-chat-modal-close,
.dmgc-chat-modal-panel > #dmgc-chat-modal-close {
  top:4px !important; right:2px !important; width:24px !important; height:24px !important;
  display:grid !important; place-items:center !important; padding:0 !important; margin:0 !important;
  border:0 !important; border-radius:0 !important; background:transparent !important;
  box-shadow:none !important; color:#f5f5f5 !important; font-size:24px !important;
  font-weight:500 !important; line-height:1 !important; transform:none !important;
  z-index:2147483001 !important;
}
.dmgc-chat-modal-panel > .dmgc-chat-modal-close:hover,
.dmgc-chat-modal-panel > .dmgc-chat-modal-close:focus,
.dmgc-chat-modal-panel > .dmgc-chat-modal-close:active { background:transparent !important; box-shadow:none !important; transform:none !important; }
.dmgc-chat-modal-panel .dmgc-chat-brand { padding-right:18px !important; }
.dmgc-chat-modal-panel .dmgc-chat-mark { display:grid !important; place-items:center !important; overflow:hidden !important; background:transparent !important; border-radius:0 !important; width:54px !important; height:46px !important; flex:0 0 54px !important; }
.dmgc-chat-modal-panel .dmgc-chat-mark-logo { display:block !important; width:100% !important; height:100% !important; object-fit:contain !important; }
.dmgc-chat-modal-panel .dmgc-chat-brand strong { font-size:20px !important; }
.dmgc-chat-modal-panel .dmgc-chat-brand small { display:none !important; }
.dmgc-chat-modal-panel .dmgc-chat-search { position:relative !important; }
.dmgc-chat-modal-panel .dmgc-chat-search:before {
  content:"" !important; position:absolute !important; z-index:2 !important; left:15px !important; top:50% !important;
  width:17px !important; height:17px !important; transform:translateY(-50%) !important; pointer-events:none !important;
  background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd12f' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='10.8' cy='10.8' r='6.8'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") !important;
}
.dmgc-chat-modal-panel .dmgc-chat-search input { padding-left:42px !important; }
.dmgc-chat-modal-panel #dmgc-chat-message-search,
.dmgc-chat-modal-panel .dmgc-chat-emoji-search {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd12f' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='10.8' cy='10.8' r='6.8'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") !important;
  background-repeat:no-repeat !important; background-position:14px center !important; background-size:17px 17px !important; padding-left:40px !important;
}
@media (min-width:761px) {
  .dmgc-chat-modal-panel .dmgc-chat-conv-header { padding-right:58px !important; }
  .dmgc-chat-modal-panel .dmgc-chat-header-actions { margin-right:0 !important; }
}
@media (max-width:760px) {
  /* Show the outer X only on the mobile chat-list screen, never over an open conversation. */
  body .dmgc-chat-modal-panel > #dmgc-chat-modal-close,
  body .dmgc-chat-modal-panel > .dmgc-chat-modal-close { display:grid !important; top:8px !important; right:10px !important; width:34px !important; height:34px !important; font-size:28px !important; }
  body .dmgc-chat-modal.dmgc-mobile-conversation-active .dmgc-chat-modal-panel > #dmgc-chat-modal-close,
  body .dmgc-chat-modal.dmgc-mobile-conversation-active .dmgc-chat-modal-panel > .dmgc-chat-modal-close { display:none !important; }
  body .dmgc-chat-modal-panel .dmgc-chat-brand { padding-right:46px !important; }
  body .dmgc-chat-modal-panel .dmgc-chat-mark { width:44px !important; height:38px !important; flex-basis:44px !important; }
}


/* v0.8.2 — transparent logo tile and close control aligned with the chat header. */
body .dmgc-chat-modal-panel .dmgc-chat-mark,
body .dmgc-chat-modal-panel .dmgc-chat-mark-logo {
  background: transparent !important;
  box-shadow: none !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-mark {
  border: 0 !important;
  border-radius: 0 !important;
}
body .dmgc-chat-modal-panel > #dmgc-chat-modal-close,
body .dmgc-chat-modal-panel > .dmgc-chat-modal-close {
  position: absolute !important;
  top: 37px !important;
  right: 20px !important;
  width: 28px !important; height: 28px !important;
  display: grid !important; place-items: center !important;
  padding: 0 !important; margin: 0 !important;
  border: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important;
  color: #f5f5f5 !important; font-size: 25px !important;
  font-weight: 600 !important; line-height: 1 !important;
  transform: none !important; z-index: 2147483001 !important;
}
body .dmgc-chat-modal-panel > #dmgc-chat-modal-close:hover,
body .dmgc-chat-modal-panel > .dmgc-chat-modal-close:hover,
body .dmgc-chat-modal-panel > #dmgc-chat-modal-close:focus,
body .dmgc-chat-modal-panel > .dmgc-chat-modal-close:active {
  background: transparent !important; box-shadow: none !important; transform: none !important;
}
@media (max-width: 760px) {
  body .dmgc-chat-modal-panel > #dmgc-chat-modal-close,
  body .dmgc-chat-modal-panel > .dmgc-chat-modal-close {
    top: 28px !important; right: 20px !important;
    width: 30px !important; height: 30px !important; font-size: 27px !important;
  }
  body .dmgc-chat-modal.dmgc-mobile-conversation-active .dmgc-chat-modal-panel > #dmgc-chat-modal-close,
  body .dmgc-chat-modal.dmgc-mobile-conversation-active .dmgc-chat-modal-panel > .dmgc-chat-modal-close { display: none !important; }
}

/* v0.8.3 — remove logo, full-bleed black list header, precise close alignment and compact right-anchored menu. */
body .dmgc-chat-modal-panel .dmgc-chat-brand {
  width:100% !important; min-height:92px !important; box-sizing:border-box !important;
  margin:0 !important; padding:22px 56px 22px 22px !important;
  gap:0 !important; background:#080808 !important; border-bottom:1px solid #292929 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-mark,
body .dmgc-chat-modal-panel .dmgc-chat-mark-logo { display:none !important; }
body .dmgc-chat-modal-panel .dmgc-chat-brand-title { display:flex !important; align-items:center !important; min-width:0 !important; }
body .dmgc-chat-modal-panel .dmgc-chat-brand strong { font-size:20px !important; line-height:1.25 !important; }
body .dmgc-chat-modal-panel .dmgc-chat-sidebar { padding-top:0 !important; background:#080808 !important; }
body .dmgc-chat-modal-panel > #dmgc-chat-modal-close,
body .dmgc-chat-modal-panel > .dmgc-chat-modal-close {
  top:40px !important; right:18px !important; width:32px !important; min-width:32px !important;
  height:32px !important; min-height:32px !important; padding:0 !important; margin:0 !important;
  display:grid !important; place-items:center !important; line-height:1 !important;
  font-size:29px !important; font-weight:700 !important; color:#f5f5f5 !important;
  border:0 !important; border-radius:0 !important; background:transparent !important;
  box-shadow:none !important; transform:none !important;
}
body .dmgc-chat-modal-panel > #dmgc-chat-modal-close:hover,
body .dmgc-chat-modal-panel > .dmgc-chat-modal-close:hover,
body .dmgc-chat-modal-panel > #dmgc-chat-modal-close:focus,
body .dmgc-chat-modal-panel > .dmgc-chat-modal-close:active,
body .dmgc-chat-modal-panel > .dmgc-chat-modal-close:focus-visible {
  background:transparent !important; box-shadow:none !important; transform:none !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-more-menu {
  width: min(72vw, 260px) !important; min-width:0 !important; max-width:calc(100vw - 16px) !important;
  height:auto !important; min-height:0 !important; max-height:min(48dvh, 360px) !important;
  aspect-ratio:auto !important; padding:6px !important; gap:2px !important;
  border-radius:14px !important; overflow-y:auto !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-more-menu button {
  min-height:42px !important; padding:10px 12px !important; line-height:1.25 !important;
}
@media (min-width:761px) {
  body .dmgc-chat-modal-panel .dmgc-chat-brand { min-height:108px !important; padding:24px 60px 24px 24px !important; }
  body .dmgc-chat-modal-panel > #dmgc-chat-modal-close,
  body .dmgc-chat-modal-panel > .dmgc-chat-modal-close { top:38px !important; right:18px !important; }
}
@media (max-width:760px) {
  body .dmgc-chat-modal-panel .dmgc-chat-brand {
    min-height:112px !important; width:100% !important; margin:0 !important;
    padding:24px 62px 24px 24px !important; background:#080808 !important;
  }
  body .dmgc-chat-modal-panel .dmgc-chat-brand strong { font-size:21px !important; }
  body .dmgc-chat-modal-panel > #dmgc-chat-modal-close,
  body .dmgc-chat-modal-panel > .dmgc-chat-modal-close {
    top:40px !important; right:20px !important; width:34px !important; min-width:34px !important;
    height:34px !important; min-height:34px !important; font-size:30px !important;
  }
  body .dmgc-chat-modal.dmgc-mobile-conversation-active .dmgc-chat-modal-panel > #dmgc-chat-modal-close,
  body .dmgc-chat-modal.dmgc-mobile-conversation-active .dmgc-chat-modal-panel > .dmgc-chat-modal-close { display:none !important; }
  body .dmgc-chat-modal .dmgc-chat-more-menu {
    width:min(72vw,260px) !important; max-width:calc(100vw - 16px) !important;
    max-height:min(48dvh,360px) !important; height:auto !important; aspect-ratio:auto !important;
  }
}


/* v0.8.4 — desktop popup below the site navigation and compact chat-list title bar. */
@media (min-width:761px) {
  body .dmgc-chat-modal:not([hidden]) {
    align-items:flex-start !important;
    justify-content:center !important;
    padding-top:calc(max(200px, var(--dmgc-chat-top-offset, 0px)) + 12px) !important;
    padding-right:28px !important; padding-bottom:14px !important; padding-left:28px !important;
    box-sizing:border-box !important;
  }
  body .dmgc-chat-modal:not([hidden]) .dmgc-chat-modal-panel {
    height:calc(100vh - max(200px, var(--dmgc-chat-top-offset, 0px)) - 26px) !important;
    max-height:calc(100vh - max(200px, var(--dmgc-chat-top-offset, 0px)) - 26px) !important;
    min-height:400px !important; flex:0 1 auto !important;
  }
  body .dmgc-chat-modal-panel .dmgc-chat-brand {
    min-height:72px !important; height:auto !important;
    padding:12px 56px 12px 22px !important;
    line-height:1.25 !important;
  }
  body .dmgc-chat-modal-panel .dmgc-chat-brand strong {
    line-height:1.2 !important; margin:0 !important;
  }
}

/* v0.8.5 — genuinely compact Club Chat title bar and desktop conversation controls. */
body .dmgc-chat-modal-panel .dmgc-chat-brand {
  display:flex !important;
  flex:0 0 64px !important;
  height:64px !important;
  min-height:64px !important;
  max-height:64px !important;
  box-sizing:border-box !important;
  align-items:center !important;
  padding:8px 48px 8px 22px !important;
  margin:0 !important;
  line-height:1.2 !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-brand-title { align-items:center !important; }
body .dmgc-chat-modal-panel .dmgc-chat-brand strong { margin:0 !important; line-height:1.2 !important; }
@media (min-width:761px) {
  /* Reserve a real slot after the three-dot menu; the X is centered against the chat header. */
  body .dmgc-chat-modal-panel .dmgc-chat-conv-header {
    position:relative !important;
    padding-right:94px !important;
  }
  body .dmgc-chat-modal-panel .dmgc-chat-header-actions {
    gap:12px !important;
    margin-right:22px !important;
    padding-right:0 !important;
  }
  body .dmgc-chat-modal-panel .dmgc-chat-header-actions button {
    flex:0 0 30px !important;
    width:30px !important;
    min-width:30px !important;
  }
  body .dmgc-chat-modal-panel > #dmgc-chat-modal-close,
  body .dmgc-chat-modal-panel > .dmgc-chat-modal-close {
    top:26px !important;
    right:26px !important;
    width:32px !important;
    min-width:32px !important;
    height:32px !important;
    min-height:32px !important;
    display:grid !important;
    place-items:center !important;
    padding:0 !important;
    margin:0 !important;
    font-size:28px !important;
    line-height:1 !important;
  }
}
@media (max-width:760px) {
  body .dmgc-chat-modal-panel .dmgc-chat-brand {
    flex-basis:60px !important;
    height:60px !important;
    min-height:60px !important;
    max-height:60px !important;
    padding:8px 48px 8px 16px !important;
  }
  body .dmgc-chat-modal-panel .dmgc-chat-brand strong { font-size:20px !important; }
}


/* v0.8.7 — restore the near-full-height desktop popup without covering the site navigation. */
@media (min-width:761px) {
  body .dmgc-chat-modal:not([hidden]) {
    align-items:flex-start !important;
    justify-content:center !important;
    padding-top:calc(var(--dmgc-chat-top-offset, 0px) + 8px) !important;
    padding-right:28px !important;
    padding-bottom:12px !important;
    padding-left:28px !important;
    box-sizing:border-box !important;
  }
  body .dmgc-chat-modal:not([hidden]) .dmgc-chat-modal-panel {
    width:calc(100vw - 56px) !important;
    max-width:none !important;
    height:calc(100vh - var(--dmgc-chat-top-offset, 0px) - 20px) !important;
    max-height:calc(100vh - var(--dmgc-chat-top-offset, 0px) - 20px) !important;
    min-height:500px !important;
    flex:0 0 auto !important;
  }
  /* Keep X on the same row as search, star and the three-dot menu. */
  body .dmgc-chat-modal-panel > #dmgc-chat-modal-close,
  body .dmgc-chat-modal-panel > .dmgc-chat-modal-close {
    top:22px !important;
    right:18px !important;
    transform:none !important;
  }
}
@media (max-width:760px) {
  /* On the list screen, place X at the right-center of the Club Chat title bar. */
  body .dmgc-chat-modal:not(.dmgc-mobile-conversation-active) .dmgc-chat-modal-panel > #dmgc-chat-modal-close,
  body .dmgc-chat-modal:not(.dmgc-mobile-conversation-active) .dmgc-chat-modal-panel > .dmgc-chat-modal-close {
    display:grid !important;
    place-items:center !important;
    position:absolute !important;
    top:13px !important;
    right:12px !important;
    width:34px !important;
    min-width:34px !important;
    height:34px !important;
    min-height:34px !important;
    padding:0 !important;
    margin:0 !important;
    transform:none !important;
  }
  body .dmgc-chat-modal.dmgc-mobile-conversation-active .dmgc-chat-modal-panel > #dmgc-chat-modal-close,
  body .dmgc-chat-modal.dmgc-mobile-conversation-active .dmgc-chat-modal-panel > .dmgc-chat-modal-close { display:none !important; }
}


/* v0.8.8 — apply the supplied dark texture ONLY to the Club Chat brand/title header. */
body .dmgc-chat-modal-panel .dmgc-chat-brand {
  background-color:#080808 !important;
  background-image:linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)), url("club-chat-header-bg.jpg") !important;
  background-size:cover !important;
  background-position:center 43% !important;
  background-repeat:no-repeat !important;
}


/* v0.8.9 — extend the Club Chat texture to the full sidebar width, including its padded edges. */
body .dmgc-chat-modal-panel .dmgc-chat-brand {
  width:calc(100% + 24px) !important;
  margin-left:-12px !important;
  margin-right:-12px !important;
  align-self:stretch !important;
  background-color:#080808 !important;
  background-image:linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)), url("club-chat-header-bg.jpg") !important;
  background-size:cover !important;
  background-position:center 43% !important;
  background-repeat:no-repeat !important;
}
@media (max-width:760px) {
  body .dmgc-chat-modal-panel .dmgc-chat-brand {
    width:calc(100% + 14px) !important;
    margin-left:-7px !important;
    margin-right:-7px !important;
  }
}


/* v0.9.0 — official admin-only broadcast channel and event announcement cards. */
.dmgc-chat-modal-panel .dmgc-verified-badge {
  display:inline-grid !important; place-items:center !important; vertical-align:middle !important;
  width:16px !important; height:16px !important; min-width:16px !important; border-radius:50% !important;
  background:#1687f8 !important; color:#fff !important; font-size:11px !important; font-weight:900 !important;
  line-height:1 !important; margin-left:4px !important; box-shadow:0 0 0 1px rgba(22,135,248,.15) !important;
}
.dmgc-chat-modal-panel .dmgc-chat-announcement-item { background:#211b0c !important; border-color:#6b5713 !important; }
.dmgc-chat-modal-panel .dmgc-chat-announcement-item .dmgc-chat-list-avatar { background:#050505 !important; border-color:#705800 !important; }
.dmgc-chat-modal-panel .dmgc-chat-announcement-item .dmgc-chat-list-avatar img { object-fit:contain !important; padding:3px !important; }
.dmgc-chat-modal-panel .dmgc-chat-announcement-row { justify-content:flex-start !important; }
.dmgc-chat-modal-panel .dmgc-chat-announcement-row .dmgc-chat-bubble {
  width:min(88%,620px) !important; max-width:min(88%,620px) !important; padding:13px !important;
  border:1px solid #4b3b0c !important; border-radius:15px !important; background:#171512 !important; color:#f0f0f0 !important;
}
.dmgc-chat-modal-panel .dmgc-announcement-sender { display:flex; align-items:center; gap:9px; margin-bottom:12px; }
.dmgc-chat-modal-panel .dmgc-announcement-sender>img { width:34px; height:34px; flex:0 0 34px; object-fit:contain; padding:3px; border-radius:50%; background:#050505; border:1px solid #705800; }
.dmgc-chat-modal-panel .dmgc-announcement-sender>span { min-width:0; display:block; }
.dmgc-chat-modal-panel .dmgc-announcement-sender strong { display:inline !important; font-size:13px !important; color:#f4f4f4 !important; }
.dmgc-chat-modal-panel .dmgc-announcement-sender small { display:block !important; margin-top:3px !important; color:#9c9c9c !important; font-size:10px !important; font-weight:500 !important; }
.dmgc-chat-modal-panel .dmgc-announcement-card { display:block; overflow-wrap:anywhere; }
.dmgc-chat-modal-panel .dmgc-announcement-copy { color:#ededed; font-size:14px; line-height:1.55; white-space:normal; }
.dmgc-chat-modal-panel .dmgc-announcement-card h3 { color:#ffd12f !important; font-size:17px !important; line-height:1.3 !important; margin:10px 0 8px !important; }
.dmgc-chat-modal-panel .dmgc-announcement-banner { display:block; width:100%; max-height:290px; object-fit:cover; border-radius:9px; margin:12px 0 !important; }
.dmgc-chat-modal-panel .dmgc-announcement-date { color:#dedede; font-size:12px; padding:6px 0; }
.dmgc-chat-modal-panel .dmgc-announcement-cta { display:block; width:100%; box-sizing:border-box; margin-top:12px; padding:11px 14px; text-align:center; text-decoration:none !important; font-size:13px; font-weight:800; color:#ffd12f !important; background:#2b2412; border:1px solid #b88b00; border-radius:9px; }
.dmgc-chat-modal-panel .dmgc-announcement-cta:hover { background:#3a2f12; color:#fff !important; }
.dmgc-chat-modal-panel .dmgc-announcement-row .dmgc-chat-bubble-meta { display:flex !important; justify-content:flex-end !important; margin-top:8px !important; }
.dmgc-chat-modal-panel .dmgc-announcement-row .dmgc-chat-message-tools,
.dmgc-chat-modal-panel .dmgc-announcement-row .dmgc-chat-reactions { display:none !important; }
.dmgc-chat-modal-panel .dmgc-chat-compose.dmgc-announcement-readonly { opacity:.72; }
.dmgc-chat-modal-panel .dmgc-chat-compose.dmgc-announcement-readonly textarea { cursor:not-allowed; }
.dmgc-chat-modal-panel .dmgc-chat-compose.dmgc-announcement-readonly button { opacity:.25 !important; cursor:not-allowed !important; }
@media (max-width:760px) {
  /* Mobile list header texture bleeds all the way to the viewport edges. */
  body .dmgc-chat-modal-panel .dmgc-chat-brand {
    width:calc(100% + 48px) !important; max-width:none !important;
    margin-left:-24px !important; margin-right:-24px !important;
    padding-left:36px !important; padding-right:56px !important;
    background-color:#080808 !important;
    background-image:linear-gradient(rgba(0,0,0,.18),rgba(0,0,0,.18)),url("club-chat-header-bg.jpg") !important;
    background-size:cover !important; background-position:center 43% !important; background-repeat:no-repeat !important;
  }
  body .dmgc-chat-modal-panel .dmgc-chat-announcement-row .dmgc-chat-bubble { width:94% !important; max-width:94% !important; }
  body .dmgc-chat-modal-panel .dmgc-announcement-banner { max-height:220px; }
}

.dmgc-chat-modal-panel .dmgc-announcement-conversation .dmgc-chat-conv-header .dmgc-chat-avatar { background:#050505 !important; border:1px solid #705800 !important; }
.dmgc-chat-modal-panel .dmgc-announcement-conversation .dmgc-chat-conv-header .dmgc-chat-avatar img { object-fit:contain !important; padding:4px !important; border-radius:50% !important; }


/* v0.9.1 — supplied blue verified badge image and configurable broadcast identity. */
.dmgc-chat-modal-panel .dmgc-verified-badge-image { display:inline-block !important; width:20px !important; height:20px !important; min-width:20px !important; max-width:20px !important; object-fit:contain !important; vertical-align:middle !important; margin-left:4px !important; border:0 !important; border-radius:0 !important; background:transparent !important; padding:0 !important; box-shadow:none !important; }
.dmgc-chat-modal-panel .dmgc-chat-list-top .dmgc-verified-badge-image { width:17px !important; height:17px !important; min-width:17px !important; max-width:17px !important; }
.dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-verified-badge-image { width:21px !important; height:21px !important; min-width:21px !important; max-width:21px !important; margin-left:3px !important; }
@media (max-width:760px) {
  body .dmgc-chat-modal-panel .dmgc-chat-sidebar { overflow-x:hidden !important; }
  body .dmgc-chat-modal-panel .dmgc-chat-brand { position:relative !important; left:50% !important; transform:translateX(-50%) !important; width:100vw !important; max-width:100vw !important; margin-left:0 !important; margin-right:0 !important; box-sizing:border-box !important; }
}


/* v0.9.2 — verified badge visibility, neutral official chat row and reliable desktop message scrolling. */
.dmgc-chat-modal-panel .dmgc-verified-badge-image {
  display:inline-block !important; width:22px !important; height:22px !important;
  min-width:22px !important; max-width:22px !important; flex:0 0 22px !important;
  object-fit:contain !important; vertical-align:middle !important; margin-left:5px !important;
}
.dmgc-chat-modal-panel .dmgc-chat-list-top .dmgc-verified-badge-image {
  width:20px !important; height:20px !important; min-width:20px !important;
  max-width:20px !important; vertical-align:-5px !important;
}
.dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-verified-badge-image {
  width:22px !important; height:22px !important; min-width:22px !important; max-width:22px !important;
}
/* Official broadcast row is neutral, not gold-highlighted. */
.dmgc-chat-modal-panel .dmgc-chat-list-item.dmgc-chat-announcement-item,
.dmgc-chat-modal-panel .dmgc-chat-list-item.dmgc-chat-announcement-item.selected {
  background:#141414 !important; border:1px solid #343434 !important; color:#f4f4f4 !important;
  box-shadow:none !important;
}
.dmgc-chat-modal-panel .dmgc-chat-list-item.dmgc-chat-announcement-item:hover {
  background:#202020 !important; border-color:#3a3a3a !important;
}
.dmgc-chat-modal-panel .dmgc-chat-announcement-item .dmgc-chat-list-avatar {
  background:#080808 !important; border-color:#343434 !important;
}
.dmgc-chat-modal-panel .dmgc-chat-announcement-item .dmgc-chat-list-avatar img,
.dmgc-chat-modal-panel .dmgc-announcement-conversation .dmgc-chat-conv-header .dmgc-chat-avatar img {
  object-fit:contain !important; padding:3px !important; background:#080808 !important;
}
@media (min-width:761px) {
  body .dmgc-chat-modal:not([hidden]) .dmgc-chat-modal-panel,
  body .dmgc-chat-modal:not([hidden]) .dmgc-chat-app { min-height:0 !important; }
  body .dmgc-chat-modal:not([hidden]) .dmgc-chat-app {
    display:grid !important; grid-template-rows:minmax(0,1fr) !important;
    height:100% !important; overflow:hidden !important;
  }
  body .dmgc-chat-modal:not([hidden]) .dmgc-chat-main {
    display:flex !important; flex-direction:column !important; min-width:0 !important;
    min-height:0 !important; height:100% !important; overflow:hidden !important;
  }
  body .dmgc-chat-modal:not([hidden]) .dmgc-chat-conversation {
    display:flex !important; flex-direction:column !important; flex:1 1 0% !important;
    min-height:0 !important; height:100% !important; overflow:hidden !important;
  }
  body .dmgc-chat-modal:not([hidden]) .dmgc-chat-messages {
    display:flex !important; flex:1 1 0% !important; min-height:0 !important; height:auto !important;
    overflow-y:auto !important; overflow-x:hidden !important; overscroll-behavior:contain !important;
    -webkit-overflow-scrolling:touch !important; scrollbar-gutter:stable;
  }
}

/* v0.9.3 — keep official logo fully contained and make the verified tick readable beside the name. */
body .dmgc-chat-modal-panel .dmgc-chat-list-avatar {
  position:relative !important; flex:0 0 54px !important; width:54px !important; height:54px !important;
  min-width:54px !important; min-height:54px !important; overflow:hidden !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
  box-sizing:border-box !important; border-radius:50% !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-list-avatar img {
  display:block !important; width:100% !important; height:100% !important;
  max-width:none !important; max-height:none !important; min-width:0 !important; min-height:0 !important;
  object-fit:contain !important; object-position:center !important; padding:2px !important;
  margin:0 !important; border-radius:50% !important; box-sizing:border-box !important;
}
body .dmgc-chat-modal-panel .dmgc-announcement-conversation .dmgc-chat-conv-header .dmgc-chat-avatar {
  width:54px !important; height:54px !important; min-width:54px !important; min-height:54px !important;
  flex:0 0 54px !important; overflow:hidden !important; display:flex !important;
  align-items:center !important; justify-content:center !important; border-radius:50% !important;
  box-sizing:border-box !important;
}
body .dmgc-chat-modal-panel .dmgc-announcement-conversation .dmgc-chat-conv-header .dmgc-chat-avatar img {
  display:block !important; width:100% !important; height:100% !important;
  max-width:none !important; max-height:none !important; object-fit:contain !important;
  object-position:center !important; padding:2px !important; margin:0 !important;
  border-radius:50% !important; box-sizing:border-box !important;
}
body .dmgc-chat-modal-panel .dmgc-announcement-sender>img {
  display:block !important; width:38px !important; height:38px !important;
  min-width:38px !important; max-width:38px !important; flex:0 0 38px !important;
  object-fit:contain !important; object-position:center !important; padding:2px !important;
  margin:0 !important; border-radius:50% !important; box-sizing:border-box !important;
}
/* The badge should sit directly after the official name and remain close to its text size. */
body .dmgc-chat-modal-panel .dmgc-verified-badge-image,
body .dmgc-chat-modal-panel .dmgc-chat-list-top .dmgc-verified-badge-image,
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-verified-badge-image {
  display:inline-block !important; width:17px !important; height:17px !important;
  min-width:17px !important; max-width:17px !important; min-height:17px !important; max-height:17px !important;
  flex:0 0 17px !important; object-fit:contain !important; vertical-align:-3px !important;
  margin:0 0 0 5px !important; padding:0 !important; border:0 !important; border-radius:0 !important;
  background:transparent !important; box-shadow:none !important; transform:none !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-list-top strong { align-items:center !important; }
body .dmgc-chat-modal-panel #dmgc-chat-title .dmgc-verified-badge-image { vertical-align:middle !important; }


/* v0.9.4 — make the official verification badge match the name text size and sit directly beside it. */
body .dmgc-chat-modal-panel .dmgc-verified-badge-image {
  display:inline-block !important; width:1.15em !important; height:1.15em !important;
  min-width:1.15em !important; max-width:1.15em !important; min-height:1.15em !important; max-height:1.15em !important;
  flex:0 0 1.15em !important; object-fit:contain !important; object-position:center !important;
  vertical-align:-0.18em !important; margin:0 !important; padding:0 !important;
  border:0 !important; border-radius:0 !important; background:transparent !important; box-shadow:none !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-list-top .dmgc-chat-list-name {
  display:inline-flex !important; align-items:center !important; justify-content:flex-start !important;
  gap:.38em !important; min-width:0 !important; max-width:100% !important; white-space:nowrap !important; overflow:hidden !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-list-name .dmgc-chat-name-text,
body .dmgc-chat-modal-panel #dmgc-chat-title .dmgc-chat-title-text,
body .dmgc-chat-modal-panel .dmgc-announcement-name .dmgc-chat-name-text {
  min-width:0 !important; overflow:hidden !important; text-overflow:ellipsis !important; white-space:nowrap !important;
}
body .dmgc-chat-modal-panel #dmgc-chat-title {
  display:flex !important; align-items:center !important; gap:.38em !important; min-width:0 !important;
}
body .dmgc-chat-modal-panel #dmgc-chat-title .dmgc-chat-title-text { display:block !important; flex:0 1 auto !important; }
body .dmgc-chat-modal-panel #dmgc-chat-title .dmgc-verified-badge-image { flex:0 0 1.15em !important; }
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-announcement-name {
  display:inline-flex !important; align-items:center !important; gap:.38em !important; max-width:100% !important; vertical-align:middle !important;
}
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-verified-badge-image { flex:0 0 1.15em !important; }


/* v0.9.5 — keep the official verified badge on the SAME line as DMGC India and render it at readable text-relative size. */
body .dmgc-chat-modal-panel #dmgc-chat-title {
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:5px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  min-width:0 !important;
}
body .dmgc-chat-modal-panel #dmgc-chat-title .dmgc-chat-title-text {
  display:block !important;
  flex:0 1 auto !important;
  min-width:0 !important;
  max-width:calc(100% - 26px) !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
body .dmgc-chat-modal-panel #dmgc-chat-title > .dmgc-verified-badge-image {
  display:block !important;
  width:20px !important;
  height:20px !important;
  min-width:20px !important;
  min-height:20px !important;
  max-width:20px !important;
  max-height:20px !important;
  flex:0 0 20px !important;
  align-self:center !important;
  object-fit:contain !important;
  vertical-align:middle !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  transform:none !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-list-top .dmgc-chat-list-name {
  display:inline-flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:5px !important;
  min-width:0 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-list-top .dmgc-chat-list-name .dmgc-chat-name-text {
  flex:0 1 auto !important;
  min-width:0 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-list-top .dmgc-chat-list-name > .dmgc-verified-badge-image {
  display:block !important;
  width:18px !important;
  height:18px !important;
  min-width:18px !important;
  min-height:18px !important;
  max-width:18px !important;
  max-height:18px !important;
  flex:0 0 18px !important;
  margin:0 !important;
  align-self:center !important;
  object-fit:contain !important;
  vertical-align:middle !important;
}
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-announcement-name {
  display:inline-flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:5px !important;
  white-space:nowrap !important;
  max-width:100% !important;
  overflow:hidden !important;
}
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-announcement-name .dmgc-chat-name-text {
  flex:0 1 auto !important;
  min-width:0 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-announcement-name > .dmgc-verified-badge-image {
  display:block !important;
  width:17px !important;
  height:17px !important;
  min-width:17px !important;
  min-height:17px !important;
  max-width:17px !important;
  max-height:17px !important;
  flex:0 0 17px !important;
  margin:0 !important;
  align-self:center !important;
  object-fit:contain !important;
}

/* v0.9.6: Admin-uploaded transparent verified badge, sized to the name and kept inline. */
body .dmgc-chat-modal-panel #dmgc-chat-title {
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  gap:5px !important;
  min-width:0 !important;
}
body .dmgc-chat-modal-panel #dmgc-chat-title > .dmgc-verified-badge-image,
body .dmgc-chat-modal-panel .dmgc-chat-list-top .dmgc-chat-list-name > .dmgc-verified-badge-image,
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-announcement-name > .dmgc-verified-badge-image {
  display:inline-block !important;
  width:1em !important;
  height:1em !important;
  min-width:1em !important;
  min-height:1em !important;
  max-width:1em !important;
  max-height:1em !important;
  flex:0 0 1em !important;
  align-self:center !important;
  object-fit:contain !important;
  vertical-align:middle !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  transform:none !important;
}
body .dmgc-chat-modal-panel #dmgc-chat-title .dmgc-chat-title-text,
body .dmgc-chat-modal-panel .dmgc-chat-list-top .dmgc-chat-list-name .dmgc-chat-name-text,
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-announcement-name .dmgc-chat-name-text {
  display:inline-block !important;
  min-width:0 !important;
  flex:0 1 auto !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}


/* v0.9.7 — admin-controlled verified badge size and position. */
body .dmgc-chat-modal-panel .dmgc-verified-badge-image {
  width:var(--dmgc-verified-size, 20px) !important;
  height:var(--dmgc-verified-size, 20px) !important;
  min-width:var(--dmgc-verified-size, 20px) !important;
  min-height:var(--dmgc-verified-size, 20px) !important;
  max-width:var(--dmgc-verified-size, 20px) !important;
  max-height:var(--dmgc-verified-size, 20px) !important;
  flex:0 0 var(--dmgc-verified-size, 20px) !important;
  transform:translate(var(--dmgc-verified-x, 0px), var(--dmgc-verified-y, 0px)) !important;
  object-fit:contain !important;
  vertical-align:middle !important;
}


/* v0.9.8 — keep the official name's font size independent of the badge size;
   apply admin-controlled badge dimensions/offsets in every official identity. */
body .dmgc-chat-modal-panel #dmgc-chat-title,
body .dmgc-chat-modal-panel .dmgc-chat-list-top .dmgc-chat-list-name,
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-announcement-name {
  display:inline-flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:5px !important;
  min-width:0 !important;
  white-space:nowrap !important;
  overflow:visible !important;
}
body .dmgc-chat-modal-panel #dmgc-chat-title .dmgc-chat-title-text,
body .dmgc-chat-modal-panel .dmgc-chat-list-top .dmgc-chat-list-name .dmgc-chat-name-text,
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-announcement-name .dmgc-chat-name-text {
  display:inline-block !important;
  flex:0 0 auto !important;
  width:auto !important;
  max-width:none !important;
  min-width:0 !important;
  font-size:inherit !important;
  line-height:inherit !important;
  white-space:nowrap !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
body .dmgc-chat-modal-panel .dmgc-verified-badge-image {
  display:inline-block !important;
  width:var(--dmgc-verified-size,20px) !important;
  height:var(--dmgc-verified-size,20px) !important;
  min-width:var(--dmgc-verified-size,20px) !important;
  min-height:var(--dmgc-verified-size,20px) !important;
  max-width:var(--dmgc-verified-size,20px) !important;
  max-height:var(--dmgc-verified-size,20px) !important;
  flex:0 0 var(--dmgc-verified-size,20px) !important;
  object-fit:contain !important;
  object-position:center !important;
  vertical-align:middle !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  transform:translate(var(--dmgc-verified-x,0px),var(--dmgc-verified-y,0px)) !important;
}


/* v0.9.9 — badge dimensions and offsets are emitted as direct inline important styles by chat.js. */
body .dmgc-chat-modal-panel img.dmgc-verified-badge-image { display:inline-block !important; object-fit:contain !important; object-position:center !important; opacity:1 !important; visibility:visible !important; }

/* v0.10.0 — keep badge size independent from the name/subtitle layout in all three official identity locations.
   The badge may visually overflow its fixed text line, but must never increase the line height or push
   "Official Announcement" down when administrators enlarge the image. Dimensions/offsets remain controlled
   by the saved inline styles emitted by chat.js. */
body .dmgc-chat-modal-panel #dmgc-chat-title,
body .dmgc-chat-modal-panel .dmgc-chat-list-top .dmgc-chat-list-name,
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-announcement-name {
  display:inline-flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:5px !important;
  height:1.25em !important;
  min-height:1.25em !important;
  max-height:1.25em !important;
  line-height:1.25em !important;
  white-space:nowrap !important;
  overflow:visible !important;
  box-sizing:content-box !important;
}
body .dmgc-chat-modal-panel #dmgc-chat-title .dmgc-chat-title-text,
body .dmgc-chat-modal-panel .dmgc-chat-list-top .dmgc-chat-list-name .dmgc-chat-name-text,
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-announcement-name .dmgc-chat-name-text {
  display:inline-block !important;
  flex:0 0 auto !important;
  line-height:1.25em !important;
  height:1.25em !important;
  min-height:0 !important;
  max-height:1.25em !important;
  font-size:inherit !important;
  white-space:nowrap !important;
}
body .dmgc-chat-modal-panel img.dmgc-verified-badge-image {
  display:inline-block !important;
  flex-shrink:0 !important;
  object-fit:contain !important;
  object-position:center !important;
  vertical-align:middle !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  opacity:1 !important;
  visibility:visible !important;
}
body .dmgc-chat-modal-panel .dmgc-announcement-sender small {
  display:block !important;
  margin-top:3px !important;
  line-height:1.35 !important;
}

/* v0.10.1: consistent official badge baseline and consistent player avatar framing. */
body .dmgc-chat-modal-panel #dmgc-chat-title,
body .dmgc-chat-modal-panel .dmgc-chat-list-top .dmgc-chat-list-name,
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-announcement-name {
  display:inline-flex !important; flex-direction:row !important; flex-wrap:nowrap !important;
  align-items:center !important; vertical-align:middle !important; gap:5px !important;
  line-height:1.25em !important; height:1.25em !important; min-height:1.25em !important;
  max-height:1.25em !important; overflow:visible !important; white-space:nowrap !important;
}
body .dmgc-chat-modal-panel img.dmgc-verified-badge-image {
  display:inline-block !important; align-self:center !important; vertical-align:middle !important;
  object-fit:contain !important; object-position:center !important; margin:0 !important;
  padding:0 !important; border:0 !important; border-radius:0 !important;
  background:transparent !important; box-shadow:none !important; line-height:1 !important;
}
/* Keep profile photos the same rendered size in the chat list and conversation header. */
body .dmgc-chat-modal-panel .dmgc-chat-list-avatar,
body .dmgc-chat-modal-panel .dmgc-chat-avatar-wrap,
body .dmgc-chat-modal-panel .dmgc-chat-avatar-wrap .dmgc-chat-avatar,
body .dmgc-chat-modal-panel #dmgc-chat-avatar {
  width:44px !important; height:44px !important; min-width:44px !important; min-height:44px !important;
  flex:0 0 44px !important; box-sizing:border-box !important; overflow:hidden !important; border-radius:50% !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-list-avatar > img,
body .dmgc-chat-modal-panel #dmgc-chat-avatar > img {
  display:block !important; width:100% !important; height:100% !important; max-width:none !important;
  max-height:none !important; min-width:0 !important; min-height:0 !important; padding:0 !important;
  margin:0 !important; object-fit:cover !important; object-position:center !important; border-radius:inherit !important;
}
/* Official DMGC logo is a logo, not a player portrait: preserve its whole mark. */
body .dmgc-chat-modal-panel .dmgc-chat-announcement-item .dmgc-chat-list-avatar > img,
body .dmgc-chat-modal-panel .dmgc-announcement-conversation #dmgc-chat-avatar > img {
  object-fit:contain !important; padding:4px !important; background:#050505 !important;
}

/* Profile photo crop/zoom editor (WhatsApp-style square crop with circular preview). */
.dmgc-avatar-crop-modal[hidden] { display:none !important; }
.dmgc-avatar-crop-modal { position:fixed !important; inset:0 !important; z-index:2147483000 !important; display:flex !important; align-items:center !important; justify-content:center !important; padding:18px !important; background:rgba(0,0,0,.78) !important; }
.dmgc-avatar-crop-card { width:min(100%,360px) !important; box-sizing:border-box !important; padding:22px !important; border:1px solid #393939 !important; border-radius:20px !important; background:#171717 !important; color:#f5f5f5 !important; box-shadow:0 18px 70px rgba(0,0,0,.65) !important; text-align:center !important; }
.dmgc-avatar-crop-card > strong { display:block !important; font-size:18px !important; color:#fff !important; }
.dmgc-avatar-crop-card > p { margin:8px 0 18px !important; color:#aaa !important; font-size:13px !important; line-height:1.45 !important; }
#dmgc-avatar-crop-canvas { display:block !important; width:230px !important; height:230px !important; max-width:100% !important; aspect-ratio:1/1 !important; margin:0 auto 18px !important; border:2px solid #ffd12f !important; border-radius:50% !important; background:#080808 !important; cursor:grab !important; touch-action:none !important; }
#dmgc-avatar-crop-canvas:active { cursor:grabbing !important; }
.dmgc-avatar-zoom-label { display:flex !important; flex-direction:column !important; gap:8px !important; color:#ddd !important; font-size:13px !important; text-align:left !important; }
#dmgc-avatar-zoom { width:100% !important; accent-color:#ffd12f !important; }
.dmgc-avatar-crop-actions { display:flex !important; justify-content:flex-end !important; gap:10px !important; margin-top:20px !important; }
.dmgc-avatar-crop-actions button { min-height:40px !important; padding:8px 15px !important; border:1px solid #454545 !important; border-radius:10px !important; background:#252525 !important; color:#eee !important; font:600 14px/1.2 inherit !important; cursor:pointer !important; }
.dmgc-avatar-crop-actions #dmgc-avatar-crop-save { border-color:#ffd12f !important; background:#ffd12f !important; color:#151515 !important; }
.dmgc-avatar-crop-actions button:disabled { opacity:.55 !important; cursor:wait !important; }
@media(max-width:760px) { .dmgc-avatar-crop-card { padding:18px !important; } #dmgc-avatar-crop-canvas { width:min(68vw,230px) !important; height:auto !important; } }


/* v0.10.2 — one shared baseline for all official verified badges.
   Earlier incremental badge rules used relative top offsets and context-specific dimensions;
   the JS inline transform now applies both saved X/Y offsets identically in all locations. */
body .dmgc-chat-modal-panel #dmgc-chat-title,
body .dmgc-chat-modal-panel .dmgc-chat-list-top .dmgc-chat-list-name,
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-announcement-name {
  display:inline-flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:5px !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  line-height:1.25 !important;
  vertical-align:middle !important;
  white-space:nowrap !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}
body .dmgc-chat-modal-panel #dmgc-chat-title > .dmgc-chat-title-text,
body .dmgc-chat-modal-panel .dmgc-chat-list-top .dmgc-chat-list-name > .dmgc-chat-name-text,
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-announcement-name > .dmgc-chat-name-text {
  display:inline-block !important;
  flex:0 1 auto !important;
  min-width:0 !important;
  max-width:100% !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  line-height:1.25 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  box-sizing:border-box !important;
}
body .dmgc-chat-modal-panel img.dmgc-verified-badge-image {
  display:inline-block !important;
  position:relative !important;
  top:0 !important;
  left:0 !important;
  align-self:center !important;
  vertical-align:middle !important;
  object-fit:contain !important;
  object-position:center !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  line-height:1 !important;
}
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-announcement-name + small,
body .dmgc-chat-modal-panel .dmgc-announcement-sender small {
  display:block !important;
  margin-top:3px !important;
  line-height:1.35 !important;
}

/* v0.10.3 — final layout correction based on the supplied chat-list and announcement screenshots.
   Give the identity row a fixed text-relative line box. The badge can overflow that row visually,
   but it must not enlarge the line box, alter the text baseline, or push the announcement subtitle down. */
body .dmgc-chat-modal-panel #dmgc-chat-title,
body .dmgc-chat-modal-panel .dmgc-chat-list-top .dmgc-chat-list-name,
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-announcement-name {
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:5px !important;
  height:1.25em !important;
  min-height:1.25em !important;
  max-height:1.25em !important;
  line-height:1.25em !important;
  vertical-align:middle !important;
  white-space:nowrap !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-announcement-name {
  width:max-content !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
}
body .dmgc-chat-modal-panel #dmgc-chat-title > .dmgc-chat-title-text,
body .dmgc-chat-modal-panel .dmgc-chat-list-top .dmgc-chat-list-name > .dmgc-chat-name-text,
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-announcement-name > .dmgc-chat-name-text {
  display:block !important;
  flex:0 1 auto !important;
  min-width:0 !important;
  max-width:100% !important;
  height:1.25em !important;
  min-height:1.25em !important;
  max-height:1.25em !important;
  line-height:1.25em !important;
  margin:0 !important;
  padding:0 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  box-sizing:border-box !important;
}
body .dmgc-chat-modal-panel img.dmgc-verified-badge-image {
  display:block !important;
  position:relative !important;
  top:0 !important;
  left:0 !important;
  align-self:center !important;
  flex-shrink:0 !important;
  object-fit:contain !important;
  object-position:center !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  vertical-align:middle !important;
}
body .dmgc-chat-modal-panel .dmgc-announcement-sender small {
  display:block !important;
  margin-top:3px !important;
  line-height:1.35 !important;
}


/* v0.10.4 — unify the official badge row in the list, conversation header and announcement cards.
   Keep the badge as a sibling of the name text; never allow it to wrap onto the subtitle line.
   X/Y and dimensions remain controlled by the existing admin settings emitted by chat.js. */
body .dmgc-chat-modal-panel #dmgc-chat-title,
body .dmgc-chat-modal-panel .dmgc-chat-list-top .dmgc-chat-list-name,
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-announcement-name {
  display:inline-flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:5px !important;
  width:max-content !important;
  max-width:100% !important;
  min-width:0 !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  line-height:1.25 !important;
  white-space:nowrap !important;
  overflow:visible !important;
  vertical-align:middle !important;
}
body .dmgc-chat-modal-panel .dmgc-announcement-sender > span {
  display:block !important;
  flex:0 1 auto !important;
  min-width:0 !important;
  line-height:normal !important;
}
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-announcement-name {
  display:inline-flex !important;
  vertical-align:middle !important;
  margin:0 !important;
  padding:0 !important;
}
body .dmgc-chat-modal-panel img.dmgc-verified-badge-image {
  display:block !important;
  position:relative !important;
  flex-shrink:0 !important;
  align-self:center !important;
  object-fit:contain !important;
  object-position:center !important;
  vertical-align:middle !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  line-height:1 !important;
}
body .dmgc-chat-modal-panel .dmgc-announcement-sender small {
  display:block !important;
  clear:both !important;
  margin-top:3px !important;
  line-height:1.35 !important;
}

/* v0.10.5 — shared verified-name wrapper fixes the badge baseline structurally.
   The name and badge now share one inline-flex row in the chat list, conversation header,
   and announcement cards. Admin size and X/Y settings still affect only the badge image. */
body .dmgc-chat-modal-panel #dmgc-chat-title,
body .dmgc-chat-modal-panel .dmgc-chat-list-top .dmgc-chat-list-name,
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-announcement-name {
  display:block !important;
  width:max-content !important;
  max-width:100% !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  line-height:1.25 !important;
  white-space:normal !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}
body .dmgc-chat-modal-panel .dmgc-verified-name-row {
  display:inline-flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:5px !important;
  width:max-content !important;
  max-width:100% !important;
  height:1.25em !important;
  min-height:1.25em !important;
  max-height:1.25em !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  line-height:1.25em !important;
  white-space:nowrap !important;
  overflow:visible !important;
  vertical-align:middle !important;
  box-sizing:border-box !important;
}
body .dmgc-chat-modal-panel .dmgc-verified-name-row > .dmgc-chat-name-text,
body .dmgc-chat-modal-panel .dmgc-verified-name-row > .dmgc-chat-title-text {
  display:inline-block !important;
  flex:0 1 auto !important;
  min-width:0 !important;
  max-width:100% !important;
  height:1.25em !important;
  min-height:1.25em !important;
  max-height:1.25em !important;
  margin:0 !important;
  padding:0 !important;
  line-height:1.25em !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  box-sizing:border-box !important;
}
body .dmgc-chat-modal-panel .dmgc-verified-name-row > img.dmgc-verified-badge-image {
  display:block !important;
  position:relative !important;
  top:0 !important;
  left:0 !important;
  flex:0 0 var(--dmgc-verified-size,20px) !important;
  align-self:center !important;
  object-fit:contain !important;
  object-position:center !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  line-height:1 !important;
  vertical-align:middle !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-list-top .dmgc-chat-list-name > .dmgc-verified-name-row {
  max-width:100% !important;
}
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-announcement-name > .dmgc-verified-name-row {
  max-width:100% !important;
}
body .dmgc-chat-modal-panel .dmgc-announcement-sender .dmgc-announcement-name + small,
body .dmgc-chat-modal-panel .dmgc-announcement-sender small {
  display:block !important;
  margin-top:3px !important;
  line-height:1.35 !important;
  clear:both !important;
}

/* v0.10.6 — profile gear opens a responsive Club Chat settings screen */
body .dmgc-chat-modal-panel .dmgc-chat-app{position:relative!important}
body .dmgc-chat-modal-panel #dmgc-chat-profile-settings{
  flex:0 0 34px!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;
  display:grid!important;place-items:center!important;padding:0!important;margin:0 2px 0 auto!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  color:#ffd12f!important;cursor:pointer!important;line-height:1!important;font-size:0!important;
}
body .dmgc-chat-modal-panel #dmgc-chat-profile-settings:hover,
body .dmgc-chat-modal-panel #dmgc-chat-profile-settings:focus,
body .dmgc-chat-modal-panel #dmgc-chat-profile-settings:active{background:transparent!important;border:0!important;box-shadow:none!important;color:#ffe071!important}
body .dmgc-chat-modal-panel #dmgc-chat-profile-settings svg{display:block!important;width:25px!important;height:25px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important;background:transparent!important;border:0!important;box-shadow:none!important}
body .dmgc-chat-modal-panel .dmgc-chat-settings-panel[hidden],
body .dmgc-chat-modal-panel #dmgc-chat-settings-home[hidden],
body .dmgc-chat-modal-panel #dmgc-chat-settings-detail[hidden]{display:none!important}
body .dmgc-chat-modal-panel .dmgc-chat-settings-panel{
  position:absolute!important;inset:0!important;z-index:120!important;display:flex;flex-direction:column!important;
  min-width:0!important;min-height:0!important;overflow:hidden!important;background:#080808!important;color:#eee!important;
  border:0!important;border-radius:inherit!important;box-shadow:none!important;
}
body .dmgc-chat-modal-panel .dmgc-chat-settings-topbar{flex:0 0 68px;display:flex;align-items:center;gap:15px;padding:0 24px;border-bottom:1px solid #292929;background:#111!important}
body .dmgc-chat-modal-panel .dmgc-chat-settings-topbar strong{flex:1;min-width:0;color:#f1f1f1;font-size:22px;font-weight:750;letter-spacing:-.35px}
body .dmgc-chat-modal-panel .dmgc-chat-settings-topbar button{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;padding:0;border:0!important;border-radius:50%!important;background:transparent!important;color:#ddd!important;font-size:29px!important;line-height:1;cursor:pointer}
body .dmgc-chat-modal-panel .dmgc-chat-settings-topbar button:hover{background:#242424!important;color:#ffd12f!important}
body .dmgc-chat-modal-panel .dmgc-chat-settings-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:26px clamp(18px,4vw,46px) 34px}
body .dmgc-chat-modal-panel .dmgc-chat-settings-scroll>div{width:100%;max-width:720px;margin:0 auto}
body .dmgc-chat-modal-panel .dmgc-chat-settings-profile{display:flex;align-items:center;gap:17px;padding:8px 8px 24px;margin:0 0 14px;border-bottom:1px solid #252525}
body .dmgc-chat-modal-panel .dmgc-chat-settings-avatar{display:grid;place-items:center;flex:0 0 78px;width:78px;height:78px;padding:0;overflow:hidden;border:1px solid #3b3b3b!important;border-radius:50%!important;background:#242424!important;color:#eee!important;font-size:24px;font-weight:700;cursor:pointer}
body .dmgc-chat-modal-panel .dmgc-chat-settings-avatar img{display:block;width:100%;height:100%;object-fit:cover;border:0!important;border-radius:50%!important;background:transparent!important}
body .dmgc-chat-modal-panel .dmgc-chat-settings-profile>div{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
body .dmgc-chat-modal-panel .dmgc-chat-settings-profile>div>strong{color:#f2f2f2;font-size:19px;line-height:1.25;overflow-wrap:anywhere}
body .dmgc-chat-modal-panel .dmgc-chat-settings-profile>div>small{color:#999;font-size:13px}
body .dmgc-chat-modal-panel .dmgc-chat-settings-profile>div>button{padding:0;border:0!important;background:transparent!important;color:#ffd12f!important;font-size:13px;font-weight:650;cursor:pointer}
body .dmgc-chat-modal-panel .dmgc-chat-settings-list{display:flex;flex-direction:column;gap:4px}
body .dmgc-chat-modal-panel .dmgc-chat-settings-row{display:flex;align-items:center;gap:16px;width:100%;min-height:76px;padding:12px 14px;border:1px solid transparent!important;border-radius:13px!important;background:transparent!important;color:#e6e6e6!important;text-align:left;cursor:pointer}
body .dmgc-chat-modal-panel .dmgc-chat-settings-row:hover{background:#171717!important;border-color:#292929!important}
body .dmgc-chat-modal-panel .dmgc-settings-row-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:50%;background:transparent!important;color:#a9a9a9!important;font-size:25px;line-height:1}
body .dmgc-chat-modal-panel .dmgc-chat-settings-row>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}
body .dmgc-chat-modal-panel .dmgc-chat-settings-row strong{font-size:15px;font-weight:650;color:#ededed}
body .dmgc-chat-modal-panel .dmgc-chat-settings-row small{font-size:12px;color:#929292;line-height:1.35}
body .dmgc-chat-modal-panel .dmgc-chat-settings-row>b{color:#777;font-size:25px;font-weight:400}
body .dmgc-chat-modal-panel .dmgc-chat-settings-info{padding:8px 6px;color:#ddd}
body .dmgc-chat-modal-panel .dmgc-chat-settings-info>strong{display:block;margin:0 0 15px;color:#f2f2f2;font-size:19px}
body .dmgc-chat-modal-panel .dmgc-chat-settings-info p{margin:0 0 16px;color:#aaa;font-size:14px;line-height:1.7}
body .dmgc-chat-modal-panel .dmgc-chat-settings-info dl{display:grid;grid-template-columns:minmax(110px,160px) minmax(0,1fr);gap:12px 18px;margin:20px 0 24px;padding:18px;border:1px solid #292929;border-radius:14px;background:#111}
body .dmgc-chat-modal-panel .dmgc-chat-settings-info dt{color:#999;font-size:13px}
body .dmgc-chat-modal-panel .dmgc-chat-settings-info dd{margin:0;color:#e5e5e5;font-size:13px;overflow-wrap:anywhere}
body .dmgc-chat-modal-panel .dmgc-chat-settings-note{padding:14px 16px;border:1px solid #292929;border-radius:12px;background:#121212;color:#aaa;font-size:13px;line-height:1.6}
body .dmgc-chat-modal-panel .dmgc-settings-theme-preview{display:flex;align-items:center;gap:13px;padding:14px;border:1px solid #303030;border-radius:13px;background:#141414;margin:18px 0}
body .dmgc-chat-modal-panel .dmgc-settings-theme-preview>span{width:42px;height:42px;border-radius:50%;background:#080808;border:2px solid #ffd12f;box-shadow:inset 0 0 0 8px #222}
body .dmgc-chat-modal-panel .dmgc-settings-theme-preview>div{display:flex;flex:1;flex-direction:column;gap:4px}
body .dmgc-chat-modal-panel .dmgc-settings-theme-preview b{font-size:14px;color:#eee}
body .dmgc-chat-modal-panel .dmgc-settings-theme-preview small{font-size:12px;color:#999}
body .dmgc-chat-modal-panel .dmgc-settings-theme-preview em{color:#ffd12f;font-style:normal;font-size:20px}
body .dmgc-chat-modal-panel .dmgc-settings-notification-btn{padding:11px 14px;border:1px solid #3b3b3b!important;border-radius:10px!important;background:#1b1b1b!important;color:#ffd12f!important;font-size:13px;font-weight:650;cursor:pointer}
body .dmgc-chat-modal-panel .dmgc-settings-permission-status{display:block;margin-top:12px;color:#aaa;font-size:12px;line-height:1.5}
body .dmgc-chat-modal-panel .dmgc-settings-profile-detail{border:0;margin-bottom:18px}
@media(max-width:760px){
 body .dmgc-chat-modal-panel .dmgc-chat-settings-topbar{flex-basis:62px;padding:0 14px;gap:10px}
 body .dmgc-chat-modal-panel .dmgc-chat-settings-topbar strong{font-size:20px}
 body .dmgc-chat-modal-panel .dmgc-chat-settings-scroll{padding:18px 14px 26px}
 body .dmgc-chat-modal-panel .dmgc-chat-settings-profile{gap:14px;padding:4px 4px 20px;margin-bottom:10px}
 body .dmgc-chat-modal-panel .dmgc-chat-settings-avatar{flex-basis:68px;width:68px;height:68px}
 body .dmgc-chat-modal-panel .dmgc-chat-settings-profile>div>strong{font-size:17px}
 body .dmgc-chat-modal-panel .dmgc-chat-settings-row{min-height:70px;padding:10px 7px;gap:11px}
 body .dmgc-chat-modal-panel .dmgc-settings-row-icon{flex-basis:38px;width:38px;height:38px;font-size:23px}
 body .dmgc-chat-modal-panel .dmgc-chat-settings-row strong{font-size:14px}
 body .dmgc-chat-modal-panel .dmgc-chat-settings-row small{font-size:11px}
 body .dmgc-chat-modal-panel .dmgc-chat-settings-info dl{grid-template-columns:1fr;gap:5px;padding:14px}
 body .dmgc-chat-modal-panel .dmgc-chat-settings-info dd{margin-bottom:9px}
 body .dmgc-chat-modal-panel .dmgc-chat-settings-profile .dmgc-chat-settings-avatar{flex-basis:68px}
 body .dmgc-chat-popup-root .dmgc-chat-launcher{width:68px!important;min-width:68px!important;max-width:68px!important;height:68px!important;min-height:68px!important;max-height:68px!important}
 body .dmgc-chat-popup-root .dmgc-chat-launcher .dmgc-chat-launcher-icon{width:38px!important;height:38px!important}
}

body .dmgc-chat-modal-panel .dmgc-chat-settings-topbar button[hidden]{display:none!important}


/* v0.10.7 — settings button, mobile profile card, header back button; keep launcher at its original size */
body .dmgc-chat-modal-panel .dmgc-chat-self-card{
  display:flex!important;align-items:center!important;gap:11px!important;min-width:0!important;
}
body .dmgc-chat-modal-panel #dmgc-chat-profile-settings{
  position:relative!important;z-index:2!important;display:grid!important;place-items:center!important;
  flex:0 0 32px!important;width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;
  margin:0 0 0 auto!important;padding:0!important;overflow:visible!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  color:#ffd12f!important;line-height:1!important;
}
body .dmgc-chat-modal-panel #dmgc-chat-profile-settings svg{
  width:23px!important;height:23px!important;min-width:23px!important;min-height:23px!important;
  display:block!important;overflow:visible!important;fill:none!important;stroke:currentColor!important;
  stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;
}
body .dmgc-chat-modal-panel #dmgc-chat-profile-settings:hover,
body .dmgc-chat-modal-panel #dmgc-chat-profile-settings:focus,
body .dmgc-chat-modal-panel #dmgc-chat-profile-settings:active{background:transparent!important;border:0!important;box-shadow:none!important;color:#ffe071!important}
body .dmgc-chat-modal-panel .dmgc-chat-settings-topbar{gap:10px!important}
body .dmgc-chat-modal-panel #dmgc-chat-settings-back{flex:0 0 38px!important;width:38px!important;height:38px!important;font-size:36px!important;font-weight:500!important;line-height:1!important;transform:none!important}
@media(max-width:760px){
  body .dmgc-chat-modal-panel .dmgc-chat-self-card{min-height:76px!important;padding:10px 12px!important;margin:4px 2px!important;gap:11px!important}
  body .dmgc-chat-modal-panel .dmgc-chat-self-avatar{width:44px!important;height:44px!important;flex:0 0 44px!important}
  body .dmgc-chat-modal-panel .dmgc-chat-self-copy strong{font-size:14px!important;line-height:1.3!important}
  body .dmgc-chat-modal-panel .dmgc-chat-self-copy small{font-size:12px!important;line-height:1.3!important}
  body .dmgc-chat-modal-panel #dmgc-chat-profile-settings{flex-basis:30px!important;width:30px!important;min-width:30px!important;height:34px!important;min-height:34px!important;margin-left:auto!important}
  body .dmgc-chat-modal-panel #dmgc-chat-profile-settings svg{width:23px!important;height:23px!important}
  body .dmgc-chat-popup-root .dmgc-chat-launcher{width:54px!important;min-width:54px!important;max-width:54px!important;height:54px!important;min-height:54px!important;max-height:54px!important;padding:0!important}
  body .dmgc-chat-popup-root .dmgc-chat-launcher .dmgc-chat-launcher-icon{width:28px!important;height:28px!important}
}


/* v0.10.8 — centered profile gear and Open Community Chat */
body .dmgc-chat-modal-panel #dmgc-chat-profile-settings svg{overflow:visible!important;transform:none!important;transform-origin:50% 50%!important}
body .dmgc-chat-modal-panel #dmgc-chat-profile-settings svg circle{cx:12!important;cy:12!important}
body .dmgc-chat-modal-panel #dmgc-chat-profile-settings{align-self:center!important;justify-self:center!important}
body .dmgc-chat-modal-panel .dmgc-chat-community-item{border:1px solid #3a321c!important;background:#211d12!important}
body .dmgc-chat-modal-panel .dmgc-chat-community-item .dmgc-chat-list-avatar{background:#080808!important;border:1px solid #5a4a16!important}
body .dmgc-chat-modal-panel .dmgc-chat-community-item .dmgc-chat-list-name{color:#ffd12f!important}
body .dmgc-chat-modal-panel .dmgc-community-sender{display:flex;align-items:center;gap:7px;margin:0 0 7px;color:#ffd12f;font-size:12px;line-height:1.2}
body .dmgc-chat-modal-panel .dmgc-community-sender img{width:22px;height:22px;flex:0 0 22px;border-radius:50%;object-fit:cover;border:1px solid #393939}
body .dmgc-chat-modal-panel .dmgc-community-sender strong{font-size:12px;color:#ffd12f}
body .dmgc-chat-modal-panel .dmgc-community-conversation .dmgc-chat-bubble{max-width:min(84%,620px)}
body .dmgc-chat-modal-panel .dmgc-community-conversation .dmgc-chat-bubble-row.mine .dmgc-chat-bubble{background:#2c2614!important;border-color:#7b6414!important}
body .dmgc-chat-modal-panel .dmgc-community-login-prompt{margin:8px 18px 0;padding:10px 14px;border:1px solid #554716;border-radius:12px;background:#211d12;color:#e5e5e5;text-align:center;font-size:13px}
body .dmgc-chat-modal-panel .dmgc-community-login-prompt a{color:#ffd12f;font-weight:750;text-decoration:none;margin:0 5px}
body .dmgc-chat-modal-panel .dmgc-community-login-prompt a:hover{text-decoration:underline}
body .dmgc-chat-guest .dmgc-chat-search-row,body .dmgc-chat-guest .dmgc-chat-team-btn,body .dmgc-chat-guest .dmgc-chat-self-card,body .dmgc-chat-guest .dmgc-chat-settings-panel{display:none!important}
body .dmgc-chat-guest .dmgc-chat-sidebar{max-height:none!important;min-height:0!important}
body .dmgc-chat-guest .dmgc-chat-list{flex:1!important;overflow:auto!important}
body .dmgc-chat-guest .dmgc-chat-brand{padding:18px!important}
body .dmgc-chat-guest .dmgc-chat-compose button,body .dmgc-chat-guest .dmgc-chat-compose textarea{opacity:.6;cursor:not-allowed}
body .dmgc-chat-guest .dmgc-chat-compose .dmgc-chat-send{display:none!important}
body .dmgc-chat-guest .dmgc-chat-footnote{padding-bottom:5px}
@media(max-width:760px){
 body .dmgc-chat-guest .dmgc-chat-app{grid-template-columns:1fr!important}
 body .dmgc-chat-guest .dmgc-chat-sidebar{max-height:34%!important;min-height:160px!important}
 body .dmgc-chat-guest .dmgc-chat-list{display:flex!important;flex-direction:column!important;overflow-y:auto!important;overflow-x:hidden!important}
 body .dmgc-chat-guest .dmgc-chat-list-item{flex:0 0 auto!important;width:100%!important}
 body .dmgc-chat-modal-panel .dmgc-community-login-prompt{margin:6px 9px 0;padding:9px 8px;font-size:12px}
 body .dmgc-chat-modal-panel .dmgc-community-conversation .dmgc-chat-bubble{max-width:92%!important}
}


/* v0.10.9 — guest community opens directly; readable login/signup actions */
body .dmgc-chat-modal-panel .dmgc-community-login-prompt a,
body .dmgc-chat-modal-panel .dmgc-community-login-prompt a:visited {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-width:112px!important;min-height:38px!important;padding:8px 18px!important;margin:4px 7px!important;
  border:1px solid #c49b16!important;border-radius:10px!important;
  background:#d8ad20!important;color:#17130a!important;
  font-weight:800!important;line-height:1.2!important;text-decoration:none!important;
  text-shadow:none!important;box-shadow:none!important;opacity:1!important;
}
body .dmgc-chat-modal-panel .dmgc-community-login-prompt a:hover,
body .dmgc-chat-modal-panel .dmgc-community-login-prompt a:focus {
  background:#e7c34a!important;color:#111!important;border-color:#e7c34a!important;text-decoration:none!important;
}
@media(max-width:760px){
 body .dmgc-chat-modal-panel .dmgc-community-login-prompt a,
 body .dmgc-chat-modal-panel .dmgc-community-login-prompt a:visited{min-width:96px!important;min-height:36px!important;padding:8px 13px!important;margin:4px 3px!important;font-size:13px!important}
}


/* v0.10.10 — neutral community/official list rows, text-only guest prompt, admin community cleanup */
body .dmgc-chat-modal-panel .dmgc-chat-list-item.dmgc-chat-community-item,
body .dmgc-chat-modal-panel .dmgc-chat-list-item.dmgc-chat-community-item.selected,
body .dmgc-chat-modal-panel .dmgc-chat-list-item.dmgc-chat-announcement-item,
body .dmgc-chat-modal-panel .dmgc-chat-list-item.dmgc-chat-announcement-item.selected {
  background: #141414 !important; border: 1px solid #303030 !important; color: #d8d8d8 !important; box-shadow: none !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-list-item.dmgc-chat-community-item .dmgc-chat-list-name { color: #e0e0e0 !important; }
body .dmgc-chat-modal-panel .dmgc-chat-list-item.dmgc-chat-community-item .dmgc-chat-list-avatar { background: #080808 !important; border-color: #343434 !important; }
body .dmgc-chat-modal-panel .dmgc-chat-list-item.dmgc-chat-community-item:hover,
body .dmgc-chat-modal-panel .dmgc-chat-list-item.dmgc-chat-announcement-item:hover { background: #202020 !important; border-color: #3a3a3a !important; }
body .dmgc-chat-modal-panel .dmgc-community-login-prompt { margin: 7px 18px 0 !important; padding: 8px 10px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: #a7a7a7 !important; text-align: center !important; font-size: 12px !important; font-weight: 500 !important; }
/* Community message deletion is managed only from the WordPress admin panel. */
body .dmgc-chat-modal-panel .dmgc-chat-more-menu { min-width:205px !important; max-width:min(250px, calc(100vw - 24px)) !important; }
body .dmgc-chat-modal-panel .dmgc-chat-more-menu button { min-height:38px !important; padding:9px 12px !important; }
@media (min-width:761px) { body .dmgc-chat-modal-panel .dmgc-chat-more-menu { transform:translateX(-2px); } }


/* v0.10.12 — compact header menu and keep chat messages clear while it is open. */
body .dmgc-chat-modal-panel .dmgc-chat-more-menu {
  box-sizing:border-box !important;
  width:230px !important;
  min-width:230px !important;
  max-width:calc(100vw - 24px) !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-conversation.dmgc-more-menu-open .dmgc-chat-messages {
  padding-top:var(--dmgc-menu-space, 210px) !important;
  scroll-padding-top:var(--dmgc-menu-space, 210px) !important;
}


/* v0.10.13 — ensure the fixed options menu is always above every message bubble. */
body .dmgc-chat-modal-panel > .dmgc-chat-more-menu {
  position:fixed !important; z-index:2147483647 !important; isolation:isolate !important;
  background:#202020 !important; opacity:1 !important;
  box-shadow:0 12px 32px rgba(0,0,0,.72) !important;
}
body .dmgc-chat-modal-panel > .dmgc-chat-more-menu button { position:relative !important; z-index:1 !important; }


/* v0.10.22: support avatar containment, iOS viewport-safe chat bubbles, and no horizontal clipping. */
body .dmgc-chat-modal-panel .dmgc-chat-list-item[data-support="1"] .dmgc-chat-list-avatar,
body .dmgc-chat-modal-panel .dmgc-chat-support-avatar {
  overflow:hidden !important; display:flex !important; align-items:center !important; justify-content:center !important;
  background:#080808 !important; border-radius:50% !important;
}
body .dmgc-chat-modal-panel .dmgc-chat-list-item[data-support="1"] .dmgc-chat-list-avatar img,
body .dmgc-chat-modal-panel .dmgc-support-conversation #dmgc-chat-avatar > img {
  width:100% !important; height:100% !important; max-width:100% !important; max-height:100% !important;
  min-width:0 !important; min-height:0 !important; object-fit:contain !important; object-position:center !important;
  padding:3px !important; margin:0 !important; border-radius:50% !important; box-sizing:border-box !important;
}
@media (max-width:760px) {
  body .dmgc-chat-modal:not([hidden]) { left:0 !important; right:0 !important; width:100vw !important; max-width:100vw !important; overflow:hidden !important; }
  body .dmgc-chat-modal:not([hidden]) .dmgc-chat-modal-panel,
  body .dmgc-chat-modal:not([hidden]) .dmgc-chat-app,
  body .dmgc-chat-modal:not([hidden]) .dmgc-chat-main,
  body .dmgc-chat-modal:not([hidden]) .dmgc-chat-conversation { width:100% !important; max-width:100% !important; min-width:0 !important; box-sizing:border-box !important; }
  body .dmgc-chat-modal:not([hidden]) .dmgc-chat-conversation { overflow:hidden !important; }
  body .dmgc-chat-modal:not([hidden]) .dmgc-chat-messages { width:100% !important; max-width:100% !important; min-width:0 !important; box-sizing:border-box !important; overflow-x:hidden !important; padding-left:12px !important; padding-right:12px !important; }
  body .dmgc-chat-modal:not([hidden]) .dmgc-chat-bubble-row { width:100% !important; max-width:100% !important; min-width:0 !important; flex:0 0 auto !important; box-sizing:border-box !important; }
  body .dmgc-chat-modal:not([hidden]) .dmgc-chat-bubble { min-width:0 !important; max-width:min(88%, calc(100vw - 40px)) !important; box-sizing:border-box !important; overflow-wrap:anywhere !important; word-break:normal !important; }
  body .dmgc-chat-modal:not([hidden]) .dmgc-chat-conv-header { min-width:0 !important; max-width:calc(100% - 8px) !important; box-sizing:border-box !important; }
}
/* Preserve requested removal of the attachment (+) control in the message composer. */
body .dmgc-chat-modal-panel #dmgc-chat-compose #dmgc-chat-attach { display:none !important; }
