.hub-messaging .hub-layout{grid-template-columns:216px minmax(0,1fr)}
.hub-messaging .hub-main{grid-column:2/-1}
.hub-messaging .hub-page-heading{margin-bottom:14px}
.dm-notice{margin:0 0 16px;color:#a4afce;font-size:11px;line-height:1.6}
.dm-shell{display:grid;grid-template-columns:310px minmax(0,1fr);height:clamp(480px,calc(100dvh - 250px),850px);overflow:hidden;background:#0b101c;box-shadow:0 18px 65px #0003}
.dm-inbox{display:flex;flex-direction:column;min-width:0;min-height:0;border-right:1px solid #8496cf25;background:linear-gradient(160deg,#15182b,#0c101c)}
.dm-inbox-heading{padding:23px 21px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.dm-inbox-heading h2{margin:0;font-size:22px;letter-spacing:-.5px}
.dm-connection{font-size:10px!important;padding:4px;border:0;background:none;color:#a5b5dc;max-width:140px;text-align:right}
.dm-new{margin:0 18px 14px;font-size:12px!important;justify-content:flex-start}
.dm-search{padding:0 18px 16px}
.dm-search input{width:100%;min-width:0;padding:11px 14px;border:1px solid #8496cf25;border-radius:22px;background:#070c18;color:#e9edff;font-size:12px!important}
.dm-search input::placeholder{color:#8e9dbd}
.dm-list{overflow-y:auto;flex:1;padding:0 9px 16px;overscroll-behavior:contain}
.dm-person{width:100%;display:flex;align-items:center;gap:11px;border:1px solid transparent;background:transparent;color:#dce4fa;border-radius:12px;padding:13px 10px;text-align:left;margin-bottom:3px}
.dm-person:hover{background:#ffffff06}
.dm-person[aria-current=page]{background:#aa8aff16;border-color:#a28fff32}
.dm-person .hub-avatar{width:43px;height:43px}
.dm-person-copy{min-width:0;flex:1}
.dm-person-copy strong{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:6px}
.dm-person-copy small{display:block;font-size:11px;color:#94a4c4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5}
.dm-preview-time{font-size:9px;color:#8597ba;align-self:flex-start;white-space:nowrap;padding-top:3px}
.dm-list-empty{padding:16px;color:#95a5c6;font-size:12px;line-height:1.8}
.dm-chat{min-width:0;min-height:0;display:flex;flex-direction:column;background:radial-gradient(ellipse at 65% 30%,#35204422,transparent 70%)}
.dm-chat-header{padding:18px 24px;border-bottom:1px solid #8496cf20;display:flex;align-items:center;gap:12px;min-height:82px}
.dm-chat-person{display:flex;align-items:center;gap:12px;min-width:0}
.dm-chat-connection{margin-left:auto}
.dm-chat-person h2{font-size:15px;margin:0 0 5px;overflow-wrap:anywhere}
.dm-chat-person p{margin:0;color:#8e9fc2;font-size:11px;overflow-wrap:anywhere}
.dm-back{display:none!important}
.dm-log{flex:1;min-height:0;overflow-y:auto;padding:21px 28px;overscroll-behavior:contain;scrollbar-gutter:stable}
.dm-date{text-align:center;font-size:10px;color:#8295b7;margin:8px 0 20px}
.dm-message{display:flex;justify-content:flex-start;margin:7px 0}
.dm-message.own{justify-content:flex-end}
.dm-bubble{max-width:min(80%,560px);border-radius:18px 18px 18px 5px;background:#20283e;border:1px solid #8496cf20;padding:11px 15px;color:#e4eafb;min-width:72px}
.dm-bubble p{margin:0;font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.dm-bubble time,.dm-bubble small{display:block;font-size:9px;color:#9cafd0;margin-top:5px;text-align:right}
.dm-message.own .dm-bubble{background:linear-gradient(120deg,#7560cb,#554ab5);border-color:#ad98ef33;border-radius:18px 18px 5px 18px;color:#fff}
.dm-message.own .dm-bubble time,.dm-message.own .dm-bubble small{color:#d9d2f6}
.dm-message.pending .dm-bubble{opacity:.7}
.dm-message.failed .dm-bubble{opacity:1;border-color:#ff9fb778}
.dm-retry{display:block;border:0;background:none;color:#ffe1eb;padding:8px 0 0;margin-left:auto;text-decoration:underline;font-size:10px!important}
.dm-composer{display:flex;align-items:flex-end;gap:12px;padding:15px 24px 5px;border-top:1px solid #8496cf20}
.dm-composer textarea{flex:1;min-width:0;max-height:140px;resize:vertical;background:#151c2e;border:1px solid #8496cf25;border-radius:16px;color:#e9edff;padding:12px 15px;line-height:1.6;font-size:13px!important}
.dm-composer textarea::placeholder{color:#8d9bbb}
.dm-composer .hub-primary{margin-bottom:3px;font-size:12px}
.dm-composer-hint{padding:0 24px 13px;margin:4px 0 0;color:#7184a7;font-size:9px}
.dm-chat-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;flex:1;min-height:180px;padding:32px;color:#8f9fc0}
.dm-chat-empty h2,.dm-chat-empty h3{color:#e7e4ff;font-size:23px;letter-spacing:-.5px;font-weight:550;margin:22px 0 10px}
.dm-chat-empty p{max-width:320px;font-size:13px;line-height:1.9;margin:0 0 24px}
.dm-empty-symbol{display:grid;place-items:center;width:80px;height:80px;border-radius:26px;border:1px solid #b396ee44;background:radial-gradient(circle at 25% 20%,#967adb35,#313d5c22);color:#c9b2ff;font-size:42px;box-shadow:0 0 55px #a487e311}
@media(max-width:1100px){.hub-messaging .hub-layout{grid-template-columns:186px minmax(0,1fr)}.dm-shell{grid-template-columns:265px minmax(0,1fr)}.dm-log{padding:18px}.dm-chat-header,.dm-composer{padding-left:18px;padding-right:18px}}
@media(max-width:800px){.hub-messaging .hub-layout{display:block}.dm-shell{grid-template-columns:245px minmax(0,1fr);height:clamp(460px,calc(100dvh - 290px),800px)}.dm-inbox-heading{padding:18px 15px 12px}.dm-inbox-heading h2{font-size:19px}.dm-new{margin-left:12px;margin-right:12px}.dm-search{padding-left:12px;padding-right:12px}}
@media(max-width:650px){.dm-shell{display:flex;min-height:480px;height:calc(100dvh - 315px);border-radius:14px}.dm-inbox{width:100%;border:0}.dm-chat{display:none}.dm-selected .dm-inbox{display:none}.dm-selected .dm-chat{display:flex;width:100%}.dm-back{display:inline-flex!important;padding:7px 10px;min-height:34px;font-size:10px!important}.dm-chat-header{padding:14px;min-height:74px}.dm-chat-person .hub-avatar{width:32px;height:32px}.dm-chat-person{gap:8px}.dm-chat-person h2{font-size:13px}.dm-log{padding:14px}.dm-composer{padding:12px 12px 5px;gap:8px}.dm-composer .hub-primary{padding:11px}.dm-composer-hint{padding-left:14px}.dm-bubble{max-width:88%}.dm-chat-empty h3{font-size:20px}.dm-notice{font-size:10px}.dm-connection{font-size:10px!important}}
