.dm-entry{position:relative;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.dm-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:12px;background:#a83735;color:#fff;font-size:11px;font-weight:600;flex-shrink:0}.dm-badge[hidden]{display:none}.dm-entry .dm-badge{position:absolute;right:-5px;top:-6px}.dm-layout{display:grid;grid-template-columns:300px minmax(0,1fr);border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;min-height:620px}.dm-sidebar{border-right:1px solid var(--line);min-width:0;background:#fafbf8}.dm-list-heading{display:flex;align-items:center;justify-content:space-between;padding:20px 18px;border-bottom:1px solid var(--line)}.dm-list-heading h2{font-size:17px;margin:0}.dm-sidebar>.help{padding:0 18px}.dm-conversation{display:flex;gap:12px;padding:17px 16px;align-items:center;text-decoration:none;color:inherit;border-bottom:1px solid #e9ece5}.dm-conversation:hover,.dm-conversation.selected{background:#eaf1e8}.dm-conversation>div{flex:1;min-width:0}.dm-conversation strong{font-size:14px}.dm-conversation small,.dm-thread-heading small{font-size:11px;color:var(--muted);font-weight:400}.dm-conversation p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--muted);margin:7px 0}.dm-conversation time{font-size:10px;color:var(--muted)}#dm-conversations{max-height:650px;overflow:auto}.dm-thread{display:flex;flex-direction:column;min-width:0}.dm-empty{margin:auto;padding:45px;text-align:center;color:var(--muted);line-height:1.9}.dm-empty h2{color:var(--green);font-size:23px;font-weight:500}.dm-thread-heading{display:flex;align-items:center;gap:12px;padding:16px 22px;border-bottom:1px solid var(--line)}.dm-thread-heading>div{flex:1;min-width:0}.dm-thread-heading h2{font-size:18px;margin:0;overflow-wrap:anywhere}.dm-thread-heading p{font-size:11px;color:var(--muted);margin:6px 0 0}.dm-back{display:none}.dm-history{text-align:center;min-height:26px;padding:4px}.dm-log{height:390px;overflow:auto;padding:12px 24px;overscroll-behavior:contain}.dm-message{display:flex;flex-direction:column;align-items:flex-start;margin:0 0 19px}.dm-message.outgoing{align-items:flex-end}.dm-bubble{max-width:85%;padding:12px 16px;line-height:1.8;font-size:15px;border-radius:12px 12px 12px 3px;background:#f1f3ee;white-space:pre-wrap;overflow-wrap:anywhere}.outgoing .dm-bubble{background:#173f35;color:#fff;border-radius:12px 12px 3px 12px}.dm-message time{color:var(--muted);font-size:10px;margin-top:5px}.dm-compose{padding:16px 22px;border-top:1px solid var(--line);margin-top:auto}.dm-compose label{font-size:12px;display:block;margin-bottom:7px}.dm-compose textarea{display:block;width:100%;resize:vertical;min-height:80px;max-height:200px;border:1px solid var(--line);border-radius:8px;padding:12px;font:inherit;line-height:1.6}.dm-compose-actions{display:flex;justify-content:space-between;align-items:center;margin-top:10px}.dm-compose-actions small{font-size:11px;color:var(--muted)}.dm-send-error{font-size:12px;color:#a83735;line-height:1.7}.dm-list-empty{padding:22px;line-height:1.9;color:var(--muted);font-size:13px}.dm-search{width:100%;margin:12px 0 18px;padding:12px;border:1px solid var(--line);border-radius:8px}.dm-contacts{max-height:50vh;overflow:auto}.dm-contact{display:flex;align-items:center;gap:12px;padding:15px 4px;border-bottom:1px solid var(--line);text-decoration:none;color:inherit}.dm-contact strong{font-size:15px}.dm-contact small{color:var(--muted)}.dm-contact>span:last-child{margin-left:auto;font-size:12px;color:var(--green)}.dm-contact:hover{background:#f3f6ef}.dm-entry:focus-visible,.dm-conversation:focus-visible,.dm-contact:focus-visible{outline:3px solid #b89344;outline-offset:2px}
@media(max-width:800px){.dm-layout{grid-template-columns:1fr;min-height:500px}.dm-layout .dm-thread{display:none}.dm-layout.has-peer .dm-sidebar{display:none}.dm-layout.has-peer .dm-thread{display:flex}.dm-sidebar{border-right:0}.dm-back{display:inline-flex}.dm-thread-heading{padding:14px 12px;gap:8px}.dm-thread-heading h2{font-size:16px}.dm-log{height:42vh;min-height:220px;padding:12px}.dm-compose{padding:12px}.dm-bubble{max-width:92%;font-size:15px}.dm-thread-heading>.avatar{display:none}.dm-entry{min-height:36px}.dm-entry .dm-badge{top:0}.dm-empty{padding:28px}.dm-contact{min-height:54px}}

#dm-older[hidden]{display:none}

@media(max-width:800px){.main:has(.dm-layout.has-peer)>.page-heading,.main:has(.dm-layout.has-peer)>.footer{display:none}.dm-layout.has-peer{height:calc(100dvh - 158px);min-height:480px}.dm-layout.has-peer .dm-thread{min-height:0}.dm-layout.has-peer .dm-log{flex:1;height:0;min-height:140px}.dm-layout.has-peer .dm-compose textarea{min-height:64px;max-height:100px}.dm-layout.has-peer .dm-history{min-height:10px}}

.dm-attach-controls{display:flex;gap:8px;flex-wrap:wrap;margin:9px 0}.dm-file-picker{position:relative;overflow:hidden;cursor:pointer;min-height:34px!important;padding:7px 12px!important}.dm-file-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.dm-file-picker:focus-visible{outline:3px solid #b89344}.dm-draft-files{max-height:150px;overflow:auto}.dm-draft-file{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid var(--line);border-radius:6px;margin:6px 0;background:#f8faf6}.dm-draft-file img{width:42px;height:42px;object-fit:cover;border-radius:4px}.dm-draft-file>svg{width:24px;height:24px;flex-shrink:0}.dm-draft-file>span{flex:1;min-width:0}.dm-draft-file strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.dm-draft-file small{font-size:10px;color:var(--muted)}.dm-file-help{font-size:11px;color:var(--muted);line-height:1.8}.dm-file-help p{margin:6px 0}.dm-file-help summary{cursor:pointer}.dm-compose #dm-upload-status{font-size:11px;margin:4px 0}.dm-shared-media{max-width:100%;width:340px;margin:8px 0;background:#f4f6f0;padding:8px;border:1px solid var(--line);border-radius:10px;overflow:hidden}.dm-shared-media img{display:block;width:100%;height:auto;max-height:380px;object-fit:contain;background:#e9eee6;border-radius:6px}.dm-shared-media video{display:block;width:100%;max-height:350px;background:#15261f;border-radius:6px}.dm-shared-media audio{display:block;width:100%;margin:10px 0}.dm-shared-media figcaption{font-size:12px;overflow-wrap:anywhere}.dm-download{display:inline-block;color:#245949;font-size:11px;margin-top:8px;text-decoration:underline;min-height:24px}.dm-shared-file{display:flex;gap:12px;align-items:center;max-width:100%;width:320px;background:#f4f6f0;border:1px solid var(--line);padding:14px;border-radius:8px;color:var(--green);text-decoration:none;margin:8px 0}.dm-shared-file>svg{width:24px;height:24px;flex-shrink:0}.dm-shared-file>span{flex:1;min-width:0}.dm-shared-file strong{font-size:13px;overflow-wrap:anywhere;display:block}.dm-shared-file small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.dm-shared-file:focus-visible,.dm-download:focus-visible{outline:3px solid #b89344;outline-offset:2px}
@media(max-width:800px){.dm-layout.has-peer .dm-compose{max-height:53%;overflow:auto;flex-shrink:0}.dm-layout.has-peer .dm-compose textarea{min-height:56px;height:64px}.dm-draft-files{max-height:108px}.dm-shared-media{width:280px}.dm-compose-actions{margin-top:7px}.dm-file-picker{font-size:12px}.dm-shared-file{width:280px}.dm-compose .dm-file-help{font-size:10px}}
