body:has(.dm-chat-page) footer{display:none}body:has(.dm-chat-page):before{animation:none}body:has(.dm-chat-page) main{max-width:none;width:100%}.dm-chat-page.page{max-width:none;width:100%;padding:106px clamp(24px,4vw,76px) 18px;margin:0;min-height:100dvh}.dm-chat-page .page-intro{margin:0 0 14px;align-items:center}.dm-chat-page .kicker{display:none}.dm-chat-page h1{font-size:26px;margin:0;letter-spacing:-1px} .dm-chat-page .dm-layout{grid-template-columns:clamp(320px,28vw,430px) minmax(0,1fr);height:calc(100dvh - 180px);min-height:380px;border-radius:10px;background:#101113} .dm-chat-page .dm-sidebar{padding:16px 12px;scrollbar-width:thin} .dm-chat-page .dm-sidebar h2{margin:20px 10px 8px} .dm-chat-page .dm-search{padding:0 6px} .dm-chat-page .dm-search input{background:#191a1d;border-radius:9px} .dm-chat-page .dm-friends-fold{margin:12px 6px} .dm-chat-page .dm-friends-fold summary{font-size:12px;color:var(--muted);cursor:pointer} .dm-chat-page .dm-friends-fold #dm-people{max-height:165px} .dm-chat-page .dm-thread{border:0;border-radius:0;border-bottom:1px solid #ffffff09;margin:0;padding:15px 12px} .dm-chat-page .dm-thread.active{background:#ffffff07;box-shadow:inset 2px 0 #dfb57e} .dm-chat-page .dm-thread .avatar{width:43px;height:43px} .dm-chat-page .dm-thread p{margin-left:53px} .dm-chat-page .dm-hide{top:17px;right:10px;color:#89898d} .dm-chat-page .dm-peer{padding:12px 24px;min-height:66px} .dm-chat-page .dm-log{padding:24px clamp(18px,4vw,70px);scrollbar-width:thin} .dm-chat-page .dm-message{border:0;border-radius:13px 13px 13px 3px;max-width:min(75%,700px);background:#1d1e21;padding:11px 15px} .dm-chat-page .dm-message.outgoing{background:#e6ded0;color:#1c1915;border-radius:13px 13px 3px 13px} .dm-chat-page .dm-message.outgoing p{color:#1c1915} .dm-chat-page .dm-message.outgoing time, .dm-chat-page .dm-message.outgoing .dm-receipt{color:#6d6254} .dm-chat-page .dm-message p{font-size:14px} .dm-chat-page .dm-compose{grid-template-columns:auto auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px 24px 10px;background:#101113} .dm-chat-page .dm-compose textarea{border:0;background:transparent;resize:none;min-height:48px;height:48px;padding:12px 4px} .dm-chat-page .dm-compose>.btn.primary{background:#dfb57e;color:#20180f;border-color:transparent;border-radius:10px;padding:12px} .dm-chat-page .dm-compose>.dm-attach{grid-column:1;grid-row:1;align-self:center} .dm-chat-page .dm-compose>.emoji-toggle{grid-column:2;grid-row:1} .dm-chat-page .dm-compose>textarea{grid-column:3;grid-row:1} .dm-chat-page .dm-compose>[type=submit]{grid-column:4;grid-row:1} .dm-chat-page .dm-compose>small{grid-column:1/-1;margin:0;font-size:11px} .dm-chat-page .dm-attachment-preview:empty{display:none} .dm-chat-page .dm-attachment-preview{grid-column:1/-1;grid-row:1;display:flex;align-items:center;gap:12px;padding:6px} .dm-chat-page .dm-attachment-preview:not(:empty)~.dm-attach, .dm-chat-page .dm-compose:has(.dm-attachment-preview:not(:empty))>.emoji-toggle, .dm-chat-page .dm-compose:has(.dm-attachment-preview:not(:empty))>textarea, .dm-chat-page .dm-compose:has(.dm-attachment-preview:not(:empty))>[type=submit]{grid-row:2} .dm-chat-page .dm-attachment-preview img{width:90px;height:70px;object-fit:contain;border-radius:7px;background:#1c1d20} .dm-chat-page .dm-image-link{display:block;margin-bottom:8px} .dm-chat-page .dm-image{display:block;max-width:100%;width:320px;height:220px;object-fit:contain;background:#00000015;border-radius:8px} .dm-chat-page .dm-person-name{font-weight:500} .dm-chat-page .dm-thread .dm-person-name{flex:1} .dm-chat-page .dm-empty{font-size:14px} .dm-chat-page .dm-attach:hover{color:#dfb57e}
@media(min-width:1800px){ .dm-chat-page .dm-log{padding-inline:8vw} .dm-chat-page .dm-message{max-width:65%}}
@media(max-width:900px){ .dm-chat-page .dm-layout{grid-template-columns:280px minmax(0,1fr)} .dm-chat-page .dm-peer{padding:12px}.dm-chat-page.page{padding-inline:12px} .dm-chat-page .dm-compose{padding-inline:12px;gap:5px} .dm-chat-page .dm-message{max-width:92%} .dm-chat-page .dm-log{padding:16px} .dm-chat-page .dm-peer .admin-badge{display:none}}
@media(max-width:600px){.dm-chat-page.page{padding:98px 8px 8px;min-height:100dvh}.dm-chat-page .page-intro{margin-bottom:10px}.dm-chat-page h1{font-size:21px} .dm-chat-page .dm-layout{display:block;height:calc(100dvh - 148px);min-height:330px} .dm-chat-page .dm-sidebar{padding:14px} .dm-chat-page .dm-compose{padding-bottom:max(9px,env(safe-area-inset-bottom));gap:4px} .dm-chat-page .dm-compose>.emoji-toggle, .dm-chat-page .dm-compose>.dm-attach{width:32px;min-width:32px;padding:5px} .dm-chat-page .dm-peer{gap:8px} .dm-chat-page .dm-peer .dm-public-id{font-size:10px} .dm-chat-page .dm-compose textarea{font-size:16px} .dm-chat-page .dm-compose>.btn.primary{padding:10px} .dm-chat-page .dm-image{width:260px;height:185px}.dm-chat-page .page-intro>a{font-size:12px} .dm-chat-page .dm-selected .dm-conversation{display:flex} .dm-chat-page .dm-selected .dm-sidebar{display:none}}
.dm-chat-page.page{display:flex;flex-direction:column;height:100dvh;min-height:480px}.dm-chat-page .page-intro{flex:none}.dm-chat-page .dm-layout{flex:1;height:auto;min-height:0}.dm-chat-page .dm-conversation{min-height:0}.dm-chat-page .dm-compose{flex:none}
